/* 年表ならべ — 和紙の巻物に、墨の軸と朱の〇 */
:root {
  --washi: #f3ead8;
  --washi-2: #e8dcc2;
  --kami: #fffaf0;
  --edge: #d8c8a6;
  --sumi: #1d1915;
  --sumi-2: #4a4038;
  --shu: #b3262c;
  --shu-soft: #f6e3dc;
  --ai: #24466e;
  --ai-soft: #e6ecf3;
  --kin: #7a5c16;
  --wood: #6b4a2b;

  --ff-head: 'Yuji Syuku', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --ff-body: 'Klee One', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --ff-year: 'Kaisei Tokumin', 'Hiragino Mincho ProN', serif;

  --r-paper: 2px;
  --r-btn: 10px;
  --spring: cubic-bezier(.3, 1.3, .4, 1);
  --soft: cubic-bezier(.2, .8, .2, 1);
  --st: env(safe-area-inset-top, 0px);
  --sb: env(safe-area-inset-bottom, 0px);
  --dock-h: calc(66px + var(--sb));
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--washi); }
body {
  font-family: var(--ff-body); font-size: 16px; line-height: 1.75; color: var(--sumi);
  line-break: strict; -webkit-tap-highlight-color: transparent; overflow: hidden;
}
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2.5px solid var(--ai); outline-offset: 2px; }
.nw { white-space: nowrap; }
h1, h2, h3, .btn, .daisen__s, .era__name, .opt__t b { word-break: keep-all; overflow-wrap: anywhere; font-feature-settings: "palt"; }
.noscript { padding: 24px; }

