/* GENERATED-BY: css_scope.py(手で直さない・作り直しは python3 _core/tools/design/css_scope.py build)
   生成元: mirutobe/design-20261020/3-proto/S3-V5/base.css(試作 V5 の base.css と同じ中身)
   道具: _core/tools/design/css_scope.py。すべての選択子を body.mt-v5 で始まる形にした(PLAN §3-4)。値とコメントは試作のまま。
   末尾の「V5 の環境の打ち消し」は _core/tools/design/v5_parent_reset.css を道具が足したもの。 */
/* みるとべ S3 試作 V5: 全面で同じ土台・ヘッダー・フッター。値は tokens.css(板の helmet の変数)。
   見た目の正本は 2-direction/canvas/project/m-top-pc.dc.html・m-top-sp.dc.html(ヘッダーとフッターは4枚で同じ)。
   板の .mt[data-w="sp"] は (max-width: 899px)、PC は (min-width: 900px) に置き換えた。Stitch の飾り([data-stitch="あり"])は持ち込まない。 */
body.mt-v5 *, body.mt-v5 *::before, body.mt-v5 *::after { box-sizing: border-box; }
body.mt-v5 { -webkit-text-size-adjust: 100%; }
body.mt-v5 { margin: 0; background: var(--c-white); color: var(--c-ink); font-family: var(--ff-body); font-size: var(--fs-body); line-height: var(--lh-ui); font-weight: 400; word-break: auto-phrase; overflow-wrap: break-word; font-variant-numeric: lining-nums; }
body.mt-v5 :where(a) { color: inherit; text-decoration: none; }
body.mt-v5 :where(h1, h2, h3, p, ul, ol, figure) { margin: 0; padding: 0; }
body.mt-v5 :where(ul, ol) { list-style: none; }
body.mt-v5 :where(img) { display: block; max-width: 100%; }
body.mt-v5 :where(button) { font: inherit; color: inherit; cursor: pointer; }
body.mt-v5 svg { flex: none; }
body.mt-v5 h1, body.mt-v5 h2, body.mt-v5 h3, body.mt-v5 .fh { font-family: var(--ff-head); font-weight: var(--fw-head); font-feature-settings: "palt"; }
body.mt-v5 :focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
body.mt-v5 .nb { white-space: nowrap; }
body.mt-v5 .num { font-variant-numeric: lining-nums tabular-nums; }
body.mt-v5 .skip { position: absolute; left: 8px; top: -60px; z-index: 50; padding: 10px 14px; border-radius: var(--r-sm); background: var(--c-ink); color: var(--c-white); }
body.mt-v5 .skip:focus { top: 8px; }
/* 見えない字(セールの札の本番の題名・「｜」で割った題名の「｜」)。字の列を本番の題名と同じにする(R2 S3 の決まり) */
body.mt-v5 .vh { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 899px) { body.mt-v5 .pc { display: none !important; } }
@media (min-width: 900px) { body.mt-v5 .sp { display: none !important; } }

