/* ===========================================================
   Wedding Guide App — スタイル
   -----------------------------------------------------------
   配色は地中海リゾート（砂岩・テラコッタ・海のブルー・
   シャンパンゴールド）。数値は :root にまとめてある。

   並び順
   1. 変数と土台
   2. ログインの目隠し / 準備中画面
   3. アプリの枠・ヒーロー・タブ・カウントダウン
   4. ホーム（名前 / グループ / チケット / タイル）
   5. 各タブの中身（挙式・お食事・写真・その他・会場）
   6. 共通部品（シート / トースト / ボタン / リスト）
   7. ゲーム（的 / ヒント / クイズ / スコアボード）
   =========================================================== */
:root {
  --sea-deep:   #2c5f7f;
  --sea:        #3f7fa6;
  --sea-mid:    #6fa3c0;
  --sea-mist:   #a8c5d6;
  --sea-pale:   #e7f0f5;
  --terracotta: #b86b52;
  --champagne:  #d4b88a;
  --gold:       #b8945a;
  --ivory:      #fbf5ea;
  --ink:        #24384a;
  --ink-light:  #5d6d79;   /* 補足の文字。白・アイボリー・淡い青の上で 4.5:1 以上（元は #7d8e9b） */
  /* 文字に使うときの色。塗りや枠線は元の --sea / --gold のまま */
  --sea-text:   #376f92;
  --gold-text:  #836638;
  --line:       #e2e8ed;
  --white:      #ffffff;

  /* 日本語は端末の文字を使う（iPhone はヒラギノ角ゴ、Android は Noto Sans CJK）。
     Webフォントの日本語は数百KBになるため、会場の電波が弱くても早く出るように */
  --font-ja: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Noto Sans CJK JP', 'Yu Gothic', Meiryo, sans-serif;
  --font-en: 'Cormorant Garamond', serif;
  --font-script: 'Parisienne', 'Cormorant Garamond', cursive;

  --shell: 430px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #eef2f5;
  font-family: var(--font-ja);
  color: var(--ink);
  line-height: 1.6;
}

/* ---- LINE login gate ----
   .is-gated is set in <head> only when a LIFF ID is configured, so the
   content never flashes before the login check finishes. */
.gate { display: none; }

html.is-gated .app { visibility: hidden; }

html.is-gated .gate {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 50;
  align-items: center;
  justify-content: center;
  background: var(--white);
}

html.is-ready .app { visibility: visible; }
html.is-ready .gate { display: none; }

.gate-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 0 32px;
  text-align: center;
}

.gate-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--sea-pale);
  border-top-color: var(--sea-deep);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.gate-text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--ink-light);
}

@media (prefers-reduced-motion: reduce) {
  .gate-spinner { animation-duration: 2.4s; }
}

/* ---- app shell ---- */
.app {
  position: relative;
  max-width: var(--shell);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--white);
  overflow: clip; /* hidden だとタブバーの sticky が効かない */
  box-shadow: 0 0 48px rgba(44, 95, 127, 0.14);
}

/* リンクで飛んだ先の見出しが、上に止まったタブバーに隠れないように */
.app-body [id] { scroll-margin-top: 76px; }

/* ---- hero map ---- */
.app-hero {
  position: relative;
  aspect-ratio: 736 / 335;
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 73%;
}

.hero-map { position: relative; z-index: 1; display: block; width: 100%; height: 100%; }

.app-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.7) 100%);
  pointer-events: none;
}

.hero-badge {
  position: absolute;
  z-index: 2;
  left: 20px;
  bottom: 7px;
  margin: 0;
  font-family: var(--font-en);
  font-size: 0.92rem;
  letter-spacing: 0.2em;
  color: var(--sea-deep);
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.9);
}

/* ---- tab bar ---- */
.tabbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 4px 6px 0;
}

.tab {
  flex: 1;
  border: none;
  background: none;
  padding: 9px 0 7px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: border-color 0.18s ease;
  font-family: inherit;
}

.tab svg {
  display: block;
  margin: 0 auto;
  width: 26px;
  height: 26px;
  fill: var(--ink-light);
  --art-paint: var(--ink-light);
  transition: fill 0.18s ease, background-color 0.18s ease;
}

.tab-label {
  display: block;
  margin-top: 3px;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--ink-light);
  transition: color 0.18s ease;
}

.tab:hover svg { fill: var(--sea-mid); --art-paint: var(--sea-mid); }
.tab:hover .tab-label { color: var(--sea-mid); }
.tab.is-active { border-bottom-color: var(--sea-deep); }
.tab.is-active svg { fill: var(--sea-deep); --art-paint: var(--sea-deep); }
.tab.is-active .tab-label { color: var(--sea-deep); font-weight: 500; }

/* ---- body / views ---- */
.app-body { padding: 14px 20px 96px; }

.view { animation: viewIn 0.24s ease both; }

@keyframes viewIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .view { animation: none; }
}

.view-title {
  margin: 4px 0 6px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--sea-deep);
}

.view-lead {
  margin: 0 0 24px;
  font-size: 0.92rem;
  color: var(--ink-light);
}

/* ---- user row ---- */
.user-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 4px 0 24px;
}

.avatar {
  width: 50px;
  height: 50px;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(44, 95, 127, 0.18);
}

.avatar svg { display: block; width: 100%; height: 100%; }
.avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }

.user-name {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 1.26rem;
  font-weight: 700;
  color: var(--sea-deep);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-name .suffix { font-size: 1.05rem; font-weight: 500; }

.user-link {
  flex: none;
  min-height: 44px;
  padding: 6px 2px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--sea-text);
  transition: color 0.18s ease;
}

.user-link:hover { color: var(--sea-deep); text-decoration: underline; }

/* ---- countdown band (above the tab bar) ---- */
.countdown {
  padding: 9px 20px 8px;
  text-align: center;
  background: linear-gradient(160deg, var(--ivory) 0%, #f6efe2 100%);
  border-bottom: 1px solid #ece0ca;
}

.cd-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.cd-label {
  margin: 0;
  font-family: var(--font-script);
  font-size: 1.12rem;
  line-height: 1.1;
  color: var(--gold-text);
}

.cd-main {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--sea-deep);
}

.cd-main strong {
  font-family: var(--font-en);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  margin: 0 3px;
}

.cd-sub:empty { display: none; }

.cd-sub {
  margin: 3px 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ink-light);
}

/* on the day itself */
.countdown.is-today {
  background: linear-gradient(160deg, #eaf2f7 0%, #dfeaf1 100%);
  border-bottom-color: var(--sea-mist);
}

.countdown.is-today .cd-label { color: var(--sea-text); }

.countdown.is-today .cd-main {
  font-size: 1.12rem;
  font-weight: 700;
}

.countdown.is-done .cd-main { font-size: 1rem; }

/* 当日だけ出る、受付用QRのボタン */
.cd-qr {
  display: block;
  width: 100%;
  max-width: 340px;
  min-height: 44px;
  margin: 8px auto 2px;
  padding: 10px 16px;
  border: none;
  border-radius: 999px;
  background: var(--sea-deep);
  color: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.cd-qr:hover { background: var(--sea-text); }
.cd-qr:focus-visible { outline: 2px solid var(--sea-deep); outline-offset: 3px; }

/* ---- blocks ---- */
.block { margin-bottom: 30px; }

.block-title {
  margin: 0 0 12px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--sea-deep);
  letter-spacing: 0.02em;
}

.block-empty {
  margin: 0 0 18px;
  font-size: 0.95rem;
  color: var(--ink);
}

/* ---- dual action ---- */
/* ---- back link ---- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px -4px;
  padding: 6px 4px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--sea-text);
  transition: color 0.18s ease;
}

.back-link::before {
  content: "";
  width: 7px;
  height: 7px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.back-link:hover { color: var(--sea-deep); }

/* ---- figures ---- */
.figure {
  margin: 0 0 12px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--sea-pale);
}

.figure img {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
}

.figure-placeholder {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  aspect-ratio: 4 / 3;
  border: 1px dashed var(--sea-mist);
  border-radius: 10px;
  color: var(--sea-mid);
}

.figure-placeholder svg {
  width: 38px;
  height: 38px;
  fill: currentColor;
  opacity: 0.7;
}

.figure-placeholder p {
  margin: 0;
  font-size: 0.85rem;
}

.figure.is-missing { background: none; }
.figure.is-missing img { display: none; }
.figure.is-missing .figure-placeholder { display: flex; }

.figure-note {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--ink-light);
}

/* ---- buttons ---- */
.btn-outline {
  display: block;
  margin: 8px 0 32px;
  padding: 15px 12px;
  border: 1px solid var(--sea-mist);
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  color: var(--sea-text);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: background 0.18s ease, color 0.18s ease;
}

.btn-outline:hover { background: var(--sea-pale); color: var(--sea-deep); }

.btn-external {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-bottom: 12px;
}

.btn-external svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  opacity: 0.75;
}

.btn-fill {
  display: block;
  width: 100%;
  padding: 15px 12px;
  border: none;
  border-radius: 8px;
  background: var(--sea-deep);
  color: var(--white);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.18s ease;
}

.btn-fill:hover:not(:disabled) { background: var(--sea); }
.btn-fill:disabled { background: var(--sea-pale); color: var(--sea-text); cursor: not-allowed; }

/* ---- list ---- */
.list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.list li { border-bottom: 1px solid var(--line); }

.list a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 15px 22px 15px 2px;
  position: relative;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.98rem;
}

.list em {
  margin-left: auto;
  font-style: normal;
  font-size: 0.82rem;
  color: var(--ink-light);
}

.list a::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--sea-mist);
  border-bottom: 2px solid var(--sea-mist);
  transform: translateY(-50%) rotate(-45deg);
}

.list a:hover { background: var(--sea-pale); }

/* ---- script headings ---- */
.plan-count {
  margin: 2px 0 12px;
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--sea-deep);
}

#plan-count {
  margin: 22px 0 10px;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink-light);
}

/* ---- timeline cards ---- */
.timeline {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
}

.timeline li {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 1px 6px rgba(44, 95, 127, 0.07);
  transition: opacity 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tl-icon {
  flex: none;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sea-pale);
  border: 2px solid var(--champagne);
  color: var(--sea-deep);
}

.tl-icon svg { width: 34px; height: 34px; }

.tl-body { flex: 1; min-width: 0; }

.tl-en {
  margin: 0 0 3px;
  font-size: 0.68rem;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: var(--ink-light);
  word-break: keep-all;
}

.tl-body h3 {
  margin: 0 0 3px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--sea-deep);
}

.tl-when {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--ink-light);
}

/* 書体・大きさはラベルと揃え、数字だけ少し濃くする */
.tl-time {
  font-family: inherit;
  font-size: inherit;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink);
  margin-left: 3px;
}

/* 当日の状態 */
.timeline li.is-past { opacity: 0.5; }

.timeline li.is-now {
  border-color: var(--terracotta);
  box-shadow: 0 2px 12px rgba(184, 107, 82, 0.2);
}

.timeline li.is-now .tl-icon {
  background: #fbeee9;
  border-color: var(--terracotta);
  color: var(--terracotta);
}

.timeline li.is-now .tl-en { color: var(--terracotta); }
.timeline li.is-now .tl-time { color: var(--terracotta); }

.timeline li.is-now .tl-body h3::after {
  content: "現在";
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--terracotta);
  color: var(--white);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  vertical-align: 2px;
}

/* ---- menu ---- */
.menu {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
}

.menu li {
  padding: 22px 2px 24px;
  border-bottom: 1px dotted var(--line);
  text-align: center;
}

.menu li:last-child { border-bottom: none; }

.menu-cat {
  display: inline-block;
  margin-bottom: 12px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--ivory);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--gold-text);
}

.menu-en {
  margin: 0 0 7px;
  font-family: var(--font-en);
  font-size: 1.02rem;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--gold-text);
}

.menu-ja {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--ink);
}

/* ---- notice ---- */
.notice {
  margin: 0 0 30px;
  padding: 18px 18px 20px;
  border-radius: 10px;
  background: var(--ivory);
  border: 1px solid #efe3cd;
}

.notice h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-text);
}

.notice p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink);
}

/* ---- ornaments ---- */
.foot-mark {
  margin: 34px auto -6px;
  width: 34px;
  color: var(--sea-mist);
}

.foot-mark svg { display: block; width: 100%; height: auto; }

.app-foot {
  margin: 12px 0 0;
  text-align: center;
  font-family: var(--font-en);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  color: var(--ink-light);
}

/* ---- toast ---- */
.toast {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: calc(30px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%) translateY(10px);
  max-width: calc(var(--shell) - 60px);
  padding: 11px 20px;
  border-radius: 999px;
  background: rgba(36, 56, 74, 0.92);
  color: var(--white);
  font-size: 0.85rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 再生バーが出ているときは、お知らせをその上に出す */
html.has-player .toast { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }

/* ---- BGMの再生バー（Spotifyのミニプレーヤー風） ---- */
.player {
  position: fixed;
  z-index: 15;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: calc(min(100vw, var(--shell)) - 24px);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 8px 10px;
  border-radius: 12px;
  background: rgba(31, 61, 84, 0.94);
  box-shadow: 0 6px 20px rgba(20, 40, 60, 0.28);
  color: var(--white);
  overflow: hidden;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.player-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  color: inherit;
}

.player-art {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  object-position: 60% 70%;  /* 火山と要塞のあたり */
}

.player-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.player-title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.9rem;
  font-weight: 700;
}

.player-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.7);
}

/* 流れているあいだ、ぴょこぴょこ動く音のバー */
.player-eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 11px;
}

.player-eq i {
  width: 3px;
  height: 30%;
  border-radius: 1px;
  background: #7fd0ff;
}

.player.is-playing .player-eq i { animation: eq 0.9s ease-in-out infinite; }
.player.is-playing .player-eq i:nth-child(2) { animation-delay: -0.3s; animation-duration: 0.7s; }
.player.is-playing .player-eq i:nth-child(3) { animation-delay: -0.55s; animation-duration: 1.1s; }

@keyframes eq {
  0%, 100% { height: 30%; }
  50%      { height: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .player.is-playing .player-eq i { animation: none; height: 70%; }
}

.player-toggle {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  color: var(--white);
}

.player-toggle svg { width: 26px; height: 26px; fill: currentColor; }
.player-toggle .i-pause { display: none; }
.player.is-playing .player-toggle .i-play { display: none; }
.player.is-playing .player-toggle .i-pause { display: inline; }

/* 曲の進み具合（いちばん下の細い線） */
.player-progress {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 4px;
  height: 2px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.player-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.85);
}

/* ---- settings sheet ---- */
/* keep [hidden] winning over the display rule below */
[hidden] { display: none !important; }

.sheet-backdrop {
  position: fixed;
  z-index: 30;
  inset: 0;
  background: rgba(24, 40, 54, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.sheet-backdrop.is-open { opacity: 1; }

.sheet {
  width: 100%;
  max-width: var(--shell);
  padding: 10px 24px calc(28px + env(safe-area-inset-bottom, 0px));
  background: var(--white);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -6px 30px rgba(24, 40, 54, 0.22);
  transform: translateY(100%);
  transition: transform 0.26s cubic-bezier(0.22, 0.75, 0.3, 1);
}

.sheet-backdrop.is-open .sheet { transform: translateY(0); }

.sheet-grip {
  width: 40px;
  height: 4px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: var(--line);
}

.sheet-title {
  margin: 0 0 20px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--sea-deep);
}

.field-label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-light);
}

#name-input,
.field-select {
  display: block;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--sea-mist);
  border-radius: 8px;
  background: var(--white);
  font-family: inherit;
  font-size: 1.05rem;
  color: var(--sea-deep);
}

/* BGMの選択欄（右端に下向きの矢印） */
.field-select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 40px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%233f7fa6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center / 20px;
}

/* お名前の説明とBGMの欄のあいだを空ける */
.field-help + .field-label { margin-top: 22px; }

/* BGM：曲の選択と試聴ボタン */
.bgm-row {
  display: flex;
  gap: 8px;
}

.bgm-row .field-select { flex: 1; min-width: 0; }

.bgm-try {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
  padding: 0 14px;
  border: 1px solid var(--sea-mist);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--sea-text);
}

.bgm-try svg { width: 18px; height: 18px; fill: currentColor; }
.bgm-try .i-stop { display: none; }
.bgm-try.is-playing { background: var(--sea-pale); }
.bgm-try.is-playing .i-play { display: none; }
.bgm-try.is-playing .i-stop { display: inline; }
.bgm-try:disabled { opacity: 0.4; cursor: default; }

/* BGM：音量バー */
.bgm-row + .field-label { margin-top: 18px; }

.bgm-volume {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--sea-mist);
}

.bgm-volume svg { flex: none; width: 20px; height: 20px; fill: currentColor; }

.bgm-volume input {
  flex: 1;
  height: 28px;
  margin: 0;
  accent-color: var(--sea);
}

#name-input:focus,
.field-select:focus {
  outline: none;
  border-color: var(--sea);
  box-shadow: 0 0 0 3px rgba(63, 127, 166, 0.14);
}

