/* すいろ職人 — 石と苔の庭（苔緑×石灰×水色） */
:root {
  --gravel: #e3e5df;
  --gravel-line: rgba(96, 106, 98, .13);
  --paper: #f5f6f2;
  --stone: #8b918d;
  --stone-light: #c4c9c3;
  --stone-dark: #4c5450;
  --moss: #5d8a3a;
  --moss-deep: #34531f;
  --water: #4fb0d8;
  --water-deep: #176d93;
  --ink: #1f2b26;
  --ink-soft: #45524b;
  --soil: #8d6c45;
  --f-head: 'Shippori Mincho B1', 'Yu Mincho', serif;
  --f-body: 'Zen Kaku Gothic New', 'Hiragino Sans', sans-serif;
  --f-num: 'Cormorant Garamond', 'Shippori Mincho B1', serif;
  --r-tile: 10px;
  --r-slab: 8px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --turn: cubic-bezier(.34, 1.56, .64, 1);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body {
  font-family: var(--f-body); font-weight: 500; color: var(--ink);
  background: #2c3a30; line-break: strict;
  -webkit-font-smoothing: antialiased; -webkit-user-select: none; user-select: none; overscroll-behavior: none;
}
@media (min-width: 600px) {
  body { background: #2c3a30 radial-gradient(circle at 30% 20%, rgba(93, 138, 58, .35), transparent 50%), radial-gradient(circle at 70% 80%, rgba(79, 176, 216, .2), transparent 50%); }
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
svg { display: block; }
.num { font-family: var(--f-num); font-weight: 700; font-variant-numeric: lining-nums tabular-nums; }

/* 白砂利に熊手の砂紋 */
.app {
  position: relative; height: 100dvh; width: 100%; max-width: 430px; margin: 0 auto; overflow: hidden;
  background-color: var(--gravel);
  background-image:
    repeating-linear-gradient(0deg, transparent 0 10px, var(--gravel-line) 10px 12px),
    radial-gradient(rgba(0, 0, 0, .05) .8px, transparent 1.2px);
  background-size: auto, 5px 5px;
}
@media (min-width: 600px) { .app { box-shadow: 0 30px 80px rgba(0, 0, 0, .5); } }

.screen {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  visibility: hidden; opacity: 0; transform: translateY(10px);
  transition: opacity .32s ease, transform .4s var(--ease), visibility 0s .4s;
}
.screen.is-active { visibility: visible; opacity: 1; transform: none; transition: opacity .32s ease, transform .4s var(--ease), visibility 0s; z-index: 2; }
.scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

/* ---------- ボタン（川原の石） ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 10px 18px; border: 0; border-radius: 999px;
  font-weight: 700; font-size: 16px; text-decoration: none; line-height: 1.3;
  word-break: keep-all;
  transition: transform .14s var(--ease), filter .14s, box-shadow .14s;
}
.btn:active { transform: scale(.96); filter: brightness(.94); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn--water { background: var(--water-deep); color: #fff; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .25), inset 0 -3px 0 rgba(0, 0, 0, .18), 0 6px 14px rgba(23, 109, 147, .35); }
.btn--stone { background: var(--paper); color: var(--ink); box-shadow: inset 0 -3px 0 rgba(76, 84, 80, .18), 0 3px 8px rgba(31, 43, 38, .14); }
.btn--danger { background: #9b2c22; color: #fff; }
.btn--l { min-height: 56px; width: 100%; font-size: 17px; }
.btn--xl { min-height: 62px; width: 100%; font-size: 19px; font-family: var(--f-head); font-weight: 800; letter-spacing: .06em; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.iconbtn {
  width: 46px; height: 46px; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%;
  background: rgba(245, 246, 242, .9); color: var(--ink); text-decoration: none;
  box-shadow: 0 2px 6px rgba(31, 43, 38, .16); transition: transform .14s var(--ease);
}
.iconbtn:active { transform: scale(.92); }
.iconbtn svg { width: 22px; height: 22px; }

/* ---------- バー ---------- */
.bar { flex: none; display: flex; align-items: center; gap: 10px; padding: calc(10px + var(--safe-t)) 14px 8px; }
.bar__title { flex: 1; margin: 0; text-align: center; font-family: var(--f-head); font-weight: 800; font-size: 21px; letter-spacing: .08em; font-feature-settings: "palt"; }
.bar__sp { width: 46px; flex: none; }
.bar__mid { flex: 1; text-align: center; }
.bar__ch { margin: 0; font-size: 13px; font-weight: 700; color: var(--moss-deep); letter-spacing: .12em; }
.bar--play .bar__title { font-size: 22px; line-height: 1.2; }

/* ---------- タイトル ---------- */
.screen--title { background: #cfd3cb url(/app-development/apps/a020/img/title.webp) center bottom / cover no-repeat; }
.title__top { display: flex; justify-content: flex-end; padding: calc(12px + var(--safe-t)) 14px 0; }
.title__brand { position: relative; display: flex; flex-direction: row-reverse; align-items: flex-start; gap: 14px; padding: 0 30px; }
.title__logo {
  margin: 0; writing-mode: vertical-rl; text-orientation: upright;
  font-family: var(--f-head); font-weight: 800; font-size: clamp(48px, 15vw, 64px); line-height: 1.05; letter-spacing: .12em;
  color: var(--ink); padding: 18px 10px; background: var(--paper);
  border-radius: 4px; box-shadow: 0 1px 0 #fff inset, 0 10px 24px rgba(31, 43, 38, .18);
  border-left: 5px solid var(--moss);
}
.title__seal { margin: 230px 0 0; width: 44px; height: 44px; display: grid; place-items: center; background: var(--moss-deep); border-radius: 6px; transform: rotate(-4deg); }
.title__seal span { font-family: var(--f-head); font-weight: 800; font-size: 26px; color: var(--paper); }
.title__lead { margin: 16px 0 0; writing-mode: vertical-rl; font-family: var(--f-head); font-weight: 700; font-size: 17px; letter-spacing: .2em; line-height: 1.9; color: var(--ink); background: rgba(245, 246, 242, .92); padding: 12px 6px; border-radius: 3px; }
.title__lead span { display: block; }
.title__panel { margin-top: auto; display: grid; gap: 12px; padding: 18px 18px calc(22px + var(--safe-b)); background: linear-gradient(rgba(245, 246, 242, 0), rgba(245, 246, 242, .85) 30%); }
.title__stat { justify-self: center; margin: 0; display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 16px; border-radius: 999px; background: var(--paper); color: var(--ink); font-weight: 700; font-size: 14px; box-shadow: 0 2px 8px rgba(31, 43, 38, .12); }
.title__stat svg { width: 18px; height: 18px; color: #b68a12; align-self: center; }
.title__stat b { font-size: 24px; color: var(--water-deep); }
.title__of { font-family: var(--f-num); font-weight: 700; font-size: 17px; }
.title__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- ステージ選択（飛び石） ---------- */
.screen--stages { background: #cdd2c9 url(/app-development/apps/a020/img/stages.webp) center / cover no-repeat; }
.screen--stages .bar { background: linear-gradient(rgba(245, 246, 242, .95), rgba(245, 246, 242, .75)); }
.stages__scroll { padding: 8px 0 calc(28px + var(--safe-b)); }
.chap { margin: 0 14px 16px; }
.chap__head {
  position: relative; height: 104px; border-radius: var(--r-slab); overflow: hidden;
  background: center / cover no-repeat; display: flex; align-items: flex-end;
  box-shadow: 0 6px 16px rgba(31, 43, 38, .2);
}
.chap__label { margin: 0 0 10px 10px; padding: 6px 12px 7px; background: var(--paper); border-radius: 4px; display: flex; align-items: baseline; gap: 10px; }
.chap__name { font-family: var(--f-head); font-weight: 800; font-size: 20px; letter-spacing: .08em; }
.chap__en { font-family: var(--f-num); font-weight: 700; font-size: 15px; color: var(--moss-deep); font-style: italic; }
.chap__cnt { margin-left: auto; margin-right: 10px; margin-bottom: 12px; padding: 4px 10px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; }
.path { position: relative; height: 410px; margin-top: 8px; }
.path svg.path__line { position: absolute; inset: 0; width: 100%; height: 100%; }
.path__line path { fill: none; stroke: rgba(79, 176, 216, .75); stroke-width: 5; stroke-dasharray: 2 10; stroke-linecap: round; }
.stone {
  position: absolute; width: 78px; height: 72px; margin: -36px 0 0 -39px;
  border: 0; padding: 0; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  background: radial-gradient(circle at 35% 30%, #eef0ec, #c2c7c0 70%, #a8aea7);
  border-radius: 46% 54% 52% 48% / 52% 46% 54% 48%;
  box-shadow: 0 6px 0 rgba(76, 84, 80, .35), 0 12px 18px rgba(31, 43, 38, .22);
  transition: transform .18s var(--turn);
}
.stone:active { transform: scale(.94); }
.stone__no { font-family: var(--f-num); font-weight: 700; font-size: 28px; line-height: 1; }
.stone__stars { display: flex; gap: 1px; }
.stone__stars svg { width: 13px; height: 13px; color: rgba(76, 84, 80, .35); }
.stone__stars svg.on { color: #b68a12; }
.stone.is-locked { background: radial-gradient(circle at 35% 30%, #6a716b, #535a55 70%); color: #f2f4f0; }
.stone.is-locked svg.lk { width: 20px; height: 20px; }
.stone.is-next::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 3px solid var(--water); animation: ripple 1.8s ease-out infinite; pointer-events: none; }
@keyframes ripple { from { transform: scale(.8); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
.stone__tag { position: absolute; top: -26px; padding: 3px 8px; border-radius: 999px; background: var(--water-deep); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; }

/* ---------- プレイ ---------- */
.meter { flex: none; margin: 0 14px; padding: 8px 14px 10px; background: var(--paper); border-radius: var(--r-slab); box-shadow: 0 3px 10px rgba(31, 43, 38, .1); }
.meter__main { display: flex; align-items: baseline; gap: 8px; }
.meter__k { font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.meter__n { font-size: 40px; line-height: .9; color: var(--water-deep); transition: color .2s; }
.meter__n.is-low { color: #a8321f; }
.meter__n.bump { animation: bump .25s var(--turn); }
@keyframes bump { from { transform: scale(1.25); } }
.meter__of { font-family: var(--f-num); font-weight: 700; font-size: 20px; color: var(--ink-soft); }
.meter__bar { position: relative; height: 8px; margin-top: 6px; border-radius: 4px; background: #d9ddd6; overflow: visible; }
.meter__bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: linear-gradient(90deg, var(--water), var(--water-deep)); transition: width .3s var(--ease); }
.meter__bar em { position: absolute; top: -3px; width: 3px; height: 14px; border-radius: 2px; background: #b68a12; }
.meter__par { margin: 6px 0 0; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink-soft); word-break: keep-all; }
.meter__par svg { width: 15px; height: 15px; color: #b68a12; flex: none; }
.meter__par b { font-size: 16px; color: var(--ink); }

.stagewrap { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; }
.board {
  --t: 56px;
  position: relative;
  padding: calc(var(--t) * .8);
}
.grid { display: grid; grid-template-columns: repeat(var(--cols), var(--t)); grid-auto-rows: var(--t); gap: 2px; padding: 4px; background: #7d847e; border-radius: 12px; box-shadow: inset 0 2px 6px rgba(0, 0, 0, .35), 0 8px 18px rgba(31, 43, 38, .25); }
.tile { position: relative; width: var(--t); height: var(--t); padding: 0; border: 0; background: none; touch-action: manipulation; }
.tile svg { width: 100%; height: 100%; transform: rotate(var(--r)); transition: transform .24s var(--turn); }
.tile:active:not(.is-fixed) svg { filter: brightness(1.06); }
.tile.is-fixed { cursor: not-allowed; }
.tile.shake svg { animation: shake .3s; }
@keyframes shake { 25% { translate: -3px 0; } 75% { translate: 3px 0; } }
.tile:focus-visible { outline: 3px solid var(--water); outline-offset: -3px; z-index: 1; }
.st { fill: url(#granite); stroke: rgba(40, 48, 44, .35); stroke-width: 2; }
.st--fixed { fill: url(#granite-dark); }
.st-hi { fill: none; stroke: rgba(255, 255, 255, .28); stroke-width: 2; }
.gr { fill: #9aa49a; }
.rk-sh { fill: rgba(25, 32, 28, .35); }
.rk { fill: #8a918b; }
.rk-hi { fill: rgba(255, 255, 255, .22); }
.mo { fill: var(--moss); opacity: .92; }
.mo2 { fill: #8bb35a; }
.ch path { stroke: #474e4a; stroke-width: 38; fill: none; }
.ch circle { fill: #474e4a; }
.ch2 path { stroke: #626a65; stroke-width: 26; fill: none; }
.ch2 circle { fill: #626a65; }
.cap { fill: #474e4a; stroke: #2f3532; stroke-width: 3; }
.kasu { fill: none; stroke: #2a2f2c; stroke-width: 5; stroke-linecap: square; }
.w { fill: none; stroke: #4fb0d8; stroke-width: 20; stroke-linecap: butt; stroke-dasharray: 1 1; stroke-dashoffset: 1; opacity: 0; }
.w.on { opacity: 1; stroke-dashoffset: 0; transition: stroke-dashoffset calc(var(--step, 140ms) * .5) linear, opacity .05s; }
.w-pool { fill: #4fb0d8; opacity: 0; transform-origin: 50px 50px; transform: scale(.2); }
.w-pool.on { opacity: 1; transform: none; transition: transform .2s var(--turn), opacity .1s; }
.is-wet .st { filter: saturate(1.15) brightness(.97); }
.is-draining .w, .is-draining .w-pool { opacity: 0 !important; transition: opacity .6s ease !important; }
.splash { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; pointer-events: none; opacity: 0; z-index: 2; }
.splash.on { animation: splash .7s ease-out forwards; }
.splash[data-d="0"] { top: 0; } .splash[data-d="1"] { left: 100%; } .splash[data-d="2"] { top: 100%; } .splash[data-d="3"] { left: 0; }
.splash::before, .splash::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px rgba(79, 176, 216, .8); }
.splash::after { inset: 8px; background: rgba(79, 176, 216, .9); border: 0; box-shadow: none; }
@keyframes splash { 0% { opacity: 1; transform: scale(.3); } 60% { opacity: 1; transform: scale(1.3); } 100% { opacity: 0; transform: scale(1.6); } }

/* 筧と田んぼ（盤の外周） */
.spout, .paddy { position: absolute; z-index: 1; }
.spout { width: calc(var(--t) * .9); height: calc(var(--t) * .58); }
.spout--3 { left: calc(var(--t) * -.1 + 4px); top: calc(var(--t) * 1.01 + 4px + var(--r0) * (var(--t) + 2px)); }
.spout--0 { top: calc(var(--t) * .06 + 4px); left: calc(var(--t) * .85 + 4px + var(--c0) * (var(--t) + 2px)); transform: rotate(90deg); transform-origin: 50% 50%; }
.sp-basin { fill: #7b827c; stroke: #59605a; stroke-width: 3; }
.sp-water { fill: var(--water); }
.sp-bamboo { fill: #8fae4e; stroke: #5d7a2a; stroke-width: 2; }
.sp-node { stroke: #5d7a2a; stroke-width: 2.5; }
.sp-drip { fill: var(--water); animation: drip 1.2s ease-in infinite; }
@keyframes drip { 0% { transform: translateX(0); opacity: 1; } 100% { transform: translateX(8px); opacity: 0; } }
.spout.is-spill .sp-water { fill: #8fd2ee; }
.paddy { width: calc(var(--t) * .74); height: var(--t); }
.paddy--1 { right: calc(var(--t) * .03); top: calc(var(--t) * .8 + 4px + var(--r0) * (var(--t) + 2px)); }
.paddy--2 { width: var(--t); height: calc(var(--t) * .74); bottom: calc(var(--t) * .03); left: calc(var(--t) * .8 + 4px + var(--c0) * (var(--t) + 2px)); }
.paddy svg { width: 100%; height: 100%; }
.pd-bank { fill: var(--moss); stroke: #2e4a1b; stroke-width: 3; }
.pd-soil { fill: var(--soil); }
.pd-water { fill: #6cc4e6; opacity: 0; transition: opacity .5s ease; }
.pd-sd { fill: none; stroke: #a9d462; stroke-width: 4; stroke-linecap: round; }
.pd-rip { fill: none; stroke: #fff; stroke-width: 2; opacity: 0; }
.paddy.is-full .pd-water { opacity: .85; }
.paddy.is-full .pd-sd { stroke: #c6ee7c; }
.paddy.is-full .pd-rip { animation: prip 1.4s ease-out 2; }
@keyframes prip { from { r: 4; opacity: .9; } to { r: 46; opacity: 0; } }
.paddy.is-full { animation: pfill .5s var(--turn); }
@keyframes pfill { 40% { transform: scale(1.12); } }

.coach { position: absolute; left: 50%; top: 4px; transform: translateX(-50%); margin: 0; display: none; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; white-space: nowrap; z-index: 3; box-shadow: 0 6px 14px rgba(0, 0, 0, .25); }
.coach.is-on { display: flex; animation: float 1.6s ease-in-out infinite alternate; }
.coach svg { width: 20px; height: 20px; color: var(--water); }
@keyframes float { to { transform: translate(-50%, -4px); } }
.msg { flex: none; min-height: 24px; margin: 0 18px; text-align: center; font-size: 14px; font-weight: 700; color: var(--ink-soft); word-break: keep-all; }
.msg.is-good { color: var(--water-deep); }
.msg.is-bad { color: #8f2a1c; }
.actions { flex: none; display: grid; grid-template-columns: auto auto 1fr; gap: 10px; padding: 8px 14px calc(14px + var(--safe-b)); }
.btn--sq { flex-direction: column; gap: 2px; min-height: 60px; width: 70px; padding: 6px; border-radius: 18px; font-size: 12px; }
.btn--pour { min-height: 60px; font-family: var(--f-head); font-weight: 800; font-size: 19px; letter-spacing: .1em; border-radius: 22px; }
.btn--pour svg { width: 26px; height: 26px; }
.btn--pour.is-flowing svg { animation: drip2 .6s ease-in-out infinite alternate; }
@keyframes drip2 { to { transform: translateY(3px); } }
.screen--play.is-busy .grid { pointer-events: none; }
.screen--play.is-out .tile:not(.is-fixed) svg { filter: grayscale(.4) brightness(.92); }

/* ---------- クリア ---------- */
.screen--clear { background: var(--gravel); }
.clear__hero {
  position: relative; min-height: 290px; padding: calc(30px + var(--safe-t)) 20px 46px; text-align: center;
  background: #bfe3f0 url(/app-development/apps/a020/img/clear.webp) center / cover no-repeat;
  display: flex; flex-direction: column; align-items: center;
}
.clear__kicker { margin: 0; padding: 4px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .1em; }
.clear__title { margin: 12px 0 0; padding: 10px 18px; background: var(--paper); border-radius: 4px; border-left: 5px solid var(--moss); display: flex; align-items: baseline; gap: 10px; font-family: var(--f-head); font-weight: 800; letter-spacing: .06em; box-shadow: 0 8px 18px rgba(31, 43, 38, .18); }
.clear__title span:first-child { font-size: 16px; color: var(--moss-deep); }
.clear__title span:last-child { font-size: 30px; }
.stars { margin: 18px 0 0; display: flex; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--paper); box-shadow: 0 6px 14px rgba(31, 43, 38, .16); }
.stars svg { width: 40px; height: 40px; color: #d1d5ce; }
.stars svg.on { color: #c79410; animation: starpop .5s var(--turn) both; }
.stars svg.on:nth-child(2) { animation-delay: .25s; }
.stars svg.on:nth-child(3) { animation-delay: .5s; }
@keyframes starpop { from { transform: scale(0) rotate(-40deg); } }
.clear__word { margin: 12px 0 0; padding: 4px 14px; border-radius: 999px; background: var(--water-deep); color: #fff; font-weight: 700; font-size: 15px; word-break: keep-all; }
.slab { position: relative; margin: -24px 14px 0; padding: 16px; background: var(--paper); border-radius: var(--r-slab); box-shadow: 0 8px 22px rgba(31, 43, 38, .14); }
.cstats { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cstats div { padding: 8px 6px; text-align: center; border-radius: 6px; background: #e7eae4; }
.cstats dt { font-size: 12px; font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
.cstats dd { margin: 2px 0 0; font-size: 14px; font-weight: 700; white-space: nowrap; }
.cstats b { font-size: 32px; line-height: 1; margin-right: 2px; }
.clear__note { margin: 10px 0 0; font-size: 14px; line-height: 1.7; color: var(--ink-soft); }
.clear__note:empty { display: none; }
.sub-h { margin: 14px 0 8px; font-family: var(--f-head); font-weight: 800; font-size: 16px; letter-spacing: .08em; }
.mini { padding: 10px; border-radius: 6px; background: #d9ddd6; }
.mini svg { width: 100%; height: auto; max-height: 300px; }
.mini .wm { stroke: #4fb0d8; stroke-width: 20; fill: none; }
.mini .wm-pool { fill: #4fb0d8; }
.mini .m-src { fill: #7b827c; stroke: var(--water); stroke-width: 8; }
.mini .m-pd { fill: var(--soil); stroke: var(--moss); stroke-width: 8; }
.mini .m-pd.is-full { fill: #6cc4e6; }
.clear__scroll { padding-bottom: 16px; }
.clear__actions { flex: none; display: grid; gap: 10px; padding: 10px 14px calc(14px + var(--safe-b)); background: linear-gradient(rgba(227, 229, 223, 0), var(--gravel) 30%); }
.clear__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- 設定 ---------- */
.settings__scroll { padding-bottom: calc(26px + var(--safe-b)); }
.sec-h { margin: 18px 18px 8px; font-family: var(--f-head); font-weight: 800; font-size: 17px; letter-spacing: .08em; }
.howto { list-style: none; margin: 0 14px; padding: 0; display: grid; gap: 10px; }
.howto li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 10px; border-radius: var(--r-slab); background: var(--paper); box-shadow: 0 3px 10px rgba(31, 43, 38, .08); }
.howto img { width: 96px; height: 96px; border-radius: 6px; object-fit: cover; }
.howto h3 { margin: 0; display: flex; align-items: center; gap: 8px; font-family: var(--f-head); font-weight: 800; font-size: 17px; word-break: keep-all; }
.howto__no { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 4px; background: var(--moss-deep); color: var(--paper); font-size: 15px; flex: none; }
.howto p { margin: 6px 0 0; font-size: 14px; line-height: 1.7; color: var(--ink-soft); word-break: normal; }
.group { margin: 0 14px; border-radius: var(--r-slab); background: var(--paper); box-shadow: 0 3px 10px rgba(31, 43, 38, .08); overflow: hidden; }
.row { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 10px 14px; border-bottom: 1px solid #e1e4de; }
.row:last-child { border-bottom: 0; }
.row--stack { flex-direction: column; align-items: stretch; }
.row__label { flex: 1; font-weight: 700; font-size: 15px; display: flex; flex-direction: column; }
.row__label small { font-weight: 500; font-size: 13px; color: var(--ink-soft); }
.row__v { font-size: 28px; color: var(--water-deep); }
.row__u { font-family: var(--f-num); font-weight: 700; font-size: 18px; color: var(--ink-soft); }
.row--btn { width: 100%; border: 0; background: none; color: #8f2a1c; font-weight: 700; font-size: 15px; justify-content: flex-start; }
.row--btn svg { width: 22px; height: 22px; }
.row--btn:active { background: #eceee9; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 999px; background: #e1e4de; }
.seg button { min-height: 44px; border: 0; border-radius: 999px; background: none; font-weight: 700; font-size: 15px; color: var(--ink-soft); transition: background .2s, color .2s; }
.seg button[aria-pressed="true"] { background: var(--moss-deep); color: #fff; }
.switch { flex: none; position: relative; width: 56px; height: 32px; border-radius: 999px; border: 0; background: #b9bfb8; transition: background .2s; }
.switch i { position: absolute; left: 3px; top: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .2); transition: transform .25s var(--turn); }
.switch[aria-checked="true"] { background: var(--moss-deep); }
.switch[aria-checked="true"] i { transform: translateX(24px); }
.about { padding: 16px 14px; display: grid; gap: 12px; }
.about__head { display: flex; align-items: center; gap: 12px; }
.about__head img { width: 64px; height: 64px; border-radius: 15px; }
.about__name { margin: 0; font-family: var(--f-head); font-weight: 800; font-size: 19px; }
.about__ver { margin: 2px 0 0; font-size: 13px; color: var(--ink-soft); }
.about__note, .about__p { margin: 0; font-size: 14px; line-height: 1.75; }
.about__p { color: var(--ink-soft); }
.about__k { margin: 0; font-weight: 700; font-size: 14px; color: var(--moss-deep); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { padding: 5px 10px; border-radius: 999px; background: #e1e4de; font-size: 13px; font-weight: 700; }

/* ---------- シート・トースト・スプラッシュ ---------- */
.scrim { position: absolute; inset: 0; z-index: 20; background: rgba(20, 30, 24, .45); opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; }
.scrim.is-on { opacity: 1; visibility: visible; transition: opacity .25s; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 21; display: grid; gap: 12px; padding: 12px 18px calc(20px + var(--safe-b)); background: var(--paper); border-radius: 20px 20px 0 0; transform: translateY(105%); transition: transform .34s var(--ease); touch-action: none; }
.sheet.is-on { transform: none; }
.sheet__grab { justify-self: center; width: 44px; height: 5px; border-radius: 3px; background: #c4c9c3; }
.sheet h2 { margin: 4px 0 0; font-family: var(--f-head); font-weight: 800; font-size: 22px; line-height: 1.4; word-break: keep-all; font-feature-settings: "palt"; }
.sheet p { margin: 0 0 6px; font-size: 15px; line-height: 1.75; color: var(--ink-soft); word-break: keep-all; }
.toast { position: absolute; left: 50%; bottom: calc(110px + var(--safe-b)); z-index: 30; max-width: calc(100% - 40px); padding: 12px 18px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; line-height: 1.55; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; transition: transform .3s var(--ease), opacity .2s; }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.splash { position: absolute; inset: 0; z-index: 40; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: var(--gravel); opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s; }
.splash.is-on { opacity: 1; visibility: visible; transition: none; }
.splash img { width: 108px; height: 108px; border-radius: 24px; box-shadow: 0 8px 20px rgba(31, 43, 38, .2); }
.splash p { margin: 0; font-family: var(--f-head); font-weight: 800; font-size: 24px; letter-spacing: .14em; }
.noscript { position: absolute; inset: auto 20px 40px; padding: 14px; border-radius: 8px; background: var(--paper); font-size: 15px; z-index: 50; }

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