/* ============================================================
   境港まんなかトラベル PoC — 利用者向けWebアプリ
   既存サイトの Canva パレットを継承（§9.1 資産再利用）
   モバイルファースト 375px〜 / タップターゲット44px以上（§3）
   ============================================================ */
:root {
  --beige: #f5f0e8; --beige-dark: #e8e0d0; --cream: #fdfaf4;
  --brown: #7c5c3e; --brown-dark: #5a3e28; --brown-light: #b89070;
  --accent: #c8956c; --accent2: #e8b87a;
  --dark: #1e2030; --dark2: #2a2d3e;
  --text: #3a3226; --text-muted: #7a6e62;
  --white: #fff; --pill-bg: #e6ddd0;
  --ok: #4e8a4e; --warn: #c2762b; --err: #b3423a;
  /* [2026-09-08] シェアサイクル案内のカード罫線用。参照実装(yt0oyy)側も
     未定義のまま var(--line) を使っていたため、既存の --beige-dark と
     同色で明示的に定義する（意図せず境界線が消える不具合を避けるため）。 */
  --line: #e8e0d0;
  --radius: 14px;
  --fs-base: 16px;
}
html[data-fontsize="large"] { --fs-base: 19px; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", system-ui, sans-serif;
  font-size: var(--fs-base); color: var(--text); background: var(--cream);
  line-height: 1.7; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: var(--brown); }