/* ---- ヘッダー(板のとおり・全面で同じ。帯と副題は出さない) ---- */
body.mt-v5 .chrome { display: flex; flex-direction: column; }
body.mt-v5 .hdr { position: relative; display: flex; align-items: center; gap: var(--sp-5); height: var(--h-hdr); padding: 0 var(--gut); }
body.mt-v5 .logo { display: flex; align-items: center; min-height: var(--tap-main); margin: 0; font-size: var(--fs-logo); line-height: 1; letter-spacing: 0.04em; white-space: nowrap; }
body.mt-v5 .logo a { display: flex; align-items: center; min-height: var(--tap-main); }
body.mt-v5 .nav { display: flex; align-items: center; gap: var(--sp-6); margin-left: auto; white-space: nowrap; }
body.mt-v5 .nv { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-1); min-width: 44px; height: var(--h-nv); padding: 3px 2px 0; border-bottom: 3px solid transparent; font-size: var(--fs-nav); font-weight: 700; line-height: 1.2; }
body.mt-v5 .nv svg { color: var(--c-accent); }
body.mt-v5 .nv[aria-current] { border-bottom-color: var(--c-accent); }
body.mt-v5 .en { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 4px; font-size: var(--fs-meta); font-weight: 700; }
body.mt-v5 .search-f { margin: 0; }
body.mt-v5 .search { position: relative; display: block; width: var(--w-search); }
body.mt-v5 .search input { display: block; width: 100%; height: 52px; padding: 0 52px 0 16px; border: 1px solid var(--c-field); border-radius: var(--r-lg); outline: 0; background: var(--c-surface); font: inherit; font-size: var(--fs-input); color: var(--c-ink); }
body.mt-v5 .search input::placeholder { color: var(--c-muted); opacity: 1; }
body.mt-v5 .search:focus-within input { outline: 2px solid var(--c-accent); outline-offset: 2px; }
body.mt-v5 .search button { position: absolute; top: 4px; right: 4px; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--c-white); }
body.mt-v5 .hbtn { display: none; align-items: center; justify-content: center; width: var(--tap-main); height: var(--tap-main); padding: 0; border: 0; border-radius: 50%; background: var(--c-surface); color: var(--c-ink); list-style: none; cursor: pointer; }
body.mt-v5 .hbtn::-webkit-details-marker { display: none; }
body.mt-v5 .mn { display: none; }
body.mt-v5 .mn__p { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; padding: var(--sp-3) var(--gut) var(--sp-10); border-top: 1px solid var(--c-rule); border-bottom: 2px solid var(--c-ink); background: var(--c-white); }
body.mt-v5 .mn__p .search { width: 100%; margin-top: var(--sp-3); }
body.mt-v5 .mn__h { margin: var(--sp-6) 0 var(--sp-1); font-family: var(--ff-head); font-weight: var(--fw-head); font-size: var(--fs-list); line-height: 1.4; }
body.mt-v5 .mn__l > li { border-bottom: 1px solid var(--c-rule); }
body.mt-v5 .mn__l a { display: flex; align-items: center; gap: var(--sp-4); min-height: 48px; font-size: var(--fs-body); font-weight: 700; }
body.mt-v5 .mn__ic { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--r-xs); background: var(--c-surface); color: var(--c-accent); }
body.mt-v5 .mn__l--plain a { min-height: var(--tap-main); font-weight: 500; }
@media (max-width: 899px) {
  body.mt-v5 .hdr { justify-content: space-between; }
  body.mt-v5 .nav, body.mt-v5 .en, body.mt-v5 .hdr > .search-f { display: none; }
  body.mt-v5 .hbtn { display: flex; }
  body.mt-v5 .hbtn--s { order: -1; }
  body.mt-v5 .mn { display: block; order: 1; }
}
/* MTB-D-39(設計承認): 板に無い幅(640〜899): ハンバーガーだけで分類への入口が無かった(スマホの 431px 以下はトップの .chips がある)。
   900〜1199 と同じ組みで、7項目の列(.nav)を2段目に出す。640 未満は 7項目が1行に入らないので今のまま。 */
@media (min-width: 640px) and (max-width: 899px) {
  body.mt-v5 .hdr { flex-wrap: wrap; height: auto; padding-top: var(--sp-3); row-gap: 0; }
  body.mt-v5 .nav { display: flex; order: 3; justify-content: space-between; width: 100%; margin-left: 0; }
}
/* 板に無い幅(900〜1199): 7項目が1行に入らないので、カテゴリを2段目に下ろす(R2 の試作と同じ組み) */
@media (min-width: 900px) and (max-width: 1199px) {
  body.mt-v5 .hdr { flex-wrap: wrap; height: auto; padding-top: var(--sp-3); row-gap: 0; }
  body.mt-v5 .en { margin-left: auto; }
  body.mt-v5 .nav { order: 3; justify-content: space-between; width: 100%; margin-left: 0; }
}
/* スマホのアイコンの列(直し 1-2: 板 m-top-sp.dc.html の nav.chips の規則のまま)。幅 430 以下だけ出す。
   板は overflow: hidden で右端の札が切れて押せないので、見た目はそのまま横に送れるようにした(推測) */
