/*---------------------------------
お知らせ（一覧・詳細）ページ
---------------------------------*/

/* ==============================
   ニュースリスト
   ============================== */

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

.news_item:nth-child(odd) {
    background: #DDF2FF;
}

.news_link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 22px 16px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

/* --- 日付 --- */

.news_date {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-color);
    white-space: nowrap;
    flex-shrink: 0;
}

/* --- タイトル --- */

.news_item_title {
    font-size: 14px;
    font-weight: bold;
    color: var(--text-color);
    line-height: 1.86;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    flex: 1;
    min-width: 0;
}

/* --- 矢印 --- */

.news_arrow {
    display: block;
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--accent-color);
    border-right: 2px solid var(--accent-color);
    transform: rotate(45deg);
    flex-shrink: 0;
}

/* ==============================
   ページネーション
   ============================== */

.news_pagination {
    display: flex;
    justify-content: center;
}

.news_pagination__list {
    display: flex;
    align-items: center;
    gap: 25px;
    list-style: none;
}

/* --- 数字ボタン --- */

.news_pagination__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    font-size: 14px;
    font-weight: bold;
    background: #EFF9FF;
    color: var(--text-color);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.news_pagination__link.is-active {
    background: var(--accent-color);
    color: #fff;
    pointer-events: none;
}

/* --- 前後ボタン --- */

.news_pagination__prev,
.news_pagination__next {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    text-decoration: none;
    margin: 0 8px;
}

.news_pagination__arrow {
    display: block;
    width: 9px;
    height: 9px;
    border-top: 2px solid var(--text-color);
    border-right: 2px solid var(--text-color);
}

.news_pagination__arrow--prev {
    transform: rotate(-135deg) translate(-2px, 2px);
}

.news_pagination__arrow--next {
    transform: rotate(45deg) translate(-2px, 2px);
}

.article_nav__next {
    margin-left: auto;
}

/* ==============================
   PC
   ============================== */

@media (min-width: 768px) {

    /* --- セクション --- */

    .section_content--news {
        padding: 0 20px;
    }

    .section_content--news .content_box {
        max-width: 786px;
        margin: 0 auto;
    }

    /* --- ニュースリスト --- */

    .news_list {
        margin-bottom: 70px;
    }

    .news_link {
        gap: 45px;
        padding: 30px 25px;
    }

    .news_date {
        font-size: 16px;
    }

    .news_item_title {
        font-size: 16px;
        line-height: 1.75;
    }

    .news_arrow {
        width: 12px;
        height: 12px;
        transition: transform 0.3s;
    }

    .news_link:hover .news_arrow {
        transform: translateX(8px) rotate(45deg);
    }

    /* --- ページネーション --- */

    .news_pagination__list {
        gap: 10px;
    }

    .news_pagination__prev,
    .news_pagination__next {
        margin: 0 40px;
    }

    .news_pagination__arrow {
        width: 10px;
        height: 10px;
    }

}


/* ============================================================
   お知らせ詳細
   ============================================================ */

/* ==============================
   共通
   ============================== */

.l-page.lower_layer--news-detail {
    padding-top: 90px;
}

@media (min-width: 768px) {
    .l-page.lower_layer--news-detail {
        padding-top: 185px;
    }

    .l-page.lower_layer--news-detail .breadcrumb {
        margin-bottom: 40px;
    }
}

/* ==============================
   記事ヘッダー
   ============================== */

.article_header {
    margin-bottom: 20px;
}

/* --- 投稿日時 --- */

.article_date {
    display: block;
    font-size: 14px;
    color: var(--text-color);
    border: 1px solid var(--text-color);
    padding: 8px 10px;
    white-space: nowrap;
    width: fit-content;
    margin-right: auto;
    margin-bottom: 15px;
}

/* --- 記事タイトル --- */

.article_title {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-color);
    line-height: 1.6;
}

/* ==============================
   記事本文
   ============================== */

.article_body {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 30px;
}

.article_text {
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.7;
}

.article_body p {
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.7;
}

/* --- メイン画像 --- */

.article_main_img {
    width: 100%;
    margin-bottom: 25px;
}

.article_main_img img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 335 / 235;
    object-fit: cover;
    background: #ccc;
}

/* --- 小見出し --- */

.article_heading {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-color);
    line-height: 1.6;
    padding-left: 8px;
    border-left: 4px solid var(--accent-color);
    margin-bottom: 15px;
}

.article_body h2 {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-color);
    line-height: 1.6;
    padding-left: 8px;
    border-left: 4px solid var(--accent-color);
    margin-bottom: 15px;
}

.article_body tr {
    display: flex;
    flex-wrap: wrap;
}

.article_body tr td {
    width: 100% !important;
    margin-top: 20px;
}

.breadcrumb_item--parent span {
    white-space: nowrap;
}

/* --- サブ画像 --- */

.article_sub_imgs {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.article_sub_imgs figure img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 335 / 235;
    object-fit: cover;
    background: #ccc;
}

/* ==============================
   前後ナビ
   ============================== */

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

.article_nav__prev,
.article_nav__next {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: bold;
    color: var(--text-color);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.article_nav__arrow {
    display: block;
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--text-color);
    border-right: 2px solid var(--text-color);
    flex-shrink: 0;
}

.article_nav__arrow--prev {
    transform: rotate(-135deg) translate(-2px, 2px);
}

.article_nav__arrow--next {
    transform: rotate(45deg) translate(-2px, 2px);
}

/* ==============================
   PC
   ============================== */

@media (min-width: 768px) {
    .article_body tr {
        flex-wrap: inherit;
    }

    .article_body tr td {
        width: calc((100% - 15px) / 2);
    }

    .article_body tr td:first-child {
        margin-right: 15px;
    }

    /* --- セクション --- */

    .section_content--news-detail {
        padding: 0 20px;
    }

    .section_content--news-detail .content_box {
        max-width: 695px;
        margin: 0 auto;
    }

    /* --- 投稿日時 --- */

    .article_date {
        margin: 0 0 60px auto;
    }

    /* --- 記事ヘッダー --- */

    .article_header {
        margin-bottom: 40px;
    }

    .article_title {
        font-size: 25px;
    }

    /* --- 記事本文 --- */

    .article_body {
        gap: 50px;
        margin-bottom: 130px;
    }

    .article_main_img img {
        aspect-ratio: 16 / 9;
    }

    .article_heading {
        font-size: 20px;
        margin-bottom: 25px;
    }

    /* --- サブ画像 --- */

    .article_sub_imgs {
        flex-direction: row;
    }

    .article_sub_imgs figure {
        flex: 1;
    }

    /* --- 前後ナビ --- */

    .article_nav__prev:hover,
    .article_nav__next:hover {
        opacity: 0.6;
    }

    .article_nav__arrow {
        width: 10px;
        height: 10px;
    }

}