.field-help {
  margin: 10px 0 0;
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--ink-light);
}

.sheet-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.sheet-actions .btn-fill { flex: 1; }

.btn-ghost {
  flex: none;
  padding: 15px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink-light);
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.btn-ghost:hover { background: var(--sea-pale); color: var(--sea-deep); }

@media (prefers-reduced-motion: reduce) {
  .sheet, .sheet-backdrop { transition: none; }
}

@media (max-width: 470px) {
  .app { box-shadow: none; }
}

/* ---- image zoom viewer ---- */
.figure-zoom-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 8px 0 10px;
  font-size: 0.78rem;
  color: var(--ink-light);
}

.figure-zoom-hint svg {
  width: 14px;
  height: 14px;
  fill: var(--sea-mist);
  --art-paint: var(--sea-mist);
}

html.is-zooming { overflow: hidden; }

.zoom {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #10202c;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.zoom.is-open { opacity: 1; }

.zoom-stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
}

.zoom-stage img {
  max-width: 100%;
  max-height: 100%;
  transform-origin: center center;
  will-change: transform;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

.zoom-stage.is-animating img { transition: transform 0.25s ease; }

.zoom-close {
  position: absolute;
  z-index: 2;
  top: calc(14px + env(safe-area-inset-top, 0px));
  right: 14px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.zoom-close svg { width: 22px; height: 22px; fill: #ffffff; --art-paint: #ffffff; }
.zoom-close:hover { background: rgba(255, 255, 255, 0.28); }

.zoom-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  margin: 0;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.62);
  pointer-events: none;
}

/* ---- maintenance screen ---- */
.maint { display: none; }

html.is-maintenance .app,
html.is-maintenance .gate { display: none !important; }

html.is-maintenance .maint {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 70;
  align-items: center;
  justify-content: center;
  background: linear-gradient(170deg, var(--ivory) 0%, #f3ece0 60%, #eae3f0 100%);
}

.maint-inner {
  padding: 0 34px;
  text-align: center;
  max-width: 420px;
}

.maint-mark {
  width: 42px;
  height: auto;
  margin-bottom: 20px;
  color: var(--champagne);
}

.maint-script {
  margin: 0 0 10px;
  font-family: var(--font-script);
  font-size: 2.1rem;
  line-height: 1;
  color: var(--gold-text);
}

.maint-title {
  margin: 0 0 16px;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--sea-deep);
}

.maint-text {
  margin: 0 0 30px;
  font-size: 0.9rem;
  line-height: 2;
  color: var(--ink-light);
}

.maint-date {
  margin: 0;
  font-family: var(--font-en);
  font-size: 0.92rem;
  letter-spacing: 0.18em;
  color: var(--ink-light);
}

/* ---- FAQ accordion ---- */
.faq {
  border-bottom: 1px solid var(--line);
}

.faq:first-of-type { border-top: 1px solid var(--line); }

.faq summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 2px;
  cursor: pointer;
  list-style: none;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.18s ease;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::before {
  content: "Q";
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sea-pale);
  color: var(--sea-text);
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 600;
  display: grid;
  place-items: center;
}

.faq summary::after {
  content: "";
  flex: none;
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--sea-mist);
  border-bottom: 2px solid var(--sea-mist);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s ease;
}

.faq[open] summary { color: var(--sea-deep); }
.faq[open] summary::before { background: var(--sea-deep); color: var(--white); }

.faq[open] summary::after {
  transform: rotate(-135deg) translate(-3px, -3px);
  border-color: var(--sea);
}

.faq-body {
  padding: 0 2px 18px 34px;
  animation: faqIn 0.2s ease both;
}

@keyframes faqIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

.faq-body p {
  margin: 0 0 8px;
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--ink-light);
}

.faq-body p:last-child { margin-bottom: 0; }
.faq-body strong { color: var(--sea-deep); font-weight: 700; }

.faq-body a {
  color: var(--sea-text);
  text-underline-offset: 3px;
}

.faq-foot {
  margin: 20px 0 0;
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--ink-light);
}

@media (prefers-reduced-motion: reduce) {
  .faq-body { animation: none; }
}

/* sticky tab bar clearance for in-page jumps */
#floor-map { scroll-margin-top: 78px; }

/* ---- wedding ticket ---- */
.ticket {
  margin: 0 0 14px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 2px 14px rgba(44, 95, 127, 0.14);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ticket-head {
  position: relative;
  height: 72px;
  background: linear-gradient(160deg, #5fc0ef 0%, #37a3e4 45%, #1f86cf 100%);
  overflow: hidden;
}

.ticket-wave {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ticket-bubbles {
  position: absolute;
  left: 18px;
  bottom: 12px;
  width: 36px;
  height: auto;
}

.ticket-logo {
  position: absolute;
  right: 18px;
  bottom: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 1px 5px rgba(12, 70, 110, 0.35);
}

.ticket-logo p { margin: 0; }

.logo-flourish {
  width: 30px;
  height: auto;
  margin-bottom: 1px;
  opacity: 0.75;
}

.logo-our,
.logo-fairytale {
  font-family: var(--font-en);
  font-weight: 400;
  line-height: 1.1;
}

.logo-our { font-size: 0.36rem; letter-spacing: 0.36em; text-indent: 0.36em; }
.logo-fairytale { font-size: 0.46rem; letter-spacing: 0.26em; text-indent: 0.26em; }

.logo-weddings {
  font-family: 'Great Vibes', var(--font-script);
  font-size: 0.98rem;
  line-height: 1.15;
  margin-top: -2px !important;
}

.ticket-body { padding: 15px 18px 17px; }

.ticket-type {
  margin: 0 0 7px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #276daa;
}

.ticket-name {
  margin: 0 0 2px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--sea-deep);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-name #ticket-name { margin-right: 4px; }

.ticket-grade {
  margin: 0 0 12px;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--sea-deep);
}

.ticket-when {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 10px;
  margin: 0 0 12px;
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--ink);
}

.ticket-when strong {
  font-family: inherit;
  font-size: 1.04rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--sea-deep);
}

.ticket-no {
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--ink-light);
}

/* action tiles under the ticket */
.ticket-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}

.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 6px 15px;
  border-radius: 12px;
  text-decoration: none;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.4;
  transition: transform 0.18s ease, filter 0.18s ease;
}

/* 日本語は既定だとどこでも改行されるため、語の途中で割れないようにする */
.tile span {
  word-break: keep-all;
  overflow-wrap: normal;
}

/* 文字数の多いタイルだけ一段小さく */
.tile--long span {
  font-size: 0.66rem;
  letter-spacing: -0.01em;
}

.tile svg { width: 36px; height: 36px; }
.tile:hover { transform: translateY(-2px); filter: brightness(0.97); }

.tile--blue { background: var(--sea-pale); color: var(--sea-text); }
.tile--gold { background: var(--ivory); color: var(--gold-text); }

/* ---- ticket tap hint ---- */
.ticket:hover { transform: translateY(-2px); box-shadow: 0 5px 20px rgba(44, 95, 127, 0.2); }
.ticket:focus-visible { outline: 3px solid var(--sea-mist); outline-offset: 3px; }

.ticket-tap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 9px 0 0;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--sea-text);
}

.ticket-tap svg { width: 15px; height: 15px; fill: currentColor; }

/* ---- ticket QR ---- */
/* 受付で見せるQR画面。画面全体を白にして、明るく大きく見せる（受付のカメラが読みやすい）。
   金の二重枠と WEDDING TICKET でチケットらしさを残す */
.qr-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  background: #ffffff;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.qr-backdrop.is-open { opacity: 1; }

.qr-card {
  position: relative;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: max(48px, calc(env(safe-area-inset-top, 0px) + 36px)) 32px max(40px, calc(env(safe-area-inset-bottom, 0px) + 32px));
  background: #ffffff;
  text-align: center;
  transform: translateY(10px);
  transition: transform 0.24s cubic-bezier(0.22, 0.75, 0.3, 1);
}

.qr-backdrop.is-open .qr-card { transform: none; }

/* 金の二重枠 */
.qr-card::before,
.qr-card::after {
  content: "";
  position: fixed;
  pointer-events: none;
}

.qr-card::before {
  top: max(14px, env(safe-area-inset-top, 0px));
  right: max(14px, env(safe-area-inset-right, 0px));
  bottom: max(14px, env(safe-area-inset-bottom, 0px));
  left: max(14px, env(safe-area-inset-left, 0px));
  border: 1px solid var(--champagne);
  border-radius: 18px;
}

.qr-card::after {
  top: max(19px, calc(env(safe-area-inset-top, 0px) + 5px));
  right: max(19px, calc(env(safe-area-inset-right, 0px) + 5px));
  bottom: max(19px, calc(env(safe-area-inset-bottom, 0px) + 5px));
  left: max(19px, calc(env(safe-area-inset-left, 0px) + 5px));
  border: 1px solid rgba(212, 184, 138, 0.55);
  border-radius: 14px;
}

.qr-close {
  position: fixed;
  z-index: 1;
  top: max(28px, calc(env(safe-area-inset-top, 0px) + 14px));
  right: max(28px, calc(env(safe-area-inset-right, 0px) + 14px));
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.qr-close svg { width: 18px; height: 18px; fill: var(--ink-light); --art-paint: var(--ink-light); }
.qr-close:hover { background: var(--sea-pale); }

.qr-eyebrow {
  margin: 0 0 6px;
  font-family: var(--font-en);
  font-size: 0.95rem;
  letter-spacing: 0.32em;
  color: var(--gold-text);
}

.qr-title {
  margin: 0 0 20px;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--sea-text);
}

/* QRは画面の幅と高さの両方に合わせる（小さい端末でも1画面に収まるように） */
.qr-box {
  --qr: min(70vw, 270px, 40vh);
  display: flex;
  justify-content: center;
  padding: 14px;
  border: 1px solid #ece0ca;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(184, 148, 90, 0.18);
}

.qr-box img, .qr-box canvas {
  display: block;
  width: var(--qr);
  height: var(--qr);
  max-width: none;
}

.qr-name {
  margin: 20px 0 4px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--sea-deep);
}

.qr-no {
  margin: 0;
  font-family: var(--font-en);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  color: var(--ink-light);
}

.qr-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0 0;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ivory);
  font-size: 0.86rem;
  color: var(--ink-light);
  white-space: nowrap;
}

.qr-hint svg { flex: none; width: 18px; height: 18px; color: var(--gold); }

.qr-done {
  width: min(78vw, 300px);
  min-height: 48px;
  margin-top: 22px;
  border: none;
  border-radius: 999px;
  background: var(--sea-deep);
  color: var(--white);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.qr-done:focus-visible, .qr-close:focus-visible { outline: 2px solid var(--sea-deep); outline-offset: 2px; }

/* 高さの低い端末（iPhone SE など）では、余白とQRを少し詰めて1画面に収める */
@media (max-height: 640px) {
  .qr-card { padding-top: max(34px, calc(env(safe-area-inset-top, 0px) + 28px)); padding-bottom: max(28px, calc(env(safe-area-inset-bottom, 0px) + 24px)); }
  .qr-eyebrow { margin-bottom: 2px; font-size: 0.82rem; }
  .qr-title { margin-bottom: 12px; font-size: 0.95rem; }
  .qr-box { --qr: min(70vw, 270px, 34vh); padding: 10px; }
  .qr-name { margin: 12px 0 2px; font-size: 1.15rem; }
  .qr-hint { margin-top: 12px; padding: 8px 14px; font-size: 0.8rem; }
  .qr-done { margin-top: 14px; min-height: 44px; }
}

/* 受付で読み取られたときの知らせ。QRの上に白く重ねる */
.qr-checked {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--gold);
  text-align: center;
  animation: qrCheckedIn 0.35s ease both;
}

.qr-checked[hidden] { display: none; }
.qr-checked svg { width: 84px; height: 84px; margin-bottom: 10px; animation: qrCheckedMark 0.5s 0.1s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
.qr-checked-title { margin: 0; font-size: 1.35rem; font-weight: 700; letter-spacing: 0.08em; color: var(--sea-deep); }
.qr-checked-sub { margin: 0; font-size: 0.9rem; color: var(--ink-light); }

@keyframes qrCheckedIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes qrCheckedMark { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .qr-card, .qr-backdrop { transition: none; }
  .qr-checked, .qr-checked svg { animation: none; }
}

/* ---- reception stamp ----
   受付が済むと、チケットの青がシャンパンゴールドに変わる（特別な場面の金と揃える） */
.ticket-stamp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 12px 0 0;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid #ecdcbc;
  background: var(--ivory);
  color: var(--gold-text);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.ticket-stamp svg { width: 18px; height: 18px; fill: currentColor; }

.ticket.is-checked .ticket-head {
  background: linear-gradient(160deg, #ecd9ae 0%, #d4b88a 45%, #b8945a 100%);
}

/* ---- wedding points ---- */
.qr-fallback { margin: 0; padding: 20px 8px; font-size: 0.82rem; line-height: 1.8; color: var(--ink-light); }

/* ---- hidden mickey hunt ---- */
.mickey {
  cursor: pointer;
  pointer-events: auto;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform-box: fill-box;
  transform-origin: center;
}

.mickey.is-found {
  animation: mickeyPop 0.5s ease;
}

@keyframes mickeyPop {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.foot-mark .mickey.is-found,
.menu-ornament .mickey.is-found { color: var(--gold-text); }

.menu-ornament {
  margin: -8px 0 26px;
  color: var(--champagne);
}

.menu-ornament svg {
  display: block;
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
  height: auto;
}

/* ---- game panel ---- */
.game {
  margin: 0 0 14px;
}

.game-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #efe3cd;
  border-radius: 12px;
  background: var(--ivory);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background 0.18s ease;
}

.game-row:hover { background: #f6efe2; }

.game-find {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.9rem;
  color: var(--gold-text);
}

.game-find svg { width: 20px; height: auto; }
.game-find em { font-style: normal; font-family: var(--font-en); font-size: 1.15rem; font-weight: 600; }

.game-point {
  margin-left: auto;
  font-size: 0.82rem;
  color: var(--sea-deep);
}

.game-point strong {
  font-family: var(--font-en);
  font-size: 1.3rem;
  font-weight: 600;
  margin-right: 2px;
}

.game-rank {
  position: relative;
  padding-right: 14px;
  font-size: 0.82rem;
  color: var(--sea-text);
  white-space: nowrap;
}

.game-rank::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 2px solid var(--sea-mist);
  border-bottom: 2px solid var(--sea-mist);
  transform: translateY(-50%) rotate(-45deg);
}

.game-note {
  margin: 8px 2px 0;
  font-size: 0.74rem;
  line-height: 1.7;
  color: var(--ink-light);
}

/* ---- ranking ---- */
.rank-list {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  border-top: 1px solid var(--line);
}

.rank-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.rank-list .rk {
  flex: none;
  width: 30px;
  font-family: var(--font-en);
  font-size: 1.1rem;
  color: var(--ink-light);
}

.rank-list li:nth-child(1) .rk { color: var(--gold-text); font-weight: 600; }
.rank-list li:nth-child(2) .rk,
.rank-list li:nth-child(3) .rk { color: var(--sea-text); }

.rank-list .pt {
  margin-left: auto;
  font-weight: 500;
  color: var(--sea-deep);
}

.rank-list .is-empty { color: var(--ink-light); font-size: 0.88rem; }

.howto {
  list-style: none;
  margin: 0;
  padding: 0;
}

.howto li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 2px;
  border-bottom: 1px dotted var(--line);
  font-size: 0.9rem;
}

.howto em {
  margin-left: auto;
  font-style: normal;
  font-family: var(--font-en);
  font-size: 1rem;
  color: var(--gold-text);
}

/* ---- horizontal shortcut row ---- */
.scroller {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  margin: 0 -20px 6px;
  padding: 2px 20px 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.scroller::-webkit-scrollbar { display: none; }

.chip {
  flex: none;
  width: 112px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 10px 8px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--gold-text);
  text-decoration: none;
  text-align: center;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.4;
  transition: color 0.18s ease, transform 0.18s ease;
}

.chip + .chip { border-left: 1px solid var(--line); }
.chip svg { width: 46px; height: 34px; }
.chip:hover { color: var(--gold-deep); transform: translateY(-2px); }

/* ---- hint sheet ---- */
.hint-lead {
  margin: 0 0 18px;
  font-size: 0.86rem;
  line-height: 1.8;
  color: var(--ink-light);
}

.hint-count {
  margin: 0 0 12px;
  font-size: 0.85rem;
  color: var(--gold-text);
}

.hint-count strong {
  font-family: var(--font-en);
  font-size: 1.5rem;
  font-weight: 600;
  margin-right: 2px;
}

.hint-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hint-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--line);
}

.hint-list li:first-child { border-top: 1px solid var(--line); }

.hint-list .pt-label { color: var(--ink-light); font-size: 0.94rem; }
.hint-list li.is-found .pt-label { color: var(--ink); }

