/* ==========================================================================
   MOANA Beach BBQ - 共通ヘッダー＋ドロワー
   全ページに読み込まれるグローバルナビのスタイル
   ========================================================================== */

:root {
  --g-header-h: 64px;
  --g-color-bg: rgba(252, 248, 242, 0.95);   /* クリーム半透明 */
  --g-color-panel: #fdfaf4;                    /* ドロワー背景 */
  --g-color-fg: #2d2a27;
  --g-color-accent: #c66b3d;                   /* テラコッタ */
  --g-color-accent-2: #2a7e7e;                 /* ティール */
  --g-color-muted: #857d6f;
  --g-color-line: #ddd4c4;
  --g-radius: 12px;
  --g-shadow: 0 8px 32px rgba(45, 42, 39, 0.15);
  --g-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* アクセシビリティ：スクリーンリーダー専用 */
.g-visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ヘッダー分の余白をbodyに確保 */
body.g-has-header {
  padding-top: var(--g-header-h);
}

/* body スクロールロック（ドロワー開いている時） */
body.g-drawer-open {
  overflow: hidden;
}

/* ==========================================================================
   グローバルヘッダー
   ========================================================================== */
.g-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--g-header-h);
  background: var(--g-color-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--g-color-line);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  font-family: 'Josefin Sans', 'Zen Kaku Gothic New', sans-serif;
}

.g-header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--g-color-fg);
  line-height: 1;
  height: 100%;
  padding: 6px 0;
}
.g-logo-img {
  display: block;
  height: 100%;
  width: auto;
  max-height: 48px;
  /* SVGは背景透過済みのため mix-blend-mode は不要 */
}
/* 旧テキストロゴスタイル（フォールバック用） */
.g-logo-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.g-logo-sub {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--g-color-muted);
  text-transform: uppercase;
}

.g-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.g-header__tel {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--g-color-fg);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  border-radius: 10px;
  transition: color 0.2s var(--g-ease), background 0.2s var(--g-ease);
}
.g-header__tel:hover {
  color: var(--g-color-accent);
  background: rgba(198, 107, 61, 0.06);
}
.g-header__tel svg { color: var(--g-color-accent); flex-shrink: 0; }

/* ==========================================================================
   ヘッダー常時CTA：ご予約
   ========================================================================== */
/* 共通ベース */
.g-header__reserve {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s var(--g-ease), color 0.2s var(--g-ease),
              border-color 0.2s var(--g-ease), transform 0.15s var(--g-ease);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ご予約：プライマリ（テラコッタ塗りつぶし） */
.g-header__reserve {
  color: #fff;
  background: var(--g-color-accent);
  border: 1px solid var(--g-color-accent);
  box-shadow: 0 2px 8px rgba(198, 107, 61, 0.2);
}
.g-header__reserve:hover {
  background: #b85a2f;
  border-color: #b85a2f;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(198, 107, 61, 0.3);
}
.g-header__reserve svg { flex-shrink: 0; }

/* ラベル：デフォルトは表示 */
.g-header__cta-label { display: inline; }

/* ハンバーガーボタン：クリーム背景上で視認性を確保するため、
   ・border を濃くする
   ・アクセントカラーの淡い塗りを常時入れてボタンとしての存在感を出す
   ・バーを 1.5px → 2px、22px → 24px に太く長く */
.g-header__toggle {
  width: 44px; height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  /* 透明 → 薄いテラコッタのタント。MENUボタンだと一目で認識できる */
  background: rgba(198, 107, 61, 0.08);
  /* ライン色 → アクセントカラーの透過版。ボタン輪郭がはっきり出る */
  border: 1.5px solid rgba(198, 107, 61, 0.55);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s var(--g-ease), border-color 0.2s var(--g-ease), transform 0.15s var(--g-ease);
  padding: 0;
}
.g-header__toggle:hover {
  background: rgba(198, 107, 61, 0.18);
  border-color: var(--g-color-accent);
  transform: translateY(-1px);
}
.g-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--g-color-fg);
  border-radius: 1px;
  transition: transform 0.3s var(--g-ease), opacity 0.3s var(--g-ease);
}
.g-header__toggle[aria-expanded="true"] .g-toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.g-header__toggle[aria-expanded="true"] .g-toggle-bar:nth-child(2) {
  opacity: 0;
}
.g-header__toggle[aria-expanded="true"] .g-toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   レスポンシブ：段階的に CTA を簡略化
   ========================================================================== */

/* 中画面：ヘッダーアクションのギャップを詰める */
@media (max-width: 900px) {
  .g-header__actions { gap: 8px; }
}

/* モバイル：電話はアイコン化、予約ボタンは縮小維持 */
@media (max-width: 640px) {
  .g-header { padding: 0 12px; }
  .g-header__actions { gap: 6px; }
  .g-header__tel-num { display: none; }
  .g-header__tel {
    width: 44px; height: 44px;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--g-color-line);
  }
  /* 予約ボタンは存在感を残しつつ小さく */
  .g-header__reserve {
    padding: 10px 14px;
    font-size: 13px;
  }
  .g-header__reserve svg { display: none; }
  .g-logo-mark { font-size: 18px; }
  .g-logo-sub { font-size: 9px; }
  .g-logo-img { max-height: 44px; }
}

/* 超狭幅（≤380px 例: iPhone SE 1st 320px / iPhone 12 mini 横向き等）：
   ヘッダー内のボタン間隔・サイズを最小化してロゴが詰まらないように */
