/* 車買取くらべ 共通スタイル
   デザインシステム「MILE MARK — THE EDITORIAL EDITION」（2026-11-29 第5版）
   Graphite #20272A／Road Ivory #F4F1E8（背景）／Signal Lime #D9F06A（アクセント）
   Asphalt #626C70／Paper White #FFFFFF／Route Orange #EF704B（CTA）
   Mist #E8E7DF／Line Gray #D5D6CE
   背景3階層: ベース=アイボリー／フローティング=白／ディープ=グラファイト
   カード役割分化: Editorial（角丸10px・影中）／Information（角丸8px・影弱）／Feature（角丸12px・影強）
   フォント: Noto Sans JP ＋ Archivo（英字）＋ Roboto Condensed（数字） */
:root{
  --graphite:#20272A;
  --graphite-dark:#171C1E;
  --graphite-2:#303A3D;
  --line-dark:#465154;
  --ivory:#F4F1E8;
  --lime:#D9F06A;
  --asphalt:#626C70;
  --asphalt-light:#9AA5A8;
  --paper:#FFFFFF;
  --orange:#EF704B;
  --orange-dark:#D95A36;
  --mist:#E8E7DF;
  --line:#D5D6CE;
  --road:rgba(98,108,112,.55);
  --shadow-info:0 2px 10px rgba(32,39,42,.05);
  --shadow-edit:0 4px 18px rgba(32,39,42,.08);
  --shadow-feature:0 8px 28px rgba(32,39,42,.10);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:"Noto Sans JP","Hiragino Kaku Gothic ProN","Hiragino Sans","Yu Gothic",Meiryo,sans-serif;
  color:var(--graphite);
  background:var(--ivory);
  line-height:1.8;
  font-size:15px;
}
a{color:var(--graphite)}
img{max-width:100%}
[id]{scroll-margin-top:88px}

