/* habakan/design の tokens.json と同じ値。明色 = 墨と紺、暗色 = 炭 */
body { font-family: 'BIZ UDPGothic', Arial, sans-serif; color: #16171a; }
section { counter-increment: page; box-sizing: border-box; padding: 112px 128px 152px; background: #f2f2f0; color: #16171a; display: flex; flex-direction: column; gap: 40px; font-family: 'BIZ UDPGothic', Arial, sans-serif; }
section.dark { background: #1b1c1e; color: #ececea; }
p, h1, h2, h3, ul { margin: 0; }

/* 文字の階層: 72 / 44 / 30 / 26 / 24 */
.mono { font-family: 'IBM Plex Mono', 'Courier New', monospace; font-variant-numeric: tabular-nums; }
.eyebrow { font-family: 'IBM Plex Mono', 'Courier New', monospace; font-variant-numeric: tabular-nums; font-size: 24px; letter-spacing: 0.04em; color: #4d4f55; white-space: nowrap; }
.head { display: flex; flex-direction: column; gap: 12px; padding-bottom: 20px; border-bottom: 2px solid #16171a; }
.head .eyebrow { font-family: 'IBM Plex Mono', 'BIZ UDPGothic', monospace; letter-spacing: 0; }
.title { font-size: 44px; font-weight: 700; line-height: 1.3; white-space: nowrap; }
.display { font-size: 72px; font-weight: 700; line-height: 1.25; }
.h3 { font-size: 30px; font-weight: 700; line-height: 1.4; }
.body { font-size: 26px; line-height: 1.7; }
.small { font-size: 24px; line-height: 1.6; color: #4d4f55; }
.paint { color: #24384c; }
.dark .paint { color: #ef6a3a; }
.spacer { flex: 1; }
.fill { flex: 1; min-height: 0; }
.dark .eyebrow, .dark .small { color: #a3a4a8; }
.dark .head { border-bottom: 2px solid #ececea; }
.ul { font-size: 26px; line-height: 1.7; padding-left: 1.1em; }
.ul ul { padding-left: 1.1em; font-size: 24px; color: #4d4f55; }
.dark .ul ul, .card-dark .ul ul { color: #a3a4a8; }

.footer { position: absolute; left: 128px; bottom: 56px; width: 1664px; display: flex; justify-content: space-between; font-family: 'IBM Plex Mono', 'Courier New', monospace; font-variant-numeric: tabular-nums; font-size: 24px; color: #4d4f55; }
.dark .footer { color: #a3a4a8; }
.pnum::after { content: counter(page); }

/* 並べ方 */
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.cols-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.card { display: flex; flex-direction: column; gap: 12px; padding: 28px 32px; background: #fbfbfa; border: 1px solid #bdbdb8; }
.card-dark { display: flex; flex-direction: column; gap: 12px; padding: 28px 32px; background: #1b1c1e; color: #ececea; }
.card-dark .small { color: #a3a4a8; }
.num { font-family: 'IBM Plex Mono', 'Courier New', monospace; font-variant-numeric: tabular-nums; font-size: 26px; font-weight: 500; color: #4d4f55; }
.dark .num, .card-dark .num { color: #a3a4a8; }

/* 台帳の行 */
.line { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid #bdbdb8; }
.line-top { border-top: 2px solid #16171a; }
.dark .line { border-bottom: 1px solid #3d3e42; }
.dark .line-top { border-top: 1px solid #3d3e42; }

/* 部品 */
.dateblock { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 20px 28px; background: #24384c; color: #f2f2f0; }
.dateblock-dark { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 20px 28px; background: #ef6a3a; color: #1b1c1e; }
.tag { padding: 2px 12px; font-size: 24px; line-height: 1.4; color: #4d4f55; border: 1px solid #bdbdb8; white-space: nowrap; }
.chip { align-self: flex-start; padding: 4px 16px; font-size: 24px; background: #24384c; color: #f2f2f0; }
.code { padding: 20px 28px; font-family: 'IBM Plex Mono', 'Courier New', monospace; font-size: 24px; line-height: 1.6; background: #16171a; color: #e9e9e5; }
.figure { flex: 1; min-height: 0; width: 100%; object-fit: contain; }
.phone { width: 260px; height: 562px; object-fit: contain; border: 1px solid #bdbdb8; background: #fbfbfa; }
a { color: inherit; text-decoration: underline; }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.in { animation: rise 450ms ease-out both; animation-delay: calc(var(--i, 0) * 100ms); }

/* 図: 端末からコアへ流れ込む線 (bitwasm-signer) */
.hub { position: relative; width: 1664px; height: 420px; flex: none; }
.wires path { animation: flow 1.4s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -40; } }
.plat { position: absolute; box-sizing: border-box; width: 440px; height: 116px; padding: 0 28px; display: flex; align-items: center; gap: 20px; background: #fbfbfa; border: 1px solid #bdbdb8; animation: rise 450ms ease-out both; animation-delay: calc(var(--i, 0) * 90ms + 300ms); }
.hubcore { position: absolute; left: 572px; top: 40px; box-sizing: border-box; width: 520px; min-height: 340px; padding: 24px 32px; display: flex; flex-direction: column; gap: 16px; background: #1b1c1e; color: #ececea; animation: rise 450ms ease-out both; animation-delay: 150ms; }
.hubcore .small { color: #a3a4a8; }
.hubcore .mod { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border: 1px solid #3d3e42; }
