/* ================================================================
   WAVE SALAD - 共通ヘッダー・フッター スタイル
   ================================================================
   全ページ共通のCSSです。ヘッダー・フッターのデザインを変えたい
   ときは、このファイルを直せば全ページに反映されます。

   ページごとの独自の色(CSS変数)に依存しないよう、値は直接
   書いています(既存の主要ページと同じ配色: 茶色系アクセント
   #8b6f47、フッター濃茶 #2d2a26)。
   ================================================================ */

/* ---------------- ヘッダー ---------------- */
.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: 60px;
  gap: 24px;
}
.logo-title { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-title img { height: 26px; width: auto; }
.logo-title-text { font-family: 'Shippori Mincho', serif; font-size: 17px; font-weight: 600; letter-spacing: 0.14em; color: #2d2d2d; }

.catalog-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 4px; position: relative;
  padding: 10px 13px; font-size: 12px; letter-spacing: 0.02em; color: #444; white-space: nowrap;
  transition: color 0.2s; cursor: pointer;
}
.nav-link:hover { color: #6d5438; }
.nav-item.is-active > .nav-link { color: #6d5438; font-weight: 500; }
.nav-link .caret { font-size: 9px; opacity: 0.55; transition: transform 0.2s ease; }
.nav-item:hover .nav-link .caret { transform: rotate(180deg); }

.nav-dropdown {
  opacity: 0; visibility: hidden; pointer-events: none;
  position: absolute; top: calc(100% + 8px); left: 0;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(10px);
  border: 1px solid #ece3d5; border-radius: 4px; box-shadow: 0 14px 32px rgba(0,0,0,0.1);
  min-width: 210px; 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-dropdown a small { display: block; font-size: 10.5px; color: #a39a8c; margin-top: 2px; }
.nav-item:hover .nav-dropdown, .nav-item:focus-within .nav-dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }

.nav-badge {
  display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 10px;
  background: #efe9df; color: #8b7a63; font-size: 9.5px; letter-spacing: 0.03em; vertical-align: middle;
}

.mobile-menu-btn { display: none; }
.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); }
/* PCメニュー(横並び)とハンバーガーメニューの切り替えは、必ず同じ画面幅で同時に
   切り替える(片方だけ隠れて両方とも表示されない「すき間」ができるのを防ぐため、
   以前あった960px/640pxという2つの別々の境目を1つに統一した) */
@media (max-width: 1180px) {
  .catalog-nav { display: none; }
  .header-inner { padding: 0 20px; }
  .mobile-menu-btn { display: flex; }
}

/* ---------------- モバイルメニュー ---------------- */
.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-link { display: block; padding: 15px 24px; border-bottom: 1px solid #f5f0ea; font-size: 14.5px; 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.is-active .mobile-nav-toggle-link { color: #8b6f47; font-weight: 500; }
.mobile-nav-toggle-link { flex: 1; padding: 15px 24px; font-size: 14.5px; color: #444; }
.mobile-nav-toggle-chev {
  padding: 15px 22px; 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-toggle-full {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 15px 24px; border-bottom: 1px solid #f5f0ea; border-top: none;
  background: none; font-family: inherit; font-size: 14.5px; color: #444; cursor: pointer; text-align: left;
}
.mobile-nav-toggle-full.is-active { color: #8b6f47; font-weight: 500; }
.mobile-nav-toggle-full .chev { font-size: 11px; opacity: 0.55; transition: transform 0.25s ease; flex-shrink: 0; margin-left: 10px; }
.mobile-nav-toggle-full.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: 13px 24px 13px 40px; font-size: 13.5px; color: #666; border-bottom: 1px solid #f0ebe3; }
.mobile-nav-submenu a:last-child { border-bottom: none; }
.mobile-nav-submenu a small { display: block; font-size: 10.5px; color: #a39a8c; margin-top: 2px; }

.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; }

/* ---------------- フッター ---------------- */
.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 { color: inherit; }
.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-col .nav-badge { background: #453f37; color: #cbbfa9; }
.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: 14px; }
  .footer-col--catalog > a { display: none; }
  .footer-col--catalog h4 { margin-bottom: 0; }
}
