/* before-ai-agent — 手を動かすためのハンズオン・リファレンス
   白 × 黒 × 青。高密度ドキュメント版（左サイドバー常設・小さめ文字）。 */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f8fa;
  --bg-side: #fbfcfd;
  --text: #14181f;
  --muted: #5b6573;
  --faint: #8b94a3;
  --border: #e4e8ee;
  --border-soft: #eef1f5;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-soft: #eff4ff;
  --term-bg: #0f1722;
  --ok: #16a34a;
  --new: #d6336c;
  --warn-bg: #fff8ed;
  --warn-bd: #fcd9a3;
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", "Hiragino Sans", "Yu Gothic UI", "Noto Sans JP", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Menlo", monospace;
  --sidebar-w: 270px;
  --content-maxw: 800px;
  --topbar-h: 46px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 14.5px;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.progress-bar {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: var(--accent); z-index: 300; transition: width 0.05s linear;
}

/* ── 上部バー（薄い） ── */
.topbar {
  position: sticky; top: 0; z-index: 200; height: var(--topbar-h);
  display: flex; align-items: center; gap: 12px; padding: 0 16px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar .brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 14.5px; letter-spacing: -0.02em; white-space: nowrap; }
.topbar .brand .mark { width: 24px; height: 24px; border-radius: 6px; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: var(--mono); font-size: 12px; font-weight: 700; }
.topbar .topbar-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.5px; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
.topbar .topbar-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.topbar .topbar-right a { color: var(--muted); text-decoration: none; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.topbar .topbar-right a:hover { color: var(--accent-dark); }
.sb-toggle { display: none; width: 32px; height: 32px; place-items: center; background: transparent; border: 1px solid var(--border); border-radius: 7px; cursor: pointer; color: var(--text); font-size: 16px; }

/* ── 全体レイアウト（サイドバー | 本文） ── */
.docs { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); align-items: start; }

