/* ============================================================
   鯖江フレーム診断 — Neo-Wa (ネオ和風) Style
   Palette: 紫 / 金 / 群青 × Dawn Gradient
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Neo-Wa palette */
  --c-bg-1: #1a0b2e;        /* 深夜明け */
  --c-bg-2: #2d1b4e;        /* 群青紫 */
  --c-bg-3: #553d7a;        /* 淡紫 */
  --c-bg-4: #d98cb3;        /* 夜明桃 */
  --c-bg-5: #f4c97b;        /* 夜明金 */

  --c-gold:      #e8c46a;   /* 金箔 */
  --c-gold-deep: #b8902d;
  --c-murasaki:  #7a4ec9;   /* 紫 */
  --c-gunjo:     #3f5bb3;   /* 群青 */
  --c-sumi:      #1b1228;   /* 墨 */
  --c-washi:     #f5ecda;   /* 生成り */

  --c-text:      #f4eadf;
  --c-text-sub:  #cfc2d9;
  --c-text-dark: #22132f;

  --shadow-glow: 0 0 24px rgba(232, 196, 106, 0.35);
  --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.45);

  --font-serif: 'Zen Old Mincho', 'Shippori Mincho', 'Noto Serif JP', serif;
  --font-sans:  'Noto Sans JP', 'Hiragino Sans', sans-serif;
}

html, body {
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--c-text);
  background: var(--c-bg-1);
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

body {
  position: relative;
  /* 夜明けグラデーション */
  background:
    radial-gradient(ellipse at 50% 120%, var(--c-bg-5) 0%, transparent 40%),
    radial-gradient(ellipse at 70% 95%, var(--c-bg-4) 0%, transparent 50%),
    linear-gradient(180deg, var(--c-bg-1) 0%, var(--c-bg-2) 40%, var(--c-bg-3) 80%, var(--c-bg-4) 100%);
  background-attachment: fixed;
}

/* 和柄オーバーレイ（七宝） */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 30px 30px, rgba(232, 196, 106, 0.08) 2px, transparent 2px),
    radial-gradient(circle at 90px 30px, rgba(232, 196, 106, 0.08) 2px, transparent 2px);
  background-size: 120px 60px, 120px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ネオン墨の横筋 */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, transparent 80%, rgba(26, 11, 46, 0.6) 100%),
    linear-gradient(0deg, transparent 0%, transparent 80%, rgba(26, 11, 46, 0.4) 100%);
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   戻るリンク
   ============================================================ */
.back-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 9999;
  padding: 10px 16px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  background: rgba(27, 18, 40, 0.85);
  border: 1px solid rgba(232, 196, 106, 0.55);
  border-radius: 999px;
  color: var(--c-text);
  font-family: var(--font-serif);
  font-size: 13px;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: all 0.25s;
}
.back-link:hover {
  background: rgba(232, 196, 106, 0.18);
  color: var(--c-gold);
  box-shadow: var(--shadow-glow);
}

/* ============================================================
   全体レイアウト
   ============================================================ */
#app {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 20px 40px;
  min-height: 100vh;
}

.screen { display: none; }
.screen.active { display: block; animation: fadeIn 0.45s ease; }

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

/* ============================================================
   タイトル画面
   ============================================================ */
#screen-title { text-align: center; padding-top: 30px; }

.title-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px; height: 58px;
  background: linear-gradient(135deg, var(--c-gold), var(--c-gold-deep));
  color: var(--c-sumi);
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 28px;
  border-radius: 10px;
  box-shadow: var(--shadow-glow);
  margin-bottom: 18px;
  transform: rotate(-4deg);
}

