/* ほしぞら窓 — 星空ガイド
   トークン：漆黒 × 星白 × 古金。円窓・アーチ・金の細線。カードの代わりに「窓」で区切る */
:root {
  --night: #05060B;
  --deep: #0B0E18;
  --deep-2: #121726;
  --rim: #232A3D;
  --star: #F3EEDF;
  --dim: #B9B3A5;           /* 副文字 9.3:1（deep 上） */
  --gold: #D4AF5A;          /* 線・装飾 */
  --gold-ink: #E5C67F;      /* 金の文字 11:1 */
  --gold-deep: #2A2414;
  --ember: #E8906A;
  --line: rgba(212, 175, 90, .38);

  --ff-ja-h: "Zen Antique", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --ff-ja: "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  --ff-la: "Cinzel", "Times New Roman", serif;

  --g: 18px;
  --tab-h: 60px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(.22, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--night); color: var(--star);
  font-family: var(--ff-ja); font-size: 15px; line-height: 1.8; line-break: strict;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overscroll-behavior: none;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; text-align: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
p, h1, h2, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
[hidden] { display: none !important; }
.nw { white-space: nowrap; }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 2px; }

.device { position: relative; height: 100vh; height: 100dvh; max-width: 430px; margin: 0 auto; overflow: hidden; background: var(--night); isolation: isolate; }
@media (min-width: 600px) {
  body { background: radial-gradient(1px 1px at 20% 30%, #fff8 50%, transparent), radial-gradient(1px 1px at 70% 60%, #fff6 50%, transparent), radial-gradient(1.5px 1.5px at 85% 20%, #fff9 50%, transparent), radial-gradient(1px 1px at 40% 80%, #fff5 50%, transparent), #020307; background-size: 220px 220px, 300px 300px, 410px 410px, 260px 260px; }
  .device { box-shadow: 0 0 0 1px var(--line), 0 30px 90px rgba(0, 0, 0, .7); }
}
html.red .device { filter: grayscale(1) sepia(1) saturate(7) hue-rotate(-38deg) brightness(.82); }
.boot-fallback { position: absolute; inset: 0; z-index: 90; display: grid; place-content: center; gap: 8px; padding: 32px; text-align: center; background: var(--night); color: var(--dim); }
.boot-fallback__t { font-family: var(--ff-ja-h); font-size: 28px; color: var(--gold-ink); }
.noscript { padding: 24px; }

/* ---------- 共通部品 ---------- */
.round {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--deep); border: 1px solid var(--line); color: var(--gold-ink);
  transition: transform 140ms var(--ease), background-color 200ms, border-color 200ms;
}
.round:active { transform: scale(.88); }
.round.is-on { background: var(--gold); color: var(--night); border-color: var(--gold); }
.round--s { width: 44px; height: 44px; }
.round--gold { background: var(--gold); color: var(--night); border-color: var(--gold); }
.round--gold .ic { fill: currentColor; stroke: none; }
.round--gold .ic--pause { fill: none; stroke: currentColor; stroke-width: 2.6; display: none; }
.round--gold.is-on .ic--play { display: none; }
.round--gold.is-on .ic--pause { display: block; }
.pill {
  min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--deep);
  font-weight: 700; font-size: 14px; color: var(--gold-ink); white-space: nowrap; transition: transform 140ms var(--ease), background-color 200ms;
}
.pill:active { transform: scale(.94); }
.pill.is-live { background: var(--gold-deep); }
.btn {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; padding: 0 20px; border-radius: 999px;
  font-weight: 700; font-size: 15px; letter-spacing: .06em; text-align: center; word-break: keep-all;
  transition: transform 140ms var(--ease), filter 200ms;
}
.btn:active { transform: scale(.97); }
.btn--gold { background: var(--gold); color: var(--night); }
.btn--line { border: 1px solid var(--line); color: var(--gold-ink); background: var(--deep); }
.btn--text { width: auto; min-height: 44px; color: var(--dim); text-decoration: underline; text-underline-offset: 4px; font-weight: 400; }

