/* しずかな釣り堀 — 深緑・水・木肌、和紙の額装と明朝 */
:root {
  --deep: #16301f;
  --deep-2: #1f4029;
  --moss: #2c5238;
  --water: #9ccfcf;
  --water-d: #2f6b70;
  --wood: #c4976a;
  --wood-d: #7d5636;
  --washi: #e4ebe3;
  --washi-2: #d3ddd2;
  --washi-line: #b9c7b8;
  --ink: #1b2420;
  --ink-2: #3a4a42;
  --light: #eef4ec;
  --light-2: #c9d8cc;
  --shu: #b8322a;
  --gold: #b8913a;
  --f-min: "Zen Old Mincho", "Hiragino Mincho ProN", serif;
  --f-ui: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
  --f-num: "Shippori Mincho B1", "Zen Old Mincho", serif;
  --slow: cubic-bezier(.25, .7, .25, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
[hidden] { display: none !important; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body { background: var(--deep); color: var(--light); font-family: var(--f-ui); font-weight: 500; font-size: 15px; line-height: 1.7; line-break: strict; overflow: hidden; -webkit-font-smoothing: antialiased; }
@media (min-width: 600px) {
  body { background: #0f2216 radial-gradient(ellipse at 50% 0, #24452f 0, transparent 60%); }
  .app { box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 30px 90px rgba(0,0,0,.5); }
}
button, input, a { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
svg { width: 1em; height: 1em; flex: none; }
.num { font-family: var(--f-num); font-weight: 800; font-variant-numeric: tabular-nums lining-nums; }
.nw { white-space: nowrap; }
.of { font-size: .78em; margin-left: 1px; font-weight: 700; }
h1, h2, h3, .bar__title { font-feature-settings: "palt"; word-break: keep-all; overflow-wrap: normal; }
p { word-break: normal; }
.app { position: relative; width: 100%; max-width: 430px; height: 100vh; height: 100dvh; margin: 0 auto; overflow: hidden; background: var(--deep); }

.screen { position: absolute; inset: 0; display: none; flex-direction: column; }
.screen.is-on { display: flex; animation: scrFade .45s var(--slow) both; }
.screen--detail.is-on, .screen--about.is-on { animation-name: scrIn; animation-duration: .4s; }
@keyframes scrFade { from { opacity: 0; } }
@keyframes scrIn { from { opacity: 0; transform: translateX(30px); } }
.scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

/* ===== ボタン ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 10px 20px; border: 0; border-radius: 12px; font-family: var(--f-min); font-weight: 700; font-size: 17px; line-height: 1.3; letter-spacing: .06em; text-decoration: none; word-break: keep-all; transition: transform .15s var(--slow), background .2s; user-select: none; -webkit-user-select: none; }
.btn svg { width: 22px; height: 22px; }
.btn:active { transform: scale(.97); }
.btn--main { background: var(--deep); color: var(--light); box-shadow: inset 0 0 0 1px rgba(238,244,236,.25), 0 8px 22px rgba(0,0,0,.25); }
.btn--washi { background: rgba(228,235,227,.94); color: var(--ink); box-shadow: inset 0 0 0 1px var(--washi-line); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.btn--danger { background: var(--shu); color: #fff; }
.btn--xl { min-height: 60px; font-size: 21px; width: 100%; border-radius: 14px; }
.btn--l { width: 100%; min-height: 52px; }
.ibtn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: inherit; text-decoration: none; transition: transform .15s; }
.ibtn svg { width: 24px; height: 24px; }
.ibtn:active { transform: scale(.9); }
.ibtn--mist { background: rgba(228,235,227,.9); color: var(--deep); }
.ibtn--ink { background: rgba(14,32,22,.78); color: var(--light); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* ===== スプラッシュ ===== */
.splash { position: absolute; inset: 0; z-index: 60; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: var(--deep); }
.splash img { width: 108px; height: 108px; border-radius: 26px; animation: sink 1s var(--slow) both; }
.splash p { margin: 0; font-family: var(--f-min); font-size: 22px; letter-spacing: .3em; color: var(--light); }
.app.is-splash .splash { display: flex; animation: fade .35s .62s forwards; }
@keyframes fade { to { opacity: 0; visibility: hidden; } }
@keyframes sink { from { opacity: 0; transform: translateY(-10px); } }

/* ===== タイトル ===== */
.screen--title { background: var(--deep) url(/app-development/apps/a016/img/title.webp) center / cover no-repeat; }
.title__top { display: flex; justify-content: flex-end; padding: calc(var(--safe-t) + 12px) 14px 0; }
.logo-wrap { position: absolute; right: 26px; top: calc(var(--safe-t) + 70px); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.logo { margin: 0; writing-mode: vertical-rl; font-family: var(--f-min); font-weight: 900; font-size: 46px; line-height: 1; letter-spacing: .16em; color: var(--deep); padding: 18px 12px; background: rgba(238,244,236,.86); border-radius: 4px; box-shadow: 0 0 0 1px rgba(22,48,31,.25), 6px 6px 0 rgba(22,48,31,.12); }
.logo__seal { display: grid; place-items: center; width: 44px; height: 44px; margin: 0; border-radius: 8px; background: var(--shu); color: #fff6ee; font-family: var(--f-min); font-weight: 900; font-size: 26px; line-height: 1; transform: rotate(-4deg); box-shadow: inset 0 0 0 2px rgba(255,240,230,.5); }
.title__bottom { margin-top: auto; display: flex; flex-direction: column; gap: 12px; padding: 0 18px calc(var(--safe-b) + 18px); }
.title__poem { margin: 0; align-self: center; padding: 6px 14px; border-radius: 6px; background: #0e2016; color: var(--light); font-family: var(--f-min); font-size: 15px; font-weight: 700; letter-spacing: .08em; text-align: center; word-break: keep-all; }
.title__nav { display: flex; gap: 8px; }
.title__nav .btn { flex: 1; padding: 8px; font-size: 16px; min-height: 52px; }
.title__stat { margin: 0; align-self: center; display: flex; align-items: center; gap: 10px; padding: 5px 14px; border-radius: 999px; background: #0e2016; color: var(--light); font-size: 14px; font-weight: 700; }
.title__stat b { font-size: 17px; }
.title__stat .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--light-2); }

/* ===== 釣り場 ===== */
.screen--fish { background: var(--water-d); user-select: none; -webkit-user-select: none; }
.water { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.fhud { position: absolute; left: 0; right: 0; top: 0; z-index: 3; display: flex; align-items: center; gap: 6px; padding: calc(var(--safe-t) + 10px) 10px 0; pointer-events: none; }
.fhud > * { pointer-events: auto; }
.fhud__sp { flex: 1; }
.fchip { display: flex; align-items: center; gap: 4px; margin: 0; height: 40px; padding: 0 9px; border-radius: 12px; background: rgba(14,32,22,.8); color: var(--light); font-size: 14px; font-weight: 700; white-space: nowrap; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.fchip svg { width: 20px; height: 20px; color: var(--water); }
.fchip b { font-size: 18px; }
.fchip--zone { background: rgba(228,235,227,.92); color: var(--ink); }
.fchip.is-new { animation: chipin .5s var(--spring); }
@keyframes chipin { from { transform: scale(.7); opacity: 0; } }
.cue { position: absolute; left: 0; right: 0; top: 30%; z-index: 4; margin: 0; text-align: center; pointer-events: none; opacity: 0; }
.cue span { display: inline-block; padding: 6px 18px 8px; border-radius: 8px; background: rgba(14,32,22,.86); color: var(--light); font-family: var(--f-min); font-weight: 900; font-size: 26px; letter-spacing: .08em; }
.cue.is-on { animation: cue 1.5s var(--slow) forwards; }
.cue.k-big span { font-size: 40px; background: var(--light); color: var(--deep); }
.cue.k-now span { font-size: 40px; background: var(--shu); color: #fff; }
.cue.k-bad span { background: rgba(60,20,16,.9); }
.cue.k-good span { background: var(--light); color: var(--deep); }
.cue.k-hint span { font-size: 17px; font-family: var(--f-ui); }
@keyframes cue { 0% { opacity: 0; transform: translateY(10px) scale(.94); } 12% { opacity: 1; transform: none; } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-8px); } }

.coach { position: absolute; left: 50%; bottom: calc(var(--safe-b) + 150px); z-index: 2; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; transition: opacity .4s; }
.coach.is-off { opacity: 0; }
.coach__finger { width: 34px; height: 34px; border-radius: 50%; background: rgba(238,244,236,.85); box-shadow: 0 0 0 8px rgba(238,244,236,.2); animation: pull 2.4s var(--slow) infinite; }
@keyframes pull { 0% { transform: translateY(-40px); opacity: 0; } 15% { opacity: 1; transform: translateY(-40px); } 60% { transform: translateY(30px); opacity: 1; } 70%, 100% { transform: translateY(30px); opacity: 0; } }
.coach__text { margin: 0; padding: 5px 14px; border-radius: 8px; background: rgba(14,32,22,.86); color: var(--light); font-family: var(--f-min); font-weight: 700; font-size: 16px; letter-spacing: .06em; word-break: keep-all; text-align: center; }

.fight { position: absolute; left: 12px; right: 12px; bottom: calc(var(--safe-b) + 78px); z-index: 3; padding: 10px 14px 10px; border-radius: 14px; background: rgba(14,32,22,.86); color: var(--light); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transform: translateY(20px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .3s var(--spring), visibility 0s .3s; }
.fight.is-on { opacity: 1; transform: none; visibility: visible; transition: opacity .25s, transform .3s var(--spring); }
.fight__row { display: flex; align-items: baseline; gap: 10px; }
.fight__row--sub { align-items: center; margin-top: 8px; }
.fight__label { font-size: 13px; font-weight: 700; color: var(--light-2); white-space: nowrap; }
.fight__state { font-family: var(--f-min); font-weight: 900; font-size: 17px; }
.fight__state.is-danger { color: #ffb4a6; }
.fight__state.is-slack { color: var(--water); }
.fight__dist { margin-left: auto; font-size: 13px; font-weight: 700; white-space: nowrap; }
.fight__dist b { font-size: 22px; margin-left: 4px; }
.meter { position: relative; display: flex; height: 14px; margin-top: 6px; border-radius: 7px; overflow: hidden; }
.meter__slack { flex: 42; background: #3d6d72; }
.meter__good { flex: 46; background: #5f9a63; }
.meter__danger { flex: 22; background: #a9473a; }
.meter__needle { position: absolute; top: -3px; bottom: -3px; left: 0; width: 5px; margin-left: -2.5px; border-radius: 3px; background: #fff; box-shadow: 0 0 0 2px var(--deep); }
.meter.is-over { animation: shake .12s linear infinite; }
@keyframes shake { 50% { transform: translateX(2px); } }
.stam { flex: 1; height: 8px; border-radius: 4px; background: rgba(238,244,236,.18); overflow: hidden; }
.stam i { display: block; height: 100%; width: 100%; background: var(--water); border-radius: 4px; transition: width .2s linear; }
.fight__help { margin: 8px 0 0; font-size: 13px; color: var(--light-2); text-align: center; word-break: keep-all; }

.fbar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 10px 10px calc(var(--safe-b) + 12px); }
.bait { flex: none; white-space: nowrap; display: flex; align-items: center; gap: 6px; height: 48px; padding: 0 14px 0 10px; border: 0; border-radius: 14px; background: rgba(228,235,227,.94); color: var(--ink); font-weight: 700; box-shadow: 0 6px 16px rgba(0,0,0,.25); transition: transform .15s; }
.bait:active { transform: scale(.96); }
.bait svg { width: 28px; height: 28px; color: var(--ink); }
.bait__k { font-size: 12px; color: var(--ink-2); }
.bait__v { font-family: var(--f-min); font-weight: 900; font-size: 16px; }
.fbar__hint { flex: 1; margin: 0; padding: 6px 10px; border-radius: 10px; background: rgba(14,32,22,.8); color: var(--light); font-size: 13px; font-weight: 700; text-align: center; line-height: 1.4; word-break: keep-all; }

/* 釣果 */
.catch { position: absolute; inset: 0; z-index: 10; display: none; align-items: center; justify-content: center; padding: 18px; background: rgba(8,20,14,.62); }
.catch.is-on { display: flex; animation: fadein .3s ease; }
@keyframes fadein { from { opacity: 0; } }
.catch__card { position: relative; width: 100%; max-width: 360px; padding: 18px 18px 14px; border-radius: 6px; background: var(--washi); color: var(--ink); text-align: center; box-shadow: 0 0 0 6px rgba(228,235,227,.35), 0 30px 60px rgba(0,0,0,.45); animation: unroll .55s var(--slow); background-image: radial-gradient(rgba(27,36,32,.035) 1px, transparent 1px); background-size: 5px 5px; }
@keyframes unroll { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.catch__eyebrow { margin: 0; font-size: 13px; letter-spacing: .3em; color: var(--ink-2); font-weight: 700; }
.catch__pic { display: grid; place-items: center; height: 170px; margin: 6px -6px 2px; }
.catch__pic img { max-height: 170px; width: auto; max-width: 100%; filter: drop-shadow(0 6px 6px rgba(27,36,32,.18)); animation: fishin .7s var(--spring) .1s both; }
@keyframes fishin { from { transform: translateY(20px) rotate(-6deg); opacity: 0; } }
.catch__name { margin: 0; font-family: var(--f-min); font-weight: 900; font-size: 30px; line-height: 1.25; letter-spacing: .08em; display: flex; flex-direction: column; align-items: center; }
.catch__name small { font-size: 14px; font-weight: 700; color: var(--ink-2); letter-spacing: .2em; }
.catch__size { display: flex; align-items: baseline; justify-content: center; gap: 2px; margin: 6px 0 2px; }
.catch__size > b { font-size: 46px; line-height: 1; color: var(--deep); }
.catch__size > .of { font-size: 18px; }
.catch__w { margin-left: 14px; font-size: 15px; color: var(--ink-2); }
.catch__w b { font-size: 20px; }
.catch__rar { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.rar { display: inline-flex; gap: 3px; }
.rar i { width: 8px; height: 8px; border-radius: 50%; background: var(--washi-line); }
.rar i.on { background: var(--deep); }
.rar.is-5 i.on { background: var(--gold); }
.catch__msg { margin: 6px 0 12px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.catch__card .btn + .btn { margin-top: 8px; }
.catch__stamps { position: absolute; right: 14px; top: 14px; display: flex; flex-direction: column; gap: 6px; }
.stamp { display: none; place-items: center; width: 48px; height: 48px; border-radius: 6px; border: 2.5px solid var(--shu); color: var(--shu); font-family: var(--f-min); font-weight: 900; font-size: 19px; line-height: 1; transform: rotate(8deg); background: rgba(228,235,227,.85); }
.stamp--gold { border-color: #8a6a22; color: #6f5418; font-size: 15px; }
.stamp.is-on { display: grid; animation: stampin .4s var(--spring) .5s both; }
@keyframes stampin { from { transform: scale(2.2) rotate(8deg); opacity: 0; } }

/* シート */
.sheet-bg { position: absolute; inset: 0; z-index: 8; background: rgba(8,20,14,.5); opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; }
.sheet-bg.is-on { opacity: 1; visibility: visible; transition: opacity .25s; }
.sheet-bg--top { z-index: 30; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 9; display: flex; flex-direction: column; gap: 6px; padding: 8px 16px calc(var(--safe-b) + 16px); border-radius: 20px 20px 0 0; background: var(--washi); color: var(--ink); transform: translateY(105%); visibility: hidden; transition: transform .35s var(--slow), visibility 0s .35s; }
.sheet.is-on { transform: none; visibility: visible; transition: transform .35s var(--slow); }
.sheet__grip { align-self: center; width: 40px; height: 5px; border-radius: 3px; background: var(--washi-line); margin-bottom: 4px; }
.sheet__title { margin: 4px 0 2px; font-family: var(--f-min); font-weight: 900; font-size: 22px; text-align: center; letter-spacing: .08em; }
.sheet__meta { margin: 0 0 6px; text-align: center; font-size: 14px; color: var(--ink-2); font-weight: 700; }
.baits { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 4px; }
.baitopt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 8px 14px; border: 0; border-radius: 14px; background: #f1f5f0; text-align: left; box-shadow: inset 0 0 0 1px var(--washi-line); transition: transform .15s; }
.baitopt:active { transform: scale(.98); }
.baitopt svg { width: 36px; height: 36px; color: var(--ink); }
.baitopt[aria-pressed="true"] { background: var(--deep); color: var(--light); box-shadow: none; }
.baitopt[aria-pressed="true"] svg { color: var(--light); }
.baitopt__name { display: block; font-family: var(--f-min); font-weight: 900; font-size: 18px; }
.baitopt__note { display: block; font-size: 13px; font-weight: 700; opacity: .85; }
.mrow { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 6px; border: 0; border-bottom: 1px solid var(--washi-2); background: transparent; text-align: left; text-decoration: none; font-weight: 700; font-size: 16px; }
.mrow svg { width: 24px; height: 24px; color: var(--moss); }
.mrow__t { display: flex; flex-direction: column; line-height: 1.4; }
.mrow__t small { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.sheet .btn--main { margin-top: 10px; }

/* ===== 共通のバー・タブ ===== */
.bar { position: relative; z-index: 2; display: flex; align-items: center; gap: 6px; padding: calc(var(--safe-t) + 8px) 10px 8px; background: var(--deep); color: var(--light); border-bottom: 1px solid rgba(238,244,236,.12); }
.bar__sp { width: 44px; flex: none; }
.bar__title { flex: 1; margin: 0; text-align: center; font-family: var(--f-min); font-weight: 900; font-size: 22px; letter-spacing: .14em; line-height: 1.4; }
.bar__title--s { font-size: 18px; letter-spacing: .08em; }
.bar__count { width: 44px; margin: 0; text-align: right; font-size: 13px; font-weight: 700; white-space: nowrap; }
.bar__count b { font-size: 18px; }
.tabs { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; padding: 6px 8px calc(var(--safe-b) + 6px); background: rgba(14,32,22,.96); border-top: 1px solid rgba(238,244,236,.12); transform: translateY(110%); transition: transform .3s var(--slow); }
.tabs.is-on { transform: none; }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 52px; border-radius: 12px; color: var(--light-2); text-decoration: none; font-size: 12px; font-weight: 700; transition: background .2s, color .2s; }
.tab svg { width: 24px; height: 24px; }
.tab[aria-current="page"] { color: var(--deep); background: var(--washi); }
.tab:active { transform: scale(.95); }

/* ===== 図鑑 ===== */
.screen--zukan, .screen--records, .screen--settings, .screen--detail, .screen--about { background: var(--deep-2); }
.zukan__scroll, .records__scroll, .settings__scroll { padding-bottom: calc(var(--safe-b) + 90px); }
.zhero { height: 150px; display: flex; align-items: flex-end; padding: 12px 14px; background: url(/app-development/apps/a016/img/zukan.webp) center 40% / cover no-repeat; }
.zhero__band { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 14px; border-radius: 10px; background: #0e2016; }
.zhero__k { margin: 0; font-size: 13px; font-weight: 700; color: var(--light-2); }
.zhero__v { margin: 0; white-space: nowrap; }
.zhero__v b { font-size: 26px; }
.prog { flex: 1; height: 6px; border-radius: 3px; background: rgba(238,244,236,.2); overflow: hidden; }
.prog i { display: block; height: 100%; background: var(--water); border-radius: 3px; }
.zgrid { list-style: none; margin: 0; padding: 14px 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.zcard { display: flex; flex-direction: column; width: 100%; height: 100%; padding: 8px 6px 8px; border: 0; border-radius: 6px; background: var(--washi); color: var(--ink); text-decoration: none; text-align: center; box-shadow: 0 0 0 1px var(--washi-line), 0 4px 10px rgba(0,0,0,.18); transition: transform .15s; animation: cardin .5s var(--slow) both; animation-delay: calc(var(--i) * 25ms); }
@keyframes cardin { from { opacity: 0; transform: translateY(8px); } }
.zcard:active { transform: scale(.96); }
.zcard__no { align-self: flex-start; font-size: 11px; font-weight: 800; color: var(--ink-2); line-height: 1; }
.zcard__pic { display: grid; place-items: center; height: 58px; margin: 2px 0 4px; }
.fthumb { display: block; aspect-ratio: 240 / 140; background: url(/app-development/apps/a016/img/fish-atlas.webp) 0 0 / 400% 500% no-repeat; }
.zcard__pic .fthumb { width: 100%; max-width: 100px; }
.zcard.is-unknown .fthumb { filter: brightness(0); opacity: .22; }
.zcard__name { margin: 0; font-family: var(--f-min); font-weight: 900; font-size: 14px; line-height: 1.3; word-break: keep-all; }
.zcard__sub { margin: 1px 0 0; font-size: 11px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.zcard.is-unknown { background: #c9d4c8; }
.zcard.is-rare5 { box-shadow: 0 0 0 2px var(--gold), 0 4px 10px rgba(0,0,0,.18); }

/* 詳細 */
.detail__scroll { padding: 0 16px calc(var(--safe-b) + 90px); }
.dpic { display: grid; place-items: center; min-height: 210px; margin: 16px 0 12px; padding: 16px; border-radius: 6px; background: var(--washi); box-shadow: inset 0 0 0 8px #d3ddd2, inset 0 0 0 9px var(--washi-line); background-image: radial-gradient(rgba(27,36,32,.04) 1px, transparent 1px); background-size: 5px 5px; }
.dpic img { max-height: 180px; width: auto; }
.dpic.is-unknown img { filter: brightness(0); opacity: .22; }
.dname { margin: 0; font-family: var(--f-min); font-weight: 900; font-size: 32px; letter-spacing: .1em; display: flex; align-items: baseline; gap: 12px; }
.dname small { font-size: 16px; color: var(--light-2); letter-spacing: .2em; }
.drar { display: flex; align-items: center; gap: 8px; margin: 2px 0 10px; font-size: 14px; color: var(--light-2); font-weight: 700; }
.drar .rar i { background: rgba(238,244,236,.25); }
.drar .rar i.on { background: var(--water); }
.dnote { margin: 0 0 14px; font-family: var(--f-min); font-size: 16px; line-height: 1.95; }
.dcond, .dstats { display: grid; gap: 8px; margin: 0 0 12px; }
.dcond { grid-template-columns: repeat(3, 1fr); }
.dcond div, .dstats div { padding: 10px 12px; border-radius: 10px; background: rgba(238,244,236,.08); box-shadow: inset 0 0 0 1px rgba(238,244,236,.12); }
.dcond dt, .dstats dt { font-size: 12px; font-weight: 700; color: var(--light-2); }
.dcond dd, .dstats dd { margin: 0; word-break: keep-all; font-family: var(--f-min); font-weight: 900; font-size: 16px; line-height: 1.5; }
.dstats { grid-template-columns: repeat(3, 1fr); }
.dstats dd b { font-size: 22px; margin-right: 2px; }

/* ===== 記録 ===== */
.rhero { padding: 14px; background: linear-gradient(180deg, rgba(14,32,22,0) 0, var(--deep-2) 100%), url(/app-development/apps/a016/img/records.webp) center 60% / cover no-repeat; }
.rhero__k { display: inline-block; margin: 60px 0 8px; padding: 2px 12px; border-radius: 6px; background: #0e2016; font-size: 13px; font-weight: 700; letter-spacing: .1em; }
.rhero__body { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 0 12px; padding: 12px 14px; border-radius: 6px; background: var(--washi); color: var(--ink); background-image: radial-gradient(rgba(27,36,32,.04) 1px, transparent 1px); background-size: 5px 5px; }
.rhero__img { grid-column: 1 / -1; max-height: 120px; width: auto; justify-self: center; margin-bottom: 6px; }
.rhero__name { margin: 0; font-family: var(--f-min); font-weight: 900; font-size: 24px; letter-spacing: .08em; }
.rhero__size { margin: 0; grid-row: span 2; }
.rhero__size b { font-size: 42px; line-height: 1; color: var(--deep); }
.rhero__when { margin: 0; font-size: 13px; color: var(--ink-2); font-weight: 700; }
.rstats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px; }
.rstats div { padding: 10px 12px; border-radius: 10px; background: rgba(238,244,236,.08); box-shadow: inset 0 0 0 1px rgba(238,244,236,.12); }
.rstats dt { font-size: 13px; font-weight: 700; color: var(--light-2); }
.rstats dd { margin: 0; white-space: nowrap; font-weight: 700; }
.rstats dd b { font-size: 26px; margin-right: 3px; }
.sec-h { margin: 22px 16px 10px; font-family: var(--f-min); font-weight: 900; font-size: 19px; letter-spacing: .1em; }
.tchart { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; align-items: end; height: 150px; margin: 0 16px; padding: 12px 12px 0; border-radius: 10px; background: rgba(238,244,236,.06); }
.tbar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.tbar__v { font-size: 15px; }
.tbar__col { width: 70%; min-height: 3px; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--water), #5d9ea2); transform-origin: bottom; animation: grow .7s var(--slow) both; }
@keyframes grow { from { transform: scaleY(0); } }
.tbar__k { display: flex; align-items: center; gap: 3px; padding: 6px 0 8px; font-size: 13px; font-weight: 700; color: var(--light-2); }
.tbar__k svg { width: 16px; height: 16px; }
.log { list-style: none; margin: 0 16px; padding: 0; position: relative; }
.log::before { content: ""; position: absolute; left: 23px; top: 8px; bottom: 8px; width: 1px; background: rgba(238,244,236,.2); }
.log li { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.log__pic { position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--washi); box-shadow: 0 0 0 3px var(--deep-2); }
.log__pic .fthumb { width: 42px; }
.log__main { flex: 1; min-width: 0; }
.log__name { margin: 0; font-family: var(--f-min); font-weight: 900; font-size: 16px; }
.log__meta { margin: 0; font-size: 13px; color: var(--light-2); font-weight: 700; }
.log__size { white-space: nowrap; }
.log__size b { font-size: 20px; }
.empty { padding: 18px; border-radius: 10px; background: rgba(238,244,236,.06); color: var(--light-2); text-align: center; font-weight: 700; }

/* ===== 設定 ===== */
.howto { list-style: none; margin: 14px 16px 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.howto li { display: flex; gap: 12px; padding: 14px; border-radius: 6px; background: var(--washi); color: var(--ink); }
.howto__no { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--deep); color: var(--light); font-family: var(--f-min); font-size: 17px; }
.howto__h { margin: 2px 0 4px; font-family: var(--f-min); font-weight: 900; font-size: 18px; line-height: 1.4; }
.howto p { margin: 0; font-size: 14px; line-height: 1.75; color: var(--ink-2); }
.group { margin: 10px 16px 0; border-radius: 10px; background: rgba(238,244,236,.07); box-shadow: inset 0 0 0 1px rgba(238,244,236,.12); overflow: hidden; }
.row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 6px 14px; border: 0; background: transparent; text-align: left; text-decoration: none; font-weight: 700; font-size: 16px; color: var(--light); }
.row + .row { border-top: 1px solid rgba(238,244,236,.1); }
.row__label { flex: 1; }
.row svg { width: 22px; height: 22px; color: var(--light-2); }
.row--danger, .row--danger svg { color: #ffb4a6; }
.switch { appearance: none; -webkit-appearance: none; position: relative; width: 52px; height: 30px; margin: 0; border-radius: 999px; background: #4b5f55; flex: none; cursor: pointer; transition: background .25s; }
.switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--light); transition: transform .3s var(--spring); }
.switch:checked { background: #5f9a63; }
.switch:checked::after { transform: translateX(22px); }
.switch:focus-visible { outline: 2px solid var(--water); outline-offset: 2px; }
.about__scroll { padding: 0 16px calc(var(--safe-b) + 30px); }
.about__head { display: flex; align-items: center; gap: 14px; margin: 16px 0; }
.about__head img { width: 76px; height: 76px; border-radius: 18px; }
.about__name { margin: 0; font-family: var(--f-min); font-weight: 900; font-size: 24px; letter-spacing: .08em; }
.about__ver { margin: 0; color: var(--light-2); font-size: 14px; }
.about__note { margin: 0; padding: 14px; border-radius: 6px; background: var(--washi); color: var(--ink); font-size: 14px; line-height: 1.8; }
.about__scroll .sec-h { margin-left: 0; }
.tech { margin: 0; padding: 12px 14px 12px 32px; border-radius: 10px; background: rgba(238,244,236,.07); font-size: 14px; line-height: 1.85; }
.about__cta { margin-top: 20px; background: var(--washi); color: var(--ink); }

/* 確認・トースト */
.confirm { position: absolute; left: 12px; right: 12px; bottom: calc(var(--safe-b) + 12px); z-index: 31; display: flex; flex-direction: column; gap: 10px; padding: 20px 16px 14px; border-radius: 16px; background: var(--washi); color: var(--ink); transform: translateY(120%); visibility: hidden; transition: transform .35s var(--slow), visibility 0s .35s; }
.confirm.is-on { transform: none; visibility: visible; transition: transform .35s var(--slow); }
.confirm__title { margin: 0; font-family: var(--f-min); font-weight: 900; font-size: 19px; text-align: center; }
.confirm__text { margin: 0 0 6px; font-size: 14px; line-height: 1.7; color: var(--ink-2); text-align: center; }
.toast { position: absolute; left: 50%; top: calc(var(--safe-t) + 64px); z-index: 40; margin: 0; max-width: 86%; padding: 9px 16px; border-radius: 10px; background: var(--washi); color: var(--ink); font-weight: 700; font-size: 14px; text-align: center; transform: translate(-50%, -10px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .3s var(--spring); word-break: keep-all; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.nojs, .boot-error { position: absolute; inset: 40% 20px auto; z-index: 70; padding: 16px; border-radius: 10px; background: var(--washi); color: var(--ink); text-align: center; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .cue.is-on { animation: none; opacity: 1; }
}
@media (max-height: 700px) {
  .logo { font-size: 38px; }
  .catch__pic { height: 130px; } .catch__pic img { max-height: 130px; }
}