body.mt-v5 .chips { display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; padding: var(--sp-2) var(--gut) var(--sp-1); }
body.mt-v5 .chips::-webkit-scrollbar { display: none; }
body.mt-v5 .chip { display: flex; flex-direction: column; align-items: center; gap: 5px; flex: 0 0 62px; font-size: var(--fs-meta); font-weight: 700; line-height: 1.2; }
body.mt-v5 .chip__ic { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--r-sm); background: var(--c-surface); color: var(--c-accent); }
@media (min-width: 431px) { body.mt-v5 .chips { display: none; } }
/* MTB-D-39 の残り(設計承認 2026-10-25): 431〜639px は .nav(2段目)が入らず、トップ以外には分類への入口がハンバーガーしか無かった。
   記事・カテゴリ・タグの面は同じ .chips に .chips--sub を足して 639px 以下で出す(640 以上は .nav がある)。トップは今のまま 430px 以下だけ。 */
@media (min-width: 431px) and (max-width: 639px) { body.mt-v5 .chips--sub { display: flex; } }

/* ---- 区画の見出し・札(トップ・一覧で共通) ---- */
body.mt-v5 .sh { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-6); }
body.mt-v5 .sh__h { font-size: var(--fs-sec); line-height: var(--lh-head); }
body.mt-v5 .sh__h--s { font-size: var(--fs-sec-s); }
body.mt-v5 .sh__n { margin-right: auto; font-size: var(--fs-meta); color: var(--c-muted); }
body.mt-v5 .more { display: inline-flex; align-items: center; min-height: var(--tap); margin-block: -8px; font-size: var(--fs-more); font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
body.mt-v5 .more--a { color: var(--c-accent); }
body.mt-v5 .tag { display: inline-block; padding: 0 7px; border: 1px solid var(--c-line-tag); border-radius: var(--r-tag); color: var(--c-ink); font-size: var(--fs-meta); line-height: 1.5; }
body.mt-v5 .tag--on { border-color: var(--c-accent); color: var(--c-accent); font-weight: 700; }
body.mt-v5 .dleft { padding: 0 6px; border: 1px solid var(--c-ink); border-radius: var(--r-tag); font-weight: 700; font-size: var(--fs-meta); line-height: 1.5; white-space: nowrap; }
body.mt-v5 .dleft--hot { border-color: var(--c-coral); background: var(--c-coral); color: var(--c-ink); }
body.mt-v5 .st { display: inline-block; padding: 0 6px; border: 1px solid var(--c-line-tag); border-radius: var(--r-tag); font-size: var(--fs-meta); font-weight: 700; line-height: 1.5; }
body.mt-v5 .st__d { white-space: nowrap; font-size: var(--fs-meta); font-weight: 700; font-variant-numeric: lining-nums tabular-nums; }
body.mt-v5 .dcs { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }
body.mt-v5 .dc { display: inline-flex; align-items: center; gap: 5px; min-height: var(--tap); padding: 0 11px; border: 1px solid var(--c-line-chip); border-radius: var(--r-xs); font-weight: 700; font-size: var(--fs-chip); line-height: 1.3; }
body.mt-v5 .dc__n { font-weight: 500; font-size: var(--fs-meta); color: var(--c-muted); }
@media (max-width: 899px) {
  body.mt-v5 .dcs { gap: var(--sp-2); margin-top: var(--sp-4); }
  body.mt-v5 .dc { padding: 0 10px; border-color: var(--c-rule-surf); }
}

/* ---- フッター(板のとおり・全面で同じ)。PC は広告表記を真ん中寄せ・ロゴを左・リンクを右(編集部 10/20「真ん中よせ」) ---- */
body.mt-v5 .ft { padding: var(--sp-4) var(--gut) var(--sp-2); background: var(--c-ink); color: var(--c-white); }
body.mt-v5 .ft__ad { font-size: var(--fs-foot-ad); line-height: 1.5; color: var(--c-foot-ad); text-align: center; }
body.mt-v5 .ft__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 var(--sp-7); }
body.mt-v5 .ft__logo { font-family: var(--ff-head); font-weight: var(--fw-head); font-size: var(--fs-foot-logo); line-height: 1; }
body.mt-v5 .ft__nav { display: flex; flex-wrap: wrap; gap: 0 var(--sp-6); font-size: var(--fs-meta); font-weight: 500; }
body.mt-v5 .ft__nav a { display: flex; align-items: center; min-height: var(--tap); color: var(--c-white); }
body.mt-v5 .ft a:focus-visible { outline-color: var(--c-white); }
/* スマホのフッターを詰める(編集部 10/20「もっとコンパクトに」)。広告表記は本文と同じ 16px のまま 1 行、リンクは 44px のまま 1 段 */
@media (max-width: 899px) {
  body.mt-v5 .ft { padding: 10px 12px 4px; text-align: center; }
  body.mt-v5 .ft__ad { font-feature-settings: "palt"; }
  body.mt-v5 .ft__row { flex-direction: column; justify-content: center; }
  body.mt-v5 .ft__logo { margin-top: 6px; }
  body.mt-v5 .ft__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 10px; font-feature-settings: "palt"; }
  body.mt-v5 .ft__nav a { display: inline-flex; min-height: var(--tap-main); margin: 0; vertical-align: top; }
}
/* 直し 1-4: 390 でリンク4つが2段に落ちた(板は1段)。板の値(gap 10px・palt・余白 12px)のまま、430 以下は折り返さない。
   字の幅が環境で数 px 広いときは、間を 4px まで縮め、残りは .ft の左右の余白(12px)の中にはみ出させる(推測で足した守り) */
