/* セールス航路 — ネイビー×ゴールドの「海図」 */
:root {
  --navy-950: #07111f;
  --navy-900: #0b1a30;
  --navy-800: #10223d;
  --navy-700: #13294b;
  --navy-500: #2a4a7a;
  --mist: #9fb2cd;
  --mist-2: #b8c6da;
  --gold: #c9a24b;
  --gold-2: #e2c27a;
  --gold-ink: #6e5110;
  --gold-wash: #f6efdc;
  --bg: #f2f4f7;
  --card: #ffffff;
  --line: #dde3ea;
  --hair: rgba(11, 26, 48, .1);
  --ink: #0b1a30;
  --ink-2: #3c4a60;
  --ink-3: #56647a;
  --ok: #2e7559;
  --warn: #a8432e;
  --danger: #b3261e;
  --sans: "IBM Plex Sans JP", "Hiragino Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --r-card: 16px;
  --r-big: 22px;
  --shadow: 0 1px 0 rgba(11, 26, 48, .04), 0 10px 28px rgba(11, 26, 48, .08);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.32, 1.28, .52, 1);
  --st: env(safe-area-inset-top, 0px);
  --sb: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--sans); color: var(--ink); background: var(--navy-950);
  -webkit-font-smoothing: antialiased; line-break: strict; word-break: normal;
  -webkit-tap-highlight-color: transparent; font-size: 16px; line-height: 1.55;
}
p, h1, h2, h3, dl, dd, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, .lt, .btn, .tag, .pk, .tl-name, .tl-pur, .cname, .next-name, .next-p, .vh-name, .vh-p, .k-name, .deal-t,
.ob-t, .nav-title, .empty-t, .done-t, .allset h2, .cgrp-h, .set-t p, .grp-h {
  word-break: keep-all; overflow-wrap: anywhere; font-feature-settings: "palt";
}
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nu { white-space: nowrap; }
.ic { width: 24px; height: 24px; flex: none; }
.ic-s { width: 18px; height: 18px; flex: none; }
.ic-xl { width: 52px; height: 52px; color: var(--mist); }
:focus-visible { outline: 2.5px solid var(--gold); outline-offset: 2px; border-radius: 8px; }

