/* つづく（a057）— 白×墨×差し色ひとつ（瑠璃）。ミニマル・タイポ。
   角はほぼ立て、罫線で組む。大きな数字は Instrument Serif、和文は Zen Kaku Gothic New。 */
:root {
  --paper: #ffffff;
  --sumi: #141414;
  --sumi2: #575757;
  --sumi3: #6b6b6b;
  --hair: #e4e4e4;
  --mist: #f4f4f4;
  --ai: #2a3cff;
  --ai-t: #eef0ff;
  --l0: #ececec; --l1: #cfcfcf; --l2: #8f8f8f; --l3: #4b4b4b; --l4: #141414;
  --f: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic UI", sans-serif;
  --s: "Instrument Serif", "Times New Roman", serif;
  --top: env(safe-area-inset-top, 0px);
  --bot: env(safe-area-inset-bottom, 0px);
  --tabh: 60px;
  --snap: cubic-bezier(.3, .7, .1, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { font-family: var(--f); font-size: 16px; line-height: 1.6; color: var(--sumi); background: var(--paper); overflow: hidden; line-break: strict; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; }
input { -webkit-user-select: text; user-select: text; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; border-radius: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
a, img { -webkit-user-drag: none; }
ol, ul { list-style: none; }
.serif { font-family: var(--s); font-weight: 400; font-variant-numeric: lining-nums; letter-spacing: 0; }
.nw { white-space: nowrap; }
h1, h2, .lt, .ob-t, .hd-t { font-feature-settings: "palt"; }
.lt, .ob-t, .hr-t, .hb-t, .hd-t, .sub-h, .th-m, .empty-t, .btn-ink, .btn-line, .btn-txt, .chip, .row-t, .nf-l, .tab span, .nb-t, .rest-n, .big-l, .big-d, .ab-n, .ab-s,
.al-t, .sh-t, .dp-h, .pr-n, .sp-n, .ob-skip, .ob-next, .ts-t, .wb-l, .ym-l, .lg, .st3 dt { word-break: keep-all; }
.ic { width: 22px; height: 22px; flex: none; }
.ic-c { width: 24px; height: 24px; }
:focus-visible { outline: 2px solid var(--ai); outline-offset: 2px; }

/* ───── 枠 ───── */
.app { position: fixed; inset: 0; background: var(--paper); overflow: hidden; }
@media (min-width: 600px) {
  body { background: #f0f0f0 repeating-linear-gradient(90deg, transparent 0 63px, #e2e2e2 63px 64px); }
  .app { left: 50%; right: auto; width: 430px; transform: translateX(-50%); border-left: 1px solid var(--sumi); border-right: 1px solid var(--sumi); }
}
.stage { position: absolute; inset: 0; overflow: hidden; }
.view { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--paper); }
.sc { flex: 1; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding-top: calc(var(--top) + 48px); padding-bottom: calc(var(--tabh) + var(--bot) + 30px); }
.view.is-form .sc { padding-bottom: 40px; }
.view.i-push { animation: iPush .34s var(--snap) both; z-index: 2; box-shadow: -1px 0 0 var(--sumi); }
.view.o-push { animation: oPush .34s var(--snap) both; }
.view.i-pop { animation: iPop .34s var(--snap) both; }
.view.o-pop { animation: oPop .34s var(--snap) both; z-index: 2; box-shadow: -1px 0 0 var(--sumi); }
.view.i-swap { animation: iSwap .2s ease both; }
.view.o-swap { animation: oSwap .14s ease both; }
@keyframes iPush { from { transform: translateX(100%); } }
@keyframes oPush { to { transform: translateX(-24%); opacity: .5; } }
@keyframes iPop { from { transform: translateX(-24%); opacity: .5; } }
@keyframes oPop { to { transform: translateX(100%); } }
@keyframes iSwap { from { opacity: 0; } }
@keyframes oSwap { to { opacity: 0; } }

.nb { position: absolute; z-index: 5; top: 0; left: 0; right: 0; padding-top: var(--top); pointer-events: none; transition: background .2s, box-shadow .2s; }
.nb a, .nb button { pointer-events: auto; }
.nb.is-on { background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 1px 0 var(--hair); }
.nb-r { height: 48px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 8px; }
.nb-r > :last-child { justify-self: end; }
.nb-t { font-size: 16px; font-weight: 700; opacity: 0; transition: opacity .2s; white-space: nowrap; max-width: 56vw; overflow: hidden; text-overflow: ellipsis; }
.nb.is-on .nb-t { opacity: 1; }
.nb-back { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px 0 4px; font-size: 16px; font-weight: 700; white-space: nowrap; }
.nb-back:active { color: var(--ai); }
.nb-i { width: 44px; height: 44px; display: grid; place-items: center; }
.nb-i:active { color: var(--ai); }
.lt { padding: 2px 20px 8px; font-size: 34px; font-weight: 900; line-height: 1.25; letter-spacing: .01em; }

.tabbar { position: absolute; z-index: 20; left: 0; right: 0; bottom: 0; height: calc(var(--tabh) + var(--bot)); padding-bottom: var(--bot); display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(255, 255, 255, .95); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-top: 1px solid var(--sumi); transition: transform .3s var(--snap); }
.tabbar.is-off { transform: translateY(105%); }
.tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--sumi3); font-size: 12px; font-weight: 700; line-height: 1.3; }
.tab::before { content: ""; position: absolute; top: -1px; left: 50%; width: 0; height: 3px; background: var(--ai); transform: translateX(-50%); transition: width .25s var(--snap); }
.tab[aria-current="page"] { color: var(--sumi); }
.tab[aria-current="page"]::before { width: 28px; }
.tab-i { width: 26px; height: 26px; }
.tab:active .tab-i { transform: scale(.88); }

/* ───── 今日 ───── */
.th { padding: 0 20px; margin-top: -38px; }
.th-row { display: flex; justify-content: space-between; align-items: flex-end; }
.th-d { display: flex; align-items: baseline; gap: 10px; }
.th-d .serif { font-size: 68px; line-height: .9; letter-spacing: -.01em; }
.th-w { font-size: 15px; font-weight: 700; }
.th-c { display: flex; align-items: baseline; }
.th-c .serif { font-size: 46px; line-height: .9; }
.th-sl { font-family: var(--s); font-size: 30px; color: var(--sumi3); margin: 0 3px; }
.th-bar { height: 3px; margin-top: 16px; background: var(--hair); }
.th-bar i { display: block; height: 100%; background: var(--ai); transition: width .5s var(--snap); }
.th-m { margin-top: 10px; font-size: 15px; font-weight: 700; }
.hl { margin-top: 18px; border-top: 1px solid var(--sumi); }
.hrow { position: relative; border-bottom: 1px solid var(--hair); }
.hr-b { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr) 50px; align-items: center; gap: 10px; width: 100%; min-height: 98px; padding: 14px 18px 14px 16px; text-align: left; transition: background .15s; }
.hr-b:active { background: var(--mist); }
.hr-b::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 0; height: 2px; background: var(--ai); }
.hrow.is-pop .hr-b::after { width: 100%; transition: width .42s var(--snap); }
.hr-n { display: flex; align-items: baseline; justify-content: flex-end; padding-right: 4px; }
.hr-n b { font-size: 60px; line-height: .8; }
.hr-n small { font-size: 14px; font-weight: 700; color: var(--sumi2); margin-left: 3px; }
.hr-m { display: flex; flex-direction: column; min-width: 0; }
.hr-t { font-size: 19px; font-weight: 700; line-height: 1.4; }
.hr-s { font-size: 14px; color: var(--sumi2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread { width: 100%; max-width: 230px; height: 15px; margin-top: 6px; }
.th-on { fill: var(--sumi); }
.th-miss { fill: none; stroke: #b4b4b4; stroke-width: 1; }
.th-off { fill: #c4c4c4; }
.th-ln { stroke: var(--sumi); stroke-width: 1.5; }
.th-today { fill: var(--ai); }
.th-wait { fill: none; stroke: var(--ai); stroke-width: 1.4; stroke-dasharray: 2 1.6; }
.hr-c { width: 48px; height: 48px; display: grid; place-items: center; border: 1.5px solid var(--sumi); border-radius: 50%; color: transparent; transition: background .2s, color .2s, transform .3s var(--snap); }
.hrow.is-on .hr-c { background: var(--sumi); color: #fff; }
.hrow.is-pop .hr-c { animation: tick .45s var(--snap); }
@keyframes tick { 0% { transform: scale(.7); } 60% { transform: scale(1.12); } 100% { transform: none; } }
.hrow.is-on .hr-t { color: var(--sumi); }
.rest { margin: 28px 20px 0; }
.sub-h { font-size: 14px; font-weight: 700; color: var(--sumi2); letter-spacing: .08em; margin-bottom: 6px; }
.sub-s { font-weight: 500; letter-spacing: 0; }
.rest li { display: flex; align-items: center; gap: 12px; min-height: 52px; border-bottom: 1px solid var(--hair); }
.rest li:first-child { border-top: 1px solid var(--hair); }
.rest-n { font-size: 15px; font-weight: 700; }
.rest-d { margin-left: auto; font-size: 14px; color: var(--sumi2); }
.foot { padding: 18px 20px 0; font-size: 14px; color: var(--sumi2); line-height: 1.7; word-break: keep-all; }

.gl { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border: 1.5px solid var(--sumi); font-size: 26px; font-weight: 900; line-height: 1; }
.gl-s { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border: 1px solid var(--sumi); font-size: 15px; font-weight: 900; line-height: 1; }
.gl-xl { width: 92px; height: 92px; font-size: 46px; border-width: 2px; }

/* ───── 習慣 ───── */
.hb { margin-top: 4px; border-top: 1px solid var(--sumi); }
.hb-li { position: relative; overflow: hidden; border-bottom: 1px solid var(--hair); }
.hb-del { position: absolute; top: 0; right: 0; bottom: 0; width: 88px; background: var(--sumi); color: #fff; font-size: 15px; font-weight: 700; }
.hb-in { position: relative; z-index: 1; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 20px; background: var(--paper); transition: transform .28s var(--snap); touch-action: pan-y; }
.hb-in:active { background: var(--mist); }
.hb-m { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hb-t { font-size: 17px; font-weight: 700; line-height: 1.4; }
.d7 { display: flex; gap: 3px; }
.d7 i { width: 22px; height: 22px; display: grid; place-items: center; font-style: normal; font-size: 13px; font-weight: 700; color: var(--sumi3); }
.d7 i.on { background: var(--sumi); color: #fff; }
.hb-r { display: flex; flex-direction: column; align-items: flex-end; text-align: right; line-height: 1.2; }
.hb-r b { font-size: 38px; line-height: .9; }
.hb-r small { font-size: 14px; font-weight: 700; color: var(--sumi2); }
.hb-best { font-size: 14px; color: var(--sumi2); margin-top: 2px; }
.hb-best .serif { font-size: 17px; color: var(--sumi); }
.btn-ink { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; margin: 22px 20px 0; padding: 0 20px; background: var(--sumi); color: #fff; font-size: 16px; font-weight: 700; border-radius: 2px; transition: background .15s, transform .15s; }
.btn-ink:active { background: var(--ai); transform: translateY(1px); }
.btn-line { display: flex; align-items: center; justify-content: center; gap: 8px; width: calc(100% - 40px); min-height: 54px; margin: 22px 20px 0; border: 1.5px solid var(--sumi); font-size: 16px; font-weight: 700; border-radius: 2px; }
.btn-line:active { background: var(--mist); }
.btn-line:disabled { border-color: var(--hair); color: var(--sumi3); cursor: default; }
.btn-txt { display: block; min-height: 48px; margin: 12px auto 0; padding: 0 16px; color: var(--sumi2); font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ───── 習慣の詳細 ───── */
.hd { text-align: center; padding: 4px 20px 0; }
.hd-g { display: inline-block; font-size: 116px; font-weight: 900; line-height: 1.05; padding: 0 10px; border-bottom: 4px solid var(--ai); }
.hd-t { margin-top: 14px; font-size: 26px; font-weight: 900; line-height: 1.35; }
.hd-s { font-size: 14px; color: var(--sumi2); line-height: 1.7; }
.st3 { display: grid; grid-template-columns: repeat(3, 1fr); margin: 22px 20px 0; border-top: 1px solid var(--sumi); border-bottom: 1px solid var(--hair); }
.st3 > div { padding: 12px 0 12px 12px; }
.st3 > div:first-child { padding-left: 0; }
.st3 > div + div { border-left: 1px solid var(--hair); }
.st3 dt { font-size: 14px; font-weight: 700; color: var(--sumi2); }
.st3 dd { font-size: 14px; font-weight: 700; white-space: nowrap; }
.st3 b { font-size: 42px; line-height: 1; margin-right: 3px; }
.st3.is-tight b { font-size: 34px; }
.blk { margin: 28px 20px 0; }
.yg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 12px; }
.ym { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 0; text-align: left; }
button.ym { min-height: 44px; transition: opacity .15s; }
button.ym:active { opacity: .55; }
.ym-l { font-size: 14px; font-weight: 700; color: var(--sumi2); }
.ym-l .serif { font-size: 17px; color: var(--sumi); }
.ym-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.c { display: block; width: 100%; aspect-ratio: 1; background: var(--l0); }
.c.l-1 { background: var(--paper); box-shadow: inset 0 0 0 1px #e6e6e6; }
.c.l0 { background: var(--l0); }
.c.l1 { background: var(--l1); }
.c.l2 { background: var(--l2); }
.c.l3 { background: var(--l3); }
.c.l4 { background: var(--l4); }
.c.fut, .c.pad { background: transparent; box-shadow: none; }
.c.is-t { outline: 2px solid var(--ai); outline-offset: 1px; }
.lg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--sumi2); }
.lg span { display: inline-flex; align-items: center; gap: 5px; }
.lg .c { width: 13px; height: 13px; display: inline-block; aspect-ratio: auto; }
.lg > .c { margin: 0 -10px 0 0; }
.wd { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.wd-b { min-height: 48px; border: 1.5px solid var(--sumi); font-size: 15px; font-weight: 700; transition: background .15s, color .15s; }
.wd-b[aria-pressed="true"] { background: var(--sumi); color: #fff; }
.wd-b:active { transform: scale(.94); }
.hint { margin-top: 10px; font-size: 14px; color: var(--sumi3); line-height: 1.7; }
.hint.is-err { color: var(--ai); font-weight: 700; }

/* ───── 新しい習慣 ───── */
.nf { padding: 0 20px; }
.nf-top { display: flex; align-items: center; gap: 16px; margin-top: 6px; }
.nf-l { display: block; margin: 24px 0 8px; font-size: 14px; font-weight: 700; color: var(--sumi2); }
.nf-top .nf-l { margin: 0; font-size: 20px; color: var(--sumi); font-weight: 900; }
.nf-in { width: 100%; padding: 8px 0; border: 0; border-bottom: 2px solid var(--sumi); border-radius: 0; background: transparent; font-size: 26px; font-weight: 700; }
.nf-in.is-s { font-size: 18px; font-weight: 500; border-bottom-width: 1.5px; }
.nf-in:focus { outline: none; border-bottom-color: var(--ai); }
.nf-in::placeholder { color: #8a8a8a; }
.gp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.gp-b { width: 100%; height: auto; aspect-ratio: 1; min-height: 44px; border: 1.5px solid var(--hair); font-size: 22px; }
.gp-b[aria-checked="true"] { background: var(--sumi); border-color: var(--sumi); color: #fff; }
.sg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1.5px solid var(--sumi); }
.sg button { min-height: 46px; font-size: 15px; font-weight: 700; }
.sg button + button { border-left: 1.5px solid var(--sumi); }
.sg button[aria-checked="true"] { background: var(--sumi); color: #fff; }
.sg .serif { font-size: 19px; }
.sg.is-top { margin: 14px 20px 0; }
#nf-wd { margin-top: 10px; }
.err { margin-top: 16px; padding: 6px 12px; border-left: 3px solid var(--ai); color: var(--ai); font-size: 15px; font-weight: 700; line-height: 1.6; }
.nf .btn-ink { margin: 26px 0 0; width: 100%; }

/* ───── ヒートマップ ───── */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 20px 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--hair); font-size: 14px; font-weight: 700; white-space: nowrap; }
.chip[aria-selected="true"] { background: var(--sumi); color: #fff; border-color: var(--sumi); }
.chip-g { font-weight: 900; margin-right: 6px; }
.mg-h { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 14px; font-weight: 700; color: var(--sumi2); margin-bottom: 4px; }
.mg { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.mc { min-height: 44px; display: grid; place-items: center; font-size: 18px; color: var(--sumi); background: var(--l0); }
.mc.l-1 { background: var(--paper); box-shadow: inset 0 0 0 1px var(--hair); }
.mc.l1 { background: var(--l1); }
.mc.l2 { background: var(--l2); }
.mc.l3 { background: var(--l3); color: #fff; }
.mc.l4 { background: var(--l4); color: #fff; }
.mc.fut { background: transparent; color: var(--sumi3); }
.mc.pad { background: transparent; }
.mc.is-t { outline: 2px solid var(--ai); outline-offset: 1px; }
.mc.is-sel { box-shadow: 0 0 0 3px var(--ai); position: relative; z-index: 1; }
.dayp { margin-top: 16px; padding-top: 10px; border-top: 1px solid var(--sumi); min-height: 80px; }
.dp-h { display: flex; justify-content: space-between; align-items: baseline; font-size: 16px; font-weight: 700; }
.dp-n .serif { font-size: 26px; }
.dp-l li { display: flex; align-items: center; gap: 10px; min-height: 46px; border-bottom: 1px solid var(--hair); font-size: 15px; font-weight: 700; color: var(--sumi3); }
.dp-l li.on { color: var(--sumi); }
.dp-v { margin-left: auto; font-size: 14px; }

/* ───── 振り返り ───── */
.rv-art { margin: 0; }
.rv-art img { width: 100%; height: 120px; object-fit: cover; mix-blend-mode: multiply; filter: contrast(1.25) brightness(1.04); }
.big { padding: 10px 20px 0; }
.big-n { line-height: .85; }
.big-n b { font-size: 128px; letter-spacing: -.03em; }
.big-n span { font-size: 52px; margin-left: 4px; }
.big-l { margin-top: 8px; font-size: 15px; font-weight: 700; }
.big-l .serif { font-size: 19px; }
.big-d { margin-top: 4px; font-size: 14px; font-weight: 700; color: var(--sumi2); }
.big-d .serif { font-size: 18px; color: var(--sumi); }
.big-d.down .serif { color: var(--ai); }
.ln { display: block; width: 100%; height: auto; }
.ln-g { stroke: var(--hair); stroke-width: 1; }
.ln-g.is-base { stroke: var(--sumi); }
.ln-p { fill: none; stroke: var(--ai); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ln-d { fill: var(--sumi); }
.ln-now { fill: var(--ai); }
.ln-ax { display: flex; justify-content: space-between; margin-top: 4px; font-size: 14px; color: var(--sumi2); font-weight: 700; }
.wb { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 164px; }
.wb-c { display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; }
.wb-v { font-size: 18px; }
.wb-b { flex: 1; width: 100%; display: flex; align-items: flex-end; background: var(--mist); }
.wb-b i { display: block; width: 100%; background: var(--sumi); transition: height .5s var(--snap); }
.wb-c.is-weak .wb-b i { background: var(--ai); }
.wb-c.is-weak .wb-l { color: var(--ai); }
.wb-l { font-size: 14px; font-weight: 700; }
.pr { border-top: 1px solid var(--sumi); }
.pr-a { display: grid; grid-template-columns: 30px 6.2em minmax(0, 1fr) 3.6em; align-items: center; gap: 10px; min-height: 52px; border-bottom: 1px solid var(--hair); }
.pr-a:active { background: var(--mist); }
.pr-n { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-b { height: 3px; background: var(--hair); }
.pr-b i { display: block; height: 100%; background: var(--sumi); }
.pr-v { text-align: right; font-size: 14px; font-weight: 700; }
.pr-v b { font-size: 24px; }
.words { margin: 28px 20px 0; padding-top: 14px; border-top: 1px solid var(--sumi); }
.words p { font-size: 17px; font-weight: 700; line-height: 1.9; }

/* ───── 設定・アプリについて ───── */
.grp { margin: 22px 20px 0; border-top: 1px solid var(--sumi); }
.grp .sub-h { padding-top: 10px; }
.row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 62px; padding: 8px 0; border-bottom: 1px solid var(--hair); text-align: left; }
.row.is-col { flex-direction: column; align-items: stretch; gap: 4px; padding: 12px 0 14px; }
.row.is-col .sg { margin-top: 6px; }
.row.is-btn:active { background: var(--mist); }
.row-tx { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.row-t { font-size: 16px; font-weight: 700; }
.row-d { font-size: 14px; color: var(--sumi2); line-height: 1.6; }
.row-go { margin-left: auto; }
.row.is-red .row-t { color: var(--ai); }
.sw { position: relative; width: 54px; height: 32px; flex: none; border: 1.5px solid var(--sumi); background: var(--paper); transition: background .2s; }
.sw::before { content: ""; position: absolute; inset: -8px -4px; }
.sw i { position: absolute; top: 3px; left: 3px; width: 23px; height: 23px; background: var(--sumi); transition: transform .25s var(--snap), background .2s; }
.sw[aria-checked="true"] { background: var(--sumi); }
.sw[aria-checked="true"] i { background: #fff; transform: translateX(22px); }
.ab { text-align: center; padding: 6px 20px 0; }
.ab-i { width: 96px; height: 96px; margin: 0 auto; border-radius: 22px; box-shadow: 0 0 0 1px var(--hair); }
.ab-n { margin-top: 14px; font-size: 30px; font-weight: 900; letter-spacing: .2em; margin-right: -.2em; }
.ab-s { font-size: 15px; color: var(--sumi2); font-weight: 700; }
.ab-art { margin: 18px 0 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.ab-art img { width: 100%; height: 180px; object-fit: cover; mix-blend-mode: multiply; filter: contrast(1.25) brightness(1.04); }
.ab-d { padding-top: 14px; font-size: 15px; font-weight: 700; line-height: 1.85; }
.ab-p { margin-top: 8px; font-size: 14px; color: var(--sumi2); line-height: 1.8; }
.ab-t li { padding: 11px 0; font-size: 15px; border-bottom: 1px solid var(--hair); line-height: 1.6; }
.ab-cta { width: calc(100% - 40px); }
.ver { padding: 20px 20px 0; text-align: center; font-size: 14px; color: var(--sumi2); }
.ver .serif { font-size: 17px; color: var(--sumi); }

.empty { padding: 10px 28px 0; text-align: center; }
.empty-i { width: 220px; height: 220px; margin: 0 auto; object-fit: cover; mix-blend-mode: multiply; filter: contrast(1.25) brightness(1.04); }
.empty-t { margin-top: 6px; font-size: 20px; font-weight: 900; }
.empty-p { margin-top: 6px; font-size: 15px; color: var(--sumi2); line-height: 1.8; }
.empty .btn-ink { margin: 20px 0 0; }

/* ───── 紙吹雪・トースト・シート・確認 ───── */
.fx { position: absolute; inset: 0; z-index: 45; width: 100%; height: 100%; pointer-events: none; }
.toast { position: absolute; z-index: 30; left: 16px; right: 16px; bottom: calc(var(--tabh) + var(--bot) + 14px); display: flex; align-items: center; gap: 10px; padding: 11px 10px 11px 16px; background: var(--sumi); color: #fff; font-size: 15px; line-height: 1.55; border-radius: 2px; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .25s var(--snap); }
.toast.on { opacity: 1; transform: none; pointer-events: auto; }
.ts-t { flex: 1; }
.ts-u { flex: none; min-height: 40px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .35); color: #c4cbff; font-size: 14px; font-weight: 700; white-space: nowrap; }
.scrim { position: absolute; inset: 0; z-index: 40; background: rgba(20, 20, 20, .32); opacity: 0; transition: opacity .25s; }
.scrim.on { opacity: 1; }
.sheet { position: absolute; z-index: 41; left: 0; right: 0; bottom: 0; max-height: 88%; overflow-y: auto; overscroll-behavior: contain; padding: 0 20px calc(24px + var(--bot)); background: var(--paper); border-top: 1.5px solid var(--sumi); transform: translateY(100%); transition: transform .32s var(--snap); }
.sheet.on { transform: none; }
.sh-g { position: sticky; top: 0; height: 26px; margin: 0 -20px; display: grid; place-items: center; background: var(--paper); touch-action: none; cursor: grab; }
.sh-g::after { content: ""; width: 40px; height: 3px; background: var(--sumi); }
.sh-t { margin: 2px 0 14px; font-size: 22px; font-weight: 900; }
.sh-t .serif { font-size: 30px; }
.alert { position: absolute; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(20, 20, 20, .36); opacity: 0; transition: opacity .15s; }
.alert.on { opacity: 1; }
.al { width: min(310px, 86%); background: var(--paper); border: 1.5px solid var(--sumi); }
.al-t { padding: 20px 20px 0; font-size: 17px; font-weight: 900; line-height: 1.5; }
.al-b { padding: 8px 20px 18px; font-size: 14px; color: var(--sumi2); line-height: 1.7; }
.al-r { display: grid; grid-template-columns: 1fr 1fr; border-top: 1.5px solid var(--sumi); }
.al-r button { min-height: 52px; font-size: 15px; font-weight: 700; }
.al-r button + button { border-left: 1.5px solid var(--sumi); }
.al-r button:active { background: var(--mist); }
.al-r .is-red { color: var(--ai); }

/* ───── スプラッシュ・はじめての案内 ───── */
.splash { position: absolute; inset: 0; z-index: 90; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--paper); transition: opacity .3s; }
.splash img { width: 104px; height: 104px; border-radius: 24px; box-shadow: 0 0 0 1px var(--hair); animation: draw .6s var(--snap) both; }
@keyframes draw { from { opacity: 0; transform: rotate(-20deg) scale(.9); } }
.sp-n { margin-top: 18px; margin-right: -.45em; font-size: 26px; font-weight: 900; letter-spacing: .45em; }
.splash.is-out { opacity: 0; }
.intro { position: absolute; inset: 0; z-index: 80; background: var(--paper); transition: opacity .3s; }
.intro.is-out { opacity: 0; }
.ob-skip { position: absolute; z-index: 3; top: calc(var(--top) + 10px); right: 14px; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--sumi); background: var(--paper); font-size: 14px; font-weight: 700; }
.ob-p { position: absolute; inset: 0 0 118px; opacity: 0; transform: translateY(14px); transition: opacity .35s, transform .45s var(--snap); pointer-events: none; }
.ob-p.on { opacity: 1; transform: none; pointer-events: auto; }
.ob-p img { width: 100%; height: 46%; object-fit: cover; border-bottom: 1px solid var(--hair); mix-blend-mode: multiply; filter: contrast(1.25) brightness(1.04); }
.ob-k { margin: 22px 24px 0; font-size: 26px; color: var(--ai); line-height: 1; }
.ob-t { margin: 8px 24px 0; font-size: 36px; font-weight: 900; line-height: 1.3; }
.ob-x { margin: 14px 24px 0; font-size: 16px; color: var(--sumi2); line-height: 1.85; }
.ob-f { position: absolute; left: 24px; right: 20px; bottom: calc(var(--bot) + 28px); display: flex; align-items: center; justify-content: space-between; }
.ob-d { display: flex; gap: 6px; }
.ob-d i { width: 8px; height: 8px; background: var(--hair); transition: width .3s var(--snap), background .3s; }
.ob-d i.on { width: 26px; background: var(--sumi); }
.ob-next { min-height: 56px; min-width: 132px; padding: 0 28px; background: var(--sumi); color: #fff; font-size: 16px; font-weight: 700; }
.ob-next:active { background: var(--ai); }

.nojs, .fatal { position: fixed; z-index: 100; inset: auto 16px 40%; padding: 20px; background: #fff; border: 1.5px solid var(--sumi); color: var(--sumi); font-size: 15px; line-height: 1.7; }
.fatal-t { font-weight: 900; }
.fatal a { font-weight: 700; text-decoration: underline; }

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