@charset "utf-8";

/**
 * News Archive Page Style
 * ------------------------------------------------------------
 * TOPページのお知らせセクションのスタイルを継承しつつ、
 * 絞り込みナビゲーションとページネーションを定義。
 */

/* Layout */
.lower_section_wrapper {
    padding-bottom: 12rem;

    &::after {
        content: "";
        position: absolute;
        inset: 50% 0 0 0;
        background-color: #FFF;
        z-index: -1;
    }
}

/* --- Category Navigation / カテゴリナビ --- */
.news_cat_nav {
    background-color: #F3F8FB;
    border-radius: 4rem;
    padding: 4rem;
    margin-bottom: 8rem;
}

.news_cat_nav_inner {
    display: flex;
    align-items: center;
    gap: 3.2rem;
}

.news_cat_label {
    font-family: "Saira", sans-serif;
    font-size: 1.6rem;
    font-weight: bold;
    color: #3583C6;
    line-height: 2;
}

.news_cat_list {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.news_cat_list a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 9.6rem;
    height: 4rem;
    padding: 0.8rem 3.2rem;
    border: 1px solid #3583C6;
    border-radius: 8px;
    color: #3583C6;
    font-family: "Saira", sans-serif;
    font-weight: bold;
    font-size: 1.6rem;
    background-color: #FFF;
    transition: all 0.3s ease;
    line-height: 2;
}

.news_cat_list a:hover,
.news_cat_list a.is-active {
    background-color: #3583C6;
    color: #FFF;
}

/* --- Post List / リストアイテム --- */
.news_archive_list {
    margin-top: 0;
}

.front_news_link {
    display: flex;
    align-items: center;
    padding: 4rem;
    border-bottom: 1px solid #EDEDED;
    transition: all .15s ease;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.front_news_cat {
    font-size: 1.4rem;
    padding: 6px 3.2rem;
    font-family: "saira", sans-serif;
    border: 1px solid #3583C6;
    color: #3583C6;
    border-radius: 8px;
    margin-right: 2.4rem;
    transition: all .15s ease;
    flex-shrink: 0;
    text-align: center;
}

.front_news_date {
    font-size: 1.6rem;
    color: #3583C6;
    margin-right: 4rem;
    flex-shrink: 0;
}

.front_news_title {
    font-size: 1.6rem;
    transition: all .15s ease;
    margin-right: 2.4rem;
    line-height: 2;
}

/* リンク矢印の右寄せ調整 */
.front_news_link .link_arrow {
    margin-left: auto;
    flex-shrink: 0;
}

/* Hover Effects */
.front_news_link:hover {
    border-bottom: 1px solid #3583C6;
}

.front_news_link:hover .front_news_cat {
    background-color: #3583C6;
    color: #FFF;
}

.front_news_link:hover .front_news_title {
    color: #3583C6;
    transform: translateX(12px);
}

/* --- Pagination / ページネーション --- */
.news_pagination {
    margin-top: 8rem;
    display: flex;
    justify-content: center;
}

.news_pagination ul.page-numbers {
    display: flex;
    align-items: center;
    gap: 2.4rem;
}

.news_pagination a.page-numbers,
.news_pagination span.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 8px;
    font-family: "Saira", sans-serif;
    font-weight: bold;
    font-size: 2rem;
    color: #3583C6;
    transition: all 0.3s ease;
    text-decoration: none;
}

/* Current Page / 現在のページ */
.news_pagination .current {
    background-color: #3583C6;
    color: #FFF !important;
}

/* Prev・Next / 前へ・次へボタン共通設定 */
.news_pagination .prev,
.news_pagination .next {
    background-color: #3583C6;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

/* Center SVG / SVG矢印の配置調整 */
.news_pagination .prev svg,
.news_pagination .next svg {
    width: auto;
    height: 1rem;
    display: block;
}

/* Hover Effect / ホバー時の挙動 */
.news_pagination a.page-numbers:hover {
    background-color: #D6E4F5;
}

.news_pagination .prev:hover,
.news_pagination .next:hover {
    background-color: #2F86C9 !important;
    opacity: 0.9;
}

/* --- Responsive --- */
@media (max-width: 767px) {
    .news_pagination ul.page-numbers {
        gap: 1.2rem;
    }

    .news_pagination a.page-numbers,
    .news_pagination span.page-numbers {
        width: 3.2rem;
        height: 3.2rem;
        font-size: 1.6rem;
    }

    .news_pagination .prev svg,
    .news_pagination .next svg {
        height: 0.8rem;
    }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .news_cat_nav {
        border-radius: 2rem;
        padding: 2.4rem;
        margin-bottom: 4rem;
    }

    .news_cat_nav_inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.6rem;
    }
}

@media (max-width: 767px) {
    .lower_section_wrapper {
        padding-bottom: 0rem;
    }

    .news_cat_nav {
        border-radius: 2rem;
        padding: 1.6rem;
        margin-bottom: 2rem;
    }

    .news_cat_nav_inner {
        gap: 0.6rem;
    }

    .news_cat_list a {
        padding: 0.8rem 2rem;
        min-width: 7.2rem;
        font-size: 1.4rem;
    }

    .front_news_link {
        flex-wrap: wrap;
        row-gap: 1.2rem;
        padding: 2rem 0;
    }

    .front_news_cat {
        padding: 4px 2rem;
        margin-right: 1.6rem;
    }

    .front_news_date {
        margin-right: 0;
    }

    .front_news_title {
        width: 84%;
        margin-right: 0;
    }

    .news_pagination ul.page-numbers {
        gap: 1.2rem;
    }

    .news_pagination a.page-numbers,
    .news_pagination span.page-numbers {
        width: 3.2rem;
        height: 3.2rem;
        font-size: 1.6rem;
    }
}


.lower_container {
    max-width: 1440px;
    margin: 0 auto;
}