.found-mark {
  margin-left: auto;
  flex: none;
  padding: 3px 10px;
  border: 1px solid #ecdcbc;
  border-radius: 999px;
  background: var(--ivory);
  color: var(--gold-text);
  font-size: 0.72rem;
  font-weight: 500;
}

.hint-bonus {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 0 0;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--ivory);
  border: 1px dashed var(--champagne);
}

.hint-bonus .pt-label { font-weight: 500; color: var(--gold-text); }

/* 取ったあとは、取る前（点線）と見分けやすいよう濃い金の実線にする */
.hint-bonus.is-done {
  background: var(--ivory);
  border-style: solid;
  border-width: 1.5px;
  border-color: var(--gold);
}

.hint-bonus.is-done .pt-label { color: var(--gold-text); }

/* ---- メニューボタン ---- */
.menu-btn {
  position: absolute;
  z-index: 3;
  top: 10px;
  right: 14px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 2px 6px rgba(44, 95, 127, 0.18);
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--sea-deep);
  transition: background 0.18s ease, transform 0.18s ease;
}

.menu-btn svg { width: 20px; height: 20px; fill: none; }

/* 見た目は38pxのまま、押せる範囲だけ46pxに広げる */
.menu-btn::after {
  content: "";
  position: absolute;
  inset: -4px;
}
.menu-btn:hover { background: var(--white); transform: translateY(-1px); }

/* ---- メニュー一覧 ---- */
.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.menu-list li { border-bottom: 1px solid var(--line); }

.menu-list button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 15px 22px 15px 2px;
  position: relative;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.98rem;
  text-align: left;
  color: var(--ink);
}

.menu-list button::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--sea-mist);
  border-bottom: 2px solid var(--sea-mist);
  transform: translateY(-50%) rotate(-45deg);
}

.menu-list button:hover { background: var(--sea-pale); }

.menu-list em {
  margin-left: auto;
  font-style: normal;
  font-size: 0.82rem;
  color: var(--sea-text);
}

/* ---- 獲得ポイント一覧 ---- */
.ptlist {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.ptlist li,
.ptleft li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--line);
}

.ptlist li:first-child { border-top: 1px solid var(--line); }

/* 的 */
.target {
  flex: none;
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 1px 3px rgba(60, 45, 25, 0.22));
}

.target .t-red { fill: #d7332b; }
.target .t-cream { fill: #f4ecd8; }

.target text {
  font-family: 'Mochiy Pop One', var(--font-ja);
  fill: #2f6fd0;
  stroke: #1b1b1b;
  stroke-width: 5px;
  paint-order: stroke;
  stroke-linejoin: round;
}

.target.tier-1 text { fill: #2f6fd0; }
.target.tier-2 text { fill: #1f8a4c; }
.target.tier-3 text { fill: #8b3fd0; }
.target.tier-4 text { fill: #f0b429; }

/* まだ取っていない的。少し淡くするが、点数の数字は読めるように濃さを残す */
.target.is-muted { opacity: 0.8; filter: grayscale(0.4); }

.pt-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.pt-label {
  font-size: 0.94rem;
  color: var(--ink);
  line-height: 1.5;
}

.ptlist .when {
  font-family: var(--font-en);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--ink-light);
}

.ptlist .is-empty {
  display: block;
  padding: 22px 2px;
  text-align: center;
  color: var(--ink-light);
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
}

.ptsum {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 30px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--ivory);
  border: 1px solid #efe3cd;
  font-size: 0.88rem;
  color: var(--ink-light);
}

.ptsum strong {
  margin-left: auto;
  font-family: var(--font-en);
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1;
  color: var(--sea-deep);
}

.ptleft {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ptleft li .pt-label { color: var(--ink-light); }

/* ---- ポイント獲得の的（画面中央に出る演出） ---- */
.score-pop {
  position: fixed;
  z-index: 45;
  left: 50%;
  top: 44%;
  width: 178px;
  height: 178px;
  margin: -89px 0 0 -89px;
  pointer-events: none;
  animation: scorePop 1.5s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

.score-pop svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 6px 16px rgba(40, 30, 20, 0.35));
}

.score-pop text {
  font-family: 'Mochiy Pop One', var(--font-ja);
  font-size: 30px;
  fill: #2f6fd0;
  stroke: #1b1b1b;
  stroke-width: 5px;
  paint-order: stroke;
  stroke-linejoin: round;
}

.score-pop.tier-1 text { fill: #2f6fd0; }
.score-pop.tier-2 text { fill: #1f8a4c; }
.score-pop.tier-3 text { fill: #8b3fd0; }
.score-pop.tier-4 text { fill: #f0b429; }

@keyframes scorePop {
  0%   { opacity: 0; transform: scale(0.3) rotate(-14deg); }
  22%  { opacity: 1; transform: scale(1.12) rotate(4deg); }
  38%  { transform: scale(1) rotate(0deg); }
  76%  { opacity: 1; transform: scale(1) rotate(0deg); }
  100% { opacity: 0; transform: scale(1.18) translateY(-26px); }
}

@media (prefers-reduced-motion: reduce) {
  .score-pop { animation-duration: 1.2s; }
}

/* ===========================================================
   ゲーム・グループまわり
   =========================================================== */

/* ---- ふたりクイズ ---- */
.quiz-step {
  margin: 0 0 10px;
  font-family: var(--font-en);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: var(--gold-text);
}

.quiz-q {
  margin: 0 0 20px;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.7;
  color: var(--sea-deep);
}

.quiz-choices { display: flex; flex-direction: column; gap: 10px; }

.choice {
  padding: 15px 16px;
  border: 1px solid var(--sea-mist);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.98rem;
  text-align: left;
  color: var(--ink);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.choice:hover { background: var(--sea-pale); border-color: var(--sea); }

.qr-score { margin: 0 0 6px; font-size: 1rem; color: var(--sea-deep); }

.qr-score strong {
  font-family: var(--font-en);
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1;
  margin-right: 3px;
}

.qr-earned {
  margin: 0 0 22px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--gold-text);
}

.qr-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  border-top: 1px solid var(--line);
}

.qr-list li { padding: 13px 2px; border-bottom: 1px solid var(--line); }

.qr-list .q {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 4px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
}

.qr-list .mark { flex: none; font-size: 1rem; }
.qr-list li.ok .mark { color: #4a9a72; }
.qr-list li.ng .mark { color: var(--terracotta); }

.qr-list .a {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--ink-light);
}

/* ---- おふたりへメッセージ ---- */
.msg-left {
  margin: -8px 0 14px;
  font-size: 0.78rem;
  color: var(--gold-text);
}

.msg-form { display: flex; flex-direction: column; gap: 12px; }

.msg-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--sea-mist);
  border-radius: 10px;
  background: var(--white);
  font-family: inherit;
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--ink);
  resize: vertical;
}

.msg-form textarea:focus {
  outline: none;
  border-color: var(--sea);
  box-shadow: 0 0 0 3px rgba(63, 127, 166, 0.14);
}

.msg-done {
  margin: 12px 0 0;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1px solid #ecdcbc;
  background: var(--ivory);
  font-size: 0.9rem;
  color: var(--gold-text);
}

/* ---- 内容を伏せる（お食事） ---- */
.secret {
  margin: 0 0 26px;
  padding: 34px 24px 30px;
  border-radius: 12px;
  text-align: center;
  background: linear-gradient(165deg, var(--ivory) 0%, #f4ecdf 60%, #ece7f0 100%);
  border: 1px solid #efe3cd;
}

.secret-script {
  margin: 0 0 10px;
  font-family: var(--font-script);
  font-size: 1.9rem;
  line-height: 1;
  color: var(--gold-text);
}

.secret-title {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--sea-deep);
}

.secret-text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.9;
  color: var(--ink-light);
}

/* ---- グループ ---- */
.group { margin: 0 0 18px; }

.group-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.group-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sea-deep);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-link {
  margin-left: auto;
  flex: none;
  border: none;
  background: none;
  padding: 2px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--sea-text);
}

.group-members {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.member {
  position: relative;
  overflow: hidden;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  box-shadow: 0 1px 3px rgba(44, 95, 127, 0.2);
}

.member img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member.is-me { box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--champagne); }

.group-add {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px dashed var(--sea-mist);
  background: none;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--sea-text);
  transition: background 0.18s ease;
}

.group-add:hover { background: var(--sea-pale); }

/* 見た目は40pxのまま、押せる範囲だけ44pxに広げる（枠線1.5pxの内側が基準なので 2 + 1.5） */
.group-add::after {
  content: "";
  position: absolute;
  inset: -3.5px;
}

.group-err {
  margin: 10px 0 0;
  font-size: 0.85rem;
  color: var(--terracotta);
}

.group-stat {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}

.group-stat p { margin: 0; font-size: 0.85rem; color: var(--ink-light); }

.group-stat strong {
  font-family: var(--font-en);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--sea-deep);
  margin-right: 2px;
}

.group-rank { margin-left: auto !important; font-weight: 500; color: var(--sea-text) !important; }

.group-list {
  list-style: none;
  margin: 0 0 6px;
  padding: 0;
  border-top: 1px solid var(--line);
}

.group-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.group-list .member { width: 30px; height: 30px; font-size: 0.8rem; }
.group-list .pt { margin-left: auto; font-weight: 500; color: var(--sea-deep); }
.group-list .is-empty { color: var(--ink-light); font-size: 0.86rem; }

/* グループの選択リスト */
.group-picker {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.group-picker button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--sea-mist);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.group-picker button:hover { background: var(--sea-pale); border-color: var(--sea); }
.group-picker .is-current { background: var(--sea-pale); border-color: var(--sea); }

.group-picker .is-current::after {
  content: "参加中";
  margin-left: auto;
  flex: none;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--sea-deep);
  color: var(--white);
  font-size: 0.68rem;
}

.gp-name { font-size: 0.98rem; font-weight: 500; color: var(--sea-deep); }
.gp-meta { margin-left: auto; font-size: 0.78rem; color: var(--ink-light); }

.rank-list li.is-mine { background: var(--sea-pale); }

/* ---- 案内動画 ---- */
.figure--video { background: #16242f; }

.figure--video video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70vh;
  background: #16242f;
}

.figure--video.is-missing { background: none; }
.figure--video.is-missing video { display: none; }

/* 隠れミッキーの候補地に置く飾り（その週でなければ丸だけ隠す） */
.spot-ornament {
  margin: 16px 0 20px;
  color: var(--champagne);
}

.spot-ornament svg {
  display: block;
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
  height: auto;
  overflow: visible;
}

/* ===========================================================
   起動時のアニメーション
   進行は JavaScript が段階（p1〜p4）で切り替える。
   CSS側は各段階の見た目だけを持つので、端末によって
   途中から始まることがない。
   =========================================================== */
html.is-splashing { overflow: hidden; }

.splash {
  position: fixed;
  inset: 0;
  z-index: 80;
  overflow: hidden;
  background-color: #fdfbf6;
}

/* 最後のフェード（背景・写真・雲を部品ごとに薄くする）は、
   CSSの切り替えではなく app.js の fadeOut() で動かしている。
   LINE内ブラウザでは、CSSの切り替えによるフェードが飛ばされることがあるため。 */

/* 雲の先に見える風景 */
.splash-scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.5);
  will-change: transform, opacity;
  transition: opacity 1.6s ease, transform 2.4s cubic-bezier(0.3, 0.05, 0.15, 1);
}

.splash.p3 .splash-scene { opacity: 1; transform: scale(1); }

.splash-scene img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center; /* 縦長画面でも火山が切れないよう少し右寄り */
}

/* 雲 */
.splash-clouds { position: absolute; inset: 0; }

/* 雲は書き出し済みの画像（assets/cloud-l.webp, cloud-r.webp）で、動かすのは位置と透明度だけ。
   以前はノイズ加工（SVGフィルター）をその場で描いていたが、iPhoneのLINEでは
   その計算の間ずっと画面が固まり、アニメーションが全部飛んでしまっていた。 */
.cloud {
  position: absolute;
  top: -8%;
  width: 66%;
  height: 116%;
  opacity: 0;
  will-change: transform, opacity;
  transform: translateZ(0) scale(1.12);
  backface-visibility: hidden;
  transition: opacity 1s ease, transform 2s cubic-bezier(0.35, 0, 0.12, 1);
}

.cloud img { width: 100%; height: 100%; display: block; object-fit: cover; }
.cloud--l img { object-position: right center; }  /* 割れ目側（内側）を残す */
.cloud--r img { object-position: left center; }

.cloud--l { left: -4%; }
.cloud--r { right: -4%; }

.splash.p2 .cloud { opacity: 1; transform: translateZ(0) scale(1); }

.splash.p3 .cloud--l { opacity: 1; transform: translate3d(-72%, 0, 0) scale(1.08); }
.splash.p3 .cloud--r { opacity: 1; transform: translate3d(72%, 0, 0) scale(1.08); }

/* ロゴ */
.splash-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -46%) scale(0.92);
  text-align: center;
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.9s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.splash.p1 .splash-mark,
.splash.p2 .splash-mark,
.splash.p3 .splash-mark { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.splash.p4 .splash-mark { opacity: 0; transform: translate(-50%, -54%) scale(1.04); }

.splash-mark svg {
  display: block;
  width: 108px;
  height: auto;
  margin: 0 auto 14px;
}

.splash-circles circle {
  fill: var(--champagne);
  transition: fill 1.2s ease;
}

.splash.p2 .splash-circles circle,
.splash.p3 .splash-circles circle,
.splash.p4 .splash-circles circle { fill: var(--sea-deep); }

.splash-sub {
  margin: 0 0 2px;
  font-family: var(--font-en);
  font-size: 0.78rem;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  color: var(--sea-deep);
}

.splash-logo {
  margin: 0;
  font-family: 'Great Vibes', var(--font-script);
  font-size: 2.2rem;
  line-height: 1.1;
  color: var(--sea-deep);
}

.splash-skip {
  position: absolute;
  right: 18px;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  padding: 8px 14px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--sea-text);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.splash.p1 .splash-skip,
.splash.p2 .splash-skip,
.splash.p3 .splash-skip { opacity: 1; }

/* 動きを減らす設定でも、雲の開きだけは見せる（速さは控えめに） */
@media (prefers-reduced-motion: reduce) {
  .splash-scene { transition-duration: 0.6s, 0.6s; }
  .cloud { transition-duration: 0.5s, 0.7s; }
  .splash-mark { transition-duration: 0.4s, 0.4s; }
}

/* ===========================================================
   参加者ランキング（ツムツムの週間ランキング風・上位5人）
   =========================================================== */
.tsum {
  margin: 4px 0 22px;
  padding: 0 8px 10px;
  border-radius: 18px;
  background: linear-gradient(180deg, #7fd3f2 0%, #4fb6e6 100%);
  box-shadow: 0 4px 0 #2d8fc2, 0 8px 18px rgba(20, 70, 110, 0.25);
}

/* 上の白い帯 */
.tsum-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 -8px 8px;
  padding: 12px 18px 10px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(180deg, #ffffff 0%, #e8f5fb 100%);
  border-bottom: 3px solid #2d8fc2;
}

.tsum-head h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #23506e;
}

.tsum-count {
  padding: 2px 10px;
  border-radius: 999px;
  background: #cfe9f6;
  font-size: 0.78rem;
  color: #3f7fa6;
}

/* 紺色の中身。行のあいだは点線 */
.tsum-list {
  list-style: none;
  margin: 0;
  padding: 2px 10px;
  border-radius: 12px;
  background: linear-gradient(180deg, #284d78 0%, #1f3f66 100%);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.25);
}

.tsum-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
}

.tsum-row + .tsum-row,
.tsum-gap + .tsum-row { border-top: 2px dotted rgba(255, 255, 255, 0.28); }

/* 自分の行は金色のふちで光らせる */
.tsum-row.is-me {
  margin: 4px -6px;
  padding: 8px 10px;
  border: 2px solid var(--champagne);
  border-radius: 10px;
  background: rgba(212, 184, 138, 0.14);
}

.tsum-row.is-me + .tsum-row,
.tsum-row + .tsum-row.is-me { border-top-color: transparent; }

/* 順位のメダル（大小3つの円） */
.tsum-medal {
  position: relative;
  flex: none;
  width: 40px;
  height: 34px;
}

.tsum-medal svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.3));
}

