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

/* ── 濃色タイルの面とインク ────────────────────────────────────────────────
   受領時は面が color-mix(primary 80%, black) でインクが var(--color-on-primary) だった。
   on-primary は【素の primary に対して】輝度から自動決定される色なので、
   そこから暗くした面の上では保証が外れる。
   実測(.tmp-probe/th11-tone.mjs / 想定ブランド色 216色): 受領時は 48色(22%)が AA 未達・最小 3.06。
   既定配色(#8294a6)でも 4.06 で、triage R6 が致命扱いにしていた。
   インクが #111 になる案件では濃くするほど比が下がり、#fff になる案件では上がる。
   CSS では分岐できないので「必ず #fff 側になるところまで濃くする」しか保証する方法が無い。
   解析上の上限は 46.5%(primary が純白のときのグレー 118.7 が #fff に対して 4.5:1)。
   40% を採ると【どんなブランド色でも 5.74:1 以上】(216色すべて合格)。 */
._th11_module {
  --th11-deep: color-mix(in srgb, var(--color-primary) 40%, #000);
}

._th11_module ._th11_module_wrap .row .col :is(h2:where(:not([data-sm-h])),:where([data-sm-h="h2"])) {
  font-weight: bold;
  /* 受領時は 2rem(32px) 固定で、375px でも 32px のまま(R-6「モバイルは PC より小さく」に反する)。
     --fs-mod-title は clamp(1.25rem, 2.6vw, 1.6875rem) = SP 20px / PC 27px。
     実測(.tmp-probe/th11-decide.mjs / Range.getClientRects で行ボックスを直接カウント):
     PC の最も狭い列(769px・内寸 130.8px)で 5字=受領時2行→1行 / 10字=3行→2行 / 16字=4行→3行。
     ★fallback は「本番サイトの common.css にトークンの定義が無い」場合にだけ効く
     (module-base.css の SM-FIX-20260819 コメントに実績あり)。
     「空の値で出荷される」場合は IACVT になり fallback は効かず、土台の 22.4px を継ぐ
     ＝本文と同寸になる。CSS 側では防げないので先方指摘として出している。 */
  font-size: var(--fs-mod-title, 1.6875rem);
  /* ★見出しの色は .col からの継承では決まらない。土台に `.lgx h2｛color: var(--color-text)｝` (0,1,1)
     があり、【直接指定は継承に勝つ】ため、この1行を消すと 4配色すべてで見出しだけ
     --color-text に落ちる(実測: 既定配色で rgb(44,62,80)・比 3.52 と 1.91 まで低下)。
     インクはタイルごとに --th11-ink で決める。万一 --th11-ink が届かなくても
     currentColor ＝ .col から継承した色に戻るだけで、読めなくなることはない。 */
  color: var(--th11-ink, currentColor);
  /* 保険。common.css の 素の見出し要素への font-family 指定が既に当たっているので
     出荷時の _shared では冗長だが、その規則を持たない本番 common.css に備えて明示する。 */
  font-family: var(--font-heading);
  margin: 0 auto 0.7em;
  text-align: center;
}
._th11_module ._th11_module_wrap .row .col :is(h2:where(:not([data-sm-h])),:where([data-sm-h="h2"])):after {
  content: none;
}
._th11_module ._th11_module_wrap .row .col :is(h2:where(:not([data-sm-h])),:where([data-sm-h="h2"])):before {
  content: none;
}
._th11_module ._th11_module_wrap .row .col {
  margin: 0;
  float: left;
  padding: 4%;
  position: relative;
  /* flex アイテムの自動最小幅(min-width:auto)で、分割できない長い文字列が入った列だけが
     基準幅より広がって折り返すのを防ぐ。4列 × 25% は合計ちょうど 100% なので縮みは起きない。 */
  min-width: 0;
}
._th11_module ._th11_module_wrap .row .col:nth-child(odd) {
  background: var(--color-primary);
  color: var(--color-on-primary);
  --th11-ink: var(--color-on-primary);
}
._th11_module ._th11_module_wrap .row .col:nth-child(even) {
  /* ★地を2層にする。トークンが「空の値」で届くと var() の fallback は効かず(IACVT)、
     単層だと background が transparent に落ちて白地に白文字(比 1.00)になる。
     床に #000 を敷いておけば、最悪でも「黒地に白文字(21:1)」で読める。 */
  background-color: #000;
  background-image: linear-gradient(var(--th11-deep), var(--th11-deep));
  /* 面の輝度は primary が純白でも 0.0742 以下なので #fff は常に 5.74:1 以上。
     R-2 が防ごうとしている「淡い面に白文字で消える」は構造上起こり得ない。 */
  color: #fff;
  --th11-ink: #fff;
}
._th11_module ._th11_module_wrap .row .col p {
  /* 土台 .lgx の font-size:1.4em がそのまま効いて 22.4px だった(769px で1行 4.6字)。
     サイト共通の本文サイズへ戻す。 */
  font-size: var(--fs-body, 1rem);
  line-height: var(--lh-body, 1.7);
  /* 土台 .lgx の font-family:Arial 指定が body の var(--font-body) を遮断するため、
     4プリセットすべてで本文が Arial になっていた(704/704 パターン)。
     ★これで解けるのは ゴシック / 明朝 / 丸ゴシック の3プリセットだけ。
     既定プリセットは common.css の --font-body が末尾カンマ終端で計算値時点で無効になるため、
     ここで明示しても Arial のまま（モジュール側では直せない・先方指摘）。 */
  font-family: var(--font-body);
}
._th11_module ._th11_module_wrap .row .col a {
  /* ★キーボードのフォーカスリングの色をタイルのインクに合わせる。
     common.css の :focus-visible は outline を currentColor で描くが、土台の
     .lgx a への color 指定（--color-text）が継承より優先されるため、
     リングがタイルの面と同化していた。実測(1280px・実画素):
     既定 タイル2 で 1.03 / 淡色 1.43 / 高彩度 1.10（受領時も 2.36 / 4.41 / 2.28 で AA 未満）。
     --th11-ink を渡すと、リングは見出しと同じ色＝面に対して必ず読める色になる。
     詳細度 (0,5,0) で土台の .lgx a (0,2,0) に勝つ。 */
  color: var(--th11-ink, currentColor);
  text-indent: 1000%;
  white-space: nowrap;
  /* 「リンク」のグリフが画面の外へ最大 4387px 出ていた。見えていないのは
     土台の .lgx の overflow-x:clip が刈っているからで、部品側では始末していなかった。
     自分の箱で切る(outline は箱の外に描かれるのでキーボードフォーカスは見えたまま)。 */
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

/* ── 4タイルの高さを揃える ────────────────────────────────────────────────
   元テーマは jQuery で高さを揃えていたが、変換時に JS が削除されている
   (._th11_module_wrap_tile はそのフックの残骸。当たる規則は1つも無い)。
   色ベタのタイルなので高さのばらつきが下端のガタつきとして出ていた
   (実測: 同一行の最大差 769px で 341.2px / 1200px以上で 203.6px)。
   float を flex に替えると、同じ行の要素が align-items:stretch で自動的に揃う。
   ★列幅は既存の 25% / 50% / 100% をそのまま使う(flex アイテムでも width は効く)。 */
._th11_module ._th11_module_wrap .row {
  display: flex;
  flex-wrap: wrap;
}
/* 土台の clearfix（.lgx .row の :after）は flex では余分なアイテムになるので殺す。 */
._th11_module ._th11_module_wrap .row:after {
  content: none;
}

@media (min-width: 1200px) {
  ._th11_module {
    position: relative;
  }
  ._th11_module ._th11_module_wrap {
    width: 1200px;
    margin: 0 auto;
    /* ★帯の位置基準を器そのものにする。受領時は基準が ._th11_module だったため、
       top:0/bottom:0 が土台 section.lgx の上下 padding を含んでしまい、
       タイル行の上下 84〜96px にも帯が出て色の切れ目の位置が食い違っていた。 */
    position: relative;
  }
  ._th11_module ._th11_module_wrap:after, ._th11_module ._th11_module_wrap:before {
    content: "";
    top: 0;
    bottom: 0;
    position: absolute;
    /* 既定は block。2カラム版面では器が --th11-band: none を渡すので帯が消える。 */
    display: var(--th11-band, block);
    /* ★受領時の z-index:-1 を外した。._th11_module は position:relative でも z-index:auto なので
       積み重ね文脈を作らず、-1 の擬似要素はルートの負レイヤーへ抜けて
       土台 .lgx の白い地の【下】に潜る。実測: 1280/1920px とも左右端の画素が
       rgb(255,255,255) で、README の「PCでは画面幅いっぱいに色が伸びる」が1画素も描かれていなかった。 */
  }
  /* 器の外側だけを埋める。left/right を両方置くので幅は器の外の余白ぴったりになり、
     画面の外へはみ出さない(受領時の width:50vw は器の下に潜り込む形だった)。 */
  ._th11_module ._th11_module_wrap:before {
    right: 100%;
    left: calc(50% - 50vw);
    background: var(--color-primary);
  }
  ._th11_module ._th11_module_wrap:after {
    left: 100%;
    right: calc(50% - 50vw);
    background-color: #000;
    background-image: linear-gradient(var(--th11-deep), var(--th11-deep));
  }
}
@media (min-width: 769px) {
  ._th11_module ._th11_module_wrap .row .col {
    /* 受領時は transition:0.5s ＝ transition-property:all。色だけでなく【幅・高さ・padding まで】
       0.5s かけて補間されるため、768→769px をまたぐと列幅が
       384.5→327.6→224.2→194.2→192.3 と動き、その途中で 4枚が「3枚+1枚」に割れていた
       (実測 .tmp-probe/th11-trans.mjs)。ホバーに必要なのは transform と box-shadow だけ。 */
    transition: transform 0.5s, box-shadow 0.5s;
  }
  ._th11_module ._th11_module_wrap .row .col:hover {
    transition: transform 0.15s, box-shadow 0.15s;
    transform: translateY(-5px) translateX(-5px);
    box-shadow: 5px 5px 0 #000;
  }
}
/* 動きを減らす設定ではホバーの持ち上げを止める。
   ★影も一緒に消す。この影は「持ち上げで空いた 5px の隙間をちょうど埋める」ために
   transform と同じ量だけずらしてあるので、transform だけ止めると
   影が箱の右と下へ純粋にはみ出し、白い地の上に 5px の黒帯が出る（レビュー指摘・実測で確認）。
   影は単体では成立しない意匠なので、ペアで止める。
   ★対象は .col だけ。擬似要素(左右の色帯)には transform を1つも持たせていないので、
   ここで ::before/::after を巻き込むと「動きではなく形」を壊す恐れがある。 */
@media (prefers-reduced-motion: reduce) {
  ._th11_module ._th11_module_wrap .row .col,
  ._th11_module ._th11_module_wrap .row .col:hover {
    transition: none;
    transform: none;
    box-shadow: none;
  }
}
@media (max-width: 768px) and (min-width: 481px) {
  ._th11_module ._th11_module_wrap .row .col {
    width: 50%;
  }
  ._th11_module ._th11_module_wrap .row .col:nth-child(odd) {
    clear: both;
    float: left;
  }
  ._th11_module ._th11_module_wrap .row .col:nth-child(1), ._th11_module ._th11_module_wrap .row .col:nth-child(4) {
    background: var(--color-primary);
    color: var(--color-on-primary);
    --th11-ink: var(--color-on-primary);
  }
  ._th11_module ._th11_module_wrap .row .col:nth-child(2), ._th11_module ._th11_module_wrap .row .col:nth-child(3) {
    background-color: #000;
    background-image: linear-gradient(var(--th11-deep), var(--th11-deep));
    color: #fff;
    --th11-ink: #fff;
  }
}
@media (max-width: 480px) {
  ._th11_module ._th11_module_wrap .row .col {
    width: 100%;
    padding: 5%;
  }
  ._th11_module ._th11_module_wrap .row .col:after {
    content: "";
    clear: both;
    height: 0;
    display: block;
    visibility: hidden;
  }
  ._th11_module ._th11_module_wrap_tile .col {
    height: auto !important;
  }
}

body.two_column ._th11_module ._th11_module_wrap {
  width: 100%;
  background: var(--color-primary); color: var(--color-on-primary);
  /* ★2カラム版面では左右の色帯を出さない。帯の位置は calc(50% - 50vw) ＝
     「器の中心＝画面の中心」を前提にしているが、サイドバーがあると器は画面中心から
     ずれる（実測 1600px・本文 68% で右帯が 224px サイドバー側へ寄る）。
     実際には器の外へ出た帯を土台の overflow が刈るので描かれないが、その1行に依存したくない。
     2カラムでは器そのものが上の primary で塗られるので帯は元々不要。
     ★新しいセレクタを足さずに既存の規則へ変数を置くことで、
     triage の R10（プレビュー単体では body.two_column が無いので死んで見える）を増やさない。 */
  --th11-band: none; }
body.two_column ._th11_module ._th11_module_wrap .col {
  padding: 3%;
}
@media (max-width: 1220px) and (min-width: 481px) {
  body.two_column ._th11_module ._th11_module_wrap .row .col {
    width: 50%;
  }
  body.two_column ._th11_module ._th11_module_wrap .row .col:nth-child(odd) {
    clear: both;
    float: left;
  }
  body.two_column ._th11_module ._th11_module_wrap .row .col:nth-child(1), body.two_column ._th11_module ._th11_module_wrap .row .col:nth-child(4) {
    background: var(--color-primary);
    color: var(--color-on-primary);
    --th11-ink: var(--color-on-primary);
  }
  body.two_column ._th11_module ._th11_module_wrap .row .col:nth-child(2), body.two_column ._th11_module ._th11_module_wrap .row .col:nth-child(3) {
    background-color: #000;
    background-image: linear-gradient(var(--th11-deep), var(--th11-deep));
    color: #fff;
    --th11-ink: #fff;
  }
}
@media (max-width: 480px) {
  body.two_column ._th11_module ._th11_module_wrap .row .col {
    width: 100%;
    padding: 5%;
  }
  body.two_column ._th11_module ._th11_module_wrap .row .col:after {
    content: "";
    clear: both;
    height: 0;
    display: block;
    visibility: hidden;
  }
}
