@charset "UTF-8";

/* ==========================================================================
   1. デザインシステム & 基本設定
   ========================================================================== */
:root {
  /* モダン大衆食堂カラーパレット（藍色、白タイル、ステンレス） */
  --primary: #1e3a8a;       /* 藍色・ジャパンブルー */
  --primary-hover: #172554;
  --primary-light: #eff6ff;
  --accent: #fbbf24;        /* 卵焼きイエロー */
  --accent-hover: #f59e0b;
  --text-dark: #0f172a;     /* 炭黒・チャコール */
  --text-muted: #475569;    /* スレートグレー */
  --text-light: #ffffff;
  --bg-light: #f8fafc;      /* 清潔感のあるライトグレー */
  --tile-bg: #fafafa;       /* タイルのベースカラー */
  --card-bg: #ffffff;
  --border-muted: #cbd5e1;  /* ステンレス境界線用 */
  --border-active: #1e3a8a;
  
  /* タイポグラフィ */
  --font-sans: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'Inter', 'Share Tech Mono', monospace;

  /* アニメーション・トランジション */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* 角丸・影 */
  --border-radius-sm: 4px;
  --border-radius-md: 6px;
  --border-radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 24px rgba(15, 23, 42, 0.12);
  --shadow-active: 0 0 0 3px rgba(30, 58, 138, 0.15);
}

/* リセット & 共通スタイル */
*, *::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.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 900;
  line-height: 1.25;
  color: var(--text-dark);
}

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(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--border-muted);
  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: 44px;
  height: 44px;
  flex-shrink: 0;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--text-dark);
}

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

.logo-subtext {
  font-size: 0.6rem;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

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

.main-nav a {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
}

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

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

.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(--primary);
  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: 28px;
  height: 22px;
  position: relative;
  z-index: 1100;
}

.mobile-menu-toggle .bar {
  display: block;
  width: 100%;
  height: 2.5px;
  background-color: var(--primary);
  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: 9px; }
.mobile-menu-toggle .bar:nth-child(3) { top: 18px; }

.mobile-menu-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(9px) 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(-9px) rotate(-45deg);
}

/* モバイルナビゲーション */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(255, 255, 255, 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.3rem;
  font-weight: 700;
  color: var(--text-dark);
}

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

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

/* ==========================================================================
   3. ヒーローセクション
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 140px 0 90px;
  background-color: #ffffff; /* 清潔感ある白 */
  overflow: hidden;
  border-bottom: 2px solid var(--border-muted);
}

/* 白タイルパターンの背景 */
.hero-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--tile-bg);
  background-image: 
    linear-gradient(rgba(15, 23, 42, 0.02) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.02) 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.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

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

.hero-text-side h1 {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 2rem;
  color: var(--text-dark);
}

/* モダンな細い並行ラインによるマーカー効果 */
.highlight-stripe {
  position: relative;
  display: inline-block;
}

.highlight-stripe::before {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: rgba(251, 191, 36, 0.35); /* 卵焼きイエローのライン */
  z-index: 1;
}

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

.hero-text-side p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

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

/* 汎用ボタン */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.8rem;
  font-size: 0.95rem;
  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);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
  background-color: var(--primary-light);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: var(--card-bg);
  color: var(--text-dark);
  border: 1.5px solid var(--border-muted);
}

.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: 400px;
  background-color: var(--card-bg);
  border: 2px solid var(--border-muted);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.tile-grid-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--tile-bg);
  background-image: 
    linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 1;
}

.hero-window-svg {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
}

.window-overlay-tag {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background-color: var(--primary);
  color: var(--text-light);
  border: 1.5px solid var(--accent);
  padding: 0.4rem 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-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
}

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

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

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

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

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

.section-subtitle {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.2em;
  margin-bottom: 0.6rem;
}

.section-header h2 {
  font-size: 2.1rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.6rem;
}

/* タイトル下のシンプルでクリーンな細ライン */
.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background-color: var(--primary);
}

.section-header p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 650px;
  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: 1.8rem 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.25rem;
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--primary);
  width: 45px;
}

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

.toggle-arrow {
  font-size: 1.1rem;
  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.2rem 45px;
}

.principle-inner p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.principle-specs {
  background-color: var(--bg-light);
  border: 1.5px solid var(--border-muted);
  padding: 0.8rem 1.2rem;
  border-radius: var(--border-radius-sm);
  display: flex;
  gap: 1.8rem;
  flex-wrap: wrap;
}

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

/* ==========================================================================
   6. お品書き (タブ & until-found)
   ========================================================================== */
.menu-section {
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border-muted);
}

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

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

.menu-tab-btn {
  background: none;
  border: none;
  padding: 0.9rem 1.8rem;
  font-size: 0.98rem;
  font-weight: 700;
  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: 2px;
  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-bg);
  border: 1.5px solid var(--border-muted);
  border-radius: var(--border-radius-md);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
}

.menu-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

/* 主役・名物カードの強調 */
.menu-card.card-featured {
  border: 2px solid var(--primary);
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.06);
}

.menu-card.card-featured:hover {
  box-shadow: 0 8px 25px rgba(30, 58, 138, 0.12);
}

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

.menu-card.card-featured .menu-badge-tag {
  background-color: var(--accent);
  color: var(--text-dark);
}

