
/* =========================================================
   メンズ脱毛料金ナビ  style.css（全面刷新版）
   - モバイルファースト / システムフォントのみ / 外部画像なし
   - 既存クラス名と互換（HTML変更不要）
   ========================================================= */

/* 利用者の声 */
.voice { margin: 0 0 12px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 6px; }
.voice p { margin: 0 0 6px; }
.voice .voice-src { font-size: 12.5px; color: #55656f; margin: 0; }

/* 図解 */
.fig { margin: 1.2em 0; }
.fig svg { width: 100%; height: auto; display: block; }
.fig figcaption { font-size: 12.5px; color: #55656f; margin-top: 6px; line-height: 1.6; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.bdg { font-size: 12.5px; padding: 3px 10px; border: 1px solid #bcd6ee; background: #eef6fd; color: #0b5394; border-radius: 999px; }
.callout { position: relative; background: #f2f8fd; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 14px 0; }
.callout::before { content: ""; position: absolute; top: -7px; left: 34px; width: 12px; height: 12px; background: #f2f8fd; border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
.callout-label { display: inline-block; font-size: 11.5px; font-weight: 700; color: #0b5394; background: #dbeafe; border-radius: 4px; padding: 1px 8px; margin-bottom: 6px; }
.callout p { margin: 0; }
p strong, p b, li strong, li b { background: linear-gradient(transparent 62%, #cfe6f7 62%); }

/* パンくずリスト */
.crumbs { font-size: 12.5px; color: #55656f; margin: 4px 0 10px; line-height: 1.7; word-break: break-all; }
.crumbs a { color: #55656f; text-decoration: underline; text-underline-offset: 2px; }
.crumbs span { color: #18222d; }

/* ---------- 1. デザイントークン ---------- */
:root {
  /* 文字 */
  --ink: #18222d;
  --sub: #55656f;
  --mute: #7b8a96;

  /* 紺系ベース */
  --navy: #0f3057;
  --navy2: #164a7d;
  --navy3: #1f6fb2;
  --navy-tint: #eaf1f8;
  --navy-tint2: #f5f8fc;

  /* 面・線 */
  --bg: #f2f5f8;
  --card: #ffffff;
  --line: #dfe6ed;
  --line-strong: #c9d4de;

  /* 区分バッジ（医療＝緑 / サロン＝紫） */
  --green: #137333;
  --greenbg: #e6f4ea;
  --green-line: #b7dfc3;
  --purple: #6b3fa0;
  --purplebg: #f1eafa;
  --purple-line: #d9c8ef;

  /* 形状 */
  --r-s: 8px;
  --r-m: 12px;
  --r-l: 16px;
  --shadow-1: 0 1px 2px rgba(15, 48, 87, .06), 0 1px 1px rgba(15, 48, 87, .04);
  --shadow-2: 0 2px 4px rgba(15, 48, 87, .05), 0 8px 24px rgba(15, 48, 87, .08);

  /* レイアウト */
  --wrap: 880px;
  --gutter: 16px;

  /* フォント */
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
          "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  --font-num: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial,
              "Hiragino Sans", "Noto Sans JP", sans-serif;
}

/* ---------- 2. リセット / ベース ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;               /* 15px→16px：スマホでの可読性を底上げ */
  line-height: 1.8;
  letter-spacing: .02em;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
  word-break: normal;
  line-break: strict;
}

img, svg { max-width: 100%; height: auto; vertical-align: middle; }

p { margin: 0 0 1.1em; }

a {
  color: var(--navy2);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}
a:hover { color: var(--navy3); }

:focus-visible {
  outline: 3px solid var(--navy3);
  outline-offset: 2px;
  border-radius: 4px;
}

strong, b { font-weight: 700; color: var(--ink); }

small { font-size: 13px; color: var(--sub); }

hr {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 32px 0;
}

/* ---------- 3. ヘッダー ---------- */
header.site {
  position: relative;
  color: #fff;
  padding: 18px var(--gutter) 20px;
  background-color: var(--navy);
  /* 斜めの光 + 細かなドットパターン（すべてCSS） */
  background-image:
    radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.2px),
    linear-gradient(120deg, rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, .07) 55.2%, rgba(255, 255, 255, 0) 80%),
    linear-gradient(135deg, #0c2748 0%, var(--navy) 45%, var(--navy2) 100%);
  background-size: 14px 14px, 100% 100%, 100% 100%;
  overflow: hidden;
}
/* 下端のアクセントライン */
header.site::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, #5fa8e8, #9cc9f0 50%, rgba(156, 201, 240, 0));
}

header.site .logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .04em;
  color: #fff;
  text-decoration: none;
  font-feature-settings: "palt";
}
header.site .logo:hover { color: #fff; opacity: .92; }
header.site .logo a { color: inherit; text-decoration: none; }

/* ロゴマーク：円形バッジ＋円記号（インラインSVG・外部ファイルなし） */
header.site .logo::before {
  content: "";
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f3057' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 5l5 7 5-7'/%3E%3Cpath d='M12 12v8'/%3E%3Cpath d='M8 13.5h8'/%3E%3Cpath d='M8 17h8'/%3E%3C/svg%3E") center / 20px 20px no-repeat,
    linear-gradient(145deg, #ffffff, #dcebf9);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .18), inset 0 -2px 0 rgba(15, 48, 87, .12);
}

header.site .tag {
  display: block;
  margin: 8px 0 0;
  padding-left: 42px;            /* ロゴマーク幅に揃える */
  font-size: 12.5px;
  line-height: 1.6;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .82);
}

/* ---------- 4. メイン ---------- */
main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 24px var(--gutter) 48px;
}

/* ---------- 5. 見出し ---------- */
h1 {
  margin: 4px 0 12px;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: .02em;
  color: var(--navy);
  font-feature-settings: "palt";
  text-wrap: balance;
}

h2 {
  position: relative;
  margin: 44px 0 16px;
  padding: 12px 14px 12px 18px;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.5;
  color: var(--navy);
  background: var(--card);
  border: 0;
  border-radius: var(--r-m);
  box-shadow: var(--shadow-1);
  font-feature-settings: "palt";
  text-wrap: balance;
}
h2::before {
  content: "";
  position: absolute;
  left: 0; top: 10px; bottom: 10px;
  width: 5px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--navy3), var(--navy));
}

h3 {
  margin: 28px 0 10px;
  padding-bottom: 6px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  border-bottom: 2px solid var(--line);
  font-feature-settings: "palt";
}

h4 {
  margin: 20px 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy2);
}

/* ---------- 6. 確認日チップ ---------- */
.checked {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 16px;
  padding: 4px 12px 4px 10px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--navy2);
  background: var(--navy-tint);
  border: 1px solid #cfe0f0;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.checked::before {               /* 時計アイコン（CSSのみ） */
  content: "";
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background:
    linear-gradient(currentColor, currentColor) 50% 25% / 2px 40% no-repeat,
    linear-gradient(currentColor, currentColor) 70% 50% / 35% 2px no-repeat;
  flex: 0 0 auto;
}

/* ---------- 7. 目次カード ---------- */
.toc {
  margin: 20px 0 28px;
  padding: 16px 18px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-1);
}
.toc > :first-child:not(ol):not(ul) {   /* 「目次」見出し */
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--navy);
}
.toc ol, .toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}
.toc li { counter-increment: toc; }
.toc li + li { border-top: 1px dashed var(--line); }
.toc a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 2px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--ink);
  text-decoration: none;
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  flex: 0 0 auto;
  min-width: 2em;
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 800;
  color: var(--navy3);
  font-variant-numeric: tabular-nums;
}
.toc a:hover { color: var(--navy2); }
.toc li li a { padding-left: 2.6em; font-weight: 500; font-size: 14px; }
.toc li li a::before { content: "–"; min-width: 1em; color: var(--mute); }

