/* ウェブ実測 — Fin/d の replica（寸法の正本: 05_implementation/design-tokens.md）。
   色だけ変更: ブランド色は朱。白の小さな文字でも 4.5:1 を満たす濃さ（#d0452a・白に対して 4.6:1）。 */
:root {
  --brand: #d0452a;
  --brand-dark: #a8361f;
  --brand-pale: #fbe3dc;
  --text: #222;
  --line: #333;
  --muted: #666;
  --pad: 60px;
  --ls: 0.8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.is-menu-open { overflow: hidden; }
body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, "Noto Sans JP", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: var(--ls);
  word-break: auto-phrase;
  line-break: strict;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; letter-spacing: inherit; color: inherit; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num, .fig-num, .compare-table td { font-variant-numeric: tabular-nums; }
.nw { white-space: nowrap; }

/* フォーカス: 白地では朱、ブランド色の面では白 */
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.mv :focus-visible, .menu :focus-visible, .ft :focus-visible { outline-color: #fff; }

/* hover は文字色だけ 0.3s（参考の実測） */
a, .pill, .menu-btn, .slider-btn, .table-zoom { transition: color .3s, background-color .3s, opacity .3s, box-shadow .3s, border-color .3s; }

/* ---- 広告の帯（参考に無い・追加） ---- */
.ad-banner { background: var(--brand-pale); font-size: 14px; line-height: 1.6; }
.ad-banner p { padding: 6px var(--pad); }
.ad-short { display: none; }
.ad-short a { display: inline-block; margin: -12px -4px -12px calc(.5em - 4px); padding: 12px 4px; }
.pr {
  display: inline-block; margin-right: .5em; padding: 0 .45em;
  border: 1px solid currentColor; border-radius: 3px;
  font-size: 11px; font-weight: 700; line-height: 1.5; vertical-align: 1px;
}

/* ---- ヘッダー ---- */
.hd-in { display: flex; justify-content: space-between; align-items: flex-start; }
.logo { display: inline-flex; flex-direction: column; text-decoration: none; }
.logo-name { font-size: 40px; font-weight: 800; line-height: 1.15; letter-spacing: 0.02em; }
.logo-sub { margin-top: 6px; font-size: 13px; font-weight: 700; }
.menu-btn {
  display: grid; place-items: center; flex: none;
  width: 66px; height: 66px; border: 0; border-radius: 50%;
  cursor: pointer;
}
.menu-btn svg { fill: currentColor; }
.hd--mv .hd-in { padding-top: 54px; }
.hd--mv .logo { color: #fff; margin-top: 6px; }
.hd--mv .menu-btn { background: #fff; color: var(--brand); }
.hd--mv .menu-btn:hover { color: var(--text); }
.hd--page .hd-in { padding: 34px var(--pad) 0; min-height: 111px; }
.hd--page .logo { color: var(--brand); }
.hd--page .logo-name { font-size: 30px; }
.hd--page .logo-sub { color: var(--text); font-size: 12px; margin-top: 2px; }
.hd--page .menu-btn { background: var(--brand); color: #fff; margin-top: 14px; }
.hd--page .menu-btn:hover { background: var(--brand-dark); }

/* ---- ファーストビュー（ヘッダーと一体のブランド色の面） ---- */
.mv { position: relative; background: var(--brand); color: #fff; padding: 0 var(--pad); min-height: 471px; }
.mv-body { position: relative; min-height: 360px; }
.mv-title { max-width: 600px; padding: 70px 0 0 40px; font-size: 45px; font-weight: 700; line-height: 1.44; }
.mv-img { position: absolute; bottom: 0; left: calc(50% + 92px); width: 380px; }

/* ---- 入口（白いピル・面に 42px 重なる） ---- */
.entry-nav { position: relative; z-index: 1; margin-top: -42px; padding: 0 var(--pad); }
.pills { display: grid; grid-template-columns: repeat(3, 350px); gap: 20px 15px; justify-content: center; }
.pills.is-few { grid-template-columns: repeat(auto-fit, 350px); }
.pill {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  height: 93px; padding: 0 16px;
  background: #fff; border: 3px solid var(--line); border-radius: 20px;
  color: var(--line); font-size: 18px; font-weight: 700; text-decoration: none;
}
.pill:hover { color: var(--brand); }
.ic { flex: none; fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic .ic-accent { fill: var(--brand); stroke: none; }
.pill-ic { width: 40px; height: 40px; }

/* ---- トップの節 ---- */
.sec-top { padding: 80px var(--pad) 0; }
.big-h { display: flex; flex-direction: column; color: var(--brand); font-size: 50px; font-weight: 700; line-height: 1.3; }
.big-sub { margin-top: 4px; color: var(--text); font-size: 16px; font-weight: 700; }
.cat { margin-top: 56px; }
.cat-h { display: flex; align-items: center; gap: 16px; font-size: 28px; font-weight: 700; line-height: 1.4; }
.cat-ic { width: 40px; height: 40px; }

/* 記事カードの列（右端まで流す・横送り） */
.slider { position: relative; margin: 32px calc(var(--pad) * -1) 0 0; }
.cards {
  display: flex; gap: 40px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 var(--pad) 8px 0; scrollbar-width: none;
}
.cards::-webkit-scrollbar { display: none; }
.card { flex: none; width: 300px; scroll-snap-align: start; }
.card a { display: block; text-decoration: none; }
.card-img { position: relative; display: block; aspect-ratio: 5 / 3; border-radius: 8px; overflow: hidden; background: var(--brand-pale); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-tag {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  padding: 2px 14px; border-radius: 20px; background: #fff; color: var(--brand);
  font-size: 12px; font-weight: 700; white-space: nowrap;
}
.card-title { display: block; margin-top: 14px; font-size: 18px; font-weight: 700; line-height: 1.5; }
.card a:hover .card-title { color: var(--brand); }
.card-date { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.slider-btn {
  position: absolute; top: 57px; z-index: 1;
  display: grid; place-items: center; width: 66px; height: 66px;
  border: 0; border-radius: 50%; background: var(--brand); color: #fff; cursor: pointer;
}
.slider-btn[hidden] { display: none; }
.slider-btn.is-prev { left: calc(var(--pad) * -1 + 10px); }
.slider-btn.is-prev svg { transform: scaleX(-1); }
.slider-btn.is-next { right: 10px; }
.slider-btn:disabled { background: var(--brand-pale); color: #fff; cursor: default; }

/* 角丸の太い枠と番号の丸札（記事の「比べたポイント」「こんな人ならこっち」） */
.point-box { margin-top: 28px; padding: 34px; border: 3px solid var(--text); border-radius: 40px; }
.point-box li { display: flex; align-items: flex-start; gap: 10px; }
.point-box li + li { margin-top: 20px; }
.num {
  display: inline-grid; place-items: center; flex: none;
  width: 30px; height: 30px; margin-top: 2px; border-radius: 50%;
  background: var(--brand); color: #fff; font-size: 14px; font-weight: 700; letter-spacing: 0;
}
.point-h { font-size: 22px; font-weight: 700; line-height: 1.5; }
.pick { min-width: 0; }
.pick-to { display: flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--brand); font-size: 22px; font-weight: 700; line-height: 1.5; }
.pick-arrow { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff; }
.pick-arrow svg { width: 14px; height: 14px; }
.pick-why { margin: 6px 0 0 -40px; font-size: 16px; font-weight: 500; line-height: 1.75; }

/* ---- 記事・静的ページ ---- */
.page { padding: 0 var(--pad); }
.article-layout { max-width: 794px; margin: 0 auto; }
.article-layout.has-side { display: grid; grid-template-columns: minmax(0, 794px) 274px; justify-content: space-between; gap: 48px; max-width: 1160px; }
.article { min-width: 0; }
.article-head { padding-top: 60px; }
.cat-tag span {
  display: inline-flex; align-items: center; height: 32px; padding: 0 13px;
  border-radius: 32px; background: #343434; color: #fff; font-size: 14px; font-weight: 700;
}
.article-head h1 { margin-top: 16px; font-size: 35px; font-weight: 700; line-height: 1.5; }
.head-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.dates { font-size: 14px; font-weight: 700; text-align: right; }
.byline { display: flex; align-items: center; gap: 6px; }
.byline .ed-mark { width: 35px; height: 35px; }
.byline-role { font-size: 11px; color: var(--muted); }
.byline-name { font-size: 14px; font-weight: 700; }
.ed-mark { flex: none; }
.ed-bg { fill: var(--brand); }
.ed-line { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.lead { margin-top: 40px; font-weight: 500; line-height: 1.75; }
.lead p + p { margin-top: 1em; }
.ad-line { margin-top: 14px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.sec-a { margin-top: 80px; }
.sec-a > h2, .service-name { font-size: 32px; font-weight: 700; line-height: 1.5; }
.sec-a > p { margin-top: 20px; font-weight: 500; line-height: 1.75; }
.sec-a > p + p { margin-top: 1em; }
.dots { margin-top: 16px; }
.dots li { position: relative; padding-left: 1.2em; line-height: 1.75; }
.dots li::before { content: ""; position: absolute; left: .3em; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }

/* 比較一覧表 */
.table-tools { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin: 24px 0 6px; }
.scroll-hint { font-size: 14px; font-weight: 500; }
.table-zoom { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--text); color: #fff; cursor: pointer; }
.table-zoom[hidden] { display: none; }
.table-zoom:hover { background: var(--brand); }
.table-modal { width: min(1200px, 94vw); max-width: none; max-height: 90vh; padding: 0; border: 0; border-radius: 20px; background: #fff; }
.table-modal::backdrop { background: rgba(0, 0, 0, .6); }
.table-modal[open] { animation: menu-in .3s ease; }
.table-modal-in { padding: 24px 30px 30px; }
.table-modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.table-modal-h { font-size: 20px; font-weight: 700; }
.table-modal-close { position: relative; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--text); cursor: pointer; }
.table-modal .table-scroll { max-height: calc(90vh - 120px); overflow: auto; }
.table-frame { position: relative; }
.table-frame::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 48px; background: linear-gradient(to right, rgba(255,255,255,0), #fff); pointer-events: none; opacity: 0; transition: opacity .3s; }
.table-frame.has-more::after { opacity: 1; }
.table-scroll { overflow-x: auto; border-top: 2px solid var(--text); border-bottom: 2px solid var(--text); }
.compare-table { border-collapse: separate; border-spacing: 0; min-width: 100%; }
.compare-table th, .compare-table td { vertical-align: middle; }
.compare-table thead th {
  min-width: 220px; padding: 8px 10px 7px;
  background: var(--brand-pale); font-size: 16px; font-weight: 700; line-height: 1.25; text-align: center;
}
.compare-table thead th.corner { position: sticky; left: 0; z-index: 3; }
.compare-table tbody th {
  position: sticky; left: 0; z-index: 1;
  width: 200px; min-width: 200px; padding: 15px 15px 21px;
  background: #fff; text-align: left; vertical-align: top;
}
.compare-table tbody tr + tr > * { border-top: 1px dashed #999; }
.row-provider { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.row-plan { display: block; font-size: 20px; font-weight: 700; line-height: 1.5; }
.compare-table td { min-width: 220px; padding: 15px 10px; text-align: center; }
.btn-table {
  display: inline-flex; align-items: center; justify-content: center; gap: 2px;
  min-width: 145px; height: 32px; margin-top: 10px; padding: 0 10px;
  border: 1px solid var(--brand-dark); border-radius: 8px; background: var(--brand); box-shadow: 0 3px 0 var(--brand-dark);
  color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.btn-table:hover, .btn-official:hover { background: #333; border-color: #000; box-shadow: 0 3px 0 #000; }
.btn-official:hover { box-shadow: 0 4px 0 #000; }
.btn-table .pr, .btn-official .pr { border-color: #fff; }

/* 値の表示（表と詳細で共通） */
.fig { display: block; font-weight: 700; }
.fig-num { font-size: 20px; }
.fig-unit, .fig-text { font-size: 14px; }
.cond { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.stale { color: var(--muted); font-size: 13px; }
.varies { font-weight: 700; }
.to-table { display: inline-block; margin-top: 6px; color: var(--brand); font-size: 12px; }
.per-plan li { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; }
.per-plan li + li { border-top: 1px dotted #bbb; }
.pp-plan { font-size: 13px; }
.pp-val { font-weight: 700; white-space: nowrap; }
.pp-val .fig-num { font-size: 16px; }

/* サービスごとの詳細 */
.services { margin-top: 80px; }
.service { padding-top: 40px; border-top: 4px solid var(--brand); }
.service + .service { margin-top: 80px; }
.service-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 24px; }
.service-plans { font-weight: 500; line-height: 1.75; }
.btn-official {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 50%; max-width: 358px; min-height: 78px; padding: 8px 16px;
  border: 2px solid var(--brand-dark); border-radius: 12px; background: var(--brand); box-shadow: 0 4px 0 var(--brand-dark);
  color: #fff; font-size: 18px; font-weight: 800; text-decoration: none;
}
.kv { display: grid; grid-template-columns: 1fr 1fr; margin-top: 32px; border-top: 1px solid var(--text); border-bottom: 1px solid var(--text); }
.kv-row { display: grid; grid-template-columns: 180px 1fr; border-bottom: 1px solid #ccc; }
.kv-row:nth-last-child(-n+2):nth-child(odd), .kv-row:last-child { border-bottom: 0; }
.kv dt { padding: 14px 12px; background: var(--brand-pale); font-size: 14px; line-height: 1.5; }
.kv dd { padding: 14px 12px; font-size: 14px; }

/* 各社の評価の欄（参考の c-compare-card-column: 項目名 16px ブランド色／一言 24px／Good! ブランド色／説明 16px・行高 28px） */
.svc-col { margin-top: 44px; }
.svc-col-sub { display: block; color: var(--brand); font-size: 16px; font-weight: 700; line-height: 1.5; }
.svc-col-main { display: block; margin-top: 5px; font-size: 24px; font-weight: 700; line-height: 1.5; }
.svc-col-text { margin-right: 8px; }
.svc-good { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-style: italic; white-space: nowrap; vertical-align: -2px; }
.svc-good svg { flex: none; width: 24px; height: 24px; fill: var(--brand); }
.svc-col-body { margin-top: 18px; }
.svc-col-body p { font-size: 16px; font-weight: 500; line-height: 1.75; }
.svc-col-body p + p { margin-top: .8em; }
.svc-col + .service-top { margin-top: 44px; }

/* 右側（PC・追従）: 参考の c-side-posts と同じ型（見出し 14px 太字・ブランド色・点／行 15px 太字・区切り #dcdcdc・上下 16px／まとまりの間 40px） */
.side { padding-top: 60px; }
.side-sticky { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; margin-top: 40px; }
.side-sticky > * + *, .side-static > * + * { margin-top: 40px; }
.side-h { position: relative; padding: 0 0 18px 14px; color: var(--brand); font-size: 14px; font-weight: 700; line-height: 1.5; }
.side-h::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.toc li, .side-list li { border-bottom: 1px solid #dcdcdc; }
.toc li a, .side-list li a { display: block; padding: 16px 0; font-size: 15px; font-weight: 700; line-height: 1.5; text-decoration: none; }
.toc li a:hover, .toc li a.is-current, .side-list li a:hover { color: var(--brand); }
.toc-inline { display: none; }
.sp-who { display: block; color: var(--muted); font-size: 13px; font-weight: 500; }
.sp-to { display: block; margin-top: 2px; }

/* 編集部のコメント（参考の吹き出し: 淡い地・角丸 20） */
.balloon { margin: 32px 0 0; }
.balloon-text { position: relative; margin: 0; padding: 27px; border-radius: 20px; background: var(--brand-pale); line-height: 1.75; }
.balloon-text p + p { margin-top: .8em; }
.balloon-text::after { content: ""; position: absolute; left: 34px; bottom: -12px; border-style: solid; border-width: 12px 8px 0 8px; border-color: var(--brand-pale) transparent transparent; }
.balloon-who { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding-left: 14px; }
.balloon-who .ed-mark { width: 60px; height: 60px; }
.balloon-org { display: block; color: var(--muted); font-size: 12px; }
.balloon-name { display: block; font-size: 14px; font-weight: 700; }

/* 末尾の書き手の紹介（参考の c-single-author: 3px 淡灰の枠・角丸 27px・余白 27px） */
.author-box { margin-top: 73px; padding: 27px; border: 3px solid #e2e2e2; border-radius: 27px; background: #fff; }
.author-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.author-item { display: flex; align-items: center; }
.author-box .ed-mark { width: 60px; height: 60px; }
.author-detail { padding-left: 16px; }
.author-name { margin-right: 20px; font-size: 16px; font-weight: 500; }
.author-role, .author-company { font-size: 14px; font-weight: 500; }
.author-company { margin-top: 5px; }
.author-link { display: inline-flex; align-items: center; gap: 10px; flex: none; margin-top: 3px; font-size: 14px; font-weight: 700; text-decoration: none; }
.author-link:hover { color: var(--brand); }
.arrow-dot { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff; }
.arrow-dot svg { width: 14px; height: 14px; }
.author-text { margin-top: 14px; font-size: 16px; font-weight: 500; line-height: 1.75; }

/* サービスの画像の枠（提携後に ASP の素材へ差し替えるまで、サービス名を文字で出す） */
.service-thumb { display: grid; place-items: center; flex: none; width: 321px; aspect-ratio: 321 / 204; padding: 16px; border-radius: 8px; background: var(--brand-pale); text-align: center; }
.service-thumb span { font-size: 24px; font-weight: 700; line-height: 1.4; }
.service-cta { display: grid; gap: 16px; flex: 1; justify-items: end; }
.service-cta .btn-official { width: 100%; }
.service-cta .service-plans { justify-self: start; }

/* 静的ページ（運営者情報など） */
.page-static { max-width: 914px; margin: 0 auto; padding-top: 60px; }
.page-static h1 { font-size: 28px; font-weight: 700; line-height: 1.5; }
.page-static h2 { margin-top: 56px; font-size: 24px; font-weight: 700; }
.page-static p { margin-top: 16px; line-height: 1.75; }
.page-static table { width: 100%; margin-top: 24px; border-collapse: collapse; font-size: 14px; }
.page-static th, .page-static td { padding: 14px 12px; border-top: 1px solid #ccc; border-bottom: 1px solid #ccc; text-align: left; vertical-align: top; }
.page-static th { width: 180px; background: var(--brand-pale); }
.table-wrap { overflow-x: auto; }

/* ---- フッター ---- */
.ft { margin-top: 130px; background: var(--brand); color: #fff; padding: 0 var(--pad); }
.ft-in { padding: 64px 0 60px; }
.ft-logo { font-size: 32px; font-weight: 800; text-decoration: none; letter-spacing: 0.02em; }
.ft-cols { display: grid; grid-template-columns: 355px 325px 1fr; margin-top: 56px; }
.ft-h { font-size: 22px; font-weight: 700; }
.ft-col ul { margin-top: 18px; }
.ft-col li + li { margin-top: 14px; }
.ft-col a, .ft-bottom a { font-size: 14px; font-weight: 700; text-decoration: none; }
.ft a:hover { opacity: .75; }
.ft-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 64px; font-size: 14px; font-weight: 700; }

/* ---- 全画面メニュー（参考の実測: 色面の上に白い角丸パネル） ---- */
.menu {
  width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 62px 40px 40px;
  border: 0; background: var(--brand); color: var(--text); overflow-y: auto;
}
.menu[open] { animation: menu-in .3s ease; }
.menu::backdrop { background: transparent; }
@keyframes menu-in { from { opacity: 0; } to { opacity: 1; } }
.menu-panel { position: relative; max-width: 1200px; margin: 0 auto; padding: 59px 73px 46px; border-radius: 73px 27px; background: #fff; }
.menu-close { position: absolute; top: 23px; right: 26px; width: 66px; height: 66px; border: 0; border-radius: 50%; background: var(--text); cursor: pointer; }
.menu-x::before, .menu-x::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 22px; height: 2px; border-radius: 2px; background: #fff;
}
.menu-x::before { transform: translate(-50%, -50%) rotate(45deg); }
.menu-x::after { transform: translate(-50%, -50%) rotate(-45deg); }
.menu-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 58px; }
.menu-h { color: var(--brand); font-size: 30px; font-weight: 700; line-height: 1.3; }
.menu-col ul { margin-top: 40px; }
.menu-col li + li { border-top: 2px dotted #888; }
.menu-col a { display: flex; align-items: center; gap: 10px; min-height: 87px; padding: 22px 0 25px; font-size: 16px; font-weight: 700; text-decoration: none; }
.menu-col a:hover { color: var(--brand); }
.menu-ic { width: 40px; height: 40px; }
.menu-sub { display: flex; justify-content: flex-end; gap: 30px; max-width: 1200px; margin: 36px auto 0; }
.menu-sub a { color: #fff; font-size: 14px; text-decoration: none; }
.menu-sub a:hover { opacity: .75; }

/* ---- 中間の幅: 記事の2カラムは 1100px 以上だけ ---- */
@media (max-width: 1099px) {
  .article-layout.has-side { display: block; max-width: 794px; }
  .side { padding-top: 60px; }
  .side-sticky { position: static; }
  .side .toc { display: none; }
  .side { display: flex; flex-direction: column-reverse; }
  .side-sticky { margin-top: 0; }
  .side-static { margin-top: 40px; }
  .toc-inline { display: block; margin-top: 40px; padding: 20px 20px 4px; border: 3px solid #e2e2e2; border-radius: 20px; }
}
@media (max-width: 1240px) and (min-width: 769px) {
  .pills { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1080px; margin: 0 auto; }
  .pills.is-few { grid-template-columns: repeat(auto-fit, minmax(0, 350px)); }
}

/* ---- 768px 以下（参考の SP の実測: 375/768 は同じ組み方） ---- */
@media (max-width: 768px) {
  :root { --pad: 20px; }
  .logo-name { font-size: 28px; }
  .logo-sub { font-size: 11px; margin-top: 2px; }
  .menu-btn { width: 45px; height: 45px; }
  .menu-btn svg { width: 18px; height: 18px; }
  .hd--mv .hd-in { padding-top: 23px; }
  .hd--mv .logo { margin-top: 0; }
  .hd--page .hd-in { padding-top: 20px; min-height: 70px; }
  .hd--page .logo-name { font-size: 22px; }
  .hd--page .logo-sub { font-size: 11px; }
  .hd--page .menu-btn { margin-top: 2px; }

  .mv { min-height: 404px; }
  .mv-body { min-height: 0; text-align: center; }
  .mv-title { padding: 28px 0 0; font-size: 30px; }
  .mv-img { position: static; width: 235px; margin: 16px auto 0; }

  .entry-nav { margin-top: 24px; }
  .pills, .pills.is-few { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 9px; }
  .pill { flex-direction: column; gap: 6px; height: 85px; border-radius: 15px; font-size: 12px; text-align: center; line-height: 1.4; }
  .pill-ic { width: 30px; height: 30px; }
  .pills.is-few li:only-child { grid-column: 1 / -1; justify-self: center; width: calc(50% - 4.5px); }

  .sec-top { padding-top: 51px; }
  .big-h { font-size: 32px; }
  .big-sub { font-size: 14px; }
  .cat { margin-top: 36px; }
  .cat-h { gap: 10px; font-size: 20px; }
  .cat-ic { width: 30px; height: 30px; }
  .slider { margin-top: 20px; }
  .cards { gap: 10px; }
  .card { width: 56vw; }
  .card-img { border-radius: 4px; }
  .card-title { margin-top: 10px; font-size: 15px; }
  .slider-btn { width: 45px; height: 45px; top: calc(56vw * .6 / 2 - 22px); }
  .slider-btn svg { width: 18px; height: 18px; }

  .point-box { margin-top: 20px; padding: 20px; border-width: 2px; border-radius: 15px; }
  .point-h { font-size: 16px; }
  .pick-to { font-size: 16px; }
  .pick-arrow { width: 20px; height: 20px; }
  .pick-why { margin-left: -34px; font-size: 14px; }
  .svc-col { margin-top: 30px; }
  .svc-col-sub { font-size: 14px; }
  .svc-col-main { font-size: 16px; }
  .svc-good svg { width: 18px; height: 18px; }
  .svc-col-body { margin-top: 12px; }
  .svc-col-body p { font-size: 14px; }
  .svc-col + .service-top { margin-top: 30px; }
  .num { width: 24px; height: 24px; font-size: 12px; margin-top: 0; }

  .article-head { padding-top: 40px; }
  .cat-tag span { height: 29px; font-size: 12px; }
  .article-head h1 { font-size: 24px; }
  .dates { font-size: 12px; text-align: left; }
  .lead { margin-top: 24px; font-size: 14px; }
  .sec-a { margin-top: 60px; }
  .sec-a > h2, .service-name { font-size: 20px; }
  .sec-a > p { font-size: 14px; }
  .scroll-hint { font-size: 12px; }
  .table-zoom { display: none; }
  .compare-table thead th { font-size: 13px; padding: 7px 4px 3px; min-width: 150px; }
  .compare-table td { min-width: 150px; }
  .compare-table tbody th { width: 150px; min-width: 150px; padding: 14px 5px 16px; }
  .row-plan { font-size: 14px; }
  .btn-table { min-width: 108px; height: 40px; }
  .fig-num { font-size: 17px; }
  .services { margin-top: 60px; }
  .service { padding-top: 28px; }
  .service + .service { margin-top: 60px; }
  .service-top { flex-direction: column; align-items: stretch; gap: 16px; }
  .service-thumb { width: 100%; aspect-ratio: auto; height: 120px; }
  .service-thumb span { font-size: 20px; }
  .service-cta { justify-items: stretch; }
  .balloon-text { padding: 18px; font-size: 14px; }
  .balloon-who .ed-mark, .author-box .ed-mark { width: 48px; height: 48px; }
  .author-box { padding: 20px; border-radius: 20px; }
  .author-header { flex-direction: column; }
  .author-text { font-size: 14px; }
  .dates { text-align: left; }
  .btn-official { width: 100%; max-width: none; min-height: 64px; font-size: 16px; }
  .kv { grid-template-columns: 1fr; }
  .kv-row { grid-template-columns: 124px 1fr; }
  .kv-row:nth-last-child(-n+2):nth-child(odd) { border-bottom: 1px solid #ccc; }
  .kv-row:last-child { border-bottom: 0; }
  .kv dt, .kv dd { padding: 12px 8px; font-size: 13px; }

  .page-static { padding-top: 40px; }
  .page-static h1 { font-size: 22px; }
  .page-static th { width: 110px; }

  .ft { margin-top: 80px; }
  .ft-in { padding: 48px 0 40px; }
  .ft-logo { font-size: 26px; }
  .ft-cols { grid-template-columns: 1fr; gap: 32px; margin-top: 36px; }
  .ft-h { font-size: 18px; }
  .ft-bottom { flex-direction: column; gap: 8px; margin-top: 40px; }

  .menu { padding: 80px 20px 30px; }
  .menu-panel { padding: 30px 20px; border-radius: 40px 20px; }
  .menu-close { top: -62px; right: 0; width: 45px; height: 45px; }
  .menu-nav { grid-template-columns: 1fr; gap: 32px; }
  .menu-h { font-size: 22px; }
  .menu-col ul { margin-top: 16px; }
  .menu-col a { min-height: 60px; padding: 16px 0; font-size: 15px; }
  .menu-ic { width: 30px; height: 30px; }
  .menu-sub { justify-content: center; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; }
  .ad-banner p { font-size: 13px; }
  .ad-long { display: none; }
  .ad-short { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
