@charset "UTF-8";

/* ==========================================================================
   1. デザインシステム & 基本設定
   ========================================================================== */
:root {
  /* 和風・中華レトロカラーパレット */
  --primary: #c82323;       /* 中華レッド / 朱赤 */
  --primary-hover: #b31e1e;
  --primary-light: #fbebeb;
  --gold: #f9c816;          /* ラーメンイエロー / ゴールド */
  --gold-dark: #e5b700;
  --accent-table: #d35400;  /* 朱色のテーブルカラー */
  --text-dark: #222222;     /* 墨色 */
  --text-muted: #666666;
  --text-light: #ffffff;
  --bg-light: #faf8f2;      /* どんぶりのアイボリー */
  --card-bg: #ffffff;
  --card-yellow: #fffdf4;   /* 短冊メニュー用の薄黄色 */
  --dark-bg: #1f1610;       /* 鉄鍋焦げ茶・黒 */
  --border-muted: #e2ded7;
  --border-accent: #f9c816;
  
  /* タイポグラフィ */
  --font-sans: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-serif: 'Noto Serif JP', "Georgia", "Times New Roman", serif;
  --font-mono: 'Share Tech Mono', monospace;

  /* アニメーション・トランジション */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* 角丸・影 */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --shadow-sm: 0 2px 4px rgba(31, 22, 16, 0.08);
  --shadow-md: 0 8px 16px rgba(31, 22, 16, 0.12);
  --shadow-lg: 0 16px 32px rgba(31, 22, 16, 0.16);
  --shadow-neon: 0 0 15px rgba(200, 35, 35, 0.6);
}

/* リセット & 共通スタイル */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* ヘッダー分の余白 */
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 900;
  line-height: 1.3;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

button, select, input, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

ul {
  list-style: none;
}

/* アクセシビリティ用スキップリンク */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background-color: var(--primary);
  color: var(--text-light);
  padding: 0.8rem 1.5rem;
  border-radius: var(--border-radius-sm);
  z-index: 2000;
  transition: top var(--transition-fast);
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

.skip-link:focus {
  top: 20px;
}

/* ==========================================================================
   2. ヘッダー & ナビゲーション
   ========================================================================== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background-color: rgba(31, 22, 16, 0.95); /* 焦げ茶背景 */
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--gold);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  color: var(--text-light);
}

.logo-text {
  font-size: 1.35rem;
  font-family: var(--font-serif);
  font-weight: 900;
  letter-spacing: 0.05em;
}

.logo-text .accent-text {
  color: var(--gold);
}

.logo-subtext {
  font-size: 0.58rem;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  color: #a89f97;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 700;
  color: #dfd8d0;
  position: relative;
  padding: 0.5rem 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--gold);
  transition: width var(--transition-fast);
}

.main-nav a:hover {
  color: var(--gold);
}

.main-nav a:hover::after {
  width: 100%;
}

/* CTAリンクボタン */
.main-nav a.nav-cta {
  background-color: var(--primary);
  color: var(--text-light);
  padding: 0.6rem 1.2rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--gold);
  box-shadow: var(--shadow-sm);
}

.main-nav a.nav-cta::after {
  display: none;
}

.main-nav a.nav-cta:hover {
  background-color: var(--primary-hover);
  color: var(--text-light);
  transform: translateY(-1px);
}

/* モバイルメニュー開閉ボタン */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1100;
}

.mobile-menu-toggle .bar {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--gold);
  position: absolute;
  left: 0;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.mobile-menu-toggle .bar:nth-child(1) { top: 0; }
.mobile-menu-toggle .bar:nth-child(2) { top: 10px; }
.mobile-menu-toggle .bar:nth-child(3) { top: 20px; }

.mobile-menu-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* モバイルナビゲーション */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(31, 22, 16, 0.98);
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 2rem 2rem;
  opacity: 1;
  transition: opacity var(--transition-normal);
}

.mobile-menu[hidden] {
  opacity: 0;
  pointer-events: none;
  display: none;
}

.mobile-menu nav ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.mobile-menu nav a {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-light);
  font-family: var(--font-serif);
}

.mobile-menu nav a:hover {
  color: var(--gold);
}