/* ---------- 8. 汎用カード ---------- */
.card {
  margin: 16px 0;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-1);
}
.card > :last-child { margin-bottom: 0; }
.card > h3:first-child, .card > h4:first-child { margin-top: 0; }

/* リスト */
main ul:not(.citylist), main ol {
  padding-left: 1.4em;
  margin: 0 0 1.2em;
}
main li { margin: .25em 0; }
main li::marker { color: var(--navy3); }

/* ---------- 9. 区分バッジ（医療＝緑 / サロン＝紫） ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .04em;
  white-space: nowrap;
  vertical-align: middle;
  color: var(--navy2);
  background: var(--navy-tint);
  border: 1px solid #cfe0f0;
  border-radius: 999px;
}
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge.iryou {
  color: var(--green);
  background: var(--greenbg);
  border-color: var(--green-line);
}
.badge.salon {
  color: var(--purple);
  background: var(--purplebg);
  border-color: var(--purple-line);
}

/* ---------- 10. 料金表（PC/タブレット：表） ---------- */
table.rt {
  width: 100%;
  margin: 16px 0 8px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  font-size: 14.5px;
  line-height: 1.6;
}
table.rt caption {
  caption-side: top;
  padding: 0 2px 8px;
  text-align: left;
  font-size: 13px;
  color: var(--sub);
}
table.rt thead th {
  padding: 11px 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-align: left;
  white-space: nowrap;
  color: #fff;
  background: var(--navy);
  border-bottom: 0;
}
table.rt thead th + th { border-left: 1px solid rgba(255, 255, 255, .12); }

