/* レシート一発 — 明るく軽快：白 × コーラル、インクの文字 */
:root {
  --bg: #FFFFFF;
  --grp: #F5F4F2;
  --ink: #1A1D26;
  --sub: #5C6170;
  --line: #E7E4E1;
  --coral: #FF6B5B;
  --coral-2: #FF8A7C;
  --coral-ink: #C93A2B;
  --coral-wash: #FFF0ED;
  --mint: #16805F;
  --mint-wash: #E4F4EC;
  --mint-ink: #0F6B4F;
  --amber: #9A5B00;
  --amber-wash: #FFF3DC;
  --blue: #2D6BE0;
  --blue-wash: #E9F0FD;
  --f-ja: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
  --f-num: "Bricolage Grotesque", "Zen Kaku Gothic New", sans-serif;
  --f-mono: "JetBrains Mono", "Zen Kaku Gothic New", monospace;
  --r-s: 10px; --r-m: 14px; --r-l: 22px; --r-xl: 30px;
  --sh-float: 0 10px 30px rgba(26, 29, 38, .12), 0 2px 6px rgba(26, 29, 38, .06);
  --ease: cubic-bezier(.32, .72, 0, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --nbh: 52px;
  --st: env(safe-area-inset-top, 0px);
  --sb: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--f-ja); font-size: 16px; line-height: 1.6;
  line-break: strict; -webkit-font-smoothing: antialiased; overflow: hidden; font-feature-settings: "palt" 0;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.nw { white-space: nowrap; }
.wb { word-break: keep-all; overflow-wrap: break-word; }
.vh { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.mono { font-family: var(--f-mono); font-size: .92em; letter-spacing: -.01em; }
.ic { width: 24px; height: 24px; flex: none; }
.ic-s { width: 20px; height: 20px; }
.ic-xs { width: 16px; height: 16px; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }

/* ---------- 骨格 ---------- */
.app { position: relative; height: 100dvh; overflow: hidden; background: var(--bg); }
@media (min-width: 600px) {
  body { background: #FFE9E4 radial-gradient(circle at 1px 1px, rgba(201, 58, 43, .18) 1px, transparent 1.5px) 0 0 / 22px 22px; }
  .app { max-width: 430px; margin: 0 auto; box-shadow: 0 0 0 1px rgba(26, 29, 38, .06), 0 30px 80px rgba(201, 58, 43, .18); }
}
.stage { position: absolute; inset: 0; overflow: hidden; }
.pg { position: absolute; inset: 0; background: var(--bg); z-index: 1; will-change: transform; }
.pg-leave { pointer-events: none; }
.pg-modal { z-index: 3; box-shadow: 0 -10px 40px rgba(26, 29, 38, .14); }
.sc {
  position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  padding: calc(var(--nbh) + var(--st)) 16px calc(112px + var(--sb)); outline: none;
}
.sc-grouped, .sc-ap { background: var(--grp); }
.pg-modal .sc { padding-bottom: calc(28px + var(--sb)); }

/* ナビバー：スクロールするとすりガラス＋小タイトル */
.nb {
  position: absolute; z-index: 5; top: 0; left: 0; right: 0; height: calc(var(--nbh) + var(--st)); padding: var(--st) 8px 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; transition: background .2s, box-shadow .2s;
}
.scrolled .nb, .pg-modal .nb { background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: blur(20px) saturate(1.8); backdrop-filter: blur(20px) saturate(1.8); box-shadow: 0 .5px 0 rgba(26, 29, 38, .14); }
.nb-t { margin: 0; font-weight: 700; font-size: 17px; opacity: 0; transition: opacity .2s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 56vw; text-align: center; }
.scrolled .nb-t, .pg-modal .nb-t, .pg:not(:has(.lt)) .nb-t { opacity: 1; }
.nb-l { justify-self: start; display: flex; align-items: center; }
.nb-r { justify-self: end; display: flex; align-items: center; gap: 4px; }
.nb-back { display: inline-flex; align-items: center; gap: 0; min-height: 44px; padding: 0 10px 0 2px; color: var(--coral-ink); font-size: 17px; font-weight: 500; border-radius: 22px; position: relative; overflow: hidden; }
.nb-back .ic { width: 26px; height: 26px; }
.nb-btn, .me-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--coral-ink); position: relative; overflow: hidden; }
.nb-txt { min-height: 44px; padding: 0 10px; color: var(--coral-ink); font-size: 17px; border-radius: 22px; position: relative; overflow: hidden; }

.lt-wrap { padding: 2px 4px 14px; }
.lt { margin: 0; font-size: 34px; line-height: 1.2; font-weight: 700; letter-spacing: .01em; font-feature-settings: "palt"; transform-origin: left center; }
.lt-sub { margin: 2px 0 0; color: var(--sub); font-size: 14px; word-break: keep-all; }

/* アバター */
.av { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--ac); color: #fff; font-weight: 700; font-size: 14px; flex: none; }
.av[style*="#FF6B5B"] { color: var(--ink); }
.av-l { width: 44px; height: 44px; font-size: 18px; }
.av-xl { width: 60px; height: 60px; font-size: 24px; }

/* ---------- タブバー（浮かぶガラスのカプセル）---------- */
.tabbar { position: absolute; z-index: 20; left: 12px; right: 12px; bottom: calc(10px + var(--sb)); display: flex; gap: 10px; align-items: center; transition: transform .35s var(--ease), opacity .25s; }
.tabbar.hide { transform: translateY(140%); opacity: 0; pointer-events: none; }
.glass { background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: blur(22px) saturate(1.9); backdrop-filter: blur(22px) saturate(1.9); box-shadow: var(--sh-float), inset 0 0 0 .5px rgba(255, 255, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .8); border: .5px solid rgba(26, 29, 38, .08); }
.tabs { flex: 1; display: flex; border-radius: 34px; padding: 5px; height: 64px; }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border-radius: 28px; color: #3F4350; font-size: 11px; font-weight: 700; position: relative; transition: background .25s, color .25s, transform .12s; }
.tab .ic { width: 24px; height: 24px; }
.tab.on { background: var(--coral-wash); color: var(--coral-ink); }
.tab:active { transform: scale(.94); }
.tbadge { position: absolute; top: 3px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--coral-ink); color: #fff; font: 700 11px/18px var(--f-num); text-align: center; }
.shoot { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; flex: none; transition: transform .15s var(--spring); }
.shoot-in { width: 52px; height: 52px; border-radius: 50%; background: var(--coral); color: var(--ink); display: grid; place-items: center; box-shadow: 0 4px 14px rgba(255, 107, 91, .45); }
.shoot:active { transform: scale(.9); }

/* ---------- 押し込み・波紋 ---------- */
.rip { position: relative; overflow: hidden; }
.ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: .16; transform: scale(0); animation: rip .5s ease-out forwards; pointer-events: none; }
@keyframes rip { to { transform: scale(1); opacity: 0; } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 26px; font-weight: 700; font-size: 16px; transition: transform .12s, background .2s; word-break: keep-all; }
.btn:active { transform: scale(.96); }
.btn-main { background: var(--coral); color: var(--ink); box-shadow: 0 6px 16px rgba(255, 107, 91, .35); }
.btn-sub { background: var(--grp); color: var(--ink); }
.btn-ink { background: var(--ink); color: #fff; }
.sc-ap .btn-sub, .sc-grouped .btn-sub { background: #fff; box-shadow: 0 2px 8px rgba(26, 29, 38, .08); }
.btn-ok { background: var(--mint); color: #fff; }
.btn-danger { background: var(--coral-ink); color: #fff; }
.btn-wide { width: 100%; margin-top: 20px; }
.link-btn { color: var(--coral-ink); font-weight: 700; font-size: 14px; min-height: 44px; padding: 0 4px; border-radius: 8px; }

/* ---------- レシートの写真（紙の上に印字を重ねる）---------- */
.rc { position: relative; aspect-ratio: 8 / 11; width: 100%; overflow: hidden; background: #EEE; }
.rc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; }
.rc-user .rc-img { object-fit: contain; background: #2B2E38; }
.rc-paper { position: absolute; left: var(--px); top: var(--py); width: var(--pw); height: var(--ph); container-type: inline-size; }
.pr {
  position: absolute; inset: 0; padding: 9cqw 6.5cqw; font-family: var(--f-mono); font-size: 5.1cqw; line-height: 1.55; color: #2A2B33;
  mix-blend-mode: multiply; opacity: .9; letter-spacing: -.02em; overflow: hidden;
}
[data-paper="a"] .pr { padding-top: 14cqw; }
.pr > div { white-space: nowrap; overflow: hidden; }
.pr [data-t]::before { content: attr(data-t); white-space: pre; }
.pr-c { text-align: center; }
.pr-b { font-weight: 700; }
.pr-l { font-size: 6.6cqw; font-family: var(--f-ja); font-weight: 700; letter-spacing: .02em; margin-bottom: 1cqw; }
.pr-title { font-family: var(--f-ja); font-weight: 700; font-size: 7cqw; letter-spacing: .3em; margin: 1cqw 0; }
.pr-s { font-size: 4.3cqw; }
.pr-row { display: flex; justify-content: space-between; gap: 2cqw; }
.pr-row > span:first-child { overflow: hidden; text-overflow: clip; font-family: var(--f-ja); }
.pr-l1 { font-family: var(--f-ja); }
.pr-big { font-size: 7.6cqw; font-weight: 700; margin: 1.5cqw 0; }
.pr-big > span:first-child { font-weight: 700; }
.pr-rule { border-top: .5cqw dashed rgba(42, 43, 51, .55); margin: 2.4cqw 0; }

/* ---------- 申請一覧 ---------- */
.month { background: var(--coral); border-radius: var(--r-l); padding: 16px 18px 14px; color: var(--ink); position: relative; overflow: hidden; }
.month::after { content: ""; position: absolute; right: -40px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.month-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.month-l { margin: 0; font-size: 14px; font-weight: 700; word-break: keep-all; }
.month-link { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 700; min-height: 44px; padding: 0 6px 0 12px; margin: -10px -8px -10px 0; border-radius: 22px; position: relative; z-index: 1; }
.month-amt { margin: 0; font-family: var(--f-num); font-size: 44px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.month-pay { margin: 4px 0 12px; font-size: 14px; display: flex; gap: 6px; align-items: flex-start; }
.month-pay .ic { margin-top: 3px; }
.pipe { list-style: none; margin: 0; padding: 10px 6px 4px; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: 16px; position: relative; z-index: 1; }
.pipe-i { text-align: center; position: relative; }
.pipe-i + .pipe-i::before { content: ""; position: absolute; left: -22%; top: 14px; width: 44%; border-top: 2px dotted rgba(26, 29, 38, .3); }
.pipe-i b { display: block; font-family: var(--f-num); font-size: 22px; line-height: 1.2; color: #6B7080; }
.pipe-i.has b { color: var(--ink); }
.pipe-i span { font-size: 11px; font-weight: 700; color: var(--sub); }
.note-row { display: flex; gap: 10px; align-items: flex-start; background: var(--grp); border-radius: var(--r-m); padding: 10px 14px; margin: 0 0 12px; font-size: 14px; color: var(--ink); }
.ret-banner { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; border-radius: var(--r-m); background: var(--coral-wash); color: var(--coral-ink); }
.ret-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ret-t { font-weight: 700; font-size: 15px; color: var(--coral-ink); }
.ret-b { font-size: 14px; color: var(--ink); }
.seg-scroll { margin: 18px -16px 4px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
.seg-scroll::-webkit-scrollbar { display: none; }
.seg { display: inline-flex; gap: 6px; }
.seg-b { min-height: 40px; padding: 0 16px; border-radius: 20px; background: var(--grp); font-size: 14px; font-weight: 700; color: var(--sub); white-space: nowrap; transition: background .2s, color .2s, transform .12s; }
.seg-b.on { background: var(--ink); color: #fff; }
.seg-b:active { transform: scale(.95); }
.gh { font-size: 14px; font-weight: 700; color: var(--sub); margin: 18px 4px 6px; }
.rows { list-style: none; margin: 0; padding: 0; }
.row { position: relative; overflow: hidden; border-radius: var(--r-m); }
.row + .row { margin-top: 2px; }
.row:not(.sw-on) .row-del { visibility: hidden; }
.row-del { position: absolute; right: 0; top: 0; bottom: 0; width: 92px; background: var(--coral-ink); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; gap: 2px; }
.row-in { -webkit-user-drag: none; user-select: none; position: relative; display: grid; grid-template-columns: 54px 1fr auto; gap: 14px; align-items: center; padding: 10px 6px 10px 4px; background: var(--bg); transition: transform .3s var(--ease), background .15s; touch-action: pan-y; }
.row-in:active { background: #FAF8F7; }
.row + .row .row-in::before { content: ""; position: absolute; top: -1px; left: 72px; right: 0; border-top: .5px solid var(--line); }
.thumb { width: 54px; height: 70px; border-radius: 8px; overflow: hidden; transform: rotate(var(--rot, 0deg)); box-shadow: 0 2px 6px rgba(26, 29, 38, .16); }
.thumb .rc { width: 54px; }
.thumb-ic { display: grid; place-items: center; background: color-mix(in srgb, var(--cc) 12%, white); color: var(--cc); transform: none; box-shadow: none; }
.row-main { min-width: 0; display: flex; flex-direction: column; }
.row-store { font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-meta { font-size: 14px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.amt { font-family: var(--f-num); font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; white-space: nowrap; }
.amt-s { font-size: 16px; }
.pill { display: inline-block; padding: 1px 9px; border-radius: 10px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.st-draft { background: #EEEDF0; color: #4A4E5A; }
.st-sub { background: var(--amber-wash); color: var(--amber); }
.st-ok { background: var(--mint-wash); color: var(--mint-ink); }
.st-ret { background: var(--coral-wash); color: var(--coral-ink); }
.st-paid { background: var(--blue-wash); color: #2257BD; }
.foot-note { text-align: center; color: var(--sub); font-size: 14px; margin: 24px 0 0; }
.ptr { height: 0; overflow: hidden; display: grid; place-items: center; transition: height .25s; }
.ptr-s { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--coral-ink); }
.ptr.ready .ptr-s { border-color: var(--coral); border-top-color: var(--coral-ink); }
.ptr.spin .ptr-s { animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.cat { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px 2px 6px; border-radius: 12px; background: color-mix(in srgb, var(--cc) 11%, white); color: color-mix(in srgb, var(--cc) 82%, black); font-size: 13px; font-weight: 700; white-space: nowrap; }
.cat .ic { width: 16px; height: 16px; }

/* 空の状態・エラー */
.empty { text-align: center; padding: 18px 12px 8px; }
.empty img { width: 200px; height: 200px; object-fit: cover; border-radius: 50%; margin: 0 auto 10px; }
.empty-t { font-weight: 700; font-size: 18px; margin: 0; }
.empty-b { color: var(--sub); font-size: 15px; margin: 4px 0 16px; }
.err { text-align: center; padding: 60px 20px; }
.err-t { font-weight: 700; font-size: 18px; margin: 0; }
.err-b { color: var(--sub); margin: 4px 0 18px; }

/* ---------- 詳細 ---------- */
.dt-hero { display: grid; grid-template-columns: 44% 1fr; gap: 16px; align-items: center; background: var(--grp); border-radius: var(--r-l); padding: 16px; }
.dt-photo { position: relative; display: block; border-radius: 12px; overflow: hidden; transform: rotate(-1.5deg); box-shadow: 0 8px 20px rgba(26, 29, 38, .16); transition: transform .2s var(--spring); }
.dt-photo:active { transform: rotate(0) scale(.97); }
.zoom-hint { position: absolute; right: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 3px; padding: 3px 8px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; }
.dt-noimg { aspect-ratio: 8 / 11; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 10px; text-align: center; background: color-mix(in srgb, var(--cc) 10%, white); color: color-mix(in srgb, var(--cc) 85%, black); font-size: 14px; font-weight: 700; }
.dt-noimg .ic { width: 40px; height: 40px; }
.dt-sum { min-width: 0; }
.dt-amt { font-family: var(--f-num); font-weight: 800; font-size: 34px; line-height: 1.15; margin: 8px 0 2px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dt-store { font-weight: 700; margin: 0; font-size: 16px; line-height: 1.45; }
.dt-who { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 14px; color: var(--sub); }
.dt-who .av { width: 26px; height: 26px; font-size: 12px; }
.ret-box { margin-top: 14px; background: var(--coral-wash); border-radius: var(--r-m); padding: 12px 14px; }
.ret-h { margin: 0; display: flex; align-items: center; gap: 6px; color: var(--coral-ink); font-weight: 700; font-size: 14px; }
.ret-n { margin: 4px 0 0; font-size: 16px; }
.sec-h { font-size: 20px; font-weight: 700; margin: 26px 4px 10px; font-feature-settings: "palt"; }
.kv { margin: 0; border-radius: var(--r-m); background: var(--grp); padding: 2px 14px; }
.kv-r { display: grid; grid-template-columns: 6.5em 1fr; gap: 10px; padding: 11px 0; }
.kv-r + .kv-r { border-top: .5px solid var(--line); }
.kv dt { color: var(--sub); font-size: 14px; padding-top: 1px; }
.kv dd { margin: 0; font-size: 15px; min-width: 0; }
.miss { color: var(--coral-ink); font-weight: 700; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; font-size: 15px; }
.checks .ok { background: var(--mint-wash); color: #0F5E45; }
.checks .ng { background: var(--amber-wash); color: #7A4800; }
.checks .ic { margin-top: 2px; }
.tl { list-style: none; margin: 0; padding: 0 0 0 6px; }
.tl-i { position: relative; padding: 0 0 18px 26px; }
.tl-i::before { content: ""; position: absolute; left: 6px; top: 16px; bottom: -2px; border-left: 2px solid var(--line); }
.tl-i:last-child::before { display: none; }
.tl-dot { position: absolute; left: 0; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px var(--bg); }
.tl-approve .tl-dot { background: var(--mint); }
.tl-return .tl-dot { background: var(--coral-ink); }
.tl-pay .tl-dot { background: var(--blue); }
.tl-submit .tl-dot, .tl-resubmit .tl-dot { background: var(--coral); }
.tl-i.future .tl-dot { background: var(--bg); border: 2px dashed #8A8E99; }
.tl-t { margin: 0; font-weight: 700; font-size: 16px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.tl-who { font-weight: 500; font-size: 14px; color: var(--sub); }
.tl-at { margin: 0; font-size: 14px; color: var(--sub); font-family: var(--f-num); }
.tl-note { margin: 6px 0 0; background: var(--coral-wash); border-radius: 10px; padding: 8px 10px; font-size: 14px; }
.dt-actions { display: flex; gap: 10px; margin-top: 18px; }
.dt-actions .btn { flex: 1; padding: 0 12px; }
.zoom { padding: 0 12px; }
.zoom .rc { max-width: 360px; margin: 0 auto; border-radius: 14px; }
.zoom-close { display: flex; margin: 14px auto 0; width: calc(100% - 24px); }

/* ---------- 新規申請（ファインダー）---------- */
.pg-cap .sc { background: var(--bg); }
.vf { position: relative; height: min(52vh, 470px); border-radius: var(--r-xl); overflow: hidden; background: #E9E6E2; transition: height .45s var(--ease); isolation: isolate; }
.formed .vf { height: 210px; }
.edit .vf { height: 180px; }
.instant .vf, .instant .vf-photo, .instant .vf-tilt { transition: none !important; }
.vf-desk { position: absolute; inset: 0; background-size: cover; background-position: center; transition: opacity .4s; }
.has-photo .vf-desk { opacity: 0; }
.guide { position: absolute; left: 22%; right: 22%; top: 12%; bottom: 16%; border-radius: 10px; background: rgba(255, 255, 255, .25); box-shadow: 0 0 0 999px rgba(26, 29, 38, .06); }
.cn { position: absolute; width: 30px; height: 30px; border: 0 solid var(--coral); animation: breathe 1.8s ease-in-out infinite; }
.cn.tl { left: -4px; top: -4px; border-width: 4px 0 0 4px; border-radius: 10px 0 0 0; }
.cn.tr { right: -4px; top: -4px; border-width: 4px 4px 0 0; border-radius: 0 10px 0 0; }
.cn.bl { left: -4px; bottom: -4px; border-width: 0 0 4px 4px; border-radius: 0 0 0 10px; }
.cn.br { right: -4px; bottom: -4px; border-width: 0 4px 4px 0; border-radius: 0 0 10px 0; }
@keyframes breathe { 50% { transform: scale(.88); } }
.vf-photo { position: absolute; left: 0; top: 0; transform-origin: 0 0; transition: transform .55s var(--ease); }
.vf-tilt { transform: rotate(var(--tilt, 0deg)); transition: transform .5s var(--ease); }
.vf-tilt.flat { transform: none; }
.vf-photo .rc { background: transparent; }
.pc { position: absolute; width: 16px; height: 16px; border: 0 solid var(--coral); opacity: 0; transform: scale(2.6); transition: opacity .3s, transform .5s var(--spring); }
.pc-tl { left: -3px; top: -3px; border-width: 3px 0 0 3px; transform-origin: 0 0; }
.pc-tr { right: -3px; top: -3px; border-width: 3px 3px 0 0; transform-origin: 100% 0; }
.pc-bl { left: -3px; bottom: -3px; border-width: 0 0 3px 3px; transform-origin: 0 100%; }
.pc-br { right: -3px; bottom: -3px; border-width: 0 3px 3px 0; transform-origin: 100% 100%; }
.found .pc { opacity: 1; transform: none; }
.formed .pc { opacity: 0; }
.bin { position: absolute; left: 0; right: 0; top: 0; height: 100%; clip-path: inset(0 0 100% 0); background-repeat: no-repeat; filter: grayscale(1) contrast(1.3) brightness(1.16); pointer-events: none; z-index: 0; }
.pr { z-index: 1; }
.scanl { position: absolute; left: -8%; right: -8%; top: 0; height: 3px; background: var(--coral); box-shadow: 0 0 12px 3px rgba(255, 107, 91, .7), 0 0 30px 8px rgba(255, 107, 91, .3); opacity: 0; }
.binar .bin { clip-path: inset(0 0 0 0); transition: clip-path 1s linear; }
.binar .scanl { animation: scan 1s linear forwards; }
@keyframes scan { 0% { top: 0; opacity: 1; } 92% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.instant .bin { transition: none; }
.instant .scanl { display: none; }
.box { position: absolute; border: 2px solid var(--coral); border-radius: 4px; background: rgba(255, 107, 91, .12); opacity: 0; transform: scale(1.15); transition: opacity .2s, transform .35s var(--spring); }
.box.on { opacity: 1; transform: none; }
.box-t { position: absolute; right: calc(100% + 6px); top: 50%; transform: translateY(-50%); padding: 0 5px; border-radius: 4px; background: var(--coral); color: var(--ink); font: 700 10px/16px var(--f-ja); white-space: nowrap; }
.vf-status { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); margin: 0; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 20px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; white-space: nowrap; z-index: 3; transition: background .25s; }
.vf-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); animation: blink 1s infinite; }
.vf-status.ok .vf-dot { background: #5BD6A4; animation: none; }
.vf-status.warn { background: #7A4800; }
.vf-status.warn .vf-dot { background: #FFC86B; animation: none; }
.formed .vf-status { display: none; }
@keyframes blink { 50% { opacity: .3; } }
.cap-ctrl { transition: opacity .3s, transform .3s; }
.cap-ctrl.gone { display: none; }
.cap-h { margin: 18px 4px 10px; font-weight: 700; font-size: 16px; }
.samples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.smp { display: flex; flex-direction: column; align-items: stretch; text-align: left; padding: 8px; border-radius: 18px; background: var(--grp); transition: transform .15s var(--spring); }
.smp:active { transform: scale(.95); }
.smp-ph { display: block; height: 104px; border-radius: 10px; overflow: hidden; position: relative; }
.smp-ph .rc { position: absolute; left: 50%; top: 50%; width: 140%; transform: translate(-50%, -46%); }
.smp-l { font-weight: 700; font-size: 15px; margin: 8px 2px 0; }
.smp-h { font-size: 12px; color: var(--sub); margin: 0 2px; line-height: 1.4; word-break: keep-all; }
.shoot-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-top: 20px; }
.lib { justify-self: start; display: inline-flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; font-weight: 700; color: var(--ink); min-width: 64px; min-height: 56px; justify-content: center; border-radius: 14px; cursor: pointer; }
.shutter { width: 78px; height: 78px; border-radius: 50%; border: 4px solid var(--coral); display: grid; place-items: center; cursor: pointer; transition: transform .12s; }
.shutter-in { width: 62px; height: 62px; border-radius: 50%; background: var(--coral); }
.shutter:active { transform: scale(.92); }
.shoot-tip { font-size: 12px; color: var(--sub); line-height: 1.45; word-break: keep-all; }
.fly { position: fixed; left: 0; top: 0; z-index: 60; padding: 4px 12px; border-radius: 10px; background: var(--coral); color: var(--ink); font: 700 15px/1.5 var(--f-mono); box-shadow: 0 6px 18px rgba(255, 107, 91, .5); pointer-events: none; white-space: nowrap; }

/* ---------- フォーム ---------- */
.form { padding-top: 14px; animation: rise .45s var(--ease) both; }
.instant .form { animation: none; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
.f-banner { display: flex; gap: 10px; align-items: flex-start; border-radius: var(--r-m); padding: 10px 14px; font-size: 14px; margin-bottom: 14px; }
.f-banner p { margin: 0; }
.f-banner .ic { margin-top: 2px; }
.f-banner.ok { background: var(--mint-wash); color: #0F5E45; }
.f-banner.warn { background: var(--amber-wash); color: #6B3F00; }
.f-banner-s { display: block; font-size: 13px; }
.f-amt-wrap { background: var(--grp); border-radius: var(--r-l); padding: 12px 16px 10px; }
.f-amt-l { font-size: 14px; color: var(--sub); font-weight: 700; }
.f-amt { display: flex; align-items: baseline; gap: 4px; }
.f-yen { font-family: var(--f-num); font-size: 30px; font-weight: 700; }
.f-amt-in { flex: 1; min-width: 0; border: 0; background: none; font-family: var(--f-num); font-weight: 800; font-size: 44px; line-height: 1.2; padding: 0; outline: none; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.f-amt-in::placeholder { color: #6B7080; }
.flash { animation: flash 1s ease-out; }
@keyframes flash { 0% { box-shadow: 0 0 0 3px var(--coral); } 100% { box-shadow: 0 0 0 0 rgba(255, 107, 91, 0); } }
.f-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
.fld { display: block; margin-top: 16px; }
.fld-l { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--sub); margin: 0 4px 6px; }
.fld-ai { display: inline-flex; align-items: center; gap: 2px; color: var(--coral-ink); font-size: 12px; }
.fld input, .fld textarea { width: 100%; min-height: 50px; border: 1.5px solid transparent; background: var(--grp); border-radius: var(--r-m); padding: 12px 14px; font-size: 16px; outline: none; transition: border-color .2s, background .2s; }
.fld textarea { resize: none; line-height: 1.5; }
.fld input:focus, .fld textarea:focus { border-color: var(--coral); background: #fff; }
.fld input::placeholder, .fld textarea::placeholder { color: #767A86; }
.bad input, .bad textarea, .bad .f-amt-in { border-color: var(--coral-ink); }
.f-amt-wrap.bad { box-shadow: inset 0 0 0 2px var(--coral-ink); }
.fld-err { display: block; color: var(--coral-ink); font-size: 14px; font-weight: 700; margin: 6px 4px 0; }
.sugg { display: grid; gap: 6px; }
.sugg-wait { margin: 0; padding: 14px; border-radius: var(--r-m); background: var(--grp); color: var(--sub); font-size: 14px; }
.sg { display: grid; grid-template-columns: auto auto 1fr auto; gap: 10px; align-items: center; min-height: 52px; padding: 6px 14px 6px 8px; border-radius: var(--r-m); background: var(--grp); border: 2px solid transparent; text-align: left; transition: border-color .2s, background .2s, transform .12s; }
.sg:active { transform: scale(.98); }
.sg.on { border-color: var(--cc); background: color-mix(in srgb, var(--cc) 8%, white); }
.sg-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--cc) 14%, white); color: color-mix(in srgb, var(--cc) 85%, black); }
.sg-n { font-weight: 700; font-size: 15px; white-space: nowrap; }
.sg-bar { height: 6px; border-radius: 3px; background: rgba(26, 29, 38, .08); overflow: hidden; }
.sg-bar span { display: block; height: 100%; width: var(--w); background: var(--cc); border-radius: 3px; }
.sugg.anim .sg { animation: rise .4s var(--ease) both; animation-delay: var(--d); }
.sugg.anim .sg-bar span { animation: grow .8s var(--ease) both; animation-delay: calc(var(--d) + .15s); }
@keyframes grow { from { width: 0; } }
.sg-p { font-family: var(--f-num); font-weight: 700; font-size: 15px; min-width: 3.2em; text-align: right; }
.segc { display: grid; grid-template-columns: repeat(3, 1fr); padding: 3px; border-radius: 14px; background: var(--grp); }
.segc-b { min-height: 44px; border-radius: 11px; font-size: 14px; font-weight: 700; color: var(--sub); transition: background .2s, color .2s, box-shadow .2s; white-space: nowrap; }
.segc-b.on { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(26, 29, 38, .12); }
.stepper { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.st-b { width: 44px; height: 44px; border-radius: 50%; background: var(--grp); font-size: 22px; font-weight: 700; line-height: 1; transition: transform .12s; }
.st-b:active { transform: scale(.9); }
.st-v { font-family: var(--f-num); font-weight: 700; font-size: 20px; min-width: 2.6em; text-align: center; }
.st-per { margin-left: auto; font-size: 14px; color: var(--sub); font-weight: 700; white-space: nowrap; }
.pol-warn { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; margin: 8px 0 0; padding: 8px 12px; border-radius: 12px; background: var(--amber-wash); color: #6B3F00; font-size: 14px; }
.pol-warn .link-btn { min-height: 36px; }
.proj { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 4px; scrollbar-width: none; }
.proj::-webkit-scrollbar { display: none; }
.proj-b { flex: none; display: flex; flex-direction: column; align-items: flex-start; min-height: 58px; padding: 8px 14px; border-radius: var(--r-m); background: var(--grp); border: 2px solid transparent; text-align: left; max-width: 180px; transition: border-color .2s; }
.proj-b.on { border-color: var(--ink); background: #fff; }
.proj-c { font-family: var(--f-mono); font-weight: 700; font-size: 13px; }
.proj-n { font-size: 13px; color: var(--sub); line-height: 1.35; }
.f-route { display: flex; align-items: center; gap: 6px; color: var(--sub); font-size: 14px; margin: 18px 4px 0; flex-wrap: wrap; }
.f-btns { position: sticky; bottom: 0; display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin: 18px -16px calc(-28px - var(--sb)); padding: 12px 16px calc(14px + var(--sb)); background: linear-gradient(rgba(255, 255, 255, 0), #fff 22%); }
.f-btns .btn { padding: 0 12px; }

/* ---------- 承認 ---------- */
.ap-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 20px; background: #E9E7E4; }
.apm { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 16px; font-weight: 700; font-size: 15px; color: var(--sub); transition: background .25s, color .25s, box-shadow .25s; }
.apm .av { width: 28px; height: 28px; font-size: 12px; }
.apm.on { background: #fff; color: var(--ink); box-shadow: 0 2px 10px rgba(26, 29, 38, .12); }
.ap-count { display: flex; align-items: baseline; gap: 6px; margin: 18px 4px 10px; font-size: 15px; font-weight: 700; flex-wrap: wrap; }
.ap-count b { font-family: var(--f-num); font-size: 28px; line-height: 1; color: var(--coral-ink); }
.stack { position: relative; height: 392px; }
.card {
  position: absolute; left: 0; right: 0; top: 0; height: 362px; overflow: hidden; background: #fff; border-radius: 26px; padding: 14px; box-shadow: 0 12px 30px rgba(26, 29, 38, .12);
  transform: translateY(calc(var(--i) * 14px)) scale(calc(1 - var(--i) * .045)); transform-origin: 50% 100%; transition: transform .35s var(--spring); touch-action: pan-y; user-select: none; cursor: grab;
}
.card[data-i="1"], .card[data-i="2"] { pointer-events: none; }
.card[data-i="2"] { opacity: .7; }
.locked .card { cursor: default; }
.card-h { display: flex; align-items: center; gap: 10px; }
.card-who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.card-n { font-weight: 700; font-size: 15px; }
.card-d { font-size: 13px; color: var(--sub); }
.card-body { display: grid; grid-template-columns: 112px 1fr; gap: 14px; margin-top: 12px; align-items: start; }
.card-ph { border-radius: 12px; overflow: hidden; box-shadow: 0 3px 10px rgba(26, 29, 38, .14); }
.card-noimg { aspect-ratio: 8 / 11; display: grid; place-items: center; background: var(--blue-wash); color: var(--blue); }
.card-noimg .ic { width: 36px; height: 36px; }
.card-amt { font-family: var(--f-num); font-weight: 800; font-size: 32px; line-height: 1.1; margin: 0 0 4px; letter-spacing: -.02em; }
.card-store { font-weight: 700; margin: 0; font-size: 16px; line-height: 1.45; }
.card-p { margin: 4px 0 0; font-size: 14px; line-height: 1.5; }
.card-meta { margin: 6px 0 0; font-size: 13px; color: var(--sub); display: flex; flex-wrap: wrap; gap: 0 8px; }
.card-chk { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 3px; }
.card-chk li { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; line-height: 1.5; }
.card-chk .ic { margin-top: 2px; }
.card-chk .ok { color: #0F5E45; }
.card-chk .ng { color: #7A4800; font-weight: 700; }
.card-warn { display: none; }
.stamp { position: absolute; top: 26px; z-index: 2; padding: 6px 16px; border: 4px solid; border-radius: 12px; font-weight: 700; font-size: 28px; letter-spacing: .1em; opacity: 0; pointer-events: none; background: rgba(255, 255, 255, .92); }
.stamp-ok { left: 20px; color: var(--mint); transform: rotate(-14deg); opacity: var(--ok, 0); }
.stamp-ng { right: 20px; color: var(--coral-ink); transform: rotate(12deg); opacity: var(--ng, 0); }
.show-ok .stamp-ok { opacity: 1; }
.show-ng .stamp-ng { opacity: 1; }
.ap-btns { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; margin-top: 8px; align-items: center; }
.ap-b { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 56px; border-radius: 28px; font-weight: 700; font-size: 16px; transition: transform .12s; }
.ap-b:active { transform: scale(.94); }
.ap-no { background: #fff; color: var(--coral-ink); box-shadow: inset 0 0 0 2px var(--coral-wash); }
.ap-info { width: 56px; background: #fff; color: var(--ink); }
.ap-info span { display: none; }
.ap-yes { background: var(--mint); color: #fff; }
.ap-hint { text-align: center; font-size: 13px; color: var(--sub); margin: 10px 0 0; }
.ap-lock { margin-top: 8px; padding: 14px; border-radius: var(--r-l); background: #fff; text-align: center; }
.ap-lock p { margin: 0 0 10px; font-size: 15px; }
.ap-empty img { border-radius: 24px; }
.done-list { list-style: none; margin: 0; padding: 0; background: #fff; border-radius: var(--r-l); overflow: hidden; }
.done-i { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.done-list li + li .done-i { border-top: .5px solid var(--line); }
.done-m { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 15px; font-weight: 700; }
.done-m > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.done-s { font-size: 13px; font-weight: 500; color: var(--sub); }
.done-r { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }

/* ---------- レポート ---------- */
.mswitch { display: flex; align-items: center; justify-content: space-between; background: var(--grp); border-radius: 26px; padding: 4px; }
.ms-b { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); }
.ms-b.off { opacity: .35; pointer-events: none; }
.ms-t { margin: 0; display: flex; align-items: baseline; gap: 6px; }
.ms-y { font-family: var(--f-num); font-weight: 500; color: var(--sub); font-size: 15px; }
.ms-m { font-family: var(--f-num); font-weight: 800; font-size: 24px; }
.rp-hero { margin-top: 14px; border-radius: var(--r-l); background-size: cover; background-position: right center; min-height: 168px; display: flex; align-items: center; padding: 14px; }
.rp-plate { background: #fff; border-radius: 18px; padding: 12px 16px; box-shadow: 0 6px 18px rgba(26, 29, 38, .08); }
.rp-l { margin: 0; font-size: 14px; font-weight: 700; color: var(--sub); }
.rp-amt { margin: 0; font-family: var(--f-num); font-weight: 800; font-size: 40px; line-height: 1.15; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.rp-sub { margin: 2px 0 0; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 14px; font-weight: 700; }
.rp-diff.up { color: var(--coral-ink); }
.rp-diff.down { color: var(--mint); }
.stackbar { display: flex; height: 18px; border-radius: 9px; overflow: hidden; gap: 2px; }
.stackbar span { background: var(--cc); }
.legend { list-style: none; margin: 10px 0 0; padding: 0; }
.legend li { display: grid; grid-template-columns: auto 1fr auto 3em; gap: 10px; align-items: center; padding: 9px 2px; }
.legend li + li { border-top: .5px solid var(--line); }
.lg-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--cc) 14%, white); color: color-mix(in srgb, var(--cc) 85%, black); }
.lg-n { font-weight: 700; font-size: 15px; display: flex; flex-direction: column; line-height: 1.35; }
.lg-c { font-weight: 500; font-size: 13px; color: var(--sub); }
.lg-v { font-family: var(--f-num); font-weight: 700; font-size: 16px; }
.lg-p { font-family: var(--f-num); font-size: 14px; color: var(--sub); text-align: right; }
.days { display: grid; grid-template-columns: repeat(31, 1fr); gap: 3px; height: 110px; align-items: end; padding: 10px; background: var(--grp); border-radius: var(--r-m); }
.day { height: var(--h); border-radius: 3px; background: #D5D2CE; }
.day.has { background: var(--coral); }
.day.today { box-shadow: 0 0 0 2px var(--ink); }
.days-ax { display: flex; justify-content: space-between; font-size: 12px; color: var(--sub); padding: 4px 10px 0; font-family: var(--f-num); }
.st-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.st-tile { border-radius: var(--r-m); padding: 10px 14px; }
.st-tile p { margin: 0; }
.st-n { font-size: 13px; font-weight: 700; }
.st-v { font-family: var(--f-num); font-weight: 800; font-size: 22px; line-height: 1.3; }
.st-c { font-size: 13px; }
.rp-pay { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px 14px; border-radius: var(--r-m); background: var(--blue-wash); color: #1D4EA8; font-size: 15px; }
.rp-pay p { margin: 0; }
.rp-pay .ic { margin-top: 2px; }
.muted-box { padding: 14px; border-radius: var(--r-m); background: var(--grp); color: var(--sub); margin: 0; }

/* ---------- 設定 ---------- */
.prof { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px; border-radius: var(--r-l); background: #fff; text-align: left; }
.prof-t { flex: 1; display: flex; flex-direction: column; }
.prof-n { font-weight: 700; font-size: 18px; }
.prof-s { font-size: 14px; color: var(--sub); }
.prof-sw { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 16px; background: var(--coral-wash); color: var(--coral-ink); font-size: 13px; font-weight: 700; }
.grp-h { font-size: 14px; font-weight: 700; color: var(--sub); margin: 24px 16px 6px; }
.grp { background: #fff; border-radius: var(--r-l); overflow: hidden; }
.grp + .grp { margin-top: 18px; }
.cell { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 8px 14px; text-align: left; position: relative; font-size: 16px; }
.cell + .cell::before { content: ""; position: absolute; top: 0; left: 58px; right: 0; border-top: .5px solid var(--line); }
.cell-ic { width: 32px; height: 32px; border-radius: 9px; background: var(--cc); color: #fff; display: grid; place-items: center; flex: none; }
.cell-ic[style*="#FF6B5B"] { color: var(--ink); }
.cell-t { flex: 1; min-width: 0; }
.cell-v { color: var(--sub); font-size: 15px; text-align: right; }
.ic-chev { color: #8A8E99; }
.cell-danger .cell-t { color: var(--coral-ink); font-weight: 700; }
.grp-foot { font-size: 13px; color: var(--sub); margin: 8px 16px 0; }
.sw { appearance: none; -webkit-appearance: none; width: 52px; height: 32px; border-radius: 16px; background: #D9D6D2; position: relative; flex: none; cursor: pointer; transition: background .25s; margin: 0; }
.sw::after { content: ""; position: absolute; left: 2px; top: 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); }
.sw:checked { background: var(--mint); }
.sw:checked::after { transform: translateX(20px); }
.grp-text { padding: 14px 16px; font-size: 15px; }
.grp-text p { margin: 0; }
.grp-text p + p { margin-top: 10px; color: var(--sub); }
.tech { margin: 0; padding-left: 1.2em; }
.tech li + li { margin-top: 4px; }
.ab-hero { text-align: center; padding: 8px 0 22px; }
.ab-hero img { width: 104px; height: 104px; border-radius: 24px; margin: 0 auto 10px; box-shadow: 0 10px 28px rgba(201, 58, 43, .25); }
.ab-n { margin: 0; font-weight: 700; font-size: 22px; }
.ab-v { margin: 0; font-size: 14px; color: var(--sub); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin-top: 18px; padding: 16px 18px; border-radius: var(--r-l); background: var(--coral); color: var(--ink); }
.cta-t { font-weight: 700; font-size: 17px; flex: 1 1 70%; }
.cta-s { font-size: 14px; order: 3; flex-basis: 100%; }

/* ---------- シート・トースト・アラート ---------- */
.scrim { position: absolute; inset: 0; z-index: 30; background: rgba(26, 29, 38, .32); opacity: 0; transition: opacity .3s; }
.scrim.on { opacity: 1; }
.sheet {
  position: absolute; z-index: 31; left: 8px; right: 8px; bottom: calc(8px + var(--sb)); max-height: 82%; overflow-y: auto; overscroll-behavior: contain;
  background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(24px) saturate(1.8); backdrop-filter: blur(24px) saturate(1.8);
  border-radius: 32px; padding: 6px 0 16px; box-shadow: 0 -10px 40px rgba(26, 29, 38, .18); transform: translateY(110%); transition: transform .42s var(--ease);
}
.sheet.tall { max-height: 92%; background: #fff; }
.sheet.on { transform: none; }
.sh-grab { width: 40px; height: 5px; border-radius: 3px; background: #C9C6C2; margin: 4px auto 8px; touch-action: none; cursor: grab; position: relative; }
.sh-grab::after { content: ""; position: absolute; inset: -14px -40px; }
.sh-body { padding: 4px 18px 0; }
.sh-t { margin: 0 0 4px; font-size: 20px; font-weight: 700; font-feature-settings: "palt"; }
.sh-lead { margin: 0 0 14px; font-size: 15px; color: var(--sub); }
.sh-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.sh-btns .btn { padding: 0 10px; }
.mode-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 18px; text-align: left; margin-top: 6px; border: 2px solid transparent; }
.mode-row.on { border-color: var(--coral); background: var(--coral-wash); }
.mode-txt { flex: 1; display: flex; flex-direction: column; }
.mode-n { font-weight: 700; font-size: 17px; }
.mode-s { font-size: 14px; color: var(--sub); }
.ic-ok { color: var(--coral-ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 6px 14px; border-radius: 20px; background: var(--grp); font-size: 14px; font-weight: 700; text-align: left; border: 2px solid transparent; transition: background .2s, border-color .2s; }
.chip.on { background: var(--coral-wash); border-color: var(--coral-ink); color: var(--coral-ink); }
.opt { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 54px; padding: 8px 12px; border-radius: 14px; text-align: left; font-size: 16px; }
.opt.on { background: var(--coral-wash); }
.done { text-align: center; }
.done-img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; margin: 4px auto 8px; animation: pop .5s var(--spring) both; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.done-t { margin: 0; font-weight: 700; font-size: 22px; }
.done-amt { margin: 0; font-family: var(--f-num); font-weight: 800; font-size: 36px; line-height: 1.2; }
.done-b { margin: 2px 0 0; font-weight: 700; font-size: 15px; }
.done-n { margin: 8px 0 0; font-size: 14px; color: var(--sub); }

.toast {
  position: absolute; z-index: 40; left: 16px; right: 16px; bottom: calc(92px + var(--sb)); display: flex; align-items: center; gap: 10px;
  padding: 12px 10px 12px 18px; min-height: 52px; border-radius: 18px; background: var(--ink); color: #fff; font-size: 15px;
  transform: translateY(20px); opacity: 0; pointer-events: none; transition: transform .35s var(--spring), opacity .2s;
}
.toast.on { transform: none; opacity: 1; pointer-events: auto; }
.toast-m { flex: 1; }
.toast-a { color: var(--coral-2); font-weight: 700; min-height: 40px; padding: 0 10px; border-radius: 12px; white-space: nowrap; }
.alert-wrap { position: absolute; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(26, 29, 38, .3); opacity: 0; transition: opacity .2s; padding: 24px; }
.alert-wrap.on { opacity: 1; }
.alert { width: min(300px, 100%); background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-radius: 22px; text-align: center; overflow: hidden; transform: scale(1.08); transition: transform .25s var(--spring); }
.alert-wrap.on .alert { transform: none; }
.alert-t { margin: 18px 16px 4px; font-weight: 700; font-size: 17px; }
.alert-b { margin: 0 16px 16px; font-size: 14px; color: var(--sub); }
.alert-btns { display: grid; grid-template-columns: 1fr 1fr; border-top: .5px solid var(--line); }
.alert-btns button { min-height: 48px; font-size: 16px; color: var(--coral-ink); }
.alert-btns button + button { border-left: .5px solid var(--line); font-weight: 700; }
.alert-ok.danger { color: #B3261E; }

/* ---------- スプラッシュ・オンボーディング ---------- */
.splash { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: #fff; transition: opacity .3s; }
.splash.out { opacity: 0; }
.splash img { width: 104px; height: 104px; border-radius: 24px; box-shadow: 0 14px 34px rgba(201, 58, 43, .3); animation: pop .6s var(--spring) both; }
.splash-name { margin: 0; font-weight: 700; font-size: 20px; letter-spacing: .06em; }
.onb { position: absolute; inset: 0; z-index: 90; background: #fff; display: flex; flex-direction: column; transition: opacity .28s; }
.onb.out { opacity: 0; }
.onb-skip { position: absolute; z-index: 2; right: 12px; top: calc(8px + var(--st)); min-height: 44px; padding: 0 14px; border-radius: 22px; background: rgba(255, 255, 255, .92); font-weight: 700; color: var(--ink); }
.onb-img { flex: 1; min-height: 0; overflow: hidden; }
.onb-img img { width: 100%; height: 100%; object-fit: cover; animation: kb 6s ease-out both; }
@keyframes kb { from { transform: scale(1.08); } }
.onb-txt { padding: 22px 24px calc(24px + var(--sb)); }
.onb-t { margin: 0; font-size: 28px; font-weight: 700; line-height: 1.35; font-feature-settings: "palt"; word-break: keep-all; }
.onb-b { margin: 8px 0 0; font-size: 16px; color: var(--sub); }
.dots { display: flex; gap: 6px; margin: 18px 0; }
.dots span { width: 8px; height: 8px; border-radius: 4px; background: #D9D6D2; transition: width .3s; }
.dots span.on { width: 24px; background: var(--coral); }
.onb-next { width: 100%; }
.nojs, .fatal { position: fixed; inset: auto 16px 16px; z-index: 200; background: #fff; padding: 16px; border-radius: 16px; box-shadow: var(--sh-float); font-size: 15px; }
.fatal-t { font-weight: 700; margin: 0 0 4px; }
.fatal a { color: var(--coral-ink); font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
  .cn { animation: none; }
}
