/* ==========================================================================
   お知らせ（News）— microCMS連携用スタイル
   ========================================================================== */

/* ---------- 一覧 ---------- */
.news-wrap {
    max-width: 880px;
    margin: 0 auto;
}

.news-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line);
}

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

.news-message {
    padding: 28px 8px;
    color: var(--muted);
    text-align: center;
}

.news-item a {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 26px 12px;
    color: var(--ink);
    text-decoration: none;
    transition: background-color 0.4s var(--ease);
}

.news-item a:hover {
    background-color: var(--paper);
}

.news-date {
    flex-shrink: 0;
    min-width: 96px;
    font-family: var(--font-en);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    color: var(--muted);
}

.news-title {
    flex: 1;
    font-weight: 500;
    line-height: 1.7;
}

.news-arrow {
    flex-shrink: 0;
    color: var(--muted);
    transition: transform 0.4s var(--ease), color 0.4s var(--ease);
}

.news-item a:hover .news-arrow {
    transform: translateX(4px);
    color: var(--accent);
}

.news-more-wrap {
    text-align: center;
    margin-top: 80px;
}

.news-more {
    font-family: inherit;
    cursor: pointer;
}

.news-more[hidden] {
    display: none;
}

.news-more:disabled {
    opacity: 0.5;
    cursor: wait;
}

/* ---------- 詳細 ---------- */
.news-article {
    max-width: 800px;
    margin: 0 auto;
}

.news-article-date {
    display: block;
    font-family: var(--font-en);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    color: var(--muted);
}

.news-article-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    line-height: 1.5;
    margin: 12px 0 40px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
}

.news-article-eyecatch {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin-bottom: 48px;
}

.news-article-eyecatch[hidden] {
    display: none;
}

/* 本文（microCMSのリッチエディタで書いた内容） */
.news-body {
    font-size: 1rem;
    line-height: 2;
    color: var(--ink);
}

.news-body > * + * {
    margin-top: 1.3em;
}

.news-body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.5;
    margin-top: 2.4em;
    padding-bottom: 0.4em;
    border-bottom: 1px solid var(--line);
}

.news-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.5;
    margin-top: 2em;
}

.news-body h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 1.8em;
}

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

.news-body strong { font-weight: 700; }

.news-body ul { list-style: disc; padding-left: 1.5em; }
.news-body ol { list-style: decimal; padding-left: 1.5em; }
.news-body li + li { margin-top: 0.3em; }

.news-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

.news-body blockquote {
    padding: 4px 0 4px 1.2em;
    border-left: 3px solid var(--line);
    color: var(--muted);
}

.news-body pre {
    overflow-x: auto;
    padding: 16px 20px;
    background: var(--paper);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    line-height: 1.7;
}

.news-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

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

.news-body th { background: var(--paper); }

.news-back {
    margin-top: 104px;
    padding-top: 64px;
    border-top: 1px solid var(--line);
    text-align: center;
}

/* ---------- スマホ ---------- */
@media (max-width: 720px) {
    .news-item a {
        flex-wrap: wrap;
        gap: 6px 16px;
        padding: 20px 4px;
    }

    .news-title {
        flex-basis: 100%;
        order: 3;
    }

    .news-arrow {
        display: none;
    }

    .news-more-wrap {
        margin-top: 56px;
    }

    .news-back {
        margin-top: 72px;
        padding-top: 48px;
    }

    .news-article-title {
        margin-bottom: 28px;
        padding-bottom: 20px;
    }
}
