/*
 * News Page Styles（ページレイアウト・アーカイブ）
 * グリッド・カードは c-news-list.css で定義
 */
:root {
    --news-gap: var(--f-space-l);
    --news-tile-size: 300px;
}

.news-wrapper {
    padding-top: var(--f-space-huge-xxxl);
    padding-bottom: var(--f-space-huge-xxl);
    min-height: 100vh;
}

.news-header {
    text-align: center;
    margin-bottom: var(--f-space-huge);
    padding: 0 var(--f-space-l);
}

/* 罫線ブロックの横幅を index / service と同様に（テンプレでは削除予定） */
.news-wrapper .food-sample-message {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 罫線ブロックとニュース一覧の間を100px詰める（ブロックの下マージンは触れず下罫線を維持） */
.news-wrapper .food-news-container .c-news-list {
    padding-top: 0;
    background-color: transparent;
}

/* スマホのみ：罫線ブロックだけ幅90%に（他要素に影響なし・テンプレでは削除予定） */
@media (max-width: 768px) {
    .news-wrapper .food-sample-message {
        width: 90%;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
}
.news-title {
    font-family: var(--food-font-accent);
    font-size: var(--f-font-size-huge-xxxxl);
    color: var(--food-color-accent);
    letter-spacing: var(--f-letter-spacing-normal);
    margin-bottom: var(--f-space-s);
}
.news-subtitle {
    font-size: var(--f-font-size-base);
    color: var(--food-color-sub);
    letter-spacing: var(--f-letter-spacing-normal);
}

/* 旧 .news-filter / .news-grid / .news-card は c-news-list コンポーネントで提供 */

/* --- News Detail Page --- */
.news-detail-wrapper {
    padding-top: calc(var(--f-space-huge-xxxl) - 30px);
    padding-bottom: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.news-back-link {
    display: block;
    text-align: center;
    margin-top: 0;
    color: var(--food-color-sub);
    text-decoration: none;
    font-size: var(--f-font-size-base);
    letter-spacing: var(--f-letter-spacing-normal);
}
.news-back-link:hover {
    color: var(--food-color-accent);
}
/* カードとフッターの間の空間で「ニュース一覧へ戻る」を配置（20px上寄せ） */
.news-detail-footer {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: var(--f-space-l) 0 var(--f-space-l) 0;
    box-sizing: border-box;
}
/* ニュース詳細のみ：リンク直下〜フッター間の余白を抑える */
body.p-news-detail .c-footer {
    padding-top: var(--f-space-l);
}
.news-detail-footer .food-sample-message {
    margin-top: var(--f-space-l);
    margin-bottom: var(--f-space-xxxl);
}

/* --- News Detail Card（インライン style 禁止・クラス/変数化） --- */
.news-detail-card {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: var(--f-radius-s);
    overflow: hidden;
}

.news-detail-card__img-wrap {
    padding: 0;
    text-align: center;
}

.news-detail-card__img {
    width: 100%;
    max-width: 600px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-top-left-radius: var(--f-radius-s);
    border-top-right-radius: var(--f-radius-s);
    display: block;
    vertical-align: top;
}

.news-detail-card__body {
    padding: var(--f-space-xxl) var(--f-space-xl);
    text-align: left;
    color: var(--f-color-text);
    font-family: var(--f-font-serif);
}

.news-detail-card__meta {
    margin: 0 0 25px 0;
    font-size: var(--f-font-size-base);
    color: var(--food-color-price);
    letter-spacing: var(--f-letter-spacing-normal);
    font-family: "Times New Roman", serif;
}

.news-detail-card__category {
    border: 1px solid var(--food-color-price);
    padding: 2px var(--f-space-s);
    margin-left: var(--f-space-s);
    font-size: var(--f-font-size-s);
}

.news-detail-card__title {
    margin: 0 0 var(--f-space-xl) 0;
    font-size: var(--f-font-size-xxxl);
    line-height: 1.6;
    font-weight: var(--f-font-weight-normal);
    color: var(--f-color-text);
}

.news-detail-card__divider {
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin-bottom: var(--f-space-xl);
}

.news-detail-card__content {
    font-size: var(--f-font-size-l);
    line-height: 2.2;
    color: var(--f-color-sub-mid);
}

.news-detail-card__content p {
    margin-bottom: var(--f-space-l);
}

.news-detail-card__content p:last-child {
    margin-bottom: 0;
}

.news-detail-card__cta-wrap {
    margin-top: var(--f-space-xxl);
}

.news-detail-card__cta {
    display: block;
    padding: var(--f-space-m) var(--f-space-xxl);
    color: var(--food-color-price);
    text-decoration: none;
    font-size: var(--f-font-size-base);
    letter-spacing: var(--f-letter-spacing-normal);
    border: 1px solid var(--food-color-price);
    border-radius: var(--f-radius-none);
    text-align: center;
    transition: background-color var(--f-duration-fast) var(--f-ease), color var(--f-duration-fast) var(--f-ease);
}

.news-detail-card__cta:hover {
    background-color: var(--food-color-price);
    color: var(--f-color-btn-hover-text);
}

/* Archive Button & Dropdown */
.food-news-archive {
    text-align: center;
    position: relative;
    z-index: 10;
    margin-top: calc(var(--f-space-huge) - 100px);
    transition: margin-bottom var(--f-duration-slower) var(--f-ease-smooth);
}
.news-archive-wrapper {
    display: inline-block;
    position: relative;
}
.news-archive-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--f-space-s);
    padding: var(--f-space-m) var(--f-space-xxl);
    background: transparent;
    border: 1px solid var(--food-color-accent);
    color: var(--food-color-accent);
    font-size: var(--f-font-size-base);
    letter-spacing: var(--f-letter-spacing-wider);
    cursor: pointer;
    transition: all var(--f-duration-fast) ease;
}
.news-archive-btn:hover {
    background-color: var(--food-color-accent);
    color: var(--f-color-btn-hover-text);
}
.archive-caret {
    transition: transform var(--f-duration-fast) ease;
}
.news-archive-wrapper.is-active .archive-caret,
.news-archive-wrapper.active .archive-caret {
    transform: rotate(180deg);
}
.news-archive-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(var(--f-space-s));
    width: 100%;
    min-width: 200px;
    background: rgba(26, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--f-border-subtle);
    list-style: none;
    padding: var(--f-space-s) 0;
    margin-top: var(--f-space-s);
    opacity: 0;
    visibility: hidden;
    transition: all var(--f-duration-slowest) var(--f-ease-smooth);
    box-shadow: var(--f-shadow-rich);
}
.news-archive-wrapper.is-active .news-archive-dropdown,
.news-archive-wrapper.active .news-archive-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.news-archive-dropdown li a {
    display: block;
    padding: 12px var(--f-space-l);
    color: var(--f-color-text);
    text-decoration: none;
    font-size: var(--f-font-size-base);
    letter-spacing: var(--f-letter-spacing-normal);
    transition: background var(--f-duration-fast);
}
.news-archive-dropdown li a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--food-color-accent);
}