.menu-visual {
  width: 100%;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
  border-bottom: 1.5px solid var(--bg-light);
  padding-bottom: 0.6rem;
}

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

.menu-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.3rem;
}

.menu-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-mono);
  margin-bottom: 0.6rem;
}

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

.menu-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
  min-height: 4.6rem;
}

.menu-card-footer {
  border-top: 1.5px solid var(--bg-light);
  padding-top: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 30px;
}

.option-info {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
}

.btn-takeout-link {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-light);
  background-color: var(--primary);
  padding: 0.35rem 0.7rem;
  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: 1.5px solid var(--border-muted);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

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

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

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

.room-detail-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
}

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

/* ==========================================================================
   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: 3.5rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.access-info-pane h2 {
  font-size: 1.9rem;
  margin-bottom: 1.2rem;
}

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

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

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

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

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

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

.map-frame {
  position: relative;
  width: 100%;
  max-width: 440px;
  border: 2px solid var(--border-muted);
  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: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 240px;
  text-align: center;
}

.map-btn-overlay .btn {
  width: 100%;
  font-size: 0.85rem;
  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: 3.5rem;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

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

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

.live-indicator {
  width: 7px;
  height: 7px;
  background-color: #3b82f6; /* 青 */
  border-radius: 50%;
  box-shadow: 0 0 8px #3b82f6;
  animation: pulse-blue 2s infinite;
}

.live-text {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

@keyframes pulse-blue {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(59, 130, 246, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

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

.avatar-calligraphy {
  width: 44px;
  height: 44px;
  background-color: var(--primary);
  color: var(--text-light);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 900;
  font-size: 1.25rem;
  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.1rem;
  box-shadow: var(--shadow-sm);
}

.dialogue-bubble::after, .dialogue-bubble::before {
  right: 100%;
  top: 18px;
  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: 6px;
  margin-top: -6px;
}

.dialogue-bubble::before {
  border-color: rgba(203, 213, 225, 0);
  border-right-color: var(--border-muted);
  border-width: 8px;
  margin-top: -8px;
}

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

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

.booking-rules-card h4 {
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

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

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

.fuji-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-step-fieldset {
  border: none;
}

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

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

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

.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: 1rem 0.6rem;
  background-color: var(--card-bg);
  border: 1.5px 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: var(--shadow-sm);
}

.p-icon {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}

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

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

/* ==========================================
   CSS Form Dynamic Display using :has()
   ========================================== */
.form-dynamic-group {
  display: none;
  animation: formFadeIn 0.35s ease forwards;
}

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

/* 用件ごとの切り替え */
.fuji-form:has(input[value="takeout"]:checked) .group-takeout {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

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

/* 共通項目グループ */
.form-common-fields {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  border-top: 1.5px solid var(--border-muted);
  padding-top: 1.8rem;
}

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

.field-group label {
  font-size: 0.88rem;
  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.75rem 0.9rem;
  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: var(--shadow-active);
}

.field-group textarea {
  resize: vertical;
}

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

.error-message {
  font-size: 0.75rem;
  font-weight: 700;
  color: #ef4444; /* レッド */
  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.9rem;
}

/* :user-invalid に応じたスタイルの自動制御 */
.field-group:has(:user-invalid) input,
.field-group:has(:user-invalid) select,
.field-group:has(:user-invalid) textarea {
  border-color: #ef4444;
  background-color: #fff5f5;
}

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

.field-group:has(:user-invalid) label {
  color: #ef4444;
}

.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: #ef4444;
  background-color: #fff5f5;
}

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

.field-group.has-error label {
  color: #ef4444;
}

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

/* 送信ボタン */
.form-submit-wrapper {
  margin-top: 0.8rem;
}

.btn-submit {
  width: 100%;
  background-color: var(--primary);
  color: var(--text-light);
  font-size: 1rem;
  padding: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  box-shadow: var(--shadow-sm);
}

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

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

.spinner {
  width: 18px;
  height: 18px;
  border: 2.5px 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: #f0fdf4;
  border: 1.5px solid #16a34a;
  border-radius: var(--border-radius-md);
  padding: 2.2rem;
  text-align: center;
  animation: formFadeIn 0.45s ease forwards;
}

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

.form-success-box h3 {
  font-size: 1.25rem;
  color: #16a34a;
  margin-bottom: 0.8rem;
}

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

/* ==========================================================================
   10. フッター
   ========================================================================== */
.main-footer {
  background-color: var(--dark-bg);
  color: var(--text-light);
  padding: 50px 0 25px;
  border-top: 2px solid var(--border-muted);
}

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

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

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

.footer-tagline {
  font-size: 0.9rem;
  color: #94a3b8;
  text-align: center;
  max-width: 500px;
  margin-top: -1.2rem;
}

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

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

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

.footer-bottom {
  border-top: 1px solid rgba(226, 232, 240, 0.1);
  width: 100%;
  padding-top: 1.8rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.72rem;
  color: #64748b;
}

/* ==========================================================================
   11. スクロールアニメーション (Scroll-Driven & JS Fallback)
   ========================================================================== */
@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 25%;
  }

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

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

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

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

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

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

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

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

  .access-map-pane {
    order: -1;
  }

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

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

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

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

  .main-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .hero-section {
    padding: 100px 0 50px;
  }

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

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

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

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

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

  .form-pane {
    padding: 1.2rem;
  }

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