.container { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.section { padding: 56px 0; }
.section-title { font-size: 1.5em; font-weight: 700; color: var(--brown-dark); text-wrap: balance; }
.section-sub { color: var(--text-muted); margin: 4px 0 24px; font-size: .92em; }

/* [修正] 緊急バナー＋ヘッダーをまとめてスクロール追従させるラッパー(index.html
   #stickyTop参照)。以前は.header単体がsticky/z-indexを持っていたが、バナーの
   高さが可変(display:none/block・文言の長さで複数行になる)なため、ヘッダー側に
   固定pxのtopオフセットを与える方式は組めない。ラッパーごとstickyにすることで、
   バナーの有無・高さに関わらず常に一体で追従する。z-index:500は元々.headerが
   持っていた値をそのまま引き継ぐ（モーダル.modal-bk(900番台)・地図コンテナ
   (z-index:1)より確実に手前、かつモーダルより後ろの関係は維持）。 */
#stickyTop { position: sticky; top: 0; z-index: 500; }

/* ---------- 緊急バナー (§5.1) ---------- */
#emergencyBanner { display: none; background: var(--err); color: #fff; padding: 10px 16px; font-weight: 600; text-align: center; }
#emergencyBanner.active { display: block; }

/* ---------- ヘッダー ---------- */
.header { background: rgba(253, 250, 244, .95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--beige-dark); }
.header-in { display: flex; align-items: center; gap: 8px; padding: 8px 12px; max-width: 1080px; margin: 0 auto; }
.brand { font-weight: 800; color: var(--brown-dark); font-size: clamp(.78em, 3.2vw, 1.05em); line-height: 1.25; text-decoration: none; white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.brand small { display: block; font-size: .56em; letter-spacing: .1em; color: var(--text-muted); font-weight: 500; }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.tool-btn {
  min-height: 44px; min-width: 42px; border: 1px solid var(--beige-dark); background: var(--white);
  border-radius: 10px; padding: 4px 8px; font-size: .78em; color: var(--brown-dark); position: relative;
  white-space: nowrap; line-height: 1.2;
}
.tool-btn.primary { background: var(--brown); color: #fff; border-color: var(--brown); font-weight: 600; padding: 4px 12px; }
@media (max-width: 360px) { .brand small { display: none; } }
.badge { position: absolute; top: -6px; right: -6px; background: var(--err); color: #fff; font-size: .68em; border-radius: 999px; min-width: 18px; height: 18px; line-height: 18px; text-align: center; padding: 0 4px; }

/* ---------- お知らせティッカー ---------- */
.notice-ticker { display: flex; align-items: center; gap: 8px; width: 100%; border: none; background: var(--dark); color: #e8dcc8; height: 34px; padding: 0 12px; font-size: .78em; cursor: pointer; text-align: left; }
.ticker-icon { flex-shrink: 0; }
.ticker-viewport { flex: 1; overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-flex; animation: ticker 22s linear infinite; }
.ticker-track span { white-space: nowrap; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } .ticker-viewport { text-overflow: ellipsis; } }

/* ---------- マイアカウント ---------- */
.acct-sec { border-top: 1px solid var(--beige-dark); padding: 14px 0; }
.acct-sec:first-child { border-top: none; }
.acct-sec h3 { font-size: .92em; color: var(--brown-dark); margin-bottom: 10px; letter-spacing: .04em; }
.acct-empty { font-size: .82em; color: var(--text-muted); }
.status-strip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--white); border: 1px solid var(--beige-dark); border-left: 4px solid var(--accent); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; font-size: .85em; }
.status-strip .status-info { flex-basis: 100%; font-size: .92em; color: var(--text-muted); }
.fav-course-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--white); border: 1px solid var(--beige-dark); border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; }
.fav-course-card .muted-sm { font-size: .76em; color: var(--text-muted); margin-top: 2px; }
.fav-course-card .btn { min-height: 42px; font-size: .78em; padding: 6px 14px; flex-shrink: 0; }
.acct-toggle { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: .92em; }
.acct-toggle input { width: 22px; height: 22px; }
.sso-btn { background: var(--white); border: 1px solid var(--beige-dark); color: var(--text); font-size: .85em; }
.sso-btn .sso-g { font-weight: 800; color: #4285f4; }
.sso-btn.sso-apple { background: #111; color: #fff; border-color: #111; }
.sso-btn.sso-apple::before { content: ""; }

/* ---------- ヒーロー ---------- */
.hero { background: linear-gradient(160deg, var(--dark) 0%, #33405c 55%, #59657f 100%); color: #fff; padding: 64px 0 72px; position: relative; overflow: hidden; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.2s; }
.hero-slide.active { opacity: 1; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30, 32, 48, .78) 0%, rgba(30, 32, 48, .45) 55%, rgba(30, 32, 48, .82) 100%); }
.hero-content { position: relative; z-index: 2; }
.hero-caption { margin-top: 18px; font-size: .82em; color: #e8dcc8; min-height: 1.5em; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.hero-caption::before { content: "― "; color: var(--accent2); }
.hero-dots { display: flex; gap: 10px; margin-top: 12px; }
.hero-dots button { width: 12px; height: 12px; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .7); background: transparent; cursor: pointer; }
.hero-dots button.on { background: var(--accent2); border-color: var(--accent2); }
@media (min-width: 768px) { .hero { padding: 96px 0 100px; } }
.hero-tagline { display: inline-block; background: rgba(30, 32, 48, .45); border: 1px solid rgba(232, 184, 122, .55); color: var(--accent2); border-radius: 999px; padding: 3px 12px; font-size: .72em; letter-spacing: .1em; }
.hero h1 { font-size: clamp(1.6em, 6vw, 2.8em); margin: 12px 0 8px; line-height: 1.3; text-wrap: balance; letter-spacing: .05em; text-shadow: 0 2px 12px rgba(0, 0, 0, .45); }
.hero-lead { color: #e6e2d8; white-space: pre-line; font-size: .88em; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.hero-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
/* [修正] white-space指定が無いと、flexアイテムのmin-widthは既定でmin-content幅まで
   縮められる。日本語はスペースで区切られないため改行可能点が文字間になり、
   幅が足りないと1文字ずつ縦に折り返る不具合になっていた（AQUOS wish3実機で再現）。
   3ボタン中「スタンプを押す（QRを読む）」が最も長い文言のため最初に閾値を超えていたが、
   同じ弱点は3ボタン共通のため.hero-btns .btn全体に適用する。
   flex-wrap:wrapは維持するため、収まらない場合はボタンが増えるだけで1行のテキストは
   保たれる（320px幅・文字サイズ大でも横スクロールが発生しないことを実機相当の
   ビューポートで確認済み）。 */
.hero-btns .btn { font-size: .88em; min-height: 46px; padding: 8px 18px; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); white-space: nowrap; flex-shrink: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px; border-radius: 999px; border: none;
  font-weight: 700; font-size: .95em; text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-outline { background: transparent; color: var(--accent2); border: 2px solid var(--accent2); }
.btn-brown { background: var(--brown); color: #fff; }
.btn-ghost { background: var(--pill-bg); color: var(--brown-dark); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-soldout { background: #b8b2a8 !important; color: #f1ede6 !important; border-color: #b8b2a8 !important; box-shadow: none !important; }
/* [修正] hidden属性の既定スタイル([hidden]{display:none})は.btnや.notice-tickerの
   display指定と詳細度が同じ(0,1,0)で、後勝ちの作成者スタイルシート側が勝つため、
   要素.hidden=trueで非表示にしたはずのボタン等が表示され続けていた（実機報告）。
   IDセレクタで詳細度を上げ、hidden属性側を確実に勝たせる。同様にJSでhiddenを
   使い分けている要素のうち、display指定を持つクラスと組み合わせている箇所は
   ここに追加する。 */
#routeDetail[hidden], #noticeTicker[hidden], #albumWebShareBtn[hidden] { display: none; }
.ship-info { margin-top: 22px; display: inline-flex; flex-direction: column; gap: 2px; background: rgba(30, 32, 48, .55); border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; padding: 8px 16px; font-size: .8em; backdrop-filter: blur(4px); }
.ship-info b { color: var(--accent2); }
.ship-line1 { white-space: nowrap; }
.ship-line2 { color: #c9cddb; font-size: .92em; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- スポット ---------- */
.area-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pill { min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--beige-dark); background: var(--white); color: var(--text); font-size: .85em; }
.pill.active { background: var(--brown); border-color: var(--brown); color: #fff; font-weight: 600; }
#spotMap { height: 380px; border-radius: var(--radius); border: 1px solid var(--beige-dark); background: #dfe6ef; z-index: 1; }
.spot-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin-top: 20px; }
.spot-card { background: var(--white); border: 1px solid var(--beige-dark); border-radius: var(--radius); overflow: hidden; text-align: left; padding: 0; display: flex; flex-direction: column; }
.spot-card-img { height: 130px; background: linear-gradient(135deg, #46536b, #93a7c4); display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, .9); font-weight: 700; background-size: cover; background-position: center; overflow: hidden; }
.spot-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spot-detail-img { width: 100%; height: 170px; object-fit: cover; border-radius: 10px; margin: 10px 0; display: block; }
.spot-card-body { padding: 12px 14px 14px; }
.spot-area-tag { display: inline-block; background: var(--pill-bg); color: var(--brown-dark); font-size: .72em; border-radius: 6px; padding: 2px 8px; margin-bottom: 6px; }
.spot-card h3 { font-size: 1em; color: var(--brown-dark); }
.spot-card p { font-size: .82em; color: var(--text-muted); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tag-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }

/* A-01系(動画コンテンツ管理): 見どころ動画セクション・コース詳細への埋め込み共通 */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 20px; }
.video-card { background: var(--white); border: 1px solid var(--beige-dark); border-radius: var(--radius); overflow: hidden; cursor: pointer; margin-bottom: 10px; }
.video-thumb-wrap { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; font-size: 1.3em; display: flex; align-items: center; justify-content: center; }
.video-title { padding: 8px 12px; font-size: .85em; color: var(--brown-dark); font-weight: 600; }
.video-embed-wrap { position: relative; aspect-ratio: 16 / 9; }
.video-embed-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.t-tag { font-size: .72em; background: var(--beige); border-radius: 6px; padding: 2px 8px; color: var(--text-muted); }
.spot-video { display: inline-block; margin: 6px 0; font-size: .85em; color: var(--accent); font-weight: 700; }

/* スポット詳細: 主導線(撮影)＋補助のクイックアクション */
.spot-main-btn { width: 100%; margin-top: 10px; font-size: 1.02em; }
.spot-sub-actions { display: flex; gap: 6px; margin-top: 8px; }
.spot-sub-actions .btn { flex: 1; min-width: 0; padding: 8px 4px; font-size: .78em; min-height: 44px; }

/* ---------- ガチャ ---------- */
.gacha-panel { background: var(--dark); border-radius: 20px; color: #fff; padding: 28px 20px; }
.gacha-form { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.gacha-form label { font-size: .8em; color: #b9bed0; display: block; margin-bottom: 4px; }
.gacha-form select, .gacha-form input {
  width: 100%; min-height: 46px; border-radius: 10px; border: 1px solid #454b63; background: var(--dark2);
  color: #fff; padding: 8px 12px; font-size: .95em;
}
.gacha-actions { margin-top: 18px; text-align: center; }
.capsule-stage { display: none; text-align: center; padding: 30px 0 10px; }
.capsule-stage.active { display: block; }
.capsule { width: 90px; height: 90px; margin: 0 auto; border-radius: 50%; position: relative;
  background: linear-gradient(180deg, var(--accent2) 50%, var(--white) 50%); animation: shake 1s ease-in-out; }
.capsule::after { content: ""; position: absolute; inset: 42px 0 auto; height: 6px; background: var(--dark); }
@keyframes shake { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-14deg); } 40% { transform: rotate(12deg); } 60% { transform: rotate(-8deg); } 80% { transform: rotate(6deg); } }
@media (prefers-reduced-motion: reduce) { .capsule { animation: none; } }
.gacha-result { display: none; margin-top: 20px; background: var(--white); color: var(--text); border-radius: var(--radius); padding: 18px; }
.gacha-result.active { display: block; }
.rarity { display: inline-block; font-size: .72em; font-weight: 800; border-radius: 6px; padding: 2px 10px; color: #fff; background: var(--brown-light); }
.rarity.SR { background: #8a63c9; } .rarity.SSR { background: linear-gradient(90deg, #d4a017, #e8b87a); }
.stamp-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.stamp { width: 62px; height: 62px; border-radius: 50%; border: 2px dashed var(--beige-dark); display: flex; align-items: center; justify-content: center; font-size: .62em; text-align: center; color: var(--text-muted); padding: 4px; }
.stamp.on { border: 3px solid var(--ok); color: var(--ok); font-weight: 800; transform: rotate(-8deg); background: #eef6ee; }
.progress-track { background: var(--beige); border-radius: 999px; height: 10px; overflow: hidden; margin: 8px 0 4px; }
.progress-fill { height: 100%; background: var(--ok); border-radius: 999px; transition: width .4s; }
.course-transport { background: var(--beige); border-radius: 12px; padding: 10px 12px; margin: 10px 0; }
.course-transport .muted-sm { font-size: .8em; color: var(--text-muted); }
.ct-head { font-weight: 700; font-size: .88em; color: var(--brown-dark); }
.ct-item { display: flex; flex-direction: column; gap: 1px; width: 100%; text-align: left; font: inherit; font-size: .86em; font-weight: 700; color: var(--brown-dark); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 11px; margin-top: 6px; cursor: pointer; }
.ct-item small { font-weight: 400; color: var(--text-muted); font-size: .9em; }
.ct-item:hover { border-color: var(--accent2); }
/* [修正] Leafletの標準コントロール(ズームボタン・©表示)は.leaflet-top/.leaflet-bottom
   がz-index:1000(leaflet.css)のため、地図コンテナ側にz-index指定が無いと、後から
   開いたモーダル(.modal-bk、z-index:900)より手前に来てしまう（実機報告）。
   #spotMapに先行して適用済みの対処(z-index:1)と同じものを適用する。Leafletが
   L.map()初期化時にコンテナへposition:relativeを自動付与するため、position指定を
   追加しなくても新しいスタッキングコンテキストが作られ、この値だけで効く。 */
#gachaMiniMap { height: 200px; border-radius: 10px; margin: 10px 0; background: #dfe6ef; z-index: 1; }

/* ---------- 交通カード ---------- */
.transport-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.tcard { background: var(--white); border: 1px solid var(--beige-dark); border-radius: var(--radius); padding: 18px; }
.tcard h3 { color: var(--brown-dark); font-size: 1.05em; }
.tcard .price { color: var(--accent); font-weight: 800; margin: 6px 0; }
.tcard p { font-size: .84em; color: var(--text-muted); margin-bottom: 12px; }

/* ---------- モーダル共通 ---------- */
.access-row { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; background: var(--cream); border: 1px solid var(--beige-dark); border-radius: 10px; padding: 8px 12px; margin: 10px 0; font-size: .82em; }
.access-row b { color: var(--brown-dark); font-size: .92em; }
.deadline-note { background: var(--beige); border-radius: 10px; padding: 8px 12px; margin-top: 8px; font-size: .82em; color: var(--text-muted); }
.deadline-note b { color: var(--brown-dark); font-size: 1.1em; }
/* 行き先スポットの複数選択リスト（.form-grid の input/label 既定より詳細度を高くする） */
.spot-picklist { max-height: 240px; overflow-y: auto; border: 1px solid var(--beige-dark); border-radius: 10px; background: var(--white); }
.spot-picklist .spot-pick { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 12px; border-bottom: 1px solid var(--beige); cursor: pointer; }
.spot-picklist .spot-pick:last-child { border-bottom: none; }
.spot-picklist .spot-pick.on { background: var(--cream); }
.spot-picklist .spot-pick.off { opacity: .5; cursor: not-allowed; }
.spot-picklist .spot-pick.off .sp-meta { color: var(--err); font-weight: 700; }
.spot-picklist .spot-pick input[type="checkbox"] { width: 22px; min-width: 22px; height: 22px; min-height: 22px; flex: none; margin: 0; padding: 0; accent-color: var(--brown); }
.spot-picklist .spot-pick .sp-name { flex: 1; font-size: .88em; font-weight: 600; color: var(--text); }
.spot-picklist .spot-pick .sp-meta { font-size: .74em; color: var(--text-muted); white-space: nowrap; }
.seg-row { display: flex; gap: 6px; margin-top: 10px; background: var(--cream); border: 1px solid var(--beige-dark); border-radius: 999px; padding: 4px; }
.seg { flex: 1; border: none; background: transparent; border-radius: 999px; padding: 9px 6px; font-size: .82em; font-weight: 700; color: var(--text-muted); cursor: pointer; }
.seg.on { background: var(--brown); color: #fff; }
.modal-bk { display: none; position: fixed; inset: 0; background: rgba(30, 32, 48, .55); z-index: 900; }
.modal-bk.active { display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 640px) { .modal-bk.active { align-items: center; } }
.modal { background: var(--cream); width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto;
  border-radius: 18px 18px 0 0; padding: 20px 18px 28px; }
@media (min-width: 640px) { .modal { border-radius: 18px; } }
.modal h2 { color: var(--brown-dark); font-size: 1.2em; display: flex; align-items: center; justify-content: space-between; }
.modal-close { background: var(--pill-bg); border: none; border-radius: 50%; width: 40px; height: 40px; font-size: 1.1em; color: var(--brown-dark); }
.tabs { display: flex; gap: 6px; margin: 14px 0; }
.tab { flex: 1; min-height: 46px; border: 1px solid var(--beige-dark); background: var(--white); border-radius: 10px; font-size: .82em; color: var(--text); }
.tab.active { background: var(--brown); color: #fff; border-color: var(--brown); font-weight: 700; }
.form-grid { display: grid; gap: 12px; }
.form-grid label { font-size: .8em; color: var(--text-muted); display: block; margin-bottom: 3px; }
.form-grid select, .form-grid input {
  width: 100%; min-height: 46px; border: 1px solid var(--beige-dark); border-radius: 10px;
  padding: 8px 12px; font-size: .95em; background: var(--white); color: var(--text);
}
.fare-box { background: var(--beige); border-radius: 10px; padding: 10px 14px; font-size: .9em; }
.fare-box b { color: var(--brown-dark); font-size: 1.2em; }
.warn-box { background: #fbeee0; border: 1px solid var(--warn); color: #7a4a12; border-radius: 10px; padding: 10px 14px; font-size: .85em; margin-top: 8px; }
.err-box { background: #f9e8e6; border: 1px solid var(--err); color: #7c2620; border-radius: 10px; padding: 10px 14px; font-size: .85em; margin-top: 8px; }
.ok-box { background: #eef6ee; border: 1px solid var(--ok); color: #2c5a2c; border-radius: 10px; padding: 10px 14px; font-size: .9em; margin-top: 8px; }
.info-box { background: #eef2f7; border: 1px solid #b9c8da; color: #26405c; border-radius: 10px; padding: 11px 14px; font-size: .95em; line-height: 1.6; margin-top: 8px; }

/* ---- シェアサイクル案内（W-03b, 2026-09-08）---- */
.cy-area { width: 100%; min-height: 46px; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-size: 1em; background: #fff; }
.cy-group { margin-top: 16px; }
.cy-group-head { font-weight: 700; color: var(--brown-dark); font-size: 1em; display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.cy-group-head small { font-weight: 400; color: var(--text-muted); font-size: .9em; line-height: 1.55; }
.cy-card { border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; background: #fff; }
.cy-card.off { opacity: .58; }
.cy-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.cy-top b { color: var(--brown-dark); font-size: 1.02em; }
.cy-dist { font-size: .9em; color: #0b6b5c; white-space: nowrap; font-weight: 700; }
.cy-sub { font-size: .93em; color: var(--text-muted); margin-top: 3px; line-height: 1.5; }
.cy-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.cy-chip { font-size: .9em; border: 1px solid var(--line); border-radius: 100px; padding: 4px 11px; color: #6b6055; white-space: nowrap; }
.cy-chip.ret-A { border-color: #9aa3a0; color: #5f6b68; }
.cy-chip.ret-B { border-color: #c8952a; color: #8a6413; }
.cy-chip.ret-C { border-color: #4a7bb0; color: #2f5a86; }
.cy-chip.ret-D { border-color: #199e88; color: #0d7c6b; background: #e8f5f2; }
.cy-note { font-size: .92em; color: #6b3f0d; background: #fbf3e6; border-radius: 8px; padding: 8px 11px; margin-top: 8px; line-height: 1.5; }
.cy-more { width: 100%; margin-top: 10px; min-height: 48px; font-size: .96em; }
.cy-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 4px; }
.cy-facts > div { background: var(--beige); border-radius: 10px; padding: 8px 11px; display: flex; flex-direction: column; gap: 1px; }
.cy-facts span { font-size: .85em; color: #6b6055; }
.cy-facts b { font-size: .96em; color: var(--brown-dark); line-height: 1.5; }
.cy-h { font-size: 1.02em; color: var(--brown-dark); margin: 16px 0 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cy-steps { margin: 0 0 12px; padding-left: 1.3em; font-size: .98em; line-height: 1.7; }
.cy-steps li { margin-bottom: 5px; }
.cy-stations { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 10px; }
.cy-station { font: inherit; font-size: .9em; min-height: 44px; background: #fff; border: 1.5px solid var(--line); border-radius: 100px; padding: 8px 15px; cursor: pointer; color: var(--brown-dark); }
.cy-station:hover { border-color: var(--accent2); }
.cy-station small { color: var(--text-muted); font-size: .9em; }
/* --- 拠点マップ（事業者ごとに色分けしたピン） --- */
.cy-mapwrap { margin: 12px 0 14px; }
.cy-maphead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.cy-maphead b { font-size: .98em; color: var(--brown-dark); }
.cy-locate {
  min-height: 44px; padding: 6px 14px; border-radius: 999px;
  border: 1.5px solid var(--brown); background: var(--white); color: var(--brown-dark);
  font: inherit; font-size: .9em; font-weight: 700; white-space: nowrap; flex: none;
}
/* [修正] #gachaMiniMapと同じ理由(Leaflet標準コントロールがモーダルより手前に
   出てしまう実機報告)。#spotMapで先行対処済みのz-index:1を適用する。 */
.cy-mainmap { height: 260px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--beige); z-index: 1; }
.cy-mapempty { padding: 24px 16px; text-align: center; color: var(--text-muted); font-size: .92em; }
.cy-maphint { font-size: .88em; color: var(--text-muted); margin-top: 8px; line-height: 1.6; }
.cy-mapnote { font-size: .85em; color: var(--text-muted); margin-top: 6px; line-height: 1.6; }
.cy-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 10px; }
.cy-legend-item { display: inline-flex; align-items: center; gap: 6px; font-size: .88em; color: var(--text); }
.cy-legend-item i { width: 12px; height: 12px; border-radius: 50%; flex: none; border: 1.5px solid var(--white); box-shadow: 0 0 0 1px rgba(0, 0, 0, .18); }
.cy-dot { display: inline-block; width: 13px; height: 13px; border-radius: 50%; margin-right: 8px; vertical-align: -1px; }
.cy-st-op { font-size: .95em; color: var(--brown-dark); font-weight: 700; }
.cy-st-dist { font-size: .95em; color: var(--text-muted); margin-top: 2px; }
.cy-st-dist b { color: #0b6b5c; }
/* [修正] 上記.cy-mainmap/#gachaMiniMapと同じ理由・同じ対処。 */
.cy-map { height: 220px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--beige); z-index: 1; }
.cy-spot { background: #e8f5f2; border: 1px solid #b7ded6; border-radius: 12px; padding: 10px 12px; margin: 8px 0; }
.cy-spot > b { font-size: .95em; color: #0d7c6b; display: block; margin-bottom: 6px; }
.cy-spot-item { display: flex; flex-direction: column; gap: 1px; width: 100%; text-align: left; font: inherit; font-size: .86em; font-weight: 700; color: var(--brown-dark); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 11px; margin-top: 6px; cursor: pointer; }
.cy-spot-item small { font-weight: 400; color: var(--text-muted); font-size: .9em; }
.cy-spot-item:hover { border-color: var(--accent2); }

.qr-holder { text-align: center; padding: 12px; }
.qr-holder img, .qr-holder canvas { image-rendering: pixelated; }

/* ---------- 予約カード ---------- */
.bk-card { background: var(--white); border: 1px solid var(--beige-dark); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; }
.bk-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.bk-no { font-family: ui-monospace, monospace; font-size: .82em; color: var(--text-muted); }
.st { font-size: .74em; font-weight: 700; border-radius: 999px; padding: 3px 10px; }
.st-confirmed { background: #e8f0fb; color: #2c5282; } .st-renting { background: #eef6ee; color: var(--ok); }
.st-completed { background: var(--beige); color: var(--text-muted); } .st-cancelled, .st-expired { background: #f9e8e6; color: var(--err); }
.st-requested, .st-dispatching { background: #fbeee0; color: var(--warn); } .st-dispatched { background: #eef6ee; color: var(--ok); }
.st-boarded { background: #eef6ee; color: var(--ok); }
/* A-02-5: 配車盤・未割当一覧のタイムアウト強調（5分経過=黄／10分経過=赤） */
tr.to-warn > td { background: #fdf3d9; }
tr.to-danger > td { background: #f9e0dd; }
/* A-01-15: 編集画面の変更履歴タブ・元に戻すボタン */
.history-block { margin: 10px 0; }
.history-panel { background: var(--cream); border: 1px solid var(--beige-dark); border-radius: 8px; padding: 10px 14px; margin-top: 6px; }
.bk-body { font-size: .88em; margin-top: 6px; }
.bk-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.bk-actions .btn { min-height: 44px; font-size: .82em; padding: 8px 16px; }
.countdown { font-weight: 800; color: var(--warn); }

/* ---------- クーポン ---------- */
.coupon-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.coupon { border: 2px dashed var(--accent); border-radius: var(--radius); background: var(--white); padding: 16px; position: relative; }
.coupon.used { opacity: .55; border-style: solid; }
.coupon-lock { margin-top: 10px; padding: 10px; text-align: center; background: var(--cream); border: 1px dashed var(--beige-dark); border-radius: 10px; font-size: .8em; color: var(--text-muted); }

/* ③スタンプラリー */
.rally-card { background: var(--white); border: 1px solid var(--beige-dark); border-radius: 16px; overflow: hidden; margin-bottom: 18px; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.rally-card.done { border-color: var(--brown); }
.rally-img { width: 100%; height: 140px; object-fit: cover; display: block; }
.rally-body { padding: 14px 16px 16px; }
.rally-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rally-head b { font-size: 1.05em; color: var(--brown-dark); }
.rally-desc { font-size: .85em; color: var(--text-muted); margin: 6px 0 10px; }
.rally-prog { display: flex; justify-content: space-between; font-size: .85em; margin-bottom: 4px; }
.rally-prog b { color: var(--brown-dark); font-size: 1.1em; }
.rally-group { margin: 10px 0; }
.rally-group-label { display: inline-flex; align-items: center; gap: 6px; background: var(--pill-bg); color: var(--brown-dark); font-size: .85em; font-weight: 700; border-radius: 999px; padding: 3px 11px; }
.area-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.rally-stamps { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin: 6px 0 0; }
.rally-stamp { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border: 2px dashed var(--beige-dark); border-radius: 12px; background: var(--cream); cursor: pointer; }
.rally-stamp .rs-no { position: absolute; top: 3px; left: 6px; font-size: .62em; font-weight: 700; color: var(--text-muted); }
.rally-stamp.on { border-style: solid; border-color: var(--brown); background: #fff6ea; }
.rally-stamp .rs-mark { font-size: 1.6em; filter: grayscale(1); opacity: .45; }
.rally-stamp.on .rs-mark { filter: none; opacity: 1; }
.rally-stamp .rs-name { font-size: .7em; font-weight: 600; color: var(--text); text-align: center; line-height: 1.25; }
.rally-stamp .rs-at { font-size: .64em; color: var(--brown); }
.tier-panel { border: 1px solid var(--beige-dark); border-radius: 12px; overflow: hidden; margin: 12px 0; }
.tier-head { background: var(--cream); padding: 8px 12px; font-size: .85em; font-weight: 700; color: var(--brown-dark); }
.tier-head small { display: block; font-weight: 400; font-size: .82em; color: var(--text-muted); }
.tier-row { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-top: 1px solid var(--beige); opacity: .55; }
.tier-row.on { opacity: 1; background: #fffdf9; }
.tier-row.special { background: #fff6ea; }
.tier-badge { flex: none; min-width: 34px; text-align: center; font-weight: 700; font-size: .78em; color: #fff; background: var(--brown); border-radius: 6px; padding: 3px 4px; }
.tier-row.special .tier-badge { background: var(--accent2); }
.tier-name { flex: 1; font-size: .82em; font-weight: 600; line-height: 1.3; }
.tier-name small { display: block; font-weight: 400; color: var(--text-muted); font-size: .88em; }
.tier-need { flex: none; font-size: .72em; color: var(--text-muted); white-space: nowrap; }
.tier-act { flex: none; }
.rally-photos { margin-top: 12px; }
.rally-photos-head { font-size: .82em; font-weight: 700; color: var(--brown-dark); margin-bottom: 6px; }
.rally-photos-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.rally-photos-row figure { flex: none; width: 92px; margin: 0; }
.rally-photos-row img { width: 92px; height: 68px; object-fit: cover; border-radius: 8px; display: block; }
.rally-photos-row figcaption { font-size: .64em; color: var(--text-muted); margin-top: 2px; line-height: 1.2; }
.rally-code { display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--dark); color: #fff; border-radius: 10px; padding: 10px 14px; margin-top: 10px; }
.rally-code span { font-size: .78em; opacity: .8; }
.rally-code b { font-family: monospace; font-size: 1.25em; letter-spacing: .08em; }
.coupon h3 { color: var(--brown-dark); font-size: 1em; }
.coupon .shop { font-size: .8em; color: var(--text-muted); }
.coupon .detail { font-size: .8em; margin: 6px 0 10px; }
.used-stamp { position: absolute; top: 10px; right: 12px; color: var(--err); border: 2px solid var(--err); border-radius: 8px; padding: 2px 8px; font-weight: 800; font-size: .8em; transform: rotate(10deg); z-index: 1; }
/* [修正] グローバルな img{max-width:100%}（app.css先頭のレスポンシブ対策）が
   width: calc(100% + 32px) の意図的なbleed指定を上書きし、右側だけ余白が空いて
   「画像が枠から左にずれて見える」不具合の原因だった。ここで明示的に
   max-width: none を指定して上書きを解除する。 */
.coupon-img { width: calc(100% + 32px); max-width: none; margin: -16px -16px 10px; height: 110px; object-fit: cover; border-radius: 12px 12px 0 0; display: block; }

/* よりみちマップPDF表示・お気に入り */
.pdf-open-btn { display: flex; align-items: center; gap: 12px; width: 100%; background: #fdf8ec; border: 1.5px dashed var(--accent); border-radius: 12px; padding: 8px 12px; margin-bottom: 10px; text-align: left; }
.pdf-open-btn img { width: 52px; height: 70px; object-fit: cover; object-position: top; border-radius: 6px; border: 1px solid var(--beige-dark); background: #fff; }
.pdf-open-btn span { font-weight: 700; color: var(--brown-dark); font-size: .9em; }
.pdf-open-btn small { display: block; font-weight: 400; color: var(--text-muted); font-size: .82em; margin-top: 2px; }
.pdf-pages { background: var(--white); border: 1px solid var(--beige-dark); border-radius: 12px; padding: 8px; max-height: 480px; overflow-y: auto; }
.pdf-pages img { width: 100%; display: block; border-radius: 6px; margin-bottom: 8px; }
.fav-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
/* [差し替え] チップ本体(コースを開く)と解除ボタン(✕)を分離するため、
   .fav-chipは<button>ではなくコンテナ<span>に変更(admin.css .sp-chipと同じ構造) */
.fav-chip { display: inline-flex; align-items: center; gap: 4px; border: 1px solid #454b63; background: var(--dark2); border-radius: 999px; padding: 4px 4px 4px 14px; min-height: 40px; }
.fav-chip-label { border: none; background: none; color: #e8dcc8; font-size: .8em; padding: 0; cursor: pointer; }
.fav-chip-rm { border: none; background: rgba(255, 255, 255, .15); color: #e8dcc8; border-radius: 50%; width: 24px; height: 24px; line-height: 1; font-size: .78em; cursor: pointer; flex-shrink: 0; }
.fav-chip-rm:hover { background: var(--err); color: #fff; }

/* ---------- 帰船タイマー (§4.9) ---------- */
#shipTimer { position: fixed; right: 14px; bottom: 14px; z-index: 800; }
/* [新規] 一番上に戻るボタン。右下の帰船タイマー(#shipTimerBtn)の真上に配置。
   #shipTimerPanel(タップして開く帰船タイマーの詳細パネル)は、ボタンの上
   約114px分(画面下端から見て約14px〜198px)を占有するため、通常時(パネルが
   閉じている間)の位置に固定したままだとパネルを開いた際に重なって見えなく
   なる・押せなくなる。そのため、パネルの開閉状態(JS側で#shipTimerPanelの
   .openクラスと同時に#scrollTopBtnへ.raisedを付け外しする)に応じて
   bottomの値を動的に切り替える。
   通常時: bottom:90px（帰船タイマーの丸いボタン(右上端76px)のすぐ上、
   本アプリの余白基準(14px)分の隙間）。
   展開時(.raised): bottom:212px（実機計測したパネル最上端(約198px)から
   同じ14px分の隙間）。
   transitionで位置の切り替えをなめらかにする。
   一定量スクロールした場合のみ表示する(JS側でscrollTopBtn.show を切り替え)。
   既存の帰船タイマーと同系統の配色(var(--dark)背景・白アイコン・円形)だが、
   主要な操作ではないことを示すため一回り小さいサイズにしている。 */
#scrollTopBtn {
  position: fixed; right: 14px; bottom: 90px; z-index: 800;
  width: 48px; height: 48px; border-radius: 50%; border: none;
  background: var(--dark); color: #fff; font-size: 1.2em;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
  display: none; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s, bottom .2s;
}
#scrollTopBtn.show { display: flex; opacity: 1; }
#scrollTopBtn.raised { bottom: 212px; }
#shipTimerBtn { width: 62px; height: 62px; border-radius: 50%; border: none; background: var(--dark); color: #fff; font-size: 1.4em; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }
#shipTimerPanel { display: none; position: absolute; bottom: 70px; right: 0; width: 240px; background: var(--dark); color: #fff; border-radius: 14px; padding: 14px 16px; font-size: .85em; }
#shipTimerPanel.open { display: block; }
#shipTimerPanel .big { font-size: 1.7em; font-weight: 800; color: var(--accent2); font-variant-numeric: tabular-nums; }
#shipTimerPanel.urgent .big { color: #ff9d8f; }

/* ---------- アルバム ---------- */
.album-sheet { background: linear-gradient(180deg, #fffdf8, var(--beige)); border: 1px solid var(--beige-dark); border-radius: var(--radius); padding: 20px; }
.album-sheet h3 { color: var(--brown-dark); }
/* [修正] 上記#gachaMiniMap等と同じ理由・同じ対処。 */
#albumMap { height: 240px; border-radius: 10px; margin: 12px 0; background: #dfe6ef; z-index: 1; }
.timeline { list-style: none; margin: 10px 0; }
.timeline li { padding: 8px 0 8px 26px; border-left: 2px solid var(--accent); margin-left: 8px; position: relative; font-size: .88em; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 14px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.timeline time { color: var(--text-muted); font-size: .85em; font-variant-numeric: tabular-nums; }
.album-ai { background: var(--white); border-radius: 10px; padding: 14px; font-size: .9em; margin-top: 10px; border-left: 4px solid var(--accent); }
.album-photos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.album-photos img { width: 90px; height: 90px; object-fit: cover; border-radius: 8px; }
/* [新規] W-08-5 出力・共有: 共有リンク・SNS共有ボタン（app.js renderAlbumShareBlock /
   album.html 両方から参照） */
.album-share { margin-top: 14px; }
.share-link-row { display: flex; gap: 8px; }
.share-link-input { flex: 1; min-width: 0; border: 1px solid var(--beige-dark); border-radius: 8px; padding: 8px 10px; font-size: .82em; background: var(--white); color: var(--text); }
.share-sns-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.share-sns-row .btn { min-height: 40px; padding: 6px 16px; font-size: .85em; }

/* ---------- スキャナ・写真 ---------- */
.big-scan-btn { width: 100%; min-height: 64px; font-size: 1.05em; }
/* QRスキャンガイド枠。実際の読み取り範囲はdecodeFrame()側で映像全体を
   解析しているため、ここは見た目のガイド表示のみで判定には影響しない。
   ガイド窓は上下左右15%のマージンでtop/left/width/heightを揃えている。 */
.scan-viewport { position: relative; width: 100%; max-height: 300px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #000; }
.scan-viewport video#scanVideo { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-guide { position: absolute; inset: 0; pointer-events: none; }
.scan-guide::before {
  content: ""; position: absolute; top: 15%; left: 15%; width: 70%; height: 70%;
  border-radius: 12px; box-shadow: 0 0 0 2000px rgba(0, 0, 0, .45);
}
.scan-corner { position: absolute; width: 28px; height: 28px; border: 3px solid #fff; }
.scan-corner.tl { top: 15%; left: 15%; border-right: none; border-bottom: none; border-radius: 6px 0 0 0; }
.scan-corner.tr { top: 15%; right: 15%; border-left: none; border-bottom: none; border-radius: 0 6px 0 0; }
.scan-corner.bl { bottom: 15%; left: 15%; border-right: none; border-top: none; border-radius: 0 0 0 6px; }
.scan-corner.br { bottom: 15%; right: 15%; border-left: none; border-top: none; border-radius: 0 0 6px 0; }
.scan-line { position: absolute; left: 15%; width: 70%; height: 2px; top: 15%; background: linear-gradient(90deg, transparent, #7fd1ff, transparent); animation: scanline 1.8s ease-in-out infinite; }
@keyframes scanline { 0%, 100% { top: 15%; opacity: .2; } 50% { top: 83%; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .scan-line { animation: none; top: 49%; opacity: .8; } }
.code-input { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
/* [修正] input{flex:1}はflex-basis:0%になるため、幅が足りないと縮小の負荷が
   隣の.code-input buttonにほぼ全て集中し、日本語ボタンが1文字ずつ縦に折り返る
   不具合になっていた（実機AQUOS wish3で再現）。4桁コード表示に255px前後は
   過剰だったため、入力欄側にmax-widthを設けて実用的な幅に絞り、ボタン側は
   white-space:nowrap; flex-shrink:0で1行幅を確保する（320px・文字サイズ大でも
   はみ出し・入力値の見切れが無いことを確認済み）。 */
.code-input input { flex: 1; max-width: 140px; min-height: 48px; font-size: 1.3em; letter-spacing: .4em; text-align: center; border: 1px solid var(--beige-dark); border-radius: 10px; }
.code-input button, .code-input .btn { white-space: nowrap; flex-shrink: 0; }

/* ---------- お知らせ・フッター ---------- */
.notice-list { list-style: none; }
.notice-list li { background: var(--white); border: 1px solid var(--beige-dark); border-radius: 10px; padding: 12px 16px; margin-bottom: 10px; font-size: .9em; }
.notice-list b { color: var(--brown-dark); display: block; }
.footer { background: var(--dark); color: #b9bed0; padding: 40px 0 70px; font-size: .82em; margin-top: 40px; }
.footer a { color: var(--accent2); }
.footer .links { display: flex; flex-wrap: wrap; gap: 14px; margin: 10px 0; }

/* ---------- トースト ---------- */
#toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: var(--dark); color: #fff; border-radius: 999px; padding: 12px 22px; font-size: .88em; z-index: 1200; display: none; max-width: 90vw; text-align: center; }
#toast.show { display: block; animation: fadein .25s; }
@keyframes fadein { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Purpose-based travel UI: one screen, one task, persistent navigation. */
[hidden], .purpose-ui .screen-hidden { display: none !important; }
:root { --brown: #176557; --brown-dark: #164c43; --accent: #176557; --text: #243b35; --text-muted: #586962; --cream: #f7f8f3; --line: #d7e1d9; }
:focus-visible { outline: 3px solid #b75c17; outline-offset: 4px; }
.skip-link { position: fixed; top: -90px; left: 12px; z-index: 2000; padding: 12px; background: white; }
.skip-link:focus { top: 10px; }
.purpose-ui { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
.purpose-ui .header { background: #fff; }
.purpose-ui .header-in { min-height: 74px; }
.purpose-ui .brand { font-size: 1.1em; white-space: normal; overflow: visible; }
.purpose-ui .brand small { font-size: 10px; margin-top: 6px; }
.purpose-ui .tool-btn { min-width: 48px; font-size: 14px; min-height: 46px; }
.journey-strip { background: #e9f0e6; font-size: 14px; color: #234e42; padding: 8px 0; }
.journey-strip .container { display: flex; justify-content: space-between; gap: 6px 20px; flex-wrap: wrap; }
.load-state { font-size: 14px; padding-top: 8px; padding-bottom: 8px; }
.purpose-ui .hero { padding: 35px 0; min-height: 275px; background: #1a4d46 url('../images/yasugi_adachi_garden.jpg') center 55% / cover; }
.purpose-ui .hero-overlay { background: linear-gradient(90deg,rgba(7,35,27,.85),rgba(7,35,27,.38)); }
.purpose-ui .hero h1 { max-width: 670px; font-size: clamp(28px,4vw,42px); letter-spacing: .02em; }
.purpose-ui .hero-tagline { color: #fff; background: transparent; border: 0; padding: 0; }
.purpose-ui .hero-lead { font-size: 16px; color: white; }
.hero-explore { margin-top: 18px; background: #fff; color: #164c43; }
.purpose-ui .ship-info { display: none; }
.purpose-ui .hero-caption { font-size: 14px; margin-top: 10px; color: white; }
.purpose-ui .hero-dots { display: none; }
.home-hub { padding-top: 25px; }
.hub-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px; margin-bottom: 16px; }
.hub-heading h2 { font-size: 1.3em; }
.hub-heading > span { font-size: 14px; color: var(--text-muted); }
.quick-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.quick-card { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 18px 14px; text-align: left; text-decoration: none; color: var(--text); transition: background .15s; }
.quick-card:hover { border-color: var(--brown); background: #edf4ef; }
.quick-card > span:nth-child(2) { flex: 1; min-width: 0; }
.quick-card b { font-size: 16px; display: block; }
.quick-card small { display: block; font-size: 14px; color: var(--text-muted); margin-top: 3px; }
.quick-icon { width: 40px; height: 40px; display: grid; place-items: center; background: #e9f1e9; color: #176557; border-radius: 10px; font-size: 14px; flex-shrink: 0; font-weight: 700; }
.home-bus-link { display: flex; gap: 12px; justify-content: space-between; background: #eaf2ee; border: 1px solid #c0d4c8; border-radius: 10px; padding: 14px 18px; margin: 16px 0 25px; text-decoration: none; font-weight: 700; }
.feature-photo { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border-radius: 14px; background: #e9eddf; }
.feature-photo img { width: 100%; height: 235px; object-fit: cover; }
.feature-photo > div { padding: 24px; align-self: center; }
.feature-photo h2 { font-size: 1.4em; margin: 5px 0; }
.feature-photo a { display: block; padding: 8px 0; }
.feature-photo .photo-credit { font-size: 12px; }
.hub-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 16px 0; }
.hub-links a { display: inline-flex; align-items: center; min-height: 48px; text-underline-offset: 4px; }
.screen-heading { padding-top: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.screen-heading a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; }
.screen-heading p { font-size: 14px; color: var(--text-muted); }
.purpose-ui .section { padding: 24px 0 35px; }
.purpose-ui .section-title { font-size: 1.6em; }
.purpose-ui .section-sub { font-size: 16px; margin-bottom: 20px; }
.purpose-ui .spot-cards { grid-template-columns: repeat(3,minmax(0,1fr)); }
.purpose-ui .spot-card-img { height: 180px; }
.purpose-ui .spot-card p { font-size: 15px; }
.purpose-ui .spot-card h3 { font-size: 18px; }
.map-disclosure { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
summary { cursor: pointer; min-height: 48px; padding: 10px; font-weight: 700; }
.app-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 510; background: white; box-shadow: 0 -3px 16px #16362c0d; border-top: 1px solid #c7d9cd; display: flex; justify-content: center; padding: 5px 10px calc(5px + env(safe-area-inset-bottom)); }
.app-nav a { flex: 1; max-width: 180px; display: flex; flex-direction: column; align-items: center; text-decoration: none; color: #53675e; min-height: 64px; border-radius: 8px; padding: 5px 2px; font-size: 14px; line-height: 1.4; }
.app-nav a > span { font-size: 23px; line-height: 1.2; height: 28px; }
.app-nav a[aria-current] { background: #e8f1e9; color: #134e40; box-shadow: inset 0 3px #176557; }
.purpose-ui #shipTimer { bottom: calc(92px + env(safe-area-inset-bottom)); }
.purpose-ui #scrollTopBtn { bottom: 155px; }
.purpose-ui #toast { bottom: 100px; }
.purpose-ui .footer { padding: 22px 0; background: #edf1e9; color: var(--text-muted); }
.purpose-ui .footer .links { display: none; }
.purpose-ui .footer p { font-size: 12px; }
.shuttle-panel { padding: 22px; border: 1px solid #bbd4c8; background: white; border-top: 5px solid #176557; border-radius: 14px; margin-bottom: 24px; }
.shuttle-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.eyebrow { font-size: 12px; letter-spacing: .08em; color: var(--brown); }
.shuttle-head h3 { font-size: 1.3em; }
.free-label { background: #e4f1e5; color: #20543d; padding: 6px 12px; border-radius: 8px; font-weight: 700; }
#shuttleTables { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 18px 0; }
.timetable table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.timetable caption { text-align: left; font-weight: 700; padding: 10px; background: #eaf1ec; border-bottom: 2px solid #adc9b7; }
.timetable th { font-size: 14px; padding: 10px 4px; line-height: 1.4; }
.timetable td { text-align: center; font-size: 22px; font-weight: 700; padding: 9px 4px; border-top: 1px solid #d8e3da; font-variant-numeric: tabular-nums; }
.timetable tr:last-child td { background: #fff6df; }
.last-bus { padding: 10px 12px; border-left: 4px solid #a86a13; background: #fff6df; color: #634715; font-weight: 700; }
.muted-note { font-size: 14px; color: var(--text-muted); margin-top: 10px; }
.shuttle-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.help-card { background: white; border: 1px solid var(--line); padding: 20px; border-radius: 12px; }
.help-card h3 { font-size: 20px; margin-bottom: 8px; }
.help-card p, .help-card li { font-size: 16px; }
.help-card ul { padding-left: 20px; }
.help-card li { margin-bottom: 10px; }
.help-card .btn { margin-top: 16px; }
.emergency-help { margin-top: 20px; padding: 18px; border: 1px solid #ddc3a4; border-radius: 12px; background: #fff4e6; }
.purpose-ui .modal { padding: 0 18px 28px; }
.purpose-ui .modal h2 { position: sticky; top: 0; z-index: 5; background: var(--cream); padding: 14px 0; gap: 10px; border-bottom: 1px solid var(--line); }
.modal-close { min-width: 48px; min-height: 48px; flex-shrink: 0; }
@media (max-width: 700px) {
 .purpose-ui .header-in { flex-wrap: wrap; padding: 10px 16px; gap: 8px; }
 .purpose-ui .brand { flex: 1 1 100%; font-size: 18px; }
 .purpose-ui .brand small { display: none; }
 .purpose-ui .header-tools { margin-left: 0; width: 100%; }
 .purpose-ui #myBookingsBtn { margin-left: auto; }
 .journey-strip { font-size: 12px; }
 .purpose-ui .hero { min-height: 210px; padding: 22px 0; }
 .purpose-ui .hero h1 { font-size: 28px; }
 .purpose-ui .hero-lead, .purpose-ui .hero-caption { display: none; }
 .quick-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
 .quick-card { padding: 12px; min-height: 105px; gap: 6px; align-items: flex-start; flex-direction: column; }
 .quick-card > span:last-child { display: none; }
 .quick-icon { width: 26px; height: 22px; font-size: 12px; background: transparent; display: none; }
 .quick-card b { font-size: 16px; }
 .quick-card small { font-size: 14px; line-height: 1.4; }
 .feature-photo { grid-template-columns: 1fr; }
 .feature-photo img { height: 200px; }
 .feature-photo > div { padding: 18px; }
 .purpose-ui .spot-cards { grid-template-columns: 1fr; }
 .purpose-ui .spot-card { display: grid; grid-template-columns: 110px 1fr; }
 .purpose-ui .spot-card-img { height: 100%; min-height: 150px; }
 .purpose-ui .spot-card-body { padding: 12px; }
 #shuttleTables, .help-grid { grid-template-columns: 1fr; }
 .shuttle-panel { padding: 14px; }
 .shuttle-head { align-items: flex-start; }
 .shuttle-head h3 { font-size: 20px; }
 .timetable td { font-size: 22px; }
 .app-nav a { font-size: 12px; }
 .shuttle-actions .btn { width: 100%; }
}
html[data-fontsize="large"] .quick-card b, html[data-fontsize="large"] .quick-card small,
html[data-fontsize="large"] .section-sub, html[data-fontsize="large"] .help-card p,
html[data-fontsize="large"] .help-card li { font-size: 19px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
@media print {
 body.purpose-ui { padding: 0; background: white; }
 body.purpose-ui > *:not(#travelMain) { display: none !important; }
 #travelMain > *:not(#transport), #transport .transport-cards, #transport .section-title, #transport .section-sub, .shuttle-actions { display: none !important; }
 #transport.screen-hidden { display: block !important; }
 #shuttleTables { grid-template-columns: 1fr 1fr; }
 .shuttle-panel { break-inside: avoid; }
}

.purpose-ui .footer a { color: #164c43; text-underline-offset: 3px; }

/* September interview: decision-first layouts, readable at large text sizes. */
.purpose-ui .hero-lead { display: block; max-width: 620px; }
#homeHub { background: #edf2ed; border-radius: 12px; margin-top: 20px; padding: 20px; }
#homeHub h2 { font-size: 1.2em; }
#homeHub .btn { margin-top: 12px; }
.gacha-refine { border: 1px solid #91a29d; border-radius: 10px; padding: 8px; margin: 16px 0; color: white; }
#gPreferences { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; border: 1px solid #91a29d; }
#gPreferences label { display: flex; align-items: center; gap: 8px; min-height: 44px; background: #fff; color: #234e42; padding: 8px 12px; border-radius: 8px; }
#gPreferences input { width: 22px; height: 22px; }
#planningNote { color: #fff; font-size: .9em; }
.gacha-result .trip-summary { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; margin: 12px 0; }
.trip-summary > div { background: #eef4ef; border: 1px solid #c7d9cd; padding: 12px; border-radius: 8px; }
.trip-summary dt { font-size: .8em; color: #36564b; }
.trip-summary dd { margin: 6px 0 0; font-weight: 700; color: #173e33; overflow-wrap: anywhere; }
.proposal-kind { background: #234e42; color: #fff; padding: 8px 12px; border-radius: 6px; }
.trip-itinerary { border-left: 3px solid #adc9b7; padding-left: 28px; margin: 20px 10px; }
.trip-itinerary li { margin: 12px 0; }
.trip-itinerary p { font-size: .9em; }
.trip-decisions { display: flex; flex-wrap: wrap; gap: 10px; border-top: 2px solid #c7d9cd; padding-top: 16px; margin-top: 16px; }
.spot-peek:empty { display: none; }
.spot-peek { margin: 12px 0; padding: 16px; background: #eff5f0; border: 2px solid #3f715c; border-radius: 10px; color: #173e33; }
.spot-peek p { margin: 8px 0; }
.peek-photo { width: 100%; max-height: 160px; object-fit: cover; border-radius: 8px; }
.spot-card.selected { outline: 3px solid #287150; outline-offset: 2px; }
.spot-card-body { min-width: 0; }
.spot-card .btn { white-space: normal; padding: 10px; margin-top: 6px; }
.purpose-ui .spot-card p.spot-facts { display: block; -webkit-line-clamp: unset; overflow: visible; color: #234e42; }
#saved .fav-chips { padding: 20px; background: #e5eee7; color: #173e33; min-height: 80px; }
#saved .fav-chip { background: #fff; border: 1px solid #456958; color: #234e42; }
#saved .fav-chip-label, #saved .fav-chip-rm { color: #234e42; }
#transportCompare { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-bottom: 24px; }
#transportCompare .tcard { text-align: left; min-width: 0; }
#transportCompare .btn { margin: 4px 0; white-space: normal; }
.transport-facts { margin: 12px 0; }
.transport-facts > div { display: grid; grid-template-columns: 90px 1fr; gap: 8px; padding: 9px 0; border-bottom: 1px solid #d5e0d8; }
.transport-facts dt { font-weight: 700; color: #234e42; }
.transport-facts dd { margin: 0; font-size: .9em; }
.record-example { border-radius: 12px; padding: 18px; background: #edf3e9; }
.record-sample { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0; }
.record-sample img { width: 100%; height: 180px; object-fit: cover; border-radius: 8px; }
.record-sample figure { margin: 0; }
.record-steps { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); list-style: none; gap: 12px; padding: 0; margin: 20px 0; }
.record-steps li { border: 1px solid #adc9b7; padding: 14px; border-radius: 10px; background: #fff; }
.record-steps strong { display: block; font-size: 1.6em; color: #287150; }
.record-progress { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0; }
.record-progress figure { margin: 0; padding: 10px; background: #eaf2ec; border-radius: 8px; max-width: 220px; }
.record-progress img { width: 100%; height: 120px; object-fit: cover; }
@media (max-width:700px) {
 .gacha-result .trip-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
 #transportCompare { grid-template-columns: 1fr; }
 .record-steps { grid-template-columns: 1fr 1fr; }
 .purpose-ui .spot-card { grid-template-columns: 1fr; }
 .purpose-ui .spot-card-img { height: 160px; }
 .record-sample img { height: 120px; }
 .journey-strip { font-size: 14px; }
}

.purpose-ui .stamp.on { background: #245d48; color: #fff; border-color: #245d48; }

.leaflet-control-attribution a { text-decoration: underline; }

/* Picture-led interface. Fixed SVG bounds also prevent oversized mobile artwork. */
.v-icon { width: 48px; height: 48px; flex: 0 0 auto; display: inline-block; vertical-align: middle; }
.visual-flow { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 16px 0; }
.visual-flow > div { display: flex; flex: 1; max-width: 180px; flex-direction: column; align-items: center; gap: 8px; padding: 12px 8px; border-radius: 16px; background: #fff8ea; color: #234e42; text-align: center; }
.visual-flow .v-icon { width: 64px; height: 64px; }
.visual-flow b { font-size: 15px; }
.flow-arrow { color: currentColor; font-size: 24px; }
.purpose-ui .gacha-panel { background: #fff6e6; color: #234e42; border: 2px solid #e6cfa8; padding: 20px; }
.purpose-ui .gacha-panel > .section-title, .purpose-ui .gacha-panel > .section-sub { color: #234e42 !important; text-align: center; }
.purpose-ui .gacha-panel > .section-sub { margin-bottom: 8px; }
.purpose-ui .gacha-form { justify-content: center; }
.purpose-ui .gacha-form label { color: #234e42; }
.gacha-refine, .planning-details { color: #234e42; border: 1px solid #d9cbb3; background: #fff; border-radius: 10px; padding: 4px; margin: 10px 0; }
#planningNote { color: #234e42; padding: 10px; }
#gPreferences { border-color: #d9cbb3; }
#gachaRun { min-width: 220px; min-height: 58px; border-radius: 40px; background: #b94528; color: #fff; box-shadow: 0 5px 0 #81321d; font-size: 1.15em; }
#gachaRun:active { transform: translateY(3px); box-shadow: 0 2px 0 #81321d; }
#gachaRun:disabled { cursor: wait; opacity: .7; }
.gacha-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 12px 0 20px; }
.gacha-status { min-height: 1.5em; text-align: center; font-weight: 700; margin: 0 0 8px; }
.gacha-machine { width: min(100%,260px); height: 290px; margin: 0 auto; position: relative; filter: drop-shadow(0 7px 4px #735a3420); }
.machine-top { position: absolute; top: 0; left: 23%; right: 23%; background: #b94528; color: white; border-radius: 12px 12px 0 0; height: 28px; text-align: center; font-size: 12px; font-weight: 800; letter-spacing: 2px; padding: 5px; }
.machine-glass { position: absolute; left: 10%; top: 8%; width: 80%; height: 54%; border: 4px solid #25584a; border-radius: 45% 45% 15% 15%; background: linear-gradient(135deg,#fff 0%,#d8edf0 65%,#a7cdd3); overflow: hidden; }
.glass-shine { position: absolute; top: 17px; left: 20px; width: 17px; height: 70px; background: #ffffffbb; border-radius: 50%; transform: rotate(22deg); pointer-events: none; }
.gacha-orbit { width: 100%; height: 100%; position: relative; }
.gacha-ball { position: absolute; width: 43px; height: 43px; background: #edaa66; border: 2px solid #365d52; border-radius: 50%; overflow: hidden; box-shadow: inset -5px -4px #00000012; }
.gacha-ball::after { content: ''; position: absolute; inset: 50% 0 0; background: #fff6e6; border-top: 2px solid #365d52; }
.gacha-ball i { position: absolute; width: 10px; height: 6px; top: 6px; left: 9px; border-radius: 50%; background: #ffffffaa; }
.ball-0 { left: 17%; top: 13%; transform: rotate(25deg); background: #ee917e; }
.ball-1 { left: 49%; top: 9%; transform: rotate(-20deg); background: #eecb63; }
.ball-2 { left: 68%; top: 36%; transform: rotate(65deg); background: #9cc5d9; }
.ball-3 { left: 41%; top: 43%; transform: rotate(-40deg); background: #baadd5; }
.ball-4 { left: 5%; top: 43%; transform: rotate(16deg); background: #97c7a7; }
.ball-5 { left: 18%; top: 70%; transform: rotate(-32deg); background: #edaa66; }
.ball-6 { left: 55%; top: 73%; transform: rotate(22deg); background: #ee917e; }
.ball-7 { left: 36%; top: 69%; transform: rotate(95deg); background: #9cc5d9; }
.machine-base { position: absolute; left: 7%; top: 60%; width: 86%; height: 32%; border-radius: 12px 12px 20px 20px; background: #b94528; border: 4px solid #753d2a; }
.machine-label { position: absolute; left: 9%; top: 18%; font-size: 11px; letter-spacing: 1px; color: white; font-weight: 700; }
.gacha-dial { position: absolute; top: 15%; left: 42%; width: 48px; height: 48px; border-radius: 50%; background: #ffdc90; border: 3px solid #753d2a; box-shadow: 0 3px #753d2a; }
.gacha-dial span { position: absolute; left: 5px; right: 5px; top: 16px; height: 10px; background: #fff8eb; border: 2px solid #753d2a; border-radius: 6px; transform: rotate(-25deg); }
.machine-chute { position: absolute; left: 77%; top: 39%; width: 30px; height: 28px; background: #4f3d35; border-radius: 16px 16px 5px 5px; box-shadow: inset 0 4px #33271f; }
.prize-capsule { position: absolute; width: 40px; height: 40px; left: 73%; top: 74%; opacity: 0; z-index: 2; }
.prize-top, .prize-bottom { position: absolute; width: 100%; height: 50%; border: 2px solid #365d52; transition: transform .45s; }
.prize-top { top: 0; border-radius: 30px 30px 0 0; background: #eecb63; }
.prize-bottom { bottom: 0; border-radius: 0 0 30px 30px; background: #fff8e9; }
.prize-star { position: absolute; left: 8px; top: 4px; color: #a54712; font-size: 26px; opacity: 0; }
.gacha-machine[data-state="mixing"] .gacha-orbit { animation: capsule-tumble .8s linear infinite; }
.gacha-machine[data-state="mixing"] .gacha-ball { animation: ball-wiggle .3s ease-in-out infinite alternate; }
.gacha-machine[data-state="mixing"] .gacha-dial { animation: capsule-tumble .8s ease-in-out infinite; }
.gacha-machine[data-state="dropping"] .prize-capsule { animation: capsule-drop .9s ease-out forwards; }
.gacha-machine[data-state="revealed"] .prize-capsule { opacity: 1; top: 86%; left: 43%; transform: scale(1.2); }
.gacha-machine[data-state="revealed"] .prize-top { transform: translate(-9px,-16px) rotate(-25deg); }
.gacha-machine[data-state="revealed"] .prize-bottom { transform: translate(7px,12px) rotate(15deg); }
.gacha-machine[data-state="revealed"] .prize-star { opacity: 1; }
@keyframes capsule-tumble { to { transform: rotate(360deg); } }
@keyframes ball-wiggle { to { translate: 4px -9px; } }
@keyframes capsule-drop { 0% { opacity: 1; transform: scale(.7); } 65% { top: 91%; left: 43%; transform: rotate(200deg); } 85% { top: 81%; } 100% { opacity: 1; top: 86%; left: 43%; transform: rotate(360deg); } }
@keyframes result-pop { from { transform: translateY(18px) scale(.98); } to { transform: none; } }
.result-reveal { animation: result-pop .5s ease-out; }
#gachaResult { scroll-margin-top: 200px; }
#resultCourseTitle { font-size: 1.4em; color: #234e42; margin-bottom: 12px; }
.trip-summary .v-icon { width: 32px; height: 32px; margin-bottom: 6px; }
.return-caution { display: flex; align-items: center; gap: 8px; background: #fff3d7; color: #634715; padding: 10px; border-radius: 8px; font-size: .9em; }
.return-caution .v-icon { width: 30px; height: 30px; }
.photo-route { display: flex; list-style: none; padding: 12px 2px; margin: 12px 0; overflow-x: auto; overscroll-behavior-inline: contain; }
.photo-route > li { display: flex; flex: 0 0 auto; align-items: center; }
.route-stop { width: 118px; text-align: center; font-size: 13px; }
.route-stop button { background: none; border: 0; color: inherit; font: inherit; padding: 0; width: 100%; cursor: pointer; }
.route-photo { display: flex; align-items: center; justify-content: center; background: #e7f1e9; width: 100%; height: 80px; border-radius: 12px; overflow: hidden; margin-bottom: 6px; }
.route-photo img { width: 100%; height: 100%; object-fit: cover; }
.route-leg { width: 64px; display: flex; flex-direction: column; align-items: center; font-size: 11px; }
.route-leg .v-icon { width: 28px; height: 28px; }
.compact-details { border-top: 1px solid #dce4de; margin: 10px 0; font-size: .9em; }
.compact-details > summary { padding: 10px 2px; }
.compact-details p { margin: 8px 0; }
.compact-details a { text-decoration: underline; }
.purpose-ui .pdf-open-btn { padding: 8px; }
.purpose-ui .pdf-open-btn img { width: 48px; height: 48px; object-fit: cover; }
#transportCompare { align-items: start; }
#transportCompare .tcard > header { display: flex; align-items: center; gap: 14px; }
#transportCompare .tcard > header .v-icon { width: 64px; height: 64px; }
.transport-highlights { display: flex; gap: 12px; margin: 16px 0; }
.transport-highlights > div { flex: 1; background: #edf4ee; border-radius: 12px; padding: 12px; display: flex; align-items: center; gap: 8px; }
.transport-highlights .v-icon { width: 32px; height: 32px; }
.cycle-area-filter { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px; background: #e8f1e9; border-radius: 12px; }
.cycle-area-filter label { font-weight: 700; display: flex; align-items: center; gap: 6px; }
.cycle-area-filter .v-icon { width: 32px; height: 32px; }
.cycle-area-filter select { width: auto; min-width: 150px; }
.cycle-price-list { display: grid; gap: 14px; }
.cycle-price-card { padding: 14px; border: 1px solid #cbdcd0; border-radius: 14px; background: #fff; }
.cycle-price-head { display: flex; align-items: center; gap: 10px; }
.cycle-price-head h4 { font-size: 1em; }
.cycle-price-head span { font-size: .8em; color: #52665b; }
.purpose-ui .cycle-price-value { font-size: 1.12em; font-weight: 750; color: #234e42; padding: 12px; margin: 10px 0; background: #fff3d7; border-radius: 10px; }
.payment-scope { font-size: .85em; font-weight: 700; margin: 6px 0; }
.payment-badges { display: flex; gap: 8px; }
.pay-badge { flex: 1; display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 3px 6px; padding: 9px; background: #f3f4f0; border: 1px solid #c3cec5; border-radius: 9px; font-size: 12px; color: #344e40; }
.pay-badge .v-icon { grid-row: span 2; width: 30px; height: 30px; }
.pay-badge b { font-size: 13px; }
.pay-yes { background: #e7f3e9; border-color: #749c7e; }
.pay-no { background: #f4ebe7; border-color: #bda69c; }
.cycle-payment-detail { grid-column: 1 / -1; }
.record-steps li { position: relative; text-align: center; }
.record-steps .v-icon { display: block; width: 72px; height: 72px; margin: 0 auto 10px; }
.record-steps strong { position: absolute; top: 6px; left: 10px; font-size: 1em; }
.record-steps span { font-size: .9em; font-weight: 700; }
.purpose-ui #spotMap, .purpose-ui #gachaMiniMap, .purpose-ui #albumMap,
.purpose-ui .cy-mainmap, .purpose-ui .cy-map { width: 100%; height: clamp(190px,32vh,300px); min-height: 0; max-height: 300px; }
@media (max-width:700px) {
 .purpose-ui .gacha-panel { padding: 16px 12px; }
 .gacha-machine { width: 230px; height: 260px; }
 .visual-flow { gap: 6px; }
 .visual-flow > div { padding: 10px 4px; }
 .visual-flow .v-icon { width: 48px; height: 48px; }
 .visual-flow b { font-size: 13px; }
 .flow-arrow { font-size: 18px; }
 #helpVisualFlow { flex-wrap: wrap; }
 .gacha-result .trip-summary { gap: 6px; }
 .trip-summary > div { padding: 8px; }
 .trip-summary dd { font-size: .95em; }
 .route-stop { width: 100px; }
 .route-photo { height: 70px; }
 .route-leg { width: 55px; }
 .purpose-ui #spotMap, .purpose-ui #gachaMiniMap, .purpose-ui #albumMap,
 .purpose-ui .cy-mainmap, .purpose-ui .cy-map { height: clamp(170px,28svh,230px); max-height: 230px; }
 .transport-highlights { gap: 6px; }
 .transport-highlights > div { padding: 8px; }
}
@media (prefers-reduced-motion: reduce) {
 .gacha-machine *, .result-reveal { animation: none !important; transition: none !important; }
}

/* Keep small-screen touch targets unobstructed by floating utilities. */
.purpose-ui #shipTimer { position: relative; right: auto; bottom: auto; margin-left: auto; z-index: 6; }
.purpose-ui #shipTimerBtn { width: 40px; height: 40px; font-size: 18px; box-shadow: none; }
.purpose-ui #shipTimerPanel { top: 46px; bottom: auto; }
.journey-strip .container { align-items: center; }
@media (max-width:700px) {
 .purpose-ui #scrollTopBtn { position: static; margin: 12px auto; }
}

/* DMO provisional review: clarity and release holds. */
#album,#coupons,a[href="#album"],a[href="#coupons"],#rallyList,.record-example { display:none !important; }
.purpose-ui .gacha-machine { transform:scale(.75); margin:-20px auto; }
.purpose-ui .trip-decisions { position:sticky; top:0; z-index:5; background:#fff; padding:12px; border:1px solid #d7e1de; }
.purpose-ui p,.purpose-ui li,.purpose-ui label { font-size:max(1rem,16px); line-height:1.6; }
.purpose-ui button,.purpose-ui .btn { min-height:44px; }
.purpose-ui .btn-primary { font-size:18px; }
.purpose-ui .trip-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
.purpose-ui .trip-summary dd { overflow-wrap:anywhere; }
.purpose-ui .gacha-refine { color:#fff; }
#selectedTransport { margin-bottom:20px; }
.itinerary-times { padding-left:24px; }
@media (max-width:480px) { .purpose-ui .header-in { flex-wrap:wrap; } .purpose-ui .brand { font-size:18px; } .purpose-ui .trip-summary { gap:8px; } }

/* ===== 9/14 60代ユーザーテストの反映 ===== */
/* 結果の概要：アイコン＋短い文字を横並びにして縦に詰め、地図まで一目で見えるようにする（UI-024） */
.purpose-ui .gacha-result .trip-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.purpose-ui .trip-summary > div { display: grid; grid-template-columns: 30px 1fr; column-gap: 8px; align-items: center; padding: 8px 10px; }
.purpose-ui .trip-summary > div .v-icon { width: 28px; height: 28px; margin: 0; grid-row: span 2; }
.purpose-ui .trip-summary dt { font-size: .82em; line-height: 1.3; }
.purpose-ui .trip-summary dd { margin: 0; font-size: 1.05em; line-height: 1.3; }
.purpose-ui .trip-decisions { position: static; }
.result-sub { margin: 18px 0 6px; font-size: 1em; color: #173e33; }
/* 結果の直下で希望を足して再抽選（UI-005） */
.refine-again { margin: 16px 0; padding: 14px; background: #fff8ec; border: 2px solid #e4c796; border-radius: 12px; }
.refine-again h4 { margin: 0 0 10px; font-size: 1.05em; color: #634715; }
.refine-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.refine-chips label { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; background: #fff; border: 1px solid #d9cbb3; border-radius: 22px; color: #3a3226; cursor: pointer; }
.refine-chips input { width: 22px; height: 22px; margin: 0; }
.refine-chips label:has(input:checked) { background: #234e42; border-color: #234e42; color: #fff; }
.refine-again [data-gacha-again] { width: 100%; min-height: 52px; font-size: 1.05em; }
/* 乗り場を地図アプリで開く（UI-019/020） */
.map-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.map-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 12px; border: 1px solid #9fb8b0; border-radius: 10px; background: #fff; color: #173e33; font-weight: 700; text-decoration: none; }
.map-link::before { content: "📍"; }
/* 帰港目標に近すぎる帰り便（UI-017） */
.bus-unsafe td { background: #fdf0ee; }
.bus-warn { display: block; margin-top: 2px; color: var(--err); font-size: .85em; font-weight: 700; }
.tt-ref { display: block; margin-top: 2px; color: #8a4b12; font-size: .85em; font-weight: 700; }
option[data-risky] { color: var(--err); }
/* スタンプ条件と写真の公開範囲（UI-028/029） */
.record-rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin: 14px 0; }
.record-rules section { padding: 12px 14px; border: 1px solid #d7e1de; border-radius: 12px; background: #fff; }
.record-rules h4 { margin: 0 0 6px; font-size: 1em; color: #173e33; }
.record-rules ul { margin: 0; padding-left: 20px; }
/* ピンとカードの番号をそろえる（UI-012） */
.spot-no { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; margin-right: 8px; padding: 0 6px; border-radius: 13px; background: var(--brown); color: #fff; font-size: .85em; vertical-align: 2px; }
/* 地図を必要なときだけ大きく（UI-024） */
.map-expand { display: block; margin: 6px 0 0 auto; min-height: 44px; padding: 8px 14px; border: 1px solid #9fb8b0; border-radius: 10px; background: #fff; color: #173e33; font-weight: 700; cursor: pointer; }
.map-expand[aria-pressed="true"] { background: #234e42; color: #fff; }
.purpose-ui #spotMap.map-full, .purpose-ui #gachaMiniMap.map-full, .purpose-ui #albumMap.map-full,
.purpose-ui .cy-mainmap.map-full, .purpose-ui .cy-map.map-full,
#spotMap.map-full, #gachaMiniMap.map-full { height: 70vh; height: 70svh; max-height: none; }
.record-rules h4 .v-icon { width: 24px; height: 24px; margin: 0 6px 0 0; vertical-align: middle; }
/* 文字サイズ切替に言葉を添え、押した状態を見せる（UI-025） */
#fontToggle { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; line-height: 1.1; padding: 2px 8px; }
#fontToggle .tool-label { font-size: 11px; font-weight: 700; white-space: nowrap; }
#fontToggle[aria-pressed="true"] { background: #234e42; border-color: #234e42; color: #fff; }
/* 各画面のトップビュー写真（RT-11）。機能より先に「何の画面か」を伝えるが、操作を押し下げすぎない高さにする */
.screen-hero { position: relative; margin: 0 0 14px; height: clamp(120px, 22vh, 200px); border-radius: 14px; overflow: hidden; background: #dfe6ef center / cover no-repeat; }
.screen-hero figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 14px 10px; background: linear-gradient(transparent, rgba(0,0,0,.65)); color: #fff; font-weight: 700; font-size: 1.05em; line-height: 1.4; }
/* よりみちマップコレクション */
.collection-link { display: flex; justify-content: center; margin: 12px 0; }
.collection-progress { margin: 8px 0 4px; font-size: 1.05em; }
.collection-progress b { font-size: 1.3em; color: #173e33; }
.collection-bar { height: 10px; margin: 0 0 12px; border-radius: 5px; background: #e6ddd0; overflow: hidden; }
.collection-bar span { display: block; height: 100%; background: #234e42; }
.collection-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 10px 0 16px; padding: 0; list-style: none; }
.collection-slot { position: relative; min-height: 140px; border-radius: 12px; background: #fff; border: 2px solid #d7e1de; overflow: hidden; }
.collection-slot button { display: flex; flex-direction: column; align-items: stretch; gap: 4px; width: 100%; height: 100%; min-height: 140px; padding: 8px; border: 0; background: none; color: var(--text); text-align: left; cursor: pointer; font: inherit; }
.collection-slot img { width: 100%; height: 72px; object-fit: cover; border-radius: 8px; background: #f5f0e8; }
.collection-slot b { font-size: .92em; line-height: 1.35; }
.collection-slot .rarity { align-self: flex-start; }
.collection-slot.locked { display: flex; align-items: center; justify-content: center; border-style: dashed; background: #f5f0e8; }
.slot-no { position: absolute; top: 6px; left: 8px; font-size: .8em; font-weight: 700; color: #5f5448; }
.collection-slot button .slot-no { position: static; }
.slot-q { font-size: 2.2em; font-weight: 700; color: #8f8272; }
.collection-complete { display: flex; gap: 12px; align-items: center; margin: 10px 0 14px; padding: 14px; border: 3px solid #c9a227; border-radius: 14px; background: #fff8dc; }
.collection-complete .complete-stamp { font-size: 2.6em; line-height: 1; }
.collection-complete p { margin: 4px 0 0; }
/* ホーム直下（RT-01） */
.home-hub .hub-gacha { display: flex; justify-content: center; width: 100%; min-height: 56px; margin: 12px 0; font-size: 1.1em; }
.home-hub .hub-sub { margin: 4px 0 12px; }
.home-favs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.home-fav { padding: 12px; border: 1px solid #d7e1de; border-radius: 14px; background: #fff; }
.home-fav h3 { margin: 0 0 4px; font-size: 1.05em; }
.home-fav-map { height: 220px; margin: 8px 0; border-radius: 10px; background: #dfe6ef; z-index: 1; }
.home-fav .btn { width: 100%; }
.timetable td .bus-warn { white-space: normal; overflow-wrap: anywhere; }
.transport-highlights > div { min-width: 0; }
.transport-highlights b { overflow-wrap: anywhere; }
