/*
Template Name: top
Description: トップページ用のテンプレート
*/

@charset "UTF-8";

/************************************************
* お知らせ（投稿）
************************************************/
/*トップページ*/
.index#news .news_item {
    flex-flow: row;
}

.index#news .new_time {
    margin-bottom: 0;
}

.index#news a {
    color: #555;
    transition: .3s;
}

.index#news a:hover {
    color: #5db7ba;
}

.index#news .news_link a {
    display: block;
    text-align: right;
    margin-top: 1rem;
    font-size: .8rem;
}

@media screen and (max-width:980px) {
    .index#news .news_inner::after {
        top: -35px;
        bottom: -35px;
        height: calc(100% + 80px);
    }

    .index#news .news_item {
        flex-flow: column;
        padding: 1rem .5rem;
    }

    .index#news .news_contents {
        padding-left: 0;
    }
}

/*一覧ページ・記事ページ共通*/
.pankuzu {
    width: min(95%, 1100px);
    margin: 0 auto;
    padding: 5px 0;
    font-size: 12px;
}

.page#header {
    display: none;
}

#posts {
    position: relative;
}

#posts::before {
    content: "";
    position: absolute;
    width: 65%;
    height: 75%;
    background: #f0f9f9;
    right: 0;
    top: 15rem;
    z-index: -1;
}

#posts a {
    color: #555;
    transition: .3s;
}

#posts a:hover {
    color: #5db7ba;
}

#posts .posts-header {
    background: #5db7ba;
    text-align: center;
}

#posts .posts-header h2 {
    font-size: 1.8rem;
    color: #fff;
    padding: 4rem 0;
}

#posts .posts-header h2 span {
    display: block;
    font-size: 1rem;
    letter-spacing: 3px;
    margin-top: .5rem;
    text-transform: capitalize;
}

#posts .posts-contents {
    padding: 6rem 0;
    width: min(95%, 1100px);
    margin: 0 auto;
}

/*一覧ページ*/
.archive#posts .posts-contents dl {
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: flex;
    flex-wrap: wrap;
    border-top: 1px solid #dedede;
}

.archive#posts .posts-contents dl dt,
.archive#posts .posts-contents dl dd {
    border-bottom: 1px solid #dedede;
    padding: 2rem 0;
}

.archive#posts .posts-contents dl dt {
    width: 250px;
    text-align: center;
    font-weight: 700;
    color: #555;
}

.archive#posts .posts-contents dl dd {
    width: calc(100% - 250px);
}

.archive#posts .posts-contents .pagination {
    text-align: center;
    margin-top: 3rem;
    color: #555;
}

.archive#posts .posts-contents .pagination .page-numbers {
    margin: 0 5px;
}

@media screen and (max-width:480px) {
    .archive#posts::before {
        height: 80%;
    }

    .archive#posts .posts-header h2 {
        font-size: 1.4rem;
        padding: 2rem 0;
        line-height: 1.4;
    }

    .archive#posts .posts-contents dl dt,
    .archive#posts .posts-contents dl dd {
        width: 100%;
    }

    .archive#posts .posts-contents dl dt {
        text-align: left;
        border-bottom: none;
        padding: 2rem 1rem 0;
    }

    .archive#posts .posts-contents dl dd {
        padding: 1rem 1rem 2rem;
    }
}

/*記事ページ*/
.single#posts .return {
    text-align: right;
    margin-bottom: 1rem;
}

.single#posts .posts-contents {
    margin: 0px auto 2rem;
    border-bottom: 1px solid #dedede;
}

.single#posts .posts-contents .contents-title {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: #555;
}

.single#posts .posts-contents .date {
    color: #7b7b7b;
    margin-bottom: 2rem;
}

.single#posts .posts-contents .box p {
    line-height: 1.4;
    margin-bottom: 1rem;
    color: #555;
}

.single#posts .posts-contents .box p:last-of-type {
    margin-bottom: 0;
}

/*ページネーション*/
.single#posts .nav-links {
    overflow: hidden;
    width: min(90%, 600px);
    margin: 0 auto 4rem;
}

.single#posts .nav-previous {
    float: left;
}

.single#posts .nav-next {
    float: right;
}

.single#posts .fa-solid {
    font-size: .8rem;
}

/*けやきハウスの採用ボタン*/
.recruit-btn {
    text-align: center;
    margin: 5rem 0;
    display: block;
}

.recruit-btn a {
    padding: 2rem 4rem;
    background: #0089b2;
    color: #fff;
    border-radius: 3rem;
    font-size: 1.2rem;
    font-weight: 700;
}
