/* ==========================================================================
   お知らせ一覧・詳細（home.php / single.php）
   ========================================================================== */

.news-page.site-main {
    padding: 0;
    max-width: none;
    margin-top: 0;
}

.news-page {
    --news-mincho: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
    --news-align-x: var(--header-padding-x, 40px);
    --news-max: 880px;
    --news-gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);

    width: 100%;
    max-width: 100%;
    padding-bottom: 120px;
    background: transparent;
    color: #111111;
}

/* --------------------------------------------------------------------------
   一覧
   -------------------------------------------------------------------------- */
.news-page--archive .page-hero {
    padding-bottom: 4.5rem;
}

.news-page__body {
    padding: 5rem var(--news-align-x) 5rem;
}

.news-page__inner {
    max-width: var(--news-max);
    margin: 0 auto;
}

.news-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.news-list__item {
    border-bottom: 1px solid #e5e7eb;
}

.news-list__item:first-child {
    border-top: 1px solid #e5e7eb;
}

.news-list__link {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px 24px;
    padding: 28px 0;
    text-decoration: none;
    color: #333333;
    transition: opacity 0.3s;
}

.news-list__link:hover {
    opacity: 0.7;
}

.news-list__date {
    font-size: 0.95rem;
    color: #666666;
    font-family: monospace;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.news-list__title {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.5;
}

.news-list__icon {
    color: #2563eb;
    font-size: 0.9rem;
}

.news-empty {
    margin: 0;
    padding: 48px 0;
    text-align: center;
    color: #666666;
}

/* ページ送り */
.news-pagination {
    margin-top: 48px;
}

.news-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 16px;
}

.news-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    padding: 8px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    color: #333333;
    text-decoration: none;
    font-size: 0.95rem;
    transition: opacity 0.3s, border-color 0.3s;
}

.news-pagination .page-numbers:hover {
    opacity: 0.7;
    border-color: #2563eb;
}

.news-pagination .page-numbers.current {
    background: var(--news-gradient);
    border-color: transparent;
    color: #ffffff;
    font-weight: 700;
}

.news-pagination .page-numbers.dots {
    border: none;
    min-width: auto;
    padding: 8px 4px;
}

/* --------------------------------------------------------------------------
   詳細
   -------------------------------------------------------------------------- */
.news-page--single .page-hero--news-single {
    padding-bottom: 4rem;
}

.news-article {
    padding: 5rem var(--news-align-x) 0;
}

.news-article__header {
    margin: 0 0 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.news-article__title {
    margin: 0 0 1rem;
    font-family: var(--news-mincho);
    font-size: clamp(1.5rem, 3.2vw, 2rem);
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: #111111;
}

.news-article__date {
    display: block;
    font-size: 0.95rem;
    color: #666666;
    font-family: monospace;
    letter-spacing: 0.04em;
}

.news-article__content {
    font-size: 1rem;
    line-height: 2;
    color: #333333;
}

.news-article__content > *:first-child {
    margin-top: 0;
}

.news-article__content > *:last-child {
    margin-bottom: 0;
}

.news-article__content p {
    margin: 0 0 1.5em;
}

.news-article__content h2,
.news-article__content h3,
.news-article__content h4 {
    margin: 2em 0 0.75em;
    font-family: var(--news-mincho);
    font-weight: 700;
    line-height: 1.4;
    color: #111111;
}

.news-article__content h2 {
    font-size: 1.35rem;
}

.news-article__content h3 {
    font-size: 1.2rem;
}

.news-article__content ul,
.news-article__content ol {
    margin: 0 0 1.5em;
    padding-left: 1.5em;
}

.news-article__content li {
    margin-bottom: 0.5em;
}

.news-article__content a {
    color: #2563eb;
    text-decoration: underline;
}

.news-article__content a:hover {
    opacity: 0.8;
}

.news-article__content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5em 0;
}

.news-article__content blockquote {
    margin: 1.5em 0;
    padding: 16px 24px;
    border-left: 4px solid #2563eb;
    background: #f9fafb;
    color: #444444;
}

.news-article__back {
    margin: 5rem 0;
    text-align: center;
}

.btn-news-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    border: 1px solid #111111;
    border-radius: 50px;
    color: #111111;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: opacity 0.3s;
}

.btn-news-back:hover {
    opacity: 0.7;
}

/* --------------------------------------------------------------------------
   スマートフォン
   -------------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
    .news-list__link {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        gap: 8px 12px;
        padding: 18px 0;
    }

    .news-list__date {
        grid-column: 1;
        grid-row: 1;
    }

    .news-list__title {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .news-list__icon {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
    }

    .news-page__body {
        padding-top: 3.5rem;
    }

    .news-article {
        padding-top: 3.5rem;
    }

    .news-article__header {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }
}
