@charset "utf-8";

/* ==========================================================
   news-page.css  お知らせ一覧ページ専用
   - common.css の変数・.container、page.css の .sub-fv（FV）を利用
   - 既存CSSは変更しない。固有クラスは .news-page- / .news-side- のみ
   - HOME用の .news / .news-main / .news-list 等は使用しない
   - 読み込み順：common.css → page.css → news-page.css → responsive.css
   - サイドバー（.news-side-*）は記事詳細ページでもそのまま流用可
   ========================================================== */

/* ---------- ページ全体：2カラム ---------- */
.news-page {
    padding: 64px 0 96px;
    background: #fff;
}

.news-page-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 0 56px;
    align-items: stretch; /* サイドバーの背景を一覧の高さまで伸ばす */
}

/* ---------- 見出し ---------- */
.news-page-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 6px;
    color: var(--color-green-dark);
    font-size: .6875rem;
    font-weight: 500;
    letter-spacing: .14em;
    line-height: 1.4;
}

.news-page-label::before {
    content: "";
    width: 20px;
    height: 2px;
    background: var(--color-green);
}

.news-page-title {
    margin: 0 0 32px;
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: .06em;
}

/* ---------- 記事一覧 ---------- */
.news-page-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--color-line);
}

.news-page-item {
    border-bottom: 1px solid var(--color-line);
}

.news-page-link {
    display: grid;
    grid-template-columns: 196px minmax(0, 1fr) 16px;
    column-gap: 24px;
    align-items: center;
    padding: 28px 8px 28px 4px;
    color: inherit;
    text-decoration: none;
    transition: background-color .2s;
}

.news-page-link::after {
    content: "";
    justify-self: end;
    width: 8px;
    height: 8px;
    border-top: 1.5px solid var(--color-green-dark);
    border-right: 1.5px solid var(--color-green-dark);
    transform: rotate(45deg);
}

.news-page-link:hover {
    background: var(--color-bg-light);
}

.news-page-link:hover .news-page-item-title {
    color: var(--color-green-dark);
}

.news-page-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.news-page-date {
    flex: 0 0 96px;
    color: var(--color-subtext);
    font-family: var(--font-serif);
    font-size: .8125rem;
    letter-spacing: .04em;
}

.news-page-cat {
    flex: 0 0 88px;
    padding: 2px 8px;
    color: var(--color-green-dark);
    background: #fff;
    border: 1px solid var(--color-green);
    font-size: .6875rem;
    font-weight: 500;
    line-height: 1.7;
    letter-spacing: .06em;
    text-align: center;
}

.news-page-item-title {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: .05em;
    transition: color .2s;
}

.news-page-excerpt {
    display: -webkit-box;
    margin: 6px 0 0;
    overflow: hidden;
    color: var(--color-subtext);
    font-size: .8125rem;
    line-height: 1.9;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-page-empty {
    margin: 0;
    padding: 40px 0;
    font-size: .9375rem;
}

/* ---------- ページネーション（WP the_posts_pagination の出力構造に合わせる） ---------- */
.news-page .pagination-wrap {
    margin-top: 40px;
}

.news-page .pagination-wrap .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.news-page .pagination-wrap .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    color: var(--color-text);
    background: #fff;
    border: 1px solid var(--color-line);
    font-size: .875rem;
    line-height: 1;
    text-decoration: none;
    transition: color .2s, background-color .2s;
}

.news-page .pagination-wrap a.page-numbers:hover {
    background: var(--color-bg-light);
}

.news-page .pagination-wrap .page-numbers.current {
    color: #fff;
    background: var(--color-green);
    border-color: var(--color-green);
}

.news-page .pagination-wrap .page-numbers.dots {
    min-width: 24px;
    padding: 0;
    background: none;
    border-color: transparent;
}

.news-page .pagination-wrap .page-numbers.prev::before,
.news-page .pagination-wrap .page-numbers.next::before {
    content: "";
    width: 8px;
    height: 8px;
    border-top: 1.5px solid var(--color-green-dark);
    border-right: 1.5px solid var(--color-green-dark);
}

.news-page .pagination-wrap .page-numbers.next::before {
    margin-right: 3px;
    transform: rotate(45deg);
}