table.rt td,
table.rt tbody th {
  padding: 14px 12px;
  vertical-align: top;
  text-align: left;
  border-top: 1px solid var(--line);
}
table.rt tbody tr:first-child > * { border-top: 0; }
table.rt tbody th,
table.rt tbody td:first-child {
  font-weight: 700;
  color: var(--ink);
}
table.rt tbody tr:nth-child(even) > * { background: var(--navy-tint2); }
table.rt tbody tr:hover > * { background: #eef4fa; }

/* 料金セル */
table.rt td.price { min-width: 11em; }

.plan {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  line-height: 1.45;
}
.plan + .plan {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

/* 金額：全行同色・同ウェイト（優劣演出なし）、数字の読みやすさだけ強化 */
.plan .amt, .amt {
  font-family: var(--font-num);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: .01em;
  color: var(--navy);
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum", "lnum";
  white-space: nowrap;
}

/* 回数：小さな枠付きラベル */
.plan .times, .times {
  display: inline-block;
  padding: 0 7px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--navy2);
  background: var(--navy-tint);
  border-radius: 4px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* 1回あたり */
.plan .per, .per {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--sub);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* 補足行・注記 */
.subline {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--sub);
}
.note {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--sub);
}
p.note, div.note {
  margin: 8px 0 20px;
  padding: 10px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-strong);
  border-radius: var(--r-s);
}
table.rt .note {
  display: block;
  margin-top: 6px;
}

