/* マーケティングが止まったら — サイトのスタイル
   手本：見本の mock/assets/style.css ＋ mock-v2/assets/v2.css。
   白と黒を基調に、止まっているところの朱（--stop）と、次の一歩の緑（--go）だけに色を使う。 */
@font-face { font-family: "TM Sans"; src: url("fonts/sans.woff") format("woff"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "TM Serif"; src: url("fonts/serif.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "TM Hand"; src: url("fonts/hand.woff") format("woff"); font-weight: 600; font-display: swap; }

:root {
  --ink: #101010;
  --ground: #fafaf7;
  --panel: #ffffff;
  --line: #d8d8d0;
  --line-soft: #e8e8e1;
  --mute: #5d5d57;
  --stop: #e2432a;
  --go: #0a7a5a;
  --go-soft: #e6f3ee;
  --stop-soft: #fcebe7;
  --mark: #ffe9a8;
  --serif: "TM Serif", "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  --sans: "TM Sans", "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", sans-serif;
  --hand: "TM Hand", "Klee One", var(--sans);
  --w: 1160px;
  --gut: 28px;
  --head: 68px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head) + 16px); }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.9; font-feature-settings: "palt"; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; }
img { max-width: 100%; display: block; height: auto; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--go); outline-offset: 3px; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── ヘッダー ── */
.head { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--ground) 92%, transparent); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 30; }
.head .wrap { display: flex; align-items: center; gap: 28px; height: var(--head); }
.brand { text-decoration: none; display: flex; align-items: center; gap: 17px; font-family: var(--serif); font-weight: 700; font-size: 19px; letter-spacing: .02em; white-space: nowrap; }
.brand .mark { width: 10px; height: 26px; background: var(--ink); position: relative; flex: none; }
.brand .mark::after { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 6px; background: var(--ground); }
.brand .mark::before { content: ""; position: absolute; left: 14px; top: 11px; width: 0; height: 0; border-left: 7px solid var(--go); border-top: 2px solid transparent; border-bottom: 2px solid transparent; transition: transform .3s; }
.brand:hover .mark::before { transform: translateX(3px); }
.brand small { font-family: var(--sans); font-weight: 500; font-size: 10px; letter-spacing: .16em; color: var(--mute); margin-left: 4px; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 14px; }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; transition: border-color .2s; }
.nav a:hover, .nav a.on { border-bottom-color: var(--ink); }
.menu { display: none; position: relative; margin-left: auto; }
.menu summary { list-style: none; cursor: pointer; white-space: nowrap; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; padding: 8px 12px; border: 1.5px solid var(--ink); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary i { width: 16px; height: 10px; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); position: relative; }
.menu summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 2px; border-top: 2px solid var(--ink); }
.menu[open] summary { background: var(--ink); color: #fff; }
.menu[open] summary i, .menu[open] summary i::after { border-color: #fff; }
.menu nav { position: absolute; right: 0; top: calc(100% + 10px); width: min(300px, calc(100vw - 32px)); background: var(--panel); border: 2px solid var(--ink); box-shadow: 8px 8px 0 rgba(16,16,16,.08); display: grid; }
.menu nav a { text-decoration: none; padding: 13px 18px; border-bottom: 1px solid var(--line-soft); font-size: 15px; font-weight: 500; display: flex; justify-content: space-between; }
.menu nav a::after { content: "→"; font-family: var(--serif); color: var(--mute); }
.menu nav a:last-child { border-bottom: 0; }

/* ── ボタン ── */
.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 14px; line-height: 1.5; padding: 11px 20px; border: 2px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; font-family: var(--sans); transition: transform .15s, background .15s, color .15s, box-shadow .15s; }
.btn:hover { transform: translateX(3px); }
.btn:active { transform: translateX(1px); }
.btn.line { background: transparent; color: var(--ink); }
.btn.line:hover { background: var(--panel); }
.btn.go { background: var(--go); border-color: var(--go); }
.btn .ar { font-family: var(--serif); }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; font-size: 13.5px; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

/* ── パンくず・見出し ── */
.crumb { font-size: 12.5px; color: var(--mute); padding: 22px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.crumb a { text-decoration: none; border-bottom: 1px solid var(--line); }
.crumb a:hover { border-bottom-color: var(--ink); color: var(--ink); }
.kicker { font-size: 12px; letter-spacing: .2em; color: var(--mute); display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.kicker::before { content: ""; width: 9px; height: 9px; background: var(--stop); flex: none; }
.kicker.go::before { background: var(--go); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.45; margin: 0; letter-spacing: .01em; word-break: auto-phrase; text-wrap: balance; }
h1 { font-size: clamp(30px, 4.4vw, 52px); }
h2 { font-size: clamp(22px, 2.6vw, 30px); }
h3 { font-size: 19px; }
p { text-wrap: pretty; }
.artcard h3, .nexts b, .cpath b, .course h3, .card h3, .kata-list h3, .figs .cap, .answer li, .side .courseline a { word-break: auto-phrase; }
.lead { font-size: 17px; max-width: 38em; margin: 22px 0 0; }
.meta { font-size: 12.5px; color: var(--mute); }
.note { font-size: 12.5px; color: var(--mute); }
section { padding: 76px 0; }
section + section { border-top: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: 200px 1fr; gap: 40px; margin-bottom: 36px; align-items: start; }
.sec-head .no { font-family: var(--serif); font-size: 13px; letter-spacing: .18em; color: var(--mute); padding-top: 10px; border-top: 3px solid var(--ink); }
.sec-head .lead { margin-top: 12px; }
.more-link { display: inline-flex; gap: 8px; margin-top: 22px; font-weight: 700; font-size: 14px; text-decoration: none; border-bottom: 2px solid var(--ink); padding-bottom: 2px; }
.more-link:hover { color: var(--go); border-bottom-color: var(--go); }
.kari-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--stop); border: 1.5px solid var(--stop); padding: 0 8px; margin-right: 8px; vertical-align: 2px; font-family: var(--sans); }

/* ── トップ：ヒーロー ── */
.hero2 { padding: 0; border-bottom: 1px solid var(--line); overflow: hidden; position: relative; }
.hero2 .wrap { display: grid; grid-template-columns: 1fr 420px; gap: 56px; align-items: stretch; }
.hero2 .hero-text { padding: 76px 0 64px; position: relative; }
.hero2 h1 { font-size: clamp(38px, 5.6vw, 70px); line-height: 1.28; text-wrap: initial; }
.hero2 h1 .dot { color: var(--stop); }
.hero2 h1 .ln { display: block; }
.hero2 .sub { font-family: var(--serif); font-size: clamp(18px, 2vw, 23px); font-weight: 700; margin: 22px 0 0; }
.counts { display: flex; margin: 34px 0 0; border-top: 3px solid var(--ink); max-width: 560px; }
.counts a { flex: 1; padding: 12px 0 0 14px; border-right: 1px solid var(--line); text-decoration: none; transition: color .2s; }
.counts a:first-child { padding-left: 0; } .counts a:last-child { border-right: 0; }
.counts a:hover { color: var(--go); }
.counts b { display: block; font-family: var(--serif); font-size: 30px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.counts span { font-size: 12px; color: var(--mute); letter-spacing: .06em; }
.find { margin: 30px 0 0; max-width: 560px; display: flex; border: 2px solid var(--ink); background: var(--panel); transition: box-shadow .2s; }
.find input { flex: 1; border: 0; background: transparent; font: inherit; font-size: 16px; padding: 14px 16px; color: var(--ink); min-width: 0; }
.find input:focus { outline: none; }
.find span { display: flex; align-items: center; padding: 0 16px; font-size: 12.5px; color: var(--mute); white-space: nowrap; border-left: 1px solid var(--line); }
.find:focus-within { box-shadow: 5px 5px 0 var(--go); }
.find-hints { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0 0; font-size: 12.5px; color: var(--mute); }
.find-hints button { background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink); border-bottom: 1px dashed var(--mute); font-size: 12.5px; }
.find-hints button:hover { color: var(--go); border-bottom-color: var(--go); }

.starter { background: var(--ink); color: #fff; padding: 40px 34px 34px; display: flex; flex-direction: column; }
.starter .kicker { color: #bdbdb5; }
.starter h2 { color: #fff; font-size: 22px; margin-bottom: 18px; }
.starter ol { list-style: none; margin: 0; padding: 0; counter-reset: st; }
.starter li { counter-increment: st; border-top: 1px solid #3a3a36; }
.starter li a { position: relative; word-break: auto-phrase; display: grid; grid-template-columns: 34px 1fr; gap: 6px; padding: 13px 0; text-decoration: none; font-size: 14.5px; line-height: 1.6; transition: padding .2s; }
.starter li a::before { content: counter(st, decimal-leading-zero); font-family: var(--serif); color: #8e8e86; font-size: 13px; padding-top: 2px; }
.starter li a:hover { padding-left: 8px; }
.starter li a small { display: block; color: #9c9c94; font-size: 12px; }
.starter li a .rd { position: absolute; right: 0; bottom: 14px; font-size: 11px; color: #6fc4a6; visibility: hidden; }
.starter li a.read .rd { visibility: visible; }
.starter .foot-note { margin-top: auto; padding-top: 18px; font-size: 12.5px; color: #9c9c94; }
.starter .btn { margin-top: 16px; background: #fff; color: var(--ink); border-color: #fff; align-self: flex-start; }

/* 例に使う業種 */
.indband { padding: 30px 0 34px; background: var(--panel); border-bottom: 1px solid var(--line); }
.indband + section { border-top: 0; }
.indband .lab { font-size: 12px; letter-spacing: .18em; color: var(--mute); margin: 0 0 12px; }
.inds { display: grid; grid-template-columns: repeat(4, 1fr); border: 2px solid var(--ink); }
.inds button { text-align: left; background: var(--panel); border: 0; border-right: 1px solid var(--line); padding: 14px 18px 12px; cursor: pointer; color: var(--ink); font-size: 15px; font-weight: 700; display: grid; gap: 1px; line-height: 1.6; transition: background .15s, color .15s; }
.inds button:last-child { border-right: 0; }
.inds button b { font-family: var(--serif); font-size: 12.5px; color: var(--mute); letter-spacing: .1em; }
.inds button small { font-size: 12px; font-weight: 400; color: var(--mute); }
.inds button:hover { background: var(--go-soft); }
.inds button.on { background: var(--ink); color: #fff; } .inds button.on b, .inds button.on small { color: #cfcfc8; }
.indband .note { margin: 10px 0 0; }

/* 記事の一覧（問いの形） */
.qlist { border-top: 3px solid var(--ink); }
.qlist a { display: grid; grid-template-columns: 116px 1fr 92px; gap: 20px; align-items: baseline; padding: 17px 6px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .2s, padding .2s; }
.qlist a:hover { background: var(--panel); padding-left: 16px; }
.qlist .w { font-size: 12px; letter-spacing: .08em; color: var(--mute); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.qlist .w::before { content: ""; width: 5px; height: 15px; background: var(--stop); flex: none; }
.qlist .q { font-family: var(--serif); font-weight: 700; font-size: 18px; line-height: 1.6; word-break: auto-phrase; }
.qlist .q em { font-style: normal; font-family: var(--sans); font-weight: 400; font-size: 13px; color: var(--mute); display: block; margin-top: 3px; line-height: 1.7; }
.qlist .t { font-size: 12.5px; color: var(--mute); text-align: right; white-space: nowrap; }
.qlist a.read .w::before { background: var(--go); }
.qlist a.read .t::before { content: "✓ 読んだ　"; color: var(--go); font-weight: 700; }
.qlist a[hidden] { display: none; }
.none { padding: 22px 6px; color: var(--mute); border-bottom: 1px solid var(--line); }
.qstate { margin: 26px 0 10px; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.qstate .linkbtn { font-size: 12.5px; }

/* 壁ごとの棚 */
.shelves { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 3px solid var(--ink); border-left: 1px solid var(--line); }
.shelf { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 18px 20px; background: var(--ground); display: flex; flex-direction: column; text-decoration: none; transition: background .2s, box-shadow .2s; text-align: left; cursor: pointer; position: relative; }
.shelf:hover { background: var(--panel); }
.shelf.on { background: var(--panel); box-shadow: inset 0 -5px 0 var(--stop); }
.shelf .n { font-family: var(--serif); font-size: 13px; color: var(--mute); letter-spacing: .1em; }
.shelf h3 { font-size: 21px; margin: 4px 0 10px; }
.shelf p { font-size: 13px; color: var(--mute); margin: 0 0 14px; line-height: 1.75; }
.shelf .cnt { margin-top: auto; font-size: 12.5px; font-weight: 700; display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 10px; }
.shelf .cnt .prog { color: var(--go); }

/* テーマ・用語の札 */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips a { text-decoration: none; border: 1px solid var(--ink); padding: 8px 16px; font-size: 14.5px; line-height: 1.6; background: var(--panel); display: inline-flex; gap: 10px; align-items: baseline; transition: background .15s, color .15s; }
.chips a small { font-size: 11.5px; color: var(--mute); }
.chips a:hover { background: var(--ink); color: #fff; } .chips a:hover small { color: #cfcfc8; }
.chips.words a { border-color: var(--line); font-family: var(--serif); font-weight: 700; }
.chips.words a:hover { border-color: var(--ink); }
.chips.sm { gap: 6px; } .chips.sm a { padding: 4px 11px; font-size: 13.5px; }

/* コース */
.courses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.course { background: var(--panel); border: 1px solid var(--line); border-top: 5px solid var(--go); padding: 24px 24px 22px; text-decoration: none; display: flex; flex-direction: column; gap: 8px; transition: transform .2s, border-color .2s; }
.course:hover { transform: translateY(-3px); border-color: var(--ink); border-top-color: var(--go); }
.course .len { font-size: 12px; letter-spacing: .1em; color: var(--go); font-weight: 700; }
.course p { margin: 0; font-size: 14px; color: var(--mute); }
.course .dots { display: flex; gap: 5px; margin-top: auto; padding-top: 14px; }
.course .dots i { width: 100%; height: 5px; background: var(--line); transition: background .3s; }
.course .dots i.done { background: var(--go); }
.course .pg { font-size: 12px; color: var(--mute); }

/* 図の棚 */
.figs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.figs a, .figs .figcard { background: var(--panel); border: 1px solid var(--line); padding: 14px; text-decoration: none; display: flex; flex-direction: column; gap: 10px; transition: border-color .2s, transform .2s; }
.figs a:hover { border-color: var(--ink); transform: translateY(-2px); }
.figs .im { aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #fff; }
.figs img { max-height: 100%; width: auto; }
.figs .cap { font-size: 13.5px; font-weight: 700; line-height: 1.6; }
.figs .cap small { display: block; font-weight: 400; font-size: 11.5px; color: var(--mute); margin-top: 3px; }

/* カード */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--panel); border: 1px solid var(--line); padding: 26px 26px 24px; text-decoration: none; display: flex; flex-direction: column; gap: 10px; transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--ink); transform: translateY(-3px); }
.card .tag { font-size: 11.5px; letter-spacing: .16em; color: var(--mute); }
.card p { margin: 0; font-size: 14.5px; color: var(--mute); }
.card .more { margin-top: auto; font-weight: 700; font-size: 14px; padding-top: 10px; }

/* 本と Web */
.pair { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--ink); }
.pair > div { padding: 30px 32px 28px; display: flex; flex-direction: column; align-items: flex-start; }
.pair > div + div { border-left: 2px solid var(--ink); background: var(--panel); }
.pair .role { font-size: 12px; letter-spacing: .18em; color: var(--mute); margin: 0; }
.pair h3 { font-size: 23px; margin: 6px 0 14px; }
.pair ul { margin: 0; padding-left: 1.1em; font-size: 14.5px; }
.pair .btn { margin-top: auto; } .pair ul { margin-bottom: 18px; }

/* 決まり・ノート */
.cols { display: grid; grid-template-columns: 1fr 320px; gap: 64px; align-items: start; }
.box { background: var(--panel); border: 1px solid var(--line); padding: 22px; }
.box h3 { font-size: 13px; font-family: var(--sans); letter-spacing: .1em; margin-bottom: 12px; }
.box ul { margin: 0; padding-left: 1.1em; font-size: 14.5px; }

/* 相談・フッター */
.consult { background: var(--ink); color: #fff; border: 0 !important; }
.consult h2 { color: #fff; }
.consult p { color: #cfcfc8; max-width: 36em; }
.consult .btn { background: #fff; color: var(--ink); border-color: #fff; margin-top: 20px; }
.consult .kicker { color: #cfcfc8; }
.foot { padding: 40px 0 48px; font-size: 13px; color: var(--mute); border-top: 1px solid var(--line); }
.foot .wrap { display: grid; grid-template-columns: 1fr auto; gap: 18px 40px; align-items: start; }
.foot .brand { font-size: 16px; color: var(--ink); }
.foot .brand .mark { height: 22px; width: 9px; }
.foot nav { display: flex; gap: 10px 22px; flex-wrap: wrap; justify-content: flex-end; }
.foot nav a { text-decoration: none; border-bottom: 1px solid var(--line); }
.foot nav a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.foot .fine { grid-column: 1 / -1; display: flex; gap: 8px 22px; flex-wrap: wrap; border-top: 1px solid var(--line-soft); padding-top: 16px; font-size: 12px; }

/* ── 記事 ── */
.progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; background: var(--go); z-index: 60; transform-origin: 0 50%; transform: scaleX(0); }
.art-head { padding: 34px 0 44px; }
.art-meta { display: flex; flex-wrap: wrap; gap: 8px 10px; font-size: 12.5px; color: var(--mute); margin: 0 0 18px; align-items: center; }
.art-meta a, .art-meta .pill { text-decoration: none; border: 1px solid var(--line); padding: 3px 11px; background: var(--panel); color: var(--ink); line-height: 1.6; }
.art-meta a:hover { border-color: var(--ink); }
.art-meta .pill.wall { border-color: var(--stop); color: var(--stop); font-weight: 700; }
.art-meta .pill.start { border-color: var(--go); color: var(--go); font-weight: 700; }
.art-head h1 { font-size: clamp(28px, 3.9vw, 46px); line-height: 1.5; max-width: 21em; }
.answer { margin: 34px 0 0; border: 2px solid var(--ink); background: var(--panel); max-width: 820px; position: relative; }
.answer .lab { position: absolute; left: -2px; top: -15px; background: var(--ink); color: #fff; font-size: 12px; letter-spacing: .14em; padding: 3px 14px; line-height: 1.9; }
.answer ol { list-style: none; margin: 0; padding: 26px 28px 20px; counter-reset: a; display: grid; gap: 10px; }
.answer li { counter-increment: a; display: grid; grid-template-columns: 30px 1fr; font-size: 16.5px; font-weight: 500; line-height: 1.8; }
.answer li::before { content: counter(a); font-family: var(--serif); font-weight: 700; font-size: 20px; color: var(--go); line-height: 1.5; }

.art { display: grid; grid-template-columns: 172px minmax(0, 1fr) 248px; gap: 40px; align-items: start; padding: 0 0 80px; }
.toc { position: sticky; top: calc(var(--head) + 28px); font-size: 13.5px; }
.toc h3 { font-family: var(--sans); font-size: 11.5px; letter-spacing: .16em; color: var(--mute); margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; text-decoration: none; padding: 7px 0 7px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--mute); line-height: 1.6; transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--ink); }
.toc a.on { border-left-color: var(--ink); color: var(--ink); font-weight: 700; }
.toc a.do { color: var(--go); }
.toc a.do.on { border-left-color: var(--go); }
.readmark { margin-top: 22px; width: 100%; font-size: 13px; font-weight: 700; padding: 9px 10px; border: 1px solid var(--ink); background: transparent; cursor: pointer; color: var(--ink); transition: background .2s, color .2s; }
.readmark:hover { background: var(--panel); }
.readmark.on { background: var(--go); border-color: var(--go); color: #fff; }

.body { min-width: 0; }
.body > p, .body > .plain { max-width: 38em; }
.body p { margin: 0 0 1.25em; }
.body h2 { margin: 60px 0 20px; padding-top: 22px; border-top: 3px solid var(--ink); display: flex; gap: 14px; align-items: baseline; }
.body h2:first-child { margin-top: 0; }
.body h2 .k { font-size: 13px; font-family: var(--sans); font-weight: 700; color: var(--mute); letter-spacing: .1em; white-space: nowrap; }
.body h2.do { border-top-color: var(--go); } .body h2.do .k { color: var(--go); }
.body h3.sub { margin: 36px 0 12px; font-size: 19px; }
.body strong { background: linear-gradient(transparent 62%, var(--mark) 62%); font-weight: 700; }
.body ul.plain, .body ol.plain { margin: 0 0 1.4em; padding-left: 1.3em; }
.body ul.plain li, .body ol.plain li { margin-bottom: .45em; }
.body ol.plain li::marker { font-family: var(--serif); font-weight: 700; color: var(--go); }
.tbl { overflow-x: auto; margin: 0 0 1.6em; border: 1px solid var(--line); background: var(--panel); }
.tbl table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.75; }
.tbl th, .tbl td { padding: 10px 14px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.tbl thead th { background: var(--ink); color: #fff; font-size: 12.5px; letter-spacing: .06em; font-weight: 700; white-space: nowrap; }
.tbl tbody th { font-weight: 700; font-size: 13.5px; white-space: nowrap; background: var(--ground); }
.tbl tr:last-child td, .tbl tr:last-child th { border-bottom: 0; }
.tbl td.r { text-align: right; font-variant-numeric: tabular-nums; }

/* 図 */
.fig { margin: 8px 0 1.8em; background: var(--panel); border: 1px solid var(--line); padding: 0; }
.fig button.zoom { display: block; width: 100%; border: 0; padding: 22px 22px 16px; background: #fff; cursor: zoom-in; position: relative; }
.fig button.zoom::after { content: "拡大"; position: absolute; right: 10px; top: 10px; font-size: 11px; letter-spacing: .1em; padding: 2px 8px; border: 1px solid var(--line); background: var(--panel); color: var(--mute); opacity: 0; transition: opacity .2s; }
.fig button.zoom:hover::after, .fig button.zoom:focus-visible::after { opacity: 1; }
.fig img { margin: 0 auto; width: 100%; }
.fig figcaption { font-size: 13.5px; font-weight: 700; padding: 12px 18px 14px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; align-items: baseline; line-height: 1.6; }
.fig figcaption small { font-weight: 400; font-size: 12px; color: var(--mute); }
.fig figcaption .dl { font-weight: 400; font-size: 12px; display: flex; gap: 12px; }
.fig figcaption .dl a { color: var(--mute); }
.lightbox { border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: rgba(250,250,247,.97); }
.lightbox::backdrop { background: rgba(16,16,16,.4); }
.lightbox .lb-in { height: 100%; display: grid; grid-template-rows: auto 1fr auto; }
.lightbox .lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); font-weight: 700; font-family: var(--serif); }
.lightbox .lb-bar button { background: var(--ink); color: #fff; border: 0; padding: 8px 16px; cursor: pointer; font-family: var(--sans); font-size: 13px; font-weight: 700; flex: none; }
.lightbox .lb-img { overflow: auto; display: flex; align-items: center; justify-content: center; padding: 20px; }
.lightbox .lb-img img { max-height: 100%; max-width: min(1400px, 100%); background: #fff; }
.lightbox .lb-foot { padding: 10px 20px 16px; font-size: 12.5px; color: var(--mute); }

/* 用語：その場で引ける */
.term { border-bottom: 2px dotted var(--go); cursor: help; text-decoration: none; }
.term:hover { background: var(--go-soft); }
.termtip { position: absolute; z-index: 45; width: min(340px, calc(100vw - 24px)); background: var(--ink); color: #fff; padding: 14px 18px 13px; font-size: 13.5px; line-height: 1.75; box-shadow: 6px 6px 0 rgba(0,0,0,.12); animation: tip .16s ease-out; }
.termtip b { display: block; font-family: var(--serif); font-size: 15px; margin-bottom: 3px; }
.termtip small { display: block; color: #bdbdb5; margin-top: 6px; font-size: 12px; }
.termtip a { display: inline-block; margin-top: 8px; color: #8fe0c2; font-size: 12px; font-weight: 700; }
@keyframes tip { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* 並べる（六つの問いに当てた候補などの表は .tbl） */

/* 段階で見る図 */
.stepfig { background: var(--panel); border: 1px solid var(--line); margin: 8px 0 1.8em; }
.stepfig .bar { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 13px; flex-wrap: wrap; }
.stepfig .bar b { font-size: 12px; letter-spacing: .14em; color: var(--mute); }
.stepfig .bar .sp { flex: 1; }
.stepfig .bar button { font-size: 13px; font-weight: 700; padding: 6px 14px; border: 1.5px solid var(--ink); background: var(--panel); cursor: pointer; color: var(--ink); line-height: 1.6; }
.stepfig .bar button.next { background: var(--ink); color: #fff; }
.stepfig .bar button:disabled { opacity: .3; cursor: default; }
.stepfig .pips { display: flex; gap: 5px; }
.stepfig .pips button { width: 22px; height: 14px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.stepfig .pips button::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 5px; background: var(--line); transition: background .3s; }
.stepfig .pips button.on::before { background: var(--ink); }
.stepfig .ctl { display: none; }
.js .stepfig .ctl { display: flex; }
.stage { display: flex; flex-direction: row-reverse; align-items: center; padding: 26px 18px 24px; min-height: 340px; }
.stage .col { transition: opacity .45s, transform .45s; }
.voices { flex: none; width: 212px; display: grid; gap: 8px; }
.voices .who { font-size: 12px; color: var(--mute); letter-spacing: .06em; text-align: center; white-space: nowrap; line-height: 20px; }
.voice-b { border: 1.5px solid var(--ink); border-radius: 22px; padding: 6px 14px; font-family: var(--hand); font-size: 14px; line-height: 1.6; white-space: nowrap; text-align: center; background: var(--panel); transition: opacity .45s, border-color .45s, color .45s, transform .45s; position: relative; }
.gatecol { flex: none; width: 46px; align-self: stretch; position: relative; display: flex; flex-direction: column; align-items: center; }
.gatecol .lab { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; line-height: 20px; margin-bottom: 8px; }
.gatecol .w1, .gatecol .w2 { width: 14px; background: var(--ink); }
.gatecol .w1 { flex: 3; } .gatecol .gap { flex: 1.06; } .gatecol .w2 { flex: 2; }
.memo { flex: none; border: 2px solid var(--ink); padding: 12px 16px 14px; margin: 0 26px 0 0; position: relative; background: var(--panel); white-space: nowrap; }
.memo h5 { margin: 0 0 8px; padding-bottom: 8px; border-bottom: 1px solid var(--ink); font-size: 15px; text-align: center; font-family: var(--serif); }
.memo div { font-size: 14.5px; line-height: 2; display: flex; gap: 8px; align-items: center; }
.memo div::before { content: ""; width: 14px; height: 14px; border: 1.5px solid var(--ink); flex: none; }
.memo div.ck { font-weight: 700; }
.memo div.ck::before { background: var(--ink); box-shadow: inset 0 0 0 2.5px var(--panel); }
.memo::before, .meet::before { content: "←"; position: absolute; right: -24px; top: 50%; transform: translateY(-50%); font-family: var(--serif); font-size: 20px; }
.meet { flex: 1; text-align: center; position: relative; margin-right: 26px; white-space: nowrap; min-width: 0; }
.meet .say { display: inline-block; border: 2px solid var(--ink); border-radius: 14px; padding: 7px 12px; font-weight: 700; font-size: 14.5px; background: var(--panel); transition: border-color .4s, color .4s; }
.meet .ppl { display: flex; justify-content: center; gap: 14px; margin-top: 14px; }
.meet .ppl i { width: 30px; height: 30px; border: 2px solid var(--ink); border-radius: 50%; position: relative; margin-bottom: 26px; }
.meet .ppl i::after { content: ""; position: absolute; left: -7px; top: 32px; width: 40px; height: 22px; border: 2px solid var(--ink); border-bottom: 0; border-radius: 20px 20px 0 0; }
.meet .who { font-size: 12px; color: var(--mute); letter-spacing: .1em; }
.stepfig .caps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); counter-reset: c; }
.stepfig .caps li { counter-increment: c; padding: 14px 20px 14px 52px; font-size: 15px; position: relative; border-bottom: 1px solid var(--line-soft); }
.stepfig .caps li::before { content: attr(data-n); position: absolute; left: 20px; top: 12px; font-family: var(--serif); font-weight: 700; font-size: 18px; color: var(--mute); }
.stepfig .caps li:last-child { border-bottom: 0; }
.stepfig .caps b { font-family: var(--serif); font-size: 16.5px; }
.stepfig .caps small { display: block; color: var(--mute); font-size: 12.5px; margin-top: 4px; }
.js .stepfig .caps { min-height: 92px; }
.js .stepfig .caps li { display: none; border-bottom: 0; animation: capin .35s ease-out; }
.js .stepfig .caps li.on { display: block; }
.js .stepfig .caps li.on::before { color: var(--go); }
@keyframes capin { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.stepfig details.still { border-top: 1px solid var(--line); }
.stepfig details.still summary { cursor: pointer; padding: 10px 20px; font-size: 12.5px; color: var(--mute); list-style: none; }
.stepfig details.still summary::-webkit-details-marker { display: none; }
.stepfig details.still summary::before { content: "＋ "; }
.stepfig details.still[open] summary::before { content: "－ "; }
.stepfig details.still .fig { margin: 0 16px 16px; }
/* 段階ごとの見え方（JS がないときは最後の段階を見せる） */
.js .stepfig[data-step="1"] .gatecol, .js .stepfig[data-step="1"] .memo, .js .stepfig[data-step="1"] .meet,
.js .stepfig[data-step="2"] .memo, .js .stepfig[data-step="2"] .meet,
.js .stepfig[data-step="3"] .meet { opacity: 0; transform: translateX(14px); pointer-events: none; }
.stepfig:not([data-step="1"]) .voice-b:not(.pass) { opacity: .38; border-style: dashed; }
.stepfig:not([data-step="1"]) .voice-b:not(.pass)::before { content: ""; position: absolute; left: -12px; top: 50%; width: 5px; height: 22px; margin-top: -11px; background: var(--stop); }
.stepfig:not([data-step="1"]) .voice-b.pass { font-weight: 700; border-width: 2.5px; transform: translateX(-8px); }
.stepfig[data-step="5"] .voice-b:not(.pass) { opacity: 1; border-style: solid; border-color: var(--go); }
.stepfig[data-step="5"] .voice-b:not(.pass)::before { background: var(--go); }
.stepfig[data-step="5"] .memo { opacity: .25; }
.stepfig[data-step="5"] .meet .say { border-color: var(--go); color: var(--go); }

/* A社の囲み */
.case { border: 1px solid var(--line); border-left: 5px solid var(--ink); background: var(--panel); margin: 0 0 1.6em; padding: 20px 24px 6px; }
.case .lab { font-size: 11.5px; letter-spacing: .16em; color: var(--mute); margin: 0 0 6px; }
.case p { font-size: 15.5px; max-width: 38em; }

/* ほかの見方（出典つき） */
.altview { border: 1px solid var(--ink); background: var(--panel); margin: 4px 0 1.8em; padding: 0; }
.altview .hd { display: flex; gap: 10px; align-items: baseline; padding: 14px 22px 10px; border-bottom: 1px solid var(--line); }
.altview .hd span { font-size: 11px; letter-spacing: .14em; font-weight: 700; background: var(--ink); color: #fff; padding: 1px 9px; flex: none; }
.altview .hd b { font-family: var(--serif); font-size: 16.5px; line-height: 1.6; }
.altview .bd { padding: 16px 22px 4px; }
.altview .bd p { font-size: 15px; max-width: 40em; }
.altview .src { font-size: 12px; color: var(--mute); border-top: 1px dashed var(--line); padding: 10px 22px 14px; margin: 0; line-height: 1.75; }

/* 業種の置きかえ */
.swap { border: 1px solid var(--line); background: var(--panel); margin: 0 0 1.6em; }
.swap .tabs2 { display: none; border-bottom: 1px solid var(--line); overflow-x: auto; }
.js .swap .tabs2 { display: flex; }
.swap .tabs2 button { font-size: 13.5px; font-weight: 700; padding: 10px 18px; border: 0; border-right: 1px solid var(--line); background: var(--ground); cursor: pointer; color: var(--mute); white-space: nowrap; line-height: 1.6; transition: color .2s; }
.swap .tabs2 button:hover { color: var(--ink); }
.swap .tabs2 button[aria-selected="true"] { background: var(--panel); color: var(--ink); box-shadow: inset 0 3px 0 var(--ink); }
.swap .tabs2 button small { font-weight: 400; color: var(--mute); margin-left: 6px; }
.swap .pane { padding: 16px 22px 6px; }
.swap .pane + .pane { border-top: 1px solid var(--line); }
.js .swap .pane + .pane { border-top: 0; }
.swap .pane h4 { font-size: 15px; margin: 0 0 6px; }
.js .swap .pane h4 { display: none; }
.js .swap .pane[hidden] { display: none; }
.swap table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin-bottom: 10px; line-height: 1.75; }
.swap th { text-align: left; width: 12em; font-weight: 700; vertical-align: top; padding: 9px 14px 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.swap td { padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.swap tr:last-child th, .swap tr:last-child td { border-bottom: 0; }
.swap .kari { font-size: 12px; color: var(--mute); padding: 10px 22px 14px; margin: 0; border-top: 1px dashed var(--line); }

/* やりがちな間違い */
.dont { background: var(--stop-soft); border: 1px solid #f3c9bf; border-left: 5px solid var(--stop); padding: 16px 22px; margin: 0 0 12px; font-size: 15.5px; }
.dont b { color: var(--stop); display: block; margin-bottom: 2px; }
.dont + :not(.dont) { margin-top: 1.4em; }

/* 理解を確かめる */
.quiz { display: grid; gap: 14px; margin: 0 0 1.6em; }
.quiz details { border: 1px solid var(--line); background: var(--panel); transition: border-color .2s; }
.quiz details:hover { border-color: var(--mute); }
.quiz details[open] { border-color: var(--ink); }
.quiz summary { list-style: none; cursor: pointer; padding: 16px 20px; font-weight: 700; display: grid; grid-template-columns: 38px 1fr auto; gap: 8px; align-items: baseline; }
.quiz summary::-webkit-details-marker { display: none; }
.quiz summary .n { font-family: var(--serif); color: var(--mute); }
.quiz summary .qq span { display: block; font-weight: 500; margin-top: 4px; }
.quiz summary .op { font-size: 12.5px; font-weight: 700; border: 1px solid var(--ink); padding: 2px 12px; white-space: nowrap; }
.quiz details[open] summary .op { background: var(--ink); color: #fff; }
.quiz .ans { padding: 0 20px 16px 66px; font-size: 15px; }
.quiz .ans p { margin: 0 0 .6em; }
.quiz .ans p:first-child::before { content: "答え"; font-size: 11px; font-weight: 700; letter-spacing: .12em; color: #fff; background: var(--go); padding: 1px 8px; margin-right: 10px; vertical-align: 2px; }

/* やってみる */
.tryit { background: var(--go-soft); border: 2px solid var(--go); padding: 28px 30px 26px; margin: 0 0 1.6em; }
.tryit .lab { font-size: 12px; letter-spacing: .16em; color: var(--go); font-weight: 700; margin: 0 0 6px; }
.tryit h3 { font-size: 22px; margin-bottom: 10px; }
.tryit p { max-width: 38em; }
.tryit .rows { display: grid; gap: 6px; margin: 16px 0 18px; padding: 0; list-style: none; }
.tryit .rows li { background: var(--panel); border-left: 5px solid var(--ink); padding: 8px 14px; font-size: 14px; }
.tryit .rows li.me { border-left-color: var(--mute); } .tryit .rows li.gap { border-left-color: var(--stop); } .tryit .rows li.next { border-left-color: var(--go); }
.tryit .acts { display: flex; gap: 12px 18px; flex-wrap: wrap; align-items: center; }
.tryit .alt { margin-top: 18px; padding-top: 14px; border-top: 1px dashed #9fcdbd; font-size: 14px; }
.tryit .alt a { font-weight: 700; }

/* 本への入口 */
.bookdoor { background: var(--ink); color: #fff; padding: 30px 32px 28px; margin: 0 0 1.6em; position: relative; overflow: hidden; }
.bookdoor .lab { font-size: 12px; letter-spacing: .16em; color: #bdbdb5; margin: 0 0 10px; }
.bookdoor h3 { color: #fff; font-size: 21px; margin-bottom: 12px; }
.bookdoor p { color: #dcdcd5; font-size: 15px; max-width: 36em; margin: 0 0 1em; }
.bookdoor .scene { font-family: var(--hand); font-size: 17px; color: #fff; border-left: 3px solid var(--stop); padding-left: 16px; margin: 0 0 1.1em; line-height: 1.8; }
.bookdoor .btn { background: #fff; color: var(--ink); border-color: #fff; }
.bookdoor .src { font-size: 11.5px; color: #8e8e86; margin: 14px 0 0; }

/* 次に読む */
.nexts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 1.2em; }
.nexts a { border: 1px solid var(--line); background: var(--panel); padding: 18px 20px; text-decoration: none; display: block; transition: border-color .2s, transform .2s; }
.nexts a:hover { border-color: var(--ink); transform: translateY(-2px); }
.nexts small { display: block; font-size: 11.5px; letter-spacing: .14em; color: var(--mute); margin-bottom: 4px; }
.nexts b { font-family: var(--serif); font-size: 16.5px; line-height: 1.6; display: block; }
.nexts a.fwd { border-left: 5px solid var(--go); }
.nexts a.read small::after { content: "　✓ 読んだ"; color: var(--go); font-weight: 700; }

/* 右の柱 */
.side { position: sticky; top: calc(var(--head) + 28px); display: grid; gap: 16px; font-size: 14px; }
.side .box { padding: 20px; }
.side .box h3 { font-size: 11.5px; letter-spacing: .16em; color: var(--mute); }
.side .cname { margin: 0 0 8px; font-weight: 700; font-family: var(--serif); font-size: 15.5px; line-height: 1.6; }
.side .cname a { text-decoration: none; }
.side .cname a:hover { color: var(--go); }
.side .courseline { list-style: none; margin: 0; padding: 0; counter-reset: c; }
.side .courseline li { counter-increment: c; border-top: 1px dashed var(--line); }
.side .courseline a { display: grid; grid-template-columns: 24px 1fr; gap: 4px; padding: 6px 0; font-size: 13px; color: var(--mute); line-height: 1.6; text-decoration: none; }
.side .courseline a:hover { color: var(--ink); }
.side .courseline a::before { content: counter(c); font-family: var(--serif); }
.side .courseline li.now a { color: var(--ink); font-weight: 700; } .side .courseline li.now a::before { color: var(--go); }
.side .courseline li.read a::before { content: "✓"; color: var(--go); }
.side .box + .box { margin: 0; }

/* ── 一覧のページ（壁・テーマ・コース） ── */
.page-head { padding: 34px 0 40px; }
.page-head h1 { font-size: clamp(30px, 4.2vw, 50px); }
.page-head .lead { margin-top: 16px; }
.page-head .wallno { font-family: var(--serif); font-size: 14px; letter-spacing: .14em; color: var(--stop); margin: 0 0 6px; display: block; }
.arts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.artcard { background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--ink); padding: 22px 24px 20px; text-decoration: none; display: flex; flex-direction: column; gap: 10px; transition: border-color .2s, transform .2s; }
.artcard:hover { border-color: var(--ink); transform: translateY(-2px); }
.artcard .top { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--mute); letter-spacing: .06em; }
.artcard h3 { font-size: 19px; line-height: 1.6; }
.artcard ol { margin: 0; padding-left: 1.3em; font-size: 13.5px; color: var(--mute); line-height: 1.75; }
.artcard ol li::marker { color: var(--go); font-weight: 700; }
.artcard.read { border-top-color: var(--go); }
.artcard.read .top .rd::before { content: "✓ 読んだ　"; color: var(--go); font-weight: 700; }
.wallnav { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); margin-top: 28px; }
.wallnav a { padding: 12px 14px; text-decoration: none; font-size: 13.5px; border-right: 1px solid var(--line); background: var(--panel); line-height: 1.5; }
.wallnav a:last-child { border-right: 0; }
.wallnav a small { display: block; font-family: var(--serif); color: var(--mute); font-size: 11.5px; }
.wallnav a.on { background: var(--ink); color: #fff; } .wallnav a.on small { color: #bdbdb5; }
.wallnav a:not(.on):hover { background: var(--go-soft); }

.cpath { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--ink); counter-reset: cp; }
.cpath li { counter-increment: cp; border-bottom: 1px solid var(--line); }
.cpath a { display: grid; grid-template-columns: 56px 1fr 90px; gap: 16px; padding: 20px 8px; text-decoration: none; align-items: baseline; transition: background .2s; }
.cpath a:hover { background: var(--panel); }
.cpath a::before { content: counter(cp, decimal-leading-zero); font-family: var(--serif); font-size: 22px; color: var(--mute); }
.cpath li.read a::before { content: "✓"; color: var(--go); }
.cpath b { font-family: var(--serif); font-size: 18.5px; line-height: 1.6; display: block; }
.cpath .why { font-size: 13.5px; color: var(--mute); display: block; margin-top: 4px; }
.cpath .tm { font-size: 12.5px; color: var(--mute); text-align: right; }
.cbar { display: flex; align-items: center; gap: 14px; margin: 22px 0 0; max-width: 520px; }
.cbar .track { flex: 1; height: 6px; background: var(--line); position: relative; }
.cbar .track i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--go); width: 0; transition: width .5s; }
.cbar span { font-size: 13px; font-weight: 700; white-space: nowrap; }
.afterdone { margin-top: 28px; background: var(--go-soft); border-left: 5px solid var(--go); padding: 18px 22px; font-size: 15px; }
.afterdone b { color: var(--go); }

/* 図で分かる */
.figfilter { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 22px; }
.figfilter button { border: 1px solid var(--line); background: var(--panel); padding: 6px 14px; font-size: 13px; cursor: pointer; line-height: 1.6; }
.figfilter button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.figs.all { grid-template-columns: repeat(3, 1fr); gap: 22px; }
.figcard .im { cursor: zoom-in; border: 0; padding: 0; width: 100%; }
.figcard .from { font-size: 12.5px; display: grid; gap: 2px; border-top: 1px solid var(--line-soft); padding-top: 8px; margin-top: auto; }
.figcard .from a { border: 0; padding: 0; background: none; text-decoration: none; display: block; color: var(--mute); line-height: 1.6; }
.figcard .from a:hover { color: var(--go); transform: none; }
.figcard .from a::before { content: "→ "; font-family: var(--serif); }
.figcard[hidden] { display: none; }

/* 言葉を引く */
.wlayout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; padding-bottom: 80px; }
.wnav { position: sticky; top: calc(var(--head) + 24px); font-size: 13.5px; }
.wnav ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.wnav a { display: flex; justify-content: space-between; gap: 8px; text-decoration: none; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--mute); line-height: 1.6; }
.wnav a:hover { color: var(--ink); }
.wnav a.on { border-left-color: var(--ink); color: var(--ink); font-weight: 700; }
.wnav a small { font-size: 11.5px; }
.wfind { display: flex; border: 2px solid var(--ink); background: var(--panel); margin-bottom: 26px; max-width: 640px; }
.wfind input { flex: 1; border: 0; background: transparent; font: inherit; font-size: 16px; padding: 12px 16px; min-width: 0; }
.wfind input:focus { outline: none; }
.wfind span { display: flex; align-items: center; padding: 0 16px; font-size: 12.5px; color: var(--mute); border-left: 1px solid var(--line); white-space: nowrap; }
.wfind:focus-within { box-shadow: 5px 5px 0 var(--go); }
.wtheme { margin-bottom: 48px; }
.wtheme > h2 { font-size: 22px; padding-top: 14px; border-top: 3px solid var(--ink); margin-bottom: 6px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.wtheme > h2 small { font-family: var(--sans); font-size: 12px; color: var(--mute); font-weight: 400; }
.wtheme[hidden], .word[hidden] { display: none; }
.word { border-bottom: 1px solid var(--line); padding: 22px 4px 20px; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 8px 28px; transition: background .4s; }
.word:target { background: var(--go-soft); box-shadow: inset 5px 0 0 var(--go); padding-left: 16px; }
.word h3 { font-size: 19px; line-height: 1.6; }
.word h3 small { display: block; font-family: var(--sans); font-weight: 400; font-size: 12px; color: var(--mute); margin-top: 2px; }
.word dl { margin: 0; display: grid; gap: 8px; }
.word dt { font-size: 11.5px; letter-spacing: .14em; color: var(--mute); font-weight: 700; }
.word dd { margin: 0 0 4px; }
.word dd.one { font-size: 16px; font-weight: 500; }
.word dd.nt { font-size: 14.5px; color: #33332f; }
.word .wa { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.word .wa a { font-size: 13.5px; border: 1px solid var(--line); background: var(--panel); padding: 2px 10px; text-decoration: none; line-height: 1.7; }
.word .wa a:hover { border-color: var(--ink); }
.word .wa a small { color: var(--mute); margin-right: 6px; font-size: 11.5px; }
.word .wa .none2 { font-size: 13px; color: var(--mute); }
.wnone { padding: 24px 4px; color: var(--mute); }

/* A社の一年 */
.story { max-width: 820px; }
.story .people { background: var(--panel); border: 1px solid var(--line); padding: 18px 22px; font-size: 14.5px; margin: 0 0 30px; }
.story .people b { display: block; font-size: 12px; letter-spacing: .14em; color: var(--mute); margin-bottom: 4px; }
.story .part { margin: 48px 0 16px; font-size: 22px; padding-top: 14px; border-top: 3px solid var(--ink); }
.story .ch { display: grid; grid-template-columns: 76px 1fr; gap: 6px 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.story .ch .no { font-family: var(--serif); font-size: 13px; color: var(--mute); letter-spacing: .08em; padding-top: 4px; }
.story .ch h3 { font-size: 18.5px; margin-bottom: 6px; }
.story .ch p { margin: 0 0 10px; font-size: 15px; }
.story .ch .learn { display: flex; flex-wrap: wrap; gap: 6px; }
.story .ch .learn a { font-size: 13px; text-decoration: none; border: 1px solid var(--line); background: var(--panel); padding: 2px 10px; line-height: 1.7; }
.story .ch .learn a:hover { border-color: var(--go); color: var(--go); }

/* 本文だけのページ（本について など） */
.prose { max-width: 760px; padding-bottom: 80px; }
.prose h2 { font-size: 22px; margin: 44px 0 14px; padding-top: 14px; border-top: 3px solid var(--ink); }
.prose p, .prose li { font-size: 16px; }
.prose ul { padding-left: 1.2em; }
.kari-box { border: 1.5px dashed var(--stop); background: var(--stop-soft); padding: 14px 18px; font-size: 13.5px; margin: 0 0 28px; }

/* ── 型（やってみる） ── */
.kata-head { padding: 34px 0 30px; border: 0 !important; }
.kata-head h1 { font-size: clamp(26px, 3.6vw, 40px); }
.kata-head .lead { margin-top: 14px; }
.kata-head .meta a { color: inherit; }
.kata-main { padding: 10px 0 64px; border: 0 !important; }
.kata-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 34px; align-items: start; }
.kata-grid > *, .form, .field { min-width: 0; }
.form { display: grid; gap: 18px; }
.field { background: var(--panel); border: 1px solid var(--line); padding: 16px 18px 14px; transition: border-color .2s, box-shadow .2s; }
.field:focus-within { border-color: var(--ink); box-shadow: 4px 4px 0 rgba(16,16,16,.06); }
.field label, .field .lbl { display: flex; align-items: baseline; gap: 10px; font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.field .hint { font-size: 12.5px; color: var(--mute); margin: 0 0 8px; }
.field > textarea { min-height: 5.6em; overflow: hidden; }
.field > textarea, .field > input { width: 100%; border: 0; border-top: 1px dashed var(--line); background: transparent; font: inherit; font-size: 15px; line-height: 1.8; padding: 8px 0 0; resize: vertical; color: var(--ink); }
.field > textarea:focus, .field > input:focus { outline: none; }
.field.me { border-left: 5px solid var(--mute); }
.field.them { border-left: 5px solid var(--ink); }
.field.next { border-left: 5px solid var(--go); background: var(--go-soft); }
.field.gap { border-left: 5px solid var(--stop); }
.tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.tools .sp { flex: 1; }
.out { position: sticky; top: calc(var(--head) + 20px); display: grid; gap: 14px; }
.tabs { display: flex; border-bottom: 2px solid var(--ink); }
.tabs button { font-size: 14px; font-weight: 700; padding: 10px 18px; background: transparent; border: 2px solid transparent; border-bottom: 0; cursor: pointer; color: var(--mute); margin-bottom: -2px; line-height: 1.6; }
.tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--ink); background: var(--panel); }
.sheet { background: var(--panel); border: 1px solid var(--line); padding: 26px 28px; min-height: 420px; font-size: 14.5px; }
.sheet h4 { font-family: var(--serif); font-size: 18px; margin: 0 0 4px; }
.sheet .m { font-size: 12px; color: var(--mute); border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 14px; }
.sheet dl { margin: 0; display: grid; gap: 12px; }
.sheet dt { font-weight: 700; font-size: 12.5px; letter-spacing: .06em; display: flex; gap: 8px; align-items: center; }
.sheet dt::before { content: ""; width: 4px; height: 14px; background: var(--ink); flex: none; }
.sheet dt.c-me::before { background: var(--mute); } .sheet dt.c-gap::before { background: var(--stop); } .sheet dt.c-next::before { background: var(--go); }
.sheet dd { margin: 2px 0 0 12px; white-space: pre-wrap; overflow-x: auto; }
.sheet dd.empty { color: #a5a59d; }
.sheet .src { margin: 18px 0 0; font-size: 11.5px; color: var(--mute); border-top: 1px solid var(--line-soft); padding-top: 8px; }
pre.ai { background: #14181a; color: #e9efe9; padding: 22px 24px; margin: 0; font-family: "BIZ UDGothic", var(--sans); font-size: 13px; line-height: 1.75; white-space: pre-wrap; word-break: break-word; min-height: 420px; max-height: 70vh; overflow: auto; }
.toast { position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 11px 22px; font-size: 14px; opacity: 0; transition: .25s; pointer-events: none; z-index: 70; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.asks { display: grid; gap: 8px; font-size: 14px; }
.asks label { display: grid; grid-template-columns: 22px 1fr; gap: 4px; cursor: pointer; line-height: 1.7; }
.gtable { width: 100%; border-collapse: collapse; font-size: 14px; }
.gtable th, .gtable td { border: 1px solid var(--line); padding: 0; vertical-align: top; }
.gtable th { background: var(--ground); font-weight: 700; font-size: 12.5px; padding: 7px 9px; text-align: left; line-height: 1.5; }
.gtable td input, .gtable td textarea { width: 100%; border: 0; background: transparent; font: inherit; font-size: 14px; padding: 7px 9px; color: var(--ink); resize: vertical; line-height: 1.6; display: block; }
.gtable td textarea { min-height: 2.6em; overflow: hidden; }
.gtable th input { width: 100%; border: 0; background: transparent; font: inherit; font-weight: 700; font-size: 12.5px; padding: 0; }
.gtable td { min-width: 7.5em; }
.gtable td input:focus, .gtable td textarea:focus { outline: 2px solid var(--go); outline-offset: -2px; background: var(--go-soft); }
.gwrap { overflow-x: auto; max-width: 100%; }
.addrow { margin-top: 8px; }
.money-out { margin-top: 10px; font-size: 14px; background: var(--go-soft); border-left: 5px solid var(--go); padding: 10px 14px; }
.money-out b { font-family: var(--serif); font-size: 16px; }
.checks { display: grid; gap: 6px; font-size: 14px; }
.checks label { display: grid; grid-template-columns: 22px 1fr; gap: 4px; cursor: pointer; line-height: 1.7; }
.sheet table { width: calc(100% - 12px); border-collapse: collapse; font-size: 13px; margin: 4px 0 4px; }
.sheet table th, .sheet table td { border: 1px solid var(--line); padding: 4px 7px; text-align: left; vertical-align: top; white-space: pre-wrap; }
.sheet table th { background: var(--ground); }
.kata-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.kata-info .box p, .kata-info .box li { font-size: 14px; }
.kata-info .box ul { padding-left: 1.1em; }
.kata-use { margin-top: 18px; font-size: 13px; color: var(--mute); }
.saved { font-size: 12px; color: var(--mute); }
.saved.on { color: var(--go); }
.kata-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.kata-list a { background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--go); padding: 20px 22px; text-decoration: none; display: flex; flex-direction: column; gap: 6px; transition: border-color .2s, transform .2s; }
.kata-list a:hover { border-color: var(--ink); border-top-color: var(--go); transform: translateY(-2px); }
.kata-list .no { font-family: var(--serif); color: var(--go); font-weight: 700; font-size: 13px; letter-spacing: .1em; display: flex; justify-content: space-between; }
.kata-list .no small { font-family: var(--sans); font-weight: 700; color: var(--mute); letter-spacing: .04em; }
.kata-list h3 { font-size: 18px; }
.kata-list p { margin: 0; font-size: 13.5px; color: var(--mute); }
.kata-list .fr { margin-top: auto; padding-top: 8px; font-size: 12px; color: var(--mute); border-top: 1px dashed var(--line); }

/* ── 入ってくる動き ── */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .rise.d1 { animation-delay: .08s; } .rise.d2 { animation-delay: .16s; } .rise.d3 { animation-delay: .24s; } .rise.d4 { animation-delay: .32s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ── 幅 ── */
@media (max-width: 1080px) {
  .art { grid-template-columns: minmax(0, 1fr) 260px; } .toc { display: none; }
  .shelves { grid-template-columns: repeat(2, 1fr); } .figs, .figs.all { grid-template-columns: repeat(2, 1fr); }
  .nav { gap: 16px; font-size: 13.5px; }
  .kata-info { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .nav, .head .btn { display: none; }
  .menu { display: block; }
}
@media (max-width: 900px) {
  :root { --gut: 20px; --head: 60px; }
  .brand { font-size: 17px; } .brand small { display: none; }
  section { padding: 56px 0; }
  .hero2 .wrap, .art, .courses, .pair, .nexts, .cols, .kata-grid, .sec-head, .cards, .arts, .wlayout, .kata-list { grid-template-columns: 1fr; }
  .sec-head { gap: 14px; margin-bottom: 26px; } .sec-head .no { justify-self: start; padding-right: 24px; }
  .hero2 .wrap { gap: 0; } .hero2 .hero-text { padding: 44px 0 40px; }
    .starter { margin: 0 calc(-1 * var(--gut)); padding: 34px var(--gut) 30px; }
  .pair > div + div { border-left: 0; border-top: 2px solid var(--ink); }
  .qlist a { grid-template-columns: 1fr; gap: 2px; } .qlist .t { text-align: left; }
  .shelves { grid-template-columns: 1fr; }
  .shelf { display: grid; grid-template-columns: 34px 1fr; gap: 0 10px; padding: 16px 16px 14px; }
  .shelf .n { grid-row: 1 / 3; padding-top: 6px; } .shelf h3 { margin: 0 0 2px; font-size: 19px; } .shelf p { margin: 0 0 8px; } .shelf .cnt { grid-column: 2; }
  .inds { grid-template-columns: 1fr 1fr; } .inds button:nth-child(2) { border-right: 0; } .inds button:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .inds button { padding: 12px 14px 10px; font-size: 14px; }
  .figs, .figs.all { grid-template-columns: 1fr 1fr; gap: 12px; } .figs a, .figs .figcard { padding: 10px; }
  .side, .out, .wnav { position: static; }
  .wnav { display: none; }
  .art-head { padding: 26px 0 34px; }
  .answer ol { padding: 24px 18px 16px; } .answer li { font-size: 16px; grid-template-columns: 26px 1fr; }
  .stage { flex-direction: column; gap: 14px; min-height: 0; padding: 22px 16px; }
  .voices { width: 100%; } .voice-b { white-space: normal; }
  .gatecol { width: 100%; flex-direction: row; height: 20px; align-self: auto; }
  .gatecol .lab { margin: 0 8px 0 0; } .gatecol .w1, .gatecol .w2 { height: 10px; width: auto; }
  .memo { margin: 0; } .meet { margin: 0; }
  .memo::before, .meet::before { content: "↓"; right: auto; left: 50%; top: -24px; transform: translateX(-50%); }
  .stepfig:not([data-step="1"]) .voice-b.pass { transform: none; }
  .js .stepfig[data-step="1"] .gatecol, .js .stepfig[data-step="1"] .memo, .js .stepfig[data-step="1"] .meet,
  .js .stepfig[data-step="2"] .memo, .js .stepfig[data-step="2"] .meet, .js .stepfig[data-step="3"] .meet { display: none; }
  .stepfig .bar { padding: 10px 14px; }
  .quiz summary { grid-template-columns: 1fr; gap: 4px; padding: 14px 16px; } .quiz summary .op { justify-self: start; }
  .quiz .ans { padding: 0 16px 14px; }
  .tryit, .bookdoor { padding: 22px 20px; }
  .swap .pane { padding: 12px 16px 4px; } .swap .kari { padding: 10px 16px 12px; }
  .swap th { width: 7.5em; padding-right: 10px; }
  .case { padding: 16px 18px 4px; }
  .altview .hd, .altview .bd, .altview .src { padding-left: 16px; padding-right: 16px; } .altview .hd { flex-direction: column; gap: 6px; }
  .word { grid-template-columns: 1fr; }
  .cpath a { grid-template-columns: 40px 1fr; } .cpath .tm { grid-column: 2; text-align: left; }
  .wallnav { grid-template-columns: 1fr 1fr; } .wallnav a { border-bottom: 1px solid var(--line); }
  .story .ch { grid-template-columns: 1fr; }
  .foot .wrap { grid-template-columns: 1fr; } .foot nav { justify-content: flex-start; }
  .tbl table { font-size: 14px; } .tbl th, .tbl td { padding: 9px 11px; }
  .sheet { padding: 20px 18px; min-height: 0; }
  pre.ai { min-height: 0; }
  .body h2 { margin-top: 48px; }
}
@media (max-width: 420px) {
  .figs, .figs.all { grid-template-columns: 1fr; }
  .counts b { font-size: 25px; } .counts a { padding-left: 10px; }
  .find span { padding: 0 10px; }
}

@media print {
  .head, .foot, .consult, .crumb, .progress, .toc, .side, .menu, .tools, .form, .tabs, .kata-head .meta, .kata-info, .kata-use, .checks-box, .toast, .skip, .lightbox { display: none !important; }
  body { background: #fff; }
  .kata-grid { grid-template-columns: 1fr; } .out { position: static; }
  .sheet { border: 0; padding: 0; min-height: 0; }
  #pane-ai { display: none !important; } #pane-sheet { display: block !important; }
  section { padding: 0; }
  .art { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
.nexts a.soon { pointer-events: none; background: transparent; border-style: dashed; color: var(--mute); }
.nexts a.soon b { font-weight: 500; }
@media (max-width: 400px) { .brand { font-size: 15.5px; gap: 14px; } .menu summary { padding: 7px 10px; font-size: 12px; } }

/* 外へのリンク */
.ext { font-size: .82em; margin-left: 3px; opacity: .7; text-decoration: none; display: inline-block; }

/* 本について */
.bk-hero { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: start; padding: 30px 0 56px; }
.bk-cover img { width: 100%; box-shadow: 14px 14px 0 rgba(16,16,16,.08); border: 1px solid var(--line); }
.bk-info h1 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.3; }
.bk-sub { font-family: var(--serif); font-weight: 700; font-size: 19px; margin: 14px 0 0; }
.bk-buy { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 0; }
.bk-spec { margin: 30px 0 0; border-top: 3px solid var(--ink); display: grid; }
.bk-spec div { display: grid; grid-template-columns: 9em 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.bk-spec dt { color: var(--mute); font-size: 13px; } .bk-spec dd { margin: 0; }
.bk-body { padding-bottom: 80px; }
.bk-toc { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; margin-top: 16px; }
.bk-part h3 { font-size: 16px; margin-bottom: 6px; }
.bk-part ol { list-style: none; margin: 0; padding: 0; }
.bk-part li { display: grid; grid-template-columns: 4.2em 1fr; font-size: 14px; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.bk-part li span { color: var(--mute); font-size: 12.5px; }
.bk-links { display: flex; gap: 22px; flex-wrap: wrap; font-weight: 700; }
@media (max-width: 900px) { .bk-hero { grid-template-columns: 1fr; gap: 28px; } .bk-cover { max-width: 220px; } .bk-toc { grid-template-columns: 1fr; } .bk-spec div { grid-template-columns: 7.5em 1fr; } }
