/*---------
NEWS
----------*/

/*----共通ブロック ----*/

.content_box[hidden] {
    display: none;
}

.content_box {
    display: block;
}

/*----コンテンツブロック ----*/


/* カテゴリ切り替え */
.category_switch_box {
    max-width: 300px;
    margin: 0 auto 65px;
}

.category_switch_list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
}

.category_switch_item {
    width: 100%;
}

.category_switch_btn {
    width: 100%;
    height: 69px;
    border: 1px solid var(--main-color);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    color: var(--main-color);
    line-height: calc(28 / 16);
    font-family: var(--main-font);
}

.category_switch_btn.is-active {
    border: 1px solid var(--sub-color);
    background: var(--sub-color);
    position: relative;
}

.category_switch_btn.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -13px;
    margin: 0 auto;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 12px solid var(--sub-color);
}


.news_list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 40px;
}

.news_detail {
    display: block;
    padding-bottom: 10px;
    border-bottom: 1px solid #737373;
    position: relative;
}

.news-item__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
}

.date_text {
    font-size: 16px;
    font-weight: bold;
    line-height: calc(28 / 16);
    color: var(--main-color);
}

.category_tag {
    background: var(--sub-color);
    border-radius: 4px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
    font-weight: bold;
    color: var(--main-color);
    line-height: calc(14 / 14);
    padding: 5px;
}

.news_bottom_block {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.news_title {
    font-size: 16px;
    font-weight: bold;
    line-height: calc(28 / 16);
    color: var(--main-color);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-width: 0;
    padding-right: 50px;
}

.news_detail::after {
    content: "";
    position: absolute;
    background: url(../images/top/news_title_arrow.png) center / cover no-repeat;
    width: 23px;
    height: 15px;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
}


/* ページャー */

.pager {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pager__btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--sub-color);
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
}

.pager__btn.pager__btn_preview::after {
    content: "";
    position: absolute;
    background: url("../images/news/pager__btn_arrow_preview.png") center / cover no-repeat;
    width: 15px;
    height: 11px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.pager__btn.pager__btn_next::after {
    content: "";
    position: absolute;
    background: url("../images/news/pager__btn_arrow_next.png") center / cover no-repeat;
    width: 15px;
    height: 11px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.pager__btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.pager__list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pager__page {
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    color: var(--main-color);
    line-height: calc(14 / 14);
    font-family: var(--main-font);
    cursor: pointer;
    padding: 0 5px;
    position: relative;
}

.pager__page.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 1px;
    background: #222222;
}

/* フォーカス見やすく */
.pager__btn:focus-visible,
.pager__page:focus-visible {
    outline: 2px solid #111;
    outline-offset: 3px;
    border-radius: 8px;
}

.wp-pagenavi {
    display: flex;
    justify-content: center;
    margin-top: 80px;
}

.wp-pagenavi a:hover,
.wp-pagenavi span.current {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    /* background: var(--main-color); */
    border-radius: 50%;
    border: none;
}

.wp-pagenavi span.current {
    /* color: #fff;
    background-color: #036EB8; */
}

body .wp-pagenavi a,
body .wp-pagenavi span {
    border: none;
    color: #000;
}


.page.larger,
.page.smaller {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    overflow: hidden;
    font-size: 14px;
    font-weight: 500;
    /* background-color: #036EB8; */
    border: none;
}

.wp-pagenavi .previouspostslink {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--sub-color);
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
    text-indent: 10000px;
    /* margin-right: auto;
    margin-left: 0; */
}

.wp-pagenavi .previouspostslink::after {
    content: "";
    position: absolute;
    background: url(../images/news/pager__btn_arrow_preview.png) center / cover no-repeat;
    width: 15px;
    height: 11px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.wp-pagenavi .nextpostslink {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--sub-color);
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
    text-indent: 10000px;
    /* margin-right: 0;
    margin-left: auto; */
}

.wp-pagenavi .nextpostslink::after {
    content: "";
    position: absolute;
    background: url(../images/news/pager__btn_arrow_next.png) center / cover no-repeat;
    width: 15px;
    height: 11px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

}

.wp-pagenavi span.current {
    position: relative;
}

.wp-pagenavi span.current::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 5px;
    height: 1px;
    left: 50%;
    transform: translateX(-50%);
    background: #222222;
    width: 20px;
}

@media (min-width:768px) {
    .wp-pagenavi {
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }

    .wp-pagenavi .previouspostslink {
        width: 30px;
        height: 30px;
    }

    .wp-pagenavi .nextpostslink {
        width: 30px;
        height: 30px;
    }

    .wp-pagenavi a:hover,
    .wp-pagenavi span.current {
        width: 30px;
        height: 30px;
    }

    .wp-pagenavi a:hover,
    .wp-pagenavi span.current {
        width: 30px;
        height: 30px;
    }

    .page.larger,
    .page.smaller {
        width: 30px;
        height: 30px;
        margin-right: 6px;
    }

    .wp-pagenavi span.current::after {
        bottom: 0;
    }

    /*----共通ブロック ----*/


    /*----コンテンツブロック ----*/

    .category_switch_box {
        max-width: 920px;
        margin: 0 auto 80px;
        padding: 0 20px;
    }

    .category_switch_list {
        flex-direction: row;
        justify-content: space-between;
        gap: clamp(10px, 2.7vw, 30px);
    }

    .category_switch_item {
        max-width: 200px;
        flex: 1 1 40%;
    }

    .category_switch_btn {
        height: 45px;
    }

    .section_title_block {
        max-width: 252px;
        width: 100%;
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        flex-direction: column;
    }

    .news_list {
        max-width: 920px;
        margin: 0 auto 70px;
        gap: 55px;
    }

    .news_detail {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 15px;
        padding-bottom: 20px;
        position: relative;
    }

    .news-item__meta {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .news_title {
        padding: 0;
        padding-right: 80px;
    }

    /* 矢印を動かす */
    .news_detail:hover::after {
        transform: translateY(-50%) translateX(15px);
    }

    .news_detail::after {
        top: 50%;
        right: 10px;
        transform: translateY(-50%);
        transition: transform 0.3s ease;
    }


    /* ページャー */

    .pager {
        max-width: 700px;
    }

    .pager__btn {
        width: 30px;
        height: 30px;
        transition: background-color .1s ease;
    }

    .pager__btn:hover {
        background: var(--point-color);
        border: 1px solid var(--main-color);
    }

    .pager__list {
        gap: 20px;
    }
}