/* ---------- 星空 ---------- */
.sky { position: absolute; inset: 0; }
.sky__cv { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.sky__cv:active { cursor: grabbing; }
.sky__top { position: absolute; top: calc(var(--safe-t) + 12px); left: var(--g); right: var(--g); display: flex; justify-content: space-between; align-items: center; gap: 10px; pointer-events: none; }
.sky__top > * { pointer-events: auto; }
.readout {
  display: flex; align-items: baseline; gap: 10px; min-height: 44px; padding: 8px 18px; border-radius: 999px;
  background: var(--deep); border: 1px solid var(--line);
}
.readout__dir { font-family: var(--ff-ja-h); font-size: 19px; color: var(--gold-ink); line-height: 1.2; }
.readout__deg { font-family: var(--ff-la); font-weight: 600; font-size: 15px; color: var(--star); }
.readout__alt { font-size: 13px; color: var(--dim); white-space: nowrap; }
.banner {
  position: absolute; top: calc(var(--safe-t) + 66px); left: var(--g); right: var(--g); padding: 8px 14px; border-radius: 12px;
  background: var(--gold-deep); border: 1px solid var(--line); color: var(--gold-ink); font-size: 13px; line-height: 1.6; text-align: center; word-break: keep-all; overflow-wrap: anywhere;
}
.zoom { position: absolute; right: var(--g); top: 38%; display: flex; flex-direction: column; gap: 10px; }
.info {
  position: absolute; left: var(--g); right: var(--g); bottom: calc(var(--tab-h) + var(--safe-b) + 128px);
  display: flex; align-items: center; gap: 12px; padding: 12px 44px 12px 12px; border-radius: 18px;
  background: var(--deep); border: 1px solid var(--line);
}
.info.pop { animation: rise 320ms var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.info__fig { flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--night); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.info__body { flex: 1; min-width: 0; line-height: 1.5; }
.info__la { font-family: var(--ff-la); font-size: 11px; letter-spacing: .16em; color: var(--gold-ink); }
.info__name { font-family: var(--ff-ja-h); font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.info__star, .info__pos { font-size: 13px; color: var(--dim); white-space: nowrap; }
.info__go { flex: none; min-height: 44px; display: grid; place-items: center; padding: 0 16px; border-radius: 999px; background: var(--gold); color: var(--night); font-weight: 700; font-size: 14px; white-space: nowrap; }
.info__go:active { transform: scale(.94); }
.info__x { position: absolute; top: 0; right: 0; width: 44px; height: 44px; display: grid; place-items: center; color: var(--dim); }

.clock {
  position: absolute; left: 0; right: 0; bottom: calc(var(--tab-h) + var(--safe-b));
  padding: 10px var(--g) 8px; background: var(--deep); border-top: 1px solid var(--line);
}
.clock__row { display: flex; align-items: center; gap: 10px; }
.clock__when { flex: 1; min-width: 0; min-height: 44px; display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 10px; line-height: 1.3; }
.clock__date { font-size: 13px; color: var(--dim); white-space: nowrap; }
.clock__time { font-family: var(--ff-la); font-weight: 600; font-size: 28px; color: var(--star); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.clock__city { font-size: 12px; color: var(--gold-ink); white-space: nowrap; }
.ruler { position: relative; height: 38px; margin-top: 6px; border-radius: 8px; background: var(--night); touch-action: none; cursor: ew-resize; overflow: hidden; }
.ruler__cv { position: absolute; inset: 0; width: 100%; height: 100%; }
.ruler__needle { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--gold); }
.ruler__needle::before { content: ""; position: absolute; top: 0; left: -5px; border: 6px solid transparent; border-top-color: var(--gold); }

/* ---------- タブバー ---------- */
.tabbar {
  position: absolute; z-index: 20; left: 0; right: 0; bottom: 0; height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: grid; grid-template-columns: repeat(3, 1fr); background: var(--night); border-top: 1px solid var(--line);
}
.tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-size: 11px; color: var(--dim); transition: color 200ms; }
.tab .ic { transition: transform 160ms var(--ease); }
.tab:active .ic { transform: scale(.85); }
.tab::before { content: ""; position: absolute; top: 6px; width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg) scale(0); transition: transform 260ms var(--ease); }
.tab.is-on { color: var(--gold-ink); font-weight: 700; }
.tab.is-on::before { transform: rotate(45deg) scale(1); }
.tab.is-on .ic { margin-top: 4px; }

/* ---------- パネル（星空以外の画面） ---------- */
.panels { position: absolute; inset: 0 0 calc(var(--tab-h) + var(--safe-b)) 0; z-index: 10; pointer-events: none; }
.panel { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--deep); pointer-events: auto; }
.on-panel .sky .zoom, .on-panel .sky .info { visibility: hidden; }
@keyframes inUp { from { opacity: 0; transform: translateY(5%); } }
@keyframes outDown { to { opacity: 0; transform: translateY(5%); } }
@keyframes inPush { from { transform: translateX(100%); } }
@keyframes outPush { to { transform: translateX(-25%); opacity: .4; } }
@keyframes inPop { from { transform: translateX(-25%); opacity: .4; } }
@keyframes outPop { to { transform: translateX(100%); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes inNext { from { opacity: 0; transform: translateX(36px); } }
@keyframes inPrev { from { opacity: 0; transform: translateX(-36px); } }
.in-up { animation: inUp 380ms var(--ease) both; }
.out-down { animation: outDown 300ms var(--ease) both; }
.in-push { animation: inPush 380ms var(--ease) both; z-index: 2; }
.out-push { animation: outPush 380ms var(--ease) both; }
.in-pop { animation: inPop 380ms var(--ease) both; }
.out-pop { animation: outPop 380ms var(--ease) both; z-index: 2; }
.in-fade, .in-none { animation: fadeIn 260ms linear both; z-index: 2; }
.out-fade, .out-none, .out-next, .out-prev { animation: fadeOut 200ms linear both; }
.in-next { animation: inNext 320ms var(--ease) both; z-index: 2; }
.in-prev { animation: inPrev 320ms var(--ease) both; z-index: 2; }

.phead { flex: none; padding: calc(var(--safe-t) + 22px) var(--g) 14px; border-bottom: 1px solid transparent; transition: border-color 200ms; background: var(--deep); }
.phead.is-scrolled, .pbar.is-scrolled { border-bottom-color: var(--line); }
.phead__la { font-family: var(--ff-la); font-size: 12px; letter-spacing: .24em; color: var(--gold-ink); }
.phead__t { font-family: var(--ff-ja-h); font-weight: 400; font-size: 30px; line-height: 1.35; letter-spacing: .04em; font-feature-settings: "palt"; }
.phead__sub { font-size: 13px; color: var(--dim); }
.pbar { flex: none; display: flex; align-items: center; gap: 10px; padding: calc(var(--safe-t) + 10px) var(--g) 10px; background: var(--deep); border-bottom: 1px solid transparent; transition: border-color 200ms; }
.pbar__t { flex: 1; text-align: center; font-family: var(--ff-ja-h); font-size: 17px; }
.pbar__no { width: 44px; text-align: right; font-family: var(--ff-la); font-size: 12px; color: var(--dim); }
.pscroll { flex: 1; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding: 0 var(--g) 24px; scrollbar-width: none; }
.pscroll::-webkit-scrollbar { display: none; }
.dockpad { height: 92px; }
.dockpad--s { height: 20px; }
.dock { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px var(--g); background: var(--deep); border-top: 1px solid var(--line); }

/* 星座一覧 */
.progress { display: flex; align-items: center; gap: 12px; margin: 6px 0 14px; font-size: 13px; color: var(--dim); }
.progress__bar { flex: 1; height: 3px; background: var(--rim); border-radius: 2px; overflow: hidden; }
.progress__bar span { display: block; height: 100%; background: var(--gold); transition: width 600ms var(--ease); }
.progress__n { font-family: var(--ff-la); color: var(--gold-ink); font-size: 14px; }
.seg { display: flex; gap: 6px; overflow-x: auto; margin: 0 calc(-1 * var(--g)) 12px; padding: 0 var(--g) 2px; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg__b { flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; color: var(--star); white-space: nowrap; transition: background-color 200ms, color 200ms, transform 140ms; }
.seg__b:active { transform: scale(.94); }
.seg__b.is-on { background: var(--gold); color: var(--night); border-color: var(--gold); font-weight: 700; }
.note { font-size: 13px; color: var(--dim); margin-bottom: 10px; line-height: 1.7; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.card {
  position: relative; display: flex; flex-direction: column; align-items: center; padding: 10px 8px 12px; text-align: center;
  border: 1px solid var(--line); border-radius: 999px 999px 14px 14px / 120px 120px 14px 14px; background: var(--night);
  animation: fadeIn 420ms var(--ease) both; animation-delay: calc(var(--i, 0) * 30ms);
  transition: transform 160ms var(--ease), border-color 200ms;
}
.card:active { transform: scale(.96); border-color: var(--gold); }
.card__fig { display: block; width: 100%; aspect-ratio: 1; max-width: 132px; }
.card__fig .fig { width: 100%; height: 100%; }
.card__la { font-family: var(--ff-la); font-size: 10.5px; letter-spacing: .14em; color: var(--gold-ink); margin-top: 2px; line-height: 1.4; }
.card__ja { font-family: var(--ff-ja-h); font-size: 18px; line-height: 1.4; }
.card__pos { font-size: 12px; color: var(--dim); line-height: 1.5; }
.card__pos.is-down { color: var(--ember); }
.card__read { position: absolute; top: 14px; right: 14px; width: 14px; height: 14px; color: var(--gold); }
.glyph { width: 100%; height: 100%; fill: currentColor; }
.fig__l { fill: none; stroke: var(--gold); stroke-width: .9; stroke-linejoin: round; stroke-linecap: round; opacity: .85; }
.fig__s { fill: var(--star); }
.card .fig__l { stroke-dasharray: 400; stroke-dashoffset: 400; animation: drawLine 1.1s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 40ms + 120ms); }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
.empty { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 36px 8px; }
.empty__art { width: 120px; height: 70px; fill: none; stroke: var(--gold); stroke-width: 1.2; }
.empty__t { font-family: var(--ff-ja-h); font-size: 19px; }
.empty__s { font-size: 14px; color: var(--dim); line-height: 1.7; }

/* 星座の物語 */
.arch { position: relative; margin: 8px auto 0; width: min(100%, 330px); aspect-ratio: 1 / 1.08; border-radius: 999px 999px 8px 8px / 170px 170px 8px 8px; overflow: hidden; border: 1px solid var(--gold); background: var(--night); }
.arch::after { content: ""; position: absolute; inset: 6px; border-radius: inherit; border: 1px solid var(--line); pointer-events: none; }
.arch__img { width: 100%; height: 100%; object-fit: cover; animation: fadeIn 700ms var(--ease) both; }
.arch__fig { width: 100%; height: 100%; display: grid; place-items: center; }
.arch__fig .fig { width: 82%; height: 82%; }
.arch__fig .fig__l { stroke-width: .6; stroke-dasharray: 400; stroke-dashoffset: 400; animation: drawLine 1.6s var(--ease) forwards; }
.story { padding-top: 18px; }
.story__la { font-family: var(--ff-la); font-size: 13px; letter-spacing: .28em; color: var(--gold-ink); text-align: center; }
.story__t { font-family: var(--ff-ja-h); font-weight: 400; font-size: 34px; line-height: 1.3; text-align: center; letter-spacing: .06em; font-feature-settings: "palt"; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 16px 0 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts > div { padding: 10px 6px; text-align: center; }
.facts > div + div { border-left: 1px solid var(--line); }
.facts dt { font-size: 11px; color: var(--gold-ink); letter-spacing: .1em; }
.facts dd { font-size: 13px; line-height: 1.5; }
.story__p { font-size: 16px; line-height: 2; margin-bottom: 14px; }
.box { margin: 6px 0 12px; padding: 12px 16px; border-left: 2px solid var(--gold); background: var(--deep-2); border-radius: 0 12px 12px 0; }
.box__t { font-size: 12px; font-weight: 700; color: var(--gold-ink); letter-spacing: .08em; }
.box__p { font-size: 15px; line-height: 1.8; }
.stars__t { font-size: 12px; font-weight: 700; color: var(--gold-ink); letter-spacing: .08em; margin-top: 18px; }
.stars li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--rim); }
.stars__dot { flex: none; width: 22px; display: grid; place-items: center; }
.stars__dot::before { content: ""; width: var(--r); height: var(--r); border-radius: 50%; background: var(--star); box-shadow: 0 0 8px rgba(243, 238, 223, .6); }
.stars__n { flex: 1; font-size: 15px; }
.stars__m { font-family: var(--ff-la); font-size: 14px; color: var(--dim); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.pager__a { display: flex; flex-direction: column; padding: 10px 14px; min-height: 60px; border: 1px solid var(--line); border-radius: 14px; transition: transform 140ms var(--ease); }
.pager__a:active { transform: scale(.97); }
.pager__a--next { text-align: right; }
.pager__k { font-size: 12px; color: var(--dim); }
.pager__n { font-family: var(--ff-ja-h); font-size: 16px; }
.fine { font-size: 12px; color: var(--dim); margin-top: 16px; line-height: 1.7; }

/* 設定 */
.group { padding: 14px 0 6px; border-bottom: 1px solid var(--rim); }
.group__t { font-size: 12px; font-weight: 700; color: var(--gold-ink); letter-spacing: .1em; margin: 6px 0 8px; }
.dt { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; }
.dt__f { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--dim); }
.dt__f input {
  min-height: 48px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--night); color: var(--star);
  font-family: var(--ff-la); font-weight: 600; font-size: 17px; color-scheme: dark;
}
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.cities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.city { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 58px; border-radius: 12px; border: 1px solid var(--line); background: var(--night); transition: background-color 200ms, transform 140ms; }
.city:active { transform: scale(.94); }
.city__n { font-weight: 700; font-size: 14px; line-height: 1.3; }
.city__l { font-size: 11px; color: var(--dim); }
.city.is-on { background: var(--gold); border-color: var(--gold); color: var(--night); }
.city.is-on .city__l { color: var(--night); }
.row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 0; }
.row + .row { border-top: 1px solid var(--rim); }
.row__b { flex: 1; display: flex; flex-direction: column; }
.row__l { font-size: 15px; font-weight: 700; }
.row__s { font-size: 13px; color: var(--dim); line-height: 1.6; }
.row__s--pad { padding: 8px 0 6px; }
.row--link { justify-content: space-between; color: var(--star); }
.row--danger .row__l { color: var(--ember); }
.group .btn { margin: 4px 0 10px; }
.switch { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 52px; height: 30px; margin: 0; border-radius: 999px; border: 1px solid var(--line); background: var(--night); cursor: pointer; transition: background-color 220ms; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--dim); transition: transform 260ms var(--ease), background-color 220ms; }
.switch:checked { background: var(--gold); border-color: var(--gold); }
.switch:checked::after { transform: translateX(22px); background: var(--night); }

