/* ================================================================
   トップの入口・合格作戦本部・ゲーム道場・復習BOX・超絶チート技・PDF教材ライブラリ（2026-11-04 作り直し）
   ユーザー指摘「AI臭丸出し」「みにくい」「ゲームが安っぽい」を受けて：
   - 左の色帯・絵文字アイコン・グラデーション・ガラス・影の重いカードは使わない
   - 罫線（1px）と余白と書体の格差で組む。見出しと数字は明朝。色は墨と朱だけ（面には塗らない）
   - 一覧はカードのグリッドではなく、目次のような行組み。絵は Codex のイラストだけ
   - ゲームは「赤ペンの採点」：正解は朱の○、まちがいは朱の✕を手書きのように引く。評価は 秀・優・良・可 の印
   ================================================================ */
:root {
  --mc: 'Shippori Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', 'YuMincho', serif;
  --shu: #c8402b;
  --shu-bg: #fbeee9;
  --rule: color-mix(in srgb, var(--ink) 16%, transparent);
  --rule2: color-mix(in srgb, var(--ink) 9%, transparent);
}
:root[data-theme='dark'] { --shu: #ff8a70; --shu-bg: #3a201c; }
@media (prefers-color-scheme: dark) { :root[data-theme='auto'] { --shu: #ff8a70; --shu-bg: #3a201c; } }

/* ---------- 共通の部品 ---------- */
.ed { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.ed-h { font-family: var(--mc); font-weight: 800; font-size: clamp(1.32rem, 5.4vw, 1.7rem); line-height: 1.4; margin: 0 0 4px; letter-spacing: 0.02em; }
.ed-sub { margin: 0 0 14px; color: var(--mute); font-size: 0.9rem; line-height: 1.7; }
.ed-sec { padding: 30px 0 6px; }
.ed-sec + .ed-sec { border-top: 1px solid var(--rule); margin-top: 18px; }
.ed-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.ed-list > li { border-bottom: 1px solid var(--rule); }
.ed-row { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 2px; color: var(--ink); text-decoration: none; width: 100%; background: none; border: 0; text-align: left; font: inherit; cursor: pointer; }
.ed-row:hover .ed-t { color: var(--shu); }
.ed-row > img, .ed-thumb { width: 84px; height: 56px; object-fit: cover; border-radius: 4px; border: 1px solid var(--rule); background: var(--bg2); }
.ed-row > img.sq { width: 60px; height: 60px; }
.ed-num { font-family: var(--mc); font-weight: 800; font-size: 1.5rem; line-height: 1; color: var(--shu); min-width: 1.6em; text-align: center; }
.ed-m { display: grid; gap: 2px; min-width: 0; }
.ed-t { font-weight: 700; font-size: 1.02rem; line-height: 1.45; transition: color 0.15s; }
.ed-d { font-size: 0.84rem; line-height: 1.6; color: var(--ink2); }
.ed-s { font-size: 0.76rem; color: var(--mute); }
.ed-go { color: var(--mute); font-size: 1.1rem; }
.ed-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 10px; border: 1px solid var(--ink); background: var(--ink); color: var(--bg); font-weight: 700; text-decoration: none; cursor: pointer; font-size: 0.98rem; }
.ed-btn:hover { background: var(--shu); border-color: var(--shu); color: #fff; }
.ed-btn.ghost { background: transparent; color: var(--ink); }
.ed-btn.ghost:hover { border-color: var(--shu); color: var(--shu); background: transparent; }
.ed-btn .ic { width: 18px; height: 18px; }
.ed-btn:disabled { opacity: 0.45; cursor: default; background: var(--ink); color: var(--bg); border-color: var(--ink); }
.ed-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ed-note { margin: 18px 0 30px; font-size: 0.78rem; color: var(--mute); line-height: 1.7; }
.ed-art { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; border: 1px solid var(--rule); background: var(--bg2); }
.en { font-family: var(--en); }

/* ---------- ページの頭（絵＋明朝の見出し） ---------- */
.ed-hd { max-width: 760px; margin: 0 auto; padding: 12px 16px 0; }
.ed-hd .ed-art { margin-bottom: 18px; }
.ed-hd h1 { font-family: var(--mc); font-weight: 800; font-size: clamp(1.7rem, 7.6vw, 2.5rem); line-height: 1.35; margin: 0 0 10px; letter-spacing: 0.02em; }
.ed-hd h1 em { font-style: normal; color: var(--shu); }
.ed-hd p { margin: 0; color: var(--ink2); line-height: 1.85; font-size: 0.96rem; }
.ed-crumb { font-size: 0.78rem; color: var(--mute); margin: 0 0 10px; }
.ed-crumb a { color: var(--mute); }

/* ---------- 自分の記録（1行） ---------- */
.me-line { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-top: 18px; }
.me-lv { font-family: var(--mc); font-weight: 800; line-height: 1; text-align: center; grid-row: span 2; }
.me-lv small { display: block; font-size: 0.7rem; color: var(--mute); letter-spacing: 0.1em; }
.me-lv b { font-size: 2rem; }
.me-t { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 0.9rem; }
.me-t b { font-family: var(--mc); font-size: 1.02rem; }
.me-t small { color: var(--mute); }
.me-bar { display: block; height: 3px; background: var(--rule2); position: relative; }
.me-bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--shu); transition: width 0.6s; }
.me-k { grid-column: 1 / -1; display: flex; gap: 18px; font-size: 0.84rem; color: var(--ink2); padding-top: 6px; }
.me-k b { font-family: var(--mc); font-size: 1.1rem; color: var(--ink); margin: 0 2px; }
.me-k a { color: var(--ink2); }
.me-k a.has b { color: var(--shu); }

/* ---------- トップ：入口 ---------- */
.top-in { max-width: 760px; margin: 0 auto; padding: 22px 16px 4px; }
.top-in .ti-k { font-size: 0.8rem; color: var(--mute); letter-spacing: 0.06em; margin: 0 0 8px; }
.top-in h1 { font-family: var(--mc); font-weight: 800; font-size: clamp(1.75rem, 7.8vw, 2.9rem); line-height: 1.32; margin: 0; letter-spacing: 0.02em; }
.top-in h1 small { display: block; font-family: var(--jp); font-weight: 700; font-size: 0.78rem; color: var(--mute); letter-spacing: 0.04em; margin-bottom: 6px; }
.top-in h1 em { font-style: normal; color: var(--shu); }
.top-in .ti-l { margin: 12px 0 0; font-size: 0.95rem; line-height: 1.85; color: var(--ink2); }
.top-in .ti-l b { color: var(--ink); }
.ti-ask { font-family: var(--mc); font-weight: 800; font-size: 1.08rem; margin: 22px 0 6px; }
.ti-other { display: inline-block; margin: 10px 0 0; font-size: 0.86rem; color: var(--ink2); }
.ti-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 22px 0 0; padding: 0; list-style: none; }
.ti-stats li { text-align: center; padding: 10px 0; display: grid; gap: 2px; }
.ti-stats li + li { border-left: 1px solid var(--rule2); }
.ti-stats b { font-family: var(--mc); font-weight: 800; font-size: 1.2rem; line-height: 1.2; }
.ti-stats small { font-size: 0.7rem; color: var(--mute); }
.me-strip { max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* ---------- ゲーム道場 ---------- */
.boss-row .ed-row > img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.boss-st { display: inline-flex; gap: 1px; vertical-align: -2px; margin-left: 6px; }
.boss-st svg { width: 13px; height: 13px; }
.boss-st .on { fill: var(--shu); stroke: var(--shu); }
.boss-st .off { fill: none; stroke: var(--rule); }
.boss-lv { font-size: 0.72rem; color: var(--shu); font-weight: 700; letter-spacing: 0.04em; }
.rush-cats { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--rule); margin-top: 6px; }
.rush-cats button { flex: 1 1 33%; min-height: 46px; background: none; border: 0; border-bottom: 1px solid var(--rule2); border-right: 1px solid var(--rule2); color: var(--ink); font-weight: 700; font-size: 0.86rem; cursor: pointer; }
.rush-cats button:hover { color: var(--shu); }

/* ---------- ゲームの舞台（全画面・紙の答案） ---------- */
html.dj-open, html.dj-open body { overflow: hidden; }
.dj-stage { position: fixed; inset: 0; z-index: 120; background: var(--bg); display: flex; flex-direction: column; }
.dj-top { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 12px; padding-top: max(8px, env(safe-area-inset-top)); border-bottom: 1px solid var(--rule); background: var(--bg); }
.dj-x { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--rule); background: none; color: var(--ink); font-size: 1rem; cursor: pointer; }
.dj-tt { flex: 1; min-width: 0; font-family: var(--mc); font-weight: 800; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dj-hud { flex: none; font-family: var(--mc); font-weight: 800; font-size: 0.95rem; display: flex; align-items: center; gap: 4px; }
.dj-hud svg { width: 18px; height: 18px; }
.dj-hud .on { fill: var(--shu); stroke: var(--shu); }
.dj-hud .off { fill: none; stroke: var(--rule); }
.dj-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 14px 16px max(28px, env(safe-area-inset-bottom)); width: 100%; max-width: 680px; margin: 0 auto; }
.dj-load { text-align: center; color: var(--mute); padding: 48px 0; font-family: var(--mc); }
.dj-tm { height: 2px; background: var(--rule2); margin: 10px 0 14px; position: relative; overflow: hidden; }
.dj-tm i { position: absolute; inset: 0 auto 0 0; width: 100%; background: var(--ink); transition: width 0.1s linear; }
.dj-tm i.low { background: var(--shu); }
.dj-tm.big { height: 4px; }
/* ボス */
.dj-boss { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--rule); position: relative; }
.dj-bimg { position: relative; width: 112px; height: 112px; }
.dj-bimg img { width: 112px; height: 112px; object-fit: cover; border-radius: 50%; border: 1px solid var(--rule); background: var(--bg2); }
.dj-slash { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.dj-slash path { fill: none; stroke: var(--shu); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 160; stroke-dashoffset: 160; }
.dj-slash.go path { animation: dj-draw 0.28s ease-out forwards; }
.dj-dmg { position: absolute; right: -6px; top: 4px; font-family: var(--mc); font-weight: 800; font-size: 1.5rem; color: var(--shu); opacity: 0; pointer-events: none; }
.dj-dmg.go { animation: dj-float 0.9s ease-out; }
.dj-bn { font-family: var(--mc); font-weight: 800; font-size: 1.08rem; line-height: 1.4; }
.dj-bl { font-size: 0.74rem; color: var(--mute); }
.dj-hp { height: 6px; background: var(--rule2); margin: 8px 0 4px; position: relative; }
.dj-hp i { position: absolute; inset: 0 auto 0 0; background: var(--shu); transition: width 0.45s cubic-bezier(.2, .9, .3, 1); }
.dj-hpn { font-family: var(--mc); font-size: 0.8rem; color: var(--ink2); }
.dj-combo { min-height: 1.4em; margin: 2px 0 0; font-family: var(--mc); font-weight: 800; color: var(--shu); font-size: 0.92rem; }
/* 問題と選択肢（答案用紙） */
.dj-src { margin: 0 0 6px; font-size: 0.74rem; color: var(--mute); }
.dj-qt { font-family: var(--en), var(--jp); font-size: 1.08rem; line-height: 1.8; margin: 0 0 14px; }
.dj-qt .blank { display: inline-block; min-width: 3.4em; border-bottom: 1.5px solid var(--ink); }
.dj-qt u { text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.dj-ask { font-family: var(--mc); font-weight: 800; margin: 4px 0 12px; font-size: 1.05rem; line-height: 1.6; }
.dj-big { font-family: var(--en); font-size: clamp(1.45rem, 6.4vw, 2.1rem); font-weight: 600; text-align: center; margin: 22px 0; line-height: 1.35; }
.dj-ch { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.dj-ch button { position: relative; display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center; width: 100%; min-height: 56px; padding: 10px 6px; border: 0; border-bottom: 1px solid var(--rule); background: none; color: var(--ink); text-align: left; font: 500 1.02rem/1.55 var(--en), var(--jp); cursor: pointer; }
.dj-ch button::before { content: attr(data-l); font-family: var(--mc); font-weight: 800; font-size: 0.95rem; color: var(--mute); text-align: center; }
.dj-ch button:not(:disabled):hover { background: var(--rule2); }
.dj-ch button:disabled { cursor: default; color: var(--ink); }
.dj-ch button.dim { color: var(--mute); }
.dj-mark { position: absolute; left: -4px; top: 50%; width: 44px; height: 44px; margin-top: -22px; pointer-events: none; overflow: visible; }
.dj-mark path, .dj-mark circle { fill: none; stroke: var(--shu); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 140; stroke-dashoffset: 140; animation: dj-draw 0.35s ease-out forwards; }
.dj-mark path + path { animation-delay: 0.14s; }
@keyframes dj-draw { to { stroke-dashoffset: 0; } }
@keyframes dj-float { 0% { opacity: 0; transform: translateY(8px); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-26px); } }
.dj-two { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.dj-two button { position: relative; padding: 18px 10px 18px 46px; min-height: 76px; border: 0; border-bottom: 1px solid var(--rule); background: none; color: var(--ink); text-align: left; font: 500 1.08rem/1.6 var(--en); cursor: pointer; }
.dj-two button:not(:disabled):hover { background: var(--rule2); }
.dj-two .dj-mark { left: 2px; }
.dj-fb { margin-top: 16px; padding: 14px 0 0; border-top: 1px solid var(--ink); display: grid; gap: 10px; }
.dj-v { margin: 0; font-family: var(--mc); font-weight: 800; font-size: 1.08rem; }
.dj-v.ok { color: var(--shu); }
.dj-v.ng { color: var(--ink); }
.dj-ex, .dj-tr { margin: 0; font-size: 0.92rem; line-height: 1.85; color: var(--ink2); }
.dj-ex b, .dj-tr b { font-family: var(--mc); color: var(--ink); margin-right: 8px; }
.dj-more { margin: 0; font-size: 0.82rem; }
.dj-fb .ed-btn { width: 100%; }
/* 結果（印） */
.dj-res { text-align: center; padding: 18px 0 8px; }
.dj-seal { display: inline-grid; place-items: center; width: 108px; height: 108px; border: 4px solid var(--shu); border-radius: 10px; color: var(--shu); font-family: var(--mc); font-weight: 800; font-size: 3.6rem; line-height: 1; transform: rotate(-8deg); margin: 6px 0 14px; box-shadow: inset 0 0 0 3px var(--bg), inset 0 0 0 4px var(--shu); }
.dj-seal.go { animation: dj-stamp 0.42s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes dj-stamp { 0% { transform: rotate(-8deg) scale(2.2); opacity: 0; } 100% { transform: rotate(-8deg) scale(1); opacity: 1; } }
.dj-res h2 { font-family: var(--mc); font-weight: 800; margin: 0 0 6px; font-size: 1.35rem; line-height: 1.5; }
.dj-res p { margin: 0 0 4px; color: var(--ink2); font-size: 0.92rem; }
.dj-score { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 16px 0 0; }
.dj-score div { padding: 10px 0; display: grid; gap: 2px; }
.dj-score div + div { border-left: 1px solid var(--rule2); }
.dj-score b { font-family: var(--mc); font-weight: 800; font-size: 1.35rem; }
.dj-score small { font-size: 0.72rem; color: var(--mute); }
.dj-res-act { display: grid; gap: 8px; margin-top: 18px; }
.dj-miss { text-align: left; margin-top: 20px; }
.dj-miss h3 { font-family: var(--mc); font-size: 1rem; margin: 0 0 6px; }
.dj-miss ul { list-style: none; margin: 0 0 12px; padding: 0; border-top: 1px solid var(--rule); }
.dj-miss li { padding: 10px 0; border-bottom: 1px solid var(--rule2); font-size: 0.88rem; line-height: 1.7; }
.dj-miss s { color: var(--mute); }
.dj-miss .ed-btn { width: 100%; }
/* 並べかえ */
.dj-sent { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 14px 0; min-height: 70px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--ink); font-family: var(--en); font-size: 1.05rem; }
.dj-fix { color: var(--ink2); }
.dj-slots { display: contents; }
.dj-ph { color: var(--mute); font-family: var(--jp); font-size: 0.84rem; }
.dj-tiles { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; min-height: 48px; }
.dj-tile { min-height: 44px; padding: 6px 14px; border-radius: 6px; border: 1px solid var(--ink); background: var(--card); color: var(--ink); font: 500 1.02rem/1.3 var(--en); cursor: pointer; }
.dj-tile.on { border-color: transparent; background: transparent; padding: 6px 4px; text-decoration: underline; text-decoration-color: var(--shu); text-underline-offset: 6px; }
.dj-tile:disabled { cursor: default; }
.dj-orow { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.dj-rush-st { text-align: center; padding: 26px 0; }
.dj-rush-st img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; border: 1px solid var(--rule); }
.dj-rush-st .ed-btn { margin-top: 14px; min-width: 220px; }

.dj-bimg img { border-radius: 8px; object-position: center 20%; }
.dj-sent { position: relative; padding-right: 48px; }
.dj-sent > .dj-mark { left: auto; right: 0; }
.dj-st { display: inline-flex; gap: 2px; vertical-align: -3px; margin-right: 8px; }
.dj-st svg { width: 18px; height: 18px; }
.dj-st .on { fill: var(--shu); stroke: var(--shu); }
.dj-st .off { fill: none; stroke: var(--rule); }
.dj-score b small { font-size: 0.72rem; color: var(--mute); margin-left: 2px; font-family: var(--jp); }
.dj-ex b.en { margin-right: 10px; }
@media (prefers-reduced-motion: reduce) {
  .dj-mark path, .dj-mark circle, .dj-slash.go path { animation: none !important; stroke-dashoffset: 0 !important; }
  .dj-seal.go, .dj-dmg.go { animation: none !important; opacity: 1; }
}

/* ---------- 復習BOX ---------- */
.rv-boxes { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.rv-boxes li { display: grid; justify-items: center; gap: 2px; padding: 12px 2px; text-align: center; }
.rv-boxes li + li { border-left: 1px solid var(--rule2); }
.rv-boxes span { font-size: 0.68rem; color: var(--mute); letter-spacing: 0.04em; }
.rv-boxes b { font-family: var(--mc); font-weight: 800; font-size: 1.6rem; line-height: 1.2; }
.rv-boxes small { font-size: 0.64rem; line-height: 1.35; color: var(--mute); }
.rv-start { width: 100%; margin-top: 16px; min-height: 56px; font-size: 1.04rem; }
.rv-stat { text-align: center; color: var(--mute); font-size: 0.86rem; margin: 10px 0 0; }
.rv-stat b { font-family: var(--mc); color: var(--ink); }
.ed-steps { list-style: none; counter-reset: st; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.ed-steps li { counter-increment: st; display: grid; grid-template-columns: 2.2em 1fr; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.ed-steps li::before { content: counter(st); font-family: var(--mc); font-weight: 800; font-size: 1.5rem; color: var(--shu); line-height: 1.1; text-align: center; }
.ed-steps b { display: block; margin-bottom: 2px; }
.ed-steps p { margin: 0; font-size: 0.88rem; color: var(--ink2); line-height: 1.75; }
.ed-why { margin-top: 18px; padding: 14px 16px; background: var(--rule2); border-radius: 6px; font-size: 0.88rem; line-height: 1.85; color: var(--ink2); }
.ed-why b { font-family: var(--mc); color: var(--ink); }

/* ---------- 合格作戦本部 ---------- */
.sen-cd { margin-top: 18px; padding: 16px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); display: grid; gap: 10px; }
.sen-cd-r { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sen-cd label { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: var(--ink2); }
.sen-cd input { min-height: 40px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--rule); background: var(--card); color: var(--ink); }
.js-sen-count { margin: 0; font-size: 0.9rem; color: var(--ink2); }
.js-sen-count b { font-family: var(--mc); font-weight: 800; font-size: 2rem; color: var(--shu); margin: 0 4px; }
.sen-pr { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; font-size: 0.82rem; color: var(--mute); }
.sen-pr b { font-family: var(--mc); color: var(--ink); }
.sen-pr i { display: block; height: 3px; background: var(--rule2); position: relative; }
.sen-pr i i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--shu); transition: width 0.5s; }
.sen-toc { position: sticky; top: var(--hh); z-index: 5; display: flex; gap: 0; overflow: hidden; background: var(--bg); border-bottom: 1px solid var(--rule); margin: 18px -16px 0; padding: 0 8px; }
.sen-toc a { flex: 1; text-align: center; padding: 11px 2px; font-size: 0.8rem; font-weight: 700; color: var(--ink2); text-decoration: none; white-space: nowrap; }
.sen-toc a:hover { color: var(--shu); }
.sen-enemy { margin: 0; border-top: 1px solid var(--rule); }
.sen-enemy div { display: grid; grid-template-columns: 6.2em 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--rule2); }
.sen-enemy dt { font-weight: 700; font-size: 0.86rem; color: var(--ink); }
.sen-enemy dd { margin: 0; font-size: 0.9rem; line-height: 1.7; color: var(--ink2); }
.sen-pts { list-style: none; margin: 20px 0 0; padding: 0; counter-reset: pt; }
.sen-pts li { counter-increment: pt; display: grid; grid-template-columns: 2em 1fr; gap: 10px; padding: 10px 0; font-weight: 700; line-height: 1.7; }
.sen-pts li::before { content: counter(pt, cjk-ideographic); font-family: var(--mc); font-weight: 800; color: var(--shu); font-size: 1.2rem; text-align: center; }
.sen-chk-l { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.sen-chk-l > li { border-bottom: 1px solid var(--rule); }
.sen-chk-l label { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; padding: 14px 0 10px; cursor: pointer; }
.sen-chk-l input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sen-box { width: 24px; height: 24px; margin-top: 2px; border: 1.5px solid var(--ink2); border-radius: 4px; position: relative; }
input:checked + .sen-box { border-color: var(--shu); }
input:checked + .sen-box::after { content: ''; position: absolute; left: 6px; top: 1px; width: 8px; height: 14px; border: solid var(--shu); border-width: 0 3px 3px 0; transform: rotate(40deg); }
input:focus-visible + .sen-box { outline: 2px solid var(--shu); outline-offset: 2px; }
.sen-dt { display: grid; gap: 2px; min-width: 0; }
.sen-dt b { line-height: 1.5; }
.sen-dt small { color: var(--shu); font-size: 0.76rem; font-weight: 700; }
.sen-dt > span { font-size: 0.86rem; line-height: 1.75; color: var(--ink2); }
input:checked ~ .sen-dt b { color: var(--mute); text-decoration: line-through; text-decoration-color: var(--shu); }
.sen-links { margin: 0 0 12px 38px; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.8rem; }
.sen-links:empty { display: none; }
.sen-links a { color: var(--ink2); text-underline-offset: 3px; }
.sen-ph { padding: 22px 0 6px; }
.sen-ph + .sen-ph { border-top: 1px solid var(--rule); }
.sen-phh { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.sen-phn { font-family: var(--mc); font-weight: 800; font-size: 0.9rem; color: var(--mute); }
.sen-phh b { font-family: var(--mc); font-weight: 800; font-size: 1.25rem; }
.sen-phh small { color: var(--mute); font-size: 0.8rem; }
.sen-now { display: none; margin-left: auto; font-family: var(--mc); font-weight: 800; color: var(--shu); border: 2px solid var(--shu); border-radius: 4px; padding: 0 8px; font-size: 0.82rem; transform: rotate(-4deg); }
.sen-ph.now .sen-now { display: inline-block; }
.sen-ph.now .sen-phh b { color: var(--shu); }
.sen-goal { margin: 8px 0 12px; font-size: 0.92rem; line-height: 1.7; color: var(--ink2); }
.sen-goal b { color: var(--ink); }
.sen-print { list-style: none; counter-reset: sp; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.sen-print li { counter-increment: sp; display: grid; grid-template-columns: 2em 1fr auto; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule2); }
.sen-print li::before { content: counter(sp); font-family: var(--mc); font-weight: 800; color: var(--shu); text-align: center; }
.sen-print a.sp-t { display: grid; text-decoration: none; color: var(--ink); line-height: 1.5; min-width: 0; }
.sen-print a.sp-t b { font-size: 0.9rem; font-weight: 700; }
.sen-print a.sp-t small { color: var(--mute); font-size: 0.74rem; }
.sen-dl { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--rule); color: var(--ink); font-size: 0.8rem; font-weight: 700; text-decoration: none; }
.sen-dl .ic { width: 15px; height: 15px; }
.sen-last { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.sen-last li { padding: 11px 0; border-bottom: 1px solid var(--rule2); font-size: 0.92rem; line-height: 1.75; }
.sen-pdf { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; }
.sen-pdf img { width: 96px; height: auto; border: 1px solid var(--rule); border-radius: 3px; }
.sen-pdf h2 { font-family: var(--mc); margin: 0 0 4px; font-size: 1.1rem; }
.sen-pdf p { margin: 0; font-size: 0.86rem; color: var(--ink2); }
.sen-pdf .ed-acts { grid-column: 1 / -1; margin-top: 4px; }
.sen-pdf .ed-acts .ed-btn { flex: 1 1 160px; }

/* ---------- 超絶チート技 ---------- */
.ct-three { list-style: none; margin: 18px 0 0; padding: 14px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); counter-reset: c3; }
.ct-three li { counter-increment: c3; display: grid; grid-template-columns: 2em 1fr; gap: 8px; padding: 6px 0; font-weight: 700; line-height: 1.7; }
.ct-three li::before { content: counter(c3, cjk-ideographic); font-family: var(--mc); color: var(--shu); font-weight: 800; text-align: center; }
.ct-bar { position: sticky; top: var(--hh); z-index: 5; background: var(--bg); border-bottom: 1px solid var(--rule); margin: 18px -16px 0; padding: 8px 16px; display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.ct-bar select { min-height: 42px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--rule); background: var(--card); color: var(--ink); font-weight: 700; font-size: 0.9rem; max-width: 100%; }
.ct-bar .ed-btn { min-height: 42px; padding: 0 14px; font-size: 0.88rem; }
.ct-h { font-family: var(--mc); font-weight: 800; font-size: 1.15rem; margin: 26px 0 0; padding-bottom: 8px; border-bottom: 1px solid var(--ink); }
.cts { list-style: none; margin: 0; padding: 0; }
.ct { display: grid; grid-template-columns: 2.6em 1fr; gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--rule2); }
.ct[hidden], .ct-h[hidden] { display: none; }
.ct-n { font-family: var(--mc); font-weight: 800; color: var(--shu); font-size: 0.95rem; grid-row: span 3; text-align: center; padding-top: 2px; }
.ct h3 { margin: 0; font-size: 1.02rem; line-height: 1.5; display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.ct p { margin: 0; font-size: 0.9rem; line-height: 1.8; color: var(--ink2); }
.ct-ex { padding: 6px 0 0; }
.ct-ex .en { color: var(--ink); }
.ct-ex small { display: block; color: var(--mute); }
.ct-fav { flex: none; width: 36px; height: 36px; margin: -6px -6px 0 0; border: 0; background: none; color: var(--rule); cursor: pointer; display: grid; place-items: center; }
.ct-fav svg { width: 20px; height: 20px; }
.ct.fav .ct-fav { color: var(--shu); }
.ct.fav .ct-fav svg { fill: var(--shu); }
.ct.flash { background: var(--shu-bg); transition: background 0.6s; }

/* ---------- PDF教材ライブラリ ---------- */
.lib-g { font-family: var(--mc); font-weight: 800; font-size: 1.15rem; margin: 30px 0 0; padding-bottom: 8px; border-bottom: 1px solid var(--ink); display: flex; justify-content: space-between; align-items: baseline; }
.lib-g small { font-family: var(--jp); font-size: 0.78rem; color: var(--mute); font-weight: 500; }
.lib-row .ed-btn .ic { width: 16px; height: 16px; }
.lib-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--rule2); }
.lib-row .ed-t { font-size: 0.96rem; }
.lib-row .ed-btn { min-height: 40px; padding: 0 14px; font-size: 0.84rem; }

/* ---------- 上の帯・メニュー・タブ ---------- */
.hd-nav a { white-space: nowrap; padding: 8px 10px; }
@media (max-width: 1079px) { .hd-nav { display: none !important; } }
.dw-s { margin-left: auto; font-size: 0.74rem; color: var(--mute); font-weight: 500; }
.dw-s b { color: var(--shu); }
.tabbar span .ic { width: 22px; height: 22px; }
.tabbar a.tb-rv { position: relative; }
.tb-n { display: none; position: absolute; top: 0; left: calc(50% + 5px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--shu); color: #fff; font: 700 0.64rem/17px var(--jp); font-style: normal; }
.tb-n i { font-style: normal; }
.tb-n.has { display: block; }
@media (min-width: 760px) {
  .ed-row > img { width: 120px; height: 80px; }
  .boss-row .ed-row > img { width: 72px; height: 72px; }
}

/* ================================================================
   サイト全体の地ならし＋シートのページ（2026-11-04 ユーザー「ダウンロードページのそれぞれのページが超絶見にくい」）
   - 色は墨と朱の2つだけ（分野ごとの色 --c も朱にそろえる）。水玉の地紋・影・錠剤形のボタンをやめる
   - 本文は紙の上に罫線で組む。例文は左の色帯ではなく、薄い地の段落
   ================================================================ */
:root { --brand: #23202e; --brand2: #c8402b; --on-brand: #fff; --shadow: none; --shadow-lg: none; --r: 8px; }
:root[data-theme='dark'] { --brand: #edf0fa; --brand2: #ff8a70; --on-brand: #0e1323; }
@media (prefers-color-scheme: dark) { :root[data-theme='auto'] { --brand: #edf0fa; --brand2: #ff8a70; --on-brand: #0e1323; } }
body { background-image: none; }
.btn, .btn2 { border-radius: 10px; box-shadow: none !important; border-width: 1px; }
.btn:hover, .btn2:hover { transform: none; }
.btn-pri:hover { color: #fff; }
.btn2.primary { background: var(--brand); color: var(--on-brand); }
.btn-i { border-radius: 10px; border-width: 1px; }
.pg-sheet .owl-peek, .pg-drill .owl-peek, .dj-open .owl-peek { display: none !important; }

/* ---------- 一覧（分野・全シート・ルート）：カードの箱をやめて罫線の行に ---------- */
.grid { gap: 0; border-top: 1px solid var(--rule); }
.card, .rl { background: none; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; padding: 14px 0; box-shadow: none !important; grid-template-columns: 60px 1fr; }
.rl { grid-template-columns: 26px 56px 1fr; }
.card:hover { border-color: var(--rule); }
.card-th::before, .card-th::after { content: none; }
.card-th img, .rl-th img { box-shadow: none; border: 1px solid var(--rule); border-radius: 2px; }
.card-p { background: var(--bg); color: var(--ink2); border: 1px solid var(--rule); border-radius: 2px; }
.card-rk { background: var(--shu); color: #fff; }
.cat-d { color: var(--mute); }
.cat-d::before { content: none; }
.card h3 { font-weight: 700; }
.card h3 a:hover, .rl-t:hover { color: var(--shu); }
.rl-n { color: var(--shu); font-family: var(--mc); }
.dl { border-radius: 8px; height: 38px; background: var(--brand); }
.dl.dl-dr { background: none; color: var(--ink); border: 1px solid var(--rule); }
.fav { border-radius: 8px; border-width: 1px; }
.fav[aria-pressed='true'], .btn-i.fav[aria-pressed='true'] { color: var(--shu); border-color: var(--shu); }
.fav[aria-pressed='true'] .ic { fill: var(--shu); }
.sel span { border-width: 1px; border-radius: 6px; }
.sel input:checked + span { background: var(--shu); border-color: var(--shu); }
.flt { background: none; border: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); border-radius: 0; padding: 12px 0; }
.flt-q input { border-width: 1px; border-radius: 8px; }
.flt-cats button { border-width: 1px; border-radius: 6px; }
.flt-cats button.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.flt-o select { border-width: 1px; border-radius: 8px; }
.flt-n b { font-family: var(--mc); }
.pg-hero { display: block; min-height: 0; border-radius: 0; background: none; color: var(--ink); overflow: visible; isolation: auto; margin-bottom: 8px; }
.pg-hero::before { content: none; }
.pg-hero > img { position: static; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; border: 1px solid var(--rule); z-index: auto; }
.pg-hero-b { padding: 16px 0 8px; }
.pg-hero h1 { color: var(--ink); text-shadow: none; font-family: var(--mc); font-weight: 800; }
.pg-hero p { color: var(--ink2); }
.pg-hero .sec-en, .pg-hero .kicker { color: var(--mute); }
.pg-hero .btn-pri { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.pg-hero .btn:not(.btn-pri) { background: none; color: var(--ink); border-color: var(--rule); }
.chip { background: none; border: 0; padding: 0; color: var(--ink2); border-radius: 0; }
.ct-bar { grid-template-columns: minmax(0, 1fr) auto; }
.ct-bar .ed-btn { white-space: nowrap; }

/* ---------- トップ（行組み） ---------- */
.pg-home main.top > * { max-width: 760px; }
.pg-home main.top > .ed-sec { border-top: 1px solid var(--rule); margin-top: 26px; }
.pg-home main.top > .me-strip { margin-top: 0; }
.pg-home h1, .pg-home h2 { font-family: var(--mc); }
.top-in .ed-list { margin-top: 4px; }
.top-in .ed-row .ed-t { font-family: var(--mc); font-weight: 800; font-size: 1.12rem; }
.st-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.st-a { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; padding: 12px 2px; color: var(--ink); text-decoration: none; }
.st-a img { width: 44px; height: auto; border: 1px solid var(--rule); border-radius: 2px; }
.st-a:hover .ed-t { color: var(--shu); }
.cat-list .ed-row { grid-template-columns: 1fr auto auto; padding: 12px 2px; }
@media (min-width: 640px) { .cat-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; } }
.top-find .top-q { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; border: 1px solid var(--ink); border-radius: 10px; padding: 4px 4px 4px 12px; background: var(--card); box-shadow: none; }
.top-find .top-q input { border: 0; background: none; min-height: 44px; outline: none; min-width: 0; font-size: 1rem; }
.top-find .top-q .ed-btn { min-height: 42px; }
.top-tags { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 12px; font-size: 0.86rem; }
.top-tags a { color: var(--ink2); background: none; border: 0; padding: 0; border-radius: 0; }
.qc { background: none; border: 0; border-top: 1px solid var(--ink); border-radius: 0; box-shadow: none; padding: 14px 0 0; }
.qc::before { content: none; }
.qc-cats button { border-radius: 6px; border-width: 1px; }
.qc-cats button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.owl-greet { background: none; border: 0; border-top: 1px solid var(--rule); border-radius: 0; box-shadow: none; margin-top: 26px; padding-top: 22px; }
.owl-bubble { box-shadow: none; border-width: 1px; border-radius: 10px; }
.owl-bubble::before { border-width: 0 0 1px 1px; }
.btn2 { border-width: 1px; }

.pg-sheet main.sheet, .pg-drill main.sheet { --c: var(--shu) !important; max-width: 820px; }
.pg-sheet h1, .pg-sheet h2, .pg-sheet h3, .pg-drill h1, .pg-drill h2 { font-family: var(--mc); }
.sh-hd { padding: 6px 0 16px; gap: 8px; }
.sh-k { display: flex; flex-wrap: wrap; gap: 0; margin: 0; font-size: 0.78rem; color: var(--mute); }
.sh-k > * + *::before { content: '・'; color: var(--mute); margin: 0 4px; }
.sh-k a { color: var(--ink2); font-weight: 700; }
.sh-hd h1 { font-weight: 800; font-size: clamp(1.55rem, 7vw, 2.3rem); letter-spacing: 0.01em; }
.sh-lead { font-size: 0.98rem; color: var(--ink2); }

.sh-use { display: grid; grid-template-columns: 76px 1fr; gap: 0 16px; align-items: start; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); padding: 4px 0 0; }
.sh-use .sh-th { padding-top: 14px; }
.sh-use .sh-th img { border: 1px solid var(--rule); border-radius: 2px; box-shadow: none; }
.sh-use-l { list-style: none; margin: 0; padding: 0; counter-reset: su; }
.sh-use-l li { counter-increment: su; display: grid; grid-template-columns: 1.6em 1fr; gap: 2px 6px; padding: 12px 0; }
.sh-use-l li + li { border-top: 1px solid var(--rule2); }
.sh-use-l li::before { content: counter(su, cjk-ideographic); font-family: var(--mc); font-weight: 800; color: var(--shu); grid-row: span 3; font-size: 1.05rem; line-height: 1.5; }
.sh-use-l b { font-family: var(--mc); font-weight: 800; font-size: 1.02rem; }
.sh-use-l span { font-size: 0.84rem; line-height: 1.65; color: var(--ink2); }
.sh-use-l a { justify-self: start; margin-top: 4px; font-size: 0.88rem; font-weight: 700; color: var(--ink); text-underline-offset: 4px; }
.sh-use-l a.sh-dl { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: 10px; background: var(--brand); color: var(--on-brand); text-decoration: none; margin-top: 8px; }
.sh-use-l a.sh-dl:hover { background: var(--shu); color: #fff; }
.sh-use-l a.sh-dl .ic { width: 17px; height: 17px; }
.sh-sub { grid-column: 1 / -1; display: flex; gap: 0; margin: 0; border-top: 1px solid var(--rule2); }
.sh-sub a, .sh-sub button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; background: none; border: 0; color: var(--ink2); font-size: 0.82rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.sh-sub > * + * { border-left: 1px solid var(--rule2); }
.sh-sub .ic { width: 16px; height: 16px; }
.sh-sub .fav[aria-pressed='true'] { color: var(--shu); }
.sh-sub .fav[aria-pressed='true'] svg { fill: var(--shu); }

.sh-wrap { margin-top: 14px; gap: 0; }
.sh-side { gap: 0; }
.toc { background: none; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; }
.toc summary { padding: 12px 2px; font-family: var(--mc); font-weight: 800; }
.toc ol { padding: 0 0 10px; }
.toc a { border-radius: 0; padding: 8px 2px; border-top: 1px solid var(--rule2); }
.toc a::before { color: var(--shu); font-family: var(--mc); }
.toc a:hover, .toc a.on { background: none; color: var(--shu); }
.tools { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.tools > .tl { height: 46px; border: 0; border-radius: 0; background: none; justify-content: center; font-size: 0.86rem; color: var(--ink); padding: 0 6px; }
.tools > .tl + .tl { border-left: 1px solid var(--rule2); }
.tools > .tl[aria-pressed='true'] { background: var(--shu-bg); color: var(--shu); }
.tl-fs { border-left: 1px solid var(--rule2); gap: 0; }
.tl-fs .tl { height: 46px; border: 0; border-radius: 0; background: none; padding: 0 10px; }
.tl-au { grid-column: 1 / -1; border-top: 1px solid var(--rule2); padding: 6px 0; }
.tl-au .tl, .tl-au select { border-radius: 8px; border-width: 1px; }
.tl-play { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.tl-got { grid-column: 1 / -1; border-top: 1px solid var(--rule2); padding: 8px 2px; justify-content: space-between; }
.tl-got b { color: var(--shu); font-family: var(--mc); }
.tl-bar { flex: 1; max-width: 200px; height: 3px; border-radius: 0; background: var(--rule2); }
.tl-bar i { background: var(--shu); border-radius: 0; }
.side-dl { border-radius: 10px; margin-top: 12px; }

.sh-doc { background: none; border: 0; border-radius: 0; padding: 0; }
@media (max-width: 899px) { .sh-doc { margin: 0; padding: 0; } }
.three-w { margin: 22px 0 4px; padding: 14px 0 10px; border: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); border-radius: 0; background: none; }
.three-w h2 { font-size: 1.05rem; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.three-w li::before { content: counter(th, cjk-ideographic); width: auto; height: auto; margin: 0; background: none; color: var(--shu); font: 800 1rem/1.7 var(--mc); border-radius: 0; }
.sc { padding-top: 32px; }
.sc + .sc { border-top: 0; }
.sc-h { font-size: 1.25rem; font-weight: 800; padding-bottom: 10px; border-bottom: 1px solid var(--ink); margin-bottom: 4px; align-items: baseline; }
.sc-h::before { min-width: 0; height: auto; padding: 0; border-radius: 0; background: none; color: var(--shu); font: 800 1.25rem/1.45 var(--mc); margin: 0; }
.sh-body.own .sc-h::before { content: none; }
.sc-no { min-width: 0; height: auto; padding: 0; border-radius: 0; background: none; color: var(--shu); font: 800 1.25rem/1.45 var(--mc); margin: 0; }
.sc-n { font-family: var(--jp); padding-top: 0; }
.sc-i { font-size: 0.9em; padding-top: 6px; }
.lv { color: var(--shu); letter-spacing: 0; }
.lv i { color: var(--rule); }
.ex, .rul-ex { border-left: 0; padding: 8px 12px; margin-top: 10px; background: color-mix(in srgb, var(--ink) 4%, transparent); border-radius: 4px; }
.ex { font-size: 0.95em; }
.ex .dlg b { color: var(--mute); }
.nt { color: var(--mute); font-size: 0.88em; }
.wd-r .w0 b, .phr .en b, .par-ab .en b, .rul-ex .en b, .trp .ok b, .three-w li b, .tb td:first-child b, .qz-c b { color: var(--shu); }
.ck { border-width: 1px; border-color: var(--rule); color: var(--rule); }
.ck:hover { border-color: var(--shu); color: var(--shu); }
.it.got > .ck { background: var(--shu); border-color: var(--shu); }
.rn { background: none; color: var(--shu); font-family: var(--mc); font-size: 1rem; min-width: 1.4em; }
.sn { border-width: 1px; font-family: var(--mc); }
.tbw { border-radius: 0; border: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.tb th { background: none; border-bottom: 1px solid var(--rule); font-family: var(--mc); }
.tb td { border-top: 1px solid var(--rule2); }
.bx, .bx-uroko, .bx-warn, .bx-theory { border: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); border-radius: 0; background: none; padding: 14px 0; }
.bx-l, .bx-uroko .bx-l, .bx-warn .bx-l, .bx-theory .bx-l { font-family: var(--mc); color: var(--shu); font-size: 0.98rem; }
.vs { color: var(--mute); }
.qz-b { border-radius: 8px; border-width: 1px; }
.qz-b i { font-family: var(--mc); }
.qz-r { border-radius: 4px; }
.qz-a { border-radius: 8px; border-width: 1px; }
.qz-al { color: var(--shu); }
.sh-cta { background: none; color: var(--ink); border-radius: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); padding: 18px 0; }
.sh-cta b { font-family: var(--mc); font-weight: 800; font-size: 1.15rem; }
.sh-cta p { color: var(--ink2); opacity: 1; }
.sh-cta .btn-pri { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.dr-cta { border: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); border-radius: 0; box-shadow: none; padding: 18px 0; background: none; }
.dr-cta b { font-family: var(--mc); font-weight: 800; }
.dr-k { color: var(--shu); font-size: 0.72rem; letter-spacing: 0.12em; font-weight: 700; }
.pn { gap: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.pn a { border: 0; border-radius: 0; background: none; padding: 14px 4px; }
.pn > * + * { border-left: 1px solid var(--rule2); }
.pn a:hover b { color: var(--shu); }
.sh-routes h2, .sh-rel h2, .sh-apps h2 { font-weight: 800; padding-bottom: 8px; border-bottom: 1px solid var(--ink); }
.rchips a { border-radius: 6px; }
.mbar { border-top: 1px solid var(--rule); box-shadow: none; }
.mbar .btn[aria-pressed='true'] { background: var(--shu); border-color: var(--shu); }
.dr-hero h1 { font-weight: 800; }
@media (min-width: 1000px) {
  .pg-sheet main.sheet, .pg-drill main.sheet { max-width: 1120px; }
  .sh-hd, .sh-use { margin-left: 278px; }
  .sh-doc, .sh-doc:is(*) { padding: 0; max-width: 780px; }
  .tools { grid-template-columns: 1fr 1fr 1fr; background: none; border: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); border-radius: 0; padding: 0; }
  .tl-fs { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--rule2); justify-content: center; }
  .tl-au { width: auto; }
}
@media (min-width: 900px) {
  .sh-use { grid-template-columns: 110px 1fr; }
  .sh-use-l { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 18px; }
  .sh-use-l li + li { border-top: 0; }
}