.mobile-menu nav a.nav-cta {
  background-color: var(--primary);
  padding: 0.8rem 2rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--gold);
}

/* ==========================================================================
   3. ヒーローセクション
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 130px 0 80px;
  background-color: var(--dark-bg); /* 深い焦げ茶 */
  color: var(--text-light);
  overflow: hidden;
  border-bottom: 5px solid var(--primary);
}

/* 昭和風ラーメンのネオンサイン・中華文様のうっすらとした背景 */
.hero-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.05;
  background-image: radial-gradient(var(--gold) 1.5px, transparent 1.5px);
  background-size: 30px 30px;
  pointer-events: none;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background-color: var(--primary);
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
  border-radius: var(--border-radius-sm);
}

.hero-text-side h1 {
  font-size: 3rem;
  letter-spacing: 0.05em;
  line-height: 1.35;
  margin-bottom: 2rem;
  font-family: var(--font-serif);
}

/* 下町風の少し掠れたかすり紙テクスチャを表現 */
.highlight-washi {
  position: relative;
  display: inline-block;
}

.highlight-washi::before {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 0;
  width: 100%;
  height: 15px;
  background-color: rgba(249, 200, 22, 0.45); /* 金色半透明マーカー */
  z-index: 1;
}

.highlight-text {
  position: relative;
  z-index: 2;
  color: var(--gold);
}

.hero-text-side p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #dfd8d0;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* 汎用ボタン */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-light);
  border: 1px solid var(--gold);
  box-shadow: 0 4px 10px rgba(200, 35, 35, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(200, 35, 35, 0.5);
}

.btn-secondary {
  background-color: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}

.btn-secondary:hover {
  background-color: rgba(249, 200, 22, 0.1);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: var(--card-bg);
  color: var(--text-dark);
  border: 1.5px solid var(--border-muted);
  font-size: 0.9rem;
  padding: 0.7rem 1.4rem;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background-color: var(--primary-light);
}

/* ヒーロービジュアル（格子窓＋どんぶりアート） */
.hero-visual-side {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-window-wrapper {
  position: relative;
  width: 100%;
  max-width: 420px;
  background-color: var(--card-bg);
  border: 8px solid var(--primary); /* 赤い極太額縁 */
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg), var(--shadow-neon);
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.retro-stripe-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(31, 22, 16, 0.03) 25%, transparent 25%, transparent 50%, rgba(31, 22, 16, 0.03) 50%, rgba(31, 22, 16, 0.03) 75%, transparent 75%, transparent);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 2;
}

.hero-window-svg {
  width: 100%;
  height: 100%;
}

/* どんぶりの湯気アニメーション */
@keyframes steam {
  0% {
    transform: translateY(10px) scaleX(0.9);
    opacity: 0;
  }
  15% {
    opacity: 0.8;
  }
  50% {
    transform: translateY(-15px) scaleX(1.1);
    opacity: 0.4;
  }
  100% {
    transform: translateY(-35px) scaleX(0.85);
    opacity: 0;
  }
}

.steam-1 {
  animation: steam 4s ease-in-out infinite;
  transform-origin: bottom center;
}

.steam-2 {
  animation: steam 5s ease-in-out infinite 1.5s;
  transform-origin: bottom center;
}

.steam-3 {
  animation: steam 4.5s ease-in-out infinite 0.8s;
  transform-origin: bottom center;
}

.window-overlay-tag {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background-color: var(--primary);
  color: var(--text-light);
  border: 2px solid var(--gold);
  padding: 0.5rem 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-md);
  z-index: 5;
}

.window-overlay-tag .tag-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 0.1em;
}

.window-overlay-tag .tag-sub {
  font-size: 0.65rem;
  font-weight: 700;
}

/* ==========================================================================
   4. セクション共通ヘッダー
   ========================================================================== */
section {
  padding: 100px 0;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-center {
  text-align: center;
}

.section-header {
  margin-bottom: 5rem;
}

.section-subtitle {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.25em;
  margin-bottom: 0.8rem;
}

.section-header h2 {
  font-size: 2.2rem;
  font-family: var(--font-serif);
  margin-bottom: 1.2rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.8rem;
}

/* タイトル下の雷紋風装飾ライン */
.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary);
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
}