/* ヘッダー（グラファイト・72px・sticky・全ページ共通） */
.site-header{
  background:var(--graphite);
  color:var(--ivory);
  position:sticky;
  top:0;
  z-index:50;
  border-bottom:1px solid var(--line-dark);
}
.site-header .inner{
  max-width:1120px;margin:0 auto;padding:0 32px;
  min-height:72px;
  display:flex;align-items:center;gap:12px 24px;
  position:relative;
}
.site-logo{
  display:flex;align-items:center;gap:12px;
  color:var(--ivory);text-decoration:none;line-height:1.15;
}
.logo-mark{flex:none;display:block}
.logo-main{
  font-family:"Archivo",sans-serif;
  font-size:22px;font-weight:800;letter-spacing:.06em;color:#fff;
  display:flex;flex-direction:column;
}
.logo-sub{
  font-family:"Archivo",sans-serif;
  font-size:9px;font-weight:700;letter-spacing:.3em;
  color:var(--asphalt-light);
  margin-top:3px;
}
.logo-jp{
  font-size:13px;font-weight:700;color:var(--ivory);white-space:nowrap;
  border-left:1px solid var(--line-dark);padding-left:12px;
}
.site-nav{display:flex;flex-wrap:wrap;gap:4px 20px;margin-left:auto}
.site-nav a{color:#E9E6DC;text-decoration:none;font-size:14px;font-weight:500}
.site-nav a:hover{text-decoration:underline}
.header-cta{
  background:var(--orange);color:#fff !important;text-decoration:none;
  font-weight:700;font-size:14px;
  padding:10px 18px;border-radius:4px;white-space:nowrap;
}
.header-cta:hover{background:var(--orange-dark)}
/* ハンバーガー（スマホ用・CSSのみで開閉） */
.nav-toggle{position:absolute;opacity:0;pointer-events:none}
.nav-burger{display:none}

/* 広告・PR帯（全文維持） */
.pr-notice{
  background:var(--mist);color:var(--asphalt);
  font-size:12px;line-height:1.6;text-align:center;
  padding:8px 16px;
  border-bottom:1px solid var(--line);
}

/* レイアウト */
.container{max-width:1120px;margin:0 auto;padding:30px 32px 64px}
.breadcrumb{font-size:12.5px;color:var(--asphalt);margin-bottom:8px}
.breadcrumb a{color:var(--asphalt)}
h1{font-size:46px;line-height:1.4;font-weight:900;color:var(--graphite);margin:8px 0 14px}
h2{
  font-size:25px;font-weight:800;color:var(--graphite);
  margin:52px 0 18px;line-height:1.45;
  padding-top:16px;position:relative;z-index:0;
}
h2::before{
  content:"";position:absolute;top:0;left:0;
  width:34px;height:3px;background:var(--graphite);
}
h2.sec-label{padding-top:0}
h2.sec-label::before{
  content:attr(data-label);
  position:static;display:block;width:fit-content;
  height:auto;
  font-family:"Archivo",sans-serif;
  font-size:11px;font-weight:700;letter-spacing:.12em;
  color:var(--asphalt);
  background:linear-gradient(var(--lime),var(--lime)) left bottom/34px 3px no-repeat;
  padding:0 0 7px;
  margin-bottom:10px;
}
/* セクション番号の透かし */
h2.sec-label[data-num]::after{
  content:attr(data-num);
  position:absolute;right:0;top:-14px;z-index:-1;
  font-family:"Roboto Condensed",sans-serif;
  font-weight:700;font-size:84px;line-height:1;
  color:rgba(32,39,42,.07);
  pointer-events:none;
}
h3{font-size:19px;font-weight:700;color:var(--graphite);margin:24px 0 8px}
p{margin:10px 0}
ul,ol{margin:10px 0;padding-left:1.4em}
li{margin:4px 0}
.lead{font-size:15px}

/* ヒーロー（index・グラファイトの濃色セクション・写真主導） */
.hero{
  background:var(--graphite);color:var(--ivory);
  margin:-30px -32px 0;
  padding:34px 32px 30px;
}
.hero-label{
  font-family:"Archivo",sans-serif;
  font-weight:700;font-size:11px;letter-spacing:.12em;
  color:var(--lime);
  margin:0 0 16px;
}
.hero-img{line-height:0;margin:0 -32px 24px;position:relative}
.hero-img img{
  width:100%;height:270px;object-fit:cover;display:block;
}
.hero-img::after{
  content:"";position:absolute;inset:0;
  background:rgba(10,13,14,.26);
}
.hero h1{
  font-size:32px;line-height:1.45;font-weight:900;
  margin:0 0 12px;color:#fff;
}
.hero-sub{font-size:14.5px;line-height:1.8;color:#C9CCC2;margin:0;max-width:640px}
.hero-cta{
  display:inline-flex;align-items:center;justify-content:center;
  background:var(--orange);color:#fff !important;text-decoration:none;
  font-weight:700;font-size:16px;
  height:54px;padding:0 36px;border-radius:4px;
  min-width:320px;
  margin-top:22px;
}
.hero-cta:hover{background:var(--orange-dark)}
/* 道路センターラインの装飾 */
.hero-road{
  height:14px;margin-top:28px;
  background:
    linear-gradient(var(--asphalt),var(--asphalt)) top/100% 2px no-repeat,
    linear-gradient(var(--asphalt),var(--asphalt)) bottom/100% 2px no-repeat,
    repeating-linear-gradient(90deg,var(--lime) 0 26px,transparent 26px 44px) center/100% 3px no-repeat;
  opacity:.85;
}
/* ヒーロー数字パネル（濃色帯・数字は大きくそのまま見せる） */
.hero-panel{
  display:flex;
  border-top:1px solid var(--line-dark);
  margin-top:26px;padding-top:22px;
}
.hp-item{
  flex:1;display:flex;align-items:center;gap:14px;
  padding:0 18px;
}
.hp-item:first-child{padding-left:0}
.hp-item + .hp-item{border-left:1px solid var(--line-dark)}
.hp-num{
  font-family:"Roboto Condensed",sans-serif;font-weight:700;font-size:56px;line-height:1;
  color:#fff;
}
.hp-label{font-family:"Archivo",sans-serif;font-size:11px;font-weight:700;letter-spacing:.12em;line-height:1.5;color:var(--asphalt-light)}
/* ヒーロー直下の3ステップ帯（アイコン付き） */
.hero-steps{
  list-style:none;display:grid;grid-template-columns:repeat(3,1fr);gap:14px;
  margin:24px 0 28px;padding:0;
}
.hero-steps li{
  background:var(--paper);border-radius:8px;box-shadow:var(--shadow-info);
  padding:18px;margin:0;
  display:flex;flex-direction:column;gap:5px;
}
.sf-ic{
  width:60px;height:60px;border-radius:50%;
  background:var(--graphite);color:var(--lime);
  display:flex;align-items:center;justify-content:center;
  margin-bottom:6px;
}
.sf-ic svg{width:28px;height:28px}
.hs-num{font-family:"Archivo",sans-serif;font-size:11px;font-weight:800;letter-spacing:.12em;color:var(--asphalt)}
.hs-text{font-size:15.5px;font-weight:800;color:var(--graphite)}

/* 結論ボックス */
.answer{
  background:var(--paper);
  border:1px solid var(--line);
  border-top:3px solid var(--graphite);
  border-radius:8px;
  box-shadow:var(--shadow-info);
  padding:18px 22px;
  margin:18px 0;
}
.answer .answer-title{font-weight:800;color:var(--graphite);margin:0 0 6px}
.answer p{margin:6px 0}

/* 注意書き */
.caution{
  background:var(--mist);
  border:1px solid var(--line);
  border-radius:8px;
  padding:12px 16px;
  font-size:13.5px;
  margin:18px 0;
}
.caution .caution-title{font-weight:800;color:var(--graphite);margin:0 0 4px}

/* ページ内目次 */
.toc{
  background:var(--paper);border:1px solid var(--line);border-radius:8px;
  box-shadow:var(--shadow-info);
  padding:16px 20px;margin:24px 0 8px;
}
.toc-title{font-weight:800;margin:0 0 10px}
.toc-list{
  list-style:none;margin:0;padding:0;
  display:grid;grid-template-columns:1fr 1fr;gap:6px 24px;
}
.toc-list li{margin:0}
.toc-list a{
  display:flex;justify-content:space-between;align-items:center;
  text-decoration:none;font-weight:700;font-size:15px;
  padding:8px 2px;border-bottom:1px solid var(--line);
}
.toc-list a::after{content:"↓";color:var(--asphalt);font-size:13px}
.toc-list a:hover{color:var(--orange-dark)}

/* 比較早見表（ミニカード・第4版の構成を維持） */
.quick-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:16px 0 8px}
.quick-card{
  background:var(--paper);border:1px solid var(--line);border-radius:8px;
  box-shadow:var(--shadow-info);
  padding:16px;display:flex;flex-direction:column;
}
.q-head{display:flex;align-items:baseline;gap:8px;margin:0 0 10px;flex-wrap:wrap}
.q-rank{
  font-family:"Roboto Condensed",sans-serif;font-weight:700;font-size:22px;line-height:1;
  color:var(--graphite);
}
.q-name{font-size:17px;font-weight:800}
.q-rows{margin:0 0 10px}
.q-rows > div{display:flex;gap:10px;padding:6px 0;border-bottom:1px solid var(--line);font-size:13.5px;line-height:1.6}
.q-rows dt{flex:0 0 92px;font-weight:700;color:var(--asphalt);font-size:12px;padding-top:2px}
.q-rows dd{margin:0}
.q-feature{font-size:13.5px;line-height:1.7;margin:0 0 12px}
.q-link{
  margin-top:auto;font-weight:700;font-size:14px;text-decoration:none;
  color:var(--orange-dark);
}
.q-link:hover{text-decoration:underline}

/* 比較表（PC: テーブル） */
.table-scroll-hint{display:none}
.table-wrap{
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--paper);
  box-shadow:var(--shadow-info);
}
table.compare{
  border-collapse:collapse;
  width:100%;
  font-size:14px;
}
table.compare th,table.compare td{
  border-bottom:1px solid var(--line);
  padding:12px 14px;
  text-align:left;
  vertical-align:top;
}
table.compare thead th{
  background:var(--graphite);
  color:#fff;
  font-size:13.5px;
  white-space:nowrap;
}
table.compare tbody th{
  background:var(--ivory);
  color:var(--graphite);
  font-weight:800;
  font-size:16px;
  min-width:150px;
}
table.compare tbody tr:nth-child(even) td{background:#FBFAF6}
table.compare .check{color:var(--asphalt)}
table.compare tr:last-child th,table.compare tr:last-child td{border-bottom:none}
table.compare td.c-key-a .key-num{
  font-family:"Roboto Condensed","Noto Sans JP",sans-serif;
  font-size:23px;font-weight:700;color:var(--graphite);
}
/* カード上部の汎用ディテール写真（スマホカード形式でのみ表示） */
.rank-photo{display:none}

/* PC表形式: 列幅を固定してCTAのはみ出しを防ぐ */
@media (min-width:1024px){
  table.compare{table-layout:fixed}
  table.compare thead th{white-space:normal}
  table.compare th:nth-child(1),table.compare td:nth-child(1){width:12%}
  table.compare th:nth-child(2),table.compare td:nth-child(2){width:10.5%}
  table.compare th:nth-child(3),table.compare td:nth-child(3){width:11%}
  table.compare th:nth-child(4),table.compare td:nth-child(4){width:9.5%}
  table.compare th:nth-child(5),table.compare td:nth-child(5){width:17.5%}
  table.compare th:nth-child(6),table.compare td:nth-child(6){width:12.5%}
  table.compare th:nth-child(7),table.compare td:nth-child(7){width:13%}
  table.compare th:nth-child(8),table.compare td:nth-child(8){width:14%}
  table.compare td.c-cta{padding:12px 8px}
  table.compare td.c-cta .cta{font-size:13.5px;padding:0 8px}
}

/* CTAボタン・公式リンク */
.cta{
  display:inline-flex;align-items:center;justify-content:center;
  background:var(--orange);
  color:#fff !important;
  text-decoration:none;
  font-weight:700;
  font-size:16px;
  height:52px;
  padding:0 22px;
  border-radius:4px;
  margin:4px 0;
  white-space:nowrap;
}
.cta:hover{background:var(--orange-dark)}
.official-link{font-size:13px;color:var(--asphalt)}
.pr-badge{
  display:inline-block;
  font-family:"Archivo",sans-serif;
  background:var(--graphite);color:#fff;
  font-size:11px;font-weight:700;letter-spacing:.08em;
  border-radius:3px;padding:1px 6px;
  margin-left:8px;vertical-align:middle;
}

/* 公式情報で確認したい項目 */
.check-box{
  background:var(--paper);border:1px solid var(--line);border-left:4px solid var(--lime);
  border-radius:8px;box-shadow:var(--shadow-info);
  padding:14px 18px;margin:18px 0;
}
.check-box-title{font-weight:800;margin:0 0 4px}
.check-box p{margin:4px 0}
.check-box ul{margin:6px 0}

/* 査定方式カード（見出し部はグラファイト帯＋アイコンプレート） */
.type-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:16px 0 8px}
.type-card{
  background:var(--paper);
  border-radius:10px;box-shadow:var(--shadow-edit);
  overflow:hidden;
}
.type-band{
  background:var(--graphite);color:var(--ivory);
  display:flex;align-items:center;gap:14px;
  padding:14px 18px;
}
.type-ic{
  width:64px;height:64px;flex:none;
  border:1px solid var(--line-dark);border-radius:8px;
  display:flex;align-items:center;justify-content:center;
  color:var(--lime);
}
.type-ic svg{width:32px;height:32px}
.type-band-text{min-width:0}
.type-label{
  font-family:"Archivo",sans-serif;font-size:11px;font-weight:800;letter-spacing:.12em;
  color:var(--asphalt-light);margin:0;
}
.type-band h3{margin:2px 0 0;color:#fff;font-size:20px}
.type-card > img{width:100%;aspect-ratio:16/9;object-fit:cover;display:block}
.type-body{padding:16px 18px}
.type-body p{font-size:14.5px}
.type-points{background:var(--mist);border-radius:8px;padding:12px 14px;margin-top:12px}
.type-points .tp-title{font-weight:800;font-size:13.5px;margin:0 0 4px}
.type-points ul{margin:4px 0;font-size:13.5px}

/* 査定額の内訳表 */
.factors-wrap{overflow-x:auto}
table.factors{border-collapse:collapse;width:100%;font-size:14.5px;background:var(--paper)}
table.factors th,table.factors td{
  border-bottom:1px solid var(--line);padding:12px 14px;text-align:left;vertical-align:top;
}
table.factors thead th{background:var(--graphite);color:#fff;font-size:13.5px;white-space:nowrap}
table.factors tbody th{background:var(--ivory);font-weight:800;white-space:nowrap;min-width:120px}
table.factors tr:last-child th,table.factors tr:last-child td{border-bottom:none}

/* 売る流れ プロセス図（アイコン＋番号＋見出し＋説明） */
.flow-steps{
  list-style:none;
  display:grid;grid-template-columns:repeat(3,1fr);gap:14px;
  margin:16px 0;padding:0;position:relative;
}
.flow-steps li{
  background:var(--paper);border:1px solid var(--line);border-radius:8px;
  box-shadow:var(--shadow-info);
  padding:18px;margin:0;position:relative;
}
.flow-steps li:not(:last-child)::after{
  content:"→";position:absolute;right:-13px;top:34px;z-index:2;
  font-weight:900;color:var(--asphalt);font-size:15px;
}
.fs-ic{
  width:60px;height:60px;border-radius:50%;
  background:var(--graphite);color:var(--lime);
  display:flex;align-items:center;justify-content:center;
  margin-bottom:10px;
}
.fs-ic svg{width:28px;height:28px}
.fs-num{
  font-family:"Roboto Condensed",sans-serif;font-weight:700;font-size:15px;line-height:1;
  letter-spacing:.14em;color:var(--asphalt);display:block;margin-bottom:4px;
}
.fs-title{display:block;font-weight:800;font-size:16.5px;margin-bottom:4px}
.flow-steps p{font-size:14px;margin:4px 0}

/* アコーディオン（details/summary） */
.acc{margin:16px 0}
.acc details{
  background:var(--paper);border:1px solid var(--line);border-radius:8px;
  box-shadow:var(--shadow-info);
  margin:0 0 10px;
}
.acc summary{
  cursor:pointer;font-weight:800;font-size:15.5px;
  padding:14px 42px 14px 16px;position:relative;list-style:none;
}
.acc summary::-webkit-details-marker{display:none}
.acc summary::after{
  content:"+";position:absolute;right:16px;top:50%;transform:translateY(-50%);
  font-family:"Roboto Condensed",sans-serif;font-size:22px;font-weight:700;color:var(--asphalt);
}
.acc details[open ] summary::after{content:"−"}
.acc details > p{padding:0 16px 14px;margin:0;font-size:14.5px}

/* 注意点カード */
.note-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:16px 0 8px}
.note-card{
  display:flex;gap:14px;align-items:flex-start;
  background:var(--paper);border:1px solid var(--line);border-radius:8px;
  box-shadow:var(--shadow-info);
  padding:16px;
}
.note-card img{
  width:92px;height:92px;flex:0 0 92px;
  object-fit:cover;border-radius:8px;
}
.note-card h3{font-size:16.5px;margin:0 0 4px}
.note-card p{font-size:14px;margin:0}

/* カード型リンク */
.card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px;margin:16px 0}
.card{
  background:var(--paper);border:1px solid var(--line);border-radius:8px;
  box-shadow:var(--shadow-info);
  padding:18px;text-decoration:none;color:var(--graphite);display:block;
}
.card:hover{border-color:var(--graphite)}
.card .card-title{font-weight:800;font-size:16.5px;color:var(--graphite);margin:0 0 6px}
.card p{font-size:13.5px;color:var(--asphalt);margin:0}

