/* ==========================================================================
   tsugi. - 気分や好みで次のお店が見つかるグルメ提案アプリ
   Design System & Styling
   ========================================================================== */

:root {
  /* 厳選5色ビビッド・ハイコントラストパレット (街コン・薄暗い会場映え仕様)
     1. --bg-app: タウンワークイエロー (#FFE500 / #FFDE00) - エネルギッシュで視線を引きつける主背景
     2. --accent-red: Tinderフレイムレッド (#FF3B5C) - 熱量・恋愛・決定を促す高彩度コーラルレッド
     3. --text-main: 漆黒ソリッドブラック (#111111) - イエローやホワイト上で最高コントラストを誇る文字・主ボタン
     4. --bg-surface: 純白ソリッドホワイト (#FFFFFF) - イエローの上に浮き立つクリーンなカード・モーダル
     5. --text-sub: ディープチャコール (#3D372E) - 薄暗い照明下でも絶対に潰れない高視認性サブ文字
  */
  --bg-app: #FFE500;
  --bg-app-gradient: linear-gradient(180deg, #FFE814 0%, #FFDF00 100%);
  --bg-surface: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-alt: #FFFBE6;
  
  --text-main: #111111;
  --text-sub: #3D372E;
  --text-muted: #6E6659;
  
  --border-light: rgba(18, 18, 18, 0.1);
  --border-dark: #111111;
  
  --accent-red: #FF3B5C;
  --accent-red-hover: #E0284A;
  --accent-red-bg: rgba(255, 59, 92, 0.1);
  --accent-gold: #D97706;
  --accent-gold-bg: #FEF3C7;
  --accent-gold-border: #FCD34D;
  --tag-bg: #F5EFCF;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-pill: 9999px;

  --font-serif: "Fraunces", Georgia, serif;
  --font-mincho: "Shippori Mincho B1", "Hiragino Mincho ProN", serif;
  --font-sans: "Zen Kaku Gothic New", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --shadow-sm: 0 2px 8px rgba(18, 18, 18, 0.06);
  --shadow-md: 0 8px 24px rgba(18, 18, 18, 0.12);
  --shadow-lg: 0 16px 40px rgba(18, 18, 18, 0.18);
  --shadow-flame: 0 8px 24px rgba(255, 59, 92, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  background: #111111; /* 外側デスクトップ背景は漆黒で、中央のスマホ画面(イエロー)を最大発色 */
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

/* スマホ実機／デスクトップ対応コンテナ */
.app-viewport {
  width: 100%;
  height: 100%;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.device-frame {
  width: 100%;
  max-width: 420px;
  height: 100%;
  height: 100dvh;
  background: var(--bg-app);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (min-width: 480px) {
  .device-frame {
    height: 92vh;
    max-height: 880px;
    border-radius: 40px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2), 0 0 0 10px #1E1B18, 0 0 0 12px #443F38;
  }
}

/* スクロールバー非表示 */
::-webkit-scrollbar {
  display: none;
}
* {
  scrollbar-width: none;
}

/* 共通フォントユーティリティ */
.font-serif { font-family: var(--font-serif); }
.font-mincho { font-family: var(--font-mincho); }
.font-sans { font-family: var(--font-sans); }

/* アニメーション */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes stampIn {
  0% { opacity: 0; transform: scale(2.5) rotate(-30deg); }
  65% { opacity: 1; transform: scale(0.92) rotate(-8deg); }
  100% { opacity: 1; transform: scale(1) rotate(-10deg); }
}

@keyframes pulseNudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

.animate-fade-in {
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animate-slide-up {
  animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ヘッダー */
.app-header {
  height: 60px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-app);
  z-index: 10;
  flex-shrink: 0;
}

.brand-logo {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-main);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.brand-logo .dot {
  color: var(--accent-red);
}
.brand-sub {
  font-size: 11px;
  font-family: var(--font-sans);
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-left: 6px;
  font-style: normal;
  font-weight: 500;
}

.step-indicator {
  font-family: var(--font-serif);
  font-size: 13px;
  color: var(--text-sub);
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* プログレスバー (Tinderレッドエナジーグラデーション) */
.progress-bar-container {
  height: 3px;
  background: rgba(18, 18, 18, 0.08);
  width: 100%;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #FF655B 0%, #FF3B5C 100%);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(255, 59, 92, 0.6);
}

/* メインコンテンツエリア（Flexboxで上部と下部に挟まれ、スクロール） */
.screen-container {
  flex: 1 1 0%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 18px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

/* タイトルエリア */
.screen-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.screen-title {
  font-family: var(--font-mincho);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: var(--text-main);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
}
.screen-desc {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.4;
  font-weight: 600;
}

/* フッターCTAバー（機種によらず画面最下部に固定配置、Safe Area対応） */
.footer-cta-bar {
  flex-shrink: 0;
  width: 100%;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 12px));
  background: var(--bg-app);
  border-top: 1.5px solid rgba(18, 18, 18, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 20;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

/* 高コントラスト主ボタン (漆黒 × 白文字) */
.btn-primary {
  flex: 1;
  height: 52px;
  border-radius: var(--radius-pill);
  background: var(--text-main);
  color: #FFFFFF;
  border: none;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.2s cubic-bezier(0.2, 0, 0, 1), background-color 0.2s;
  user-select: none;
}
.btn-primary:active {
  transform: scale(0.97);
  background: #262626;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.btn-primary.disabled {
  background: rgba(255, 255, 255, 0.75);
  color: #554D3D;
  border: 1.5px dashed rgba(17, 17, 17, 0.3);
  cursor: not-allowed;
  box-shadow: none;
}

/* アイコンボタン (純白 × 漆黒枠線) */
.btn-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--text-main);
  background: #FFFFFF;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s, background-color 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
  user-select: none;
}
.btn-icon:active {
  transform: scale(0.92);
  background: #111111;
  color: #FFFFFF;
}

.btn-ghost {
  background: transparent;
  border: none;
  color: var(--text-sub);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  padding: 8px 12px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Material 3 Tonal Button (シャッフル・セカンダリ操作用) */
.btn-tonal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 44px;
  min-height: 44px;
  padding: 0 18px;
  background: rgba(29, 26, 22, 0.08);
  color: var(--text-main);
  border: 1px solid rgba(29, 26, 22, 0.12);
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
}
.btn-tonal:active {
  background: rgba(29, 26, 22, 0.16);
  transform: scale(0.96);
}

/* モーダル閉じるボタン (Apple HIG 44px 準拠) */
.btn-modal-close {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

/* カタログ内 決定ボタン */
.btn-pick-catalog {
  flex: 1;
  background: var(--text-main);
  color: #FAF7F2;
  border: none;
  border-radius: var(--radius-pill);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s, background-color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.btn-pick-catalog:active {
  transform: scale(0.97);
  background: #000;
}

/* ==========================================================================
   Step 0: シーン・気分選択（シズル感ある美麗写真カードUI）
   ========================================================================== */
.scene-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.scene-card.photo-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 106px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 2px solid transparent;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.scene-card.photo-card:active {
  transform: scale(0.98);
}

.scene-card.photo-card.selected {
  border-color: #FAF7F2;
  box-shadow: 0 8px 24px rgba(29, 26, 22, 0.3), 0 0 0 2px var(--accent-red);
}

.scene-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.scene-card.photo-card:hover .scene-card-bg,
.scene-card.photo-card.selected .scene-card-bg {
  transform: scale(1.04);
}

.scene-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 16, 12, 0.25) 0%, rgba(20, 16, 12, 0.82) 100%);
  transition: background 0.3s;
}

.scene-card.photo-card.selected .scene-card-overlay {
  background: linear-gradient(180deg, rgba(30, 20, 12, 0.15) 0%, rgba(20, 16, 12, 0.88) 100%);
}

.scene-card-content {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #FFFFFF;
}

.scene-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.scene-badge-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.scene-card .check-circle {
  width: 24px;
  height: 24px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.scene-card.selected .check-circle {
  border-color: var(--accent-red);
  background: var(--accent-red);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(184, 51, 42, 0.4);
}

.scene-card-bottom {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.scene-en-tag {
  font-family: var(--font-serif);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  text-transform: uppercase;
}

.scene-card .main-title {
  font-family: var(--font-mincho);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
  color: #FFFFFF;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.scene-card .sub-desc {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.35;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   Step 1: ジャンルタイル（シズル感ある料理写真タイル）
   ========================================================================== */
.genre-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.genre-tile.photo-tile {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 114px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  border: 2px solid transparent;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.genre-tile.photo-tile:active {
  transform: scale(0.97);
}

.genre-tile.photo-tile.selected {
  border-color: #FAF7F2;
  box-shadow: 0 6px 20px rgba(29, 26, 22, 0.35), 0 0 0 2px var(--accent-red);
}

.genre-tile-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.genre-tile.photo-tile:hover .genre-tile-bg,
.genre-tile.photo-tile.selected .genre-tile-bg {
  transform: scale(1.05);
}

.genre-tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 12, 8, 0.2) 0%, rgba(15, 12, 8, 0.82) 100%);
  transition: background 0.3s;
}

.genre-tile.photo-tile.selected .genre-tile-overlay {
  background: linear-gradient(180deg, rgba(25, 15, 10, 0.1) 0%, rgba(15, 12, 8, 0.88) 100%);
}

.genre-tile-content {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #FFFFFF;
}

.genre-tile .tile-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.genre-en-tag {
  font-family: var(--font-serif);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.genre-tile .badge-circle-empty {
  width: 20px;
  height: 20px;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
  display: block;
}

.genre-tile .badge-count {
  width: 20px;
  height: 20px;
  border-radius: 10px;
  background: var(--accent-red);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(184, 51, 42, 0.5);
}

.genre-tile .tile-bottom {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.genre-tile .tile-title {
  font-family: var(--font-mincho);
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
  line-height: 1.25;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.genre-tile .tile-desc-sub {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* 全選択/こだわりなしボタン (純白 × 漆黒枠線) */
.any-genre-btn {
  grid-column: span 2;
  background: #FFFFFF;
  border: 1.5px solid var(--text-main);
  border-radius: var(--radius-lg);
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.any-genre-btn:active {
  transform: scale(0.98);
}
.any-genre-btn.selected {
  background: var(--text-main);
  border-color: var(--text-main);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   Step 2: エリア選択（東西南北タブ ＆ 駅名ホワイトカード）
   ========================================================================== */
.region-tabs-container {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-top: 4px;
  -webkit-overflow-scrolling: touch;
}

.region-tab-chip {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  border: 1.5px solid var(--text-main);
  background: #FFFFFF;
  color: var(--text-main);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.region-tab-chip:active {
  transform: scale(0.96);
}

.region-tab-chip.active {
  background: var(--text-main);
  color: #FFFFFF;
  border-color: var(--text-main);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.area-list-wrapper {
  position: relative;
  padding: 16px 18px 16px 24px;
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1.5px solid rgba(0, 0, 0, 0.05);
}

.area-timeline-line {
  position: absolute;
  left: 31px;
  top: 28px;
  bottom: 28px;
  width: 2px;
  background: rgba(18, 18, 18, 0.12);
  z-index: 1;
}

.area-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  z-index: 2;
}

.area-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 12px 10px 0;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: background 0.15s;
  text-align: left;
  color: var(--text-main);
}
.area-item:active {
  background: rgba(0, 0, 0, 0.05);
}
.area-item.selected {
  color: var(--text-main);
  font-weight: 800;
}

.area-node {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid var(--text-main);
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.3, 0.7, 0.4, 1.5);
  box-shadow: 0 0 0 4px #FFFFFF;
}
.area-item.selected .area-node {
  background: var(--accent-red);
  border-color: var(--accent-red);
  transform: scale(1.3);
  box-shadow: 0 0 0 4px #FFFFFF, 0 0 8px rgba(255, 59, 92, 0.4);
}

.area-names {
  flex: 1;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.area-name-jp {
  font-family: var(--font-mincho);
  font-size: 18.5px;
  font-weight: 700;
}
.area-name-en {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 12px;
  color: var(--text-muted);
}
.area-count-pill {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: #FFE500;
  color: #111111;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.area-item.selected .area-count-pill {
  background: var(--accent-red);
  color: #FFFFFF;
  border-color: var(--accent-red);
}

/* ==========================================================================
   Step 4: 提案一覧（カードスワイプ ＆ リスト切り替え）
   ========================================================================== */
.results-header-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.view-toggle {
  display: flex;
  background: #EAE3D5;
  border-radius: var(--radius-pill);
  padding: 3px;
}
.view-toggle-btn {
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  border: none;
  font-size: 12px;
  font-weight: 700;
  background: transparent;
  color: var(--text-sub);
  cursor: pointer;
  transition: all 0.2s;
}
.view-toggle-btn.active {
  background: var(--bg-surface);
  color: var(--text-main);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* ==========================================================================
   Step 4: おすすめ店舗リスト（画像なし・Material 3 クリーンリスト ＆ 評価スコア）
   ========================================================================== */
.shop-list-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 4px 0 20px;
}

.shop-item-card {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  border: 2px solid transparent;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  position: relative;
}
.shop-item-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}
.shop-item-card.s-rank {
  border-color: var(--accent-red);
  background: #FFFFFF;
  box-shadow: 0 6px 24px rgba(255, 59, 92, 0.22);
}

.shop-card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.shop-badge-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.area-badge-pill {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: #EFEAE0;
  color: var(--text-main);
}

.genre-badge-pill {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: rgba(184, 56, 40, 0.08);
  color: var(--accent-red);
}

.s-rank-pill {
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: #D97706;
  color: #FFFFFF;
  letter-spacing: 0.02em;
}

.shop-item-name {
  font-family: var(--font-mincho);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text-main);
  margin: 0;
}

/* 食べログ ＆ Google Maps 評価スコアバッジ行 */
.shop-scores-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.score-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.score-badge.tabelog {
  background: #FFF4ED;
  color: #C65612;
  border: 1px solid #FCD8BE;
}

.score-badge.google {
  background: #F0F6FF;
  color: #1A73E8;
  border: 1px solid #CBE0FD;
}

.shop-item-memo {
  font-size: 12.5px;
  color: var(--text-sub);
  line-height: 1.5;
  background: #FAF7F2;
  border-left: 3px solid var(--accent-red);
  padding: 7px 10px;
  border-radius: 4px;
}

.shop-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.shop-tag {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--tag-bg);
  color: var(--text-main);
  font-weight: 500;
}
.shop-tag.highlight {
  background: #FCECE9;
  color: var(--accent-red);
  font-weight: 700;
}

.shop-item-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
}

.btn-select-shop {
  width: 100%;
  height: 48px;
  min-height: 48px;
  border-radius: var(--radius-pill);
  background: var(--text-main);
  color: #FFFFFF;
  border: none;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-select-shop:active {
  transform: scale(0.97);
  background: var(--accent-red);
  box-shadow: 0 4px 16px rgba(255, 59, 92, 0.4);
}

/* 食べログ ＆ Google Maps 横並びボタングループ */
.dual-ext-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-ext-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  padding: 8px 8px;
  min-height: 38px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  color: var(--text-main);
  transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.btn-ext-link:active {
  transform: scale(0.96);
}
.btn-ext-link.tabelog {
  color: #C65612;
  background: #FFF9F5;
  border-color: #F8DFC8;
}
.btn-ext-link.maps {
  color: #1A73E8;
  background: #F4F8FE;
  border-color: #D2E3FC;
}
.btn-ext-link:active {
  transform: scale(0.96);
}
.btn-ext-link.tabelog {
  color: #C65612;
  background: #FFF9F5;
  border-color: #F8DFC8;
}
.btn-ext-link.maps {
  color: #1A73E8;
  background: #F4F8FE;
  border-color: #D2E3FC;
}

/* リスト表示モード（サムネイル付き） */
.shop-list-view {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shop-list-item {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 14px;
  display: flex;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}

.list-thumb-wrap {
  width: 76px;
  height: 94px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  background: #25221F;
}
.list-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.list-thumb-badge {
  position: absolute;
  bottom: 4px;
  left: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.65);
  color: #FFFFFF;
  font-size: 9.5px;
  font-weight: 700;
  text-align: center;
  border-radius: 4px;
  padding: 2px 0;
}

.list-content-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

/* ==========================================================================
   Step 5: 決定・チケット画面 & INVITATION
   ========================================================================== */
.ticket-wrapper {
  perspective: 1000px;
  margin-top: 4px;
}

.invitation-ticket {
  background: #1C1916;
  color: #FAF7F2;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.ticket-top {
  padding: 16px 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
  background: #181513;
}

.ticket-bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: saturate(0.8) brightness(0.7);
  pointer-events: none;
}

.ticket-top > *:not(.ticket-bg-photo) {
  position: relative;
  z-index: 2;
}

.ticket-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ticket-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #D6CCC0;
}
.ticket-no {
  font-family: var(--font-serif);
  font-size: 12px;
  color: #D6CCC0;
}

.ticket-shop-name {
  font-family: var(--font-mincho);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  color: #FAF7F2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.ticket-meta {
  font-size: 12px;
  color: #D6CCC0;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* チケットの切り取り線＆ノッチ */
.ticket-perforation {
  position: relative;
  height: 20px;
  display: flex;
  align-items: center;
}
.notch-left, .notch-right {
  position: absolute;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 10px;
  background: var(--bg-app);
}
.notch-left { left: -10px; }
.notch-right { right: -10px; }

.dashed-line {
  width: 100%;
  margin: 0 16px;
  border-top: 1.5px dashed #4E473F;
}

.ticket-bottom {
  padding: 12px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.message-type-selector {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.msg-tab {
  padding: 8px 14px;
  min-height: 38px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  color: #E8E2D8;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.msg-tab:active {
  transform: scale(0.96);
}
.msg-tab.active {
  background: var(--accent-red);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(197, 65, 41, 0.35);
}

.invitation-text-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.65;
  color: #FAF7F2;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 145px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}
.invitation-text-box::-webkit-scrollbar {
  width: 4px;
}
.invitation-text-box::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

/* 決定スタンプ */
.stamp-seal {
  position: absolute;
  top: 22px;
  right: 14px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px dashed #E07A5F;
  color: #E07A5F;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: stampIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1.2) both;
  pointer-events: none;
}
.stamp-seal .stamp-text {
  font-family: var(--font-mincho);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}
.stamp-seal .stamp-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 10px;
}

/* コピートースト通知 */
.toast-notice {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1C1916;
  color: #FAF7F2;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
}
.toast-notice.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* デート成功のワンポイントアドバイス */
.dating-tips-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--text-sub);
}
.dating-tips-card .tip-title {
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   全160店舗カタログボタン & モーダルシート
   ========================================================================== */
.btn-catalog-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--text-main);
  background: #FFFFFF;
  color: var(--text-main);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: all 0.15s;
}
.btn-catalog-pill:active {
  background: var(--text-main);
  color: #FFFFFF;
}

.catalog-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 50;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.catalog-modal-sheet {
  background: var(--bg-app);
  height: 85%;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.25);
  animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.catalog-modal-header {
  padding: 18px 20px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-surface);
}

.catalog-search-box {
  padding: 12px 18px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 10px;
}
.catalog-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-main);
  outline: none;
}
.catalog-input::placeholder {
  color: var(--text-muted);
}

.catalog-filter-scroll {
  display: flex;
  gap: 8px;
  padding: 10px 18px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #F4EFE6;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
  scrollbar-width: none;
}
.catalog-filter-scroll::-webkit-scrollbar {
  display: none;
}
.catalog-filter-chip {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  color: var(--text-sub);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}
.catalog-filter-chip.active {
  background: var(--text-main);
  color: #FAF7F2;
  border-color: var(--text-main);
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.catalog-list {
  flex: 1;
  overflow-y: auto;
  padding: 14px 18px 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.catalog-item-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.catalog-item-card:hover {
  border-color: var(--border-focus);
}

/* ==========================================================================
   iPhone SE / 小型画面・無印系ナンバリング最適化（ボタンの安定配置・誤タップ防止）
   ========================================================================== */
@media (max-height: 720px) {
  .screen-container {
    padding: 12px 16px 14px;
    gap: 12px;
  }
  .screen-title {
    font-size: 21px;
  }
  .genre-tile {
    height: 84px;
    padding: 8px 10px;
    border-radius: 14px;
  }
  .genre-tile .tile-title {
    font-size: 15px;
  }
  .genre-tile .icon-wrap-m3 {
    width: 24px;
    height: 24px;
  }
  .any-genre-btn {
    padding: 10px 14px;
    font-size: 12.5px;
  }
  .shop-card-hero {
    height: 120px;
    padding: 10px 12px 8px;
  }
  .shop-card-body {
    padding: 10px 12px 10px;
    gap: 5px;
  }
  .shop-card-name {
    font-size: 17px;
  }
  .btn-select-shop {
    height: 44px;
    min-height: 44px;
    font-size: 13.5px;
  }
  .btn-ext-link {
    padding: 6px 6px;
    font-size: 11px;
    min-height: 36px;
  }
  .ticket-top {
    padding: 12px 14px 10px;
  }
  .ticket-shop-name {
    font-size: 18px;
  }
  .ticket-bottom {
    padding: 10px 14px 12px;
  }
  .invitation-text-box {
    max-height: 125px;
    font-size: 12px;
    line-height: 1.55;
  }
}

/* ==========================================================================
   営業時間・21時以降OKフィルター ＆ バッジ
   ========================================================================== */
.filter-bar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 6px;
}

.btn-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  border: 1.5px solid var(--text-main);
  background: #FFFFFF;
  color: var(--text-main);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-filter-toggle.active {
  background: var(--text-main);
  color: #FFFFFF;
  border-color: var(--text-main);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.shop-hours-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--text-sub);
}
.shop-hours-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #F3EFE8;
  border-radius: 4px;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 600;
  color: #5A534B;
}
.badge-late-ok {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #EFEBF7;
  color: #5E4B8B;
  border: 1px solid #D8CFEB;
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 10.5px;
  font-weight: 700;
}
.badge-lunch-ok {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #FEF6EB;
  color: #B9770E;
  border: 1px solid #F5D3A2;
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 10.5px;
  font-weight: 700;
}
.badge-lunch-filter-active {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #FEF6EB;
  color: #B9770E;
  border: 1px solid #F5D3A2;
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 700;
}

/* ==========================================================================
   最新スマホUI/UX: iOS 18風 ボトムシート ＆ ピッカー ＆ デジタルパスカード
   ========================================================================== */

/* ボトムシート オーバーレイ */
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 16, 14, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 60;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* iOS 18風 ネイティブボトムシート (純白サーフェス) */
.modal-sheet {
  background: #FFFFFF;
  max-height: 90%;
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.28);
  animation: slideUp 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
  position: relative;
}