.shell { position: fixed; inset: 0; overflow: hidden; background: var(--washi); }
@media (min-width: 600px) {
  html, body { background: #2a231d; }
  .shell { left: 50%; right: auto; width: 430px; transform: translateX(-50%); box-shadow: 0 0 60px rgba(0, 0, 0, .5); }
}
.views { position: absolute; inset: 0; margin: 0; }
.oops { padding: 40vh 24px 0; text-align: center; }
.oops__t { font-family: var(--ff-head); font-size: 28px; }

.v {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  background: var(--washi) url('/app-development/apps/a071/img/washi.webp') center / 600px auto repeat;
}
.v.enter { animation: unroll 340ms var(--soft) both; z-index: 2; }
.v.enter-back { animation: fadeUp 300ms var(--soft) both; z-index: 2; }
.v.leave { animation: fadeAway 300ms ease both; }
@keyframes unroll { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }
@keyframes fadeAway { to { opacity: 0; } }
.pane { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-bottom: 36px; }
.with-dock .v[data-dock="1"] .pane { padding-bottom: calc(var(--dock-h) + 24px); }

/* ヘッダー */
.hd {
  flex: none; display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 4px;
  padding: var(--st) 6px 0; min-height: calc(56px + var(--st)); background: var(--washi); border-bottom: 1.5px solid var(--sumi);
}
.hd__t { display: flex; align-items: baseline; justify-content: center; gap: 10px; font-family: var(--ff-head); font-weight: 400; font-size: 21px; line-height: 1.2; min-width: 0; }
.hd__mode { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd__count { font-family: var(--ff-year); font-weight: 800; font-size: 17px; white-space: nowrap; }
.hd__tools { display: flex; min-width: 44px; justify-content: flex-end; }
.hd__btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; transition: transform 140ms var(--spring), background 160ms; }
.hd__btn svg { width: 24px; height: 24px; }
.hd__btn:active { transform: scale(.88); background: var(--washi-2); }

/* ボタン */
.btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-height: 50px; padding: 8px 18px;
  border-radius: var(--r-btn); font-weight: 600; font-size: 16px; line-height: 1.35; text-align: center;
  transition: transform 140ms var(--spring), box-shadow 140ms; position: relative;
}
.btn:active { transform: translateY(2px) scale(.98); }
.btn--sumi { background: var(--sumi); color: var(--kami); box-shadow: 0 3px 0 #000; }
.btn--sumi:active { box-shadow: 0 1px 0 #000; }
.btn--shu { background: var(--shu); color: #fff; box-shadow: 0 3px 0 #7a1418; }
.btn--line { background: var(--kami); color: var(--sumi); box-shadow: inset 0 0 0 1.5px var(--sumi); }
.btn--shu-line { background: var(--kami); color: var(--shu); box-shadow: inset 0 0 0 1.5px var(--shu); }
.btn--shu-line.is-off { color: var(--sumi-2); box-shadow: inset 0 0 0 1.5px var(--edge); }
.btn--block { display: flex; width: 100%; }
.btn__k { font-size: 17px; }
.btn__s { font-size: 13px; font-weight: 400; opacity: .92; }

.sec-t { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; padding: 0 16px; margin: 30px 0 14px; font-family: var(--ff-head); font-weight: 400; font-size: 23px; line-height: 1.3; }
.sec-t small { font-family: var(--ff-body); font-size: 13px; color: var(--sumi-2); }

/* ---------- 時代選択 ---------- */
.cover { position: relative; height: 300px; background-size: cover; background-position: center 18%; border-bottom: 1.5px solid var(--sumi); }
.daisen {
  position: absolute; left: 16px; bottom: -34px; padding: 14px 22px 12px 18px; background: var(--kami); border: 1.5px solid var(--sumi);
  box-shadow: 6px 6px 0 var(--sumi);
}
.daisen__t { font-family: var(--ff-head); font-weight: 400; font-size: 40px; line-height: 1.1; letter-spacing: .06em; }
.daisen__s { font-size: 15px; color: var(--sumi-2); margin-top: 2px; }
.hanko {
  position: absolute; top: -16px; right: -18px; width: 42px; height: 42px; display: grid; place-items: center; background: var(--shu); color: #fff;
  font-family: var(--ff-head); font-size: 24px; line-height: 1; transform: rotate(6deg); box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 3px var(--shu);
}
.lead-acts { display: grid; grid-template-columns: 1.2fr 1fr; gap: 10px; padding: 56px 16px 0; }
.lead-acts .btn { min-height: 68px; }
.eralist { position: relative; padding: 4px 16px 0 0; }
.eralist::before { content: ''; position: absolute; left: 77px; top: 10px; bottom: 10px; width: 4px; border-radius: 2px; background: var(--sumi); }
.era { display: grid; grid-template-columns: 66px 26px 1fr; align-items: center; margin-bottom: 14px; }
.era__y { text-align: right; font-family: var(--ff-year); font-weight: 800; font-size: 17px; line-height: 1.1; }
.era__node { justify-self: center; width: 16px; height: 16px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px var(--washi), 0 0 0 4.5px var(--sumi); position: relative; z-index: 1; }
.era__card {
  display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: center; padding: 10px; min-height: 96px;
  background: var(--kami); border: 1px solid var(--edge); border-left: 5px solid var(--c); border-radius: var(--r-paper);
  transition: transform 160ms var(--spring), box-shadow 160ms;
}
.era__card:active { transform: translateX(4px); box-shadow: -2px 2px 0 var(--edge); }
.era__img { width: 76px; height: 76px; background-size: cover; background-position: center; border-radius: var(--r-paper); }
.era__txt { display: flex; flex-direction: column; min-width: 0; }
.era__name { font-family: var(--ff-head); font-weight: 400; font-size: 21px; line-height: 1.3; color: var(--c); }
.era__lead { font-size: 13px; line-height: 1.6; color: var(--sumi-2); }
.era__best { display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.era__best i, .banzuke__bar i { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--edge); }
.era__best i.f, .banzuke__bar i.f { background: var(--shu); box-shadow: none; }
.era__best em { font-style: normal; font-size: 12px; color: var(--sumi-2); margin-left: 6px; }

/* ---------- ならべる ---------- */
.v--play .pane { display: flex; flex-direction: column; overflow: hidden; padding-bottom: 0; }
.beads { flex: none; display: flex; justify-content: center; gap: 10px; padding: 10px 0 12px; }
.beads li { position: relative; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--edge); transition: transform 240ms var(--spring); }
.beads .b-now { background: var(--sumi); box-shadow: none; transform: scale(1.12); }
.beads .b-ok { box-shadow: inset 0 0 0 3px var(--shu); }
.beads .b-ng { box-shadow: none; background: linear-gradient(45deg, transparent 44%, var(--ai) 44%, var(--ai) 56%, transparent 56%), linear-gradient(-45deg, transparent 44%, var(--ai) 44%, var(--ai) 56%, transparent 56%); }
.scroll-box { position: relative; flex: 1; min-height: 0; margin: 6px 14px 0; background: #fbf5e8; box-shadow: inset 10px 0 14px -12px rgba(80, 50, 20, .4), inset -10px 0 14px -12px rgba(80, 50, 20, .4), 0 1px 0 var(--edge); }
.jiku { position: absolute; left: -10px; right: -10px; height: 16px; z-index: 3; border-radius: 8px; background: linear-gradient(to bottom, #8a6440, var(--wood) 45%, #3f2a17); box-shadow: 0 3px 6px rgba(40, 25, 10, .35); }
.jiku::before, .jiku::after { content: ''; position: absolute; top: -3px; width: 12px; height: 22px; border-radius: 4px; background: var(--sumi); }
.jiku::before { left: -4px; }
.jiku::after { right: -4px; }
.jiku--top { top: -8px; }
.tl-wrap { position: absolute; inset: 8px 0 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 12px 28px 0; scrollbar-width: none; }
.tl-wrap::-webkit-scrollbar { display: none; }
.tl { position: relative; padding-left: 86px; min-height: 100%; }
.tl::before { content: ''; position: absolute; z-index: 1; left: 68px; top: -18px; bottom: -28px; width: 3px; background: var(--sumi); border-radius: 2px; }
.tl-end { height: 190px; margin: 22px 0 0 -74px; background-size: cover; background-position: center 30%; opacity: .5; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 45%); mask-image: linear-gradient(to bottom, transparent, #000 45%); pointer-events: none; }
.ev { z-index: 2; }
.ev { position: relative; margin-bottom: 10px; }
.ev__y { position: absolute; left: -86px; top: 9px; width: 58px; text-align: right; font-family: var(--ff-year); font-weight: 800; font-size: 20px; line-height: 1.2; white-space: nowrap; }
.ev__y small { font-family: var(--ff-body); font-size: 11px; font-weight: 600; margin-left: 1px; }
.ev__node { position: absolute; left: -23px; top: 15px; width: 13px; height: 13px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px #fbf5e8; }
.ev__card { position: relative; padding: 9px 40px 9px 12px; background: var(--kami); border: 1px solid var(--edge); border-left: 3px solid var(--c); border-radius: var(--r-paper); }
.ev__t { font-size: 15px; font-weight: 600; line-height: 1.6; }
.ev__era { display: inline-block; font-size: 11px; line-height: 1.6; padding: 0 6px; margin-bottom: 2px; color: var(--c); box-shadow: inset 0 0 0 1px var(--c); border-radius: 2px; white-space: nowrap; }
.ev.is-anchor .ev__card { background: var(--washi-2); border-color: #cdb98f; border-left-color: var(--c); }
.ev.is-anchor .ev__y { color: var(--sumi-2); }
.ev.is-ng .ev__card { background: var(--ai-soft); }
.ev.is-ng .ev__y { color: var(--ai); }
.ev.is-ok .ev__y { color: var(--shu); }
.ev.is-new .ev__card { animation: land 520ms var(--spring); }
@keyframes land { 0% { box-shadow: 0 14px 22px rgba(60, 40, 20, .25); } 100% { box-shadow: 0 0 0 rgba(0, 0, 0, 0); } }
.ev.is-new .ev__y { animation: inkIn 600ms ease both 120ms; }
@keyframes inkIn { from { opacity: 0; filter: blur(3px); transform: translateX(6px); } }
.ev__mk { position: absolute; right: 6px; top: 50%; width: 30px; height: 30px; margin-top: -15px; }
.mk { width: 100%; height: 100%; }
.mk--ok { color: var(--shu); stroke-width: 3.4; }
.mk--ng { color: var(--ai); stroke-width: 3.2; }
.mk path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.is-new .mk path, .ex__verdict .mk path { animation: brush 520ms ease-out both 180ms; }
.is-new .mk--ng path + path, .ex__verdict .mk--ng path + path { animation-delay: 420ms; }
@keyframes brush { from { stroke-dashoffset: 1; } }
.slot { display: grid; place-items: center; height: 56px; margin-bottom: 10px; border: 2px dashed var(--shu); border-radius: var(--r-paper); background: var(--shu-soft); animation: slotIn 160ms ease; }
.slot span { font-size: 14px; font-weight: 600; color: var(--shu); }
@keyframes slotIn { from { height: 0; opacity: 0; } }
.gap { margin: 0 0 10px; }
.gap__b {
  display: block; width: 100%; min-height: 44px; padding: 6px 10px; border: 1.5px dashed var(--shu); border-radius: var(--r-paper);
  background: var(--kami); color: var(--shu); font-size: 14px; font-weight: 600; line-height: 1.5; text-align: center; animation: slotIn 200ms ease;
}
.gap__b:active { background: var(--shu-soft); }
.tray { flex: none; position: relative; z-index: 4; padding: 14px 16px calc(12px + var(--sb)); background: var(--washi-2); border-top: 1.5px solid var(--sumi); }
.hand-slot { min-height: 88px; }
.hand {
  display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 12px; min-height: 88px; padding: 12px 12px 12px 10px;
  background: var(--kami); border: 1.5px solid var(--sumi); border-left: 7px solid var(--c); border-radius: var(--r-paper);
  box-shadow: 0 5px 0 -1px var(--kami), 0 5px 0 0 var(--sumi), 0 10px 0 -1px var(--kami), 0 10px 0 0 var(--edge);
  touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; transition: opacity 160ms, transform 160ms var(--spring);
}
.hand[hidden] { display: none; }
.hand.deal { animation: deal 420ms var(--spring); }
@keyframes deal { from { transform: translateY(40px) rotate(4deg); opacity: 0; } }
.hand.lifted { opacity: .3; transform: scale(.97); }
.hand:active { cursor: grabbing; }
.hand__q { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--sumi-2); font-family: var(--ff-year); font-weight: 800; font-size: 22px; color: var(--sumi-2); }
.hand__body { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.hand__t { font-size: 16px; font-weight: 600; line-height: 1.55; }
.hand__left { align-self: start; font-size: 12px; color: var(--sumi-2); }
.ghost { position: absolute; top: 0; left: 0; z-index: 70; margin: 0; pointer-events: none; box-shadow: 0 18px 30px rgba(50, 30, 10, .35); cursor: grabbing; }
.tray__hint { display: flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; line-height: 1.5; color: var(--sumi-2); }
.tray__hint svg { flex: none; width: 18px; height: 18px; color: var(--shu); }

/* ---------- シート（解説） ---------- */
.overlay { position: absolute; inset: 0; z-index: 50; }
.overlay[hidden] { display: none; }
.veil { position: absolute; inset: 0; background: rgba(29, 25, 21, .5); opacity: 0; transition: opacity 260ms; }
.panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 86%; display: flex; flex-direction: column; background: var(--kami);
  border-top: 1.5px solid var(--sumi); border-radius: 18px 18px 0 0; transform: translateY(100%); transition: transform 320ms var(--soft);
}
.overlay.open .veil { opacity: 1; }
.overlay.open .panel { transform: none; }
.panel__grab { flex: none; height: 26px; display: grid; place-items: center; touch-action: none; cursor: grab; }
.panel__grab::before { content: ''; width: 44px; height: 5px; border-radius: 3px; background: var(--edge); }
.panel__body { overflow-y: auto; padding: 0 20px 16px; }
.panel__acts { flex: none; padding: 12px 16px calc(14px + var(--sb)); border-top: 1px solid var(--edge); }
.two { display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px; }
.ex__verdict { display: flex; align-items: center; gap: 10px; }
.ex__verdict .mk { width: 46px; height: 46px; }
.ex__verdict b { font-family: var(--ff-head); font-weight: 400; font-size: 26px; }
.ex--ok .ex__verdict b { color: var(--shu); }
.ex--ng .ex__verdict b { color: var(--ai); }
.ex__pt { margin-left: auto; font-family: var(--ff-year); font-weight: 800; font-size: 20px; color: var(--shu); }
.ex__year { display: flex; align-items: baseline; gap: 4px; margin-top: 10px; }
.ex__year b { font-family: var(--ff-year); font-weight: 800; font-size: 54px; line-height: 1; }
.ex__year em { margin-left: 10px; font-style: normal; font-size: 13px; padding: 0 8px; color: var(--c); box-shadow: inset 0 0 0 1px var(--c); border-radius: 2px; white-space: nowrap; }
.ex__t { margin-top: 6px; font-family: var(--ff-body); font-weight: 600; font-size: 20px; line-height: 1.5; }
.ex__n { margin-top: 8px; font-size: 16px; line-height: 1.9; }
.ex__where { margin-top: 14px; padding: 10px 12px; background: var(--ai-soft); border-left: 3px solid var(--ai); font-size: 15px; line-height: 1.8; }
.ask__t { font-family: var(--ff-head); font-weight: 400; font-size: 23px; margin-bottom: 6px; }

/* ---------- 結果 ---------- */
.res-top { padding: 28px 16px 24px; background-size: cover; background-position: center; border-bottom: 1.5px solid var(--sumi); }
.res-card { position: relative; padding: 20px 18px 18px; text-align: center; background: var(--kami); border: 1.5px solid var(--sumi); box-shadow: 6px 6px 0 var(--sumi); }
.res-card__mode { display: flex; justify-content: center; gap: 10px; font-family: var(--ff-head); font-size: 20px; line-height: 1.3; }
.res-card__mode span { font-family: var(--ff-body); font-size: 13px; color: var(--sumi-2); align-self: center; }
.rank { margin: 14px 0 6px; }
.rank__seal {
  display: inline-grid; place-items: center; width: 104px; height: 104px; background: var(--shu); color: #fff; font-family: var(--ff-head); font-size: 40px;
  writing-mode: vertical-rl; letter-spacing: .1em; transform: rotate(-4deg); box-shadow: inset 0 0 0 4px var(--shu), inset 0 0 0 6px #fff;
  animation: stampIn 560ms var(--spring) 160ms both;
}
@keyframes stampIn { from { transform: scale(1.7) rotate(-18deg); opacity: 0; } }
.res-card__score { display: flex; justify-content: center; align-items: baseline; gap: 4px; }
.res-card__score b { font-family: var(--ff-year); font-weight: 800; font-size: 64px; line-height: 1; }
.res-card__score span { font-size: 16px; font-weight: 600; }
.res-card__dl { display: flex; justify-content: center; gap: 28px; margin-top: 4px; }
.res-card__dl > div { display: flex; align-items: baseline; gap: 6px; }
.res-card__dl dt { font-size: 13px; color: var(--sumi-2); }
.res-card__dl dd { font-family: var(--ff-year); font-weight: 800; font-size: 22px; }
.res-card__msg { margin-top: 10px; font-size: 15px; line-height: 1.8; text-align: left; }
.res-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 18px 16px 0; }
.mini-tl { position: relative; margin: 0 16px; }
.mini-tl::before { content: ''; position: absolute; left: 60px; top: 6px; bottom: 6px; width: 2px; background: var(--sumi); }
.mini { display: grid; grid-template-columns: 50px 1fr 34px; gap: 20px; align-items: center; padding: 6px 0; }
.mini__y { text-align: right; font-family: var(--ff-year); font-weight: 800; font-size: 17px; }
.mini.is-ok .mini__y { color: var(--shu); }
.mini.is-ng .mini__y { color: var(--ai); }
.mini__t { min-height: 44px; display: flex; align-items: center; padding: 6px 10px; background: var(--kami); border: 1px solid var(--edge); border-left: 3px solid var(--c); font-size: 14px; font-weight: 600; line-height: 1.5; }
.mini__t:active { background: var(--washi-2); }
.mini__m { width: 30px; height: 30px; display: grid; place-items: center; }
.mini__fix { font-size: 11px; line-height: 1.2; color: var(--sumi-2); text-align: center; }
.res-note { margin: 18px 16px 0; padding: 12px 14px; background: var(--kami); border: 1px solid var(--edge); font-size: 15px; line-height: 1.8; }
.res-note a { color: var(--shu); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; margin-left: 4px; white-space: nowrap; }

/* ---------- 解説ページ ---------- */
.ex-hero { height: 250px; background-size: cover; background-position: center; border-bottom: 1.5px solid var(--sumi); }
.ex-page { position: relative; margin: -40px 16px 0; padding: 20px 18px 22px; background: var(--kami); border: 1.5px solid var(--sumi); border-top: 6px solid var(--c); }
.ex-page__era { display: flex; gap: 10px; align-items: baseline; font-family: var(--ff-head); font-size: 20px; color: var(--c); }
.ex-page__era span { font-family: var(--ff-body); font-size: 13px; color: var(--sumi-2); }
.ex-page__year { font-size: 18px; font-weight: 600; }
.ex-page__year b { font-family: var(--ff-year); font-weight: 800; font-size: 72px; line-height: 1.05; margin-right: 4px; }
.ex-page__t { font-family: var(--ff-body); font-weight: 600; font-size: 21px; line-height: 1.5; }
.ex-page__n { margin-top: 10px; font-size: 16px; line-height: 1.95; }
.ex-page__weak { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 8px 10px; background: var(--ai-soft); font-size: 14px; }
.ex-page__weak .mk { width: 22px; height: 22px; flex: none; }
.ex-page__h { margin: 24px 0 10px; font-family: var(--ff-head); font-weight: 400; font-size: 20px; }
.ctx { position: relative; margin-bottom: 20px; }
.ctx::before { content: ''; position: absolute; left: 54px; top: 8px; bottom: 8px; width: 2px; background: var(--sumi); }
.ctx li > a, .ctx__me { display: grid; grid-template-columns: 44px 1fr; gap: 24px; align-items: center; min-height: 48px; padding: 6px 0; }
.ctx b { font-family: var(--ff-year); font-weight: 800; font-size: 17px; text-align: right; }
.ctx span { font-size: 14px; line-height: 1.55; }
.ctx li > a span { text-decoration: underline; text-decoration-color: var(--edge); text-underline-offset: 3px; }
.ctx__me { font-weight: 600; }
.ctx__me b { color: var(--shu); }

/* ---------- 記録 ---------- */
.page-t { padding: calc(var(--st) + 22px) 16px 4px; font-family: var(--ff-head); font-weight: 400; font-size: 36px; line-height: 1.2; }
.sample { margin: 8px 16px 0; padding: 8px 12px; background: var(--kami); border: 1px dashed var(--edge); font-size: 14px; line-height: 1.7; color: var(--sumi-2); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 16px 16px 0; background: var(--kami); border: 1.5px solid var(--sumi); }
.stats > div { display: flex; flex-direction: column; align-items: center; padding: 14px 4px 12px; }
.stats > div + div { border-left: 1px solid var(--edge); }
.stats b { font-family: var(--ff-year); font-weight: 800; font-size: 34px; line-height: 1.1; }
.stats small { font-size: 16px; }
.stats span { font-size: 12px; color: var(--sumi-2); }
.banzuke { margin: 0 16px; border-top: 1.5px solid var(--sumi); }
.banzuke li { border-bottom: 1px solid var(--edge); }
.banzuke a { display: grid; grid-template-columns: 1fr auto 60px; gap: 12px; align-items: center; min-height: 52px; }
.banzuke a:active { background: var(--washi-2); }
.banzuke__n { font-family: var(--ff-head); font-size: 19px; color: var(--c); line-height: 1.3; }
.banzuke__bar { display: flex; gap: 5px; }
.banzuke__bar i { width: 13px; height: 13px; }
.banzuke__s { text-align: right; font-family: var(--ff-year); font-weight: 700; font-size: 15px; }
.weak { margin: 0 16px; }
.weak a { display: grid; grid-template-columns: 50px 1fr auto; gap: 12px; align-items: center; min-height: 52px; padding: 6px 0; border-bottom: 1px solid var(--edge); }
.weak a:active { background: var(--washi-2); }
.weak b { font-family: var(--ff-year); font-weight: 800; font-size: 17px; text-align: right; color: var(--ai); }
.weak span { font-size: 15px; line-height: 1.55; }
.weak em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--ai); padding: 0 8px; box-shadow: inset 0 0 0 1px var(--ai); border-radius: 2px; }
.pad { padding: 18px 16px 0; }
.empty { display: flex; flex-direction: column; align-items: center; padding: 8px 32px 0; text-align: center; }
.empty__img { width: 160px; height: 160px; border-radius: 50%; background-size: cover; background-position: center; border: 1.5px solid var(--sumi); margin-bottom: 14px; }
.empty__t { font-family: var(--ff-head); font-size: 21px; }
.empty__p { font-size: 15px; color: var(--sumi-2); }

/* ---------- 設定 ---------- */
.opts { margin: 18px 16px 0; border-top: 1.5px solid var(--sumi); }
.opts li { border-bottom: 1px solid var(--edge); }
.opt { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 12px 0; text-align: left; cursor: pointer; }
.opt:active { background: var(--washi-2); }
.opt__t { flex: 1; display: flex; flex-direction: column; }
.opt__t b { font-size: 16px; font-weight: 600; }
.opt__t span { font-size: 13px; line-height: 1.6; color: var(--sumi-2); }
.opt > svg { width: 20px; height: 20px; }
.opt--warn b { color: var(--shu); }
.tg { flex: none; position: relative; width: 52px; height: 30px; margin: 0; border-radius: 15px; background: var(--kami); box-shadow: inset 0 0 0 1.5px var(--sumi); -webkit-appearance: none; appearance: none; cursor: pointer; transition: background 200ms; }
.tg::after { content: ''; position: absolute; left: 4px; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--sumi); transition: transform 240ms var(--spring); }
.tg:checked { background: var(--shu); box-shadow: inset 0 0 0 1.5px var(--shu); }
.tg:checked::after { transform: translateX(22px); background: #fff; }
.howto ol { counter-reset: n; margin: 0 16px; }
.howto li { counter-increment: n; position: relative; padding: 4px 0 10px 40px; font-size: 15px; line-height: 1.8; }
.howto li::before { content: counter(n); position: absolute; left: 0; top: 4px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--sumi); color: var(--kami); font-family: var(--ff-year); font-weight: 800; font-size: 15px; line-height: 1; }

/* ---------- アプリについて ---------- */
.about { padding: 24px 16px 0; text-align: center; }
.about__icon { border-radius: 24px; border: 1.5px solid var(--sumi); }
.about__name { font-family: var(--ff-head); font-weight: 400; font-size: 30px; margin-top: 10px; }
.about__sub { font-size: 13px; color: var(--sumi-2); }
.about__note { margin: 18px 0 12px; padding: 12px 14px; text-align: left; background: var(--kami); border: 1.5px solid var(--sumi); font-size: 15px; line-height: 1.85; }
.about__p { text-align: left; font-size: 14px; line-height: 1.85; color: var(--sumi-2); }
.about .sec-t { padding: 0; }
.about__tech { text-align: left; margin-bottom: 22px; }
.about__tech li { padding: 9px 0; border-bottom: 1px solid var(--edge); font-size: 15px; }

/* ---------- ドック ---------- */
.dock {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 20; height: var(--dock-h); padding-bottom: var(--sb);
  display: grid; grid-template-columns: repeat(3, 1fr); background: var(--washi-2); border-top: 1.5px solid var(--sumi);
}
.dock[hidden] { display: none; }
.dock__i { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-size: 12px; font-weight: 600; color: var(--sumi-2); }
.dock__i svg { width: 28px; height: 28px; padding: 2px; border-radius: 6px; transition: transform 200ms var(--spring), background 200ms, color 200ms; }
.dock__i:active svg { transform: scale(.86); }
.dock__i.on { color: var(--shu); }
.dock__i.on svg { background: var(--shu); color: #fff; }

/* ---------- 通知・案内 ---------- */
.note {
  position: absolute; left: 50%; bottom: calc(var(--dock-h) + 14px); z-index: 80; width: max-content; max-width: calc(100% - 48px);
  padding: 10px 16px; background: var(--sumi); color: var(--kami); border-radius: var(--r-btn); font-size: 14px; font-weight: 600;
  opacity: 0; transform: translate(-50%, 16px); pointer-events: none; transition: opacity 200ms, transform 260ms var(--spring);
}
.note.on { opacity: 1; transform: translate(-50%, 0); }
.ob { position: absolute; inset: 0; z-index: 90; display: flex; flex-direction: column; background: var(--washi); transition: opacity 300ms; }
.ob.out { opacity: 0; }
.ob__img { flex: 1 1 55%; background-size: cover; background-position: center; border-bottom: 1.5px solid var(--sumi); }
.ob__body { flex: none; padding: 18px 20px calc(18px + var(--sb)); }
.ob__dots { display: flex; gap: 6px; }
.ob__dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--edge); }
.ob__dots i.on { width: 22px; border-radius: 4px; background: var(--shu); }
.ob__t { margin-top: 10px; font-family: var(--ff-head); font-weight: 400; font-size: 32px; line-height: 1.3; }
.ob__p { margin-top: 8px; font-size: 16px; line-height: 1.85; }
.ob__acts { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; margin-top: 18px; }

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