/* ガイド一覧（雑誌化: 最初の記事を大きく） */
.guide-grid{grid-template-columns:1fr 1fr}
.g-card{
  padding:0;overflow:hidden;
  border-radius:10px;box-shadow:var(--shadow-edit);
}
.g-card img{width:100%;aspect-ratio:16/9;object-fit:cover;display:block}
.g-card .card-title{padding:14px 16px 0}
.g-card p:not(.card-title){padding:0 16px 16px}
.guide-grid .g-card:first-child{grid-column:1/-1}
.guide-grid .g-card:first-child img{aspect-ratio:21/9}
.guide-grid .g-card:first-child .card-title{font-size:20px}

/* 編集方針（濃色セクション） */
.policy-sec{
  background:var(--graphite);color:#E9E6DC;
  margin:52px -32px 0;
  padding:38px 32px 42px;
}
.policy-sec h2{color:#fff;margin-top:0}
.policy-sec h2.sec-label::before{color:var(--asphalt-light)}
.policy-sec h2.sec-label[data-num]::after{color:rgba(255,255,255,.07)}
.policy-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:16px 0 0;counter-reset:policy}
.policy-card{
  background:var(--graphite-2);
  border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.25);
  padding:20px;
}
.policy-card::before{
  counter-increment:policy;content:counter(policy,decimal-leading-zero);
  display:block;
  font-family:"Roboto Condensed",sans-serif;font-weight:700;font-size:44px;line-height:1;
  color:var(--lime);
  margin-bottom:10px;
}
.policy-title{font-weight:800;font-size:16.5px;color:#fff;margin:0 0 4px}
.policy-card p:not(.policy-title){font-size:13.5px;color:#C9CCC2;margin:0}

/* 最終CTA */
.final-cta{
  background:var(--graphite);color:#E9E6DC;border-radius:12px;
  box-shadow:var(--shadow-feature);
  padding:32px 28px;margin:36px 0 8px;text-align:left;
}
.fc-label{
  font-family:"Archivo",sans-serif;font-size:11px;font-weight:700;letter-spacing:.12em;
  color:var(--lime);margin:0 0 8px;
}
.fc-title{font-size:21px;font-weight:900;color:#fff;margin:0 0 6px;line-height:1.5}
.fc-text{font-size:14px;color:#C9CCC2;margin:0 0 16px}
.final-cta .hero-cta{min-width:0;margin-top:0}

/* 手順ステップ（下層ページ・MILE NUMBERプレート） */
.steps{counter-reset:step;list-style:none;padding:0}
.steps li{
  background:var(--paper);border:1px solid var(--line);border-radius:8px;
  box-shadow:var(--shadow-info);
  padding:16px 18px 16px 66px;margin:12px 0;position:relative;
}
.steps li::before{
  counter-increment:step;content:counter(step,decimal-leading-zero);
  font-family:"Roboto Condensed",sans-serif;
  position:absolute;left:16px;top:16px;
  width:36px;height:36px;border-radius:6px;
  background:var(--graphite);color:var(--lime);font-weight:700;
  display:flex;align-items:center;justify-content:center;font-size:17px;
}
.steps .step-title{font-weight:800;color:var(--graphite)}

/* 出典・記事情報 */
.source-box{
  background:var(--paper);border:1px solid var(--line);border-radius:8px;
  box-shadow:var(--shadow-info);
  padding:14px 18px;font-size:13px;color:var(--asphalt);margin:28px 0 0;
}
.source-box p{margin:4px 0}

/* フッター（グラファイト・ブランドフッター・全ページ共通） */
.site-footer{
  background:var(--graphite);color:#E9E6DC;
  font-size:13px;
  border-top:1px solid var(--line-dark);
}
.site-footer .inner{max-width:1120px;margin:0 auto;padding:56px 32px 40px}
.site-footer .inner::before{
  content:"";display:block;height:14px;margin-bottom:32px;
  background:
    linear-gradient(var(--asphalt),var(--asphalt)) top/100% 2px no-repeat,
    linear-gradient(var(--asphalt),var(--asphalt)) bottom/100% 2px no-repeat,
    repeating-linear-gradient(90deg,rgba(217,240,106,.45) 0 26px,transparent 26px 44px) center/100% 2px no-repeat;
}
.site-footer a{color:#E9E6DC}
.footer-brand{display:flex;align-items:baseline;gap:14px;flex-wrap:wrap;margin:0 0 20px}
.fb-en{
  font-family:"Archivo",sans-serif;font-size:32px;font-weight:800;
  letter-spacing:.06em;color:#fff;line-height:1.1;
}
.fb-jp{font-size:14px;font-weight:700;color:#E9E6DC}
.site-footer .footer-nav{display:flex;flex-wrap:wrap;gap:6px 18px;margin-bottom:14px}
.site-footer p{margin:6px 0;color:#B9BDB4}
.site-footer .operator{color:#E9E6DC}
.footer-sign{
  font-family:"Archivo",sans-serif;font-size:11px;font-weight:700;
  letter-spacing:.3em;color:var(--asphalt-light);
  margin-top:24px;
}

/* スマホ固定CTAバー */
.fixed-cta{display:none}

/* タブレット（768〜1023px） */
@media (min-width:768px) and (max-width:1023px){
  .container{max-width:960px;padding:28px 24px 56px}
  .site-header .inner{padding:0 24px}
  h1{font-size:36px}
  .hero{margin:-28px -24px 0;padding:30px 24px 26px}
  .hero-img{margin:0 -24px 20px}
  .hero-img img{height:250px}
  .policy-sec{margin:48px -24px 0;padding:34px 24px 38px}
  .site-footer .inner{padding:48px 24px 36px}
}

/* スマホ・タブレット共通: 比較カード形式（Feature） */
@media (max-width:1023px){
  .table-wrap{overflow:visible;border:none;background:transparent;border-radius:0;box-shadow:none}
  table.compare{min-width:0;font-size:14px}
  table.compare thead{display:none}
  table.compare tbody{counter-reset:rank}
  table.compare tbody tr{
    display:flex;flex-wrap:wrap;column-gap:8px;
    background:var(--paper);
    border:1px solid var(--line);
    border-radius:12px;
    box-shadow:var(--shadow-feature);
    padding:20px;
    margin:0 0 42px;
    position:relative;
  }
  table.compare tbody tr:last-child{margin-bottom:0}
  /* ROAD LINE: カード間の道路モチーフ（破線） */
  table.compare tbody tr:not(:last-child)::after{
    content:"";position:absolute;left:10px;right:10px;bottom:-23px;
    border-top:2px dashed var(--road);
  }
  /* 順位番号プレート（グラファイト地・ライム文字・写真に重ねる） */
  table.compare tbody tr::before{
    counter-increment:rank;
    content:counter(rank,decimal-leading-zero);
    position:absolute;top:14px;left:14px;z-index:3;
    width:48px;height:48px;border-radius:6px;
    background:var(--graphite);color:var(--lime);
    font-family:"Archivo",sans-serif;
    font-weight:800;font-size:19px;line-height:1;
    display:flex;align-items:center;justify-content:center;
  }
  table.compare tbody th{
    order:0;flex:1 1 100%;min-width:0;
    background:none;
    border-bottom:none;padding:0;
    font-size:22px;font-weight:800;color:var(--graphite);
    line-height:1.35;
  }
  /* カード上部の汎用ディテール写真 */
  .rank-photo{
    display:block;
    width:calc(100% + 40px);max-width:none;
    height:160px;object-fit:cover;
    margin:-20px -20px 14px;
    border-radius:12px 12px 0 0;
  }
  table.compare td{
    display:block;border-bottom:none;
    padding:0;background:transparent !important;
  }
  /* 仕組み: ROUTE LABEL（道路標識風の小さなラベル） */
  table.compare td.c-system{
    order:2;flex:1 1 100%;
    margin-top:12px;
    font-size:13px;font-weight:700;color:var(--graphite);
  }
  table.compare td.c-system::before{
    content:"仕組み";
    display:inline-block;
    border:1px solid var(--graphite);color:var(--graphite);
    font-size:11px;font-weight:700;
    border-radius:3px;padding:0 7px;line-height:1.7;
    margin:0 8px 0 0;vertical-align:1px;
  }
  /* 重要項目2カラムボックス */
  table.compare td.c-key{
    margin-top:12px;
    background:var(--ivory);
    border:1px solid var(--line);
    border-radius:8px;
    padding:12px;
    font-size:14px;line-height:1.6;
    min-width:0;min-height:90px;
  }
  table.compare td.c-key::before{
    display:block;
    font-size:11px;font-weight:700;color:var(--asphalt);letter-spacing:.05em;
    margin-bottom:3px;
  }
  table.compare td.c-key-a{order:3;flex:0.9 1 0px}
  table.compare td.c-key-b{order:4;flex:1.1 1 0px}
  table.compare td.c-key-a::before{content:"競わせられる数"}
  table.compare td.c-key-b::before{content:"連絡が来る相手"}
  table.compare td.c-key .key-num{
    font-family:"Roboto Condensed","Noto Sans JP",sans-serif;
    font-size:22px;font-weight:700;color:var(--graphite);line-height:1.3;letter-spacing:-.01em;
  }
  table.compare td.c-key .key-num-l{font-size:19px}
  table.compare td.c-key .check{font-size:14px;font-weight:700}
  /* 詳細項目: Mist背景のブロック */
  table.compare td.c-detail{
    flex:1 1 100%;
    background:var(--mist) !important;
    border-radius:8px;
    padding:8px 12px;
    font-size:14px;line-height:1.7;
  }
  table.compare td.c-detail::before{
    display:inline-block;
    font-size:11px;font-weight:700;color:var(--asphalt);
    background:var(--paper);
    border:1px solid var(--line);
    border-radius:3px;
    padding:0 7px;line-height:1.7;
    margin:0 10px 0 0;vertical-align:1px;
  }
  table.compare td.c-detail:nth-of-type(3){order:5;margin-top:12px}
  table.compare td.c-detail:nth-of-type(5){order:6;margin-top:8px}
  table.compare td.c-detail:nth-of-type(3)::before{content:"参加・提携店数"}
  table.compare td.c-detail:nth-of-type(5)::before{content:"利用者の手数料"}
  /* 特徴: アイボリー背景に全文表示 */
  table.compare td.c-feature{
    order:7;flex:1 1 100%;
    margin-top:8px;
    background:var(--ivory) !important;
    border:1px solid var(--line);
    border-radius:8px;
    padding:10px 12px;
    font-size:14px;line-height:1.8;
  }
  table.compare td.c-feature::before{
    display:inline-block;
    content:"特徴";
    font-size:11px;font-weight:700;color:var(--asphalt);
    background:var(--paper);
    border:1px solid var(--line);
    border-radius:3px;
    padding:0 7px;line-height:1.7;
    margin:0 10px 0 0;vertical-align:1px;
  }
  /* CTA */
  table.compare td.c-cta{
    order:8;flex:1 1 100%;
    margin-top:20px;text-align:center;
    display:flex;flex-direction:column;align-items:center;
  }
  table.compare td.c-cta br{display:none}
  table.compare td.c-cta .cta{display:flex;width:100%;margin:0}
  table.compare td.c-cta img{flex:none}
  table.compare td.c-cta .official-link{display:inline-block;margin-top:8px}
  .cta{white-space:normal;text-align:center}
  .quick-grid{grid-template-columns:1fr 1fr}
  .policy-grid{grid-template-columns:1fr 1fr}
}

/* スマホ（〜767px） */
@media (max-width:767px){
  .container{padding:24px 16px 56px}
  .site-header .inner{min-height:72px;padding:0 16px;gap:8px 10px}
  .site-logo{gap:9px}
  .logo-mark{width:19px;height:29px}
  .logo-main{font-size:19px}
  .logo-sub{font-size:8px;letter-spacing:.26em}
  .logo-jp{font-size:11.5px;padding-left:9px}
  .header-cta{display:none}
  /* ハンバーガー: 44×44px・濃色ヘッダー用 */
  .nav-burger{
    display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;
    margin-left:auto;width:44px;height:44px;cursor:pointer;flex:none;
    border:1px solid var(--line-dark);border-radius:50%;
  }
  .nav-burger span{display:block;width:18px;height:2px;background:var(--ivory)}
  .site-nav{
    display:none;
    position:absolute;top:100%;left:0;right:0;
    background:var(--graphite-dark);
    flex-direction:column;gap:0;
    padding:8px 16px 14px;margin:0;
    border-bottom:1px solid var(--line-dark);
    box-shadow:0 10px 16px rgba(32,39,42,.25);
  }
  .site-nav a{padding:10px 2px;border-bottom:1px solid var(--line-dark);font-size:14.5px;color:#E9E6DC}
  .site-nav a:last-child{border-bottom:none}
  .nav-toggle:checked ~ .site-nav{display:flex}
  h1{font-size:29px}
  h2{font-size:23px;margin:44px 0 18px}
  h2.sec-label[data-num]::after{font-size:60px;top:-8px}
  h3{font-size:19px}
  /* ヒーロー */
  .hero{margin:-24px -16px 0;padding:26px 16px 24px}
  .hero-img{margin:0 -16px 18px}
  .hero-img img{height:250px}
  .hero h1{font-size:27px;line-height:1.45;margin-bottom:10px}
  .hero-sub{font-size:14px}
  .hero-cta{display:flex;width:100%;min-width:0;height:54px;font-size:16px;padding:0 20px}
  .hero-panel{margin-top:22px;padding-top:18px}
  .hp-item{padding:0 10px;gap:8px}
  .hp-num{font-size:38px}
  .hp-label{font-size:9.5px}
  .hero-steps{grid-template-columns:1fr;gap:8px;margin:18px 0 24px}
  .hero-steps li{flex-direction:row;align-items:center;gap:12px;padding:12px 14px}
  .sf-ic{width:48px;height:48px;margin-bottom:0;flex:none}
  .sf-ic svg{width:23px;height:23px}
  .toc-list{grid-template-columns:1fr 1fr;gap:4px 16px}
  .quick-grid{grid-template-columns:1fr}
  .type-grid{grid-template-columns:1fr}
  /* 売る流れ: 縦の接続線でつなぐプロセス図 */
  .flow-steps{grid-template-columns:1fr;gap:0}
  .flow-steps li{
    display:grid;grid-template-columns:60px 1fr;column-gap:16px;
    background:transparent;border:none;border-radius:0;box-shadow:none;
    padding:14px 2px 22px;
  }
  .flow-steps li:last-child{padding-bottom:4px}
  .flow-steps li:not(:last-child)::after{
    content:"";position:absolute;left:31px;top:78px;bottom:-2px;
    width:2px;background:var(--line);
  }
  .fs-ic{grid-row:1/4;margin-bottom:0;position:relative;z-index:1}
  .fs-num{margin-bottom:2px}
  .note-grid{grid-template-columns:1fr}
  .guide-grid{grid-template-columns:1fr}
  .guide-grid .g-card:first-child img{aspect-ratio:16/9}
  .policy-sec{margin:44px -16px 0;padding:30px 16px 34px}
  .policy-grid{grid-template-columns:1fr}
  table.factors tbody th{white-space:normal;min-width:96px}
  .site-footer .inner{padding:44px 16px 34px}
  .fb-en{font-size:26px}
  body:has(.fixed-cta){padding-bottom:64px}
  .fixed-cta{
    display:block;position:fixed;left:0;right:0;bottom:0;z-index:80;
    background:var(--graphite);
    border-top:1px solid var(--line-dark);
    padding:10px 16px calc(10px + env(safe-area-inset-bottom));
    box-shadow:0 -4px 14px rgba(32,39,42,.18);
  }
  .fixed-cta a{
    display:flex;align-items:center;justify-content:center;
    background:var(--orange);color:#fff !important;text-decoration:none;
    font-weight:700;font-size:15.5px;height:46px;border-radius:4px;
  }
}

/* ============================================================
   第6版 TYPOGRAPHY & FINISHING（2026-11-30）
   第5版の配色・レイアウト・セクション構成・文言は不変。
   文字（サイズ/ウェイト/字間/行間）と表示の仕上げのみを上書きする。
   数値の正はデザイン指示書 第6版のサイズ表。
   Archivo 500はWebフォント未読込のため、英字ラベルは最も近い600で代替。
   ============================================================ */

/* --- A. 全幅共通 --- */
body{
  letter-spacing:.015em;
  line-height:1.85;
  font-feature-settings:"palt";
}
h1,h2,h3,h4{
  font-weight:700;
  word-break:normal;
  overflow-wrap:normal;
  line-break:strict;
  hanging-punctuation:allow-end;
}
h1{letter-spacing:.015em}
h2{letter-spacing:.015em;margin-bottom:16px}
h3{letter-spacing:.01em;margin-bottom:8px}
h4{font-size:16px;letter-spacing:.01em;line-height:1.6;margin:20px 0 6px;color:var(--graphite)}
p{margin:0 0 14px}
ul li,ol li{margin:0 0 10px;line-height:1.8}
ul li:last-child,ol li:last-child{margin-bottom:0}
.caution p:last-child{margin-bottom:0}
/* スマホ専用の改行（PC・タブレットでは無効） */
br.sp-br{display:none}
.nb{white-space:nowrap}
/* 英字ラベル: Archivo 600（500の代替）・字間 .14em・大文字・改行しない */
.hero-label,.fc-label,.type-label,.hs-num,h2.sec-label::before{
  font-weight:600;letter-spacing:.14em;text-transform:uppercase;
}
.hero-label,.fc-label,.type-label,.hs-num,.fs-num,h2.sec-label::before{white-space:nowrap}
h2.sec-label::before{margin-bottom:8px}
/* 数字: tabular-nums で桁を揃える */
.hp-num,.q-rank,.key-num,.fs-num,.steps li::before,.policy-card::before{
  font-variant-numeric:tabular-nums;
}
.hp-num,.q-rank{line-height:1}
.logo-main{white-space:nowrap}
.key-num{white-space:nowrap}
/* 見出し系・カードタイトル等の太字は700に統一 */
.answer .answer-title,.toc-title,.check-box-title,.caution .caution-title,
.q-name,.hs-text,.fs-title,.acc summary,.card .card-title,
.policy-title,.steps .step-title,.type-points .tp-title,.fc-title{font-weight:700}
.answer .answer-title{margin-bottom:10px}
.card .card-title{margin-bottom:10px}
.note-card h3{margin-bottom:10px}
/* カード内テキストの行間 */
.q-feature,.type-body p,.flow-steps p,.note-card p,.policy-card p:not(.policy-title){line-height:1.75}
/* 補助テキストまわり */
.pr-notice{line-height:1.7;letter-spacing:.02em}
.breadcrumb{font-size:12px;line-height:1.7;letter-spacing:.02em}
.source-box{line-height:1.7;letter-spacing:.02em}
.caution{line-height:1.7}
.official-link{letter-spacing:.02em}
/* ヒーロー画像の切り取り位置 */
.hero-img img{object-position:center 55%}
/* キャプションの基準（将来の追加にも適用） */
figcaption{font-size:12px;line-height:1.6;margin-top:8px}
/* CTA・リンクの文字表現とホバー/フォーカス */
.cta,.hero-cta,.header-cta,.fixed-cta a{letter-spacing:.02em;line-height:1.4}
.header-cta{font-size:16px}
.cta,.hero-cta,.header-cta,.fixed-cta a,.card{transition:transform .18s ease,opacity .18s ease}
@media (hover:hover){
  .cta:hover,.hero-cta:hover,.header-cta:hover,.fixed-cta a:hover{
    background:var(--orange);opacity:.88;transform:translateY(-2px);
  }
  .card:hover{transform:translateY(-2px)}
  .q-link:hover,.official-link:hover{opacity:.88}
}
.cta:active,.hero-cta:active,.header-cta:active,.fixed-cta a:active{transform:translateY(1px);opacity:.92}
a:focus-visible,summary:focus-visible{
  outline:2px solid var(--orange);outline-offset:4px;
}

/* --- カード形式（〜1023px）: ランキングカードの文字と余白 --- */
@media (max-width:1023px){
  table.compare td.c-key,table.compare td.c-detail,table.compare td.c-feature{
    font-size:14px;line-height:1.75;
  }
  table.compare td.c-system{margin-top:16px}
  table.compare td.c-key{margin-top:16px}
  table.compare td.c-detail:nth-of-type(3){margin-top:16px}
  table.compare td.c-detail:nth-of-type(5){margin-top:16px}
  table.compare td.c-feature{margin-top:16px}
  table.compare td.c-key .key-num,table.compare td.c-key .key-num-l{font-size:20px}
  table.compare td.c-system::before,table.compare td.c-detail::before,
  table.compare td.c-feature::before,table.compare td.c-key::before{font-size:12px}
  table.compare tbody th{font-size:19px;font-weight:700;line-height:1.45}
}

/* --- B. スマホ（〜767px）: サイズ表（スマホ） --- */
@media (max-width:767px){
  br.sp-br{display:initial}
  h1{font-size:32px;line-height:1.45}
  h2{font-size:25px;line-height:1.5}
  h3{font-size:19px;line-height:1.55}
  .lead{font-size:16px;line-height:1.9}
  .hero h1{font-size:32px}
  .hero-sub{font-size:16px;line-height:1.9}
  .hp-num{font-size:48px;letter-spacing:-.025em}
  .hp-label{font-size:11px;line-height:1.65}
  .hp-item{padding:0 6px;gap:6px}
  .q-rank{font-size:52px;letter-spacing:-.035em}
  .q-name{font-size:19px;line-height:1.45}
  .q-rows > div{font-size:14px;line-height:1.75;padding:8px 0}
  .q-rows dt{font-size:12px}
  .q-feature{font-size:14px}
  .q-link{font-size:16px}
  .type-band h3{font-size:19px}
  .type-body p{font-size:14px}
  .type-points .tp-title{font-size:13px}
  .type-points ul{font-size:13px;line-height:1.75}
  .fs-title{font-size:16px}
  .acc summary{font-size:16px;line-height:1.55}
  .acc details > p{font-size:15px}
  .note-card h3{font-size:16px}
  .note-card p{font-size:14px}
  .card .card-title{font-size:16px}
  .guide-grid .g-card:first-child .card-title{font-size:20px}
  .policy-card::before{font-size:48px}
  .policy-title{font-size:16px}
  .policy-card p:not(.policy-title){font-size:13px}
  .source-box{font-size:12px}
  .official-link{font-size:12px}
  .caution{font-size:13px}
  .table-wrap + p{font-size:11px;line-height:1.65;letter-spacing:.02em}
  table.factors{font-size:14px}
  table.factors th,table.factors td{padding:12px 10px}
  table.factors thead th{font-size:12px;line-height:1.5}
  table.factors tbody th{font-size:13px}
}

/* --- C. タブレット（768〜1023px）: clamp()で段階的に --- */
@media (min-width:768px) and (max-width:1023px){
  body{font-size:clamp(15px,1.6vw,16px)}
  h1{font-size:clamp(32px,4.6vw,40px);line-height:1.42}
  h2{font-size:clamp(25px,3.4vw,30px);line-height:1.48}
  h3{font-size:clamp(19px,2.6vw,21px);line-height:1.52}
  .lead{font-size:clamp(16px,2.2vw,17px);line-height:1.85}
  .hero h1{font-size:clamp(32px,4.6vw,40px)}
  .hero-sub{font-size:clamp(16px,2vw,17px);line-height:1.85}
  .hp-num{font-size:clamp(48px,6vw,56px);letter-spacing:-.025em}
  .hp-label{line-height:1.65}
  .q-rank{font-size:clamp(52px,6.5vw,60px);letter-spacing:-.035em}
  .q-name{font-size:20px;line-height:1.45}
  .q-rows > div{font-size:14px;line-height:1.75;padding:8px 0}
  .q-feature{font-size:14px}
  .q-link{font-size:16px}
  table.compare tbody th{font-size:22px}
  .type-body p{font-size:14px}
  .acc details > p{font-size:15px}
  .note-card p{font-size:14px}
  .policy-card p:not(.policy-title){font-size:13px}
  .table-wrap + p{font-size:12px;line-height:1.65;letter-spacing:.02em}
}

/* --- D. PC（1024px〜）: サイズ表（PC） --- */
@media (min-width:1024px){
  body{font-size:16px}
  h1{font-size:46px;line-height:1.4}
  h2{font-size:32px;line-height:1.45;margin-bottom:20px}
  h2.sec-label::before{font-size:12px;letter-spacing:.15em;margin-bottom:10px}
  h3{font-size:22px;line-height:1.5;margin-bottom:10px}
  h4{font-size:18px;line-height:1.55;margin-bottom:8px}
  .lead{font-size:18px;line-height:1.8}
  /* 長文テキストブロックのみ最大幅720px（レイアウトは維持） */
  .container > p{max-width:720px}
  .acc details > p{max-width:720px}
  .hero h1{font-size:46px}
  .hero-sub{font-size:18px;line-height:1.8}
  .hero-label,.fc-label,.type-label,.hs-num{font-size:12px;letter-spacing:.15em}
  .hp-num{font-size:60px;letter-spacing:-.025em}
  .hp-label{font-size:12px;line-height:1.65}
  .hp-item{gap:8px}
  .q-rank{font-size:64px;letter-spacing:-.035em}
  .q-name{font-size:22px;line-height:1.45}
  .q-rows > div{font-size:15px;line-height:1.75;padding:8px 0}
  .q-rows dt{font-size:13px}
  .q-feature{font-size:15px}
  .q-link{font-size:16px}
  /* 比較表: セル余白・文字サイズ・数値の右揃え */
  table.compare th,table.compare td{padding:14px}
  table.compare thead th{font-size:13px;line-height:1.5}
  table.compare tbody th{font-size:14px}
  table.compare td{line-height:1.65}
  table.compare td:nth-child(3),table.compare td:nth-child(4){text-align:right}
  table.compare td.c-cta{padding:14px 8px}
  table.compare td.c-cta .cta{font-size:14px}
  table.compare td.c-key-a .key-num{font-size:17px}
  .table-wrap + p{font-size:12px;line-height:1.6;letter-spacing:.02em}
  table.factors{font-size:14px}
  table.factors th,table.factors td{padding:14px}
  table.factors thead th{font-size:13px;line-height:1.5}
  table.factors tbody th{font-size:14px}
  .type-band h3{font-size:22px}
  .type-body p{font-size:15px}
  .type-points .tp-title{font-size:14px}
  .type-points ul{font-size:13px;line-height:1.75}
  .fs-title{font-size:18px}
  .acc summary{font-size:16px}
  .acc details > p{font-size:16px}
  .note-card h3{font-size:18px}
  .note-card p{font-size:15px}
  .card .card-title{font-size:18px}
  .guide-grid .g-card:first-child .card-title{font-size:22px}
  .policy-card::before{font-size:60px}
  .policy-title{font-size:18px}
  .policy-card p:not(.policy-title){font-size:14px}
  .fc-title{font-size:24px}
  .fc-text{font-size:15px}
  .source-box{font-size:13px}
  .official-link{font-size:13px}
  .caution{font-size:13px}
}

/* ============================================================
   第7版「MILE MARK — INSTANT COMPARISON」
   分類ナビ（3方式）＋6社一目比較マトリクス
   配色・タイポグラフィは第5/6版を維持。旧 .quick-* は未使用のため残置
   ============================================================ */

/* --- 分類ナビ（3方式） --- */
.type-nav{
  display:grid;grid-template-columns:repeat(3,1fr);gap:8px;
  margin:22px 0 6px;
}
.tn-item{
  background:var(--mist);
  border:1px solid var(--line);
  border-radius:10px;
  padding:12px 14px;
}
.tn-head{display:flex;align-items:baseline;gap:6px 9px;margin:0 0 5px;flex-wrap:wrap}
.tn-num{
  font-family:"Roboto Condensed",sans-serif;font-weight:700;
  font-size:24px;line-height:1;color:var(--graphite);
  box-shadow:inset 0 -3px 0 var(--lime);
  padding-bottom:2px;
}
.tn-en{
  font-family:"Archivo",sans-serif;font-weight:700;
  font-size:9px;letter-spacing:.12em;color:var(--asphalt);
}
.tn-title{font-size:13px;font-weight:700;line-height:1.5;margin:0 0 3px}
.tn-names{font-size:11px;line-height:1.65;color:var(--asphalt);margin:0}

/* --- 一目比較マトリクス（スマホ: 1社1行の行形式） --- */
.matrix{
  border:1px solid var(--line);
  border-radius:12px;
  overflow:hidden;
  background:var(--paper);
  box-shadow:var(--shadow-info);
  margin:16px 0 0;
}
.mx-head{display:none}
.mx-row{
  padding:14px 16px 13px;
  border-bottom:1px solid var(--line);
  min-height:84px;
}
.mx-row:last-child{border-bottom:none}
.mx-name{display:flex;align-items:baseline;gap:10px;margin:0 0 9px;flex-wrap:wrap}
.mx-rank{
  font-family:"Roboto Condensed",sans-serif;font-weight:700;
  font-size:24px;line-height:1;letter-spacing:-.02em;
  color:var(--graphite);
}
.mx-svc{font-size:14px;font-weight:800;line-height:1.45}
.mx-cell{
  display:flex;gap:10px;
  padding:5px 0;
  font-size:12px;line-height:1.65;
}
.mx-dt{
  flex:0 0 76px;
  font-size:10px;font-weight:700;letter-spacing:.05em;
  color:var(--asphalt);
  padding-top:3px;white-space:nowrap;
}
.mx-dd{flex:1;min-width:0}
.mx-tel{display:block;font-size:11px;line-height:1.6;color:var(--asphalt);margin-top:1px}
.mx-mark{font-weight:700;color:var(--graphite);margin-right:5px}
.mx-fit .mx-dd{font-size:11px;line-height:1.7}
.mx-nowrap{white-space:nowrap}
.mx-link{
  display:inline-block;
  margin-top:9px;
  font-size:13px;font-weight:700;line-height:1.4;
  color:var(--orange-dark);text-decoration:none;
}
.mx-link:hover{text-decoration:underline}

/* --- 凡例・注記 --- */
.mx-legend{margin:14px 2px 4px;font-size:12px;line-height:1.7}
.mx-legend-title{font-weight:700;font-size:12px;margin:0 0 6px}
.mx-legend ul{
  list-style:none;margin:0;padding:0;
  display:flex;flex-wrap:wrap;gap:4px 22px;
}
.mx-legend li{margin:0;white-space:nowrap}
.mx-note{font-size:11.5px;line-height:1.75;color:var(--asphalt);margin:9px 0 0}

/* --- 分類ナビ: 小型スマホでは社名を詰めて3列を維持 --- */
@media (max-width:767px){
  .type-nav{margin-top:18px}
  .tn-item{padding:10px 10px}
  .tn-names{font-size:10.5px}
  .mx-note{font-size:11px;line-height:1.65;letter-spacing:.02em}
}

/* --- PC: 縦6行の表形式（列幅は指示書どおり） --- */
@media (min-width:1024px){
  .matrix{max-width:1120px;margin-left:auto;margin-right:auto}
  .mx-head{
    display:grid;
    grid-template-columns:220px 170px 180px 170px 1fr 96px;
    background:var(--graphite);color:#fff;
    font-size:12px;font-weight:700;line-height:1.5;
    padding:13px 20px;
  }
  .mx-row{
    display:grid;
    grid-template-columns:220px 170px 180px 170px 1fr 96px;
    align-items:center;
    min-height:96px;
    padding:14px 20px;
  }
  .mx-row:nth-of-type(even){background:#FBFAF6}
  .mx-name{margin:0}
  .mx-rank{font-size:30px}
  .mx-svc{font-size:16px}
  .mx-cell{display:block;padding:0 12px 0 0;font-size:14px;line-height:1.65}
  .mx-dt{display:none}
  .mx-tel{font-size:12px}
  .mx-fit .mx-dd{font-size:13px;line-height:1.65}
  .mx-link{margin:0;justify-self:end;font-size:14px;white-space:nowrap}
}

/* ============================================================
   第8版 スマホ比較UIの再設計（767px以下・比較セクションのみ）
   要約「違いだけ先に確認」＋マトリクスを1社1カードに切替。
   同じHTMLをCSSで切り替え、PC（768px以上）は第7版のまま維持
   ============================================================ */

/* 要約はスマホ専用（768px以上では非表示） */
.sp-summary{display:none}

@media (max-width:767px){
  /* --- 「違いだけ先に確認」要約 --- */
  .sp-summary{
    display:block;
    background:var(--paper);
    border:1px solid var(--line);
    border-radius:12px;
    box-shadow:var(--shadow-info);
    padding:14px;
    margin:16px 0 18px;
  }
  .sps-title{font-size:16px;font-weight:800;line-height:1.45;margin:0}
  .sps-item{margin-top:10px}
  .sps-label{font-size:12px;font-weight:600;color:var(--asphalt);margin:0 0 3px}
  .sps-value{font-size:14px;line-height:1.55;margin:0}

  /* --- マトリクス → 1社1カード（縦型比較） --- */
  .matrix{
    border:none;border-radius:0;background:transparent;
    box-shadow:none;overflow:visible;margin-top:0;
  }
  .mx-row{
    border:1px solid var(--line);
    border-radius:12px;
    background:var(--paper);
    box-shadow:var(--shadow-info);
    padding:14px;
    margin:0 0 12px;
    min-height:0;
  }
  .mx-row:last-child{border-bottom:1px solid var(--line);margin-bottom:0}
  .mx-name{margin:0 0 4px}
  .mx-svc{font-size:16px}
  .mx-cell{display:block;padding:0;margin-top:10px;font-size:15px;line-height:1.55}
  .mx-dt{
    display:block;flex:none;white-space:normal;
    font-size:12px;font-weight:600;letter-spacing:.02em;
    color:var(--asphalt);padding:0;margin:0 0 2px;
  }
  .mx-dd{font-size:15px;font-weight:500;line-height:1.55}
  /* 重要値: 連絡の窓口（1番目のセル）・成約時の費用（3番目のセル） */
  .mx-cell:nth-of-type(1) .mx-dd,
  .mx-cell:nth-of-type(3) .mx-dd{font-size:16px;font-weight:700;line-height:1.45}
  /* 競争方式（2番目のセル）: 分類ラベルとして表示（文字ラベル併記） */
  .mx-cell:nth-of-type(2) .mx-dd{
    display:inline-block;background:var(--mist);
    border-radius:999px;padding:3px 12px 4px;
    font-weight:700;box-shadow:inset 0 -2px 0 var(--lime);
  }
  .mx-fit .mx-dd{font-size:14px;font-weight:500;line-height:1.55}
  .mx-tel{font-size:13px;font-weight:500;line-height:1.55;margin-top:3px}
  .mx-link{margin-top:12px;font-size:14px}
  .mx-note{font-size:12px;line-height:1.7}
}

/* ===== v9: 自然な折り返しの最適化（固定改行は使わない） ===== */
/* 見出しは行のバランスを取って自然に折り返す */
h1,h2,h3,h4{text-wrap:balance}
.answer .answer-title,.toc-title,.check-box-title,.caution .caution-title,
.q-name,.hs-text,.fs-title,.acc summary,.card .card-title,
.policy-title,.steps .step-title,.type-points .tp-title,.fc-title{text-wrap:balance}
/* 本文は禁則を厳密にし、行末の孤立を避ける */
p,li,td,th,dd,dt{line-break:strict;text-wrap:pretty}
/* 数字パネルのflexアイテムが割れない単位で押し広がらないようにする */
.hp-item{min-width:0}