@media (max-width: 430px) {
  body.mt-v5 .ft__nav { flex-wrap: nowrap; column-gap: clamp(4px, calc(100vw - 380px), 10px); }
  body.mt-v5 .ft__nav a { flex: none; white-space: nowrap; }
}

/* ==== V5 の環境の打ち消し(手書き。元は _core/tools/design/v5_parent_reset.css・css_scope.py build が base.css の末尾に足す) ====
   試作は親テーマの CSS 無しで描いた。本番の V5 の面には親 Xwrite の site.css と子の 90-custom-legacy.css が残る(PLAN §3-3)。
   親の site.css と 90-custom-legacy.css の規則のうち、選択子に class も id も無いもの(要素・*・属性・擬似クラスだけ。:not() の中の class は数えない)を
   全部並べ、試作の値(ブラウザの既定か、試作の規則の値)と違う性質だけをここで戻す。一覧と理由: mirutobe/design-20261020/5-deploy/parent-reset.tsv。
   書き方:
     - 選択子は body.mt-v5 :where(…) で、強さは (0,1,1)。親の要素の規則((0,0,1)〜(0,1,1)。V5 は親より後に読むので同点なら勝つ)には勝ち、
       試作の class の規則(body.mt-v5 を付けて (0,2,0) 以上)には負ける。親の方が強い規則(:hover 付き・blockquote cite a:hover)だけは
       擬似クラスを :where の外に出して勝たせる。
     - ブラウザの既定に戻す値は revert(作者の層を捨てて UA の値にする。試作が見た値そのもの)。
     - 継承する性質(letter-spacing・font-feature-settings・-webkit-font-smoothing)は body で戻す。継承しない性質は要素ごとに戻す。
       html の値は html:has(> body.mt-v5) で書く。
     - 試作の base.css が同じ強さ (0,1,1) で書く性質(body の各値・a の color と text-decoration・見出しと p などの margin と padding・
       ul と ol の list-style・img の display と max-width・button の font と color と cursor・* の box-sizing)には触れない。後に置くと試作の値を消すため。
   戻さないもの(差として残る・受け入れるかは S5 で決める・PLAN §3-3):
     - [tabindex="-1"]:focus { outline: none !important }(site.css)。!important なので、こちらも !important で強さを上げないと戻らない。
       !important の競り合いを増やさないため戻さない。試作の :focus-visible の輪が、tabindex="-1" の要素(プログラムで focus を移す先)にだけ出ない。
     - img { height: auto }(site.css)。試作で img の height 属性が効く所は無い(器の img は class の規則で高さを持ち、本文の img は試作も
       .mt-body img { height: auto })。CSS の値では属性の高さに戻せない(revert も属性の値の手前まで戻らない)。
     - html { font-size: 62.5% }(site.css・値は 90-custom-legacy.css の --html-font-size-*)。V5 の CSS に rem は 0 個で効かない。
       本文の中の親の部品(rem で書かれている)を変えないため戻さない。
     - dialog { display: block }(site.css)。V5 の器に dialog は無い。80-v4.css の dialog の打ち消しは v4 だけのものとして写さない。
   80-v4.css の打ち消しのうち body の font-weight と word-break は、試作の body の規則(400・auto-phrase)が同じ強さで先に勝つので要らない。 */