.tsum-medal b {
  position: absolute;
  left: 0;
  right: 0;
  top: 11px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 20px;
  color: #ffffff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.tsum-medal.is-gold svg   { fill: #f2c230; }
.tsum-medal.is-silver svg { fill: #c9d3dc; }
.tsum-medal.is-bronze svg { fill: #e09a5a; }
.tsum-medal.is-blue svg   { fill: #6fb6ec; }
.tsum-medal.is-silver b   { color: #5b6b78; text-shadow: none; }

/* アイコン（LINEの写真。ないときは頭文字） */
.tsum-icon {
  position: relative;
  overflow: hidden;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
}

.tsum-icon img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tsum-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.tsum-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.82rem;
  font-weight: 700;
  color: #8fd4ff;
}

.tsum-name em {
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--champagne);
  font-style: normal;
  font-size: 0.68rem;
  color: #3b2e14;
}

.tsum-score {
  font-family: var(--font-ja);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: #ffffff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
  font-variant-numeric: tabular-nums;
}

.tsum-score small {
  margin-left: 4px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  text-shadow: none;
}

.tsum-gap {
  padding: 2px 0 0;
  text-align: center;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.5);
}

.tsum-empty {
  padding: 22px 0;
  text-align: center;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
}

/* 読み込みに失敗したとき（ランキング・クイズ・グループ） */
.load-error {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 20px 8px;
  list-style: none;
  font-size: 0.9rem;
  line-height: 1.7;
  text-align: center;
  color: var(--ink-light);
}

.load-error .btn-outline { background: var(--white); }

/* ランキングは紺色の背景なので、文字を白くする */
.tsum-list .load-error { color: rgba(255, 255, 255, 0.85); }

/* 数を表す数字は、英字フォントでも高さのそろった数字にする（0 が o、1 が I に見えないように） */
.game-find em,
.game-point strong,
.ptsum strong,
.quiz-step,
.hint-count strong,
.qr-score strong {
  font-variant-numeric: lining-nums tabular-nums;
}

/* 質問ではない折りたたみ（個人情報の取り扱い）には Q を付けない */
.faq.is-info summary::before { content: none; }
.faq.is-info summary { padding-left: 2px; }

/* ===========================================================
   ランキングの表示切り替えと、スコアボード（ゲームのリザルト画面風）
   スコアボードの見た目は 2026年10月中旬まで使っていたものを復元した
   =========================================================== */
.rank-style {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 0 0 16px;
  padding: 4px;
  border-radius: 999px;
  background: var(--sea-pale);
}

.rank-style button {
  min-height: 44px;
  border: none;
  border-radius: 999px;
  background: none;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--sea-text);
  cursor: pointer;
}

.rank-style button[aria-pressed="true"] {
  background: var(--white);
  color: var(--sea-deep);
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(44, 95, 127, 0.18);
}

.rank-style button:focus-visible { outline: 2px solid var(--sea-deep); outline-offset: 2px; }

.board-empty {
  margin: 8px 0 24px;
  padding: 20px 16px;
  border-radius: 12px;
  background: var(--ivory);
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--ink-light);
}

/* ---- score board（リザルト画面風） ---- */
.board {
  position: relative;
  margin: 0 0 24px;
  padding: 13px 14px 15px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 0%, #f3d27a 0%, #e5b243 45%, #d79a2c 100%);
  border: 5px solid #f2ead6;
  box-shadow:
    0 0 0 2px #cdbf9c,
    0 4px 18px rgba(80, 60, 20, 0.28),
    inset 0 0 0 2px rgba(255, 255, 255, 0.35);
  text-align: center;
  font-family: 'Mochiy Pop One', var(--font-ja);
}

/* 四隅のネジ */
.screw {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fdfaf0, #cdbf9c 70%, #a4967a);
  box-shadow: inset 0 0 0 1px rgba(120, 100, 60, 0.4);
}

.screw::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 2px;
  background: rgba(120, 100, 60, 0.75);
  transform: translate(-50%, -50%) rotate(-30deg);
  border-radius: 1px;
}

.screw--tl { left: -2px; top: -2px; }

.screw--tr { right: -2px; top: -2px; }

.screw--bl { left: -2px; bottom: -2px; }

.screw--br { right: -2px; bottom: -2px; }

.board-player {
  margin: 0 0 10px;
  font-size: 1.12rem;
  line-height: 1.3;
  color: #fffdf5;
  text-shadow:
    -1px -1px 0 #9a6f18, 1px -1px 0 #9a6f18,
    -1px 1px 0 #9a6f18, 1px 1px 0 #9a6f18,
    0 3px 4px rgba(90, 60, 10, 0.4);
  word-break: break-word;
}