/* ==========================================================================
   5. 龍門のこだわり（アコーディオン）
   ========================================================================== */
.about-section {
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--border-muted);
}

.principles-accordion {
  max-width: 800px;
  margin: 0 auto;
  border-top: 1px solid var(--border-muted);
}

.principle-item {
  border-bottom: 1px solid var(--border-muted);
}

.principle-header {
  width: 100%;
  background: none;
  border: none;
  padding: 2rem 1rem;
  display: flex;
  align-items: center;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.principle-header:hover {
  background-color: var(--bg-light);
}

.principle-num {
  font-size: 1.5rem;
  font-family: var(--font-serif);
  color: var(--primary);
  width: 50px;
  font-weight: 900;
}

.principle-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  flex-grow: 1;
  color: var(--text-dark);
  font-family: var(--font-sans);
}

.toggle-arrow {
  font-size: 1.2rem;
  color: var(--primary);
  font-weight: 700;
  transition: transform var(--transition-fast);
}

/* コンテンツ表示エリア (until-found 連携) */
.principle-content {
  display: none;
}

.principle-content:not([hidden]) {
  display: block;
}

.principle-content[hidden="until-found"] {
  display: block;
}

.principle-inner {
  padding: 0 1rem 2.5rem 50px;
}

.principle-inner p {
  font-size: 0.98rem;
  line-height: 1.85;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.principle-specs {
  background-color: var(--bg-light);
  border: 1px dashed var(--border-muted);
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius-sm);
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.principle-specs span {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dark);
}

/* ==========================================================================
   6. お品書き（タブ & until-found）
   ========================================================================== */
.menu-section {
  background-color: var(--bg-light);
}

.menu-tabs-wrapper {
  max-width: 1000px;
  margin: 0 auto;
}

/* カテゴリタブ */
.menu-tab-list {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 4rem;
  border-bottom: 2px solid var(--border-muted);
  padding-bottom: 1px;
}

.menu-tab-btn {
  background: none;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.05rem;
  font-family: var(--font-serif);
  font-weight: 900;
  cursor: pointer;
  color: var(--text-muted);
  position: relative;
  transition: all var(--transition-fast);
}

.menu-tab-btn::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: transparent;
  transition: background-color var(--transition-fast);
}

.menu-tab-btn:hover {
  color: var(--primary);
}

.menu-tab-btn.active {
  color: var(--primary);
}

.menu-tab-btn.active::after {
  background-color: var(--primary);
}

/* パネル表示制御 */
.menu-panel {
  display: none;
}

.menu-panel:not([hidden]) {
  display: block;
}

.menu-panel[hidden="until-found"] {
  display: block;
}

/* メニューカードレイアウト */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 2rem;
  align-items: start;
}

/* レトロな短冊メニューを模したデザイン */
.menu-card {
  background-color: var(--card-yellow);
  border: 1px solid var(--border-muted);
  border-left: 6px solid var(--primary); /* 朱赤の縁 */
  border-radius: var(--border-radius-sm);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
  /* レトロ看板のように少し傾きを与える */
  transform: rotate(-0.4deg);
}

.menu-card:hover {
  transform: rotate(0.4deg) scale(1.02);
  box-shadow: var(--shadow-md);
}

/* 特上・名物カードの差別化 */
.menu-card.card-featured {
  background-color: #fffaf0;
  border-left-color: var(--gold);
  border-width: 1.5px;
  box-shadow: 0 4px 12px rgba(249, 200, 22, 0.15);
  transform: rotate(0.3deg);
}

.menu-card.card-featured:hover {
  transform: rotate(-0.3deg) scale(1.02);
  box-shadow: 0 8px 20px rgba(249, 200, 22, 0.25);
}

.menu-badge-tag {
  position: absolute;
  top: -10px;
  left: 15px;
  background-color: var(--primary);
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--gold);
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

.menu-card.card-featured .menu-badge-tag {
  background-color: var(--gold);
  color: var(--primary);
  border-color: var(--primary);
}

.menu-visual {
  width: 100%;
  height: 90px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.2rem;
  border-bottom: 1px dashed var(--border-muted);
  padding-bottom: 0.8rem;
}