/* html(継承する値も html で戻す) */
html:has(> body.mt-v5) { scroll-behavior: auto; scroll-padding-top: auto; -webkit-tap-highlight-color: revert; }

/* body: 親の display: flex(縦の並び)・min-height(画面の高さ)・overflow-x: hidden と、継承する字の値 */
body.mt-v5 { display: block; flex-direction: row; min-height: auto; overflow-x: visible; letter-spacing: normal; font-feature-settings: normal; -webkit-font-smoothing: auto; }
/* MTB-D-38: 本文が短い面(about など)でフッターが画面の途中で終わり下に白地が残る。body を縦の flex・最小の高さを画面の高さにし、フッターを下へ寄せる(svh は SP のアドレスバーで余計な縦スクロールを出さないため。MTB-D-69: 100vh の代わりの行は design_check の human_check D19 に当たるので外した。svh の無い古い版では最小の高さが付かないだけで、白地が残る前の形に戻る) */
body.mt-v5 { display: flex; flex-direction: column; min-height: 100svh; }
body.mt-v5 .ft { margin-top: auto; }

/* *(親は min-width: 0・min-height: 0。試作は auto で、flex と grid の子が中身より縮まない) */
body.mt-v5 :where(*) { min-width: revert; min-height: revert; }

/* 文の中の要素 */
body.mt-v5 :where(abbr[title], abbr[data-original-title]) { text-decoration: revert; cursor: revert; }
body.mt-v5 :where(blockquote) { margin: revert; }
body.mt-v5 :where(small) { font-size: revert; }
body.mt-v5 :where(sub, sup) { position: revert; top: revert; bottom: revert; font-size: revert; line-height: revert; vertical-align: revert; }
body.mt-v5 :where(pre) { overflow: revert; }
body.mt-v5 :where(img) { vertical-align: revert; }
body.mt-v5 :where(table) { border-collapse: revert; }
body.mt-v5 :where(iframe) { max-width: revert; }
body.mt-v5 :where(output) { display: revert; }
body.mt-v5 :where(progress) { vertical-align: revert; }
body.mt-v5 :where(blockquote cite) { display: revert; margin-top: revert; font-size: revert; }
body.mt-v5 :where(blockquote cite a) { font-style: revert; }
@media (hover: hover) {
  body.mt-v5 :where(blockquote cite a):hover { color: inherit; } /* 親 (0,1,3) に勝つ (0,2,1)。試作の a は color: inherit(base.css) */
}

/* 押せる物の動き(親は 0.2 秒の transition・touch-action: manipulation・押す型の input の cursor・:hover で opacity 0.8) */
body.mt-v5 :where(a, [type="button"], [type="reset"], [type="submit"]),
body.mt-v5 :where(a)::before,
body.mt-v5 :where(a)::after { transition: revert; }
body.mt-v5 :where(a, area, button, [role="button"], input:not([type="range"]), label, select, summary, textarea) { touch-action: revert; }
body.mt-v5 :where(input[type="button"], input[type="reset"], input[type="submit"], [type="radio"], [type="checkbox"], [type="radio"] + label, [type="checkbox"] + label) { cursor: revert; }
@media (hover: hover) {
  body.mt-v5 :where([type="button"], [type="reset"], [type="submit"]):hover { opacity: revert; } /* 親 (0,2,0) に勝つ (0,2,1) */
}

