@charset "UTF-8";
/* 見出しタグ整理用の土台（2026-11-30）
   見出しを div に降格した要素・別レベルの見出しに替えた要素に、元の見出しの見た目を与える。
   - 各CSSの hN セレクタは :is(hN:where(:not(.hx)),...:where(.hN-x)) に書き換え済み
   - ここではブラウザ標準の見出しスタイル（作者CSSが指定していない部分）を再現する
   - :where() で詳細度0にしているので、各CSSの指定が必ず優先される */
:where(.h1-x, .h2-x, .h3-x, .h4-x, .h5-x, .h6-x) { display: block; font-weight: bold; }
:where(.h1-x) { font-size: 2em; margin-block: 0.67em; }
:where(.h2-x) { font-size: 1.5em; margin-block: 0.83em; }
:where(.h3-x) { font-size: 1.17em; margin-block: 1em; }
:where(.h4-x) { font-size: 1em; margin-block: 1.33em; }
:where(.h5-x) { font-size: 0.83em; margin-block: 1.67em; }
:where(.h6-x) { font-size: 0.67em; margin-block: 2.33em; }

/* 画面には出さず、検索エンジン・読み上げ向けに残す見出し */
.hx-sr {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* div と span を入れ替えた要素（W3C: label の中に div 不可 など）に元の表示形式を与える */
:where(.div-x) { display: block; }
:where(.span-x) { display: inline; }
:where(.p-x) { display: block; margin-block: 1em; }

/* 属性から移したもの（W3C: iframe の frameborder は廃止、width に % は不可）。
   元の属性と同じく、どのCSS指定よりも弱い（詳細度0） */
:where(.w3c-noborder) { border: 0; }
:where(.w3c-w100) { width: 100%; }
