/* ================================================================
   WAVE SALAD - NEWS機能 共通スタイル
   news.html / news/detail.html / admin/news-admin.html で共通利用
   既存サイト(index.html)の配色・フォントに合わせています
   ================================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.news-body {
  font-family: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  background: #f7f5f2;
  color: #333;
  font-size: 14px;
  line-height: 1.8;
}
.news-body a { text-decoration: none; color: inherit; }
.news-body img { display: block; max-width: 100%; }

/* ── ヘッダー(既存サイトと共通デザイン) ── */
.site-header {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(229,221,211,0.7);
  position: sticky; top: 0; z-index: 300;
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}
.header-inner {
  max-width: 1400px; margin: 0 auto; padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between; height: 76px;
}
.logo-title { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; flex-shrink: 0; }
.logo-title img { height: 32px; width: auto; flex-shrink: 0; }
.logo-title-text { font-family: 'Shippori Mincho', serif; font-size: 16px; font-weight: 600; letter-spacing: 0.14em; color: #2d2d2d; white-space: nowrap; }
.catalog-nav { display: flex; align-items: center; gap: 6px; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 4px; position: relative;
  padding: 10px 14px; font-size: 13px; letter-spacing: 0.02em; color: #444; white-space: nowrap;
  transition: color 0.2s; cursor: pointer;
}
.nav-link::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 1px;
  background: #8b6f47; transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
.nav-link:hover { color: #6b5438; }
.nav-link:hover::after { transform: scaleX(1); }
.nav-item.is-active > .nav-link { color: #6b5438; font-weight: 500; }
.nav-item.is-active > .nav-link::after { transform: scaleX(1); }
.nav-link .caret { font-size: 9px; opacity: 0.55; transition: transform 0.2s ease; }
.nav-item:hover .nav-link .caret { transform: rotate(180deg); }
.nav-item.nav-cta .nav-link { background: #8b6f47; color: #fff; border-radius: 3px; padding: 9px 18px; margin-left: 6px; }
.nav-item.nav-cta .nav-link::after { display: none; }
.nav-item.nav-cta .nav-link:hover { background: #6d5438; color: #fff; }
.nav-dropdown {
  opacity: 0; visibility: hidden; pointer-events: none;
  position: absolute; top: calc(100% + 8px); left: 0;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(10px);
  border: 1px solid #ece3d5; border-radius: 4px; box-shadow: 0 14px 32px rgba(0,0,0,0.1);
  min-width: 200px; z-index: 500; padding: 8px 0;
  transform: translateY(6px); transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.nav-dropdown a { display: block; padding: 10px 20px; font-size: 12.5px; color: #555; transition: background 0.15s, color 0.15s, padding-left 0.15s; }
.nav-dropdown a:hover { background: #f9f6f3; color: #8b6f47; padding-left: 24px; }
.nav-item:hover .nav-dropdown, .nav-item:focus-within .nav-dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.mobile-search-btn, .mobile-menu-btn { display: none; }
@media (max-width: 900px) {
  .catalog-nav { display: none; }
  .header-inner { padding: 0 20px; }
}

/* ── ハンバーガーメニュー(スマホ) ── */
.mobile-menu-btn {
  flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px; flex-shrink: 0;
}
.mobile-menu-btn span { display: block; width: 22px; height: 2px; background: #666; border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }
.mobile-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav-overlay {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(20,16,12,0.45); z-index: 280; opacity: 0; transition: opacity 0.28s ease;
}
.mobile-nav-overlay.show { display: block; }
.mobile-nav-overlay.is-visible { opacity: 1; }
.mobile-nav-panel {
  background: #fff; border-bottom: 2px solid #e5ddd3; padding: 8px 0 20px;
  max-height: 100%; overflow-y: auto;
  transform: translateY(-16px); opacity: 0;
  transition: transform 0.3s cubic-bezier(.16,.84,.44,1), opacity 0.28s ease;
}
.mobile-nav-overlay.is-visible .mobile-nav-panel { transform: translateY(0); opacity: 1; }
.mobile-nav-cta-row { display: flex; flex-direction: column; gap: 10px; padding: 16px 20px 6px; }
.mobile-nav-cta { display: block; text-align: center; padding: 13px; border-radius: 4px; font-size: 13px; font-weight: 500; letter-spacing: 0.02em; }
.mobile-nav-cta.primary { background: #8b6f47; color: #fff; }
.mobile-nav-cta.outline { border: 1px solid #8b6f47; color: #8b6f47; }
.mobile-nav-link { display: block; padding: 13px 24px; border-bottom: 1px solid #f5f0ea; font-size: 14px; color: #444; transition: color 0.15s, background 0.15s; }
.mobile-nav-link:last-child { border-bottom: none; }
.mobile-nav-link:active { background: #f9f6f3; color: #8b6f47; }
.mobile-nav-link.is-active { color: #8b6f47; font-weight: 500; }
.mobile-nav-toggle {
  width: 100%; display: flex; align-items: stretch; justify-content: space-between;
  border-bottom: 1px solid #f5f0ea;
}
.mobile-nav-toggle-link { flex: 1; padding: 13px 24px; font-size: 14px; color: #444; }
.mobile-nav-toggle-chev {
  padding: 13px 20px; border: none; background: none; font-family: inherit; cursor: pointer; flex-shrink: 0;
}
.mobile-nav-toggle-chev .chev { font-size: 11px; opacity: 0.55; transition: transform 0.25s ease; }
.mobile-nav-toggle-chev.open .chev { transform: rotate(180deg); }
.mobile-nav-submenu { max-height: 0; overflow: hidden; background: #faf8f5; transition: max-height 0.3s ease; }
.mobile-nav-submenu a { display: block; padding: 12px 24px 12px 40px; font-size: 13px; color: #666; border-bottom: 1px solid #f0ebe3; }
.mobile-nav-submenu a:last-child { border-bottom: none; }
@media (max-width: 640px) {
  .mobile-menu-btn { display: flex; }
  .logo-title-text { font-size: 14px; }
}

/* ── 閉じCTA(price-list.html・商品ページと共通デザイン) ── */
.closing-cta { background: #2d2a26; color: #efe9df; padding: 72px 24px; text-align: center; }
.closing-cta-eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: #a99a85;
  text-transform: uppercase;
}
.closing-cta-title { font-family: 'Shippori Mincho', serif; font-size: 24px; margin: 14px 0 12px; }
.closing-cta-lead { font-size: 12.5px; color: #b5ab9c; max-width: 32em; margin: 0 auto 28px; line-height: 1.9; }
.closing-cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.closing-cta .btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 3px; font-size: 13px; letter-spacing: 0.03em;
  transition: background 0.2s, color 0.2s, border-color 0.2s; cursor: pointer;
  border: 1px solid transparent;
}
.closing-cta .btn-outline { border-color: #cfc7ba; color: #efe9df; }
.closing-cta .btn-outline:hover { background: #efe9df; color: #2d2a26; }
.closing-cta .btn-muted { border-color: #55504a; color: #a99a85; background: none; }
.closing-cta .btn-muted:hover { background: #3d3833; color: #efe9df; border-color: #6b6255; }
@media (max-width: 640px) {
  .closing-cta { padding: 44px 20px; }
  .closing-cta-title { font-size: 20px; margin: 10px 0 8px; }
  .closing-cta-lead { margin-bottom: 20px; }
}

/* ── フッター(price-list.html・index.html・商品ページと共通デザイン) ── */
.site-footer { background: #2d2a26; color: #cfc7ba; padding: 56px 32px 24px; }
.footer-inner {
  max-width: 1200px; margin: 0 auto 32px;
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px;
}
.footer-brand-logo { font-family: 'Shippori Mincho', serif; font-size: 18px; color: #fff; letter-spacing: 0.12em; margin-bottom: 12px; }
.footer-brand-desc { font-size: 12.5px; line-height: 1.9; color: #b5ab9c; margin-bottom: 12px; }
.footer-brand-company { font-size: 12px; line-height: 1.8; color: #9c9284; }
.footer-brand-link {
  display: inline-block; font-size: 12px; color: #b5ab9c; margin-top: 10px;
  text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s;
}
.footer-brand-link:hover { color: #fff; }
.footer-col h4 { font-size: 13px; color: #fff; font-weight: 500; margin-bottom: 14px; letter-spacing: 0.05em; }
.footer-col h4 a:hover { color: #b5ab9c; }
.footer-col a { display: block; font-size: 12.5px; color: #b5ab9c; padding: 5px 0; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding-top: 20px; border-top: 1px solid #45403a; font-size: 11px; color: #857c6e; text-align: center; }
@media (max-width: 800px) {
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-col--catalog > a { display: none; }
  .footer-col--catalog h4 { margin-bottom: 0; }
}

/* ── パンくず ── */
.news-breadcrumb {
  max-width: 900px; margin: 0 auto; padding: 24px 24px 0;
  font-size: 12px; color: #999;
}
.news-breadcrumb a { color: #8b6f47; }
.news-breadcrumb a:hover { text-decoration: underline; }
.news-breadcrumb .sep { margin: 0 6px; color: #ccc; }

/* ── ページ見出し(一覧ページ) ── */
.news-page-hero { background: #fff; border-bottom: 1px solid #e5ddd3; padding: 56px 24px 40px; text-align: center; }
.news-page-eyebrow {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 12px; letter-spacing: 0.3em; color: #a8987e; text-transform: uppercase;
}
.news-page-title {
  font-family: 'Shippori Mincho', serif; font-size: 26px; font-weight: 600;
  color: #2d2d2d; margin: 12px 0 0; letter-spacing: 0.08em;
}

/* ── カテゴリー絞り込み ── */
.news-filter-bar {
  max-width: 900px; margin: 0 auto; padding: 28px 24px 0;
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
}
.news-filter-btn {
  font-family: inherit; font-size: 12.5px; color: #6b5438; background: #fff;
  border: 1px solid #e0d8ce; border-radius: 20px; padding: 7px 18px; cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.news-filter-btn:hover { border-color: #8b6f47; }
.news-filter-btn.is-active { background: #8b6f47; border-color: #8b6f47; color: #fff; }

/* ── 一覧(上品なリスト型) ── */
.news-list-wrap { max-width: 900px; margin: 0 auto; padding: 36px 24px 96px; }
.news-list { list-style: none; background: #fff; border: 1px solid #e5ddd3; border-radius: 4px; overflow: hidden; }
.news-row {
  display: flex; align-items: center; gap: 20px;
  padding: 22px 26px; border-bottom: 1px solid #f0ebe3;
  transition: background 0.2s;
}
.news-row:last-child { border-bottom: none; }
.news-row:hover { background: #faf8f5; }
.news-row-thumb {
  flex-shrink: 0; width: 84px; height: 84px; border-radius: 4px; overflow: hidden;
  background: #f2ede4; border: 1px solid #ece3d5;
}
.news-row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-row-thumb.is-empty::after {
  content: 'WAVE SALAD'; display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; font-family: 'Cormorant Garamond', serif; font-size: 9px;
  letter-spacing: 0.08em; color: #cbb896; text-align: center; padding: 4px;
}
.news-row-body { flex: 1; min-width: 0; }
.news-row-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.news-row-date { font-family: 'Cormorant Garamond', serif; font-size: 13px; color: #a8987e; letter-spacing: 0.03em; }
.news-badge {
  display: inline-block; padding: 2px 10px; font-size: 10.5px; white-space: nowrap;
  font-weight: 500; border-radius: 2px; background: #e0d8ce; color: #7a6040;
}
.news-badge.is-important { background: #8b6f47; color: #fff; }
.news-row-title {
  font-size: 15px; font-weight: 600; color: #2d2d2d; margin-bottom: 4px;
  letter-spacing: 0.02em; line-height: 1.6;
}
.news-row:hover .news-row-title { color: #6b5438; }
.news-row-summary {
  font-size: 12.5px; color: #888; line-height: 1.7;
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.news-empty { padding: 56px 24px; text-align: center; color: #999; font-size: 13px; }

@media (max-width: 640px) {
  .news-row { padding: 16px 18px; gap: 14px; }
  .news-row-thumb { width: 64px; height: 64px; }
  .news-row-title { font-size: 13.5px; }
}

/* ── 詳細ページ ── */
.news-detail-wrap { max-width: 760px; margin: 0 auto; padding: 20px 24px 96px; }
.news-detail-header { padding: 28px 0 32px; border-bottom: 1px solid #e5ddd3; margin-bottom: 32px; }
.news-detail-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.news-detail-date { font-family: 'Cormorant Garamond', serif; font-size: 14px; color: #a8987e; }
.news-detail-title {
  font-family: 'Shippori Mincho', serif; font-size: 24px; font-weight: 600;
  color: #2d2d2d; line-height: 1.6; letter-spacing: 0.03em;
}
.news-detail-image { margin-bottom: 32px; border-radius: 4px; overflow: hidden; border: 1px solid #e5ddd3; }
.news-detail-image img { width: 100%; }
.news-detail-body { font-size: 14.5px; color: #444; line-height: 2.1; white-space: pre-wrap; word-break: break-word; }
.news-detail-attachment {
  margin-top: 32px; padding: 16px 20px; background: #fff; border: 1px solid #e5ddd3; border-radius: 4px;
  display: flex; align-items: center; gap: 10px;
}
.news-detail-attachment a { color: #8b6f47; font-size: 13px; font-weight: 500; }
.news-detail-attachment a:hover { text-decoration: underline; }
.news-detail-nav {
  display: flex; justify-content: space-between; gap: 16px; margin-top: 48px;
  padding-top: 24px; border-top: 1px solid #e5ddd3;
}
.news-detail-nav a { flex: 1; font-size: 12.5px; color: #6b5438; }
.news-detail-nav a:hover { color: #8b6f47; }
.news-detail-nav .next { text-align: right; }
.news-detail-nav .disabled { color: #ccc; pointer-events: none; }
.news-detail-back { text-align: center; margin-top: 32px; }
.news-detail-back a {
  display: inline-block; padding: 12px 32px; border: 1px solid #8b6f47; color: #8b6f47;
  border-radius: 3px; font-size: 13px; transition: background 0.2s, color 0.2s;
}
.news-detail-back a:hover { background: #8b6f47; color: #fff; }

@media (max-width: 640px) {
  .news-detail-title { font-size: 19px; }
}

/* ── トップページ お知らせ欄 追加分 ── */
.news-item.is-loading, .news-item.is-empty { color: #999; font-size: 12.5px; padding: 12px 0; }
.news-more { text-align: right; margin-top: 18px; }
.news-more a { font-size: 12.5px; color: #8b6f47; border-bottom: 1px solid #8b6f47; padding-bottom: 2px; }
.news-more a:hover { color: #6d5438; border-color: #6d5438; }