.title-main {
  font-family: var(--font-serif);
  font-size: clamp(32px, 6.4vw, 48px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, var(--c-gold) 0%, var(--c-washi) 50%, var(--c-gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(232, 196, 106, 0.25);
  margin-bottom: 10px;
}

.title-sub {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--c-text-sub);
  letter-spacing: 0.25em;
  margin-bottom: 6px;
}

.title-en {
  font-family: 'Cormorant Garamond', var(--font-serif);
  font-size: 12px;
  color: var(--c-gold);
  letter-spacing: 0.4em;
  margin-bottom: 34px;
}

.title-hero {
  margin: 0 auto 28px;
  max-width: 340px;
  aspect-ratio: 1 / 1;
}

.lead {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.9;
  color: var(--c-text);
  margin-bottom: 18px;
}
.lead .em {
  color: var(--c-gold);
  font-weight: 700;
}

.hook-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin: 22px auto 36px;
  max-width: 520px;
  font-size: 13px;
  color: var(--c-text-sub);
}
.hook-list li {
  list-style: none;
  padding-left: 14px;
  position: relative;
}
.hook-list li::before {
  content: '◆';
  position: absolute; left: 0;
  color: var(--c-gold);
  font-size: 10px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 42px;
  min-height: 48px;
  background: linear-gradient(135deg, var(--c-murasaki) 0%, var(--c-gunjo) 60%, var(--c-murasaki) 100%);
  color: var(--c-washi);
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.2em;
  border: 2px solid var(--c-gold);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: var(--shadow-glow), var(--shadow-card);
  text-decoration: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(232, 196, 106, 0.5), var(--shadow-card);
}
.btn-primary:active { transform: translateY(0); }

.btn-primary.compact { font-size: 15px; padding: 12px 26px; letter-spacing: 0.15em; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  min-height: 44px;
  background: transparent;
  color: var(--c-text);
  font-family: var(--font-serif);
  font-size: 14px;
  border: 1px solid rgba(232, 196, 106, 0.5);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
}
.btn-ghost:hover {
  background: rgba(232, 196, 106, 0.12);
  border-color: var(--c-gold);
}

.fukui-notice {
  margin-top: 36px;
  padding: 18px 22px;
  background: rgba(27, 18, 40, 0.5);
  border: 1px solid rgba(232, 196, 106, 0.2);
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--c-text-sub);
  line-height: 1.8;
}
.fukui-notice strong { color: var(--c-gold); }

/* ============================================================
   質問画面
   ============================================================ */
.progress-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  font-family: var(--font-serif);
  font-size: 13px;
  color: var(--c-text-sub);
  letter-spacing: 0.1em;
}
.progress-count { color: var(--c-gold); font-weight: 700; }

.progress-bar {
  height: 3px;
  background: rgba(232, 196, 106, 0.15);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 34px;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--c-murasaki), var(--c-gold));
  transition: width 0.5s ease;
  box-shadow: 0 0 8px rgba(232, 196, 106, 0.5);
}

.q-card {
  background: linear-gradient(180deg, rgba(45, 27, 78, 0.75) 0%, rgba(27, 18, 40, 0.85) 100%);
  border: 1px solid rgba(232, 196, 106, 0.22);
  border-radius: 12px;
  padding: 32px 26px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
}

.q-num {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 13px;
  color: var(--c-gold);
  letter-spacing: 0.3em;
  margin-bottom: 10px;
}

.q-title {
  font-family: var(--font-serif);
  font-size: clamp(20px, 4.8vw, 26px);
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.45;
}

.q-note {
  font-size: 12.5px;
  color: var(--c-text-sub);
  margin-bottom: 26px;
}

.q-options {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.q-option {
  padding: 15px 18px;
  min-height: 48px;
  background: rgba(245, 236, 218, 0.05);
  border: 1.5px solid rgba(232, 196, 106, 0.3);
  border-radius: 8px;
  color: var(--c-text);
  font-family: var(--font-serif);
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.q-option::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(122, 78, 201, 0.0), rgba(232, 196, 106, 0.0));
  transition: all 0.3s;
}
.q-option:hover {
  border-color: var(--c-gold);
  transform: translateX(4px);
}
.q-option:hover::before {
  background: linear-gradient(135deg, rgba(122, 78, 201, 0.15), rgba(232, 196, 106, 0.1));
}
.q-option .op-label { position: relative; z-index: 1; }

.q-option.binary {
  text-align: center;
  padding: 22px 18px;
  font-size: 16px;
}

.q-nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 24px;
}
.q-nav .btn-ghost { flex: 0 0 auto; }
.q-nav .spacer { flex: 1; }

/* ============================================================
   診断中アニメ
   ============================================================ */
#screen-calc { text-align: center; padding-top: 80px; }

