@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

.post_wrap.archive {
    margin: auto;
}

.post.term-post {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.topics_cat_inner {
    display: flex;
    width: 90.11vw;
    margin: 40px auto 0;
    flex-direction: column;
}

.cat_btn_wrap.page .cat_btn {
    flex-direction: row;
    justify-content: center;
}

button.term-btn {
    margin: 0 20px 40px;
    background: none;
    color: #c1b8b0;
}

button.term-btn.active {
    background: none;
    color: #6C584C;
    border: none;
    border-bottom: solid 2px;
}

.post_wrap {
    margin-right: auto;
    width: 80%;
}

.post.term-post {
    flex-direction: column;
}

.post_list {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.pagination {
    position: relative;
    margin-top: 60px;
    text-align: center;
    z-index: 99;
}

.wp-pagenavi a, .wp-pagenavi span {
    border: none;
    border-radius: 50%;
    padding: 6px 9px;
    margin: 0 10px;
    color: #6c584c;
    background: #fff;
}

.wp-pagenavi span.current {
    background: #6C584C;
    color: #fff;
    font-weight: 400;
}

.sec3.topics_cat {
    background: url(../img/topics/sec2_bg.png);
    background-size: cover;
    margin-top: -4.396vw;
    padding-top: 9.524vw;
    padding-bottom: 16.117vw;
}

.sec2.archive {
    position: relative;
    padding: 10.126vw 0 10.126vw;
    margin: -5.8vw 0 -7.5vw;
    background: url(../img/topics/sec1_bg.png);
    background-size: cover;
    background-position: center top;
    z-index: 3;
}

.sec2:after {
    display: none;
}

.sec3.topics_cat:before {
    position: absolute;
    content: "";
    background: url(../img/sec3_be1.png);
    background-size: cover;
    top: 2.198vw;
    right: 10%;
    width: 5.861vw;
    height: 9.67vw;
    z-index: 2;
}

.sec3:after {
    position: absolute;
    content: "";
    background: url(../img/topics/topics_be1.png);
    background-size: cover;
    background-repeat: no-repeat;
    top: 535px;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 2;
}

.sec3:before,
.sec3:after {
        z-index: 0;
    }

@media(max-width:767px) {

    .sec2.archive {
        background: url(../img/topics/sp_sec1_bg.png);
        background-size: cover;
        background-position: top;
        padding-top: 100px;
        padding-bottom: 100px;
        z-index: 3;
    }

    .sec2:before {
        content: unset;
    }

    .sec3.topics_cat:before,
    .sec3.topics_cat:after {
        content: unset;
        z-index: 0;
    }


    .sec3.topics_cat {
        background: url(../img/topics/sp_sec2_bg.png);
        background-size: cover;
        background-position: top;
        position: relative;
        z-index: -1;
        margin-top: -32px;
        padding-top: 70px;
    }

    .cat_btn {
        flex-direction: row;
    }
    .topics_cat_inner {
        flex-direction: column;
    }
    .cat_btn {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between; /* 両端配置 */
        gap: 3.846vw; /* 必要なら上下左右に隙間 */
    }

    button.term-btn {
        width: calc(50% - 1.923vw); /* 2列の幅調整（gapの半分を引く） */
        box-sizing: border-box;
    }

    .cat_btn button {
        padding: 3.333vw 4.103vw;
        margin: 0 0 0;
        font-weight: 700;
    }

}