/* たびしおり — 旅行雑誌・切手とスタンプ（海青×夕日橙×クラフト） */
:root {
  --sea: #0e4c74;
  --sea-2: #1f6f9e;
  --sky: #d7eaf3;
  --sun: #e8743b;
  --sun-ink: #a9471a;
  --sun-wash: #fbe3d4;
  --kraft: #c8a27a;
  --kraft-lt: #ecdfc9;
  --kraft-dk: #6b4a2b;
  --bg: #eef2f1;
  --paper: #fbfcfb;
  --ink: #18262f;
  --ink-2: #3e4d56;
  --line: #cdd7d7;
  --danger: #b3261e;
  --dela: "Dela Gothic One", "Hiragino Sans", sans-serif;
  --body: "Zen Kaku Gothic Antique", "Hiragino Sans", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
  --hand: "Yomogi", "Zen Kaku Gothic Antique", sans-serif;
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
  --ease: cubic-bezier(.22, .8, .26, 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(--body); color: var(--ink); background: var(--bg); font-size: 16px; line-height: 1.6; line-break: strict; word-break: normal; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; -webkit-user-drag: none; }
h1, h2, h3, .btn, .pk, .brand, .pass-h, .th-h, .stop-t b, .sh-t, .ob-t, .empty-t, .ms-t, .sl-t b, .pi-n, .cost-t b {
  word-break: keep-all; overflow-wrap: anywhere; font-feature-settings: "palt";
}
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nw { white-space: nowrap; }
.g { width: 24px; height: 24px; flex: none; }
.g-s { width: 18px; height: 18px; flex: none; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 10px; }

.app { position: fixed; inset: 0; margin: 0 auto; max-width: 430px; height: 100dvh; overflow: hidden; background: var(--bg); }
@media (min-width: 600px) {
  body { background: var(--sea) repeating-linear-gradient(45deg, rgba(255, 255, 255, .04) 0 12px, transparent 12px 24px); }
  .app { box-shadow: 0 0 0 10px #f4efe6, 0 30px 80px rgba(0, 0, 0, .45); }
}
.stage { position: absolute; inset: 0; }
.pg { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bg); }
.pg.is-out { pointer-events: none; }
.scroll { flex: 1; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding: 0 16px 32px; }
.pg-trip .scroll { padding-bottom: calc(110px + var(--sb)); }
.in-open { animation: inOpen .42s var(--ease) both; z-index: 2; }
.out-open { animation: outOpen .3s ease both; }
.in-close { animation: fadeIn .3s ease both; }
.out-close { animation: outClose .34s var(--ease) both; z-index: 2; }
.in-tab .scroll { animation: tabIn .3s var(--ease) both; }
.out-tab { animation: outFade .12s linear both; }
.in-fade { animation: fadeIn .26s ease both; }
.out-fade { animation: outFade .18s linear both; }
@keyframes inOpen { from { opacity: 0; transform: translateY(34px) scale(.97) rotate(-.6deg); } }
@keyframes outOpen { to { opacity: 0; transform: scale(.97); } }
@keyframes outClose { to { opacity: 0; transform: translateY(46px) rotate(.8deg); } }
@keyframes tabIn { from { opacity: 0; transform: translateY(10px); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes outFade { to { opacity: 0; } }

/* ---- 共通の部品 ---- */
.rbtn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--sea); box-shadow: inset 0 0 0 1.5px var(--line); flex: none; transition: transform .2s var(--bounce); }
.rbtn:active { transform: scale(.9); }
.rbtn.on-sea { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: none; }
.rbtn.sm { width: 44px; height: 44px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 18px; border-radius: 16px; font-size: 15px; font-weight: 700; transition: transform .18s var(--bounce), filter .15s; }
.btn:active { transform: scale(.96); filter: brightness(.95); }
.btn[disabled] { opacity: .4; pointer-events: none; }
.btn.wide { width: 100%; }
.btn.sea { background: var(--sea); color: #fff; }
.btn.ghost { background: #fff; color: var(--sea); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.danger { background: #fff; color: var(--danger); box-shadow: inset 0 0 0 1.5px #e6c3bf; }
.btn.danger.fill { background: var(--danger); color: #fff; box-shadow: none; }
.stk { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--t, var(--sea)); color: #fff; font-size: 14px; font-weight: 700; box-shadow: 0 0 0 2px #fff; flex: none; }
.stk.big { width: 54px; height: 54px; font-size: 22px; }
.stk.none { background: #fff; color: var(--ink-2); box-shadow: inset 0 0 0 1.5px #9aa9ae; font-size: 13px; }
.stks { display: flex; margin-top: 8px; }
.stks .stk + .stk { margin-left: -6px; }
.pm { fill: none; stroke: currentColor; stroke-width: 2.6; }
.stamp-img {
  padding: 8px; background: #fff; filter: drop-shadow(0 4px 8px rgba(14, 40, 60, .18));
  -webkit-mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle 4px, #0000 92%, #000) -6px -6px / 12px 12px round;
  mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle 4px, #0000 92%, #000) -6px -6px / 12px 12px round;
}
.stamp-img img { width: 100%; height: 100%; object-fit: cover; }
.sec { font-weight: 700; font-size: 19px; color: var(--sea); margin: 28px 4px 12px; letter-spacing: .04em; display: flex; align-items: center; gap: 8px; }
.sec::before { content: ""; width: 18px; height: 4px; border-radius: 2px; background: var(--sun); }
.sec.in { margin: 26px 4px 12px; }
.empty-card { background: #fff; border-radius: 22px; padding: 24px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.empty-t { font-size: 17px; font-weight: 700; }
.empty-s { font-size: 14px; color: var(--ink-2); margin-bottom: 8px; }
.fine { font-size: 13px; color: var(--ink-2); line-height: 1.7; margin: 16px 4px 0; }

/* ---- 旅一覧 ---- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(12px + var(--st)) 16px 10px; background: var(--bg); position: relative; z-index: 2; transition: box-shadow .2s; }
.top.is-sc { box-shadow: 0 6px 14px -10px rgba(14, 40, 60, .35); }
.brand { font-family: var(--dela); font-size: 26px; color: var(--sea); letter-spacing: .04em; display: flex; align-items: center; gap: 10px; }
.brand::before { content: ""; width: 26px; height: 30px; background: var(--sun); -webkit-mask: radial-gradient(circle 3px, #0000 92%, #000) -4px -4px / 8px 8px round; mask: radial-gradient(circle 3px, #0000 92%, #000) -4px -4px / 8px 8px round; transform: rotate(-8deg); }
.top.sub { justify-content: flex-start; }
.top-h { font-weight: 700; font-size: 21px; }
.count { position: relative; overflow: hidden; padding: 20px 22px 22px; border-radius: 28px; background: var(--sea); color: #fff; margin-top: 4px; }
.count-k { font-size: 14px; color: #d5e6f1; font-weight: 700; }
.count-v { display: flex; align-items: baseline; gap: 6px; }
.count-v b { font-size: 92px; line-height: .95; font-weight: 500; letter-spacing: -.04em; }
.count-v span { font-family: var(--dela); font-size: 24px; }
.count-s { font-size: 15px; color: #e6f0f6; margin-top: 6px; }
.hand { display: block; font-family: var(--hand); font-size: 17px; color: #ffe0cc; margin-top: 4px; transform: rotate(-1.5deg); transform-origin: left; }
.count-pm { position: absolute; right: -18px; top: -14px; width: 150px; height: 150px; color: rgba(255, 255, 255, .22); transform: rotate(14deg); }
.pass { display: block; position: relative; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 1px 0 rgba(14, 40, 60, .06), 0 14px 30px -18px rgba(14, 40, 60, .45); margin-bottom: 14px; transition: transform .2s var(--bounce); }
.pass:active { transform: scale(.98) rotate(-.4deg); }
.pass-main { display: grid; grid-template-columns: 118px 1fr; gap: 14px; padding: 16px 14px 14px; }
.pass-main .stamp-img { aspect-ratio: 5 / 6; transform: rotate(-3deg); }
.pass-k { font-size: 13px; color: var(--sun-ink); font-weight: 500; letter-spacing: .06em; }
.pass-k .nw { font-family: var(--body); font-weight: 700; letter-spacing: 0; }
.pass-h { font-family: var(--dela); font-weight: 400; font-size: 20px; line-height: 1.3; margin-top: 2px; }
.pass-p { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ink-2); margin-top: 4px; min-width: 0; }
.pass-p span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pass-t { min-width: 0; }
.pass-d { font-size: 16px; color: var(--sea); margin-top: 6px; display: flex; align-items: baseline; gap: 6px; }
.pass-n { font-family: var(--body); font-size: 13px; color: var(--ink-2); margin-left: 4px; }
.pass-stub { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); padding: 12px 14px 14px; background: #f5f8f8; border-top: 2px dashed var(--line); }
.pass-stub::before, .pass-stub::after { content: ""; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); }
.pass-stub::before { left: -10px; }
.pass-stub::after { right: -10px; }
.pass-stub div { text-align: center; }
.pass-stub div + div { border-left: 1px solid var(--line); }
.pass-stub .mono { font-size: 17px; color: var(--sea); font-weight: 500; }
.pass-stub p:last-child { font-size: 12px; color: var(--ink-2); font-weight: 700; }
.newtrip { width: 100%; min-height: 62px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 22px; box-shadow: inset 0 0 0 2px var(--sea-2); color: var(--sea); font-size: 16px; font-weight: 700; background: repeating-linear-gradient(-45deg, transparent 0 10px, rgba(31, 111, 158, .05) 10px 20px); transition: transform .2s var(--bounce); }
.newtrip:active { transform: scale(.97); }
.memories { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; padding: 4px 4px 8px; }
.memo-stamp { position: relative; display: block; transform: rotate(var(--r)); transition: transform .25s var(--bounce); }
.memo-stamp:active { transform: rotate(0) scale(.96); }
.memo-stamp .stamp-img { aspect-ratio: 4 / 3; }
.pm-on { position: absolute; right: -12px; top: 18%; width: 84px; height: 84px; color: rgba(169, 71, 26, .8); transform: rotate(-18deg); }
.ms-t { font-weight: 700; font-size: 16px; margin-top: 10px; }
.ms-d { font-size: 13px; color: var(--ink-2); }

/* ---- 旅のヘッダーと下のタブ（切手） ---- */
.th { position: relative; display: flex; align-items: center; gap: 10px; padding: calc(10px + var(--st)) 14px 14px 12px; background: var(--sea); color: #fff; z-index: 2; }
.th::after { content: ""; position: absolute; left: 22px; bottom: -9px; width: 86px; height: 20px; background: rgba(232, 116, 59, .85); transform: rotate(-3deg); background-image: repeating-linear-gradient(90deg, transparent 0 9px, rgba(255, 255, 255, .25) 9px 13px); }
.th-t { flex: 1; min-width: 0; }
.th-h { font-weight: 700; font-size: 18px; line-height: 1.35; letter-spacing: .02em; }
.th-d { font-size: 13px; color: #d5e6f1; }
.th-stamp { width: 54px; height: 54px; padding: 4px; background: #fff; transform: rotate(6deg); flex: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle 2.5px, #0000 92%, #000) -4px -4px / 8px 8px round;
  mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle 2.5px, #0000 92%, #000) -4px -4px / 8px 8px round; }
.th-stamp img { width: 100%; height: 100%; object-fit: cover; }
.stamps { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 10px 12px calc(10px + var(--sb)); background: #fff; box-shadow: 0 -10px 24px -16px rgba(14, 40, 60, .45); }
.stamps::before { content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 7px; background: radial-gradient(circle 4px at 6px 7px, #fff 98%, transparent) 0 0 / 12px 7px repeat-x; }
.st { display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 60px; justify-content: center; }
.st-f { display: grid; place-items: center; width: 50px; height: 40px; border-radius: 6px; color: var(--ink-2); box-shadow: inset 0 0 0 2px #b4c2c4; transition: transform .3s var(--bounce), background-color .2s; }
.st-l { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.st.is-on .st-f { background: var(--sea); color: #fff; box-shadow: none; transform: rotate(-6deg); animation: stampIn .38s var(--bounce); }
.st.is-on .st-l { color: var(--sea); }
.st:active .st-f { transform: scale(.9); }
@keyframes stampIn { from { transform: scale(1.5) rotate(-14deg); opacity: 0; } }

/* ---- 行程 ---- */
.days { display: flex; gap: 12px; padding: 22px 2px 4px; overflow-x: auto; scrollbar-width: none; }
.day { flex: none; width: 78px; height: 78px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15; color: var(--sea); box-shadow: inset 0 0 0 2.5px var(--sea-2); background: #fff; transition: transform .3s var(--bounce); position: relative; }
.day::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(31, 111, 158, .35); }
.day-k { font-size: 12px; font-weight: 500; }
.day-d { font-size: 19px; font-weight: 500; }
.day-w { font-size: 12px; font-weight: 700; }
.day.is-on { background: var(--sea); color: #fff; box-shadow: none; transform: rotate(-8deg); animation: stampIn .4s var(--bounce); }
.day.is-on::after { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); }
.dayhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 16px 0 12px; }
.start { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink-2); }
.start-k { font-size: 13px; font-weight: 700; }
.start b { font-size: 19px; font-weight: 500; color: var(--sea); }
.daysum { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--ink-2); }
.daysum b { font-size: 15px; color: var(--ink); font-weight: 500; }
.plan { position: relative; }
.blk { position: relative; transition: transform .22s var(--ease); }
.is-dragging .blk { transition: transform .2s var(--ease); }
.blk.lifted { z-index: 5; transition: none; }
.blk.lifted .stop { box-shadow: 0 22px 40px -12px rgba(14, 40, 60, .45); }
.is-dragging .leg { opacity: .25; }
.stop { display: grid; grid-template-columns: 60px 1fr 46px; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 1px 0 rgba(14, 40, 60, .06); border-left: 6px solid var(--tc, var(--sea-2)); transition: box-shadow .2s; }
.t-sight { --tc: var(--sea-2); } .t-food { --tc: var(--sun); } .t-cafe { --tc: var(--kraft); } .t-shop { --tc: #5f8f4a; } .t-move { --tc: #7c8b94; } .t-stay { --tc: var(--sea); } .t-other { --tc: var(--kraft-dk); }
.stop-time { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: #f3f6f6; padding: 8px 0; }
.stop-time b { font-size: 17px; font-weight: 500; color: var(--ink); border-radius: 6px; padding: 0 2px; }
.stop-time span { font-size: 12px; color: var(--ink-2); }
.retime { animation: retime 1.1s var(--ease) both; }
@keyframes retime { 0%, 30% { background: var(--sun-wash); color: var(--sun-ink); transform: scale(1.12); } 100% { background: transparent; } }
.dropped .stop { animation: dropIn .45s var(--bounce); }
@keyframes dropIn { from { transform: scale(1.04) rotate(-1deg); } }
.stop-body { display: flex; align-items: center; gap: 10px; padding: 12px 4px 12px 12px; text-align: left; min-width: 0; }
.stop-body:active { background: #f7f9f9; }
.stop-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--sky); color: var(--sea); flex: none; }
.t-food .stop-ic, .t-cafe .stop-ic { background: var(--sun-wash); color: var(--sun-ink); }
.stop-t { display: flex; flex-direction: column; min-width: 0; }
.stop-t b { font-size: 16px; line-height: 1.4; }
.stop-t > span:not(.stop-memo) { font-size: 13px; color: var(--ink-2); }
.stop-memo { font-family: var(--hand); font-size: 15px; color: #4a3218; background: var(--kraft-lt); padding: 1px 8px; margin-top: 4px; width: fit-content; max-width: 100%; transform: rotate(-1deg); box-shadow: 0 2px 4px rgba(0, 0, 0, .08); }
.grip { display: grid; place-items: center; color: #7f8e95; touch-action: none; cursor: grab; }
.grip:active { cursor: grabbing; color: var(--sea); background: #f3f6f6; }
.leg { display: flex; align-items: center; gap: 6px; width: calc(100% - 30px); margin-left: 30px; min-height: 44px; padding: 4px 0 4px 18px; border-left: 2px dashed var(--sea-2); font-size: 13px; color: var(--ink-2); text-align: left; transition: opacity .2s; }
.leg .g-s { color: var(--sea-2); }
.leg span { padding: 3px 10px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.leg:active span { background: var(--sky); }
.hint { display: flex; align-items: flex-start; gap: 6px; font-size: 13px; color: var(--ink-2); margin: 14px 4px 0; }
.hint .g-s { margin-top: 2px; }
.add-stop { width: 100%; min-height: 56px; margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 18px; box-shadow: inset 0 0 0 2px var(--sea-2); color: var(--sea); font-size: 16px; font-weight: 700; }
.add-stop:active { background: var(--sky); }
.plan-empty img { width: 100%; height: 150px; object-fit: cover; border-radius: 16px; margin-bottom: 10px; }

/* ---- 持ち物 ---- */
.tag { position: relative; display: flex; align-items: center; margin-top: 22px; padding: 18px 18px 18px 58px; background: var(--kraft); color: #2b2117; border-radius: 10px 18px 18px 10px; clip-path: polygon(22px 0, 100% 0, 100% 100%, 22px 100%, 0 calc(100% - 22px), 0 22px); }
.tag-hole { position: absolute; left: 14px; top: 50%; width: 36px; height: 36px; margin-top: -18px; }
.tag-hole circle { fill: var(--bg); stroke: #8c6a45; stroke-width: 2; }
.tag-hole path { fill: none; stroke: #f4efe6; stroke-width: 2; }
.tag-b { flex: 1; }
.tag-k { font-size: 13px; font-weight: 700; color: #3a2a18; }
.tag-v b { font-size: 42px; font-weight: 500; line-height: 1.05; }
.tag-v span { font-size: 20px; }
.tag-bar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .5); overflow: hidden; margin: 6px 0 8px; }
.tag-bar i { display: block; height: 100%; background: var(--sea); border-radius: 4px; transition: width .6s var(--bounce); }
.tag-s { font-size: 14px; color: #2b2117; }
.tag-ok { position: absolute; right: 12px; top: 10px; width: 92px; height: 92px; display: grid; place-items: center; color: var(--sun-ink); transform: rotate(-14deg); animation: stampIn .5s var(--bounce); }
.tag-ok .pm { position: absolute; inset: 0; width: 100%; height: 100%; }
.tag-ok span { font-weight: 700; font-size: 15px; background: var(--kraft); padding: 0 4px; position: relative; }
.filters { display: flex; gap: 6px; margin: 16px 0 10px; overflow-x: auto; scrollbar-width: none; }
.filters button { flex: none; min-height: 40px; padding: 0 16px; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font-size: 14px; font-weight: 700; color: var(--ink-2); }
.filters button[aria-selected="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.addrow { display: flex; gap: 8px; }
.addrow input { flex: 1; min-width: 0; height: 50px; padding: 0 14px; border: 0; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font-size: 16px; }
.addrow input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--sea-2); }
.addrow-b { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--sea); color: #fff; }
.pcat-h { display: flex; justify-content: space-between; align-items: baseline; margin: 20px 4px 8px; font-weight: 700; font-size: 16px; color: var(--sea); }
.pcat-h .mono { font-size: 14px; color: var(--ink-2); }
.plist { background: #fff; border-radius: 18px; overflow: hidden; }
.pi { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 10px; min-height: 58px; }
.pi + .pi { border-top: 1.5px dashed #dfe6e6; }
.chk { position: relative; width: 44px; height: 44px; border-radius: 50%; flex: none; }
.chk::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; box-shadow: inset 0 0 0 2px #9aa9ae; }
.chk-stamp { position: absolute; inset: 2px; display: grid; place-items: center; border-radius: 50%; font-weight: 700; font-size: 16px; color: var(--sun-ink); box-shadow: inset 0 0 0 2.5px var(--sun-ink); background: #fff; opacity: 0; transform: scale(1.6) rotate(-30deg); transition: opacity .2s, transform .3s var(--bounce); }
.chk[aria-checked="true"] .chk-stamp { opacity: 1; transform: rotate(-14deg); }
.chk.stamping .chk-stamp { animation: stampHit .38s var(--bounce); }
@keyframes stampHit { 0% { transform: scale(1.9) rotate(-40deg); opacity: 0; } 60% { transform: scale(.92) rotate(-12deg); opacity: 1; } }
.pi-n { flex: 1; min-height: 44px; text-align: left; font-size: 16px; }
.is-done .pi-n { color: var(--ink-2); text-decoration: line-through; text-decoration-color: rgba(62, 77, 86, .5); }
.pi-who { width: 44px; height: 44px; display: grid; place-items: center; flex: none; }

/* ---- 費用 ---- */
.receipt { position: relative; margin-top: 22px; padding: 20px 18px 22px; background: #fff; border-radius: 18px 18px 0 0; }
.receipt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -11px; height: 12px; background: conic-gradient(from 135deg at top, #fff 90deg, #0000 0) 0 0 / 16px 100%; }
.rc-k { font-size: 13px; color: var(--ink-2); letter-spacing: .24em; }
.rc-v { font-size: 46px; font-weight: 500; line-height: 1.1; letter-spacing: -.02em; }
.rc-p { font-size: 15px; color: var(--ink-2); }
.rc-p b { font-size: 19px; color: var(--sea); font-weight: 500; }
.rc-bar { display: flex; gap: 2px; height: 12px; border-radius: 6px; overflow: hidden; margin: 14px 0 10px; }
.rc-bar i, .rc-leg i { display: block; }
.rc-bar .cc-move, .rc-leg i.cc-move { background: var(--sea-2); }
.rc-bar .cc-stay, .rc-leg i.cc-stay { background: var(--sea); }
.rc-bar .cc-food, .rc-leg i.cc-food { background: var(--sun); }
.rc-bar .cc-fun, .rc-leg i.cc-fun { background: var(--kraft); }
.rc-bar .cc-other, .rc-leg i.cc-other { background: #9aa9ae; }
.rc-leg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; }
.rc-leg li { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.rc-leg i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.rc-leg .mono { margin-left: auto; color: var(--ink); }
.rc-cut { margin: 18px -18px 0; border-top: 2px dashed var(--line); }
.rc-h { font-weight: 700; font-size: 16px; color: var(--sea); margin: 14px 0 6px; }
.pays li { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.pay-a { flex: 1; display: flex; align-items: center; gap: 2px; font-size: 15px; font-weight: 700; }
.pay-a .g-s { color: var(--sun-ink); }
.pays b { font-size: 19px; color: var(--sun-ink); font-weight: 500; }
.rc-none { font-size: 14px; color: var(--ink-2); }
.costs { display: flex; flex-direction: column; gap: 8px; }
.cost { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 66px; border-radius: 16px; background: #fff; text-align: left; transition: transform .18s var(--bounce); }
.cost:active { transform: scale(.98); }
.cost-c { flex: none; padding: 2px 8px; border-radius: 8px; font-size: 12px; font-weight: 700; }
.cost-c.cc-move { background: #dcebf4; color: #0b3f61; }
.cost-c.cc-stay { background: #d4e2ec; color: var(--sea); }
.cost-c.cc-food { background: var(--sun-wash); color: #8a3a12; }
.cost-c.cc-fun { background: var(--kraft-lt); color: #4a3218; }
.cost-c.cc-other { background: #e5eaeb; color: var(--ink-2); }
.cost-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cost-t b { font-size: 15px; line-height: 1.4; }
.cost-t span { font-size: 13px; color: var(--ink-2); }
.cost-v { font-size: 17px; font-weight: 500; }
.bal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.bal-i { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border-radius: 16px; background: #fff; font-size: 13px; }
.bal-i b { font-size: 15px; font-weight: 500; }
.bal-i b.plus { color: #1d6b46; }
.bal-i b.minus { color: var(--sun-ink); }
.fab { position: absolute; z-index: 4; right: 16px; bottom: calc(96px + var(--sb)); display: inline-flex; align-items: center; gap: 8px; min-height: 56px; padding: 0 20px 0 16px; border-radius: 28px; background: var(--sun-ink); color: #fff; font-size: 15px; font-weight: 700; box-shadow: 0 12px 24px -8px rgba(169, 71, 26, .6); transition: transform .2s var(--bounce); }
.fab:active { transform: scale(.94) rotate(-2deg); }

/* ---- しおり画像 ---- */
.cardpg { padding-top: 22px; }
.themes { display: flex; gap: 8px; }
.themes button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font-size: 14px; font-weight: 700; transition: transform .2s var(--bounce); }
.themes button[aria-checked="true"] { box-shadow: inset 0 0 0 2.5px var(--ink); transform: translateY(-2px); }
.themes i { width: 20px; height: 20px; border-radius: 50%; }
.sw-sea { background: var(--sea); } .sw-sunset { background: var(--sun); } .sw-kraft { background: var(--kraft); }
.canvas-wrap { position: relative; margin: 16px 0 10px; }
#shiori { display: block; width: 100%; height: auto; aspect-ratio: 1080 / 1350; border-radius: 14px; box-shadow: 0 18px 36px -16px rgba(14, 40, 60, .55); background: var(--sky); }
#shiori.dealt { animation: dealt .5s var(--bounce); }
@keyframes dealt { from { transform: translateY(18px) rotate(-2deg); opacity: .4; } }
.cv-busy { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border-radius: 14px; background: #e3edf1; color: var(--ink-2); font-size: 14px; font-weight: 700; }
.cv-busy .g { animation: spinS 1.2s linear infinite; color: var(--sea); }
@keyframes spinS { to { transform: rotate(360deg); } }
.opt { display: flex; align-items: center; gap: 10px; min-height: 48px; font-size: 15px; cursor: pointer; }
.opt input { width: 22px; height: 22px; accent-color: var(--sea); margin: 0; }
.opt-b { display: none; }
.share-row { display: grid; grid-template-columns: 1.25fr 1fr; gap: 8px; margin-top: 4px; }

/* ---- 設定 ---- */
.me-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 20px; background: #fff; margin-top: 8px; }
.me-n { font-weight: 700; font-size: 19px; }
.me-s { font-size: 14px; color: var(--ink-2); }
.slist { background: #fff; border-radius: 20px; overflow: hidden; margin-top: 14px; }
.slist li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; min-height: 66px; }
.slist li + li { border-top: 1.5px dashed #dfe6e6; }
.slist li:has(.sl-btn) { padding: 0; }
.sl-t { display: flex; flex-direction: column; flex: 1; }
.sl-t b { font-size: 16px; font-weight: 700; }
.sl-t span { font-size: 13px; color: var(--ink-2); }
.sl-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; min-height: 66px; text-align: left; }
.sl-btn:active { background: #f5f8f8; }
.sl-btn.danger b, .sl-btn.danger .g { color: var(--danger); }
.tog { position: relative; width: 54px; height: 32px; border-radius: 16px; background: #c4ced0; flex: none; transition: background-color .2s; }
.tog i { position: absolute; left: 3px; top: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .2); transition: transform .3s var(--bounce); }
.tog[aria-checked="true"] { background: var(--sea); }
.tog[aria-checked="true"] i { transform: translateX(22px); }
.ab { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 10px 0 18px; }
.ab-i { width: 112px; height: 112px; transform: rotate(-4deg); }
.ab-h { font-family: var(--dela); font-weight: 400; font-size: 25px; margin-top: 14px; }
.ab-s { font-size: 15px; color: var(--ink-2); }
.note-card { padding: 16px 18px; border-radius: 16px; background: var(--kraft-lt); color: #2b2117; }
.note-card p { font-size: 15px; line-height: 1.75; }
.tech li { align-items: flex-start; }
.pg-set .btn.wide { margin-top: 22px; }

/* ---- シート・トースト ---- */
.sheet-wrap { position: absolute; inset: 0; z-index: 40; }
.sheet-bg { position: absolute; inset: 0; background: rgba(9, 34, 52, .45); opacity: 0; transition: opacity .25s; }
.sheet-wrap.is-on .sheet-bg { opacity: 1; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88%; overflow-y: auto; overscroll-behavior: contain; padding: 18px 18px calc(18px + var(--sb)); border-radius: 26px 26px 0 0; background: var(--paper); transform: translateY(105%); transition: transform .38s var(--ease); }
.sheet-wrap.is-on .sheet { transform: none; }
.sheet.drag { transition: none; }
.sheet-tape { position: sticky; top: -18px; margin: -18px auto 6px; width: 110px; height: 22px; background: rgba(232, 116, 59, .82); transform: rotate(-2deg); background-image: repeating-linear-gradient(90deg, transparent 0 9px, rgba(255, 255, 255, .25) 9px 13px); }
.sh-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; touch-action: none; }
.sh-t { font-weight: 700; font-size: 20px; letter-spacing: .02em; }
.sh-sub { font-size: 13px; font-weight: 700; color: var(--ink-2); margin: 14px 0 8px; }
.sh-lead { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); margin: 4px 0 12px; }
.sh-note { font-size: 14px; color: var(--ink-2); line-height: 1.7; margin: 8px 0 14px; }
.sh-btns { display: flex; gap: 8px; margin: 14px 0 10px; }
.sh-btns .btn { flex: 1; min-height: 46px; }
.fld { margin: 12px 0; position: relative; }
.fld label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.fld input { width: 100%; height: 50px; padding: 0 14px; border: 0; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font-size: 16px; }
.fld input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--sea-2); }
.yen-f input { padding-left: 34px; font-size: 20px; }
.yen-mark { position: absolute; left: 14px; bottom: 13px; font-size: 18px; color: var(--ink-2); }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pk { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font-size: 14px; font-weight: 700; transition: transform .18s var(--bounce); }
.pk:active { transform: scale(.94); }
.pk[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.pk.sm { min-height: 40px; padding: 0 12px; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.covers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pk.cov { flex-direction: column; align-items: stretch; padding: 6px; gap: 4px; }
.pk.cov img { width: 100%; height: 70px; object-fit: cover; border-radius: 8px; }
.stepper { display: flex; align-items: center; gap: 10px; margin: 16px 0; }
.stp-l { flex: 1; font-size: 14px; font-weight: 700; }
.stp-b { width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font-size: 20px; font-weight: 700; color: var(--sea); }
.stp-b:active { background: var(--sky); }
.stepper output { min-width: 52px; text-align: center; font-size: 24px; font-weight: 500; }
.stp-u { font-size: 13px; color: var(--ink-2); margin-left: -6px; }
.err { font-size: 14px; color: var(--danger); font-weight: 700; margin: 6px 0; }
.toast { position: absolute; z-index: 50; left: 12px; right: 12px; bottom: calc(96px + var(--sb)); display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 8px 8px 16px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 14px; box-shadow: 0 14px 30px rgba(0, 0, 0, .25); opacity: 0; transform: translateY(16px) rotate(.6deg); pointer-events: none; transition: opacity .2s, transform .35s var(--bounce); }
.toast.is-on { opacity: 1; transform: none; pointer-events: auto; }
.app:has(.pg-trips:not(.is-out)) .toast, .app:has(.pg-set:not(.is-out)) .toast { bottom: calc(20px + var(--sb)); }
.toast span { flex: 1; }
.toast-a { min-height: 40px; padding: 0 10px; border-radius: 10px; color: #ffb68f; font-weight: 700; 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: 18px; background: var(--sea); transition: opacity .3s; }
.splash-stamp { width: 132px; height: 132px; padding: 6px; background: #fff; transform: rotate(-6deg); animation: stampIn .5s var(--bounce) both;
  -webkit-mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle 4px, #0000 92%, #000) -6px -6px / 12px 12px round;
  mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle 4px, #0000 92%, #000) -6px -6px / 12px 12px round; }
.splash-stamp img { width: 100%; height: 100%; }
.splash-n { font-family: var(--dela); font-size: 26px; color: #fff; letter-spacing: .08em; }
.splash.is-out { opacity: 0; }
.onboard { position: fixed; inset: 0; margin: 0 auto; max-width: 430px; z-index: 90; overflow: hidden; background: var(--sea); transition: opacity .3s; }
.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(9, 34, 52, 0) 40%, rgba(9, 34, 52, .5) 100%); }
.ob-card { position: absolute; left: 14px; right: 14px; bottom: calc(18px + var(--sb)); padding: 26px 20px 14px; border-radius: 24px; background: var(--paper); box-shadow: 0 20px 40px rgba(0, 0, 0, .3); }
.ob-card::before { content: ""; position: absolute; top: -10px; left: 50%; width: 110px; height: 22px; margin-left: -55px; background: rgba(232, 116, 59, .85); transform: rotate(-3deg); }
.ob-card.turn { animation: turn .45s var(--ease); }
@keyframes turn { from { transform: translateX(26px) rotate(1.5deg); opacity: .2; } }
.ob-k { font-size: 13px; color: var(--sun-ink); letter-spacing: .14em; }
.ob-t { font-family: var(--dela); font-weight: 400; font-size: 26px; line-height: 1.4; margin-top: 4px; }
.ob-s { font-size: 15px; color: var(--ink-2); line-height: 1.75; margin-top: 8px; }
.ob-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.ob-skip { min-height: 44px; padding: 0 8px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.ob-dots { display: flex; gap: 6px; }
.ob-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: width .3s var(--bounce); }
.ob-dots i.on { width: 22px; border-radius: 4px; background: var(--sun); }
.nojs, .fatal { position: fixed; z-index: 200; left: 16px; right: 16px; bottom: 24px; padding: 16px; border-radius: 18px; background: #fff; font-size: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); }
.fatal-t { font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