.calc-wrap .calc-orb {
  width: 140px; height: 140px;
  margin: 0 auto 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--c-gold), var(--c-murasaki) 60%, var(--c-sumi) 100%);
  box-shadow: 0 0 50px rgba(232, 196, 106, 0.6);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { transform: scale(1); box-shadow: 0 0 50px rgba(232, 196, 106, 0.6); }
  50%     { transform: scale(1.08); box-shadow: 0 0 80px rgba(232, 196, 106, 0.9); }
}
.calc-text {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--c-gold);
  letter-spacing: 0.2em;
}

/* ============================================================
   結果画面
   ============================================================ */
.result-header {
  text-align: center;
  margin-bottom: 28px;
}
.result-label {
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.35em;
  color: var(--c-gold);
  margin-bottom: 8px;
}
.result-facetype {
  font-family: var(--font-serif);
  font-size: clamp(30px, 7vw, 44px);
  font-weight: 900;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--c-gold) 0%, var(--c-washi) 50%, var(--c-gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}
.result-facekana {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--c-text-sub);
  margin-bottom: 20px;
  letter-spacing: 0.2em;
}

/* 顔型×フレーム プレビュー */
.preview-stage {
  margin: 0 auto 24px;
  max-width: 420px;
  background: radial-gradient(ellipse at center, rgba(232, 196, 106, 0.12) 0%, transparent 70%);
  border-radius: 16px;
  padding: 16px 8px 8px;
  position: relative;
}
.preview-stage svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 20px rgba(232, 196, 106, 0.2));
}

.shape-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 8px;
}
.shape-chip {
  padding: 6px 12px;
  background: rgba(27, 18, 40, 0.6);
  border: 1px solid rgba(232, 196, 106, 0.35);
  border-radius: 999px;
  color: var(--c-text-sub);
  font-family: var(--font-serif);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.shape-chip:hover {
  color: var(--c-gold);
  border-color: var(--c-gold);
}
.shape-chip.active {
  background: linear-gradient(135deg, var(--c-murasaki), var(--c-gunjo));
  border-color: var(--c-gold);
  color: var(--c-washi);
  box-shadow: 0 0 12px rgba(232, 196, 106, 0.4);
}

.result-desc {
  background: linear-gradient(180deg, rgba(45, 27, 78, 0.6), rgba(27, 18, 40, 0.6));
  border-left: 3px solid var(--c-gold);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin-bottom: 26px;
  font-family: var(--font-serif);
  font-size: 14.5px;
  line-height: 1.9;
}
.result-desc .tag {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  background: rgba(232, 196, 106, 0.15);
  color: var(--c-gold);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.05em;
}

/* 推薦フレームリスト */
.section-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  margin: 32px 0 16px;
  padding-left: 14px;
  border-left: 4px solid var(--c-gold);
  letter-spacing: 0.08em;
}

.brand-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  list-style: none;
}

.brand-card {
  background: linear-gradient(180deg, rgba(45, 27, 78, 0.7), rgba(27, 18, 40, 0.85));
  border: 1px solid rgba(232, 196, 106, 0.25);
  border-radius: 10px;
  padding: 18px 18px 16px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s;
}
.brand-card:hover {
  border-color: var(--c-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.brand-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(180deg, var(--c-gold), var(--c-murasaki));
}

.brand-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  gap: 10px;
  flex-wrap: wrap;
}
.brand-name {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--c-washi);
}
.brand-since {
  font-family: 'Cormorant Garamond', var(--font-serif);
  font-size: 11px;
  color: var(--c-gold);
  letter-spacing: 0.2em;
}

.brand-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.brand-model {
  font-family: 'Cormorant Garamond', var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--c-gold);
  letter-spacing: 0.12em;
}
.brand-shape-tag {
  padding: 3px 10px;
  background: rgba(122, 78, 201, 0.3);
  border: 1px solid rgba(122, 78, 201, 0.6);
  border-radius: 4px;
  font-size: 11.5px;
  color: var(--c-washi);
  letter-spacing: 0.05em;
}
.brand-price {
  font-family: 'Cormorant Garamond', var(--font-serif);
  font-size: 15px;
  color: var(--c-washi);
}

.brand-note {
  font-size: 12.5px;
  color: var(--c-text-sub);
  line-height: 1.65;
  margin-bottom: 12px;
}