/* 見出しの飾り板 */
.plaque {
  position: relative;
  display: inline-block;
  margin: 0 0 7px;
  padding: 4px 22px;
  border-radius: 7px;
  background: linear-gradient(180deg, #ece3cd 0%, #d9cdb0 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 2px 3px rgba(90, 70, 30, 0.25);
  font-size: 0.72rem;
  line-height: 1.5;
  color: #6d5a2e;
  white-space: nowrap;
}

.plaque span { color: #8a7440; margin-right: 2px; }

.plaque::before,
.plaque::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b5a582;
  transform: translateY(-50%);
}

.plaque::before { left: 9px; }

.plaque::after { right: 9px; }

/* 数字のコマ */
.digits {
  display: flex;
  justify-content: center;
  gap: 3px;
  margin: 0 0 12px;
}

.digits .d,
.digits .sep {
  display: grid;
  place-items: center;
  min-width: 29px;
  padding: 4px 2px 6px;
  border-radius: 5px;
  background: linear-gradient(180deg, #fffdf6 0%, #efe7d2 100%);
  box-shadow:
    inset 0 2px 3px rgba(120, 100, 60, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.5);
  font-size: 1.55rem;
  line-height: 1;
  color: #f0a726;
  text-shadow:
    -1px -1px 0 #8c5a12, 1px -1px 0 #8c5a12,
    -1px 1px 0 #8c5a12, 1px 1px 0 #8c5a12;
}

.digits .sep {
  min-width: 10px;
  padding-top: 10px;
  font-size: 1.05rem;
  color: #d99a2b;
}

.digits .pct {
  display: grid;
  place-items: center;
  padding: 0 4px;
  font-size: 1.5rem;
  color: #fffdf5;
  text-shadow:
    -1px -1px 0 #9a6f18, 1px -1px 0 #9a6f18,
    -1px 1px 0 #9a6f18, 1px 1px 0 #9a6f18;
}

.digits--sm .d { min-width: 25px; font-size: 1.28rem; }

/* ランクの枠 */
.prize {
  margin: 0 0 12px;
  padding: 9px 10px 9px;
  border-radius: 6px;
  background: linear-gradient(180deg, #e0d7c0 0%, #cfc4a6 100%);
  box-shadow:
    inset 0 2px 4px rgba(110, 90, 50, 0.3),
    0 1px 0 rgba(255, 255, 255, 0.45);
}

.prize-art {
  width: 52px;
  height: 52px;
  margin: 0 auto 6px;
  display: grid;
  place-items: center;
  color: #b8860b;
}

.prize-art svg { width: 100%; height: 100%; }

.prize-title {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.4;
  color: #fffdf5;
  text-shadow:
    -1px -1px 0 #7d5d1c, 1px -1px 0 #7d5d1c,
    -1px 1px 0 #7d5d1c, 1px 1px 0 #7d5d1c;
}

.prize-of {
  margin: 6px 0 0;
  font-size: 0.7rem;
  color: #6d5a2e;
}

.board-note {
  margin: -4px 0 0;
  font-size: 0.7rem;
  color: #7d5d1c;
}

.board-next {
  margin: 0 0 10px;
  font-size: 0.7rem;
  line-height: 1.6;
  color: #7d5d1c;
}

.board { transform-origin: top center; }

/* ===========================================================
   素材ファイル（assets/art/*.svg）
   形だけを使い、色はアプリ側で塗る（ふだんは文字の色、--art-paint があればその色）。
   素材の一覧と差し替え方は /design.html にある
   =========================================================== */
svg.art {
  background-color: var(--art-paint, currentColor);
  -webkit-mask: var(--art) center / contain no-repeat;
  mask: var(--art) center / contain no-repeat;
}

/* ===========================================================
   WeddingPhoto（写真タブ）：横にスライドして1枚ずつ見る
   =========================================================== */
.gallery {
  display: flex;
  gap: 10px;
  margin: 0 -20px;          /* 画面の端まで使う（ビューの左右の余白を打ち消す） */
  padding: 4px 20px 6px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 20px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.gallery::-webkit-scrollbar { display: none; }

.gallery li {
  flex: 0 0 82%;
  max-width: 350px;
  scroll-snap-align: center;
}

.gallery button {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: 0;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  background: var(--sea-pale);
  box-shadow: 0 4px 14px rgba(44, 95, 127, 0.16);
  cursor: pointer;
}

.gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery button:focus-visible { outline: 2px solid var(--sea-deep); outline-offset: 2px; }

.gallery-count {
  margin: 10px 0 0;
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--ink-light);
  font-variant-numeric: lining-nums tabular-nums;
}

/* 全画面で大きく見る（ここも横にスライド） */
.gviewer {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(16, 26, 34, 0.96);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.gviewer.is-open { opacity: 1; }

.gviewer-track {
  display: flex;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior: contain;
}

.gviewer-track::-webkit-scrollbar { display: none; }

.gviewer-track li {
  flex: 0 0 100%;
  display: grid;
  place-items: center;
  padding: max(56px, env(safe-area-inset-top, 0px)) 12px max(56px, env(safe-area-inset-bottom, 0px));
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.gviewer-track img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 4px;
  user-select: none;
  -webkit-user-drag: none;
}

.gviewer-count {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(18px, env(safe-area-inset-bottom, 0px));
  margin: 0;
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.85);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.gviewer-btn,
.gviewer-close {
  position: absolute;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.gviewer-btn { top: 50%; transform: translateY(-50%); }
.gviewer-prev { left: max(8px, env(safe-area-inset-left, 0px)); }
.gviewer-next { right: max(8px, env(safe-area-inset-right, 0px)); }
.gviewer-close { top: max(10px, env(safe-area-inset-top, 0px)); right: max(10px, env(safe-area-inset-right, 0px)); font-size: 1.4rem; }
.gviewer-btn:focus-visible, .gviewer-close:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }

/* 指で操作する端末では、矢印ボタンは出さない（スライドで送る） */
@media (hover: none) and (pointer: coarse) {
  .gviewer-btn { display: none; }
}

/* ===========================================================
   キラキラ（さりげなく）
   =========================================================== */
.sparkles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

/* 4本の光の筋をもつ小さな星。外側の要素でぼかしの光、内側で星形 */
.sparkle {
  position: absolute;
  width: var(--s, 6px);
  height: var(--s, 6px);
  margin: calc(var(--s, 6px) / -2) 0 0 calc(var(--s, 6px) / -2);
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 5px rgba(255, 244, 214, 0.7));
  opacity: 0;
  animation: twinkle var(--t, 4s) ease-in-out var(--d, 0s) infinite;
}

.sparkle::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #ffffff;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}

@keyframes twinkle {
  0%, 62%, 100% { opacity: 0; transform: scale(0.3) rotate(0deg); }
  78% { opacity: 0.9; transform: scale(1) rotate(45deg); }
}

/* チケット：数秒に一度、光の帯がすっと流れる（ホログラム風） */
.ticket { position: relative; }

.ticket::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(115deg,
    transparent 38%,
    rgba(255, 255, 255, 0.0) 42%,
    rgba(255, 255, 255, 0.42) 47%,
    rgba(255, 236, 196, 0.30) 49.5%,
    rgba(196, 232, 255, 0.30) 52%,
    rgba(255, 255, 255, 0.0) 57%,
    transparent 62%);
  background-size: 260% 100%;
  background-repeat: no-repeat;
  background-position: 160% 0;
  animation: ticketSheen 7s ease-in-out 1.5s infinite;
}

@keyframes ticketSheen {
  0%, 72% { background-position: 160% 0; }
  100% { background-position: -60% 0; }
}

/* ポイントが入ったときの光の粒 */
.score-pop .burst {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 6px rgba(243, 195, 74, 0.55));
}

.score-pop .burst::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #ffffff;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}

.score-pop .burst.is-gold::before { background: #f0b429; }
.score-pop .burst.is-sky::before { background: #7cc4ef; }
.score-pop .burst.is-champagne::before { background: #e8c98a; }

@media (prefers-reduced-motion: reduce) {
  .sparkle { animation: none; opacity: 0.55; }
  .ticket::after { animation: none; display: none; }
}

/* ---- パールころがし（ミニゲーム） ---- */
.roll { display: flex; flex-direction: column; gap: 10px; }

.roll-hud {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--ink-light);
}

.roll-time { flex: none; font-variant-numeric: lining-nums tabular-nums; }
.roll-time strong { font-family: var(--font-en); font-size: 1.6rem; font-weight: 600; color: var(--sea-deep); margin-right: 2px; }
.roll-time strong.is-low { color: var(--terracotta); }

.roll-stage {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  /* 盤の外は深い海の色にして、盤が傾いたのが見えるようにする */
  background: radial-gradient(circle at 50% 40%, #3f7fa6 0%, #1d3f57 100%);
  box-shadow: 0 0 0 1px #ecdcbc, 0 6px 20px rgba(44, 95, 127, 0.14);
}

/* 指でなぞって遊ぶときに、画面がスクロールしないように */
.roll-board {
  position: absolute;
  left: 50%;
  margin-left: -45%;
  display: block;
  touch-action: none;
  transform-origin: 50% 100%;
  border-radius: 14px;
  box-shadow: 0 0 0 3px var(--champagne), 0 14px 30px rgba(5, 17, 26, 0.45);
}

.roll-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px;
  background: rgba(251, 245, 234, 0.35);
  text-align: center;
}

/* コースが見えるよう、案内は小さなカードにして盤面の上に浮かべる */
.roll-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 290px;
  padding: 18px 18px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 26px rgba(44, 95, 127, 0.2);
}

.roll-cover[hidden] { display: none; }
.roll-cover-title { margin: 0; font-size: 1.35rem; font-weight: 700; letter-spacing: 0.06em; color: var(--sea-deep); }
.roll-cover.is-clear .roll-cover-title { color: var(--gold-text); }
.roll-cover-text { margin: 0 0 6px; font-size: 0.9rem; line-height: 1.8; color: var(--ink); }
.roll-start { min-width: 180px; }

.roll-tiers {
  list-style: none;
  margin: 6px 0 0;
  padding: 4px 14px;
  border-radius: 12px;
  background: var(--ivory);
  border: 1px solid #ecdcbc;
}

.roll-tiers li {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-top: 1px solid #f0e6d2;
  font-size: 0.86rem;
  color: var(--ink);
}

.roll-tiers li:first-child { border-top: none; }
.roll-tiers em { font-style: normal; font-weight: 700; color: var(--gold-text); font-variant-numeric: tabular-nums; }
.roll-note { margin: 0; font-size: 0.78rem; line-height: 1.8; color: var(--ink-light); }
.roll-start { width: auto; min-width: 180px; padding-inline: 36px; }

/* スタートしたときの角度が水平になる、という大事な注意 */
.roll-tip {
  margin: 0 0 4px;
  padding: 9px 11px;
  border-radius: 10px;
  background: var(--ivory);
  border: 1px solid var(--champagne);
  font-size: 0.8rem;
  line-height: 1.7;
  text-align: left;
  color: var(--ink);
}

.roll-tip[hidden] { display: none; }
.roll-tip strong { color: var(--gold-text); }

.roll-count {
  margin: 4px 0;
  font-family: var(--font-en);
  font-size: 3.4rem;
  font-weight: 600;
  line-height: 1;
  color: var(--sea-deep);
}

.roll-count[hidden] { display: none; }

.roll-level {
  flex: none;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--sea-mist);
  border-radius: 999px;
  background: var(--white);
  font-family: inherit;
  font-size: 0.78rem;
  color: var(--sea-text);
  cursor: pointer;
}

.roll-level[hidden] { display: none; }
.roll-note strong { color: var(--gold-text); }

/* 盤を斜めにして枠が低くなったので、案内カードを小さめに */
.roll-card { gap: 6px; padding: 14px 14px 16px; }
.roll-cover-title { font-size: 1.15rem; }
.roll-cover-text { font-size: 0.82rem; line-height: 1.6; margin-bottom: 2px; }
.roll-tip { font-size: 0.74rem; line-height: 1.6; padding: 7px 10px; }
.roll-start { min-height: 44px; padding-block: 10px; }

/* 盤の奥に立てたジャングル（ゴール）。盤より手前に重ね、板の奥の端を隠す */
.roll-jungle {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  filter: drop-shadow(0 6px 8px rgba(5, 17, 26, 0.35));
}

.roll-jungle svg { display: block; width: 100%; height: 100%; }

/* ---- パールころがしの台（木の側板・手前の縁・スコア板） ---- */
.roll-stage {
  /* 台の内側（深い青の壁） */
  background: linear-gradient(180deg, #0f3358 0%, #1a4f80 70%, #12406a 100%);
}

.roll-board { z-index: 1; box-shadow: 0 14px 30px rgba(5, 17, 26, 0.45); border-radius: 6px; }
.roll-jungle { z-index: 2; width: 100%; }

.roll-wall {
  position: absolute;
  z-index: 3;
  bottom: 0;
  width: 9%;
  height: 82%;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 18% at 50% 40%, rgba(95, 160, 110, 0.55), transparent 70%),
    radial-gradient(ellipse 55% 16% at 50% 70%, rgba(130, 110, 170, 0.45), transparent 70%),
    linear-gradient(90deg, #6b4428 0%, #a8713f 55%, #7b4e2c 100%);
  box-shadow: inset 0 0 0 2px rgba(60, 35, 18, 0.5);
}

.roll-wall.is-left { left: 0; border-radius: 0 40px 0 0; clip-path: polygon(0 0, 100% 10%, 100% 100%, 0 100%); }
.roll-wall.is-right { right: 0; border-radius: 40px 0 0 0; clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%); }

.roll-front {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #a8713f 0%, #7b4e2c 60%, #5a3a22 100%);
  border-top: 2px solid #c58a4f;
  color: rgba(251, 245, 234, 0.75);
}

.roll-tilt-hint { width: 84px; height: 28px; }

.roll-score,
.roll-balls {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 6px;
  border-radius: 12px;
  background: linear-gradient(180deg, #8a5a34 0%, #5a3a22 100%);
  border: 2px solid #c58a4f;
  box-shadow: 0 3px 8px rgba(5, 17, 26, 0.4);
  color: #fbf5ea;
  font-variant-numeric: lining-nums tabular-nums;
}

.roll-score { top: 10px; left: 10px; flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.1; }
.roll-score span { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; color: #ecd9ae; }
.roll-score strong { font-family: var(--font-en); font-size: 1.6rem; font-weight: 600; color: #f6d36b; }

.roll-balls { top: 58px; right: 10px; }
.roll-balls span { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; color: #ecd9ae; }
.roll-balls strong { font-family: var(--font-en); font-size: 1.25rem; font-weight: 600; color: #f6d36b; }
.roll-ball-icons { display: flex; gap: 3px; }
.roll-ball-icons i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #c9d2da 45%, #5d6b77 100%);
}
.roll-ball-icons i.is-used { opacity: 0.25; }

.roll-pause {
  position: absolute;
  z-index: 4;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid #fbf5ea;
  background: radial-gradient(circle at 35% 30%, #5aa8e8 0%, #2c6fb4 70%, #1d4f86 100%);
  box-shadow: 0 3px 8px rgba(5, 17, 26, 0.45);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.roll-pause[hidden] { display: none; }
.roll-pause svg { width: 20px; height: 20px; fill: #ffffff; }

.roll-toast {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(5, 17, 26, 0.72);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.06em;
  pointer-events: none;
}

.roll-toast[hidden] { display: none; }
.roll-cover { z-index: 6; }
.roll-board { margin-left: -43%; }

/* ---- パールころがしの台：仕上げ（木目・金の縁取り・面取りの光） ---- */
.roll-stage {
  border-radius: 18px;
  background:
    radial-gradient(ellipse 70% 50% at 50% 45%, rgba(80, 170, 230, 0.25), transparent 70%),
    repeating-radial-gradient(circle at 20% 70%, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 22px),
    linear-gradient(180deg, #0a2a4a 0%, #134a7a 55%, #0e3a63 100%);
  box-shadow: 0 0 0 2px #c58a4f, 0 0 0 5px #6b4428, 0 12px 28px rgba(5, 17, 26, 0.35);
}

/* 側板：木目の上に、紫と緑の大きな葉の絵 */
.roll-wall {
  width: 11%;
  height: 86%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 120'%3E%3Cpath d='M20 110 Q2 70 20 20 Q38 70 20 110Z' fill='%237d5a9e' opacity='.85'/%3E%3Cpath d='M20 108 L20 26' stroke='%23b99ad6' stroke-width='1.2' opacity='.7'/%3E%3Cpath d='M8 118 Q-4 92 12 70 Q22 96 8 118Z' fill='%234f9a62' opacity='.9'/%3E%3Cpath d='M32 116 Q44 96 30 76 Q20 98 32 116Z' fill='%233f8a55' opacity='.9'/%3E%3C/svg%3E") center 38% / 78% auto no-repeat,
    repeating-linear-gradient(92deg, rgba(60, 35, 15, 0.12) 0 2px, transparent 2px 9px),
    linear-gradient(90deg, #5a3a22 0%, #b47a43 45%, #8a5a34 80%, #4a2e17 100%);
  box-shadow: inset 2px 0 0 rgba(255, 220, 170, 0.35), inset -3px 0 6px rgba(0, 0, 0, 0.35);
}

.roll-wall::after {
  /* 内側の金の縁 */
  content: "";
  position: absolute;
  top: 8%;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #f2d58f, #b8862f);
}

.roll-wall.is-left::after { right: 0; }
.roll-wall.is-right::after { left: 0; }

/* 手前の縁：木目・面取り・金のボルト、真ん中に傾ける絵の札 */
.roll-front {
  height: 46px;
  background:
    radial-gradient(circle at 18px 50%, #f2d58f 0 3px, #8a5a2b 3px 5px, transparent 5px),
    radial-gradient(circle at calc(100% - 18px) 50%, #f2d58f 0 3px, #8a5a2b 3px 5px, transparent 5px),
    repeating-linear-gradient(2deg, rgba(60, 35, 15, 0.14) 0 2px, transparent 2px 10px),
    linear-gradient(180deg, #c58a4f 0%, #9a6536 22%, #7b4e2c 70%, #4a2e17 100%);
  border-top: none;
  box-shadow: inset 0 2px 0 rgba(255, 230, 190, 0.55), inset 0 -3px 6px rgba(0, 0, 0, 0.35), 0 -4px 10px rgba(3, 20, 40, 0.45);
  border-radius: 0 0 18px 18px;
}

.roll-tilt-hint {
  width: 96px;
  height: 30px;
  padding: 2px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #5a3a22, #3c2614);
  box-shadow: inset 0 0 0 1.5px #d9a35f, inset 0 2px 4px rgba(0, 0, 0, 0.5);
  color: #fbe6b4;
}

/* スコアと玉の札：木の板に金の二重の縁 */
.roll-score,
.roll-balls {
  background:
    repeating-linear-gradient(90deg, rgba(60, 35, 15, 0.14) 0 2px, transparent 2px 8px),
    linear-gradient(180deg, #b47a43 0%, #7b4e2c 55%, #5a3a22 100%);
  border: 2px solid #f2d58f;
  box-shadow: inset 0 0 0 2px #6b4428, inset 0 3px 0 rgba(255, 230, 190, 0.35), 0 4px 10px rgba(3, 20, 40, 0.5);
}

.roll-score strong,
.roll-balls strong {
  background: linear-gradient(180deg, #fffbe6 0%, #f6d36b 45%, #c98a1c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1.5px 0 #4a2e17);
}

.roll-score strong { font-size: 1.75rem; }

.roll-ball-icons i {
  width: 12px;
  height: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #dfe8ef 40%, #7f93a5 50%, #3e7cb3 75%, #173e60 100%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.roll-pause {
  border: 3px solid #fbf5ea;
  background: radial-gradient(circle at 35% 28%, #9fd4ff 0%, #3b8fd9 40%, #1d5ea3 80%, #133f72 100%);
  box-shadow: inset 0 -3px 5px rgba(0, 0, 0, 0.3), 0 0 0 2px #2c5f7f, 0 4px 10px rgba(3, 20, 40, 0.5);
}

.roll-toast {
  background: linear-gradient(180deg, rgba(90, 58, 34, 0.94), rgba(60, 38, 20, 0.94));
  border: 2px solid #f2d58f;
  color: #fbe6b4;
}

/* ジャングルと水の境目に、やわらかい影を落とす */
.roll-jungle::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -14px;
  height: 16px;
  background: linear-gradient(180deg, rgba(3, 20, 40, 0.5), rgba(3, 20, 40, 0));
  pointer-events: none;
}

/* スタート・一時停止のカードも台に合わせる（羊皮紙に金の縁） */
.roll-cover { background: rgba(3, 20, 40, 0.35); }
.roll-card {
  background: linear-gradient(180deg, #fffaf0 0%, #f6ead2 100%);
  border: 2px solid #d9a35f;
  box-shadow: inset 0 0 0 3px #fffaf0, inset 0 0 0 4px rgba(184, 148, 90, 0.5), 0 10px 26px rgba(3, 20, 40, 0.45);
}
.roll-cover-title { color: #5a3a22; }
.roll-cover.is-clear .roll-cover-title { color: #a86b12; }
.roll-cover-text { color: #4a3a2a; }
.roll-start {
  background: linear-gradient(180deg, #f6d36b 0%, #d9a035 55%, #b07a1c 100%);
  color: #3c2614;
  border: 2px solid #8a5a2b;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.55), 0 3px 0 #6b4428;
  font-weight: 700;
}
.roll-start:active { transform: translateY(2px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.55), 0 1px 0 #6b4428; }


/* ---- パールころがし：3Dの台（roll3d.js）を使うとき ----
   2Dの盤・ジャングル・側板・手前の縁は隠し、3Dの絵を台いっぱいに敷く。
   SCORE・BALLS の札、一時停止、案内の札（.roll-cover）は今までどおり3Dの上に重ねる */
.roll-stage.is-3d { background: #e9d9bb; }
.roll-stage.is-3d > .roll-board,
.roll-stage.is-3d > .roll-jungle,
.roll-stage.is-3d > .roll-wall,
.roll-stage.is-3d > .roll-front { display: none; }
.roll-3d {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;   /* 指でなぞって遊ぶときに、画面がスクロールしないように */
}
/* 一時停止は押せる範囲を44px以上に（画面の決まり）。2Dの台でも同じ */
.roll-pause { width: 44px; height: 44px; }
/* 確かめ用の表示（?rollfps=1。テスト環境と手元だけ）：台の左下に、コマ数・画質・コース */
.roll-fps {
  position: absolute;
  z-index: 5;
  left: 8px;
  bottom: 8px;
  margin: 0;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  font: 11px/1.4 ui-monospace, Menlo, Consolas, monospace;
  pointer-events: none;
}

/* ===========================================================
   ホーム画面のリデザイン（2026-10）
   参考デザインに合わせた、上品で幻想的なフェアリーテイルの見た目。
   既存のルールは消さずに、ここで上書きする（後ろに書いたほうが勝つ）。
   どれも .app の中だけに効くようにして、受付端末・管理画面には届かないようにしている。
   ヒーロー・カウントダウン・タブはどの画面にも出るので、全画面で同じ見た目にし、
   ヒーローを大きく見せるのはホームのときだけ（.app[data-view="home"]）。
   =========================================================== */
.app {
  --home-bg: #fbf8f2;
  --navy: #1f4466;
  --sky: #3b8fd4;
  --sky-soft: #eaf3fb;
  --card-line: rgba(31, 68, 102, 0.08);
  --card-shadow: 0 10px 28px rgba(31, 68, 102, 0.08), 0 2px 6px rgba(31, 68, 102, 0.05);
}

/* アイボリーの地はホームだけ（ほかの画面は今までどおり白） */
.app[data-view="home"] { background: var(--home-bg); }

/* ---- ヒーロー：写真を大きく、下は波の形でアイボリーに溶かす ---- */
.app .app-hero { aspect-ratio: 390 / 250; }
.app[data-view="home"] .app-hero { aspect-ratio: 390 / 330; }

.app .hero-photo { object-position: 62% 68%; }

/* 写真の上の隠れミッキーは、写真の中ほどに置く（下の文字やタイトルと重ならないように） */
.app .hero-map {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  top: 6%;
  height: auto;
  aspect-ratio: 390 / 210;
}

/* 上は空になじむ光、下は波の形のアイボリー */
.app .app-hero::after {
  z-index: 2;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 390 60' preserveAspectRatio='none'%3E%3Cpath d='M0 26 C 70 6 140 44 210 30 S 330 6 390 22 V60 H0Z' fill='%23fbf8f2'/%3E%3Cpath d='M0 26 C 70 6 140 44 210 30 S 330 6 390 22' fill='none' stroke='%23e2c88f' stroke-width='1.2' opacity='.7'/%3E%3C/svg%3E") bottom / 100% 46px no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 28%, rgba(251, 248, 242, 0) 55%, rgba(251, 248, 242, 0.92) 92%);
}

/* ホーム以外は地が白なので、波も白に */
.app:not([data-view="home"]) .app-hero::after {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 390 60' preserveAspectRatio='none'%3E%3Cpath d='M0 26 C 70 6 140 44 210 30 S 330 6 390 22 V60 H0Z' fill='%23ffffff'/%3E%3Cpath d='M0 26 C 70 6 140 44 210 30 S 330 6 390 22' fill='none' stroke='%23e2c88f' stroke-width='1.2' opacity='.7'/%3E%3C/svg%3E") bottom / 100% 46px no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 28%, rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, 0.92) 92%);
}

/* 両わきの下に、やわらかくぼけた花の光 */
.app .app-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 4% 78%, rgba(255, 255, 255, 0.85) 0 3%, rgba(255, 236, 240, 0.5) 6%, transparent 14%),
    radial-gradient(circle at 12% 88%, rgba(255, 246, 225, 0.8) 0 2%, transparent 8%),
    radial-gradient(circle at 96% 70%, rgba(255, 255, 255, 0.8) 0 3%, rgba(240, 232, 255, 0.45) 6%, transparent 13%),
    radial-gradient(circle at 88% 84%, rgba(255, 240, 246, 0.75) 0 2%, transparent 8%);
  filter: blur(1.5px);
}

.app .hero-badge { display: none; }   /* 日付はカウントダウンの上に出す */

/* ふたりの名前のタイトル */
.hero-title {
  position: absolute;
  z-index: 3;
  top: 7%;
  left: 18px;
  right: 70px;
  color: #ffffff;
  text-shadow: 0 1px 10px rgba(20, 60, 100, 0.45);
  pointer-events: none;
}

.hero-title p { margin: 0; }

.ht-eyebrow {
  font-family: var(--font-en);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  opacity: 0.95;
}

.ht-names {
  font-family: 'Great Vibes', var(--font-script);
  font-size: clamp(2rem, 10.5vw, 2.6rem);
  line-height: 1.15;
  white-space: nowrap;
}

.ht-amp { font-size: 0.8em; margin: 0 0.05em; }

.ht-sub {
  font-family: var(--font-en);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.3em;
}

/* 細い線と、まん中に小さな星 */
.ht-rule {
  position: relative;
  display: block;
  width: 62%;
  height: 1px;
  margin-top: 8px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0));
}

.ht-rule::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  transform: translate(-50%, -50%);
  background: #ffffff;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}

/* ホーム以外では、写真が低いのでタイトルも小さく */
.app:not([data-view="home"]) .hero-title { top: 9%; }
.app:not([data-view="home"]) .ht-names { font-size: clamp(1.6rem, 8.4vw, 2.1rem); }
.app:not([data-view="home"]) .ht-sub,
.app:not([data-view="home"]) .ht-rule { display: none; }

/* 右上のメニュー：すりガラスの丸いボタン */
.app .menu-btn {
  z-index: 4;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 14px rgba(20, 60, 100, 0.18);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--navy);
}

.app .menu-btn svg { width: 22px; height: 22px; }

/* ---- カウントダウン：ヒーローの下端に重ねて、左寄せで ---- */
.app .countdown {
  position: relative;
  z-index: 3;
  margin-top: -64px;
  padding: 0 20px 12px;
  text-align: left;
  background: none;
  border-bottom: none;
}

.cd-date {
  margin: 0 0 2px;
  font-family: var(--font-en);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--navy);
}

.app .cd-row { justify-content: flex-start; align-items: baseline; gap: 2px 12px; }

.app .cd-label {
  font-family: 'Great Vibes', var(--font-script);
  font-size: 1.75rem;
  line-height: 1.1;
  color: #a07a3c;
}

.app .cd-main { font-size: 0.95rem; color: var(--navy); }

.app .cd-main strong {
  font-size: 1.95rem;
  font-weight: 600;
  color: #a07a3c;
  margin: 0 4px;
}

.app .cd-sub { margin-top: 2px; font-size: 0.78rem; color: var(--ink-light); }

/* 当日：帯の色は変えず、文字だけ当日の色に */
.app .countdown.is-today { background: none; border-bottom: none; }
.app .countdown.is-today .cd-label { color: var(--sky); }
.app .countdown.is-today .cd-main { font-size: 1.05rem; color: var(--navy); }

.app .cd-qr {
  max-width: none;
  margin: 10px 0 2px;
  background: linear-gradient(180deg, #3f8fd0 0%, #2a6fae 100%);
  box-shadow: 0 6px 16px rgba(42, 111, 174, 0.3);
}

/* ---- タブ：浮いたカード。選んでいるタブは青い丸と下線 ---- */
.app .tabbar {
  top: 8px;
  margin: 0 14px;
  padding: 10px 4px 8px;
  border: 1px solid var(--card-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--card-shadow);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.app .tab {
  position: relative;
  padding: 0 0 9px;
  border-bottom: none;
}

/* アイコンの後ろの丸 */
.app .tab::before {
  content: "";
  display: block;
  width: 44px;
  height: 44px;
  margin: 0 auto;
  border-radius: 50%;
  background: #f1f5f9;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.app .tab svg {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 24px;
  height: 24px;
  margin-left: -12px;
  --art-paint: #5d6d79;
}

.app .tab-label { margin-top: 6px; font-size: 0.76rem; font-weight: 500; color: #4f5f6c; }

/* 選んでいるタブの下線 */
.app .tab::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--sky);
  transform: translateX(-50%);
  transition: width 0.2s ease;
}

.app .tab:hover svg { --art-paint: var(--sky); }
.app .tab:hover .tab-label { color: var(--navy); }

.app .tab.is-active::before {
  background: linear-gradient(180deg, #5aa8e8 0%, #2f7fc6 100%);
  box-shadow: 0 6px 14px rgba(47, 127, 198, 0.35);
}

.app .tab.is-active svg { --art-paint: #ffffff; }
.app .tab.is-active .tab-label { color: var(--navy); font-weight: 700; }
.app .tab.is-active::after { width: 34px; }

/* タブが高くなったので、リンクで飛んだ先の見出しが隠れないように */
.app .app-body [id] { scroll-margin-top: 112px; }

.app .app-body { padding-top: 18px; }

/* ---- プロフィールとグループのカード ---- */
.home-card {
  margin: 0 0 26px;
  padding: 18px 18px 16px;
  border: 1px solid var(--card-line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--card-shadow);
}

.home-card .user-row { gap: 14px; padding: 0 0 16px; border-bottom: 1px solid #eef1f4; }

.home-card .avatar {
  width: 60px;
  height: 60px;
  box-shadow: 0 0 0 3px #ffffff, 0 0 0 4px #e8eef3, 0 4px 12px rgba(31, 68, 102, 0.16);
}

.user-text { flex: 1; min-width: 0; }
.home-card .user-name { font-size: 1.24rem; color: var(--navy); }
.user-sub { margin: 2px 0 0; font-size: 0.8rem; color: var(--ink-light); }

/* ユーザー設定：歯車と矢印の付いた、丸い枠のボタン */
.home-card .user-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 10px 6px 12px;
  border: 1px solid #dfe8f0;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(31, 68, 102, 0.06);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--navy);
}

.home-card .user-link:hover { text-decoration: none; background: var(--sky-soft); }
.user-link-gear { width: 17px; height: 17px; --art-paint: var(--sky); }
.user-link-chev { width: 12px; height: 12px; --art-paint: #8aa0b2; }

/* 押せる範囲を44pxに（見た目は40px） */
.home-card .user-link { position: relative; }
.home-card .user-link::after { content: ""; position: absolute; inset: -2px; }

.home-card .group { margin: 14px 0 0; }
.home-card .group-head { align-items: center; margin-bottom: 12px; }
.group-icon { flex: none; width: 22px; height: 22px; --art-paint: #7fa6c6; }
.home-card .group-name { font-size: 1.02rem; color: var(--navy); }
.home-card .group-link { font-size: 0.82rem; }

/* グループがまだないときは「＋ グループを追加」、あるときは丸い＋だけ */
.home-card .group-add {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: auto;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: none;
  font-family: inherit;
  color: var(--sea-text);
}

.home-card .group-add:hover { background: none; }
.home-card .group-add::after { inset: 0; }

.group-add-plus {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1.5px dashed #a9c3d8;
  border-radius: 50%;
  font-size: 1.1rem;
  transition: background 0.18s ease;
}

.home-card .group-add:hover .group-add-plus { background: var(--sky-soft); }
.group-add-label { font-size: 0.9rem; color: #6d8aa3; }
.member ~ .group-add .group-add-label { display: none; }

/* ---- 見出し（チケットのアイコン付き） ---- */
.block-title--ticket {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.18rem;
  color: var(--navy);
}

.block-title--ticket svg { flex: none; width: 30px; height: 22px; --art-paint: #4f9fe0; }

/* ---- ウェディングチケット：招待状のように ---- */
.app .ticket {
  position: relative;
  margin-bottom: 18px;
  border: 1px solid rgba(184, 148, 90, 0.35);
  border-radius: 20px;
  box-shadow: 0 0 0 4px #ffffff, 0 0 0 5px rgba(184, 148, 90, 0.18), var(--card-shadow);
}

/* 上は写真の空と港。下の縁は白い波 */
.app .ticket-head {
  height: 108px;
  background:
    linear-gradient(180deg, rgba(120, 190, 240, 0.55) 0%, rgba(120, 190, 240, 0.1) 55%, rgba(255, 255, 255, 0) 100%),
    url(/assets/hero-disneysea.jpg) 50% 66% / cover no-repeat,
    #7ec3ef;
}

.app .ticket-head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 40px;
  z-index: 1;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 390 40' preserveAspectRatio='none'%3E%3Cpath d='M0 14 C 90 40 180 6 260 22 S 360 30 390 8 V40 H0Z' fill='%23ffffff'/%3E%3Cpath d='M0 14 C 90 40 180 6 260 22 S 360 30 390 8' fill='none' stroke='%23d9b978' stroke-width='1.2'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}

.app .ticket-wave { opacity: 0.55; }
.app .ticket-logo { z-index: 2; top: 12px; bottom: auto; right: 16px; }
.app .logo-our { font-size: 0.5rem; }
.app .logo-fairytale { font-size: 0.58rem; }
.app .logo-weddings { font-size: 1.5rem; }
.app .ticket-bubbles { z-index: 2; left: 16px; top: 12px; bottom: auto; }

.app .ticket-body { position: relative; padding: 6px 20px 16px; }

.app .ticket-type {
  display: inline-block;
  margin: 0 0 8px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--sky-soft);
  font-size: 0.78rem;
  color: #2a6fae;
}

.app .ticket-name { font-size: 1.3rem; color: var(--navy); padding-right: 24px; }
.app .ticket-grade { font-size: 1.15rem; color: var(--navy); margin-bottom: 12px; }

/* 日付 ｜ 時間 */
.app .ticket-when {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  margin: 0 0 14px;
}

.app .ticket-when p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--navy);
}

.app .ticket-when svg { flex: none; width: 22px; height: 22px; --art-paint: #4f9fe0; }

.tw-date { padding-right: 14px; margin-right: 14px !important; border-right: 1px solid #dfe6ec; }
.tw-date strong { font-size: 1.12rem; font-weight: 700; letter-spacing: 0.01em; }
.tw-dow { font-size: 0.85rem; }
.tw-time span { font-size: 0.86rem; line-height: 1.45; }

.ticket-chev {
  position: absolute;
  right: 16px;
  top: 40%;
  width: 18px;
  height: 18px;
  --art-paint: #8aa0b2;
}

/* 下の帯：チケット番号と QR表示 */
.ticket-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid #e3ecf3;
  border-radius: 14px;
  background: #f5f9fc;
}

.tf-icon { flex: none; width: 20px; height: 20px; --art-paint: #8aa0b2; }

.app .ticket-foot .ticket-no {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: none;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app .ticket-foot .ticket-tap {
  flex: none;
  margin: 0;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--navy);
}

.app .ticket-foot .ticket-tap svg { width: 18px; height: 18px; }
.app .ticket-stamp { margin: 0 0 12px; }

/* 受付が済んだら、写真に金色を重ねる */
.app .ticket.is-checked .ticket-head {
  background:
    linear-gradient(180deg, rgba(236, 217, 174, 0.7) 0%, rgba(212, 184, 138, 0.45) 60%, rgba(255, 255, 255, 0) 100%),
    url(/assets/hero-disneysea.jpg) 50% 66% / cover no-repeat,
    #d4b88a;
}

/* ---- その下のショートカットも、同じ角丸と影でそろえる ---- */
.app .tile { border-radius: 18px; border: 1px solid var(--card-line); box-shadow: 0 4px 12px rgba(31, 68, 102, 0.06); }

@media (prefers-reduced-motion: reduce) {
  .app .tab::before, .app .tab::after { transition: none; }
}

/* 名前は2行まで折り返す（長い名前でも切れないように）。ユーザー設定のボタンは小さめに */
.home-card .user-name {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.3;
  font-size: 1.16rem;
}

.home-card .user-link { gap: 5px; padding: 6px 8px 6px 10px; font-size: 0.78rem; }

/* チケット：時刻は折り返さない。矢印は名前の行の右に */
.tw-time span { white-space: nowrap; }
.tw-date { padding-right: 12px; margin-right: 12px !important; }
.ticket-chev { top: 46px; }

/* 幅のせまい端末では、日付と時刻を上下に並べる */
@media (max-width: 359px) {
  .app .ticket-when { flex-direction: column; align-items: flex-start; gap: 8px; }
  .tw-date { padding-right: 0; margin-right: 0 !important; border-right: none; }
  .home-card .user-link span { display: none; }   /* 歯車と矢印だけ（押せる範囲は44px） */
  .home-card .user-link { padding: 6px 10px; }
}

/* 名前の欄を広く：カードの余白・アバター・「さん」を少し小さく。「さん」は途中で折らない */
.home-card { padding: 16px 16px 14px; }
.home-card .avatar { width: 56px; height: 56px; }
.home-card .user-row { gap: 12px; }
.home-card .user-name { font-size: 1.12rem; }
.home-card .user-name .suffix { font-size: 0.85em; white-space: nowrap; }

/* 長い名前は、姓と名のあいだのスペースで折り返す */
.home-card .user-name { word-break: keep-all; overflow-wrap: anywhere; }

/* 日付とカウントダウンの下に、白い靄を敷いて読みやすく（参考デザインのように） */
.app .countdown::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -20px;
  right: 10%;
  top: -18px;
  bottom: -6px;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 62% at 34% 58%, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.72) 45%, rgba(255, 255, 255, 0) 100%);
  filter: blur(6px);
}

.app .cd-date,
.app .cd-label,
.app .cd-main { text-shadow: 0 0 10px rgba(255, 255, 255, 0.95), 0 0 2px rgba(255, 255, 255, 0.9); }

/* 波の金の線は、文字より下を通す（左は低く、右へゆるく上がる） */
.app .app-hero::after {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 390 60' preserveAspectRatio='none'%3E%3Cpath d='M0 46 C 90 52 170 50 250 36 S 350 14 390 18 V60 H0Z' fill='%23fbf8f2'/%3E%3Cpath d='M0 46 C 90 52 170 50 250 36 S 350 14 390 18' fill='none' stroke='%23e2c88f' stroke-width='1.2' opacity='.7'/%3E%3C/svg%3E") bottom / 100% 46px no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 28%, rgba(251, 248, 242, 0) 55%, rgba(251, 248, 242, 0.92) 92%);
}

.app:not([data-view="home"]) .app-hero::after {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 390 60' preserveAspectRatio='none'%3E%3Cpath d='M0 46 C 90 52 170 50 250 36 S 350 14 390 18 V60 H0Z' fill='%23ffffff'/%3E%3Cpath d='M0 46 C 90 52 170 50 250 36 S 350 14 390 18' fill='none' stroke='%23e2c88f' stroke-width='1.2' opacity='.7'/%3E%3C/svg%3E") bottom / 100% 46px no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 28%, rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, 0.92) 92%);
}

/* カウントダウンは写真に重なるので、タップは下（写真の隠れミッキー）へ通す。当日のQRボタンだけは押せるように */
.app .countdown { pointer-events: none; }
.app .countdown .cd-qr { pointer-events: auto; }

/* ホーム以外は写真が低いので、隠れミッキーを上に寄せて、日付の文字と重ならないように */
.app:not([data-view="home"]) .hero-map { top: -10%; }

/* ===========================================================
   ホームの仕上げ・第1段階（2026-10）
   写真の見せ方・左右の線・角丸と影の決まり・文字の読みやすさ・タブの高さ。
   新しい変数は角丸の2つだけ。色と影は、前の段で .app に置いた変数を使う
   =========================================================== */
.app {
  --radius-card: 20px;    /* カード（タブ・プロフィール・チケット） */
  --radius-inner: 14px;   /* カードの中や、小さなカード（帯・タイル・ゲーム欄） */
}

/* ---- 1. 写真：白いフェードは下の2割だけ、濃さも控えめに。右端の白いぼけは取る ---- */
.app .app-hero::after {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 390 60' preserveAspectRatio='none'%3E%3Cpath d='M0 46 C 90 52 170 50 250 36 S 350 14 390 18 V60 H0Z' fill='%23fbf8f2'/%3E%3Cpath d='M0 46 C 90 52 170 50 250 36 S 350 14 390 18' fill='none' stroke='%23e2c88f' stroke-width='1.2' opacity='.7'/%3E%3C/svg%3E") bottom / 100% 46px no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 24%, rgba(251, 248, 242, 0) 74%, rgba(251, 248, 242, 0.55) 94%);
}

.app:not([data-view="home"]) .app-hero::after {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 390 60' preserveAspectRatio='none'%3E%3Cpath d='M0 46 C 90 52 170 50 250 36 S 350 14 390 18 V60 H0Z' fill='%23ffffff'/%3E%3Cpath d='M0 46 C 90 52 170 50 250 36 S 350 14 390 18' fill='none' stroke='%23e2c88f' stroke-width='1.2' opacity='.7'/%3E%3C/svg%3E") bottom / 100% 46px no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 24%, rgba(255, 255, 255, 0) 74%, rgba(255, 255, 255, 0.55) 94%);
}

/* 花のぼけは左下に小さく1つだけ（右端の白いかたまりは汚れに見えるので出さない） */
.app .app-hero::before {
  background:
    radial-gradient(circle at 3% 86%, rgba(255, 255, 255, 0.7) 0 2%, rgba(255, 236, 240, 0.35) 5%, transparent 10%);
}

/* 文字の下の靄は、文字のまわりにだけ（水面の色を残す） */
.app .countdown::before {
  left: -16px;
  right: 34%;
  top: -10px;
  bottom: 0;
  background: radial-gradient(ellipse 72% 60% at 30% 60%, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0) 100%);
  filter: blur(8px);
}

/* ---- 2. 左右の線をそろえる：タブ・カード・チケットの外側の線を、画面の端から16pxに ---- */
.app .tabbar { margin: 0 16px; }
/* 本文の左右16pxはホームだけ（ほかの画面は、写真の横スクロールなどが20pxを前提にしているので20pxのまま） */
.app[data-view="home"] .app-body { padding-left: 16px; padding-right: 16px; }
.app .countdown { padding-left: 22px; padding-right: 16px; }

/* ---- 3. 角丸・影・枠線の決まり：カードは20px、中は14px、丸い札は999px。影は1種類 ---- */
.app .tabbar,
.home-card { border-radius: var(--radius-card); }

/* チケットは二重の輪をやめ、内側に細い金の線を1本（招待状らしさは残す） */
.app .ticket {
  border: 1px solid var(--card-line);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
}

.app .ticket::before {
  content: "";
  position: absolute;
  inset: 5px;
  z-index: 3;
  border: 1px solid rgba(184, 148, 90, 0.4);
  border-radius: calc(var(--radius-card) - 5px);
  pointer-events: none;
}

.app .ticket-foot { border-radius: var(--radius-inner); }

.app .game-row {
  border: 1px solid var(--card-line);
  border-radius: var(--radius-inner);
  background: #ffffff;
  box-shadow: var(--card-shadow);
}

.app .tile {
  border-radius: var(--radius-inner);
  border: 1px solid var(--card-line);
  box-shadow: var(--card-shadow);
}

/* ---- 4. 文字：数字は高さのそろった形に。チケットは 名前 → 日時 → 区分 の順に強弱 ---- */
.app .cd-main strong,
.app .cd-date,
.app .game-row em,
.app .game-row strong {
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

.app .cd-date { font-size: 0.84rem; letter-spacing: 0.22em; }
.app .cd-main strong { letter-spacing: 0.04em; }

/* 写真の上の小さな英字は、少し大きく、字間を少し詰める（スマホで読める大きさに） */
.app .ht-eyebrow { font-size: 0.72rem; letter-spacing: 0.26em; }
.app .ht-sub { font-size: 0.7rem; letter-spacing: 0.2em; }

.app .ticket-name { font-size: 1.32rem; letter-spacing: 0.02em; }
.app .ticket-grade {
  display: inline-block;
  margin: 2px 0 14px;
  padding: 2px 10px;
  border: 1px solid #dfe6ec;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.5;
  color: #4f6273;
}

.app .ticket-type { margin-bottom: 10px; }
.tw-date strong { font-size: 1.08rem; }
.tw-time span { color: var(--navy); }

.app .ticket-foot .ticket-no { color: #4f6273; letter-spacing: 0.06em; }

/* 薄すぎた文字とアイコンを、実際のスマホで見える濃さに */
.group-add-label { color: #5b7890; }
.group-icon { --art-paint: #5b87ad; }
.ticket-chev { --art-paint: #6f879b; }
.user-link-chev { --art-paint: #6f879b; }

/* ---- 5. タブを低く（約95px → 約78px）、縦の間隔を 8 の倍数に ---- */
.app .tabbar { padding: 8px 4px 6px; }
.app .tab { padding-bottom: 8px; }
.app .tab::before { width: 40px; height: 40px; }
.app .tab svg { top: 9px; width: 22px; height: 22px; margin-left: -11px; }
.app .tab-label { margin-top: 4px; font-size: 0.74rem; }
.app .tab.is-active::after { width: 28px; }
.app .app-body [id] { scroll-margin-top: 100px; }

.app .countdown { padding-bottom: 16px; }
.app .app-body { padding-top: 20px; }
.home-card { margin-bottom: 32px; }
.app .block-title--ticket { margin-bottom: 14px; }
.app .ticket { margin-bottom: 24px; }
.app .game { margin-bottom: 24px; }
.app .ticket-actions { gap: 12px; }

/* 日付の行まで靄を広げる（右側の水面は残す） */
.app .countdown::before {
  top: -24px;
  right: 30%;
  background: radial-gradient(ellipse 74% 66% at 30% 52%, rgba(251, 248, 242, 0.95) 0%, rgba(251, 248, 242, 0.78) 45%, rgba(251, 248, 242, 0) 100%);
  filter: blur(10px);
}
.app:not([data-view="home"]) .countdown::before {
  background: radial-gradient(ellipse 74% 66% at 30% 52%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.78) 45%, rgba(255, 255, 255, 0) 100%);
}

/* ===========================================================
   「Wedding Day あと121日」の後ろの線と曲線（2026-10 微調整）
   ・金の線を写真の波から外し、カウントダウンの後ろに別に描く。
     文字のある左 300px までは消し、その先でふわっと出す（文字の右端「日」は約290px）
   ・アイボリーの曲線は、上がり始めを文字より右へずらす
   ・文字の後ろのアイボリーの靄を「日」の先まで広げる
   =========================================================== */
.app .app-hero::after {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 390 60' preserveAspectRatio='none'%3E%3Cpath d='M0 46 C 110 52 230 52 300 44 S 370 18 390 16 V60 H0Z' fill='%23fbf8f2'/%3E%3C/svg%3E") bottom / 100% 46px no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 24%, rgba(251, 248, 242, 0) 74%, rgba(251, 248, 242, 0.55) 94%);
}

.app:not([data-view="home"]) .app-hero::after {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 390 60' preserveAspectRatio='none'%3E%3Cpath d='M0 46 C 110 52 230 52 300 44 S 370 18 390 16 V60 H0Z' fill='%23ffffff'/%3E%3C/svg%3E") bottom / 100% 46px no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 24%, rgba(255, 255, 255, 0) 74%, rgba(255, 255, 255, 0.55) 94%);
}

/* 金の線：写真の下の端と同じ位置（カウントダウンの上から18px、高さ46px）に、文字の後ろで描く */
.app .countdown::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  top: 18px;
  height: 46px;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 390 60' preserveAspectRatio='none'%3E%3Cpath d='M0 46 C 110 52 230 52 300 44 S 370 18 390 16' fill='none' stroke='%23e2c88f' stroke-width='1.2' opacity='.75'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, transparent 300px, #000 344px);
  mask-image: linear-gradient(90deg, transparent 0, transparent 300px, #000 344px);
}

/* 文字の後ろのアイボリーの靄を「日」の先まで（ごく薄く、写真とのつながりは残す） */
.app .countdown::before {
  right: auto;
  width: 360px;
  background: radial-gradient(ellipse 62% 64% at 42% 54%, rgba(251, 248, 242, 0.92) 0%, rgba(251, 248, 242, 0.7) 52%, rgba(251, 248, 242, 0) 100%);
}

.app:not([data-view="home"]) .countdown::before {
  background: radial-gradient(ellipse 62% 64% at 42% 54%, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.7) 52%, rgba(255, 255, 255, 0) 100%);
}

/* 当日・お開き後は文字が長い（右端が最大で約352px）ので、線はさらに右から出す */
.app .countdown.is-today::after,
.app .countdown.is-done::after {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, transparent 360px, #000 400px);
  mask-image: linear-gradient(90deg, transparent 0, transparent 360px, #000 400px);
}

/* ===========================================================
   チケットの仕上げ・第1段階（2026-10）
   1. 写真を金の内枠の内側に収め、額縁のように。写真の下の波は白い細線に
   2. 「QR表示」を押せるボタンの見た目に。名前の右の矢印はなくす
      （ボタンは <p> のまま。チケット全体の1つのクリックでQRが開くので、二重には開かない）
   3. 「OUR」「FAIRYTALE」を読める大きさにし、後ろに控えめな紺の影
   =========================================================== */

/* ---- 1. 金の内枠（カードの縁から5px）の内側に写真を収める ---- */
.app .ticket::before {
  inset: 5px;
  border-color: rgba(184, 148, 90, 0.5);
  border-radius: calc(var(--radius-card) - 5px);
}

.app .ticket-head {
  margin: 6px 6px 0;
  border-radius: calc(var(--radius-card) - 6px) calc(var(--radius-card) - 6px) 0 0;
  background-position: 0 0, 50% 61%, 0 0;   /* 430px でも山の頂上が切れないよう少しだけ上に */
}

.app .ticket.is-checked .ticket-head { background-position: 0 0, 50% 61%, 0 0; }

/* 写真の下の波：金をやめて、白い細い線に */
.app .ticket-head::after {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 390 40' preserveAspectRatio='none'%3E%3Cpath d='M0 14 C 90 40 180 6 260 22 S 360 30 390 8 V40 H0Z' fill='%23ffffff'/%3E%3Cpath d='M0 14 C 90 40 180 6 260 22 S 360 30 390 8' fill='none' stroke='%23ffffff' stroke-width='1' opacity='.9'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}

/* 写真を小さくした分、本文の左右をそろえる */
.app .ticket-body { padding: 10px 20px 18px; }

/* ---- 2. QR表示のボタンとチケット番号 ---- */
.app .ticket-chev { display: none; }
.app .ticket-name { padding-right: 0; }

.ticket-foot {
  min-height: 48px;
  padding: 6px 6px 6px 12px;
}

.app .ticket-foot .ticket-no {
  white-space: normal;          /* 入りきらないときは「-」のところで2行に（小さくはしない） */
  overflow: visible;
  text-overflow: clip;
  line-height: 1.35;
  letter-spacing: 0.04em;
}

.app .ticket-foot .ticket-tap {
  flex: none;
  gap: 6px;
  height: 36px;
  padding: 0 14px 0 12px;
  border: 1px solid #9cc7ea;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(42, 111, 174, 0.12);
  font-size: 0.875rem;          /* 14px */
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #2a6fae;
  transition: background 0.18s ease;
}

.app .ticket-foot .ticket-tap svg { width: 18px; height: 18px; --art-paint: #2a6fae; }
.app .ticket:hover .ticket-tap { background: var(--sky-soft); }

/* せまい端末では、番号の前のアイコンを省いて番号の幅を空ける */
@media (max-width: 359px) {
  .app .tf-icon { display: none; }
  .app .ticket-body { padding-left: 16px; padding-right: 16px; }
}

/* ---- 3. ロゴ：読める大きさに、後ろに控えめな紺の影 ---- */
.app .ticket-logo {
  top: 10px;
  right: 14px;
  padding: 4px 8px 2px;
  text-shadow: 0 1px 2px rgba(15, 40, 70, 0.6), 0 0 10px rgba(15, 40, 70, 0.45);
}

/* 文字の後ろに、ごく淡い紺のぼかし */
.app .ticket-logo::before {
  content: "";
  position: absolute;
  inset: -2px -6px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(15, 40, 70, 0.32) 0%, rgba(15, 40, 70, 0) 70%);
  pointer-events: none;
}

.app .logo-our { font-size: 0.625rem; letter-spacing: 0.3em; text-indent: 0.3em; }        /* 8px → 10px */
.app .logo-fairytale { font-size: 0.69rem; letter-spacing: 0.18em; text-indent: 0.18em; } /* 9.3px → 11px */
.app .logo-weddings { font-size: 1.45rem; }

/* 写真は船と城が見える位置（元の 66% に近い 65%）に戻し、下の白い波を少し低くして写真を見せる */
.app .ticket-head,
.app .ticket.is-checked .ticket-head { background-position: 0 0, 50% 65%, 0 0; }
.app .ticket-head::after { height: 32px; }

/* ===========================================================
   チケットの仕上げ・第2段階（2026-10）
   1. 「1デーパスポート」「大人」を同じ形の札にそろえ、名前の上の1行に並べる
      （HTMLの順番は変えず、グリッドの配置だけで並べ替える）
   2. 縦の余白：関係の深いもの（札と名前）は近く、まとまりの間は広く
   3. 受付済み：写真は元の色のまま。写真の右下に「受付」の印を重ね、金の内枠を少し濃く
   =========================================================== */

/* ---- 1・2. 本文の並びと余白 ---- */
.app .ticket-body {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  column-gap: 6px;
  padding: 16px 20px 18px;
}

/* 札（区分）：同じ高さ・角丸・文字。区分は空色、「大人」は控えめな灰青 */
.app .ticket-type,
.app .ticket-grade {
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  height: 24px;
  margin: 0;
  padding: 0 10px;
  border: none;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.04em;
}

.app .ticket-type { grid-column: 1; background: var(--sky-soft); color: #2a6fae; }
.app .ticket-grade { grid-column: 2; background: #eef2f5; color: #4f6273; }

/* 名前：いちばん目立たせ、札のすぐ下に（6px） */
.app .ticket-name {
  grid-row: 2;
  grid-column: 1 / -1;
  margin: 6px 0 0;
  font-size: 1.36rem;
  line-height: 1.35;
}

/* 日時：名前のまとまりから離す（16px） */
.app .ticket-when {
  grid-row: 3;
  grid-column: 1 / -1;
  margin: 16px 0 0;
}

/* 下の帯（チケット番号とQR）：日時のまとまりから離す（18px） */
.ticket-foot {
  grid-row: 5;
  grid-column: 1 / -1;
  margin-top: 18px;
}

/* ---- 3. 受付済み ---- */
/* 写真は黄ばませず、受付前と同じ色のまま */
.app .ticket.is-checked .ticket-head {
  background:
    linear-gradient(180deg, rgba(120, 190, 240, 0.55) 0%, rgba(120, 190, 240, 0.1) 55%, rgba(255, 255, 255, 0) 100%),
    url(/assets/hero-disneysea.jpg) 50% 65% / cover no-repeat,
    #7ec3ef;
}

/* 金の内枠を少し濃く・太く（受付済みの気配） */
.app .ticket.is-checked::before {
  border-width: 1.5px;
  border-color: rgba(184, 148, 90, 0.85);
}

/* 受付の印：写真の右下に重ねる、金の二重枠の小さな印章。QRボタン（空色の丸）とは形も色も場所も別 */
.app .ticket-stamp {
  position: absolute;
  z-index: 4;
  right: 16px;
  top: -36px;
  gap: 6px;
  height: 30px;
  margin: 0;
  padding: 0 12px 0 9px;
  border: 1.5px solid #b8945a;
  border-radius: 6px;
  background: rgba(255, 252, 245, 0.96);
  box-shadow: inset 0 0 0 2px rgba(255, 252, 245, 0.96), inset 0 0 0 3px rgba(184, 148, 90, 0.55), 0 3px 10px rgba(20, 50, 80, 0.25);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #7a5a24;
  transform: rotate(-3deg);
  pointer-events: none;      /* 印の上を押しても、ふつうにQRが開くように */
}

.app .ticket-stamp[hidden] { display: none; }
.app .ticket-stamp svg { width: 16px; height: 16px; --art-paint: #a67c34; }

/* 受付の印は、ロゴにかからないよう写真の下の波にまたがる高さに */
.app .ticket-stamp { top: -26px; }

/* 長い名前は「…」で切らず、2行まで折り返す（「様」まで見えるように） */
.app .ticket-name {
  white-space: normal;
  overflow: hidden;
  text-overflow: clip;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow-wrap: anywhere;
}

/* チケットの写真の上の白い渦（ticket-wave.svg）は出さない。
   写真のない青一色のチケット用の飾りで、写真の上では汚れに見えるため。
   隠れミッキー（.ticket-bubbles）は別の要素なので、ゲームには影響しない。
   写真の位置（50% 65%）は、船・城・ロゴの見え方を優先してそのまま（430pxでも山頂は切れない） */
.app .ticket-wave { display: none; }

/* ===========================================================
   ホーム・チケット以外の仕上げ 1回目（2026-10）
   1. ショートカット3つを、白いリストカード1枚に（アイコン・項目名・右の矢印）
   2. ゲーム欄を白いカードにし、説明文もカードの中へ
   3. 幅400px未満では「ユーザー設定」を歯車だけの丸いボタンにして、名前を1行に
   HTML・JS は変えない（元の <br> は CSS で隠して1行にする）
   =========================================================== */

/* ---- 1. ショートカットのリストカード ---- */
.app .ticket-actions {
  display: block;
  margin-bottom: 28px;
  padding: 2px 16px;
  border: 1px solid var(--card-line);
  border-radius: var(--radius-card);
  background: #ffffff;
  box-shadow: var(--card-shadow);
}

.app .ticket-actions .tile {
  position: relative;
  flex-direction: row;
  justify-content: flex-start;
  gap: 0;
  min-height: 58px;
  padding: 9px 0;
  border: none;
  border-top: 1px solid #eef1f4;
  border-radius: 0;
  background: none;
  box-shadow: none;
  text-align: left;
  font-size: 0.875rem;          /* 14px */
  font-weight: 500;
  line-height: 1.4;
  color: var(--navy);
}

.app .ticket-actions .tile:first-child { border-top: none; }
.app .ticket-actions .tile:hover { transform: none; filter: none; }
.app .ticket-actions .tile:hover span { text-decoration: underline; text-underline-offset: 3px; }

/* 左のアイコン：淡い空色の丸（40px）の上に、紺のアイコン（22px） */
.app .ticket-actions .tile::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  border-radius: 50%;
  background: var(--sky-soft);
}

.app .ticket-actions .tile svg {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0 23px 0 9px;         /* 丸の中央に置き、項目名との間を14px */
  --art-paint: var(--navy);
}

/* 項目名は1行（元の改行は隠す）。長い名前も縮めない */
.app .ticket-actions .tile span,
.app .ticket-actions .tile--long span {
  flex: 1;
  min-width: 0;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

.app .ticket-actions .tile span br { display: none; }

/* 右の矢印 */
.app .ticket-actions .tile::after {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  margin-left: 10px;
  background-color: #6f879b;
  -webkit-mask: url(/assets/art/icon-chevron.svg) center / contain no-repeat;
  mask: url(/assets/art/icon-chevron.svg) center / contain no-repeat;
}

/* 席次表（準備中）：文字とアイコンを灰色にし、矢印の代わりに「準備中」の札 */
.app .ticket-actions .tile[data-soon] { color: #6d7d89; }
.app .ticket-actions .tile[data-soon]::before { background: #f1f4f6; }
.app .ticket-actions .tile[data-soon] svg { --art-paint: #8a98a3; }
.app .ticket-actions .tile[data-soon]:hover span { text-decoration: none; }

.app .ticket-actions .tile[data-soon]::after {
  content: "準備中";
  width: auto;
  height: auto;
  padding: 3px 10px;
  border-radius: 999px;
  background: #f1f4f6;
  -webkit-mask: none;
  mask: none;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #5d6d79;
}

/* ---- 2. ゲーム欄：白いカードの中に、帯と説明文 ---- */
.app .game {
  margin-bottom: 28px;
  padding: 12px 12px 14px;
  border: 1px solid var(--card-line);
  border-radius: var(--radius-card);
  background: #ffffff;
  box-shadow: var(--card-shadow);
}

.app .game-row {
  min-height: 48px;
  border: 1px solid #e3ecf3;
  border-radius: var(--radius-inner);
  background: #f5f9fc;
  box-shadow: none;
}

.app .game-row:hover { background: var(--sky-soft); }
.app .game-find { color: #a07a3c; }
.app .game-point { color: var(--navy); }
.app .game-rank { color: #2a6fae; font-weight: 500; }
.app .game-rank::after { border-color: #6f879b; }

.app .game-note {
  margin: 10px 4px 0;
  font-size: 0.78rem;           /* 12.5px */
  line-height: 1.7;
  color: #4f6273;
}

/* ---- 3. 幅400px未満：ユーザー設定は歯車と矢印だけの丸いボタン ---- */
@media (max-width: 399px) {
  .home-card .user-link span { display: none; }
  .home-card .user-link { width: auto; min-width: 44px; height: 40px; padding: 0 10px; justify-content: center; }
}

/* さらに狭い幅では矢印も省き、アバターを少し小さく */
@media (max-width: 359px) {
  .home-card .user-link-chev { display: none; }
  .home-card .user-link { width: 44px; padding: 0; }
  .home-card .avatar { width: 48px; height: 48px; }
  .home-card .user-name { font-size: 1.05rem; }
}

/* ===========================================================
   ホームの余白と、右上のメニュー（2026-10）
   4. ホームの縦の間隔を3段階に（まとまりの中12px／同じ種類16px／区切り32px／結び40px）
   5. メニューのシートをホームと同じ作りに（アイボリーの地に白いカード、アイコン付き）
      #menu-sheet の中だけに効かせる。グループ・ヒント・ユーザー設定のシートは変えない
   =========================================================== */

/* ---- 4. ホームの縦の間隔（ホームのときだけ） ---- */
.app[data-view="home"] .home-card { margin-bottom: 32px; }        /* プロフィール → チケット見出し */
.app[data-view="home"] .block-title--ticket { margin-bottom: 12px; } /* 見出し → チケット */
.app[data-view="home"] .ticket { margin-bottom: 32px; }           /* チケット → ゲーム欄 */
.app[data-view="home"] .game { margin-bottom: 16px; }             /* ゲーム欄 → ショートカット */
.app[data-view="home"] .ticket-actions { margin-bottom: 0; }
.app[data-view="home"] .foot-mark { margin-top: 40px; }           /* ショートカット → 署名 */

/* 署名 → 画面の下端：ふだんは32px、BGMのバーが出ているときはバーに重ならないよう96px */
.app[data-view="home"] .app-body { padding-bottom: 32px; }
.app[data-view="home"]:has(.player:not([hidden])) .app-body { padding-bottom: 96px; }

/* ---- 5. メニューのシート ---- */
/* 画面の高さに収め、見出しと「とじる」は固定、項目の一覧だけをスクロール */
#menu-sheet .sheet {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  padding: 10px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  border-radius: 24px 24px 0 0;
  background: #fbf8f2;
}

#menu-sheet .sheet-grip { flex: none; margin-bottom: 12px; background: #d9e1e8; }

#menu-sheet .sheet-title {
  flex: none;
  margin: 0 4px 12px;
  font-size: 1.1rem;
  color: var(--navy, #1f4466);
}

/* 項目：2つのまとまりの白いカード（1〜6：あそぶ・ポイント／7〜9：案内・設定） */
#menu-sheet .menu-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  border-top: none;
}

#menu-sheet .menu-list li {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(31, 68, 102, 0.08);
  border-top: none;
  border-bottom: none;
  background: #ffffff;
}

#menu-sheet .menu-list li + li::before {          /* 項目の間の淡い区切り線（アイコンの右から） */
  content: "";
  position: absolute;
  top: 0;
  left: 68px;
  right: 14px;
  height: 1px;
  background: #eef1f4;
}

#menu-sheet .menu-list li:nth-child(1),
#menu-sheet .menu-list li:nth-child(7) {
  border-top: 1px solid rgba(31, 68, 102, 0.08);
  border-radius: 20px 20px 0 0;
}

#menu-sheet .menu-list li:nth-child(6),
#menu-sheet .menu-list li:nth-child(9) {
  border-bottom: 1px solid rgba(31, 68, 102, 0.08);
  border-radius: 0 0 20px 20px;
}

#menu-sheet .menu-list li:nth-child(7) { margin-top: 12px; }   /* まとまりの間 */
#menu-sheet .menu-list li:nth-child(7)::before { display: none; }

/* 1行：左に「淡い空色の丸＋紺のアイコン」、項目名、右に補助情報と矢印 */
#menu-sheet .menu-list button {
  position: relative;
  gap: 10px;
  min-height: 54px;
  padding: 7px 36px 7px 68px;
  font-size: 0.9375rem;     /* 15px */
  font-weight: 500;
  color: var(--navy, #1f4466);
}

#menu-sheet .menu-list button:hover { background: var(--sky-soft, #eaf3fb); }

#menu-sheet .menu-list button::before {        /* 丸 */
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  border-radius: 50%;
  background: var(--sky-soft, #eaf3fb);
}

#menu-sheet .menu-list button::after {         /* アイコン（矢印は li の ::after へ移す） */
  content: "";
  position: absolute;
  left: 23px;
  right: auto;
  top: 50%;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  border: none;
  transform: none;
  background-color: var(--navy, #1f4466);
  -webkit-mask: var(--menu-icon) center / contain no-repeat;
  mask: var(--menu-icon) center / contain no-repeat;
}

#menu-sheet .menu-list li::after {             /* 右の矢印 */
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  background-color: #6f879b;
  -webkit-mask: url(/assets/art/icon-chevron.svg) center / contain no-repeat;
  mask: url(/assets/art/icon-chevron.svg) center / contain no-repeat;
  pointer-events: none;
}

#menu-sheet .menu-list em {
  font-size: 0.8125rem;     /* 13px */
  color: #5b7890;
}

/* 項目ごとのアイコン（順番はHTMLのまま。BGMとユーザー設定は同じ data-menu なので順番で指定） */
#menu-sheet .menu-list li:nth-child(1) button { --menu-icon: url(/assets/art/icon-ticket.svg); }
#menu-sheet .menu-list li:nth-child(2) button { --menu-icon: url(/assets/art/emblem-crown.svg); }
#menu-sheet .menu-list li:nth-child(3) button { --menu-icon: url(/assets/art/icon-people.svg); }
#menu-sheet .menu-list li:nth-child(4) button { --menu-icon: url(/assets/art/chip-quiz.svg); }
#menu-sheet .menu-list li:nth-child(5) button { --menu-icon: url(/assets/art/chip-roll.svg); }
#menu-sheet .menu-list li:nth-child(6) button { --menu-icon: url(/assets/art/icon-hidden-mickey.svg); }
#menu-sheet .menu-list li:nth-child(7) button { --menu-icon: url(/assets/art/tile-venue.svg); }
#menu-sheet .menu-list li:nth-child(8) button { --menu-icon: url(/assets/art/icon-player-play.svg); }
#menu-sheet .menu-list li:nth-child(9) button { --menu-icon: url(/assets/art/icon-gear.svg); }

/* 「とじる」：白地・薄い枠・丸い形の控えめなボタン（いつも見える位置に固定） */
#menu-sheet .sheet-actions { flex: none; margin-top: 16px; }

#menu-close {
  height: 48px;
  padding: 0 16px;
  border: 1px solid #dfe6ec;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(31, 68, 102, 0.06);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--navy, #1f4466);
}

#menu-close:hover:not(:disabled) { background: var(--sky-soft, #eaf3fb); }
#menu-close:focus-visible { outline: 2px solid #2a6fae; outline-offset: 2px; }

/* メニューのアイコンを、同じ決まりで描いた専用の絵にそろえる（2026-10）
   24×24・線の太さ1.8・端と角は丸く・塗らない・まわりに約3pxの余白。
   ほかの画面で使っている元の絵（icon-ticket.svg など）は変えない */
#menu-sheet .menu-list li:nth-child(1) button { --menu-icon: url(/assets/art/menu-points.svg); }
#menu-sheet .menu-list li:nth-child(2) button { --menu-icon: url(/assets/art/menu-ranking.svg); }
#menu-sheet .menu-list li:nth-child(3) button { --menu-icon: url(/assets/art/menu-group.svg); }
#menu-sheet .menu-list li:nth-child(4) button { --menu-icon: url(/assets/art/menu-quiz.svg); }
#menu-sheet .menu-list li:nth-child(5) button { --menu-icon: url(/assets/art/menu-roll.svg); }
#menu-sheet .menu-list li:nth-child(6) button { --menu-icon: url(/assets/art/menu-hint.svg); }
#menu-sheet .menu-list li:nth-child(7) button { --menu-icon: url(/assets/art/menu-venue.svg); }
#menu-sheet .menu-list li:nth-child(8) button { --menu-icon: url(/assets/art/menu-bgm.svg); }
#menu-sheet .menu-list li:nth-child(9) button { --menu-icon: url(/assets/art/menu-settings.svg); }

/* ホームのショートカット3つのアイコンを、メニューと同じ決まり（24×24・線1.8・丸い端・塗らない・余白約3px）の絵に。
   HTML の style="--art: …" は変えず、ここで差し替える（!important はその上書きのため）。
   会場はメニューと意味が同じなので menu-venue.svg をそのまま使う。元の tile-*.svg は /design で使うので残す */
.app .ticket-actions .tile[data-goto="ceremony"] svg { --art: url(/assets/art/shortcut-schedule.svg) !important; }
.app .ticket-actions .tile[data-goto="venue"] svg { --art: url(/assets/art/menu-venue.svg) !important; }
.app .ticket-actions .tile[data-soon] svg { --art: url(/assets/art/shortcut-seating.svg) !important; }

/* 下のタブ5つのアイコンを、メニュー・ショートカットと同じ線の描き方（24×24・線1.8・丸い端・塗らない）の絵に。
   HTML の style="--art: …" は変えず、ここで差し替える（!important はその上書きのため）。
   色・青い丸・ラベル・配置・タップの範囲・動きは変えない。元の tab-*.svg は /design のために残す */
.app .tab[data-tab="home"] svg { --art: url(/assets/art/nav-home.svg) !important; }
.app .tab[data-tab="ceremony"] svg { --art: url(/assets/art/nav-ceremony.svg) !important; }
.app .tab[data-tab="dining"] svg { --art: url(/assets/art/nav-dining.svg) !important; }
.app .tab[data-tab="gift"] svg { --art: url(/assets/art/nav-photo.svg) !important; }
.app .tab[data-tab="more"] svg { --art: url(/assets/art/nav-more.svg) !important; }

/* チケットのアイコンと色の見えやすさ（2026-10）。どれも .app .ticket の中だけに効かせる
   ・QRボタン：塗りの絵を、線の描き方（24×24・線1.8・丸い端）の ticket-qr.svg に
   ・番号の帯：線の太さがそろっていなかった絵を、同じ描き方の ticket-number.svg に。色は帯の地に対して約 4.4:1 の灰青に（元は約 2.6:1）
   ・日付と時刻のアイコン：空色（白地に 2.9:1）を、QRボタンと同じ青（約 5.3:1）に。文字・大きさ・配置は変えない
   HTML の style="--art: …" は変えず、ここで差し替える（!important はその上書きのため） */
.app .ticket .ticket-tap svg { --art: url(/assets/art/ticket-qr.svg) !important; }
.app .ticket .tf-icon { --art: url(/assets/art/ticket-number.svg) !important; --art-paint: #5b7890; }
.app .ticket .ticket-when svg { --art-paint: #2a6fae; }

/* ホームのプロフィールの歯車とグループの人を、メニューのアイコン（menu-settings・menu-group）と共用にする（2026-10）。
   どれも .home-card の中だけに効かせる。HTML の style="--art: …" は変えず、ここで差し替える（!important はその上書きのため）。
   大きさ（歯車17px・人22px）と配置は変えない。歯車は線になって細く見えるので、色だけ空色からチケットと同じ青にする */
.home-card .user-link-gear { --art: url(/assets/art/menu-settings.svg) !important; --art-paint: #2a6fae; }
.home-card .group-icon { --art: url(/assets/art/menu-group.svg) !important; }

/* ユーザー設定のBGM（試聴・停止・音量）のアイコンと色（2026-10）。どれも #settings-sheet の中だけに効かせる
   ・アイコンを、線の描き方（24×24・線1.8・丸い端）の bgm-play・bgm-stop・bgm-volume-low・bgm-volume-high に。
     音量は「小＝波1本」「大＝波2本」で、形でも区別できる
   ・音量のアイコン：淡い青（白地に約1.8:1）を、補助の文字と同じ灰青に
   ・試聴ボタン：文字とアイコンを、チケットのQRボタンと同じ青に。試聴中は枠を濃い青にして、四角のアイコン・「停止」の文字と合わせて状態を示す
   ・曲を選んでいないときの無効の表示（薄く）と、大きさ・配置・押せる範囲は変えない
   HTML の style="--art: …" は変えず、ここで差し替える（!important はその上書きのため） */
#settings-sheet .bgm-try .i-play { --art: url(/assets/art/bgm-play.svg) !important; }
#settings-sheet .bgm-try .i-stop { --art: url(/assets/art/bgm-stop.svg) !important; }
#settings-sheet .bgm-volume svg:first-child { --art: url(/assets/art/bgm-volume-low.svg) !important; }
#settings-sheet .bgm-volume svg:last-child { --art: url(/assets/art/bgm-volume-high.svg) !important; }
#settings-sheet .bgm-try { border-color: #9cc7ea; color: #2a6fae; }
#settings-sheet .bgm-try.is-playing { border-color: #2a6fae; background: #eaf3fb; }
#settings-sheet .bgm-volume { color: #5b7890; }

/* 会場の拡大・外部リンク・閉じる（QR画面と拡大画像）のアイコン（2026-10）。それぞれの部品の中だけに効かせる
   ・線の描き方（24×24・線1.8・丸い端）の ui-zoom・ui-external・ui-close に。「×」は QR画面と拡大画像で共用
   ・拡大のヒント：淡い青（白地に約1.8:1）を補助の文字と同じ灰青に。線になって細くなる分、14px→16px
   ・外部リンク：薄く（不透明度0.75）していたのをやめ、ボタンの文字と同じ色に。15px→16px
   ・QR画面の×：18px→20px（ボタンの大きさ44pxと位置は同じ）。拡大画像の×は22pxのまま白
   HTML の style="--art: …" は変えず、ここで差し替える（!important はその上書きのため） */
.figure-zoom-hint svg { --art: url(/assets/art/ui-zoom.svg) !important; width: 16px; height: 16px; --art-paint: #5b7890; }
.btn-external svg { --art: url(/assets/art/ui-external.svg) !important; width: 16px; height: 16px; opacity: 1; }
.qr-close svg { --art: url(/assets/art/ui-close.svg) !important; width: 20px; height: 20px; }
.zoom-close svg { --art: url(/assets/art/ui-close.svg) !important; }

/* 「戻る」ボタン（クイズ・パールころがし・ポイント・ランキング・会場）の押せる範囲を、高さ32px→44pxに（2026-10）
   ・box-sizing は border-box なので、上下の余白6pxを含めて44px。文字と矢印はもともと上下中央なので、上下に6pxずつ広がる
   ・広げたぶんを外側の余白で打ち消し（上 0→-6px、下 10→4px）、文字・矢印の位置と、下の見出し・ボタンの位置は変えない
   ・上はタブのまとまりまで14px、下は次の要素まで8px（ランキングの「表示のしかた」は4px）空いていて、重ならない */
.app .back-link {
  min-height: 44px;
  margin-top: -6px;
  margin-bottom: 4px;
}

/* ホームの「ユーザー設定」ボタンの押せる範囲を、約43px→44px以上に（2026-10）
   ・見た目は40pxのまま。::after の inset は枠線（1px）の内側から数えるので、-2px では見た目の外へ1pxしか広がらなかった
   ・-4px で見た目の外へ3pxずつ広げ、押せる範囲は約46px。左の名前まで9px、右のカードの端まで14px空き、重ならない
   ・399px以下で文字を隠しても読み上げの名前が空にならないよう、HTML のボタンに aria-label="ユーザー設定" を付けた */
.home-card .user-link::after { inset: -4px; }

/* 「その他」のよくあるご質問：文中のリンク（押せる高さ約22px）を、答えの下の独立したリンクに（2026-10）
   ・同じ画面の上の「会場・アクセス」の一覧（.list）と同じ形（区切り線・右の矢印・押せる高さ約50px）にそろえる
   ・答えの文との間は12px（文の下の余白8pxと重なるので、12pxを指定）
   ・文中リンク用の青（.faq-body a）が後ろで効いてしまうので、文字の色を一覧と同じに戻す */
.faq-body .faq-links { margin-top: 12px; }
.faq-body .faq-links a { color: var(--ink); }

/* 「館内マップ」へ飛んだとき、見出しが上に残るタブ（下端93px）に隠れていた（78px は大きくなる前のタブの値）
   ・タブの下に余白を残して見出しが見える位置に。320px ではページの下端で止まるので、実際の位置も確認した */
.app #floor-map { scroll-margin-top: 112px; }

/* ホームのゲーム欄「隠れミッキー ◯ / ◯」の金色を、金色の文字用の色（--gold-text）にそろえる（2026-10）
   ・#a07a3c は帯（#f5f9fc）の上で 3.71:1、PCで指を乗せたとき（#eaf3fb）は 3.50:1 と、細い飾り数字には薄かった
   ・#836638 で 5.06:1／4.77:1。アイコンも同じ色で塗られる。ヒーローの大きな金の文字（#a07a3c）は変えない */
.app .game-find { color: var(--gold-text); }

/* タブの文字を 0.74rem（11.84px）→13px に、5つともそろえて大きく（2026-10）
   ・13px にすると行の高さが2px増えるので、タブの下の余白を 8px→6px にして、タブの高さ85px（スクロール時の下端93px）は変えない
   ・タブの高さを前提にした移動先の余白（scroll-margin-top）や、本文の始まりの位置もそのまま
   ・320px でも1行に収まり、左右に約16pxの余りがある */
.app .tab-label { font-size: 13px; }
.app .tab { padding-bottom: 6px; }

/* 挙式の時間割の会場名を 0.68rem（10.88px）→12.5px に（2026-10）
   ・ほかの補足の文字（ゲーム欄の説明など）と同じ大きさ。320・360px は「・」のところで2行、375px 以上は1行
   ・当日、いまの項目の会場名と時刻は、テラコッタ（白地に3.99:1）を少し濃くした #a35a43（5.12:1）に。
     「現在」の札・枠・アイコンの色、ふつうの時と過去の項目の色は変えない */
.app .tl-en { font-size: 12.5px; }
.app .timeline li.is-now .tl-en,
.app .timeline li.is-now .tl-time { color: #a35a43; }
