/* features-th22.css — ベースライン(自動読込・module-base.css前提)。編集せず上書きで調整。 */
@charset "UTF-8";

._th22_module :is(h2:where(:not([data-sm-h])),:where([data-sm-h="h2"])) {
  /* SM-TH22: 受領時は 2.8rem 固定〈＝375px でも 44.8px〉で R-6〈SPでPCより小さく〉に反していた。
     トークンへ寄せて SP 24px / 768px 30.7px / PC 35.2px にする。fallback は clamp の上限と同値。
     font-family は土台 .lgx の Arial 遮断を解くための明示だが、★既定プリセットでは効かない
     〈common.css のトークンが末尾カンマで終端していて計算値時点で無効になるため。実測で Arial のまま〉。
     ゴシック／明朝／丸ゴの3プリセットでは効く。common.css の h1〜h4 への直接指定と同値になるが、
     本番の common.css がその規則を持たない可能性があるので保険として残す。 */
  text-align: left !important;
  font-size: var(--fs-h2, 2.2rem) !important;
  font-family: var(--font-heading);
  margin: 0 0 0.7em !important;
  font-weight: bold !important;
  font-style: italic !important;
}
._th22_module :is(h2:where(:not([data-sm-h])),:where([data-sm-h="h2"])) ._th22_module_initial {
  color: var(--color-heading-ink) !important;
}
._th22_module :is(h2:where(:not([data-sm-h])),:where([data-sm-h="h2"])):before {
  content: none;
}
._th22_module :is(h2:where(:not([data-sm-h])),:where([data-sm-h="h2"])):after {
  /* SM-TH22: 受領時は var(--color-primary)。淡色プリセットでは白い地に対して 1.66 しか無く
     〈非テキスト図形の物差しは 3:1〉罫が消えていた。明るい地で必ず読める濃色トークンへ。 */
  content: "";
  position: static;
  margin-top: 0.7em;
  width: 25px;
  display: block;
  height: 3px;
  background: var(--color-heading-ink, var(--color-text));
  transform: none; color: var(--color-on-primary); }
._th22_module :is(h2:where(:not([data-sm-h])),:where([data-sm-h="h2"])) ._th22_module_subtitle {
  /* SM-TH22: 受領時は 1.6rem 固定。英字見出しとの比〈受領時 0.571〉を保つ --fs-h3 へ。 */
  font-weight: normal;
  display: block;
  margin-top: 0.7em;
  font-size: var(--fs-h3, 1.2rem);
  font-family: var(--font-body);
}

._th22_module .button {
  /* ★この border は下の SM-TH22-BTN〈0-4-1 以上〉に必ず負けるので、実際には効いていない。
     受領時の記述なので残す〈原則8〉が、「primary の枠がある」と読まないこと。 */
  border: 1px solid var(--color-primary);
}
._th22_module .button.add_arrow {
  display: inline-block;
  border-radius: 0;
  padding: 1.5em 3.5em;
}
@media (max-width: 767px) {
  ._th22_module .button.add_arrow {
    display: block;
    margin: 0 auto 0.5em;
  }
}

/* SM-TH22-BTN: rest は段ごとにトークンの組を反転させ、ホバーでは【組を動かさない】。
   受領時は 2つの欠陥があった。
   〈1〉2段目 … 土台 module-base.css の .lgx .button.inverse〈0-3-0〉が
       background:#000 を当てるので、モジュール側が rest の面を書いていない結果
       どのテーマでも純黒になり、その上にモジュール指定の暗い矢印が乗って
       実測 1.32〜1.97〈物差しは 3:1〉＝ 1792行中 896行で矢印が見えなかった。
   〈2〉1段目のホバー … 土台の SM-FIX が .add_arrow:hover の白い面を奪い、
       ブランド色の面に暗い本文色 ＋ common.css の a:hover｛opacity:.8｝が重なって
       実画素 1.03 / 1.86 / 2.36 / 3.80 と 4配色すべて AA 未達だった。
   ★ホバーで面と字を入れ替える案は【採らない】。この部品は 2段目の【行の地そのものが
   --color-primary】なので、入れ替えると面が地と同色になって塗りが消える
   〈実測: 8状態中 6状態で 面 vs 地 = 1.00。1段目も on-primary が #fff の案件で同じことが起きる〉。
   受領時の 2段目は少なくとも面が残っていたので、入れ替えは【新しい劣化】になる。
   → ホバーは rest と同じトークンの組に戻し〈th32 と同じ手〉、合図は
   「字と同じ色の 3px の内枠」で出す。面も字も動かさないので比は rest と構造的に同値。 */