.brand-booth {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(63, 91, 179, 0.25);
  border: 1px dashed rgba(232, 196, 106, 0.4);
  border-radius: 6px;
  font-size: 12.5px;
}
.booth-icon {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-gold);
  color: var(--c-sumi);
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 11px;
  border-radius: 4px;
}
.booth-text b { color: var(--c-gold); }
.booth-text .dim { color: var(--c-text-sub); margin-left: 6px; }

/* ミュージアム ミニマップ */
.museum-map {
  margin-top: 22px;
  padding: 18px;
  background: rgba(27, 18, 40, 0.55);
  border: 1px solid rgba(232, 196, 106, 0.22);
  border-radius: 10px;
}
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 11.5px;
  color: var(--c-text-sub);
  margin-top: 10px;
  justify-content: center;
}
.legend-item { display: flex; align-items: center; gap: 4px; }
.legend-dot {
  display: inline-block;
  width: 10px; height: 10px; border-radius: 50%;
}

/* トリビア */
.trivia {
  margin-top: 24px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(232, 196, 106, 0.08), rgba(122, 78, 201, 0.08));
  border: 1px solid rgba(232, 196, 106, 0.3);
  border-radius: 8px;
  font-family: var(--font-serif);
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--c-washi);
  position: relative;
}
.trivia::before {
  content: '豆';
  position: absolute;
  top: -10px; left: 16px;
  background: var(--c-gold);
  color: var(--c-sumi);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 900;
}

/* アクション */
.result-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 32px;
}
.result-actions > button {
  min-height: 48px;
}

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 480px) {
  #app { padding: 54px 14px 30px; }
  .back-link { font-size: 12px; padding: 6px 12px; top: 10px; left: 10px; }
  .title-main { font-size: 30px; }
  .title-hero { max-width: 260px; }
  .lead { font-size: 15px; }
  .q-card { padding: 22px 18px; }
  .q-title { font-size: 19px; }
  .q-option { font-size: 14px; padding: 13px 15px; }
  .q-option.binary { padding: 18px 15px; font-size: 15px; }
  .result-facetype { font-size: 30px; }
  .brand-card { padding: 14px 14px 13px; }
  .brand-model { font-size: 17px; }
  .preview-stage { padding: 10px 4px 4px; }
  .btn-primary { font-size: 16px; padding: 14px 30px; }
}

/* ============================================================
   ステッパー（結果画面上部）
   ============================================================ */
.stepper {
  display: flex;
  gap: 4px;
  margin: 0 0 16px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(232, 196, 106, 0.4) transparent;
}
.stepper::-webkit-scrollbar { height: 3px; }
.stepper::-webkit-scrollbar-thumb { background: rgba(232, 196, 106, 0.4); border-radius: 2px; }

.step-item {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  padding: 4px 8px;
  font-family: var(--font-serif);
  font-size: 11px;
  color: var(--c-text-sub);
  background: rgba(27, 18, 40, 0.4);
  border: 1px solid rgba(232, 196, 106, 0.18);
  border-radius: 999px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.step-item.done {
  color: var(--c-gold);
  border-color: rgba(232, 196, 106, 0.5);
  background: rgba(232, 196, 106, 0.08);
}
.step-item .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  background: var(--c-gold);
  color: var(--c-sumi);
  border-radius: 50%;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 11px;
}

/* ============================================================
   プロフィールサマリー
   ============================================================ */
.profile-summary {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.profile-chip {
  padding: 4px 11px;
  background: rgba(122, 78, 201, 0.25);
  border: 1px solid rgba(232, 196, 106, 0.3);
  border-radius: 999px;
  font-family: var(--font-serif);
  font-size: 11.5px;
  color: var(--c-washi);
  letter-spacing: 0.05em;
}
.profile-chip b { color: var(--c-gold); }

/* ============================================================
   タブ
   ============================================================ */
.tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  border-bottom: 1px solid rgba(232, 196, 106, 0.25);
  margin-bottom: 24px;
  padding-bottom: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(232, 196, 106, 0.4) transparent;
}
.tabs::-webkit-scrollbar { height: 3px; }
.tabs::-webkit-scrollbar-thumb { background: rgba(232, 196, 106, 0.4); border-radius: 2px; }

.tab-btn {
  flex: 0 0 auto;
  padding: 12px 14px;
  min-height: 44px;
  background: transparent;
  color: var(--c-text-sub);
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  letter-spacing: 0.05em;
}
.tab-btn:hover { color: var(--c-gold); }
.tab-btn.active {
  color: var(--c-gold);
  border-bottom-color: var(--c-gold);
  text-shadow: 0 0 8px rgba(232, 196, 106, 0.3);
}