/* iOS グラバーバー（引っ張りハンドル） */
.modal-sheet::before {
  content: '';
  display: block;
  width: 38px;
  height: 4.5px;
  border-radius: 9999px;
  background: rgba(18, 18, 18, 0.15);
  margin: 10px auto 2px;
  flex-shrink: 0;
}

.modal-header {
  padding: 10px 20px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
}

.modal-title {
  font-family: var(--font-mincho);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.modal-subtitle {
  font-size: 12px;
  color: var(--text-sub);
  margin-top: 3px;
  font-weight: 600;
}

.btn-modal-close {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: #F4EFCF;
  border: none;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.btn-modal-close:active {
  transform: scale(0.92);
  background: var(--text-main);
  color: #FFFFFF;
}

.modal-body {
  padding: 8px 20px calc(24px + env(safe-area-inset-bottom, 16px));
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* フォームセクションラベル */
.sheet-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.sheet-section-title {
  font-size: 12px;
  font-weight: 800;
  color: #8C8476;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* 横スクロール 日付カルーセルカード (Airbnb / Uber Style) */
.date-scroll-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 16px 12px;
  margin: 0 -20px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  scroll-padding: 0 16px;
}
.date-scroll-track::-webkit-scrollbar {
  display: none;
}

.date-card-pill {
  flex: 0 0 72px;
  height: 88px;
  border-radius: 18px;
  border: 1.5px solid #E6DFC5;
  background: #FFFFFF;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  scroll-snap-align: center;
  -webkit-tap-highlight-color: transparent;
}
.date-card-pill:active {
  transform: scale(0.94);
}
.date-card-pill .card-sub-tag {
  font-size: 9.5px;
  font-weight: 700;
  color: #8E8578;
  letter-spacing: 0.02em;
}
.date-card-pill .card-day-num {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}
.date-card-pill .card-weekday {
  font-size: 11px;
  font-weight: 600;
  color: #8E8578;
}

/* アクティブ日付カード */
.date-card-pill.active {
  background: #1D1A16;
  border-color: #1D1A16;
  color: #FAF7F2;
  box-shadow: 0 8px 18px rgba(29, 26, 22, 0.25);
  transform: translateY(-2px);
}
.date-card-pill.active .card-sub-tag {
  color: #E2B980;
}
.date-card-pill.active .card-weekday {
  color: #D6CCC0;
}

/* 時間ピルチップス (iOS 18 Pill Selector) */
.time-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.time-pill-btn {
  padding: 10px 18px;
  border-radius: 9999px;
  border: 1.5px solid #E2DAC8;
  background: #FFFFFF;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
.time-pill-btn:active {
  transform: scale(0.94);
}
.time-pill-btn.active {
  background: var(--text-main);
  color: #FAF7F2;
  border-color: var(--text-main);
  box-shadow: 0 4px 12px rgba(29, 26, 22, 0.18);
}

/* 選択サマリーカード */
.selected-preview-banner {
  background: #EFE8DC;
  border-radius: 16px;
  padding: 13px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.preview-label {
  font-size: 12px;
  color: #7D7568;
  font-weight: 600;
}
.preview-value {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 800;
  color: #B8332A;
}

/* 決定ボタン（漆黒ソリッド × 白文字） */
.btn-sheet-primary {
  width: 100%;
  height: 52px;
  border-radius: 9999px;
  background: var(--text-main);
  color: #FFFFFF;
  border: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s, box-shadow 0.2s, background-color 0.2s;
}
.btn-sheet-primary:active {
  transform: scale(0.97);
  background: var(--accent-red);
  box-shadow: 0 4px 16px rgba(255, 59, 92, 0.4);
}

/* ==========================================================================
   Step 4: Apple Wallet風 デジタルパス ＆ QRコードカード
   ========================================================================== */
.pass-ticket-card {
  background: #FFFFFF;
  border-radius: 24px;
  border: 1px solid #EAE3D5;
  box-shadow: 0 8px 30px rgba(29, 26, 22, 0.08);
  overflow: hidden;
  margin-top: 10px;
}

.pass-card-header {
  padding: 14px 18px 12px;
  background: #FAF7F2;
  border-bottom: 1px solid #EFEAE0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pass-header-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #8C8476;
  text-transform: uppercase;
}

/* iOS Fluid Segmented Control */
.segmented-control {
  background: #ECE5D8;
  border-radius: 9999px;
  padding: 3px;
  display: flex;
  gap: 2px;
  position: relative;
  margin: 14px 16px 4px;
}

.seg-tab-btn {
  flex: 1;
  padding: 8px 10px;
  border: none;
  background: transparent;
  color: #7D7568;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.seg-tab-btn.active {
  background: #FFFFFF;
  color: #1D1A16;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* サブピル（Apple/Google切り替え） */
.sub-cal-pills {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}
.sub-pill-btn {
  padding: 5px 13px;
  border-radius: 9999px;
  border: 1px solid #E0D7C6;
  background: #FAF7F2;
  color: #6E6659;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.sub-pill-btn.active {
  background: #1D1A16;
  color: #FAF7F2;
  border-color: #1D1A16;
}

/* QRスキャンビューア（クワイエットゾーン確保 ＆ 高認識デザイン） */
.qr-scanner-frame {
  margin: 16px auto 10px;
  width: 224px;
  height: 224px;
  border-radius: 20px;
  background: #FFFFFF;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid #ECE4D6;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 14px;
}

.qr-scanner-frame::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 16px;
  pointer-events: none;
  border: 1.5px solid rgba(29, 26, 22, 0.08);
}

.qr-scanner-frame svg {
  width: 100%;
  height: 100%;
  display: block;
}

.pass-scan-instruction {
  font-size: 12px;
  color: #7D7568;
  line-height: 1.5;
  text-align: center;
  max-width: 290px;
  margin: 0 auto 14px;
  padding: 0 10px;
}

/* ブランドアクションボタン（洗練されたマテリアル調） */
.pass-actions-group {
  padding: 0 16px 18px;
  display: flex;
  gap: 8px;
}

.btn-pass-action {
  flex: 1;
  height: 46px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-pass-action:active {
  transform: scale(0.97);
}

/* Googleカレンダー用ボタン */
.btn-pass-action.google {
  background: #E8F0FE;
  color: #1A73E8;
  border-color: #D2E3FC;
}

/* Appleカレンダー用ボタン */
.btn-pass-action.apple {
  background: #F2EFE9;
  color: #1D1A16;
  border-color: #DDD4C3;
}

/* LINE用ボタン */
.btn-pass-action.line {
  background: #06C755;
  color: #FFFFFF;
  box-shadow: 0 3px 10px rgba(6, 199, 85, 0.3);
}

/* Instagram用ボタン */
.btn-pass-action.instagram {
  background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF);
  color: #FFFFFF;
  box-shadow: 0 3px 10px rgba(221, 42, 123, 0.3);
}

/* サブ設定ボタン */
.btn-pass-action.secondary {
  background: #FAF7F2;
  color: #5C5448;
  border-color: #E2DAC8;
}

/* ==========================================================================
   Step 4: 最下部 フローティングアクションバー（LINE送信用）
   ========================================================================== */
.footer-cta-bar.floating-step4 {
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(222, 214, 200, 0.8);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 10px));
}

.btn-line-send-hero {
  flex: 1;
  height: 50px;
  border-radius: 9999px;
  background: #06C755;
  color: #FFFFFF;
  border: none;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(6, 199, 85, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-line-send-hero:active {
  transform: scale(0.97);
}

.btn-copy-sub {
  height: 50px;
  padding: 0 16px;
  border-radius: 9999px;
  background: #1D1A16;
  color: #FAF7F2;
  border: none;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-copy-sub:active {
  transform: scale(0.97);
}

.ticket-datetime-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 9999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #FAF7F2;
  cursor: pointer;
  flex-shrink: 0;
  min-height: 34px;
  transition: background 0.15s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.ticket-datetime-badge:active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.25);
}