.news-page .pagination-wrap .page-numbers.prev::before {
    margin-left: 3px;
    transform: rotate(-135deg);
}

/* ==========================================================
   サイドバー（記事詳細でも流用）
   ========================================================== */
.news-side {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 32px 24px 40px;
    background: var(--color-bg-light);
}

.news-side-en {
    display: block;
    color: var(--color-green-dark);
    font-size: .6875rem;
    font-weight: 500;
    letter-spacing: .14em;
    line-height: 1.4;
}

.news-side-title {
    margin: 4px 0 20px;
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: .06em;
}

.news-side-title::after {
    content: "";
    display: block;
    width: 32px;
    height: 2px;
    margin-top: 10px;
    background: var(--color-green);
}

.news-side-list {
    margin: 0;
    padding: 0;
    list-style: none;
    background: #fff;
}

.news-side-list li + li {
    border-top: 1px solid var(--color-line);
}

.news-side-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: inherit;
    text-decoration: none;
    transition: background-color .2s;
}

.news-side-link::after {
    content: "";
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    border-top: 1.5px solid var(--color-green-dark);
    border-right: 1.5px solid var(--color-green-dark);
    transform: rotate(45deg);
}

.news-side-link:hover {
    background: var(--color-bg-light);
}

/* 最近のお知らせ */
.news-side-recent-body {
    flex: 1;
    min-width: 0;
}

.news-side-recent-date {
    display: block;
    color: var(--color-subtext);
    font-family: var(--font-serif);
    font-size: .75rem;
    letter-spacing: .04em;
    line-height: 1.6;
}

.news-side-recent-title {
    display: block;
    font-size: .8125rem;
    font-weight: 500;
    line-height: 1.6;
}

/* カテゴリー */
.news-side-cat-name {
    flex: 1;
    font-size: .875rem;
    line-height: 1.6;
}

.news-side-cat-count {
    color: var(--color-subtext);
    font-size: .75rem;
}

/* ==========================================================
   Responsive
   ========================================================== */
@media screen and (max-width: 900px) {
    .news-page {
        padding: 48px 0 72px;
    }

    .news-page-inner {
        grid-template-columns: 1fr;
        row-gap: 48px;
    }
}

@media screen and (max-width: 767px) {
    .news-page {
        padding: 40px 0 56px;
    }

    .news-page-title {
        margin-bottom: 20px;
        font-size: 1.5rem;
    }

    .news-page-link {
        grid-template-columns: minmax(0, 1fr) 16px;
        grid-template-areas:
            "meta arrow"
            "body arrow";
        row-gap: 8px;
        padding: 18px 4px;
    }

    .news-page-link::after {
        grid-area: arrow;
    }

    .news-page-meta {
        grid-area: meta;
    }

    .news-page-body {
        grid-area: body;
    }

    .news-page-date {
        flex: 0 0 auto;
    }

    .news-page-cat {
        flex: 0 0 auto;
        min-width: 72px;
    }

    .news-page-item-title {
        font-size: 1rem;
    }

    .news-page-excerpt {
        font-size: .75rem;
        line-height: 1.8;
    }

    .news-page .pagination-wrap {
        margin-top: 28px;
    }

    .news-page .pagination-wrap .page-numbers {
        min-width: 36px;
        height: 36px;
    }

    .news-side {
        gap: 32px;
        padding: 28px 20px 32px;
    }
}

/* スクリーンリーダー用テキスト */
.news-page .pagination-wrap .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================
   記事詳細ページ（news-single.html）
   - レイアウトは .news-page / .news-page-inner / .news-side-* を流用
   - 日付・カテゴリーは .news-page-date / .news-page-cat を流用
   - 固有クラスは .news-single-* のみ
   ========================================================== */

.news-single {
    min-width: 0; /* グリッド内で長い文字列・画像がはみ出さないように */
}

/* ---------- 記事ヘッダー ---------- */
.news-single-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 14px;
}

.news-single-title {
    margin: 0 0 32px;
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: .06em;
    overflow-wrap: anywhere;
}

/* ---------- アイキャッチ（なければ figure ごと削除） ---------- */
.news-single-eyecatch {
    margin: 0 0 32px;
}

.news-single-eyecatch img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 8 / 5;
    object-fit: cover;
    max-width: 800px;
    margin-inline: auto; /* 中央寄せ（左寄せでよければ不要） */
}