.tab-pane { display: none; animation: fadeIn 0.3s ease; }
.tab-pane.active { display: block; }

.pane-desc {
  font-family: var(--font-serif);
  font-size: 13px;
  color: var(--c-text-sub);
  line-height: 1.8;
  margin: -6px 0 18px;
}
.pane-desc strong { color: var(--c-gold); }

.sub-title {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  margin: 24px 0 12px;
  color: var(--c-washi);
  letter-spacing: 0.08em;
}

/* ============================================================
   分析グリッド
   ============================================================ */
.analysis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 22px 0;
}
.analysis-card {
  background: linear-gradient(180deg, rgba(45, 27, 78, 0.7), rgba(27, 18, 40, 0.85));
  border: 1px solid rgba(232, 196, 106, 0.22);
  border-radius: 8px;
  padding: 14px 14px;
}
.ac-label {
  font-family: var(--font-serif);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--c-gold);
  margin-bottom: 6px;
}
.analysis-card p {
  font-family: var(--font-serif);
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-text);
}

/* ============================================================
   ブランドカード拡張（価格・素材・ショップなど）
   ============================================================ */
.brand-list.compact .brand-card { padding: 12px 14px; }
.brand-list.compact .brand-model { font-size: 17px; }
.brand-list.compact .brand-name { font-size: 14px; }

.brand-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.brand-meta-chip {
  padding: 3px 9px;
  background: rgba(27, 18, 40, 0.6);
  border: 1px solid rgba(232, 196, 106, 0.3);
  border-radius: 4px;
  font-size: 11px;
  color: var(--c-text-sub);
  letter-spacing: 0.03em;
}
.brand-meta-chip b { color: var(--c-gold); }

.brand-feature {
  list-style: none;
  margin: 8px 0 10px;
  padding: 0;
  font-size: 11.5px;
  color: var(--c-text-sub);
  line-height: 1.75;
}
.brand-feature li {
  padding-left: 14px;
  position: relative;
}
.brand-feature li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--c-gold);
  font-size: 8px;
  top: 4px;
}

.brand-shop-row {
  font-size: 11.5px;
  color: var(--c-text-sub);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(232, 196, 106, 0.2);
  line-height: 1.65;
}
.brand-shop-row b { color: var(--c-gold); }

.brand-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--c-gold), var(--c-gold-deep));
  color: var(--c-sumi);
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  font-weight: 700;
  border-radius: 50%;
  margin-right: 8px;
  box-shadow: var(--shadow-glow);
}

/* ============================================================
   Leaflet 地図共通
   ============================================================ */
.leaflet-container {
  width: 100%;
  height: 360px;
  min-height: 300px;
  border-radius: 10px;
  border: 1px solid rgba(232, 196, 106, 0.3);
  overflow: hidden;
  margin-bottom: 16px;
  background: #1a0b2e;
}
.leaflet-container .leaflet-tile-pane { filter: invert(0.92) hue-rotate(180deg) brightness(0.95); }
.leaflet-popup-content-wrapper {
  background: rgba(27, 18, 40, 0.95);
  color: var(--c-text);
  border: 1px solid rgba(232, 196, 106, 0.4);
  border-radius: 8px;
  font-family: var(--font-serif);
}
.leaflet-popup-tip { background: rgba(27, 18, 40, 0.95); }
.leaflet-popup-content {
  margin: 10px 14px;
  font-size: 12.5px;
  line-height: 1.6;
}
.leaflet-popup-content b { color: var(--c-gold); }
.leaflet-popup-close-button { color: var(--c-gold) !important; }
.leaflet-control-attribution {
  background: rgba(27, 18, 40, 0.7) !important;
  color: var(--c-text-sub) !important;
  font-size: 9px !important;
}
.leaflet-control-attribution a { color: var(--c-gold) !important; }

/* 工房マップマーカー */
.workshop-marker {
  background: #e8c46a;
  border: 3px solid #1b1228;
  border-radius: 50%;
  width: 24px !important;
  height: 24px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 12px;
  color: #1b1228;
  box-shadow: 0 0 12px rgba(232, 196, 106, 0.8);
}