/* ---------- 11. 公式サイトボタン ---------- */
.camp-strip { background: #fff7e6; border: 1px solid #ecd9a8; border-radius: 10px; padding: 9px 14px; margin: 12px 0; font-size: 14.5px; }
.camp-strip strong { color: #8a6d1a; }
ol.flow { list-style: none; counter-reset: fl; padding: 0; margin: 10px 0 18px; }
ol.flow li { counter-increment: fl; position: relative; padding: 8px 0 8px 40px; border-bottom: 1px dashed #d7dee8; }
ol.flow li:last-child { border-bottom: none; }
ol.flow li::before { content: counter(fl); position: absolute; left: 0; top: 6px; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; font-size: 14px; text-align: center; line-height: 26px; }
.purpose { background: #f7fafc; border: 1px solid #d7dee8; border-radius: 12px; padding: 6px 16px; margin: 14px 0 20px; }
.purpose li { margin: 7px 0; }
.tagline { display: block; font-size: 12.5px; font-weight: 700; color: var(--navy); margin-top: 2px; letter-spacing: 0; }
ul.check { list-style: none; padding-left: 2px; }
ul.check li { position: relative; padding-left: 24px; margin: 8px 0; line-height: 1.8; }
ul.check li::before { content: "✓"; position: absolute; left: 0; color: var(--navy); font-weight: 800; }
.cta-box { background: #f2f6fb; border: 1.5px solid #b9cbe4; border-radius: 14px; padding: 18px 16px; margin: 18px 0; text-align: center; }
.cta-box .btn-lg { min-height: 52px; padding: 12px 30px; font-size: 16px; }
.cta-micro { font-size: 13px; color: var(--sub); margin: 10px 0 0; line-height: 1.7; }
.ad-tag { display: inline-block; font-size: 11px; border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; margin-left: 6px; color: var(--sub); vertical-align: 1px; }
a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .04em;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(180deg, var(--navy2), var(--navy));
  border: 0;
  border-radius: 999px;
  box-shadow: 0 2px 0 #0a2240, 0 6px 14px rgba(15, 48, 87, .22);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
  -webkit-tap-highlight-color: transparent;
}
a.btn::after {                   /* 外部リンク矢印（CSSのみ） */
  content: "";
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 2px;
}
a.btn:hover { color: #fff; filter: brightness(1.08); }
a.btn:active {
  transform: translateY(2px);
  box-shadow: 0 0 0 #0a2240, 0 3px 8px rgba(15, 48, 87, .2);
}
table.rt a.btn {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 13.5px;
  white-space: nowrap;
}

/* ---------- 12. FAQ ---------- */
details.faq {
  margin: 10px 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
details.faq > summary {
  position: relative;
  display: block;
  padding: 14px 46px 14px 48px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}
details.faq > summary::-webkit-details-marker { display: none; }
details.faq > summary::before {  /* Qマーク */
  content: "Q";
  position: absolute;
  left: 14px; top: 13px;
  width: 24px; height: 24px;
  display: grid;
  place-items: center;
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  background: var(--navy2);
  border-radius: 6px;
}
details.faq > summary::after {   /* ＋／－ */
  content: "";
  position: absolute;
  right: 16px; top: 50%;
  width: 14px; height: 14px;
  margin-top: -7px;
  background:
    linear-gradient(var(--navy2), var(--navy2)) center / 14px 2px no-repeat,
    linear-gradient(var(--navy2), var(--navy2)) center / 2px 14px no-repeat;
  transition: transform .2s ease;
}
details.faq[open] > summary::after {
  background: linear-gradient(var(--navy2), var(--navy2)) center / 14px 2px no-repeat;
}
details.faq[open] > summary { background: var(--navy-tint2); border-bottom: 1px solid var(--line); }
details.faq > summary:hover { background: var(--navy-tint2); }

details.faq .ans {
  position: relative;
  padding: 14px 16px 16px 48px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink);
}
details.faq .ans::before {       /* Aマーク */
  content: "A";
  position: absolute;
  left: 14px; top: 15px;
  width: 24px; height: 24px;
  display: grid;
  place-items: center;
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  color: var(--navy2);
  background: var(--navy-tint);
  border-radius: 6px;
}
details.faq .ans > :last-child { margin-bottom: 0; }

/* ---------- 13. 地域リンク ---------- */
ul.citylist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 24px;
  padding: 0;
  list-style: none;
}
ul.citylist li { margin: 0; }
ul.citylist a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 46px;
  padding: 10px 14px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  box-shadow: var(--shadow-1);
}
ul.citylist a::after {
  content: "";
  flex: 0 0 auto;
  width: 6px; height: 6px;
  border-top: 2px solid var(--navy3);
  border-right: 2px solid var(--navy3);
  transform: rotate(45deg);
}
ul.citylist a:hover { border-color: var(--navy3); color: var(--navy2); }

/* ---------- 14. 運営者情報 ---------- */
.operator {
  margin: 36px 0 0;
  padding: 16px 18px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--sub);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
}
.operator > :first-child { margin-top: 0; }
.operator > :last-child { margin-bottom: 0; }
.operator h2, .operator h3 {
  margin: 0 0 6px;
  padding: 0;
  font-size: 14px;
  color: var(--ink);
  background: none;
  border: 0;
  box-shadow: none;
}
.operator h2::before { display: none; }

/* ---------- 15. フッター ---------- */
footer.site {
  padding: 28px var(--gutter) 36px;
  font-size: 12.5px;
  line-height: 1.8;
  text-align: center;
  color: rgba(255, 255, 255, .78);
  background: linear-gradient(180deg, var(--navy), #0b2443);
}
footer.site a { color: #fff; }
footer.site p { margin: 0 0 6px; }

/* =========================================================
   16. スマホ：料金表カード化（thead非表示・tr＝カード）
   ========================================================= */
@media (max-width: 640px) {
  table.rt,
  table.rt tbody,
  table.rt tr,
  table.rt td,
  table.rt tbody th {
    display: block;
    width: 100%;
  }
  table.rt {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
  }
  table.rt thead {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  /* カード本体 */
  table.rt tr {
    margin: 0 0 14px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-l);
    box-shadow: var(--shadow-2);
    overflow: hidden;
  }
  table.rt tbody tr:nth-child(even) > *,
  table.rt tbody tr:hover > * { background: transparent; }

  table.rt td,
  table.rt tbody th {
    padding: 10px 16px;
    border-top: 1px solid var(--line);
  }

  /* 1セル目＝カード見出し（院名・サロン名） */
  table.rt tr > :first-child {
    padding: 14px 16px 12px;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.45;
    color: var(--navy);
    border-top: 0;
    background: linear-gradient(180deg, var(--navy-tint2), #fff) !important;
    border-bottom: 1px solid var(--line);
    font-feature-settings: "palt";
  }
  table.rt tr > :first-child + * { border-top: 0; }
  table.rt tr > :first-child .badge { margin-left: 6px; }

  /* data-label があればラベル付き2カラム表示 */
  table.rt td[data-label] {
    display: grid;
    grid-template-columns: 5.5em minmax(0, 1fr);
    column-gap: 12px;
    align-items: baseline;
  }
  table.rt td[data-label]::before {
    content: attr(data-label);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.6;
    color: var(--mute);
  }
  table.rt tr > :first-child[data-label] { display: block; }
  table.rt tr > :first-child[data-label]::before { display: none; }

  /* 料金セル：カード内で最も目立つブロックに */
  table.rt td.price {
    min-width: 0;
    padding: 12px 16px 14px;
  }
  table.rt td.price[data-label] {
    grid-template-columns: 1fr;
    row-gap: 6px;
  }
  .plan {
    padding: 10px 12px;
    background: var(--navy-tint2);
    border: 1px solid #e3ebf3;
    border-radius: var(--r-s);
  }
  .plan + .plan {
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid #e3ebf3;
  }
  .plan .amt { font-size: 24px; }
  .plan .per { flex-basis: 100%; }

  /* ボタンは横幅いっぱい・押しやすく */
  table.rt td:has(> a.btn:only-child) { padding: 12px 16px 16px; }
  table.rt a.btn {
    display: flex;
    width: 100%;
    min-height: 48px;
    font-size: 15px;
  }
  table.rt td[data-label]:has(a.btn) { display: block; }
  table.rt td[data-label]:has(a.btn)::before { display: none; }

  table.rt .note,
  table.rt .subline { font-size: 12.5px; }
}

/* ---------- 17. 少し広い画面 ---------- */
@media (min-width: 641px) {
  main { padding: 36px 24px 64px; }
  header.site { padding: 22px 24px 24px; }
  header.site .inner,
  header.site > *,
  header.site .logo,
  header.site .tag { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
  header.site .logo { display: flex; font-size: 22px; }
  header.site .logo::before { width: 36px; height: 36px; background-size: 22px 22px, auto; }
  header.site .tag { padding-left: 46px; font-size: 13px; }
  h1 { font-size: 28px; }
  h2 { font-size: 21px; }
  ul.citylist { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  ul.citylist { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- 18. アクセシビリティ / 印刷 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  body { background: #fff; font-size: 11pt; }
  header.site, footer.site { background: #fff !important; color: var(--ink); }
  header.site::after { display: none; }
  header.site .tag { color: var(--sub); }
  a.btn { box-shadow: none; background: #fff; color: var(--navy); border: 1px solid var(--navy); }
  .card, table.rt, details.faq, .toc { box-shadow: none; }
  details.faq .ans { display: block; }
}

/* ---------- 統合時の追加分 ---------- */
.hero-img { width: 100%; height: auto; display: block; border-radius: 12px; margin: 16px 0 4px; }
@media (max-width: 640px) { .pc-only { display: none; } }

/* ---------- v4: フラット化（AIテンプレ感の除去）と早見表マトリクス ---------- */
header.site {
  background-color: #123a63;
  background-image: none;
}
header.site::after { background: #2f7fc4; }
header.site .logo::before {
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f3057' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 5l5 7 5-7'/%3E%3Cpath d='M12 12v8'/%3E%3Cpath d='M8 13.5h8'/%3E%3Cpath d='M8 17h8'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
  box-shadow: none;
  border-radius: 6px;
}
h2::before { background: #123a63; border-radius: 0; }
a.btn {
  background: #123a63;
  border-radius: 6px;
  box-shadow: none;
}
a.btn:active { transform: none; box-shadow: none; }
.card, table.rt, details.faq, .toc { box-shadow: none; }
table.rt thead th { background: #123a63; }

/* 早見表：縦軸=チェーン、横軸=項目の通常表。スマホでは横スクロールで表の形を維持 */
.mscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 12px 0 4px; border: 1px solid #c9d4e0; }
table.matrix {
  border-collapse: collapse;
  width: 100%;
  min-width: 640px;
  font-size: 14px;
  line-height: 1.55;
  background: #fff;
}
table.matrix th, table.matrix td {
  border: 1px solid #c9d4e0;
  padding: 9px 10px;
  text-align: left;
  vertical-align: top;
}
table.matrix thead th {
  background: #123a63;
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}
table.matrix tbody th {
  background: #eef3f8;
  font-weight: 700;
  white-space: nowrap;
}
table.matrix tbody tr:nth-child(even) td { background: #f7fafc; }
table.matrix td.rank { text-align: center; font-weight: 800; color: #123a63; font-size: 16px; }

/* ---------- v5: frontend-designスキルのAIテンプレ兆候チェックに基づく是正 ---------- */
:root { --r-l: 4px; --r-m: 4px; --shadow-1: none; }
/* 見出しはカード化せず、編集メディア式の地の見出しに */
h2 {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 0 0 8px 12px;
  border-bottom: 1px solid #c9d4e0;
}
h2::before { top: 2px; bottom: 12px; width: 4px; }
/* 目次の連番マーカー（01/02/03）は内容が手順ではないので外す */
.toc a::before { content: none; }
.toc li + li { border-top: 1px solid var(--line); }
.toc > :first-child:not(ol):not(ul) { letter-spacing: 0; }
/* 確認日チップとバッジのピル形状・装飾アイコンをやめる */
.checked { border-radius: 4px; }
.checked::before { display: none; }
.badge { border-radius: 3px; }
.badge::before { display: none; }

/* ---------- v6: 都市ヒーローと「条件から探す」ガイド ---------- */
.cityhero {
  position: relative;
  margin: 8px 0 20px;
  border: 1px solid #c9d4e0;
  background: #e8f1f2 url("/assets/hero-city.webp") right center / cover no-repeat;
  min-height: 190px;
  display: flex;
  align-items: center;
}
.cityhero-in {
  padding: 18px 20px;
  max-width: 62%;
}
.cityhero-area {
  display: inline-block;
  margin: 0 0 8px;
  padding: 3px 14px;
  background: #fff;
  border: 1px solid #9db8cc;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  color: #123a63;
  letter-spacing: .06em;
}
.cityhero-title {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.35;
  color: #123a63;
}
.cityhero-checks {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
  padding: 0;
}
.cityhero-checks li {
  background: #fff;
  border: 1px solid #c9d4e0;
  padding: 3px 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: #123a63;
}
.cityhero-checks li::before { content: "✓ "; color: #2f7fc4; font-weight: 800; }
.cityhero-sub { margin: 0; font-size: 13px; color: #33506e; line-height: 1.6; }
@media (max-width: 640px) {
  .cityhero { min-height: 170px; background-position: 68% center; }
  .cityhero-in { max-width: 74%; padding: 14px; }
  .cityhero-title { font-size: 20px; }
}
.guide { border: 1px solid #c9d4e0; margin: 12px 0 4px; }
.guide-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 14px;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
}
.guide-row + .guide-row { border-top: 1px solid #dde5ee; }
.guide-row:hover { background: #f2f7fb; }
.guide-title { flex: 0 0 auto; font-weight: 800; color: #123a63; font-size: 15px; }
.guide-desc { flex: 1 1 auto; font-size: 13.5px; color: #44586e; line-height: 1.55; }
.guide-arrow { flex: 0 0 auto; color: #2f7fc4; font-weight: 800; }
@media (max-width: 640px) {
  .guide-row { flex-wrap: wrap; gap: 2px 10px; }
  .guide-desc { flex-basis: 100%; order: 3; }
  .guide-arrow { margin-left: auto; }
}

/* ---------- v7: 価格バー、総額シミュレーター、下部固定バー ---------- */
.pbar {
  display: block;
  height: 6px;
  background: #e3ebf3;
  margin-top: 6px;
  max-width: 180px;
}
.pbar > span { display: block; height: 100%; background: #2f7fc4; }
.sim { border: 1px solid #c9d4e0; padding: 16px; margin: 12px 0 4px; background: #fbfcfe; }
.sim-ctrl { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.sim-label { font-weight: 800; color: #123a63; font-size: 15px; }
.sim-btns { display: flex; gap: 6px; }
.sim-btns button {
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 700;
  background: #fff;
  border: 1px solid #9db8cc;
  border-radius: 4px;
  color: #123a63;
  cursor: pointer;
}
.sim-btns button.on { background: #123a63; color: #fff; border-color: #123a63; }
.sim-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 4px;
  border-top: 1px solid #dde5ee;
}
.sim-rank { font-size: 17px; font-weight: 800; color: #123a63; flex: 0 0 1.2em; text-align: center; }
.sim-main { flex: 1 1 auto; min-width: 0; }
.sim-name { display: block; font-weight: 700; font-size: 15px; }
.sim-bar { display: block; height: 8px; background: #e3ebf3; margin: 5px 0; }
.sim-bar > span { display: block; height: 100%; background: #2f7fc4; }
.sim-note { display: block; font-size: 12px; color: #5a6d82; line-height: 1.5; }
.sim-total { flex: 0 0 auto; font-size: 18px; font-weight: 800; color: #b3541e; font-variant-numeric: tabular-nums; }
.stickybar { display: none; }
@media (max-width: 640px) {
  .stickybar {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: #123a63;
    z-index: 50;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .stickybar a {
    flex: 1;
    text-align: center;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    padding: 12px 2px;
  }
  .stickybar a + a { border-left: 1px solid rgba(255, 255, 255, .25); }
  body { padding-bottom: 52px; }
  .sim-total { font-size: 16px; }
}

/* ---------- v8: 部位タブと「わかること」ボックス ---------- */
.ptab-btns { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0 4px; }
.ptab-btns button {
  padding: 9px 18px;
  font-size: 15px;
  font-weight: 700;
  background: #eef3f8;
  border: 1px solid #9db8cc;
  border-radius: 4px 4px 0 0;
  color: #123a63;
  cursor: pointer;
}
.ptab-btns button.on { background: #123a63; color: #fff; border-color: #123a63; }
.wbox {
  border: 1px solid #c9d4e0;
  background: #f2f7fb;
  padding: 14px 18px 10px;
  margin: 18px 0 4px;
}
.wbox-ttl { margin: 0 0 6px; font-weight: 800; color: #123a63; font-size: 15px; }
.wbox ul { margin: 0; padding-left: 1.3em; }
.wbox li { margin: 4px 0; font-size: 14.5px; line-height: 1.6; }
.wbox li::marker { content: "✓ "; color: #2f7fc4; font-weight: 800; }

/* ---------- v9: 見やすさ改善（実機確認の指摘対応） ---------- */
/* 薄い灰色を濃くして小さい文字のコントラストを上げる */
:root { --mute: #5b6d7c; --sub: #43566a; }
.note, .subline { font-size: 13px; }
.per { color: #43566a; }
.sim-note { color: #43566a; font-size: 12.5px; }
footer.site { color: rgba(255, 255, 255, .92); font-size: 13px; }
/* カードの輪郭を少し強くしてセクションの区切りを分かりやすく */
.card { border-color: #c9d4e0; }
/* 表：チェーン名が1〜2文字で割れないようにし、本文セルの折り方も通常の折り返しに戻す */
table.rt td, table.rt th { overflow-wrap: break-word; }
table.rt tbody th, table.rt td:first-child { word-break: keep-all; overflow-wrap: normal; }
@media (min-width: 641px) {
  table.rt tbody th, table.rt td:first-child { min-width: 6.5em; }
}
table.matrix td { overflow-wrap: break-word; }
/* 早見表：右端に影を入れて「まだ右に列がある」ことを示す＋スクロール案内 */
.mscroll { box-shadow: inset -30px 0 26px -26px rgba(18, 58, 99, .55); }
.scrollhint { margin: 0 0 4px; text-align: right; font-size: 12.5px; font-weight: 700; color: #43566a; }
/* 口コミ抜粋：店名ヘッダーと引用を分けて単調さをなくす */
.review > p:first-child { padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
.review .rq { margin: 10px 0 4px; padding-left: 12px; border-left: 3px solid #9db8cc; font-size: 14.5px; line-height: 1.75; }
.review .rq + .rq { margin-top: 14px; }
/* 先頭へ戻るボタン（長いページの移動補助。下部固定バーの上に出す） */
.totop {
  position: fixed;
  right: 12px; bottom: 64px;
  z-index: 60;
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
  text-decoration: none;
  background: #123a63;
  border: 1px solid #0c2748;
  border-radius: 4px;
  opacity: .94;
}
.totop:hover { color: #fff; opacity: 1; }
@media (min-width: 641px) { .totop { bottom: 20px; } }