/* ---- 端末の枠 ---- */
.app {
  position: fixed; inset: 0; margin: 0 auto; max-width: 430px; overflow: hidden;
  background: var(--bg); height: 100dvh;
}
@media (min-width: 600px) {
  body {
    background-color: var(--navy-950);
    background-image: linear-gradient(rgba(159, 178, 205, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(159, 178, 205, .07) 1px, transparent 1px);
    background-size: 44px 44px;
  }
  .app { box-shadow: 0 0 0 1px rgba(201, 162, 75, .25), 0 30px 80px rgba(0, 0, 0, .5); }
}
.stage { position: absolute; inset: 0; }
.view { position: absolute; inset: 0; background: var(--bg); overflow: hidden; will-change: transform; }

/* ---- ナビバー（大タイトルが縮む） ---- */
.nav {
  position: absolute; z-index: 6; top: 0; left: 0; right: 0; height: calc(52px + var(--st)); padding: var(--st) 8px 0;
  display: grid; grid-template-columns: minmax(84px, 1fr) auto minmax(84px, 1fr); align-items: center;
  transition: background-color .2s, box-shadow .2s, backdrop-filter .2s;
}
.nav.is-scrolled {
  background: rgba(242, 244, 247, .84); -webkit-backdrop-filter: blur(18px) saturate(1.7); backdrop-filter: blur(18px) saturate(1.7);
  box-shadow: 0 .5px 0 var(--hair);
}
.nav-title { font-size: 17px; font-weight: 600; text-align: center; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .25s var(--ease); white-space: nowrap; }
.nav.is-scrolled .nav-title { opacity: 1; transform: none; }
.nav-right { justify-self: end; display: flex; align-items: center; padding-right: 8px; }
.nav-back {
  justify-self: start; display: inline-flex; align-items: center; gap: 0; min-height: 44px; padding: 0 12px 0 4px;
  color: var(--navy-500); font-size: 17px; font-weight: 500; border-radius: 22px;
}
.nav-back .ic { width: 26px; height: 26px; }
.nav-back:active { opacity: .55; }
.nav.is-over .nav-back { background: rgba(11, 26, 48, .8); color: #fff; margin-left: 6px; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.nav.is-over.is-scrolled .nav-back { background: transparent; color: var(--navy-500); }
.avatar {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: var(--navy-700); color: var(--gold-2); font-size: 13px; font-weight: 700; letter-spacing: .02em;
  box-shadow: inset 0 0 0 1.5px rgba(201, 162, 75, .55);
}
.avatar.sm { width: 34px; height: 34px; font-size: 11px; opacity: 0; transition: opacity .2s; }
.nav.is-scrolled .avatar.sm { opacity: 1; }
.avatar.lg { width: 60px; height: 60px; font-size: 16px; }
.avatar:active { transform: scale(.94); }

.scroller {
  position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: calc(52px + var(--st)) 0 calc(112px + var(--sb));
}
.scroller.has-bottom { padding-bottom: calc(108px + var(--sb)); }
.lt { font-size: 34px; line-height: 1.2; font-weight: 700; letter-spacing: .01em; padding: 2px 20px 14px; }
.lt-wrap { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 0 20px 14px; }
.lt-wrap .lt { padding: 2px 0 0; }
.lt-kicker { display: flex; gap: 10px; align-items: baseline; font-size: 14px; color: var(--ink-3); font-weight: 500; }
.lt-kicker .mono { color: var(--gold-ink); font-weight: 600; }

/* ---- ボタン ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 20px;
  border-radius: 14px; font-size: 16px; font-weight: 600; transition: transform .14s var(--ease), filter .14s;
}
.btn:active { transform: scale(.97); filter: brightness(.94); }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-gold { background: var(--gold); color: var(--navy-900); }
.btn-navy { background: var(--navy-700); color: #fff; }
.btn-ghost { background: #e5e9ef; color: var(--navy-700); }
.btn-ghost.on-dark { background: rgba(255, 255, 255, .1); color: #fff; }
.round-b { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--navy-700); color: #fff; flex: none; }
.round-b:active { transform: scale(.92); }

/* ---- 見込み度バッジ ---- */
.rk {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; flex: none;
  font-family: var(--mono); font-weight: 600; font-size: 14px; line-height: 1;
}
.rk-A { background: var(--gold); color: var(--navy-900); }
.rk-B { background: var(--navy-700); color: #fff; }
.rk-C { background: #dfe5ee; color: var(--navy-700); }
.rk-D { background: #fff; color: var(--ink-2); box-shadow: inset 0 0 0 1.5px #b8c3d2; }
.rk.is-big { width: 48px; height: 48px; border-radius: 14px; font-size: 24px; }

/* ---- 海図カード ---- */
.chart-card { margin: 0 12px; background: var(--navy-900); color: #dbe4f0; border-radius: 24px; overflow: hidden; box-shadow: 0 18px 40px rgba(11, 26, 48, .28); }
.chart-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px 2px; }
.chart-id { font-size: 12px; color: var(--mist); letter-spacing: .06em; }
.chart-legend { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--mist-2); }
.lg { display: inline-block; width: 18px; height: 0; border-top: 2.5px solid var(--gold); }
.lg-plan { border-top-style: dashed; opacity: .8; margin-left: 6px; }
.seachart { display: block; width: 100%; height: auto; touch-action: manipulation; }
.seachart text { font-family: var(--sans); }
.sc-sound { color: #8399ba; font-family: var(--mono); font-size: 8px; }
.sc-sound text, .sc-frame text, .sc-scale text { font-family: var(--mono); }
.sc-area { color: var(--mist); font-size: 10px; letter-spacing: .12em; }
.sc-frame { color: #8399ba; font-size: 7.5px; }
.sc-scale { color: var(--mist); font-size: 8px; }
.sc-n { color: var(--gold-2); font-size: 9px; font-weight: 600; }
.sc-leg { fill: none; stroke: var(--gold); stroke-width: 2.6; stroke-linecap: round; }
.sc-leg.is-current { stroke-dasharray: 7 5; animation: dash 1.1s linear infinite; }
.sc-leg.is-plan { stroke-dasharray: 2 5; stroke-opacity: .6; stroke-width: 2; }
@keyframes dash { to { stroke-dashoffset: -24; } }
.sc-legtag rect { fill: var(--navy-950); stroke: rgba(201, 162, 75, .45); stroke-width: .8; }
.sc-legtag text { font-family: var(--mono); font-size: 9px; color: var(--gold-2); }
.sc-legtag.is-plan text { color: var(--mist-2); }
.sc-legtag.is-plan rect { stroke: rgba(159, 178, 205, .35); }
.sc-wp { cursor: pointer; outline: none; }
.sc-hit { fill: transparent; }
.sc-dot { transform-box: fill-box; transform-origin: center; transition: transform .3s var(--spring); }
.sc-wp.is-done .sc-dot { fill: var(--gold); stroke: var(--navy-900); stroke-width: 2; }
.sc-tick { fill: none; stroke: var(--navy-900); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sc-wp.is-next .sc-dot { fill: var(--navy-900); stroke: var(--gold); stroke-width: 2.6; }
.sc-wp.is-next .sc-num { color: var(--gold-2); }
.sc-wp.is-plan .sc-dot { fill: var(--navy-700); stroke: var(--mist); stroke-width: 1.4; }
.sc-wp.is-plan .sc-num { color: #e8eef7; }
.sc-wp.is-off .sc-dot { fill: var(--navy-900); stroke: #5f7aa3; stroke-width: 1.4; stroke-dasharray: 2 2; }
.sc-wp.is-off .sc-num, .sc-wp.is-off .sc-name { color: var(--mist); }
.sc-num { font-family: var(--mono) !important; font-size: 10.5px; font-weight: 600; }
.sc-name { font-size: 10.5px; font-weight: 600; color: #f2f5fa; paint-order: stroke; stroke: var(--navy-900); stroke-width: 3.2px; stroke-linejoin: round; }
.sc-wp.is-sel .sc-dot { transform: scale(1.32); }
.sc-wp.is-sel .sc-name { color: var(--gold-2); }
.sc-wp:focus-visible .sc-dot { stroke: #fff; }
.sc-pulse { fill: none; stroke: var(--gold); stroke-width: 1.4; transform-box: fill-box; transform-origin: center; animation: pulse 1.8s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.4); opacity: 0; } }
.sc-here circle:last-child { fill: #fff; stroke: var(--navy-900); stroke-width: 1.5; }
.sc-here-halo { fill: rgba(255, 255, 255, .22); transform-box: fill-box; transform-origin: center; animation: halo 2.4s ease-in-out infinite; }
@keyframes halo { 50% { transform: scale(1.5); opacity: .4; } }
.sc-office rect { fill: var(--mist); }
.sc-office text { font-size: 9px; color: var(--mist-2); }
.chart-call {
  display: flex; align-items: center; gap: 12px; margin: 0 12px; padding: 8px 8px 8px 12px; min-height: 60px;
  border-radius: 16px; background: var(--navy-800); box-shadow: inset 0 0 0 1px rgba(159, 178, 205, .14);
}
.cc-n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: var(--navy-900); font-weight: 600; font-size: 14px; }
.cc-t { flex: 1; min-width: 0; }
.cc-name { font-size: 16px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-sub { font-size: 13px; color: var(--mist-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-go { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; padding: 0 10px 0 14px; border-radius: 12px; color: var(--gold-2); font-weight: 600; font-size: 15px; }
.cc-go:active { background: rgba(255, 255, 255, .06); }
.chart-stats { display: grid; grid-template-columns: repeat(3, 1fr); padding: 14px 18px 18px; gap: 8px; }
.chart-stats div + div { border-left: 1px solid rgba(159, 178, 205, .18); padding-left: 12px; }
.chart-stats dt { font-size: 12px; color: var(--mist); }
.chart-stats dd { font-size: 17px; font-weight: 600; color: #fff; }
.chart-stats dd b { font-size: 24px; color: var(--gold-2); }
.chart-stats dd .mono:not(b) { color: var(--mist-2); font-size: 16px; }

/* ---- 次の訪問 ---- */
.next {
  position: relative; margin: 16px 12px 0; padding: 18px 18px 16px; border-radius: var(--r-big); background: var(--card);
  box-shadow: var(--shadow), inset 0 0 0 1.5px rgba(201, 162, 75, .55);
}
.next-top { display: flex; justify-content: space-between; align-items: baseline; }
.next-k { display: flex; gap: 8px; align-items: baseline; font-size: 14px; font-weight: 600; color: var(--gold-ink); }
.next-k .mono { font-size: 12px; letter-spacing: .14em; }
.next-time { font-size: 28px; font-weight: 600; color: var(--navy-700); line-height: 1; }
.next-name { font-size: 22px; line-height: 1.35; margin-top: 6px; }
.next-p { font-size: 15px; color: var(--ink-2); margin-top: 2px; }
.next-eta { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.next-eta .ic { color: var(--navy-500); width: 20px; height: 20px; }
.next-hw { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--gold-wash); }
.next-hw-k { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--gold-ink); }
.next-hw-k .ic { width: 16px; height: 16px; }
.next-hw-t { font-size: 14px; color: #3b2f12; margin-top: 2px; }
.next-btns { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; margin-top: 14px; }
.allset { margin: 16px 12px 0; border-radius: var(--r-big); overflow: hidden; background: var(--navy-900); color: #fff; }
.allset img { width: 100%; height: 180px; object-fit: cover; }
.allset-t { padding: 16px 18px 18px; }
.allset-k { font-size: 12px; color: var(--gold-2); letter-spacing: .12em; }
.allset h2 { font-size: 22px; margin: 4px 0 6px; }
.allset p:not(.allset-k) { font-size: 15px; color: #dbe4f0; margin-bottom: 14px; }

/* ---- タイムライン ---- */
.tl-sec { margin-top: 28px; }
.sec-h { display: flex; justify-content: space-between; align-items: baseline; padding: 0 20px 10px; }
.sec-h h2 { font-size: 21px; }
.sec-h p { font-size: 13px; color: var(--ink-3); }
.tl { padding: 0 12px; }
.tl-start { display: flex; align-items: center; gap: 10px; padding-left: 60px; font-size: 14px; color: var(--ink-3); height: 30px; }
.tl-start-d { width: 10px; height: 10px; transform: rotate(45deg); background: var(--mist); border-radius: 2px; }
.tl-leg { display: flex; align-items: center; gap: 6px; margin-left: 74px; padding: 8px 0 8px 18px; border-left: 2px dashed rgba(201, 162, 75, .7); font-size: 13px; color: var(--ink-3); }
.tl-leg .ic { width: 18px; height: 18px; color: var(--navy-500); }
.is-done > .tl-leg { border-left-style: solid; border-left-color: var(--gold); }
.is-off > .tl-leg { border-left-color: #c3ccd8; }
.sw, .nosw { position: relative; border-radius: var(--r-card); overflow: hidden; }
.sw-back { position: absolute; inset: 0 0 0 auto; width: 92px; display: flex; }
.sw-act { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #fff; font-size: 14px; font-weight: 600; }
.act-later { background: var(--warn); }
.act-back { background: var(--navy-500); }
.sw-front { position: relative; z-index: 1; transition: transform .3s var(--ease); touch-action: pan-y; }
.tl-row {
  display: grid; grid-template-columns: 52px 30px 1fr 18px; gap: 0 10px; align-items: start; padding: 14px 10px 14px 8px; min-height: 76px;
  background: var(--card); border-radius: var(--r-card); box-shadow: 0 1px 0 rgba(11, 26, 48, .05);
}
.tl-row:active { background: #f7f8fa; }
.tl-time { display: flex; flex-direction: column; align-items: flex-end; }
.tl-time b { font-size: 16px; font-weight: 600; color: var(--navy-700); }
.tl-time span { font-size: 12px; color: var(--ink-3); }
.tl-node span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-family: var(--mono); font-weight: 600; font-size: 14px; background: #fff; color: var(--navy-700); box-shadow: inset 0 0 0 1.5px var(--mist); }
.is-done .tl-node span { background: var(--gold); color: var(--navy-900); box-shadow: none; }
.is-next .tl-node span { background: var(--navy-900); color: var(--gold-2); box-shadow: 0 0 0 4px rgba(201, 162, 75, .3); }
.is-off .tl-node span { color: var(--ink-3); box-shadow: inset 0 0 0 1.5px #c3ccd8; }
.tl-main { min-width: 0; }
.tl-name { font-size: 17px; font-weight: 600; line-height: 1.35; }
.tl-pur { font-size: 14px; color: var(--ink-2); margin-top: 1px; }
.tl-meta { display: flex; align-items: center; gap: 8px; margin-top: 8px; min-width: 0; }
.tl-memo, .tl-who { font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tl-off { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--warn); font-weight: 600; }
.tl-off .ic { width: 16px; height: 16px; }
.chev { color: #a3afbf; width: 18px; height: 18px; align-self: center; }
.is-next .tl-row { box-shadow: inset 0 0 0 1.5px var(--gold), 0 8px 20px rgba(11, 26, 48, .08); }
.is-off .tl-row { background: #e9edf2; }
.is-off .tl-name { color: var(--ink-2); text-decoration: line-through; text-decoration-color: rgba(60, 74, 96, .5); }
.is-flash .tl-row { animation: flash 1.1s var(--ease); }
@keyframes flash { 0%, 40% { background: #f6ecd2; } 100% { background: var(--card); } }

/* ---- 訪問の記録 ---- */
.vh { padding: 6px 20px 14px; }
.vh-k { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); }
.vh-n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--navy-900); color: var(--gold-2); font-size: 14px; }
.vh-st { margin-left: auto; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #e3e8ef; color: var(--navy-700); }
.vh-name { font-size: 27px; line-height: 1.3; margin-top: 10px; }
.vh-p { font-size: 16px; color: var(--ink-2); margin-top: 4px; }
.vh-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.vh-chips > span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; color: var(--ink-2); }
.banner { display: flex; align-items: center; gap: 10px; margin: 12px 16px 0; padding: 10px 12px; border-radius: 14px; background: #e6ecf4; color: var(--navy-700); font-size: 14px; }
.banner p { flex: 1; }
.banner.is-gold { background: var(--gold-wash); color: #4f3b0c; }
.banner-b { min-height: 40px; padding: 0 12px; border-radius: 10px; background: var(--navy-700); color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; }
.arrive { padding: 4px 16px 0; }
.btn-arrive { width: 100%; background: var(--navy-900); color: #fff; justify-content: flex-start; }
.btn-arrive .mono { margin-left: auto; color: var(--gold-2); font-size: 15px; }
.stamp { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; background: #e3efe8; color: #1f5a43; font-size: 14px; font-weight: 600; }
.stamp b { font-size: 16px; }
.stamp-sub { font-weight: 500; color: #2d5e4a; }
.grp { margin: 24px 16px 0; }
.grp-h { font-size: 14px; font-weight: 600; color: var(--ink-3); padding: 0 4px 8px; letter-spacing: .04em; }
.card { background: var(--card); border-radius: var(--r-card); padding: 14px 16px; box-shadow: 0 1px 0 rgba(11, 26, 48, .05), inset 0 0 0 1px rgba(11, 26, 48, .04); }
.hw { display: flex; gap: 10px; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.hw .ic { color: var(--gold-ink); }
.hw-k { font-size: 13px; font-weight: 600; color: var(--gold-ink); }
.hw-t { font-size: 15px; }
.mini li { display: grid; grid-template-columns: 52px 1fr; gap: 2px 8px; padding: 8px 0; }
.mini-d { font-size: 13px; color: var(--ink-3); }
.mini-k { font-size: 13px; font-weight: 600; color: var(--navy-700); }
.mini-t { grid-column: 1 / -1; font-size: 14px; color: var(--ink-2); }
.card-link { display: flex; align-items: center; justify-content: space-between; min-height: 46px; margin: 4px -16px -14px; padding: 0 16px; border-top: 1px solid var(--line); color: var(--navy-500); font-weight: 600; font-size: 15px; }
.card-link:active { background: #f5f7fa; }
.seg-rank { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sr { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 66px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); transition: transform .2s var(--spring), background-color .2s; }
.sr b { font-family: var(--mono); font-size: 22px; line-height: 1.1; }
.sr span { font-size: 12px; color: var(--ink-3); }
.sr:active { transform: scale(.95); }
.sr[aria-checked="true"] { transform: scale(1.03); box-shadow: none; }
.sr-A[aria-checked="true"] { background: var(--gold); color: var(--navy-900); }
.sr-A[aria-checked="true"] span { color: var(--navy-900); }
.sr-B[aria-checked="true"] { background: var(--navy-700); color: #fff; }
.sr-C[aria-checked="true"] { background: #dfe5ee; color: var(--navy-700); box-shadow: inset 0 0 0 1.5px var(--navy-500); }
.sr-D[aria-checked="true"] { background: #4b5a70; color: #fff; }
.sr-B[aria-checked="true"] span, .sr-D[aria-checked="true"] span { color: #e3e9f2; }
.sr-C[aria-checked="true"] span { color: var(--navy-700); }
.rank-desc { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 10px; padding: 0 4px; font-size: 14px; color: var(--ink-2); }
.rank-desc b { font-size: 15px; color: var(--ink); }
.rank-move { display: inline-flex; align-items: center; gap: 2px; margin-left: auto; color: var(--ink-3); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.tag { min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; color: var(--ink-2); transition: transform .18s var(--spring); }
.tag:active { transform: scale(.94); }
.tag[aria-pressed="true"] { background: var(--navy-700); color: #fff; box-shadow: none; }
.memo-card { padding: 4px 4px 8px; }
.memo-card textarea { width: 100%; border: 0; resize: none; min-height: 140px; padding: 12px; font: 16px/1.75 var(--sans); color: var(--ink); background: transparent; border-radius: 12px; }
.memo-card textarea:focus { outline: none; background: #f8f9fb; }
.memo-card textarea.is-err { box-shadow: inset 0 0 0 2px var(--danger); }
.memo-foot { display: flex; justify-content: space-between; align-items: center; padding: 0 12px; min-height: 22px; }
.memo-count { font-size: 12px; color: var(--ink-3); margin-left: auto; }
.err { font-size: 14px; color: var(--danger); font-weight: 600; }
.row-btn { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; text-align: left; }
.row-btn > .ic:first-child { color: var(--navy-500); }
.row-btn-t { flex: 1; display: flex; flex-direction: column; }
.row-btn-t b { font-size: 16px; }
.row-btn-t span { font-size: 14px; color: var(--ink-2); }
.row-btn:active { background: #f5f7fa; }
.bottom-bar {
  position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + var(--sb));
  background: rgba(242, 244, 247, .86); -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: 0 -.5px 0 var(--hair);
}
.bottom-bar.on-tab { bottom: calc(84px + var(--sb)); background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0 20px; }
.bottom-bar.on-tab .btn { box-shadow: 0 10px 24px rgba(11, 26, 48, .2); }

/* ---- 顧客 ---- */
.search { display: flex; align-items: center; gap: 8px; margin: 0 16px 12px; padding: 0 12px; height: 44px; border-radius: 12px; background: #e3e7ed; color: var(--ink-3); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font: 16px var(--sans); color: var(--ink); height: 100%; }
.search input:focus { outline: none; }
.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; margin: 0 16px; padding: 2px; border-radius: 12px; background: #e3e7ed; }
.segmented button { min-height: 40px; border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--ink-2); transition: background-color .2s, box-shadow .2s; }
.segmented button[aria-selected="true"] { background: #fff; color: var(--navy-900); box-shadow: 0 2px 8px rgba(11, 26, 48, .12); }
.cgrp-h { display: flex; align-items: center; gap: 8px; padding: 22px 20px 8px; font-size: 16px; }
.cgrp-n { font-weight: 700; }
.cgrp-s { margin-left: auto; font-size: 13px; font-weight: 500; color: var(--ink-3); }
.clist { margin: 0 16px; background: var(--card); border-radius: var(--r-card); overflow: hidden; box-shadow: 0 1px 0 rgba(11, 26, 48, .05); }
.clist li + li .crow { box-shadow: inset 0 .5px 0 var(--line); }
.crow { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; min-height: 78px; }
.crow:active { background: #f5f7fa; }
.cthumb { width: 52px; height: 52px; border-radius: 13px; object-fit: cover; }
.mono-t { display: grid; place-items: center; background: var(--navy-700); color: var(--gold-2); font-size: 21px; font-weight: 700; }
.cmain { min-width: 0; }
.cname { font-size: 16px; font-weight: 600; line-height: 1.35; }
.cdeal { font-size: 14px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmeta { font-size: 13px; color: var(--ink-3); display: flex; flex-wrap: wrap; align-items: center; gap: 0 2px; margin-top: 2px; }
.ctoday { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #f1e3bd; color: #4f3b0c; font-size: 12px; font-weight: 600; }
.camt { text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.camt b { font-size: 17px; font-weight: 600; color: var(--navy-700); line-height: 1.2; }
.camt span { font-size: 12px; color: var(--ink-3); }
.camt .clast { margin-top: 4px; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 56px 28px; }
.empty-t { font-size: 17px; font-weight: 600; }
.empty-s { font-size: 14px; color: var(--ink-2); }

/* ---- 顧客カルテ ---- */
.v-karte .scroller { padding-top: 0; }
.k-hero { height: calc(250px + var(--st)); background: var(--navy-800); }
.k-hero img { width: 100%; height: 100%; object-fit: cover; }
.k-hero-mono { height: 100%; display: grid; place-items: center; background: var(--navy-800) linear-gradient(rgba(159, 178, 205, .08) 1px, transparent 1px) 0 0 / 28px 28px; }
.k-hero-mono span { font-size: 96px; font-weight: 700; color: var(--gold); opacity: .9; }
.k-plate { position: relative; margin: -44px 12px 0; padding: 18px; border-radius: var(--r-big); background: var(--navy-900); color: #fff; box-shadow: 0 16px 36px rgba(11, 26, 48, .3); }
.k-ind { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--mist-2); }
.k-name { font-size: 24px; line-height: 1.35; margin-top: 4px; }
.k-rank { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(159, 178, 205, .2); }
.k-rank-n { font-size: 15px; font-weight: 600; color: var(--gold-2); }
.k-rank-d { font-size: 13px; color: var(--mist-2); }
.deal-t { font-size: 16px; font-weight: 600; }
.deal-amt { margin-top: 4px; display: flex; align-items: baseline; gap: 4px; }
.deal-amt b { font-size: 32px; font-weight: 600; color: var(--navy-700); line-height: 1.1; }
.deal-amt span { font-size: 15px; color: var(--ink-2); }
.stepper { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-top: 14px; }
.stepper li { display: flex; flex-direction: column; gap: 6px; }
.stepper i { height: 6px; border-radius: 3px; background: #e3e8ef; }
.stepper .is-past i { background: var(--navy-500); }
.stepper .is-now i { background: var(--gold); }
.stepper span { display: none; }
.stepper .is-now span { display: block; font-size: 13px; font-weight: 600; color: var(--gold-ink); white-space: nowrap; }
.stepper li:nth-child(n+5).is-now span { align-self: flex-end; }
.deal-next { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.deal-next .ic-s { color: var(--gold-ink); margin-top: 2px; }
.trend-card { padding: 10px 10px 6px; }
.trend { display: block; width: 100%; height: auto; }
.tr-grid { stroke: #e7ebf1; stroke-width: 1; }
.tr-k { font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--ink-3); }
.tr-d { font-family: var(--mono); font-size: 10px; color: var(--ink-3); }
.tr-line { fill: none; stroke: var(--navy-700); stroke-width: 2.4; stroke-linejoin: round; }
.tr-dot { fill: #fff; stroke: var(--navy-700); stroke-width: 2; }
.tr-dot.is-today { fill: var(--gold); stroke: var(--navy-900); }
.person { display: flex; align-items: center; gap: 12px; }
.avatar.pv { background: #e3e8ef; color: var(--navy-700); box-shadow: none; font-size: 14px; }
.person-t { flex: 1; min-width: 0; }
.person-n { font-size: 16px; font-weight: 600; }
.person-n span { font-size: 13px; color: var(--ink-3); font-weight: 500; margin-left: 8px; }
.person-note { font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.hist { position: relative; padding-left: 4px; }
.hist::before { content: ""; position: absolute; left: 57px; top: 18px; bottom: 18px; width: 2px; background: #dde3ea; }
.hist li { position: relative; display: grid; grid-template-columns: 50px 1fr; gap: 16px; padding: 8px 0; }
.hist li::after { content: ""; position: absolute; left: 49px; top: 17px; width: 10px; height: 10px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px var(--navy-500); }
.hist li.is-today::after { background: var(--gold); box-shadow: inset 0 0 0 2px var(--navy-900); }
.hist-d { font-size: 13px; color: var(--ink-3); padding-top: 4px; text-align: right; }
.hist-b { background: var(--card); border-radius: 14px; padding: 10px 12px; }
.is-today .hist-b { background: #fbf5e4; }
.hist-k { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.hist-k .rk { width: 20px; height: 20px; font-size: 12px; border-radius: 6px; }
.hist-t { font-size: 14px; color: var(--ink-2); margin-top: 2px; line-height: 1.65; }
.addr p { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; }
.addr .ic-s { color: var(--navy-500); margin-top: 3px; }
.addr .addr-sub { font-size: 14px; color: var(--ink-3); margin-top: 8px; }

/* ---- 日報 ---- */
.rp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 16px; }
.rp-stats div { background: var(--card); border-radius: 14px; padding: 10px 12px; }
.rp-stats dt { font-size: 13px; color: var(--ink-3); }
.rp-stats dd { font-size: 17px; font-weight: 600; }
.rp-stats dd b { font-size: 24px; color: var(--navy-700); }
.rp-mode { margin-top: 16px; margin-bottom: 12px; }
.paper {
  position: relative; margin: 0 16px; padding: 16px 18px 20px; background: #fff; border-radius: 6px 6px 18px 18px;
  box-shadow: 0 1px 0 rgba(11, 26, 48, .06), 0 14px 32px rgba(11, 26, 48, .1); border-top: 5px solid var(--navy-700);
}
.paper::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--gold); }
.paper-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.paper-h .mono { font-size: 12px; letter-spacing: .16em; color: var(--ink-3); }
.paper-h p:last-child { font-size: 13px; color: var(--ink-2); }
.paper-src { display: flex; align-items: center; gap: 6px; margin: 10px 0 4px; font-size: 13px; color: var(--gold-ink); font-weight: 600; }
.paper-t { display: block; width: 100%; min-height: 220px; border: 0; resize: none; padding: 6px 0; font: 15px/1.85 var(--sans); color: var(--ink); background: #fff; overflow: hidden; }
.paper-t:focus { outline: none; }
.paper.is-sent .paper-t { color: var(--ink-2); }
.paper-stamp { position: absolute; right: 14px; top: 52px; transform: rotate(-9deg); display: flex; flex-direction: column; align-items: center; padding: 4px 10px; border: 2px solid var(--warn); border-radius: 10px; color: var(--warn); background: #fff; }
.paper-stamp span { font-size: 11px; letter-spacing: .12em; }
.paper-stamp b { font-size: 17px; }
.rp-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 16px 0; }
.rp-tools .btn { min-height: 46px; font-size: 15px; padding: 0 12px; }
.v-report .scroller { padding-bottom: calc(170px + var(--sb)); }
.past { background: var(--card); border-radius: var(--r-card); overflow: hidden; }
.past li { padding: 12px 16px; }
.past li + li { border-top: 1px solid var(--line); }
.past-d { font-size: 13px; color: var(--ink-3); }
.past-t { font-size: 15px; margin: 2px 0; }
.past-n { font-size: 13px; color: var(--ink-3); }
.v-done { background: var(--navy-900); }
.v-done .scroller { padding-top: 0; }
.done-hero { position: relative; height: calc(380px + var(--st)); }
.done-hero img { width: 100%; height: 100%; object-fit: cover; }
.done-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 26, 48, .1) 0%, rgba(11, 26, 48, .2) 45%, var(--navy-900) 96%); }
.done-body { position: relative; margin-top: -40px; padding: 0 20px 40px; color: #fff; }
.done-k { font-size: 12px; letter-spacing: .14em; color: var(--gold-2); }
.done-t { font-size: 28px; line-height: 1.3; margin-top: 6px; }
.done-s { font-size: 15px; color: #dbe4f0; margin-top: 8px; line-height: 1.7; }
.done-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 22px 0; }
.done-sum div { padding: 12px; border-radius: 14px; background: var(--navy-800); }
.done-sum dt { font-size: 12px; color: var(--mist); }
.done-sum dd { font-size: 20px; font-weight: 600; font-family: var(--mono); color: #fff; }
.done-body .btn + .btn { margin-top: 10px; }
.v-done .nav.is-scrolled { background: rgba(11, 26, 48, .85); box-shadow: none; }
.v-done .nav.is-scrolled .nav-back { color: var(--gold-2); }
.v-done .nav-title { color: #fff; }

/* ---- 分析 ---- */
.v-ana .segmented { margin-bottom: 14px; }
.kpi { display: grid; grid-template-columns: 1.45fr 1fr; grid-template-rows: auto auto; gap: 8px; margin: 0 16px; }
.kpi-main { grid-row: span 2; padding: 16px; border-radius: 20px; background: var(--navy-900); color: #fff; display: flex; flex-direction: column; }
.kpi-k { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.kpi-main .kpi-k { color: var(--mist); }
.kpi-v { margin-top: auto; display: flex; align-items: baseline; gap: 2px; font-size: 15px; color: var(--mist-2); }
.kpi-v b { font-size: 46px; font-weight: 600; color: #fff; line-height: 1; }
.kpi-v .mono:not(b) { font-size: 20px; color: var(--mist); }
.meter { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .14); margin-top: 12px; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #b88f37, var(--gold-2)); transition: width .8s var(--ease); }
.kpi-s { font-size: 13px; color: var(--mist-2); margin-top: 6px; }
.kpi-sub { padding: 12px 14px; border-radius: 16px; background: var(--card); }
.kpi-v2 { font-size: 14px; color: var(--ink-2); }
.kpi-v2 b { font-size: 28px; font-weight: 600; color: var(--navy-700); }
.chart-box { margin: 16px 16px 0; padding: 14px 12px 12px; }
.cb-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 10px; padding: 0 4px 8px; }
.cb-h h2 { font-size: 17px; }
.cb-legend { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--ink-2); }
.cb-legend span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.cb-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.sw1 { background: var(--navy-700); } .sw2 { background: var(--mist); } .sw3 { background: var(--gold); }
.sw4 { height: 0 !important; border-top: 2px dashed var(--gold-ink); border-radius: 0 !important; width: 14px !important; }
.cb-canvas { position: relative; height: 220px; }
.cb-note { font-size: 13px; color: var(--ink-3); padding: 6px 4px 0; }
.fallback-bars { display: flex; align-items: flex-end; justify-content: space-around; height: 100%; }
.fallback-bars div { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; color: var(--ink-2); }
.fallback-bars i { width: 26px; background: var(--navy-700); border-radius: 4px; }
.pipe-row { display: grid; grid-template-columns: 24px 1fr 112px; gap: 12px; align-items: center; padding: 8px 0; }
.pipe-bar { height: 12px; border-radius: 6px; background: #edf0f4; overflow: hidden; }
.pipe-bar i { display: block; height: 100%; border-radius: 6px; }
.pb-A { background: var(--gold); } .pb-B { background: var(--navy-700); } .pb-C { background: var(--mist); } .pb-D { background: #c9d2de; }
.pipe-v { text-align: right; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.pipe-v b { font-size: 15px; color: var(--ink); font-weight: 600; }
.pipe-n { margin-left: 6px; }
.split-bar { display: flex; gap: 3px; height: 14px; border-radius: 7px; overflow: hidden; }
.split-bar i, .split-l i { display: block; }
.sp-meet { background: var(--navy-700); } .sp-move { background: var(--gold); } .sp-desk { background: #c9d2de; }
.split-l { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.split-l dt { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.split-l dt i { width: 10px; height: 10px; border-radius: 3px; }
.split-l dd { font-size: 16px; font-weight: 600; font-family: var(--mono); }
.ins { background: var(--card); border-radius: var(--r-card); overflow: hidden; }
.ins li { display: flex; gap: 10px; padding: 12px 14px; }
.ins li + li { border-top: 1px solid var(--line); }
.ins .ic-s { color: var(--gold-ink); margin-top: 3px; }
.ins p { font-size: 15px; line-height: 1.65; }

/* ---- 設定・アプリについて ---- */
.me { display: flex; align-items: center; gap: 14px; margin: 0 16px; }
.me-n { font-size: 18px; font-weight: 700; }
.me-s { font-size: 14px; color: var(--ink-2); }
.set-h { font-size: 14px; font-weight: 600; color: var(--ink-3); padding: 24px 32px 8px; }
.set { margin: 0 16px; background: var(--card); border-radius: 14px; overflow: hidden; }
.set + .set { margin-top: 20px; }
.set-row { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 10px 14px; width: 100%; text-align: left; }
.set li + li .set-row, .set li + li.set-row { box-shadow: inset 0 .5px 0 var(--line); }
.set-ic { color: var(--navy-500); }
.set-t { flex: 1; min-width: 0; }
.set-t p { font-size: 16px; }
.set-t .set-s { font-size: 13px; color: var(--ink-3); }
.set-v { font-size: 15px; color: var(--ink-2); white-space: nowrap; }
.as-btn:active { background: #f5f7fa; }
.danger .set-t p:first-child, .danger .set-ic { color: var(--danger); }
.switch { position: relative; width: 52px; height: 32px; border-radius: 999px; background: #cfd6e0; flex: none; transition: background-color .25s; }
.switch i { position: absolute; top: 2px; left: 2px; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .3s var(--spring); }
.switch[aria-checked="true"] { background: var(--ok); }
.switch[aria-checked="true"] i { transform: translateX(20px); }
.set-foot { text-align: center; font-size: 12px; color: var(--ink-3); padding: 24px 0 8px; }
.about-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 24px 20px; gap: 6px; }
.about-hero img { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 10px 26px rgba(11, 26, 48, .25); margin-bottom: 8px; }
.about-hero h1 { font-size: 24px; }
.about-hero p { font-size: 15px; color: var(--ink-2); }
.about-note { margin: 0 16px; }
.about-note p { font-size: 15px; line-height: 1.75; }
.tech .set-row { align-items: flex-start; }
.about-cta { margin: 24px 16px 20px; width: calc(100% - 32px); }

/* ---- タブバー（Liquid Glass 風・機能層だけ） ---- */
.tabbar {
  position: absolute; z-index: 20; left: 50%; bottom: calc(12px + var(--sb)); transform: translateX(-50%);
  width: calc(100% - 40px); max-width: 370px; height: 66px; padding: 5px; border-radius: 33px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, .74); -webkit-backdrop-filter: blur(22px) saturate(1.8); backdrop-filter: blur(22px) saturate(1.8);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .75), 0 12px 34px rgba(11, 26, 48, .18), 0 1px 3px rgba(11, 26, 48, .08);
  transition: transform .35s var(--ease), opacity .25s;
}
.tabbar.is-hidden { transform: translate(-50%, 150%); opacity: 0; pointer-events: none; }
.tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border-radius: 28px; color: var(--ink-2); font-size: 12px; font-weight: 600; transition: color .2s, background-color .25s; }
.tab.is-on { color: var(--navy-900); background: rgba(19, 41, 75, .1); }
.tab.is-on .ic { color: var(--navy-700); }
.tab:active { transform: scale(.94); }
.tab-dot { position: absolute; top: 8px; left: calc(50% + 9px); width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px #fff; }

/* ---- シート・アラート・トースト ---- */
.sheet-layer { position: absolute; inset: 0; z-index: 40; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(7, 17, 31, .4); opacity: 0; transition: opacity .3s; }
.sheet-layer.is-open .sheet-scrim { opacity: 1; }
.sheet {
  position: absolute; left: 8px; right: 8px; bottom: calc(8px + var(--sb)); max-height: 86%; overflow-y: auto; overscroll-behavior: contain;
  padding: 8px 20px 20px; border-radius: 32px; background: rgba(248, 250, 252, .96);
  -webkit-backdrop-filter: blur(26px) saturate(1.6); backdrop-filter: blur(26px) saturate(1.6);
  box-shadow: 0 -10px 40px rgba(7, 17, 31, .25); transform: translateY(115%); transition: transform .42s var(--spring);
}
.sheet-layer.is-open .sheet { transform: translateY(0); }
.sheet.is-drag { transition: none; }
.sheet-grab { width: 38px; height: 5px; border-radius: 3px; background: #c3cbd6; margin: 0 auto 6px; cursor: grab; touch-action: none; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; touch-action: none; }
.sheet-head h2 { font-size: 20px; }
.sheet-x { min-height: 44px; padding: 0 4px 0 12px; color: var(--navy-500); font-size: 16px; font-weight: 500; }
.sheet-sub { font-size: 13px; font-weight: 600; color: var(--ink-3); margin: 14px 0 8px; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pk { min-height: 44px; padding: 0 16px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; font-weight: 500; transition: transform .2s var(--spring); }
.pk:active { transform: scale(.95); }
.pk[aria-pressed="true"] { background: var(--navy-700); color: #fff; box-shadow: none; }
.sheet-preview { display: flex; align-items: center; gap: 8px; margin: 18px 0 14px; padding: 12px; border-radius: 12px; background: var(--gold-wash); color: #3b2f12; font-size: 15px; font-weight: 600; }
.alert-layer { position: absolute; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(7, 17, 31, .35); opacity: 0; transition: opacity .18s; }
.alert-layer.is-open { opacity: 1; }
.alert { width: min(290px, calc(100% - 48px)); border-radius: 18px; overflow: hidden; background: rgba(248, 250, 252, .97); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); text-align: center; transform: scale(1.08); transition: transform .25s var(--spring); }
.alert-layer.is-open .alert { transform: none; }
.alert-t { font-size: 17px; font-weight: 600; padding: 20px 16px 4px; }
.alert-m { font-size: 14px; color: var(--ink-2); padding: 0 18px 18px; line-height: 1.6; }
.alert-btns { display: grid; grid-template-columns: 1fr 1fr; box-shadow: inset 0 .5px 0 var(--line); }
.alert-b { min-height: 48px; font-size: 17px; color: var(--navy-500); }
.alert-b + .alert-b { box-shadow: inset .5px 0 0 var(--line); font-weight: 600; }
.alert-b.is-danger { color: var(--danger); }
.alert-b:active { background: rgba(11, 26, 48, .06); }
.toast {
  position: absolute; z-index: 70; left: 12px; right: 12px; top: calc(8px + var(--st)); display: flex; align-items: center; gap: 10px;
  padding: 10px 10px 10px 16px; min-height: 52px; border-radius: 16px; background: var(--navy-900); color: #fff; font-size: 14px;
  box-shadow: 0 14px 34px rgba(7, 17, 31, .35); opacity: 0; transform: translateY(-24px) scale(.96); pointer-events: none; transition: opacity .2s, transform .3s var(--spring);
}
.toast.is-on { opacity: 1; transform: none; pointer-events: auto; }
.toast span { flex: 1; }
.toast-act { min-height: 40px; padding: 0 12px; border-radius: 10px; color: var(--gold-2); font-weight: 600; white-space: nowrap; }

/* ---- 起動 ---- */
.splash { position: fixed; inset: 0; margin: 0 auto; max-width: 430px; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: var(--navy-900); transition: opacity .3s; }
.splash img { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 0 0 1px rgba(201, 162, 75, .4), 0 18px 40px rgba(0, 0, 0, .4); }
.splash-name { color: var(--gold-2); font-size: 20px; font-weight: 600; letter-spacing: .16em; }
.splash.is-out { opacity: 0; }
.onboard { position: fixed; inset: 0; margin: 0 auto; max-width: 430px; z-index: 90; overflow: hidden; background: var(--navy-900); transition: opacity .35s; touch-action: pan-y; }
.onboard.is-out { opacity: 0; }
.ob-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ob-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 17, 31, .92) 0%, rgba(7, 17, 31, .7) 34%, rgba(7, 17, 31, 0) 58%, rgba(7, 17, 31, .2) 78%, rgba(7, 17, 31, .9) 100%); }
.ob-skip { position: absolute; z-index: 2; top: calc(10px + var(--st)); right: 12px; min-height: 44px; padding: 0 16px; border-radius: 22px; background: rgba(7, 17, 31, .6); color: #fff; font-size: 15px; font-weight: 600; }
.ob-body { position: absolute; inset: calc(76px + var(--st)) 24px calc(28px + var(--sb)); display: flex; flex-direction: column; color: #fff; }
.ob-k { font-size: 13px; color: var(--gold-2); letter-spacing: .1em; }
.ob-t { font-size: 31px; line-height: 1.35; margin-top: 10px; }
.ob-s { font-size: 16px; line-height: 1.75; color: #dbe4f0; margin-top: 12px; max-width: 22em; }
.ob-body.is-in .ob-k, .ob-body.is-in .ob-t, .ob-body.is-in .ob-s { animation: rise .5s var(--ease) both; }
.ob-body.is-in .ob-t { animation-delay: .05s; }
.ob-body.is-in .ob-s { animation-delay: .1s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.ob-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.ob-dots { display: flex; gap: 6px; }
.ob-dots i { width: 8px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .45); transition: width .3s var(--ease), background-color .3s; }
.ob-dots i.is-on { width: 24px; background: var(--gold); }
.ob-next { min-width: 132px; }
.nojs, .fatal { position: fixed; inset: auto 16px 24px; z-index: 200; padding: 16px; border-radius: 16px; background: #fff; color: var(--ink); font-size: 15px; box-shadow: var(--shadow); }
.fatal-t { font-weight: 700; margin-bottom: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.stage-cap { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; font-size: 14px; color: var(--ink-3); }
.stage-cap .mono { font-size: 13px; color: var(--gold-ink); font-weight: 600; }
.stage-cap b { color: var(--ink); font-size: 15px; }
.sw-back { visibility: hidden; }
.sw.is-moving .sw-back, .sw.is-open .sw-back { visibility: visible; }
.sw-front { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; }
img { -webkit-user-drag: none; }
