/* ==========================================
   NEWS ページ共通・フィルターボタンのスタイル
   ========================================== */
.news-page,
.news-detail-page {
    padding-top: 180px;
    padding-bottom: 120px;
}

/* カテゴリー絞り込みボタンエリア */
.news-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 40px;
    margin-bottom: 48px;
}

/* カテゴリーボタン（元のモノトーンデザインを復元） */
.filter-btn {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    color: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.15);
    padding: 10px 24px;
    font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
    outline: none;
}

.filter-btn:hover {
    color: #000000;
    border-color: #000000;
}

.filter-btn.active {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

/* 読み込み中・エラー時のステータスメッセージ */
.news-status {
    font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: rgba(0, 0, 0, 0.4);
    padding: 60px 0;
}

/* ==========================================
   NEWS 一覧リストのスタイル
   ========================================== */
.news-container {
    width: 100%;
    display: flex;
    flex-direction: column;
}

a.news-item,
.news-item {
    display: flex;
    align-items: baseline;
    gap: 32px;
    width: 100%;
    padding: 28px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    text-decoration: none !important;
    color: #000000 !important;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-sizing: border-box;
}

a.news-item:first-child,
.news-item:first-child {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

a.news-item:hover,
.news-item:hover {
    opacity: 0.6;
    transform: translateX(6px);
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    min-width: 180px;
}

.news-date {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(0, 0, 0, 0.55);
    text-decoration: none;
}

.news-category {
    font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    padding: 4px 12px;
    border: 1px solid rgba(0, 0, 0, 0.25);
    color: #000000;
    text-decoration: none;
}

.news-title {
    flex: 1;
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.7;
    letter-spacing: 0.04em;
    color: #000000;
    text-decoration: none;
    word-break: normal;
    line-break: strict;
    overflow-wrap: break-word;
}

/* ==========================================
   NEWS 詳細ページ＆埋め込み要素のスタイル
   ========================================== */
.news-detail-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: #000000;
    margin: 24px 0 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.article-body {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1rem;
    line-height: 2;
    letter-spacing: 0.04em;
    color: rgba(0, 0, 0, 0.85);
    word-break: normal;
    line-break: strict;
    overflow-wrap: break-word;
}

.article-body h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 56px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.article-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 36px;
    margin-bottom: 14px;
}

.article-body p {
    margin-bottom: 24px;
}

.article-body img {
    max-width: 100%;
    height: auto;
    margin: 30px 0;
    display: block;
}

.article-body ul,
.article-body ol {
    margin-bottom: 24px;
    padding-left: 20px;
}

.article-body a {
    color: #000000;
    text-decoration: underline;
    overflow-wrap: anywhere;
}

/* 埋め込みリンク（iframe / YouTube / SNS / リンクカード）対応 */
.article-body iframe {
    max-width: 100% !important;
    margin: 28px 0;
    border: none;
    display: block;
}

.article-body iframe[src*="youtube.com"],
.article-body iframe[src*="youtu.be"],
.article-body iframe[src*="vimeo.com"] {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

.article-body .iframely-embed,
.article-body .embedly-card {
    width: 100%;
    max-width: 100%;
    margin: 28px 0;
}

.article-body .twitter-tweet,
.article-body .instagram-media {
    margin: 28px auto !important;
    max-width: 100% !important;
}

/* スマホ表示時の調整 */
@media (max-width: 767px) {

    .news-page,
    .news-detail-page {
        padding-top: 120px;
        padding-bottom: 80px;
    }

    .news-filter {
        gap: 8px;
        margin-top: 28px;
        margin-bottom: 32px;
    }

    .filter-btn {
        min-height: 44px;
        padding: 10px 16px;
        letter-spacing: 0.12em;
    }

    a.news-item,
    .news-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 20px 0;
    }

    .news-meta {
        min-width: auto;
        flex-wrap: wrap;
        gap: 8px 12px;
    }

    .news-title {
        font-size: 1rem;
        line-height: 1.8;
        letter-spacing: 0.02em;
    }

    .news-detail-title {
        font-size: clamp(1.3rem, 5.2vw, 1.6rem);
        line-height: 1.65;
        letter-spacing: 0.02em;
        margin: 20px 0 28px;
        padding-bottom: 20px;
    }

    .article-body {
        font-size: 1rem;
        line-height: 1.9;
        letter-spacing: 0.02em;
    }

    .article-body h2 {
        font-size: 1.25rem;
        line-height: 1.6;
        margin-top: 40px;
        margin-bottom: 16px;
    }

    .article-body h3 {
        font-size: 1.1rem;
        line-height: 1.65;
        margin-top: 28px;
        margin-bottom: 12px;
    }

    .article-body p {
        margin-bottom: 20px;
    }

    .article-body ul,
    .article-body ol {
        padding-left: 1.4em;
    }
}