/* アプリについて */
.about { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; }
.about__icon { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto; }
.about__name { font-family: var(--ff-ja-h); font-size: 26px; text-align: center; }
.about__ver { font-size: 13px; color: var(--dim); text-align: center; }
.about__disc { font-size: 14px; line-height: 1.8; padding: 12px 14px; border-radius: 12px; background: var(--deep-2); border: 1px solid var(--line); margin: 8px 0; }
.about__p { font-size: 14px; line-height: 1.8; color: var(--star); }
.tech li { font-size: 14px; line-height: 1.7; padding: 8px 0 8px 16px; border-bottom: 1px solid var(--rim); position: relative; }
.tech li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); }
.about .btn { margin-top: 14px; }

/* ---------- シート・トースト ---------- */
.sheet-layer { position: absolute; inset: 0; z-index: 40; }
.scrim { position: absolute; inset: 0; background: rgba(2, 3, 7, .6); opacity: 0; transition: opacity 280ms; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88%; overflow-y: auto; background: var(--deep); border-top: 1px solid var(--gold); border-radius: 26px 26px 0 0; padding-bottom: var(--safe-b); transform: translateY(100%); transition: transform 320ms var(--ease); }
.sheet-layer.is-open .scrim { opacity: 1; }
.sheet-layer.is-open .sheet { transform: none; }
.sheet__grab { width: 40px; height: 4px; border-radius: 2px; background: var(--rim); margin: 10px auto 0; }
.sheet__body { padding: 10px var(--g) 20px; display: flex; flex-direction: column; gap: 10px; }
.sheet__art svg { display: block; width: 120px; height: 80px; margin: 0 auto; fill: none; stroke: var(--gold); stroke-width: 1.3; }
.sheet__t { font-family: var(--ff-ja-h); font-weight: 400; font-size: 23px; text-align: center; }
.sheet__p { font-size: 14px; line-height: 1.8; color: var(--dim); }
.toast {
  position: absolute; z-index: 50; left: var(--g); right: var(--g); bottom: calc(var(--tab-h) + var(--safe-b) + 128px);
  padding: 12px 16px; border-radius: 14px; background: var(--star); color: var(--night); font-size: 14px; line-height: 1.6;
  opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity 220ms, transform 260ms var(--ease);
}
.toast.is-on { opacity: 1; transform: none; }

