/* ==============================
   News Section
============================== */

.news-section {
    padding: 64px 24px 72px;
    background: #111215;
    border-bottom: 1px solid var(--border-color);
}

.news-inner {
    max-width: 1180px;
    margin: 0 auto;
}

.news-header {
    margin-bottom: 30px;
    text-align: left;
}

.news-header .section-label {
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.news-header h2 {
    color: var(--text-main);
    font-size: 30px;
}

/* ==============================
   News Board
   PC: left list / right detail
============================== */

.news-board {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 22px;
    align-items: stretch;
}

.news-list {
    max-height: 420px;
    overflow-y: auto;
    padding-right: 6px;
}

.news-list::-webkit-scrollbar {
    width: 6px;
}

.news-list::-webkit-scrollbar-thumb {
    background: rgba(224, 122, 95, 0.55);
    border-radius: 999px;
}

.news-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
}

.news-list-item {
    width: 100%;
    margin-bottom: 10px;
    padding: 15px 16px;
    text-align: left;
    background: rgba(28, 29, 34, 0.82);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-main);
    cursor: pointer;
    transition: 0.2s ease;
}

.news-list-item:hover,
.news-list-item.is-active {
    border-color: rgba(224, 122, 95, 0.72);
    background: rgba(36, 37, 42, 0.92);
}

.news-list-date {
    margin-bottom: 6px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.news-list-title {
    color: var(--text-main);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
}

.news-detail {
    min-height: 300px;
    padding: 28px 30px;
    background: rgba(28, 29, 34, 0.84);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.news-detail-date {
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}

.news-detail-title {
    margin-bottom: 18px;
    color: var(--text-main);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.6;
}

.news-detail-body {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 2;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.news-mobile-detail {
    display: none;
}

.news-empty,
.news-error {
    padding: 20px;
    color: var(--text-muted);
    text-align: center;
    background: rgba(28, 29, 34, 0.72);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

/* ==============================
   Mobile
   Initial: list only
   Tap: expand detail under selected item
============================== */

@media (max-width: 768px) {
    .news-section {
        padding: 44px 18px 50px;
    }

    .news-header {
        margin-bottom: 22px;
        text-align: left;
    }

    .news-header h2 {
        font-size: 26px;
    }

    .news-board {
        display: block;
    }

    .news-list {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .news-list-item {
        margin-bottom: 10px;
        padding: 18px;
        border-radius: 14px;
    }

    .news-list-date {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .news-list-title {
        font-size: 18px;
        line-height: 1.65;
    }

    /*
      モバイルでは右側/下側の詳細枠は初期表示しない。
      本文は選択した一覧カード内に展開する。
    */
    .news-detail {
        display: none;
    }

    .news-mobile-detail {
        display: none;
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .news-list-item.is-active .news-mobile-detail {
        display: block;
    }

    .news-mobile-body {
        color: var(--text-muted);
        font-size: 14px;
        line-height: 1.9;
        white-space: pre-wrap;
        overflow-wrap: anywhere;
    }
}