.menu-item-svg {
  height: 100%;
}

.menu-info h3 {
  font-size: 1.15rem;
  font-family: var(--font-serif);
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.menu-price {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--primary);
  font-family: var(--font-serif);
  margin-bottom: 0.8rem;
}

.menu-price .tax-in {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  font-family: var(--font-sans);
}

.menu-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.2rem;
  min-height: 4.8rem;
}

.menu-card-footer {
  border-top: 1px dashed var(--border-muted);
  padding-top: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 32px;
}

.option-info {
  font-size: 0.72rem;
  font-weight: 700;
  color: #a07812;
}

.btn-takeout-link {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-light);
  background-color: var(--primary);
  border: 1px solid var(--gold);
  padding: 0.3rem 0.6rem;
  border-radius: var(--border-radius-sm);
  transition: background-color var(--transition-fast);
}

.btn-takeout-link:hover {
  background-color: var(--primary-hover);
}

/* ==========================================================================
   7. 出前・テイクアウト案内
   ========================================================================== */
.rooms-section {
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--border-muted);
}

.rooms-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.room-pane {
  background-color: var(--bg-light);
  border: 1px solid var(--border-muted);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.room-visual-art {
  height: 200px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-muted);
}

.room-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.room-detail-info {
  padding: 2rem;
}

.room-detail-info h3 {
  font-size: 1.25rem;
  font-family: var(--font-serif);
  color: var(--text-dark);
  margin-bottom: 0.8rem;
}

.room-detail-info p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   8. 店舗案内（アクセス・マップ）
   ========================================================================== */
.access-section {
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border-muted);
}

.access-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.access-info-pane h2 {
  font-size: 2rem;
  font-family: var(--font-serif);
  margin-bottom: 1.5rem;
}

