
/* 改善の記録：
   - 2026-10-20 初版。抽出585記事（5サイト）のスマホ/PCの撮影で、数字が本文と同じ強さで埋もれる・項目名が12.5〜13pxで薄い・
     PCで2列の短い表が768px幅に伸びる（イヤシロ 掲載数の内訳）・金額が「1,100/円」と折れる（SP1）・「12か/月目」（招待コードナビ）を直す
   - 2026-10-20 table_review 初回（2,414ページ）：PCの間延び995件の大半が設計済みの比較表・基本情報カード（ms-cmp 660・sp1-cmp 151・ms-info 135）
     と、class だけでは縮まない時刻表（harimap jr-takarazuka）→ PCでは直接の幅指定で中身の幅に縮め、外枠も fit-content に。抽出585記事でPC 440表が縮み、横スクロール0
   - 2026-10-20 PCで元から横スクロールの42表（25ページ）を、列ガイド・最小幅を外して本文幅に収める。比較表の10〜16pxの端数スクロールは余白→セル余白→文字-12%で収める
   - 2026-10-20 後からJSで描かれる表を MutationObserver で拾う。ただし初回処理（load+900ms）より前は再処理しない（SP1で table_mobile より先に積み29表が広がった）
   - 2026-10-24 駐車場カード（.hm-parking .hm-head）で自動広告が入った時に横押し出し・切れを起こす ad_slot_risk を解消するため flex-wrap:wrap と自動広告の全幅化を追加 */
table.tl{border-collapse:separate!important;border-spacing:0!important;border:1px solid #d3dde7!important;border-radius:10px;overflow:hidden;box-shadow:0 1px 3px rgba(16,40,70,.07)}
table.tl :is(th,td){border:0!important;border-bottom:1px solid #e3e9ef!important}
table.tl :is(th,td)+:is(th,td){border-left:1px solid #e9eef3!important}
table.tl tr:last-child>:is(th,td){border-bottom:0!important}
table.tl.tl-headfill thead :is(th,td),table.tl.tl-headfill>tbody:first-child>tr:first-child.tl-hrow>:is(th,td){background:var(--ms-head,#1f3a52)!important;color:#fff!important;font-weight:700!important;font-size:max(14px,.92em)!important;letter-spacing:.02em}
table.tl.tl-headfill thead :is(th,td) *,table.tl.tl-headfill tr.tl-hrow>:is(th,td) *{color:inherit!important}
table.tl tbody tr:not(.tl-hrow):nth-child(even)>td:not([style*="background"]){background-color:#f8fafc}
table.tl .tl-label{background:#eef3f8!important;color:#14283a!important;font-weight:700!important;font-size:max(14px,.95em)!important;word-break:keep-all;overflow-wrap:break-word}
table.tl .tl-label *{color:inherit}
.tl-num{font-weight:800;color:var(--ms-head,#1f3a52);font-size:1.08em;white-space:nowrap;font-variant-numeric:tabular-nums;letter-spacing:.01em}
a .tl-num{color:inherit}
@media (min-width:768px){
  table.tl.tl-fit{width:auto!important;min-width:min(100%,440px)!important;max-width:100%!important}
  table.tl.tl-kv .tl-label{width:min(30%,13em)}
  table.tl .tl-label.tl-short,table.tl .tl-first{white-space:nowrap!important}
}
@media (max-width:767px){
  table.tl.tl-stack,table.tl.tl-stack>tbody{display:block!important;width:100%!important;min-width:0!important;border:0!important;box-shadow:none;border-radius:0;overflow:visible!important}
  table.tl.tl-stack>thead{display:none!important}
  table.tl.tl-stack>caption{display:block!important;text-align:left;font-weight:700;margin:0 0 6px}
  table.tl.tl-stack tr{display:block!important;margin:0 0 10px!important;border:1px solid #d3dde7!important;border-radius:10px!important;overflow:hidden;background:#fff}
  table.tl.tl-stack tr.tl-hrow{display:none!important}
  table.tl.tl-stack tr>:is(th,td){display:block!important;width:auto!important;min-width:0!important;max-width:none!important;border:0!important;border-top:1px solid #e9eef3!important;padding:8px 12px!important;white-space:normal!important;text-align:left!important;background:#fff!important;position:static!important}
  table.tl.tl-stack tr>:is(th,td) :not(.tl-num){white-space:normal!important;min-width:0!important}
  :has(>table.tl.tl-stack){width:auto!important;min-width:0!important;max-width:100%!important;overflow-x:visible!important}
  table.tl.tl-stack tr>:first-child{border-top:0!important;border-left:4px solid var(--ms-head,#1f3a52)!important;background:#eef3f8!important;color:#14283a!important;font-weight:700!important;font-size:15.5px!important}
  table.tl.tl-stack tr>[data-tl-h]:not(:first-child)::before{content:attr(data-tl-h);display:block;font-size:14px;font-weight:700;color:#4a5b6b;margin:0 0 2px}
  /* 旧部品 codex-mobile-table のスマホの項目名（td::before、10.5px）を14pxへ（SP1 elem-ascii-campaign ほか） */
  .post_content td[data-codex-label]::before,.entry-content td[data-codex-label]::before{font-size:14px!important;font-weight:700!important;color:#3d4a5a!important;line-height:1.4!important}
  /* table_mobile のカード：小さい項目名（12〜13px）を14pxへ、名前の行にサイト色の印 */
  .tm-label{font-size:14px!important;color:#1b2f46!important}
  .tm-card dt,.tm-card dl.tm-grid2 dt{font-size:14px!important;color:#3d4a5a!important}
  .tm-cap,.tm-sec{font-size:14px!important}
  .tm-title{border-left:4px solid var(--ms-head,#1f3a52)}
  /* 駐車場カード（.hm-parking .hm-head）：自動広告が入った時の横押し出し・切れを防ぐため折り返しを許可 */
  .hm-parking .hm-head{flex-wrap:wrap!important}
  .hm-parking .hm-head>.google-auto-placed{flex:0 0 100%!important;width:100%!important}
}
