:root {
    --primary-color: #b59b6d; /* 金茶系のアクセント */
    --bg-light: #f9f9f9;
}


.news-container {
    min-height: 100vh; /* 最小の高さを画面いっぱいに確保 */
    margin: 0 auto; /* 左右の中央揃えのみ維持 */
    max-width: 1200px; /* h2/h6と最大幅を揃える */
    padding: var(--section-top-padding) 0 var(--section-bottom-padding); /* 左右のパディングはnews-contentで管理 */
    scroll-margin-top: 0; /* ページ上端に合わせることでヒーローページを完全に隠す */
}

.news-content {
    display: flex;
    gap: 80px; /* サイドバーとの間隔を少し広げてゆとりを持たせる */
    padding: 0 var(--side-gutter); /* h2/h6と左右の余白を揃える */
}

/* 一覧部分 */
.news-list {
    flex: 0 0 60vw; /* 画面幅の60%に固定 */
    max-width: 60vw;
    margin-left: 0; /* news-contentのpaddingで調整するためリセット */
}

.news-item {
    padding: 25px 0px 0px 0;
    border-bottom: 1px solid #eee;
    transition: background 0.3s ease;
}

.news-item:hover {
    background-color: var(--bg-light);
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.date {
    font-size: 0.85rem;
    color: var(--text-sub);
}

.tag {
    font-size: 0.7rem;
    padding: 2px 8px;
    border: 1px solid #ccc;
    border-radius: 2px;
    color: var(--text-sub);
}

.tag-important {
    border-color: var(--important-color);
    color: var(--important-color);
    font-weight: bold;
}

.tag-holiday {
    border-color: var(--tag-holiday);
    color: var(--tag-holiday);
}

.tag-delivery {
    border-color: var(--tag-delivery);
    color: var(--tag-delivery);
}

.tag-other {
    border-color: var(--tag-other);
    color: var(--tag-other);
}

.news-title {
    display: block;
    font-size: 1.05rem;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.news-title:hover {
    color: var(--primary-color);
}

.news-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(17, 24, 39, 0.55);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.news-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.news-modal__content {
    position: relative;
    width: min(640px, 100%);
    max-height: 80vh;
    overflow-y: auto;
    padding: 32px 28px 28px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.news-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: 0;
    background: transparent;
    font-size: 1.6rem;
    color: var(--text-sub);
    cursor: pointer;
}

.news-modal__eyebrow {
    margin: 0 0 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-color);
}

.news-modal__title {
    margin: 0 0 14px;
    font-size: 1.2rem;
    color: var(--text-main);
}

.news-modal__body {
    white-space: pre-line;
    line-height: 1.8;
    color: var(--text-main);
}

/* サイドバー */
.news-sidebar {
    width: 240px;
}

.category-nav ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.category-nav li {
    padding: 10px 0;
    font-size: 0.9rem;
    cursor: pointer;
    border-bottom: 1px solid transparent;
    transition: 0.3s;
    display: flex;
    align-items: center;
}

.category-nav li::before {
    content: "●";
    font-size: 0.5rem;
    margin-right: 10px;
    color: #ddd;
}

.category-nav li.active {
    color: var(--primary-color);
    font-weight: bold;
}

.category-nav li.active::before {
    color: var(--primary-color);
}

.category-nav li:hover {
    color: var(--primary-color);
}

/* アーカイブセレクトボックス */
.archive-select select {
    width: 80%;
    padding: 10px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 0.9rem;
    border-radius: 4px;
    cursor: pointer;
}

/* レスポンシブ */
/* styles.cssと同様のレスポンシブ設定 */
@media (max-width: 1024px) {
    :root {
        --side-gutter: 20px; /* スマホ・タブレットでは20pxに切り替え */
    }
    .news-container {
        max-width: none; /* 画面幅いっぱいに広げる */
        min-height: auto; /* 高さを自動調整 */
        padding: var(--section-top-padding) 0 var(--section-bottom-padding); /* 左右のパディングはnews-contentで管理 */
    }
    .news-content {
    
        flex-direction: column; /* 縦並びに変更 */
        gap: 40px;
        align-items: flex-start; /* 本文のラインに合わせて左揃えに変更 */
        padding: 0 20px;
    }
    .news-modal__content {
        max-height: 90vh;
    }

    .news-list,
    .news-sidebar {
        padding-left: 0; /* ← 左余白の二重化を防ぐ */
        width: 100%;
        max-width: none;
        margin-left: 0;
    }

    .news-sidebar {
        order: -1;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .category-nav ul {
        display: flex; /* カテゴリーを横並びに */
        flex-wrap: wrap;
        justify-content: flex-start; /* 左揃え */
        gap: 10px 20px;
        margin-bottom: 20px; /* 50vhから調整 */
    }
    .category-nav li {
        border-bottom: none; /* 下線を消してボタンのような見た目に調整 */
    }
    .archive-select {
        width: 100%;
        display: flex;
        justify-content: flex-start; /* 左揃え */
    }
    .archive-select select {
        width: 200px; /* 中央配置時に適切な幅に固定 */
    }
}

@media (max-width: 788px) {
    .news-content {
        padding: 0; /* 親要素のパディングをリセットして画面端まで広げる */
    }
    .news-header h2,
    .news-header h6,
    .news-list,
    .news-sidebar {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    .news-header h6,
    .news-list,
    .news-sidebar {
        /* h2のテキスト開始位置（線の幅15vw + 隙間15px）に揃える */
        padding-left: calc(15vw + 15px);
    }
}