.access-intro-text {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.access-details-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.access-details-list li {
  font-size: 0.95rem;
  border-left: 3px solid var(--primary);
  padding-left: 0.8rem;
}

.access-details-list strong {
  display: inline-block;
  min-width: 100px;
  color: var(--text-dark);
}

.time-block {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* マップフレーム */
.access-map-pane {
  display: flex;
  justify-content: center;
}

.map-frame {
  position: relative;
  width: 100%;
  max-width: 460px;
  border: 4px solid var(--primary);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-svg {
  width: 100%;
  display: block;
}

.map-btn-overlay {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 30px);
  max-width: 250px;
  text-align: center;
}

.map-btn-overlay .btn {
  width: 100%;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   9. 予約・お持ち帰り・出前注文フォーム (Split Layout & :has() & :user-invalid)
   ========================================================================== */
.booking-section {
  background-color: var(--card-bg);
}

.interactive-booking-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4rem;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

/* 左側：おもてなし案内パネル */
.guide-dialogue-pane {
  background-color: var(--bg-light);
  border: 1px solid var(--border-muted);
  border-radius: var(--border-radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 100px;
}

.live-status-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.live-indicator {
  width: 8px;
  height: 8px;
  background-color: #2ec4b6; /* 稼働中を示すシアン */
  border-radius: 50%;
  box-shadow: 0 0 8px #2ec4b6;
  animation: pulse 1.8s infinite;
}

.live-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 196, 182, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(46, 196, 182, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 196, 182, 0); }
}

/* 対話吹き出し */
.dialogue-bubble-wrapper {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.avatar-calligraphy {
  width: 48px;
  height: 48px;
  background-color: var(--primary);
  color: var(--gold);
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.dialogue-bubble {
  position: relative;
  background-color: var(--card-bg);
  border: 1.5px solid var(--border-muted);
  border-radius: var(--border-radius-md);
  padding: 1.2rem;
  box-shadow: var(--shadow-sm);
}

/* 吹き出しの三角矢印 */
.dialogue-bubble::after, .dialogue-bubble::before {
  right: 100%;
  top: 20px;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
}

.dialogue-bubble::after {
  border-color: rgba(255, 255, 255, 0);
  border-right-color: var(--card-bg);
  border-width: 7px;
  margin-top: -7px;
}

.dialogue-bubble::before {
  border-color: rgba(226, 222, 215, 0);
  border-right-color: var(--border-muted);
  border-width: 9px;
  margin-top: -9px;
}

.bubble-text {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-dark);
}

.booking-rules-card {
  border-top: 1px dashed var(--border-muted);
  padding-top: 1.5rem;
}

.booking-rules-card h4 {
  font-size: 0.9rem;
  font-family: var(--font-sans);
  color: var(--primary);
  margin-bottom: 0.6rem;
}

.booking-rules-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 右側：注文フォーム */
.form-pane {
  background-color: var(--bg-light);
  border: 1px solid var(--border-muted);
  border-radius: var(--border-radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.okina-form {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

/* 用件選択ラジオグリッド */
.form-step-fieldset {
  border: none;
}

.form-step-fieldset legend {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.required {
  font-size: 0.72rem;
  color: var(--primary);
  background-color: var(--primary-light);
  padding: 0.15rem 0.35rem;
  border-radius: var(--border-radius-sm);
  margin-left: 0.5rem;
  font-weight: 700;
}

.purpose-selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
}

.purpose-radio-card {
  cursor: pointer;
  position: relative;
}

.purpose-radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.purpose-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.2rem 0.8rem;
  background-color: var(--card-bg);
  border: 2px solid var(--border-muted);
  border-radius: var(--border-radius-md);
  transition: all var(--transition-fast);
  height: 100%;
}

.purpose-radio-card:hover .purpose-card-inner {
  border-color: var(--primary);
  background-color: var(--primary-light);
}

.purpose-radio-card input[type="radio"]:checked + .purpose-card-inner {
  border-color: var(--primary);
  background-color: var(--primary-light);
  box-shadow: 0 4px 8px rgba(200, 35, 35, 0.08);
}

.p-icon {
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
}

.p-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.p-desc {
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================
   CSS Form Dynamic Display using :has()
   ========================================== */
/* デフォルトでは動的表示グループは全て非表示 */
.form-dynamic-group {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 用件別のアクティブ化 */
.ryumon-form:has(input[value="takeout"]:checked) .group-order-item,
.ryumon-form:has(input[value="demae"]:checked) .group-order-item {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ryumon-form:has(input[value="demae"]:checked) .group-demae-only {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ryumon-form:has(input[value="seat_reserve"]:checked) .group-seat-reserve {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* 共通入力グループ */
.form-common-fields {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-top: 1px dashed var(--border-muted);
  padding-top: 2rem;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field-group label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-dark);
}

.input-wrapper {
  position: relative;
  width: 100%;
}

.field-group input[type="text"],
.field-group input[type="tel"],
.field-group input[type="email"],
.field-group input[type="datetime-local"],
.field-group select,
.field-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border-muted);
  border-radius: var(--border-radius-sm);
  background-color: var(--card-bg);
  outline: none;
  transition: all var(--transition-fast);
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(200, 35, 35, 0.12);
}

.field-group textarea {
  resize: vertical;
}

.help-text {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.error-message {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  display: none; /* デフォルト非表示 */
}

/* ==========================================
   CSS Form Validation using :has() & :user-invalid
   ========================================== */
.validation-status-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 0.95rem;
}

/* :user-invalid を使った親要素およびエラーの自動スタイル制御 */
.field-group:has(:user-invalid) input,
.field-group:has(:user-invalid) select,
.field-group:has(:user-invalid) textarea {
  border-color: var(--primary);
  background-color: var(--primary-light);
}

.field-group:has(:user-invalid) .error-message {
  display: block;
}

.field-group:has(:user-invalid) label {
  color: var(--primary);
}

.field-group:has(:user-invalid) .validation-status-icon::after {
  content: '⚠️';
}

/* JSバリデーションフォールバック用の .has-error クラス */
.field-group.has-error input,
.field-group.has-error select,
.field-group.has-error textarea {
  border-color: var(--primary);
  background-color: var(--primary-light);
}

.field-group.has-error .error-message {
  display: block;
}

.field-group.has-error label {
  color: var(--primary);
}

.field-group.has-error .validation-status-icon::after {
  content: '⚠️';
}

/* 送信ボタン・ローディングスピナー */
.form-submit-wrapper {
  margin-top: 1rem;
}

.btn-submit {
  width: 100%;
  background-color: var(--primary);
  color: var(--text-light);
  border: 2px solid var(--gold);
  font-size: 1.1rem;
  padding: 1.1rem;
  font-family: var(--font-serif);
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  box-shadow: var(--shadow-md);
}

.btn-submit:hover {
  background-color: var(--primary-hover);
  box-shadow: var(--shadow-lg);
}

.btn-submit:disabled {
  background-color: var(--text-muted);
  border-color: var(--border-muted);
  cursor: not-allowed;
  opacity: 0.7;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--text-light);
  animation: spin 1s ease-in-out infinite;
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn-submit.loading .spinner {
  display: block;
}

.btn-submit.loading .btn-text {
  display: none;
}

/* 送信成功メッセージボックス */
.form-success-box {
  background-color: #e8f5e9;
  border: 2px solid #2e7d32;
  border-radius: var(--border-radius-md);
  padding: 2.5rem;
  text-align: center;
  animation: fadeIn 0.5s ease forwards;
}

.success-icon {
  width: 50px;
  height: 50px;
  background-color: #2e7d32;
  color: var(--text-light);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.form-success-box h3 {
  font-size: 1.4rem;
  color: #2e7d32;
  margin-bottom: 1rem;
}

.form-success-box p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-dark);
  text-align: left;
}

/* ==========================================================================
   10. フッター
   ========================================================================== */
.main-footer {
  background-color: var(--dark-bg);
  color: var(--text-light);
  padding: 60px 0 30px;
  border-top: 5px solid var(--primary);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.footer-brand {
  font-size: 1.8rem;
  font-family: var(--font-serif);
  font-weight: 900;
  color: var(--text-light);
}

.footer-brand .accent-text {
  color: var(--gold);
}

.footer-tagline {
  font-size: 0.95rem;
  color: #a89f97;
  text-align: center;
  max-width: 500px;
  margin-top: -1.5rem;
}

.footer-nav ul {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  font-size: 0.9rem;
  color: #dfd8d0;
  font-weight: 700;
}

.footer-nav a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(223, 216, 208, 0.1);
  width: 100%;
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: #7f756c;
}

/* ==========================================================================
   11. スクロールアニメーション (Scroll-Driven & JS Fallback)
   ========================================================================== */
/* @supportsでブラウザ標準のスクロール駆動アニメーションを定義 */
@supports (animation-range: entry 10% exit 90%) and (animation-timeline: view()) {
  .scroll-timeline-active.scroll-trigger {
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 10% cover 30%;
  }

  @keyframes reveal {
    from {
      opacity: 0;
      transform: translateY(40px) scale(0.97);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
}

/* JS Fallback用スタイル (IntersectionObserver用) */
.scroll-trigger {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.scroll-trigger.animated {
  opacity: 1;
  transform: translateY(0);
}

/* スクロール駆動アニメーション対応環境は、JSフォールバック用クラスを無効化 */
.scroll-timeline-active.scroll-trigger {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   12. レスポンシブ対応
   ========================================================================== */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-badge {
    margin-bottom: 1rem;
  }

  .hero-text-side h1 {
    font-size: 2.5rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual-side {
    max-width: 380px;
    margin: 0 auto;
  }

  .rooms-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .access-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .access-map-pane {
    order: -1; /* 地図を先に表示 */
  }

  .interactive-booking-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .guide-dialogue-pane {
    position: static;
  }
}

@media (max-width: 768px) {
  .main-header {
    height: 70px;
  }

  .header-container {
    padding: 0 1.5rem;
  }

  .main-nav {
    display: none; /* モバイルではメインナビ非表示 */
  }

  .mobile-menu-toggle {
    display: block; /* 三本線メニューの表示 */
  }

  .hero-section {
    padding: 110px 0 60px;
  }

  .hero-text-side h1 {
    font-size: 2.1rem;
  }

  .hero-text-side p {
    font-size: 0.95rem;
  }

  .section-header {
    margin-bottom: 3rem;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .menu-tab-btn {
    padding: 0.8rem 1.2rem;
    font-size: 0.95rem;
  }

  .form-pane {
    padding: 1.5rem;
  }

  .purpose-selection-grid {
    grid-template-columns: 1fr;
  }
}
