/* ============================================================
   ザンギページ 追加スタイル（店舗アコーディオン＋まとめ地図）
   ※ テンプレの style.css は触らず、この追加ファイルで拡張しています
   ============================================================ */

/* ヒーロー画像のキャプションを、他の写真キャプションと同じ見た目に揃える
   （中央寄せ・薄いグレー） */
.hero__photo figcaption {
  font-size: 13px;
  color: var(--ink-muted);
  text-align: center;
  margin-top: 8px;
}

/* ページの先頭へ戻るボタン（左下・スクロールで出現）
   ※ 共通ナビが右下に固定表示されているため、ぶつからない左下に配置 */
.back-to-top {
  position: fixed;
  left: 20px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 1000;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { background: #d1631f; }
.back-to-top:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

@media (max-width: 600px) {
  .back-to-top { left: 16px; bottom: 16px; width: 44px; height: 44px; }
}

/* ヒーローの副題（テーマソング名） */
.hero__title { margin-bottom: 4px; } /* H1と副題の間隔を詰める（style.cssの18pxを上書き） */
.hero__subtitle {
  font-size: 20px;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: 0.06em;
  margin-top: 0;
  margin-bottom: 24px; /* 副題と下の本文の間隔を広げる */
}

/* 各料理の紹介の見出しの横に置くマスコット */
.dish-head { display: flex; align-items: center; gap: 12px; margin: 28px 0 12px; }
.dish-head h3, .dish-head .section__title { margin: 0; }
.dish-mascot { width: 62px; height: auto; flex-shrink: 0; }
@media (max-width: 600px) { .dish-mascot { width: 50px; } .dish-head { gap: 9px; } }

/* ②のダンス隊（4体マスコット・1体ずつタイミングをずらして踊る） */
.dance-troupe {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 2%;
  margin: 10px 0 4px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.dance-mascot {
  width: 23%;
  max-width: 118px;
  height: auto;
}

/* ②のテーマソング プレイヤー（YouTube風） */
.ts-player { margin: 18px 0 6px; max-width: 460px; }
.ts-player__title { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.ts-player__box {
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
/* シークバー（再生位置） */
.ts-seek {
  display: block; width: 100%;
  accent-color: var(--orange);
  cursor: pointer; margin: 0 0 8px;
}
/* コントロール行 */
.ts-controls { display: flex; align-items: center; gap: 10px; }
.ts-play, .ts-mute {
  display: inline-flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}
.ts-play {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--orange); color: #fff;
}
.ts-play:hover { background: #d1631f; }
.ts-mute {
  width: 34px; height: 34px; border-radius: 50%;
  background: none; color: var(--orange); padding: 0;
}
.ts-mute:hover { color: #d1631f; }
.ts-ic { flex-shrink: 0; }
.ts-ic-pause, .ts-ic-muted { display: none; }
.ts-play.is-playing .ts-ic-play { display: none; }
.ts-play.is-playing .ts-ic-pause { display: inline; }
.ts-mute.is-muted .ts-ic-vol { display: none; }
.ts-mute.is-muted .ts-ic-muted { display: inline; }
/* 音量つまみ */
.ts-vol { display: flex; align-items: center; gap: 4px; }
.ts-volbar { width: 90px; max-width: 28vw; accent-color: var(--orange); cursor: pointer; }
/* 時間表示（右寄せ） */
.ts-time {
  margin-left: auto; font-size: 13px; color: var(--ink-muted);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}

/* ④「迷ったら、これ」の補足行（このあと紹介します） */
.tip__note {
  display: inline-block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-muted);
}

/* ===== 全店まとめ地図 ===== */
.map-wrap {
  margin: 8px 0 28px;
}
.map-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* Leaflet 地図本体 */
.map-live {
  width: 100%;
  height: 420px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  z-index: 0;
}
.map-note {
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-top: 8px;
}

/* 距離感マップの常時表示ラベル（都市名＋距離＋時間） */
.leaflet-tooltip.city-label {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #E0D8CE;
  border-radius: 6px;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 700;
  color: #4A3F35;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  white-space: nowrap;
}
.leaflet-tooltip.city-label::before { display: none; } /* 吹き出しの三角を消す */
.leaflet-tooltip.city-label--main {
  color: #E8722C;
  font-size: 12px;
}

/* ===== 店舗カード（アコーディオン） ===== */
.stores { margin: 8px 0 4px; }

.store {
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 16px 0;
}

/* summary（たたんだときに見える部分）
   反応するのは「詳細を見る」ボタンだけに限定するため、summary全体は
   pointer-events: none にして、ボタン(.store__more)だけ auto に戻す */
.store > summary {
  list-style: none;
  cursor: default;
  display: block;
  pointer-events: none;
}
.store > summary::-webkit-details-marker { display: none; }

/* 写真（枠 or 実写真）= 16:9・自動トリミング（object-fit: cover） */
.store__photo-ph {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  background: #FFF7EF;
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  padding: 20px;
}
.store__photo { aspect-ratio: 16 / 9; }
.store__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.store__head { padding: 18px 20px 20px; }

.store__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.store__badge {
  font-size: 12px; font-weight: 700;
  padding: 5px 12px; border-radius: 999px;
  white-space: nowrap;
}
.store__badge--ok  { color: #2E7D6A; background: var(--green-light); }
.store__badge--no  { color: var(--ink-muted); background: #EFEAE4; }
.store__badge--check { color: #B26B00; background: #FFF3D6; }

.store__name {
  font-size: 18px; font-weight: 800; color: var(--ink);
  margin-bottom: 6px;
}
.store__summary {
  font-size: 14px; color: var(--ink-soft);
  margin-bottom: 14px;
}
.store__more {
  display: inline-block;
  font-size: 13px; font-weight: 700; color: var(--orange);
  border: 1.5px solid var(--orange);
  padding: 7px 16px; border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
  pointer-events: auto; /* summaryはnoneだが、このボタンだけは反応させる */
  cursor: pointer;
}
.store__more::after { content: "詳細を見る ＋"; }
.store[open] .store__more::after { content: "閉じる −"; }
.store__more:hover { background: var(--orange); color: #fff; }

/* 展開される中身 */
.store__body { padding: 4px 20px 22px; }
/* 開くときの動きを、柔らかく・ゆっくりに（フワッと降りてくる感じ） */
.store[open] .store__body {
  animation: storeOpen 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}
@keyframes storeOpen {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .store[open] .store__body { animation: none; }
}
.store__meta {
  display: grid; grid-template-columns: auto 1fr;
  gap: 8px 16px;
  font-size: 14px;
  margin: 4px 0 14px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.store__meta dt { font-weight: 700; color: var(--orange); white-space: nowrap; }
.store__meta dd { color: var(--ink-soft); }
.store__note { font-size: 14.5px; color: #444; margin-bottom: 16px; }
.store__map {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 700;
  color: #fff; background: var(--orange);
  padding: 10px 18px; border-radius: 999px;
  text-decoration: none;
}
.store__map:hover { opacity: 0.85; color: #fff; }

/* ボタン2つを横並びに */
.store__links { display: flex; flex-wrap: wrap; gap: 10px; }
.store__official {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 700;
  color: var(--orange); background: #fff;
  border: 1.5px solid var(--orange);
  padding: 9px 17px; border-radius: 999px;
  text-decoration: none;
}
.store__official:hover { background: var(--orange-light); color: var(--orange); }

@media (max-width: 600px) {
  .store__meta { grid-template-columns: 1fr; gap: 2px 0; }
  .store__meta dt { margin-top: 8px; }
}

/* ===== 料理写真（⑤⑦）も 16:9・自動トリミングに統一（style.css を上書き） ===== */
.photo-ph {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.photo img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}
/* ヒーロー写真も同じ比率に */
.hero__photo img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}