/* ---------- スプラッシュ・オンボーディング ---------- */
.splash { position: absolute; inset: 0; z-index: 80; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: var(--night); transition: opacity 400ms; }
.splash.is-out { opacity: 0; }
.splash__icon { width: 116px; height: 116px; border-radius: 28px; animation: fadeIn 600ms var(--ease) both; box-shadow: 0 0 60px rgba(212, 175, 90, .25); }
.splash__name { font-family: var(--ff-ja-h); font-size: 26px; color: var(--star); margin-top: 6px; }
.splash__la { font-family: var(--ff-la); font-size: 11px; letter-spacing: .3em; color: var(--gold-ink); }
.onboard { position: absolute; inset: 0; z-index: 70; display: flex; flex-direction: column; background: var(--night); transition: opacity 320ms; }
.onboard.is-out { opacity: 0; }
.onboard__img { flex: 1; min-height: 0; overflow: hidden; }
.onboard__img img { width: 100%; height: 100%; object-fit: cover; animation: fadeIn 600ms var(--ease) both; }
.onboard__p { padding: 20px var(--g) calc(18px + var(--safe-b)); background: var(--deep); border-top: 1px solid var(--line); }
.onboard__no { font-family: var(--ff-la); font-size: 13px; color: var(--gold-ink); }
.onboard__t { font-family: var(--ff-ja-h); font-weight: 400; font-size: 25px; line-height: 1.45; margin: 4px 0 8px; word-break: keep-all; font-feature-settings: "palt"; }
.onboard__s { font-size: 15px; color: var(--dim); line-height: 1.8; min-height: 5.4em; }
.onboard__acts { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.onboard__acts .btn--gold { flex: 1; }

/* 見出し・ラベルは文節で改行 */
.phead__t, .story__t, .card__ja, .info__name, .sheet__t, .empty__t, .pager__n, .city__n, .row__l, .btn, .seg__b { word-break: keep-all; overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
  .card .fig__l, .arch__fig .fig__l { stroke-dashoffset: 0; }
}