/* 入力の部品(親の normalize。試作はブラウザの既定のまま。試作の class の規則が値を持つ所はそちらが勝つ) */
body.mt-v5 :where(button) { margin: revert; border: revert; border-radius: revert; overflow: revert; }
body.mt-v5 :where(button:focus) { outline: revert; }
body.mt-v5 :where(input, select, textarea, optgroup) { margin: revert; font: revert; line-height: revert; }
body.mt-v5 :where(input) { overflow: revert; }
body.mt-v5 :where(input[type="date"], input[type="time"], input[type="datetime-local"], input[type="month"]) { -webkit-appearance: revert; }
body.mt-v5 :where(textarea) { resize: revert; }
body.mt-v5 :where(fieldset) { min-width: revert; border: revert; }
body.mt-v5 :where(legend) { width: revert; max-width: revert; padding: revert; margin-bottom: revert; font-size: revert; line-height: revert; color: revert; white-space: revert; }
body.mt-v5 :where([name="archive-dropdown"]) { width: revert; padding: revert; border: revert; }
body.mt-v5 :where([type="number"])::-webkit-inner-spin-button,
body.mt-v5 :where([type="number"])::-webkit-outer-spin-button { height: revert; }
body.mt-v5 :where([type="search"])::-webkit-search-cancel-button,
body.mt-v5 :where([type="search"])::-webkit-search-decoration { -webkit-appearance: revert; }
body.mt-v5 ::-webkit-file-upload-button { font: revert; -webkit-appearance: revert; }
body.mt-v5 :where(button, [type="button"], [type="reset"], [type="submit"])::-moz-focus-inner { padding: revert; border-style: revert; }
/* ==== V5 の環境の打ち消しここまで ==== */

/* ==== 試作に無い部品の値(手書き・2026-10-21 S5 の ON の §9 で追加・css_scope.py build が打ち消しの後に足す) ====
   記事のコメント欄(WordPress の comment_form)は試作に無く、素の見た目では §9-2(入力欄の枠 1.36:1)・§9-3(SP で高さ 36px)・
   §9-4(送信の字 13.3px)に落ちた。手順書 S5-7「試作の同じ役目の部品の値をそのまま当てる」に従い、入力欄は試作の検索欄
   (base.css .search input: 枠 --c-field・角 --r-lg・字 --fs-input・高さ 52px)、送信はその差し色(--c-accent に白の字・白地 5.8:1)にする。
   入力欄の地は白(--c-white)。--c-field は白地で 3.5:1(tokens.css)。迷惑コメントの罠の欄(aria-hidden の textarea)は触らない。 */
body.mt-v5 .comment-respond { margin-top: 32px; }
body.mt-v5 .comment-reply-title { margin: 0 0 12px; font-size: var(--fs-h3); font-weight: 700; }
body.mt-v5 .comment-form p { margin: 0 0 16px; }
body.mt-v5 .comment-form label { display: block; margin-bottom: 6px; font-weight: 700; }
body.mt-v5 .comment-form :is(input[type="text"], input[type="email"], input[type="url"], textarea:not([aria-hidden="true"])) {
  display: block; width: 100%; min-height: 52px; padding: 12px 16px; box-sizing: border-box;
  border: 1px solid var(--c-field); border-radius: var(--r-lg); background: var(--c-white);
  font: inherit; font-size: var(--fs-input); line-height: 1.6; color: var(--c-ink);
}
body.mt-v5 .comment-form textarea:not([aria-hidden="true"]) { min-height: 160px; }
body.mt-v5 .comment-form input[type="submit"] {
  min-height: 52px; padding: 0 24px; border: 0; border-radius: var(--r-lg);
  background: var(--c-accent); color: var(--c-white);
  font: inherit; font-size: var(--fs-input); font-weight: 700; cursor: pointer;
}

/* ==== 右の列の目次の下の3つ(手書き)。よく読まれている記事・タグ・最近のコメント ====
   編集部 2026-10-22「サイドバーがない」→「目次の下に3つ戻す」で post.css に手で足したもの。2026-10-24 にカテゴリの一覧でも使うので、
   全部の面が読む base.css に乗るここへ移した(値は変えていない)。 */
