/* 項目別の基本設定。画面サイズ・入力方法ごとの調整は末尾にまとめています。 */

/* 10 ページ見出し */
.news-hero {
    background: linear-gradient(110deg, #eff9f3, #f8fcfa);
    padding-bottom: 36px;
}

.news-hero h1 {
    font-size: clamp(36px, 4vw, 60px);
    color: var(--forest);
}

.news-hero .sub-inner {
    padding-top: 20px;
}

/* 20 一覧・ページ送り */
.site-news-list > a {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 25px 15px;
    border-bottom: 1px solid #bdd8ca;
}

.site-news-list > a:hover {
    background: #f1f9f5;
}

.site-news-list time {
    font-size: 14px;
    color: #53947a;
    flex-shrink: 0;
}

.news-list-arrow {
    margin-left: auto;
}

.cms-news-new {
    font-size: 10px;
    letter-spacing: .1em;
    color: #008b55;
    background: #e5f5ec;
    padding: 3px 8px;
}

.cms-news-pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 35px;
}

.cms-news-pagination a {
    border: 1px solid #bdd8ca;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
}

.cms-news-pagination [aria-current] {
    background: #205840;
    color: white;
}

.news-empty {
    padding: 20px 30px;
    font-size: 14px;
    color: #648773;
}

/* 30 記事詳細・画像・動画 */
.news-content {
    padding: 45px 0 65px;
    min-height: 350px;
}

.cms-news-detail {
    max-width: 1050px;
    margin: auto;
}

.cms-news-detail__header {
    border-bottom: 1px solid #d4e6db;
    padding-bottom: 25px;
    margin-bottom: 30px;
}

.cms-news-detail__header time {
    font-size: 14px;
    color: #538d72;
}

.cms-news-detail__header h1 {
    font-size: clamp(27px, 3vw, 44px);
    margin-top: 12px;
    overflow-wrap: anywhere;
}

.cms-news-body {
    line-height: 2;
    overflow-wrap: anywhere;
}

.cms-news-body__text {
    margin-bottom: 30px;
}

.cms-news-body__text p {
    margin: 0 0 15px;
}

.cms-news-body__text a {
    text-decoration: underline;
    color: #008b55;
}

.cms-news-body__text ul {
    list-style: disc;
    padding-left: 1.5em;
}

.cms-news-body__text ol {
    list-style: decimal;
    padding-left: 1.5em;
}

.cms-news-images {
    display: grid;
    gap: 18px;
    margin: 30px 0;
}

.cms-news-images--1 {
    grid-template-columns: 1fr;
}

.cms-news-images--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cms-news-images--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cms-news-images figure {
    margin: 0;
    min-width: 0;
}

.cms-news-images img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.cms-news-images figcaption,
.cms-news-video figcaption {
    font-size: 13px;
    text-align: center;
    color: #648773;
    margin-top: 10px;
}

.cms-news-video {
    margin: 30px 0;
}

.cms-news-video iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: 0;
}

.cms-news-video video {
    width: 100%;
    max-height: 75vh;
    background: #153e31;
}

.news-back {
    margin: 45px auto 0;
}

.news-preview-note {
    padding: 15px;
    background: #fff4d9;
    border: 1px solid #eddaa8;
    font-size: 14px;
    margin-bottom: 25px;
}

/* 40 画像拡大 */
.news-lightbox {
    border: 0;
    background: #12382bec;
    width: min(1100px, 95vw);
    padding: 50px 20px 20px;
    max-height: 95dvh;
}

.news-lightbox::backdrop {
    background: #0009;
}

.news-lightbox > button {
    position: absolute;
    top: 8px;
    right: 18px;
    color: white;
    font-size: 30px;
}

.news-lightbox > img {
    max-height: 80vh;
    max-width: 100%;
    margin: auto;
    object-fit: contain;
}


/* ==================================================
   PC・タブレット共通：768px以上
   ================================================== */
@media (min-width:768px) {
    /* 50 共通ヘッダー・フッター調整 */
    .page-subpage .header-nav a {
        padding-inline: 12px;
    }

    .page-subpage .header-nav a[aria-current]::after {
        left: 12px;
        right: 12px;
    }

    .page-subpage .footer-main nav a {
        padding-inline: 10px;
    }
}

/* ==================================================
   タブレット：768〜1100px
   ================================================== */
@media (max-width:1100px) and (min-width:768px) {
    /* 50 共通ヘッダー・フッター調整 */
    .page-subpage .header-nav a {
        padding-inline: 6px;
    }

    .page-subpage .site-header {
        gap: 12px;
    }

    .page-subpage .site-header .brand {
        width: 190px;
    }
}

/* ==================================================
   スマートフォン：767px以下
   ================================================== */
@media (max-width:767px) {
    /* 20 一覧・ページ送り */
    .site-news-list > a {
        flex-wrap: wrap;
        gap: 8px 14px;
        padding: 20px 0;
        font-size: 14px;
    }

    .site-news-list time {
        width: 100%;
        font-size: 12px;
    }

    .site-news-list > a > span:nth-child(2) {
        flex: 1;
    }

    .news-empty {
        padding: 15px 0;
    }

    /* 30 記事詳細・画像・動画 */
    .cms-news-images {
        gap: 8px;
    }

    .cms-news-images--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cms-news-images figcaption {
        font-size: 11px;
    }

    .news-content {
        padding: 30px 0 40px;
    }

    .cms-news-body {
        font-size: 15px;
    }
}