/* ---------- 記事本文 ---------- */
.news-single-body {
    color: var(--color-text);
    font-size: .9375rem;
    line-height: 2.1;
    letter-spacing: .04em;
    overflow-wrap: anywhere;
}

.news-single-body > :first-child {
    margin-top: 0;
}

.news-single-body > :last-child {
    margin-bottom: 0;
}

.news-single-body p {
    margin: 0 0 1.6em;
}

.news-single-body h2 {
    margin: 2.4em 0 1em;
    padding-bottom: .5em;
    border-bottom: 2px solid var(--color-green);
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: .06em;
}

.news-single-body h3 {
    margin: 2em 0 .9em;
    padding-left: 12px;
    border-left: 3px solid var(--color-green);
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: .05em;
}

.news-single-body h4 {
    margin: 1.8em 0 .7em;
    color: var(--color-green-dark);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.7;
}

.news-single-body a {
    color: var(--color-green-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.news-single-body a:hover {
    text-decoration: none;
}

.news-single-body ul,
.news-single-body ol {
    margin: 0 0 1.6em;
    padding-left: 1.6em;
}

.news-single-body li + li {
    margin-top: .3em;
}

.news-single-body img {
    display: block;
    max-width: 100%;
    height: auto;
}

.news-single-body figure {
    margin: 2em 0;
}

.news-single-body figcaption {
    margin-top: 8px;
    color: var(--color-subtext);
    font-size: .8125rem;
    line-height: 1.7;
}

.news-single-body blockquote {
    margin: 2em 0;
    padding: 20px 24px;
    background: var(--color-bg-light);
    border-left: 3px solid var(--color-green);
}

.news-single-body blockquote > :last-child {
    margin-bottom: 0;
}

.news-single-body table {
    width: 100%;
    margin: 0 0 1.6em;
    border-collapse: collapse;
    font-size: .9375rem;
    line-height: 1.8;
}

.news-single-body th,
.news-single-body td {
    padding: 12px 14px;
    border: 1px solid var(--color-line);
    text-align: left;
    vertical-align: top;
}

.news-single-body th {
    background: var(--color-bg-light);
    font-weight: 500;
}

/* ---------- 記事下部：一覧へ戻る ---------- */
.news-single-footer {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid var(--color-line);
}

.news-single-back {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    min-width: 260px;
    padding: 16px 24px;
    color: var(--color-green-dark);
    background: #fff;
    border: 1px solid var(--color-green);
    font-size: .875rem;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.5;
    text-decoration: none;
    transition: color .2s, background-color .2s;
}

.news-single-back:hover {
    color: #fff;
    background: var(--color-green);
}

/* ---------- Responsive ---------- */
@media screen and (max-width: 767px) {
    .news-single-meta {
        margin-bottom: 10px;
    }

    .news-single-title {
        margin-bottom: 20px;
        font-size: 1.375rem;
    }

    .news-single-eyecatch {
        margin-bottom: 24px;
    }

    

    .news-single-body {
        font-size: .875rem;
        line-height: 2;
    }

    .news-single-body h2 {
        font-size: 1.1875rem;
    }

    .news-single-body h3 {
        font-size: 1.0625rem;
    }

    .news-single-body table {
        font-size: .8125rem;
    }

    .news-single-body th,
    .news-single-body td {
        padding: 10px;
    }

    .news-single-footer {
        margin-top: 36px;
        padding-top: 28px;
    }

    .news-single-back {
        display: flex;
        width: 100%;
        min-width: 0;
    }
}

/* ==========================================================
   記事本文：WordPress標準ブロックの調整（2026-11-05 追加）
   - 新規クラスなし。WP標準ブロックのクラスに対して指定
   - 表ブロック：見出し行下の太線を消す／figureと二重になる下余白を解消
   - 区切り線ブロック：テーマの線色・余白に統一
   ========================================================== */
.news-single-body .wp-block-table thead {
    border-bottom: 0;
}

.news-single-body .wp-block-table table {
    margin-bottom: 0;
}

.news-single-body .wp-block-separator {
    margin: 2.4em 0;
    border: 0;
    border-top: 1px solid var(--color-line);
    opacity: 1;
}