._th22_module ._th22_module_text_wrap a.button.add_arrow {
  background: var(--color-primary);
  color: var(--color-on-primary, #fff);
  border: 1px solid var(--color-heading-ink, var(--color-text));
  transition: box-shadow 0.3s, background-color 0.3s, color 0.3s, border-color 0.3s;
}
._th22_module ._th22_module_text_wrap a.button.add_arrow:after {
  border-color: var(--color-on-primary, #fff);
  transition: right 0.2s, border-color 0.2s;
}
._th22_module ._th22_module_text_wrap a.button.add_arrow:hover {
  /* opacity と filter は土台〈common.css の a:hover と module-base の SM-FIX〉の打ち消し。
     どちらか片方でも残ると面と字が同時に地へ寄って比が縮む。
     background と color は rest と同値を明示で書き戻すもの〈土台の hover 用パッチを潰すため〉。
     内枠は字と同じトークンなので、面との比は rest の字と同じ＝どの案件でも必ず見える。
     box-shadow はレイアウトを 1px も動かさない。 */
  background: var(--color-primary);
  color: var(--color-on-primary, #fff);
  box-shadow: inset 0 0 0 3px var(--color-on-primary, #fff);
  opacity: 1;
  filter: none;
}
._th22_module ._th22_module_text_wrap a.button.add_arrow:hover:after {
  border-color: var(--color-on-primary, #fff);
}
._th22_module ._th22_module_text_wrap a.button.add_arrow.inverse {
  /* ブランド色のベタ面の上なので rest の組を反転させる。 */
  background: var(--color-on-primary, #fff);
  color: var(--color-primary);
  border: 1px solid var(--color-on-primary, #fff);
}
._th22_module ._th22_module_text_wrap a.button.add_arrow.inverse:after {
  border-color: var(--color-primary);
}
._th22_module ._th22_module_text_wrap a.button.add_arrow.inverse:hover {
  background: var(--color-on-primary, #fff);
  color: var(--color-primary);
  box-shadow: inset 0 0 0 3px var(--color-primary);
}
._th22_module ._th22_module_text_wrap a.button.add_arrow.inverse:hover:after {
  border-color: var(--color-primary);
}
@media (forced-colors: active) {
  ._th22_module ._th22_module_text_wrap a.button.add_arrow:hover {
    /* 強制配色では box-shadow が none に落ちるので、色に依存しない合図を1つ足す。
       下線はレイアウトを動かさない。 */
    text-decoration: underline;
  }
}
._th22_module ._th22_module_text_wrap a.button.add_arrow:focus-visible {
  /* common.css の :focus-visible は outline-color を currentColor に委ねるが、リングが乗るのは
     outline-offset:2px の外側＝ボタンの面ではなく「行の地」。1段目の地は白なので、
     --color-on-primary が #fff になる案件〈濃色・高彩度〉で実測 1.00 だった。 */
  outline-color: var(--color-heading-ink, var(--color-text));
}
._th22_module .row.inverse ._th22_module_text_wrap a.button.add_arrow:focus-visible {
  outline-color: var(--color-on-primary, #fff);
}

@media (max-width: 999px) and (min-width: 768px) {
  ._th22_module .button.add_arrow {
    padding: 1em 1.8em 1em 1em;
  }
}
@media (max-width: 767px) {
  ._th22_module .button.add_arrow {
    padding: 1.2em 2em 1.2em 1.5em;
  }
}

body.two_column ._th22_module .button.add_arrow {
  /* SM-TH22: 受領時は body.two_column .button.add_arrow で、2カラムページの【他モジュールの】
     ボタンにも当たっていた〈R-10 / triage R8 の外向きの汚染〉。ルートクラス配下へ閉じる。
     ★この規則の display と margin は、下の @media(min-width:768px) にある
     ._th22_module .wrap .row ._th22_module_text_wrap .button.add_arrow〈0-6-0〉が上書きする。
     2カラムの本文列は狭く、inline-block のままだと受領時と同じ「段違いに重なる」状態に戻るので、
     2カラムでも縦積みに統一する。ここで生きているのは padding と border-radius だけ。 */
  display: inline-block;
  border-radius: 0;
  padding: 1em 1.8em 1em 1em;
}
@media (max-width: 1023px) {
  body.two_column ._th22_module .button.add_arrow {
    display: block;
    margin: 1em;
  }
}

@media (min-width: 768px) {
  ._th22_module .wrap .row {
    min-height: 370px;
    position: relative;
    margin: 0 0 3%;
    background: var(--color-bg);
    z-index: 0;
  }
  ._th22_module .wrap .row ._th22_module_img_box {
    position: absolute;
    width: 49%;
    top: 0;
    height: 100%;
    min-height: 370px;
    z-index: 1;
  }
  ._th22_module .wrap .row ._th22_module_img_box figure {
    height: 100%;
  }
  ._th22_module .wrap .row ._th22_module_img_box figure img {
    /* SM-TH22: max-height は common.css の img｛max-height:800px｝の打ち消し。部品名が
       「全高写真」なのに、行が 800px を超える案件〈本文が長い案件〉で写真の下に地が出ていた
       〈実測 1792行中 240行が 100% 未満・最小 77%〉。 */
    min-height: 370px;
    height: 100%;
    max-height: none;
  }
  ._th22_module .wrap .row ._th22_module_text_box {
    width: 98%;
    margin: 0 auto;
    position: relative;
    padding: 3em 0;
  }
  ._th22_module .wrap .row ._th22_module_text_box ._th22_module_text_wrap {
    width: 49%;
  }
  ._th22_module .wrap .row ._th22_module_text_wrap .button.add_arrow {
    /* SM-TH22: 受領時の PC は inline-block のまま余白の指定が1つも無く、要素間の空白文字
       〈0.5em ＝ 11.2px〉が折り返し後の行頭に残るせいで 2つ目だけが横へずれ、しかも縦の隙間が
       0 で段違いに重なって見えていた〈実測 1280px: x=51.2 / 62.4・隙間 0px〉。
       SP と同じ「縦に積む」に統一する。幅は字の量ぶんだけ取り、列より広くはしない。
       ★inline-block のまま余白を足すと、列幅と字数しだいで1段目だけ横並び・2段目だけ縦並びに
       なって段の対等さが崩れる〈実測で発生〉。この規則は受領時からある同じ媒体クエリの中に置く
       〈新しい @media を足すと lint の R6-bp が「件数が増えた」と鳴るため〉。 */
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 0;
  }
  ._th22_module .wrap .row ._th22_module_text_wrap .button.add_arrow + .button.add_arrow {
    margin-top: var(--space-sm, 24px);
  }
  ._th22_module .wrap .row.img_right ._th22_module_img_box {
    right: 0;
    background-position: left top;
  }
  ._th22_module .wrap .row.img_right ._th22_module_img_box figure {
    position: relative;
  }
  /* ★left と right が両方効くと幅が 0 になる(実測: 本番で2枚中1枚が幅0px)。
     反対側を auto に倒して、器いっぱいに cover で敷く。 */
  ._th22_module .wrap .row.img_right ._th22_module_img_box figure img {
    position: absolute;
    left: 0;
    right: auto;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  ._th22_module .wrap .row.img_left ._th22_module_img_box {
    left: 0;
    background-position: right top;
  }
  ._th22_module .wrap .row.img_left ._th22_module_img_box figure {
    position: relative;
  }
  ._th22_module .wrap .row.img_left ._th22_module_img_box figure img {
    position: absolute;
    right: 0;
    left: auto;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  ._th22_module .wrap .row.img_left ._th22_module_text_box {
    /* SM-TH22: 中の列が float なので、この器の padding-bottom〈3em〉が中身を含まず、
       2段目だけ「帯の下端に CTA が直付き」になっていた〈実測 1段目 67.2px / 2段目 0px〉。
       flow-root で整形文脈を作ると float が器に含まれて 1段目と同じ余白になる。
       ★overflow:hidden は使わない〈ボタンのフォーカスリングを刈るため〉。 */
    display: flow-root;
  }
  ._th22_module .wrap .row.img_left ._th22_module_text_box ._th22_module_text_wrap {
    float: right;
    padding-right: 2%;
  }
}
@media (min-width: 1000px) {
  ._th22_module .wrap ._th22_module_text_box {
    /* 固定1200pxは1024pxタブレットで横に溢れる(2026-08-09)。ビューポートに収める。
       SM-TH22: その 92vw を 92% に変えた。vw はビューポート基準なので、セクションが画面より
       狭い器に置かれると本文列が絶対配置の写真に最大 47.6% 重なっていた〈実測・器 560px〉。
       ★オーバーレイスクロールバーの環境では全幅でも 1px も変わらない
       〈1000/1024/1280/1440/1920px で 92vw と完全同値〉。クラシックスクロールバーの環境では
       % のほうがバー幅ぶん狭くなる〈実測: 1024px で 942.08 → 928.27 ＝ 13.81px。安全側〉。
       ★この差は tools/cdp.mjs が --hide-scrollbars 固定なので、既定の計測では出ない。 */
    width: min(1200px, 92%) !important;
  }
}
@media (max-width: 767px) {
  ._th22_module .wrap .row ._th22_module_img_box {
    margin: 0 0 1em;
  }
  ._th22_module .wrap .row ._th22_module_img_box figure img {
    /* max-height は PC 側と同じ理由。SP は height:auto なので、蓋に当たると
       〈width が 100% で auto ではないため〉縦だけが潰れて比が崩れる。 */
    width: 100%;
    max-height: none;
  }
  ._th22_module .wrap .row ._th22_module_text_box {
    width: 98%;
    margin: 0 auto;
    padding: 0 0 1em;
  }
}
._th22_module .row.inverse {
  background: var(--color-primary);
  color: var(--color-on-primary);
}
._th22_module .row.inverse :is(h2:where(:not([data-sm-h])),:where([data-sm-h="h2"])) {
  color: var(--color-on-primary);
}
._th22_module .row.inverse :is(h2:where(:not([data-sm-h])),:where([data-sm-h="h2"])) ._th22_module_initial {
  /* SM-TH22: 受領時は color-mix(primary 50%, black)。ブランド色の面の上にブランド色の暗色なので
     どのテーマでも面と近く、実測 1.20〜2.85 ＝ 1792行中 896行で読めなかった〈物差しは 3:1〉。
     面のインクを 15% だけ面側へ寄せる書き方に替えると、組の保証がそのまま効いて
     4配色で 3.71 以上になる。1段目の頭文字と見出しの差〈実測 1.35〉と同じくらいの控えめさ。 */
  color: color-mix(in srgb, var(--color-on-primary, #fff) 85%, var(--color-primary)) !important;
}
._th22_module .row.inverse :is(h2:where(:not([data-sm-h])),:where([data-sm-h="h2"])):after {
  /* 土台 module-base.css の .lgx .inverse h2:after〈0-2-1〉が #fff 固定にしていて、
     淡色プリセットのブランド色面の上で 1.66 だった。同じ詳細度で後から当て直す。 */
  background: var(--color-on-primary, #fff);
}
@media (max-width: 767px) {
  ._th22_module .row.inverse ._th22_module_img_box {
    background: var(--color-bg) !important;
  }
}

body.two_column ._th22_module .wrap ._th22_module_text_box {
  width: 100% !important;
}
body.two_column ._th22_module .wrap ._th22_module_img_box {
  overflow: hidden;
}
body.two_column ._th22_module .wrap ._th22_module_img_box img {
  max-width: none;
}

/* SM-FIX5-20260819 */
/* 2026-08-19: .row.inverse は background:var(--color-primary) の面。上と同じ理由で
   インク色を --color-on-primary に寄せる。 */
._th22_module .row.inverse{ --inverse-ink: var(--color-on-primary, #fff); }

/* SM-TH22-TYPO ============================================================ */
._th22_module .wrap .row ._th22_module_text_wrap {
  /* 土台 module-base.css の .lgx｛font-size:1.4em｝が本文とボタンを 22.4px にし、
     同時に em 指定の padding〈ボタンの 1.5em 3.5em〉も 1.4 倍に膨らませていた。
     器に1行当てるだけで「本文のサイズ」「em の余白」「フォントプリセット」が同時に戻る。
     ★font-family に総称名の fallback は付けない。トークンの後ろに sans-serif を足す書き方は、
     正しく定義された3プリセットで不正な家族名になって宣言ごと無効になる〈th08 で実測〉。 */
  font-size: var(--fs-body, 1rem);
  font-family: var(--font-body);
}
._th22_module ._th22_module_text_wrap p {
  /* .lgx｛line-height:1.4｝のままだと 16px の日本語本文で行が詰まる。サイト標準へ。 */
  line-height: var(--lh-body, 1.7);
}

/* SM-TH22-FOCUS =========================================================== */
._th22_module ._th22_module_img_box figure a {
  /* 写真リンクの a は display:inline で中身が絶対配置の img だけなので、受領時は【PC で】実測 0×0px
     〈768px 以上。SP は img が静的配置なので a にも矩形があった〉。
     フォーカスリングを描く箱そのものが無く、4配色すべてで1辺も描かれていなかった
     〈triage の R12b「高さが潰れた器: a」〉。箱を作って写真と一致させる。
     position:relative は下の ::after の基準。img は左右どちらかに寄せた絶対配置だが、
     器と a の矩形が完全に同値なので幾何は 1px も動かない〈実測で確認〉。 */
  display: block;
  height: 100%;
  position: relative;
}
._th22_module ._th22_module_img_box figure a:focus-visible {
  /* ★outline は写真に隠れて【1画素も描かれない】。a は非配置ブロックなので、その outline は
     絶対配置の子孫〈img〉より先に塗られる。対照実験で確認済み
     〈img を visibility:hidden にすると白リングが出る／a に position:relative を足しても出ない〉。
     そこで合図は下の ::after で描く。この outline は土台が差し替わったときの保険として残す。 */
  outline-color: #fff;
  outline-offset: -4px;
}
._th22_module ._th22_module_img_box figure a:focus-visible:after {
  /* a の ::after は img より【後】の兄弟なので、同じ絶対配置でも写真の上に出る。
     白 3px の両側に暗いリングを重ねた二重の環にして、写真が真っ白でも真っ黒でも合図が残る。
     色は写真の上に乗る要素なので #fff と rgba(0,0,0,x) を使う〈R-1 の例外〉。 */
  content: "";
  position: absolute;
  inset: 5px;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.65), inset 0 0 0 2px rgba(0, 0, 0, 0.65);
  pointer-events: none;
}

/* SM-TH22-MOTION ========================================================== */
@media (prefers-reduced-motion: reduce) {
  /* ★common.css:99 が既に全要素の transition-duration を 0.01ms へ強制で落としているので
     これは明示の二重指定。土台が差し替わっても動きが残らないようにするためだけに置いている。
     面の色と矢印の移動は【ペアで】止める〈片方だけ止めると合図が壊れる〉。 */
  ._th22_module ._th22_module_text_wrap a.button.add_arrow,
  ._th22_module ._th22_module_text_wrap a.button.add_arrow:after {
    transition: none;
  }
}