/* ── 左サイドバー（ズラーッと全項目） ── */
.sidebar {
  position: sticky; top: var(--topbar-h);
  height: calc(100vh - var(--topbar-h));
  overflow-y: auto; overscroll-behavior: contain;
  border-right: 1px solid var(--border);
  background: var(--bg-side);
  padding: 10px 0 48px;
  font-size: 13px;
}
.sidebar::-webkit-scrollbar { width: 9px; }
.sidebar::-webkit-scrollbar-thumb { background: #d7dde6; border-radius: 5px; border: 2px solid var(--bg-side); }
.sidebar::-webkit-scrollbar-thumb:hover { background: #c2cbd6; }

.sb-group { margin: 0 0 4px; }
.sb-gh { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.8px; text-transform: uppercase; color: var(--faint); font-weight: 700; padding: 13px 16px 5px; }
.sb-gh .gn { color: var(--accent); }
.sb-link { display: flex; align-items: center; gap: 7px; padding: 4px 16px 4px 18px; color: #424b58; text-decoration: none; line-height: 1.4; border-left: 2px solid transparent; }
.sb-link:hover { background: #eef2f7; color: var(--text); }
.sb-link.active { color: var(--accent-dark); font-weight: 700; background: var(--accent-soft); border-left-color: var(--accent); }
.sb-link .ix { font-family: var(--mono); font-size: 10.5px; color: var(--faint); min-width: 16px; }
.sb-link.active .ix { color: var(--accent); }
.sb-link .sb-new { font-family: var(--mono); font-size: 9px; font-weight: 800; letter-spacing: 0.5px; color: #fff; background: var(--new); border-radius: 4px; padding: 1px 4px; margin-left: auto; }
.sb-foot { margin: 16px 16px 0; padding-top: 14px; border-top: 1px solid var(--border); font-size: 11.5px; color: var(--faint); line-height: 1.6; }
.sb-foot a { color: var(--muted); }

/* ── 本文カラム ── */
.content { min-width: 0; padding: 0 44px; }
.content .page, .content .hero, .content > .home-intro { max-width: var(--content-maxw); margin-left: 0; }
.page { padding: 30px 0 64px; }

.eyebrow { font-family: var(--mono); font-size: 10.5px; letter-spacing: 1.3px; text-transform: uppercase; color: var(--accent); display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.eyebrow .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

h1.page-title { font-weight: 800; font-size: 27px; line-height: 1.3; letter-spacing: -0.02em; margin: 0 0 10px; }
.lead { font-size: 15px; line-height: 1.65; color: var(--muted); margin: 0 0 14px; max-width: 44em; }

h2 { font-weight: 800; font-size: 19px; line-height: 1.35; letter-spacing: -0.01em; margin: 38px 0 11px; scroll-margin-top: 60px; padding-top: 3px; }
h3 { font-weight: 700; font-size: 15.5px; margin: 24px 0 8px; scroll-margin-top: 60px; }

p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.72; }
.content a { color: var(--accent-dark); text-decoration: none; border-bottom: 1px solid rgba(37,99,235,0.28); }
.content a:hover { border-bottom-color: var(--accent); }
.content .sb-link, .content .card, .content .roadmap a, .content .prevnext a, .content .tier { border-bottom: none; }

p code, li code, td code, h3 code, .desc code, .lead code { background: var(--bg-soft); padding: 1px 5px; border-radius: 4px; font-size: 0.86em; font-family: var(--mono); border: 1px solid var(--border); color: var(--accent-dark); }

ul, ol { margin: 0 0 14px; padding-left: 0; list-style: none; }
ul li, ol li { position: relative; padding-left: 22px; margin: 5px 0; font-size: 14.5px; line-height: 1.66; }
ul li::before { content: ""; position: absolute; left: 5px; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
ol { counter-reset: li; }
ol li { counter-increment: li; padding-left: 27px; }
ol li::before { content: counter(li); position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); font-family: var(--mono); font-size: 10.5px; font-weight: 700; display: grid; place-items: center; }
li ul, li ol { margin: 4px 0 0; }

strong { font-weight: 700; }
.content hr { border: none; border-top: 1px solid var(--border); margin: 32px 0; }

/* ── コピーできるコマンド（主役） ── */
.run { display: flex; align-items: stretch; margin: 11px 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--bg-soft); }
.run code { flex: 1; font-family: var(--mono); font-size: 13px; padding: 10px 13px; color: var(--text); overflow-x: auto; white-space: pre; background: none; border: none; }
.run .copy { flex: none; border: none; border-left: 1px solid var(--border); background: #fff; color: var(--muted); font-family: var(--sans); font-size: 11.5px; font-weight: 700; padding: 0 14px; cursor: pointer; white-space: nowrap; }
.run .copy:hover { color: var(--accent-dark); background: var(--accent-soft); }
.run .copy.done { color: var(--ok); }
.run.mac code::before { content: "$ "; color: var(--faint); }
.run.win code::before { content: "PS> "; color: var(--faint); }

/* ── やってみる（ハンズオン手順カード） ── */
.try { border: 1px solid var(--border); border-radius: 11px; padding: 4px 18px 14px; margin: 18px 0; background: #fff; box-shadow: 0 1px 2px rgba(20,24,31,0.03); }
.try > .try-h { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.4px; color: var(--accent-dark); background: var(--accent-soft); padding: 4px 11px; border-radius: 0 0 8px 8px; margin: 0 0 11px -18px; }
.try h3 { margin-top: 14px; }
.try p { font-size: 14px; }

/* ── つまずきメモ ── */
.note { display: block; margin: 15px 0; padding: 1px 0 1px 14px; border-left: 2px solid var(--accent); font-size: 13.5px; line-height: 1.7; }
.note .tag { display: block; font-size: 12px; font-weight: 700; color: var(--accent-dark); margin-bottom: 2px; }
.note p { margin: 0; font-size: 13.5px; }
.note.warn { border-left-color: #e0a64e; }
.note.warn .tag { color: #b45309; }

/* ── コマンド早見表 ── */
.cmd-grid { display: grid; gap: 0; margin: 16px 0; }
.cmd { padding: 10px 2px; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: 96px 1fr; gap: 2px 14px; align-items: baseline; }
.cmd:last-child { border-bottom: none; }
.cmd .key { font-family: var(--mono); font-weight: 700; color: var(--accent-dark); font-size: 14px; grid-row: span 2; }
.cmd .what { font-weight: 700; font-size: 14px; }
.cmd .desc { color: var(--muted); font-size: 13px; line-height: 1.55; }

/* ── ターミナル（出力を見せる用） ── */
.terminal { background: var(--term-bg); color: #d7dde6; border-radius: 9px; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; margin: 14px 0; overflow: hidden; border: 1px solid rgba(255,255,255,0.06); }
.terminal .chrome { display: flex; align-items: center; gap: 7px; padding: 8px 13px; background: #1a2533; border-bottom: 1px solid rgba(255,255,255,0.07); }
.terminal .chrome .dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal .chrome .red { background: #ff5f57; }
.terminal .chrome .yel { background: #febc2e; }
.terminal .chrome .grn { background: #28c840; }
.terminal .chrome .name { flex: 1; text-align: center; font-family: var(--sans); font-size: 10.5px; color: rgba(255,255,255,0.38); }
.terminal .body { padding: 13px 16px; white-space: pre; overflow-x: auto; }
.terminal .body .pr { color: #7f8ea3; }
.terminal .body .cm { color: #6cb6ff; }
.terminal .body .note { display: inline; padding: 0; margin: 0; background: none; border: none; color: #5f6f82; }
.terminal .body .out { color: #aeb8c4; }
.terminal .body .ok { color: #6ee7a8; }
.terminal .body .er { color: #ff8a8a; }

/* ── コマ送り（フィルムストリップ） ── */
.strip { margin: 16px 0; }
.frame { position: relative; padding-left: 30px; padding-bottom: 13px; }
.frame::before { content: ""; position: absolute; left: 10px; top: 22px; bottom: -2px; width: 2px; background: var(--border); }
.frame:last-child::before { display: none; }
.frame > .n { position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--mono); font-size: 10.5px; font-weight: 700; display: grid; place-items: center; }
.frame .cap { display: flex; align-items: center; gap: 9px; min-height: 22px; margin: 0 0 7px; flex-wrap: wrap; }
.frame .cap .lbl { font-weight: 700; font-size: 13.5px; line-height: 1.4; }
.frame .cap .copy { margin-left: auto; flex: none; border: 1px solid var(--border); background: #fff; color: var(--muted); font-family: var(--sans); font-size: 10.5px; font-weight: 700; padding: 3px 10px; border-radius: 6px; cursor: pointer; white-space: nowrap; }
.frame .cap .copy:hover { color: var(--accent-dark); border-color: var(--accent); background: var(--accent-soft); }
.frame .cap .copy.done { color: var(--ok); border-color: var(--ok); }
.frame .terminal { margin: 0; }
.frame.is-do .terminal { box-shadow: 0 0 0 2px var(--accent-soft); }

.terminal .body .typed { color: #eef3fa; }
.terminal .body b { color: #eef3fa; font-weight: 600; }

/* ── テーブル ── */
.tbl { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 13.5px; }
.tbl th, .tbl td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: top; line-height: 1.55; }
.tbl th { font-size: 11.5px; color: var(--muted); border-bottom: 2px solid var(--text); white-space: nowrap; }
.tbl td:first-child { font-weight: 700; }
.tbl tr:last-child td { border-bottom: none; }
.tbl code { font-size: 0.92em; }
.tbl-wrap { overflow-x: auto; margin: 16px 0; }
.tbl-wrap .tbl { margin: 0; }

/* ── カードグリッド ── */
.cards { display: grid; gap: 10px; margin: 18px 0; }
@media (min-width: 720px) { .cards.two { grid-template-columns: 1fr 1fr; } .cards.three { grid-template-columns: 1fr 1fr 1fr; } }
.card { display: block; background: #fff; border: 1px solid var(--border); border-radius: 11px; padding: 14px 16px; text-decoration: none; color: var(--text); transition: border-color 0.15s, transform 0.12s, box-shadow 0.15s; }
.card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 24px -16px rgba(37,99,235,0.4); }
.card .num { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.5px; color: var(--accent); }
.card .t { display: block; font-size: 15px; font-weight: 700; margin: 4px 0 4px; letter-spacing: -0.01em; }
.card .d { color: var(--muted); font-size: 12.5px; line-height: 1.55; }

/* ── 番号つきロードマップ（全体像） ── */
.roadmap { list-style: none; margin: 18px 0; padding: 0; position: relative; }
.roadmap li { position: relative; margin: 0; padding: 0; }
.roadmap li::before { content: ""; position: absolute; left: 14px; top: 32px; bottom: -2px; width: 2px; background: var(--border); }
.roadmap li:last-child::before { display: none; }
.roadmap a { display: grid; grid-template-columns: 30px 1fr; column-gap: 13px; row-gap: 1px; align-items: center; text-decoration: none; color: var(--text); padding: 8px 12px 8px 0; border-radius: 9px; }
.roadmap a:hover { background: var(--bg-soft); }
.roadmap .rn { grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--mono); font-weight: 700; font-size: 12px; display: grid; place-items: center; position: relative; z-index: 1; }
.roadmap a:hover .rn { background: var(--accent-dark); }
.roadmap .rt { font-weight: 700; font-size: 14.5px; align-self: end; }
.roadmap .rt .tag { font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: 0.5px; color: #fff; background: var(--new); padding: 1px 5px; border-radius: 4px; margin-left: 8px; }
.roadmap .rt .tag.start { background: var(--text); }
.roadmap .rd { color: var(--muted); font-size: 12.5px; line-height: 1.5; align-self: start; }
.roadmap li.start .rn { background: var(--text); }

/* ── 章まとまり見出し（ロードマップ内グループ） ── */
.rm-group { font-family: var(--mono); font-size: 11px; letter-spacing: 0.8px; text-transform: uppercase; color: var(--faint); font-weight: 700; margin: 22px 0 4px; padding-left: 2px; }
.rm-group:first-of-type { margin-top: 6px; }

/* ── 前後ナビ ── */
.prevnext { display: grid; gap: 10px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--border); }
@media (min-width: 640px) { .prevnext { grid-template-columns: 1fr 1fr; } }
.prevnext a { display: block; padding: 13px 15px; border: 1px solid var(--border); border-radius: 9px; text-decoration: none; color: var(--text); background: #fff; }
.prevnext a:hover { border-color: var(--accent); }
.prevnext .lbl { font-family: var(--mono); font-size: 9.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.prevnext .ttl { display: block; margin-top: 4px; font-weight: 700; font-size: 14px; }
.prevnext a.next { text-align: right; }

/* ── ヒーロー（トップ） ── */
.hero { padding: 30px 0 4px; }
.hero-logo { display: flex; align-items: center; gap: 13px; margin: 0 0 22px; font-weight: 800; font-size: 26px; letter-spacing: -0.03em; color: var(--text); }
.hero-logo .mark { width: 46px; height: 46px; border-radius: 12px; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: var(--mono); font-size: 21px; font-weight: 700; }
.hero-logo .wm { line-height: 1; }
@media (max-width: 560px) { .hero-logo { font-size: 21px; gap: 10px; } .hero-logo .mark { width: 38px; height: 38px; border-radius: 10px; font-size: 17px; } }
.hero .tagline { font-family: var(--mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); margin-bottom: 11px; }
.hero h1 { font-weight: 800; font-size: 31px; line-height: 1.25; letter-spacing: -0.03em; margin: 0 0 13px; }
.hero .sub { font-size: 15px; line-height: 1.7; color: #3b424c; max-width: 42em; margin: 0 0 10px; }
.hero .sub strong { color: var(--text); font-weight: 700; }
.hero-img { width: 100%; margin: 20px 0 6px; border: 1px solid var(--border); border-radius: 13px; overflow: hidden; background: var(--bg-soft); }
.hero-img img { display: block; width: 100%; height: auto; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 6px; }
.btn { display: inline-block; text-decoration: none; font-weight: 700; font-size: 14px; padding: 11px 20px; border-radius: 8px; border-bottom: none !important; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); }
.btn.ghost { color: var(--text); border: 1px solid var(--border); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent-dark); }
.hero-sub-link { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.hero-sub-link a { color: var(--accent-dark); font-weight: 700; }

/* ── ページ内目次 ── */
.toc { padding: 13px 0; margin: 18px 0; font-size: 13px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.toc .label { font-size: 11px; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.toc ul { margin: 0; }
.toc li { padding-left: 14px; margin: 4px 0; }
.toc li::before { content: ""; left: 0; top: 9px; width: 4px; height: 4px; background: var(--faint); }

/* ── コールアウト ── */
.callout { margin: 22px 0; padding: 2px 0 2px 15px; border-left: 3px solid var(--accent); font-size: 14.5px; line-height: 1.7; }
.callout .label { display: block; font-size: 11.5px; color: var(--accent-dark); font-weight: 800; margin-bottom: 3px; }
.callout p:last-child { margin-bottom: 0; }
.callout.tip { border-left-color: var(--ok); }
.callout.tip .label { color: var(--ok); }

/* ── newsletter CTA（本文末） ── */
.news { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 18px; margin: 34px 0 0; border: 1px solid var(--border); border-radius: 11px; background: var(--bg-soft); }
.news .news-txt { flex: 1; min-width: 200px; }
.news .news-txt strong { display: block; color: var(--text); font-size: 14px; margin-bottom: 2px; }
.news .news-txt span { color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.news .news-btn { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; padding: 10px 18px; border-radius: 8px; font-weight: 700; font-size: 13px; white-space: nowrap; margin: 0; border-bottom: none !important; }
.news .news-btn:hover { background: var(--accent-dark); color: #fff; }

/* ── 本文末フッター ── */
.content-foot { margin-top: 40px; padding: 22px 0 60px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12.5px; line-height: 1.7; max-width: var(--content-maxw); }
.content-foot a { color: var(--muted); }
.content-foot .colophon { color: var(--faint); margin: 8px 0 0; }
.content-foot .copy { margin-top: 12px; font-size: 11.5px; color: var(--faint); }

/* ── セクション折りたたみ（commands / faq） ── */
article.page.collapsible h2.sec-toggle { cursor: pointer; padding-right: 32px; position: relative; transition: color 0.12s; }
article.page.collapsible h2.sec-toggle:hover { color: var(--accent-dark); }
article.page.collapsible h2.sec-toggle::after { content: "›"; position: absolute; right: 6px; top: 50%; transform: translateY(-60%) rotate(90deg); color: var(--accent); font-size: 23px; line-height: 1; transition: transform 0.18s; }
article.page.collapsible h2.sec-toggle.open::after { transform: translateY(-60%) rotate(-90deg); }
article.page.collapsible .sec-body { display: none; }
article.page.collapsible .sec-body.open { display: block; animation: secIn 0.18s ease; }
@keyframes secIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* コマンドの由来バッジ */
.abbr { font-family: var(--mono); font-size: 10.5px; color: var(--faint); }
.cmd .abbr { display: inline-block; margin-bottom: 3px; }

/* ── 100本ノック ── */
.knock { border-bottom: 1px solid var(--border); }
.knock summary { display: flex; align-items: baseline; gap: 11px; cursor: pointer; padding: 10px 0; list-style: none; }
.knock summary::-webkit-details-marker { display: none; }
.knock .kn { font-family: var(--mono); font-size: 11.5px; font-weight: 700; color: var(--accent); min-width: 34px; }
.knock .task { flex: 1; font-size: 14.5px; line-height: 1.55; }
.knock .rev { flex: none; font-size: 10.5px; font-weight: 700; color: var(--muted); border: 1px solid var(--border); border-radius: 6px; padding: 3px 10px; white-space: nowrap; }
.knock details[open] .rev { color: var(--accent-dark); border-color: var(--accent); }
.knock .a { padding: 0 0 12px 46px; }
.knock .a code { font-family: var(--mono); font-size: 13px; background: var(--term-bg); color: #d7dde6; padding: 7px 12px; border-radius: 6px; display: inline-block; }

/* ── 土台→その先の立て付け図 ── */
.tiers { margin: 16px 0 4px; }
.tier { display: grid; grid-template-columns: 82px 1fr; gap: 16px; align-items: center; padding: 13px 16px; border: 1px solid var(--border); border-radius: 11px; background: var(--bg-soft); }
.tier.accent { border-color: #cfe0ff; background: var(--accent-soft); }
.tier .tier-k { font-family: var(--mono); font-weight: 700; font-size: 12.5px; color: var(--muted); text-align: center; letter-spacing: 0.4px; }
.tier.accent .tier-k { color: var(--accent-dark); }
.tier .tier-b strong { display: block; font-size: 14px; margin-bottom: 3px; }
.tier .tier-b p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.tier-arrow { text-align: center; color: var(--faint); font-size: 12px; margin: 7px 0; }

/* ── キーキャップ表示 ── */
kbd { font-family: var(--sans); font-size: 11.5px; font-weight: 700; color: var(--text); background: #fff; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; white-space: nowrap; }

/* ── サイドバー遮光オーバーレイ（モバイル） ── */
.sb-scrim { display: none; position: fixed; inset: var(--topbar-h) 0 0 0; background: rgba(15,23,34,0.4); z-index: 140; }

/* ── レスポンシブ ── */
@media (max-width: 980px) {
  :root { --sidebar-w: 250px; }
  .content { padding: 0 28px; }
}
@media (max-width: 800px) {
  .sb-toggle { display: inline-grid; }
  .topbar .topbar-tag { display: none; }
  .docs { display: block; }
  .sidebar {
    position: fixed; top: var(--topbar-h); left: 0; bottom: 0; width: 280px; z-index: 150;
    height: auto; transform: translateX(-100%); transition: transform 0.22s ease;
    box-shadow: 2px 0 18px rgba(15,23,34,0.12);
  }
  body.sb-open .sidebar { transform: none; }
  body.sb-open .sb-scrim { display: block; }
  .content { padding: 0 20px; }
  h1.page-title { font-size: 24px; }
  .hero h1 { font-size: 26px; }
  .hero { padding: 22px 0 4px; }
}
@media (max-width: 480px) {
  body { font-size: 14px; }
  .content { padding: 0 16px; }
}