/* ============================================================
   工房ツアーリスト
   ============================================================ */
.workshop-list {
  list-style: none;
  counter-reset: w;
  padding: 0;
}
.workshop-list li {
  counter-increment: w;
  position: relative;
  padding: 14px 14px 14px 54px;
  margin-bottom: 10px;
  background: linear-gradient(180deg, rgba(45, 27, 78, 0.6), rgba(27, 18, 40, 0.8));
  border-left: 3px solid var(--c-gold);
  border-radius: 0 8px 8px 0;
}
.workshop-list li::before {
  content: counter(w);
  position: absolute;
  left: 12px;
  top: 14px;
  width: 30px; height: 30px;
  background: var(--c-gold);
  color: var(--c-sumi);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.workshop-list .w-name {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--c-washi);
  margin-bottom: 4px;
}
.workshop-list .w-meta {
  font-size: 11.5px;
  color: var(--c-text-sub);
  line-height: 1.65;
}
.workshop-list .w-meta b { color: var(--c-gold); }
.workshop-list .w-dist {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  background: rgba(63, 91, 179, 0.3);
  border-radius: 999px;
  font-size: 10.5px;
  color: var(--c-washi);
}

/* ============================================================
   店舗リスト・エリアフィルタ
   ============================================================ */
.area-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.area-chip {
  padding: 8px 14px;
  min-height: 36px;
  background: rgba(27, 18, 40, 0.6);
  border: 1px solid rgba(232, 196, 106, 0.3);
  border-radius: 999px;
  color: var(--c-text-sub);
  font-family: var(--font-serif);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.area-chip:hover { color: var(--c-gold); border-color: var(--c-gold); }
.area-chip.active {
  background: linear-gradient(135deg, var(--c-murasaki), var(--c-gunjo));
  color: var(--c-washi);
  border-color: var(--c-gold);
}

.shop-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.shop-item {
  background: linear-gradient(180deg, rgba(45, 27, 78, 0.6), rgba(27, 18, 40, 0.75));
  border: 1px solid rgba(232, 196, 106, 0.22);
  border-radius: 8px;
  padding: 12px 14px;
}
.shop-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.shop-name {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--c-washi);
}
.shop-area-tag {
  padding: 2px 8px;
  background: rgba(232, 196, 106, 0.15);
  color: var(--c-gold);
  border-radius: 4px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
}
.shop-addr {
  font-size: 11.5px;
  color: var(--c-text-sub);
  margin-bottom: 6px;
}
.shop-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.shop-brand-tag {
  padding: 2px 7px;
  background: rgba(122, 78, 201, 0.25);
  border: 1px solid rgba(122, 78, 201, 0.5);
  border-radius: 4px;
  font-size: 10.5px;
  color: var(--c-washi);
}

/* ============================================================
   ミュージアム見学プラン
   ============================================================ */
.museum-info {
  background: linear-gradient(135deg, rgba(232, 196, 106, 0.08), rgba(122, 78, 201, 0.08));
  border: 1px solid rgba(232, 196, 106, 0.3);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 16px;
  font-family: var(--font-serif);
  font-size: 13px;
  line-height: 1.8;
}
.museum-info strong { color: var(--c-gold); }
.museum-info .mi-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 4px;
  padding: 4px 0;
  border-bottom: 1px dashed rgba(232, 196, 106, 0.15);
  font-size: 12.5px;
}
.museum-info .mi-row:last-child { border-bottom: none; }
.museum-info .mi-label { color: var(--c-gold); font-size: 12px; }

.museum-stops {
  list-style: none;
  padding: 0;
  counter-reset: ms;
  margin-bottom: 20px;
}
.museum-stops li {
  counter-increment: ms;
  position: relative;
  padding: 12px 14px 12px 48px;
  margin-bottom: 8px;
  background: rgba(27, 18, 40, 0.55);
  border-left: 2px solid var(--c-gold);
  border-radius: 0 6px 6px 0;
}
.museum-stops li::before {
  content: counter(ms);
  position: absolute;
  left: 10px;
  top: 12px;
  width: 28px; height: 28px;
  background: rgba(232, 196, 106, 0.2);
  color: var(--c-gold);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--c-gold);
}
.museum-stops .ms-name {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--c-washi);
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}
.museum-stops .ms-time {
  font-size: 11px;
  color: var(--c-gold);
  font-family: 'Cormorant Garamond', serif;
}
.museum-stops .ms-desc {
  font-size: 11.5px;
  color: var(--c-text-sub);
  line-height: 1.6;
}