body.mt-v5 .b-side__sec { margin-top: var(--sp-6); }
body.mt-v5 .b-side__toc + .b-side__sec { margin-top: calc(var(--sp-6) * 1.5); }
body.mt-v5 .b-side__n { margin-left: var(--sp-2); font-size: var(--fs-meta); font-weight: 500; color: var(--c-muted); }
body.mt-v5 .b-sr-l, body.mt-v5 .b-sc-l { margin: var(--sp-2) 0 0; padding: 0; list-style: none; }
body.mt-v5 .b-sr { display: grid; grid-template-columns: 24px 1fr; gap: var(--sp-2); align-items: baseline; min-height: var(--tap); padding: 8px 0; border-top: 1px solid var(--c-line); color: inherit; text-decoration: none; }
body.mt-v5 .b-sr__n { font-size: var(--fs-side-n); line-height: 1; color: var(--accent); }
body.mt-v5 .b-sr__t { font-size: var(--fs-s); line-height: 1.6; font-weight: 700; }
body.mt-v5 .b-tgs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--sp-2); }
/* MTB-D-12(案): 全丸のピルは BANNED なので tokens の --r-xs(10px)に。全丸のままにするなら例外に足す(編集部 の判断) */
body.mt-v5 .b-tg { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 10px; border: 1px solid var(--c-line); border-radius: var(--r-xs); font-size: var(--fs-s); color: inherit; text-decoration: none; }
body.mt-v5 .b-tg__n { margin-left: 4px; color: var(--c-muted); font-variant-numeric: lining-nums tabular-nums; }
body.mt-v5 .b-sc { display: block; min-height: var(--tap); padding: 8px 0; border-top: 1px solid var(--c-line); color: inherit; text-decoration: none; }
body.mt-v5 .b-sc__t { display: block; font-size: var(--fs-s); line-height: 1.6; }
body.mt-v5 .b-sc__m { display: block; margin-top: 2px; font-size: var(--fs-meta); color: var(--c-muted); }
body.mt-v5 .b-side__none { margin-top: var(--sp-2); font-size: var(--fs-s); color: var(--c-muted); }
body.mt-v5 .b-sr:hover .b-sr__t, body.mt-v5 .b-sc:hover .b-sc__t, body.mt-v5 .b-tg:hover { color: var(--accent); }

/* ==== カテゴリの一覧の右の列(手書き)。編集部 2026-10-24「航空券やニュースのカテゴリーの画面にもサイドバー」 ====
   記事の右の列と同じ幅 324px・間 56px・1100px 以上で一覧の右に出す(post.css の .b-post と同じ)。一覧の面は post.css を読まないので、
   見出しの .b-h と .b-side__h の値をここで当てる(post.css と同じ値)。aside の .b-root は tokens.css の記事の器の変数を使うため。
   一覧の下の帯(行き先・よく読まれている記事)はカテゴリでは出さない(同じ日の 編集部「なくていい」・mtb_v5p_archive_main)。
   MTB-D-35(設計承認): 1099px 以下は右の列の中身(よく読まれている記事・タグ・最近のコメント)を一覧の下に1列で出す(前は display:none で、
   下の帯も外したのでこの3つへの入口が無かった)。1100px 以上は変えない。 */
body.mt-v5 .cat-w > .b-side { display: block; min-width: 0; }
@media (max-width: 1099px) { body.mt-v5 .cat-w > .b-side { padding: 0 var(--gut) var(--sp-12); } }
body.mt-v5 .cat-w .b-h { margin: 0; font-family: var(--font-head); font-weight: var(--head-weight); line-height: 1.3; }
body.mt-v5 .cat-w .b-side__h { font-size: var(--fs-side); line-height: 1.4; }
body.mt-v5 .cat-w .b-side__sec:first-child { margin-top: 0; }
@media (min-width: 1100px) {
  body.mt-v5 .cat-w { display: grid; grid-template-columns: minmax(0, 1fr) 324px; column-gap: 56px; padding: 0 var(--gut); }
  body.mt-v5 .cat-w > .cat { min-width: 0; padding-left: 0; padding-right: 0; }
}
