/* てくてく東海道 — 浮世絵・旅情。藍 × 紅 × 生成り */
:root {
  --ai: #1e3557;
  --ai-2: #2b4c7e;
  --ai-3: #5d7aa3;
  --ai-deep: #132439;
  --beni: #b3242f;
  --beni-2: #8f1a24;
  --kinari: #f3ead6;
  --kinari-2: #e8dcc0;
  --kinari-3: #d8c8a2;
  --sumi: #23201b;
  --sumi-2: #4a4338;
  --matsu: #3d5a3c;
  --cha: #7a5230;
  --f-brush: "Yuji Syuku", "Hiragino Mincho ProN", serif;
  --f-num: "Dela Gothic One", "Murecho", sans-serif;
  --f-ui: "Murecho", "Hiragino Sans", "Yu Gothic", sans-serif;
  --r-paper: 6px;
  --r-btn: 10px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --sb: env(safe-area-inset-bottom, 0px);
  --st: env(safe-area-inset-top, 0px);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--ai-deep);
  color: var(--sumi);
  font: 400 15px/1.7 var(--f-ui);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  line-break: strict;
  overflow: hidden;
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { font-weight: 400; font-feature-settings: "palt"; word-break: keep-all; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.nb { white-space: nowrap; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic--f { fill: currentColor; stroke: none; }
:focus-visible { outline: 3px solid #e0a43a; outline-offset: 2px; }
.noscript { color: #fff; padding: 24px; }

/* ---------- 枠 ---------- */
.app { position: relative; height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; margin: 0 auto; background: var(--kinari); }
@media (min-width: 600px) {
  body { background: var(--ai-deep) radial-gradient(circle at 50% 100%, transparent 14px, rgba(243, 234, 214, .07) 15px, transparent 16px, transparent 22px, rgba(243, 234, 214, .05) 23px, transparent 24px) 0 0 / 48px 24px; }
  .app { max-width: 430px; box-shadow: 0 0 0 1px #000, 0 30px 80px rgba(0, 0, 0, .55); }
}
.views { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.view { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--kinari); overflow: hidden; }
.view::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: url(/app-development/apps/a052/img/washi.webp) center / cover; opacity: .55; }
.view > * { position: relative; }
.in-fwd { animation: inF .3s var(--ease) both; }
.in-bwd { animation: inB .3s var(--ease) both; }
.in-fade { animation: fade .25s ease both; }
.out-fwd, .out-bwd, .out-fade { animation: fadeOut .2s ease both; }
.in-push { animation: inPush .34s var(--ease) both; z-index: 3; box-shadow: -12px 0 30px rgba(19, 36, 57, .25); }
.out-push { animation: outPush .34s var(--ease) both; }
.in-pop { animation: inPop .3s var(--ease) both; }
.out-pop { animation: outPop .3s var(--ease) both; z-index: 3; }
@keyframes inF { from { opacity: 0; transform: translateX(24px); } }
@keyframes inB { from { opacity: 0; transform: translateX(-24px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes inPush { from { transform: translateX(100%); } }
@keyframes outPush { to { transform: translateX(-25%); filter: brightness(.9); } }
@keyframes inPop { from { transform: translateX(-25%); } }
@keyframes outPop { to { transform: translateX(100%); } }
.scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.boot-fallback { padding: 80px 24px; text-align: center; }
.boot-fallback__title { font: 400 26px/1.4 var(--f-brush); }
.oops { padding: 80px 24px; text-align: center; }
.oops p { margin-bottom: 16px; }

/* ---------- 見出し（一文字ぼかしの藍の帯） ---------- */
.hd { position: relative; z-index: 2; flex: none; padding: calc(12px + var(--st)) 18px 12px; background: var(--ai); color: var(--kinari); }
.hd::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 18px; background: linear-gradient(var(--ai), rgba(30, 53, 87, 0)); pointer-events: none; }
.hd__in { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.hd__sub { font-size: 13px; font-weight: 600; color: #d6deea; letter-spacing: .06em; }
.hd__t { font: 400 30px/1.2 var(--f-brush); letter-spacing: .08em; }
.hd__set { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--kinari); border: 1.5px solid rgba(243, 234, 214, .4); }
.hd__set:active { background: rgba(243, 234, 214, .15); }
.bar { flex: none; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: calc(52px + var(--st)); padding: var(--st) 6px 0; background: var(--ai); color: var(--kinari); position: relative; z-index: 2; }
.bar__back { justify-self: start; display: inline-flex; align-items: center; gap: 2px; min-height: 44px; padding: 0 12px 0 4px; font-size: 15px; font-weight: 600; border-radius: 10px; }
.bar__back .ic { width: 24px; height: 24px; stroke-width: 2.2; }
.bar__back:active { background: rgba(243, 234, 214, .12); }
.bar__t { font: 400 20px/1 var(--f-brush); letter-spacing: .1em; }
.sec { display: flex; align-items: center; gap: 10px; font: 400 19px/1.3 var(--f-brush); color: var(--ai); margin-bottom: 10px; letter-spacing: .06em; }
.sec::before { content: ""; width: 10px; height: 10px; background: var(--beni); transform: rotate(45deg); flex: none; }
.sec::after { content: ""; flex: 1; border-top: 1px solid var(--kinari-3); }

/* ---------- 今日 ---------- */
#today { padding: 18px 18px 28px; }
.gauge { position: relative; width: 252px; height: 252px; margin: 6px auto 0; }
.gauge__svg { width: 100%; height: 100%; display: block; }
.gauge__ticks line { stroke: var(--ai-3); stroke-width: 1.2; }
.gauge__track { fill: none; stroke: var(--kinari-2); stroke-width: 16; }
.gauge__bar { fill: none; stroke: var(--beni); stroke-width: 16; stroke-linecap: round; transition: stroke-dashoffset 1s var(--ease); }
.gauge__c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.gauge__l { font-size: 13px; font-weight: 600; color: var(--sumi-2); letter-spacing: .08em; }
.gauge__n { font: 400 46px/1.05 var(--f-num); color: var(--ai); letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.gauge__u { font: 400 18px/1.2 var(--f-brush); color: var(--ai); }
.gauge__goal { margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--sumi-2); }
.hanko {
  position: absolute; right: -6px; top: 8px;
  width: 58px; height: 58px; display: grid; place-items: center;
  background: var(--beni); color: var(--kinari);
  font: 400 19px/1 var(--f-brush); writing-mode: vertical-rl; letter-spacing: .1em;
  border-radius: 8px; transform: rotate(8deg);
  box-shadow: inset 0 0 0 3px var(--beni), inset 0 0 0 4.5px var(--kinari);
  animation: stamp .45s cubic-bezier(.3, 1.6, .5, 1) both .3s;
}
@keyframes stamp { from { transform: rotate(-20deg) scale(2.2); opacity: 0; } }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 10px; border-top: 1px solid var(--kinari-3); border-bottom: 1px solid var(--kinari-3); }
.trio div { padding: 10px 4px; text-align: center; }
.trio div + div { border-left: 1px dashed var(--kinari-3); }
.trio dt { font-size: 12px; font-weight: 600; color: var(--sumi-2); }
.trio dd { font: 400 22px/1.2 var(--f-num); color: var(--ai); }
.trio small { font: 600 12px/1 var(--f-ui); margin-left: 2px; }

.road { margin-top: 22px; padding: 14px 12px 6px; background: var(--kinari-2); border-radius: var(--r-paper); box-shadow: inset 0 0 0 1.5px var(--ai), inset 0 0 0 4px var(--kinari-2), inset 0 0 0 5px var(--ai-3); }
.road__ends { display: flex; align-items: stretch; gap: 10px; }
.post { flex: none; width: 40px; padding: 8px 0 10px; display: flex; flex-direction: column; align-items: center; gap: 4px; background: var(--cha); color: var(--kinari); border-radius: 3px 3px 0 0; box-shadow: 0 3px 0 #5a3a1f; }
.post__k { font-size: 11px; font-weight: 600; writing-mode: vertical-rl; letter-spacing: .05em; color: #f0e3c4; }
.post__n { font: 400 18px/1.1 var(--f-brush); writing-mode: vertical-rl; letter-spacing: .12em; }
.post--next { background: var(--ai); box-shadow: 0 3px 0 var(--ai-deep); }
.road__mid { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.road__left { font-size: 14px; font-weight: 600; }
.road__to { font: 400 20px/1.3 var(--f-brush); color: var(--beni-2); margin-right: 4px; }
.road__km { font: 400 40px/1.1 var(--f-num); color: var(--ai); }
.road__km small { font: 600 15px/1 var(--f-ui); margin-left: 2px; }
.road__st { font-size: 14px; font-weight: 600; color: var(--sumi-2); }
.road__svg { display: block; width: 100%; height: auto; margin-top: 2px; }
.road__way { fill: none; stroke: var(--kinari-3); stroke-width: 10; stroke-linecap: round; }
.road__done { fill: none; stroke: var(--beni); stroke-width: 4; stroke-linecap: round; }
.road__tabi { animation: walk .9s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes walk { 50% { transform: translateY(-2px) rotate(2deg); } }
.road__goal { padding: 16px; text-align: center; font-weight: 600; }

.acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.btn {
  min-height: 52px; padding: 0 16px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--r-btn);
  font-size: 15px; font-weight: 800; letter-spacing: .04em;
  transition: transform .15s cubic-bezier(.3, 1.5, .5, 1), filter .15s;
}
.btn:active { transform: scale(.95); filter: brightness(.95); }
.btn .ic { width: 20px; height: 20px; stroke-width: 2; }
.btn--ai { background: var(--ai); color: var(--kinari); box-shadow: inset 0 0 0 2px var(--ai), inset 0 0 0 3.5px rgba(243, 234, 214, .4); }
.btn--beni { background: var(--beni); color: #fff8ec; box-shadow: inset 0 0 0 2px var(--beni), inset 0 0 0 3.5px rgba(255, 248, 236, .4); }
.btn--line { background: var(--kinari); color: var(--ai); box-shadow: inset 0 0 0 2px var(--ai); }
.btn--ghost { background: transparent; color: var(--kinari); box-shadow: inset 0 0 0 2px rgba(243, 234, 214, .7); }
.btn--big { min-height: 60px; flex-direction: column; gap: 2px; font-size: 14px; }
.btn--big .ic { width: 24px; height: 24px; }
.btn--wide { width: 100%; }
.live { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-radius: var(--r-btn); background: var(--ai); color: var(--kinari); }
.live__dot { width: 12px; height: 12px; border-radius: 50%; background: #f07b6f; box-shadow: 0 0 0 0 rgba(240, 123, 111, .6); animation: ping 1.4s ease-out infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 12px rgba(240, 123, 111, 0); } }
.live__t { flex: 1; }
.live__k { font-size: 13px; font-weight: 600; color: #d6deea; }
.live__n { font: 400 28px/1.1 var(--f-num); }
.live__n small { font: 600 14px/1 var(--f-ui); margin-left: 3px; }

.week { margin-top: 26px; }
.week__bars { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.wb { display: flex; flex-direction: column; align-items: center; }
.wb__v { height: 18px; font: 600 12px/18px var(--f-ui); color: var(--sumi-2); }
.wb__a { width: 100%; height: 110px; display: flex; align-items: flex-end; justify-content: center; }
.wb__a i { display: block; width: 70%; max-width: 30px; border-radius: 3px 3px 0 0; background: var(--ai-3); transform-origin: bottom; animation: rise .7s var(--ease) both; }
.wb.is-goal .wb__a i { background: var(--ai); }
.wb.is-today .wb__a i { background: var(--beni); }
.wb__d { height: 26px; font: 600 13px/26px var(--f-ui); }
.wb.is-today .wb__d { color: var(--beni-2); }
@keyframes rise { from { transform: scaleY(0); } }
.week__goal { position: absolute; left: 0; right: 0; border-top: 1.5px dashed var(--beni); pointer-events: none; }
.week__u { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 2px; font-size: 12px; color: var(--sumi-2); }
.week__lg { width: 18px; border-top: 1.5px dashed var(--beni); }

.nextc { margin-top: 24px; }
.nextc__in { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--r-paper); background: var(--kinari-2); transition: transform .15s; }
.nextc__in:active { transform: scale(.98); }
.mini { width: 62px; flex: none; aspect-ratio: 2 / 3; }
.nextc__t { flex: 1; min-width: 0; }
.nextc__k { font-size: 12px; font-weight: 600; color: var(--sumi-2); }
.nextc__n { font: 400 24px/1.3 var(--f-brush); color: var(--ai); }
.nextc__s { font-size: 14px; }
.nextc__ch { color: var(--ai); }
.caution { margin: 22px 2px 0; font-size: 14px; color: var(--sumi-2); }

/* ---------- 札 ---------- */
.face, .back { position: relative; width: 100%; height: 100%; aspect-ratio: 2 / 3; border-radius: 4px; overflow: hidden; }
.face { background: var(--kinari-2); box-shadow: 0 0 0 1px rgba(35, 32, 27, .35); }
.face .art, .face__img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.face__img { background-size: cover; background-position: center; }
.face::after { content: ""; position: absolute; inset: 3px; border: 1px solid rgba(243, 234, 214, .7); pointer-events: none; }
.tanzaku {
  position: absolute; top: 6px; right: 6px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 3px 7px;
  background: var(--kinari);
  border: 1px solid var(--beni);
  box-shadow: 0 0 0 2px var(--kinari);
  writing-mode: vertical-rl;
  color: var(--sumi);
}
.tanzaku__no { font-size: 10px; font-weight: 800; color: var(--beni-2); letter-spacing: .04em; }
.tanzaku__n { font: 400 14px/1.15 var(--f-brush); letter-spacing: .08em; }
.face--big .tanzaku { top: 12px; right: 12px; padding: 10px 6px 12px; }
.face--big .tanzaku__no { font-size: 12px; }
.face--big .tanzaku__n { font-size: 24px; }
.face__seal { position: absolute; left: 10px; bottom: 10px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--beni); color: #fff8ec; font: 400 22px/1 var(--f-brush); box-shadow: inset 0 0 0 2px var(--beni), inset 0 0 0 3.5px #fff8ec; opacity: 0; transform: scale(2) rotate(-20deg); transition: opacity .2s, transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.is-sealed .face__seal, .flip--detail .face__seal { opacity: 1; transform: rotate(-12deg); }
.back {
  display: flex; align-items: center; justify-content: center;
  background-color: var(--ai);
  box-shadow: 0 0 0 1px var(--ai-deep);
}
.back::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 100%, transparent 7px, rgba(243, 234, 214, .16) 8px, transparent 9px, transparent 12px, rgba(243, 234, 214, .12) 13px, transparent 14px) 0 0 / 28px 14px;
}
.back::after { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(243, 234, 214, .35); }
.back__no { position: relative; z-index: 1; padding: 8px 4px; writing-mode: vertical-rl; background: var(--kinari); color: var(--ai); font: 400 15px/1 var(--f-brush); letter-spacing: .1em; border-radius: 2px; }
.mini .back__no { font-size: 12px; padding: 5px 3px; }

.flip { perspective: 1200px; }
.flip__in { position: relative; transform-style: preserve-3d; transition: transform .75s cubic-bezier(.3, .9, .3, 1.1); }
.flip.is-back .flip__in { transform: rotateY(180deg); }
.flip__f, .flip__b { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flip__b { position: absolute; inset: 0; transform: rotateY(180deg); }

/* 一覧 */
.scroll--cards { padding: 18px 14px 28px; }
.cards-h { margin-bottom: 14px; }
.cards-h__bar { height: 8px; border-radius: 4px; background: var(--kinari-2); overflow: hidden; box-shadow: inset 0 0 0 1px var(--kinari-3); }
.cards-h__bar i { display: block; height: 100%; background: var(--beni); }
.cards-h__s { margin-top: 8px; font-size: 14px; }
.cards-h__s b { font: 400 18px/1 var(--f-brush); color: var(--beni-2); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 10px; }
.gc { display: block; border-radius: 4px; transition: transform .2s cubic-bezier(.3, 1.5, .5, 1); }
.gc:active { transform: scale(.94) rotate(-1deg); }
.gc.is-ok { box-shadow: 0 6px 12px -6px rgba(19, 36, 57, .6); }
.gc.is-next { outline: 2.5px dashed var(--beni); outline-offset: 3px; }
.gc .face__seal { width: 26px; height: 26px; font-size: 14px; left: 6px; bottom: 6px; opacity: 1; transform: rotate(-12deg); }

/* 札の詳細 */
.scroll--card { padding: 18px 20px 32px; }
.cd { animation: fade .3s ease both; }
.cd--next { animation: inF .28s var(--ease) both; }
.cd--prev { animation: inB .28s var(--ease) both; }
.flip--detail { width: 66%; max-width: 270px; margin: 4px auto 0; touch-action: pan-y; }
.flip--detail .face, .flip--detail .back { box-shadow: 0 18px 30px -14px rgba(19, 36, 57, .65), 0 0 0 1px rgba(35, 32, 27, .35); }
.flip--detail .back__no { font-size: 24px; padding: 14px 8px; }
.cd__nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 18px; }
.cd__arrow { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: var(--ai); box-shadow: inset 0 0 0 1.5px var(--ai); }
.cd__arrow:disabled { color: #8a8273; box-shadow: inset 0 0 0 1.5px #b5ab95; cursor: default; }
.cd__arrow:not(:disabled):active { background: var(--kinari-2); }
.cd__ttl { text-align: center; }
.cd__n { font: 400 34px/1.2 var(--f-brush); color: var(--ai); letter-spacing: .1em; }
.cd__y { font-size: 13px; font-weight: 600; color: var(--sumi-2); letter-spacing: .1em; }
.cd__got { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 10px; font-weight: 800; color: var(--beni-2); }
.cd__got .ic { width: 18px; height: 18px; }
.cd__yet { margin-top: 10px; text-align: center; font-weight: 600; color: var(--ai); }
.cd__note { margin-top: 14px; padding: 12px 14px; background: var(--kinari-2); border-left: 4px solid var(--beni); font-size: 15px; }
.cd__dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 14px; border-top: 1px solid var(--kinari-3); }
.cd__dl div { padding: 10px 2px; border-bottom: 1px solid var(--kinari-3); }
.cd__dl div:nth-child(odd) { padding-right: 10px; border-right: 1px dashed var(--kinari-3); }
.cd__dl div:nth-child(even) { padding-left: 12px; }
.cd__dl dt { font-size: 12px; font-weight: 600; color: var(--sumi-2); }
.cd__dl dd { font-size: 15px; font-weight: 800; }
.cd__fine { margin-top: 14px; font-size: 14px; color: var(--sumi-2); }

/* ---------- 道中双六 ---------- */
.mapsum { flex: none; z-index: 1; padding: 14px 18px 12px; background: var(--kinari-2); border-bottom: 1px solid var(--kinari-3); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 10px; }
.mapsum__t { font-size: 14px; font-weight: 600; }
.mapsum__t b { font: 400 22px/1 var(--f-num); color: var(--beni-2); margin: 0 2px; }
.mapsum__of { display: block; font-size: 12px; color: var(--sumi-2); }
.mapsum__bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--kinari); box-shadow: inset 0 0 0 1px var(--kinari-3); overflow: hidden; order: 3; }
.mapsum__bar i { display: block; height: 100%; background: var(--beni); }
.mapsum__me { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 14px 0 10px; border-radius: 999px; background: var(--ai); color: var(--kinari); font-size: 13px; font-weight: 800; }
.mapsum__me .ic { width: 18px; height: 18px; }
.mapsum__me:active { transform: scale(.94); }
.scroll--map { overflow-x: hidden; }
.sugoroku { position: relative; width: 360px; margin: 0 auto; }
.kuni { position: absolute; left: -40px; right: -40px; background: var(--kinari); border-top: 1px dashed var(--kinari-3); }
.kuni--b { background: #ece2c8; }
.kuni span { position: absolute; left: 44px; top: 10px; writing-mode: vertical-rl; font: 400 22px/1 var(--f-brush); color: var(--ai-2); letter-spacing: .3em; }
.sg { position: absolute; left: 0; top: 0; }
.sg-way { fill: none; stroke: var(--kinari-3); stroke-width: 9; stroke-linecap: round; }
.sg-sea { fill: none; stroke: var(--ai-3); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 1 7; }
.sg-done { fill: none; stroke: var(--beni); stroke-width: 4; stroke-linecap: round; }
.nd { position: absolute; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; }
.nd i { width: 18px; height: 18px; border-radius: 50%; background: var(--kinari); box-shadow: 0 0 0 2.5px var(--ai); transition: transform .2s; }
.nd--done i { background: var(--beni); box-shadow: 0 0 0 2.5px var(--kinari), 0 0 0 4px var(--beni); }
.nd--next i { box-shadow: 0 0 0 3px var(--beni); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.25); } }
.nd--big i { width: 26px; height: 26px; background: var(--ai); box-shadow: 0 0 0 3px var(--kinari), 0 0 0 4.5px var(--ai); }
.nd:active i { transform: scale(1.3); }
.lb { position: absolute; display: flex; flex-direction: column; line-height: 1.15; pointer-events: none; white-space: nowrap; }
.lb--l { align-items: flex-end; }
.lb__n { font: 400 17px/1.25 var(--f-brush); color: var(--sumi); }
.lb--done .lb__n { color: var(--beni-2); }
.lb--next .lb__n { color: var(--ai); }
.lb__k { font-size: 11px; font-weight: 600; color: var(--sumi-2); }
.mk { position: absolute; display: flex; align-items: center; gap: 4px; pointer-events: none; }
.mk--l { flex-direction: row-reverse; }
.mk__i { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--kinari); color: var(--ai); box-shadow: inset 0 0 0 1.5px var(--ai-3); }
.mk__i .ic { width: 17px; height: 17px; }
.mk__t { font-size: 12px; font-weight: 800; color: var(--ai); background: var(--kinari); padding: 1px 6px; border-radius: 4px; }
.mk--sea .mk__i, .mk--ferry .mk__i { background: var(--ai); color: var(--kinari); box-shadow: none; }
.me { position: absolute; z-index: 2; pointer-events: none; filter: drop-shadow(0 3px 2px rgba(19, 36, 57, .35)); animation: hop 1.2s ease-in-out infinite; }
.me::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 26px; height: 10px; margin-left: -13px; border-radius: 50%; border: 2px solid var(--beni); animation: ring 1.6s ease-out infinite; }
@keyframes hop { 50% { transform: translateY(-4px); } }
@keyframes ring { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.sg-note { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; font-size: 13px; color: var(--sumi-2); }

/* ---------- 記録 ---------- */
.scroll--log { padding: 18px 18px 30px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--kinari-3); border: 1px solid var(--kinari-3); border-radius: var(--r-paper); overflow: hidden; }
.stats div { padding: 10px 12px; background: var(--kinari); }
.stats__big { grid-column: 1 / -1; background: var(--ai) !important; color: var(--kinari); }
.stats dt { font-size: 12px; font-weight: 600; color: var(--sumi-2); }
.stats__big dt { color: #d6deea; }
.stats dd { font: 400 22px/1.25 var(--f-num); color: var(--ai); }
.stats__big dd { font-size: 36px; color: var(--kinari); }
.stats small { font: 600 13px/1 var(--f-ui); margin-left: 3px; }
.stats em { display: block; font: 600 12px/1.3 var(--f-ui); font-style: normal; color: var(--sumi-2); }
.hm { margin-top: 26px; }
.hm__wrap { display: grid; grid-template-columns: auto 1fr; gap: 6px; }
.hm__wd { display: grid; grid-template-rows: 18px repeat(7, 1fr); row-gap: 4px; font-size: 11px; font-weight: 600; color: var(--sumi-2); }
.hm__wd span { display: flex; align-items: center; }
.hm__wd::before { content: ""; }
.hm__m { display: grid; grid-template-columns: repeat(10, 1fr); height: 18px; font-size: 11px; font-weight: 600; color: var(--sumi-2); }
.hm__g { display: grid; grid-template-columns: repeat(10, 1fr); grid-template-rows: repeat(7, 1fr); gap: 4px; }
.hm__c { display: block; aspect-ratio: 1; border-radius: 3px; background: var(--kinari-2); }
.hm__c.lv-1 { background: transparent; box-shadow: inset 0 0 0 1px var(--kinari-3); }
.hm__c.lv0 { background: var(--kinari-2); }
.hm__c.lv1 { background: #bfc9d9; }
.hm__c.lv2 { background: #8299bb; }
.hm__c.lv3 { background: #44638f; }
.hm__c.lv4 { background: var(--ai); }
.hm__lg { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 8px; font-size: 12px; color: var(--sumi-2); }
.hm__lg .hm__c { width: 14px; }
.diary { margin-top: 26px; }
.tl { position: relative; }
.tl::before { content: ""; position: absolute; left: 70px; top: 6px; bottom: 6px; border-left: 2px solid var(--kinari-3); }
.tl__i { display: flex; align-items: center; gap: 12px; min-height: 52px; }
.tl__d { width: 58px; flex: none; text-align: right; font-size: 13px; font-weight: 600; color: var(--sumi-2); white-space: nowrap; }
.tl__dot { position: relative; z-index: 1; width: 12px; height: 12px; flex: none; border-radius: 50%; background: var(--beni); box-shadow: 0 0 0 3px var(--kinari); }
.tl__b { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 10px; padding: 8px 12px; border-radius: var(--r-paper); transition: background .15s; }
.tl__b:active { background: var(--kinari-2); }
.tl__k { font-size: 12px; font-weight: 600; color: var(--sumi-2); white-space: nowrap; }
.tl__n { font: 400 20px/1.3 var(--f-brush); color: var(--ai); }
.tl__n small { font: 600 13px/1 var(--f-ui); color: var(--sumi-2); margin-left: 4px; }

/* ---------- 設定・アプリについて ---------- */
.scroll--set { padding: 18px 16px 30px; }
.grp { margin-bottom: 18px; border-radius: var(--r-paper); background: #fbf6ea; box-shadow: 0 0 0 1px var(--kinari-3); overflow: hidden; }
.grp__h { padding: 12px 16px 4px; font: 400 18px/1.3 var(--f-brush); color: var(--ai); }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--kinari-2); }
.row > div:first-child { flex: 1; min-width: 0; }
.row__t { font-size: 15px; font-weight: 800; }
.row__s { font-size: 14px; color: var(--sumi-2); }
.stp { flex: none; display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: var(--kinari-2); }
.stp button { width: 40px; height: 40px; border-radius: 50%; background: #fbf6ea; color: var(--ai); font-size: 20px; font-weight: 800; }
.stp button:active { transform: scale(.9); }
.stp b { min-width: 4.4em; text-align: center; font-size: 14px; font-weight: 800; }
.link { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 16px; font-size: 15px; font-weight: 800; text-align: left; color: var(--ai); }
.link + .link { border-top: 1px solid var(--kinari-2); }
.link__ch { margin-left: auto; }
.link--beni { color: var(--beni-2); }
.link:active { background: var(--kinari-2); }
.scroll--about { padding: 0 0 30px; }
.ab { padding: 26px 22px 0; text-align: center; }
.ab__icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 12px 24px -10px rgba(19, 36, 57, .7); }
.ab__t { margin-top: 12px; font: 400 28px/1.3 var(--f-brush); color: var(--ai); }
.ab__v { font-size: 13px; color: var(--sumi-2); }
.ab__p { margin-top: 14px; text-align: left; font-size: 15px; }
.ab__note { margin-top: 14px; padding: 12px 14px; background: var(--kinari-2); border-radius: var(--r-paper); text-align: left; font-size: 14px; }
.ab__h { margin-top: 20px; text-align: left; font: 400 19px/1.3 var(--f-brush); color: var(--ai); }
.ab__l { margin: 6px 0 20px; text-align: left; }
.ab__l li { padding: 7px 0 7px 18px; position: relative; font-size: 14px; border-bottom: 1px dashed var(--kinari-3); }
.ab__l li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 7px; height: 7px; background: var(--beni); transform: rotate(45deg); }
.ab__art { display: block; width: calc(100% + 44px); height: auto; margin: 22px -22px 0; }

/* ---------- のれん（タブ） ---------- */
.noren {
  flex: none; position: relative; z-index: 4;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px;
  padding: 6px 0 var(--sb);
  background: var(--ai-deep);
  border-top: 4px solid var(--cha);
}
.noren__t {
  min-height: 60px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  background: var(--ai);
  color: #c9d3e3;
  border-radius: 0 0 6px 6px;
  transition: transform .25s cubic-bezier(.3, 1.5, .5, 1), background .2s;
  transform-origin: top center;
}
.noren__t span { font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.noren__t .ic { width: 22px; height: 22px; }
.noren__t:active { transform: skewX(-4deg) scaleY(.96); }
.noren__t.is-on { background: var(--beni); color: #fff8ec; }

/* ---------- シート・トースト・到着 ---------- */
.layer { position: absolute; inset: 0; z-index: 70; }
.scrim { position: absolute; inset: 0; background: rgba(19, 36, 57, .55); opacity: 0; transition: opacity .25s; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 90%; overflow-y: auto; overscroll-behavior: contain; padding: 0 20px calc(20px + var(--sb)); background: var(--kinari); border-radius: 18px 18px 0 0; transform: translateY(100%); transition: transform .3s var(--ease); box-shadow: inset 0 4px 0 var(--beni); }
.layer.is-open .scrim { opacity: 1; }
.layer.is-open .sheet { transform: none; }
.sheet__grip { position: sticky; top: 0; z-index: 2; height: 28px; margin: 0 -20px; display: grid; place-items: center; background: var(--kinari); touch-action: none; }
.sheet__grip::before { content: ""; width: 42px; height: 5px; border-radius: 3px; background: var(--kinari-3); }
.sheet__t { font: 400 23px/1.35 var(--f-brush); color: var(--ai); margin-bottom: 10px; }
.sheet__p { font-size: 15px; }
.sheet__acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.how { display: flex; gap: 12px; align-items: flex-start; padding: 12px; background: var(--kinari-2); border-radius: var(--r-paper); font-size: 15px; }
.how__ic { width: 36px; height: 36px; flex: none; fill: none; stroke: var(--ai); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.how__l { margin-top: 10px; }
.how__l li { position: relative; padding: 4px 0 4px 18px; font-size: 14px; }
.how__l li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 7px; height: 7px; background: var(--beni); transform: rotate(45deg); }
.seg3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 12px; background: var(--kinari-2); }
.seg3__b { min-height: 44px; border-radius: 9px; font-weight: 800; color: var(--sumi-2); }
.seg3__b.is-on { background: var(--ai); color: var(--kinari); }
.in__now { margin-top: 10px; font-size: 14px; }
.in__box { display: flex; align-items: baseline; gap: 6px; margin-top: 8px; padding: 6px 16px; border-radius: 12px; background: #fbf6ea; box-shadow: inset 0 0 0 2px var(--ai); }
.in__box input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font: 400 38px/1.3 var(--f-num); color: var(--ai); text-align: right; }
.in__box input::placeholder { color: #8d9bb3; }
.in__u { font: 400 22px/1 var(--f-brush); color: var(--ai); }
.shake { animation: shake .35s; box-shadow: inset 0 0 0 2px var(--beni); }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.chip { min-height: 44px; border-radius: 10px; background: var(--kinari-2); color: var(--ai); font-size: 13px; font-weight: 800; }
.chip:active { transform: scale(.94); background: var(--kinari-3); }
.in__pv { margin: 12px 0 14px; min-height: 48px; font-size: 14px; }
.in__pv.is-err { color: var(--beni-2); font-weight: 800; }
.pv-hit { display: block; font-weight: 800; color: var(--beni-2); }
.ss { display: flex; gap: 14px; align-items: flex-start; }
.ss__card { width: 92px; flex: none; }
.ss__t { flex: 1; min-width: 0; }
.ss__k { font-size: 12px; font-weight: 600; color: var(--sumi-2); }
.ss__n { font: 400 30px/1.25 var(--f-brush); color: var(--ai); }
.ss__y { font-size: 13px; color: var(--sumi-2); }
.ss__p { display: flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 14px; font-weight: 600; }
.ss__p .ic { width: 16px; height: 16px; color: var(--beni); }
.ss__dl { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; border-top: 1px solid var(--kinari-3); border-bottom: 1px solid var(--kinari-3); }
.ss__dl div { padding: 8px 4px; text-align: center; }
.ss__dl div + div { border-left: 1px dashed var(--kinari-3); }
.ss__dl dt { font-size: 12px; font-weight: 600; color: var(--sumi-2); }
.ss__dl dd { font-size: 16px; font-weight: 800; color: var(--ai); }
.ss__note { margin-top: 12px; font-size: 15px; }

.toast { position: absolute; left: 14px; right: 14px; bottom: calc(84px + var(--sb)); z-index: 80; display: flex; align-items: center; gap: 8px; min-height: 50px; padding: 6px 6px 6px 16px; border-radius: 10px; background: var(--sumi); color: var(--kinari); font-size: 14px; font-weight: 600; box-shadow: 0 12px 26px rgba(19, 36, 57, .4); transform: translateY(16px); opacity: 0; pointer-events: none; transition: transform .25s cubic-bezier(.3, 1.4, .5, 1), opacity .2s; }
.toast.is-on { transform: none; opacity: 1; pointer-events: auto; }
.layer--arrive:not([hidden]) ~ .toast { opacity: 0; pointer-events: none; }
.toast__m { flex: 1; }
.toast__u { flex: none; min-height: 40px; padding: 0 12px; border-radius: 8px; color: #f6c4a8; font-weight: 800; }

.layer--arrive { background: var(--ai); opacity: 0; transition: opacity .3s; overflow-y: auto; }
.layer--arrive::before { content: ""; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 100%, transparent 12px, rgba(243, 234, 214, .08) 13px, transparent 14px, transparent 20px, rgba(243, 234, 214, .06) 21px, transparent 22px) 0 0 / 44px 22px; }
.layer--arrive.is-open { opacity: 1; }
.arrive { position: relative; min-height: 100%; display: flex; flex-direction: column; align-items: center; padding: calc(28px + var(--st)) 24px calc(24px + var(--sb)); color: var(--kinari); text-align: center; }
.arrive__k { font-size: 14px; font-weight: 800; letter-spacing: .2em; color: #e9c9a0; }
.arrive__t { font: 400 44px/1.2 var(--f-brush); letter-spacing: .12em; margin-top: 4px; animation: inUp .5s var(--ease) both .1s; }
.arrive__t small { display: block; font: 400 18px/1.4 var(--f-brush); letter-spacing: .1em; }
.is-goal .arrive__t { color: #ffe3b0; }
.arrive .flip { width: 58%; max-width: 230px; margin: 18px auto 0; }
.arrive .face, .arrive .back { box-shadow: 0 24px 40px -16px rgba(0, 0, 0, .7); }
.arrive__s { margin-top: 18px; font-size: 15px; max-width: 320px; }
.arrive__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; max-width: 360px; margin-top: auto; padding-top: 20px; }
@keyframes inUp { from { opacity: 0; transform: translateY(14px); } }

/* ---------- スプラッシュ・はじめに ---------- */
.splash { position: absolute; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: var(--ai); color: var(--kinari); transition: opacity .32s; }
.splash img { border-radius: 24px; box-shadow: 0 16px 34px -12px rgba(0, 0, 0, .7); }
.splash__n { margin-top: 8px; font: 400 30px/1.3 var(--f-brush); letter-spacing: .14em; }
.splash__s { font-size: 13px; font-weight: 600; color: #d6deea; letter-spacing: .1em; }
.splash.is-out { opacity: 0; }
.ob { position: absolute; inset: 0; z-index: 95; display: flex; flex-direction: column; background: var(--kinari); transition: opacity .3s; }
.ob.is-out { opacity: 0; }
.ob__img { flex: 1; min-height: 0; background-size: cover; background-position: center 35%; animation: fade .4s ease; }
.ob__p { position: relative; padding: 22px 24px calc(18px + var(--sb)); background: var(--kinari); box-shadow: 0 -10px 0 var(--kinari); }
.ob__p::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; background: linear-gradient(rgba(243, 234, 214, 0), var(--kinari)); }
.ob__no { font: 400 18px/1 var(--f-brush); color: var(--beni-2); }
.ob__t { margin-top: 6px; font: 400 27px/1.4 var(--f-brush); color: var(--ai); }
.ob__s { margin-top: 8px; font-size: 15px; }
.ob__f { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.ob__skip { min-height: 44px; padding: 0 8px; font-size: 14px; font-weight: 800; color: var(--sumi-2); }
.ob__dots { flex: 1; display: flex; justify-content: center; gap: 6px; }
.ob__dots i { width: 8px; height: 8px; background: var(--kinari-3); transform: rotate(45deg); transition: background .2s; }
.ob__dots i.is-on { background: var(--beni); }
.ob__go { min-width: 132px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