/* ============================================================
   チェックリスト
   ============================================================ */
.check-section { margin-bottom: 20px; }
.check-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 6px;
}
.check-item {
  padding: 10px 14px 10px 42px;
  background: rgba(27, 18, 40, 0.5);
  border: 1px solid rgba(232, 196, 106, 0.18);
  border-radius: 6px;
  font-family: var(--font-serif);
  font-size: 13px;
  color: var(--c-text);
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
  line-height: 1.5;
}
.check-item::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  border: 2px solid rgba(232, 196, 106, 0.5);
  border-radius: 4px;
  background: transparent;
  transition: all 0.2s;
}
.check-item.checked {
  background: rgba(232, 196, 106, 0.1);
  color: var(--c-gold);
  border-color: var(--c-gold);
}
.check-item.checked::before {
  background: var(--c-gold);
  border-color: var(--c-gold);
}
.check-item.checked::after {
  content: '✓';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-55%);
  color: var(--c-sumi);
  font-weight: 900;
  font-size: 13px;
}
.check-item:hover { border-color: var(--c-gold); }

/* ============================================================
   診断結果カード（ダウンロード用SVGソース）
   ============================================================ */
.offscreen {
  position: absolute;
  left: -9999px;
  top: -9999px;
  pointer-events: none;
}

/* ============================================================
   レスポンシブ（結果画面 追加）
   ============================================================ */
@media (max-width: 480px) {
  .analysis-grid { grid-template-columns: 1fr; }
  .tab-btn { font-size: 11.5px; padding: 10px 10px; min-height: 44px; }
  .step-item { font-size: 10px; padding: 3px 6px; }
  .leaflet-container { height: 60vh; min-height: 280px; max-height: 380px; }
  .museum-info .mi-row { grid-template-columns: 80px 1fr; font-size: 11.5px; }
}

/* ============================================================
   レスポンシブ（タブレット〜小PC: 720px以下）
   ============================================================ */
@media (max-width: 720px) {
  #app { padding: 60px 16px 36px; }
  .title-main { font-size: clamp(28px, 7vw, 38px); }
  .title-sub { font-size: 13px; letter-spacing: 0.18em; }
  .lead { font-size: 15px; line-height: 1.85; }
  .q-card { padding: 26px 18px; }
  .q-title { font-size: clamp(18px, 4.6vw, 22px); }
  .section-title { font-size: 16px; margin: 24px 0 12px; }
  .sub-title { font-size: 14px; }
  .brand-head { gap: 6px; }
  .brand-body { gap: 8px; }
  .brand-name { font-size: 16px; }
  .brand-model { font-size: 18px; }
  .result-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .result-actions > button { width: 100%; min-height: 48px; }
  .tabs { gap: 2px; }
  .stepper { gap: 3px; }
  .museum-map { padding: 12px; }
  .museum-map svg { max-width: 100%; height: auto; }
  /* テーブル横スクロール対応（将来的に追加されるテーブル用） */
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; min-width: 100%; }
}

/* ============================================================
   レスポンシブ（タブレット縦〜小型PC: 1024px以下）
   ============================================================ */
@media (max-width: 1024px) {
  #app { max-width: 720px; }
  .leaflet-container { height: 340px; }
}

/* ============================================================
   PC大画面（1280px以上）
   ============================================================ */
@media (min-width: 1280px) {
  #app { max-width: 760px; padding: 72px 24px 48px; }
  .leaflet-container { height: 400px; }
}

/* ============================================================
   タッチ最適化（スマホ／タブレット共通）
   ============================================================ */
@media (hover: none) and (pointer: coarse) {
  .q-option:hover { transform: none; }
  .brand-card:hover { transform: none; }
  .btn-primary:hover { transform: none; }
}

/* ============================================================
   印刷時：戻るリンク非表示
   ============================================================ */
@media print {
  .back-link, .result-actions, .tabs, .stepper { display: none !important; }
  body::before, body::after { display: none !important; }
  .tab-pane { display: block !important; page-break-inside: avoid; }
}