@media (max-width: 380px) {
  .g-header { padding: 0 8px; }
  .g-header__actions { gap: 4px; }
  .g-header__tel { width: 40px; height: 40px; }
  .g-header__reserve {
    padding: 7px 10px;
    font-size: 11px;
    letter-spacing: 0.02em;
  }
  .g-header__toggle { width: 40px; height: 40px; }
  .g-logo-img { max-height: 38px; }
}

/* ==========================================================================
   ドロワー
   ========================================================================== */
.g-drawer {
  position: fixed;
  inset: 0;
  z-index: 1100;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--g-ease), visibility 0.3s var(--g-ease);
}
.g-drawer[aria-hidden="false"] {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.g-drawer__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(45, 42, 39, 0.5);
  border: none;
  cursor: pointer;
  padding: 0;
}

.g-drawer__panel {
  position: absolute;
  top: 0; right: 0;
  width: min(420px, 100%);
  height: 100%;
  background: var(--g-color-panel);
  box-shadow: var(--g-shadow);
  transform: translateX(100%);
  transition: transform 0.4s var(--g-ease);
  display: flex;
  flex-direction: column;
  font-family: 'Zen Kaku Gothic New', 'Josefin Sans', sans-serif;
}
.g-drawer[aria-hidden="false"] .g-drawer__panel {
  transform: translateX(0);
}

.g-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--g-color-line);
  flex-shrink: 0;
}
.g-drawer__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 500;
  margin: 0;
  color: var(--g-color-fg);
  letter-spacing: 0.05em;
}
.g-drawer__close {
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--g-color-line);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--g-color-fg);
  transition: background 0.2s var(--g-ease);
}
.g-drawer__close:hover { background: rgba(0, 0, 0, 0.04); }

.g-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.g-drawer__heading {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--g-color-muted);
  text-transform: uppercase;
  margin: 0 0 12px 0;
  font-weight: 500;
}

.g-drawer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.g-drawer__link {
  display: block;
  padding: 13px 16px;
  font-size: 15px;
  color: var(--g-color-fg);
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.2s var(--g-ease), color 0.2s var(--g-ease);
  position: relative;
}
.g-drawer__link:hover {
  background: rgba(198, 107, 61, 0.08);
  color: var(--g-color-accent);
}
.g-drawer__link[aria-current="page"] {
  background: rgba(198, 107, 61, 0.1);
  color: var(--g-color-accent);
  font-weight: 500;
  padding-left: 24px;
}
.g-drawer__link[aria-current="page"]::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  background: var(--g-color-accent);
  border-radius: 3px;
}

/* CTAセクション（お問い合わせ） */
.g-drawer__section--cta {
  background: rgba(198, 107, 61, 0.05);
  padding: 20px;
  border-radius: var(--g-radius);
  border: 1px solid rgba(198, 107, 61, 0.15);
}
.g-drawer__cta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--g-color-fg);
  font-weight: 500;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.5);
  transition: background 0.2s var(--g-ease), transform 0.2s var(--g-ease);
  margin-bottom: 8px;
}
.g-drawer__cta:last-child { margin-bottom: 0; }
.g-drawer__cta:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateX(2px);
}
.g-drawer__cta svg { flex-shrink: 0; }
.g-drawer__cta small {
  display: block;
  font-size: 11px;
  color: var(--g-color-muted);
  margin-top: 2px;
  letter-spacing: 0.04em;
  font-weight: 400;
}
.g-drawer__cta--tel svg { color: var(--g-color-accent); }
.g-drawer__cta--form svg { color: var(--g-color-accent-2); }

/* SNSセクション */
.g-drawer__social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--g-color-line);
  border-radius: 100px;
  text-decoration: none;
  color: var(--g-color-fg);
  font-size: 13px;
  transition: border-color 0.2s var(--g-ease), color 0.2s var(--g-ease);
}
.g-drawer__social:hover {
  border-color: var(--g-color-accent);
  color: var(--g-color-accent);
}

/* モバイル微調整 */
@media (max-width: 640px) {
  .g-drawer__body { padding: 20px; gap: 24px; }
  .g-drawer__head { padding: 16px 20px; }
}

/* ==========================================================================
   LINE 導線（ヘッダーCTA / ドロワーCTA）— 公式LINEグリーン #06C755
   ========================================================================== */
.g-header__line {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; font-size: 14px; font-weight: 500; letter-spacing: 0.04em;
  border-radius: 10px; text-decoration: none; white-space: nowrap; flex-shrink: 0;
  color: #fff; background: #06C755; border: 1px solid #06C755;
  box-shadow: 0 2px 8px rgba(6,199,85,0.2);
  transition: background 0.2s var(--g-ease), transform 0.15s var(--g-ease), box-shadow 0.2s var(--g-ease);
}
.g-header__line:hover { background: #05b34c; border-color: #05b34c; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(6,199,85,0.3); }
.g-header__line svg { flex-shrink: 0; }

/* ドロワー：LINE CTA（緑アイコン＋ホバー時うっすら緑） */
.g-drawer__cta--line svg { color: #06C755; }
.g-drawer__cta--line:hover { background: rgba(6,199,85,0.10); }

/* モバイル：ヘッダーのLINEはアイコン丸ボタン化（ラベル非表示）。超狭幅では非表示（ドロワーで代替） */
@media (max-width: 640px) {
  .g-header__line { width: 44px; height: 44px; justify-content: center; padding: 0; gap: 0; }
  .g-header__line .g-header__cta-label { display: none; }
}
@media (max-width: 380px) {
  .g-header__line { display: none; }
}
