@charset "utf-8";

/* ------------------------------------------------------------
   数字と英字ロゴに使う書体は、外部から取らず自前で配る。

   外部配信だと、読み込みが終わるまで代替の書体で描かれ、
   あとから入れ替わる。数字は字幅が大きく変わるので、そのちらつきが目立つ。
   同じサーバーから配れば、CSSとほぼ同時に届くので入れ替わりが見えない。
   欧文のみで 23KB と小さいため、自前で持っても負担にならない。

   本文の日本語書体は 248 個に分割して配信されており、
   実際に使う文字の範囲だけが落ちてくる仕組みなので、そちらは外部のままにする。
   ------------------------------------------------------------ */
@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/bebasneue-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                 U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/bebasneue-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
                 U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ============================================================
   AGAクリニック検索ナビ — デザインシステム

   :root にトークンを置き、面（.light-sec / .white-sec / .gray-sec）と
   見出し（.sec-eye / .sec-title）を組み合わせて各セクションを作る。

   このサイトで意図的にやっていること:
     - 本文のウェブフォントは Noto Sans JP のみ。数字と英字ロゴだけ別書体。
       フォントファイルが増えるほど表示が遅れる。
     - font-weight は読み込んでいる 400 / 500 / 700 / 900 だけを使う。
       読み込んでいない値（800など）を書くとブラウザが字形を合成し、
       本来の書体と違う見た目になる。
     - ヒーローに大きな写真を置かない。主役は検索UI。
     - 順位や優劣を表す装飾は作らない。並び順は料金など客観的な指標に限る。
   ============================================================ */

:root {
  /* 主色。医療系の青。彩度を落として沈ませ、白との対比で清潔感を出す */
  --navy:         #0b2740;
  --accent:       #1668b3;
  --accent-light: #3d8ed6;
  --accent-dim:   rgba(22,104,179,0.08);
  --accent-border:rgba(22,104,179,0.22);

  /* 背景。白を基調に、青をわずかに含ませた明るい面を重ねる */
  --bg-white:     #ffffff;
  --bg-light:     #f5f9fc;
  --bg-gray:      #e9f0f7;

  /* 文字。真っ黒を使わない。青寄りの濃紺にすると青と喧嘩しない */
  --text-dark:    #14243a;
  --text-mid:     #4d6076;
  --text-light:   #8698ab;

  /* ▼ 版面。全セクションでこの2つだけを使う。
     決まりごと：横方向の padding は「外側の要素」に、max-width は「内側の要素」に。
     どちらか一方でも逆にすると、その面だけ左端が 28px ずれる（実際にヘッダがずれていた）。 */
  --wrap:   1180px;
  --gutter: 28px;

  --border-light: #dbe6f0;
  --shadow:       0 2px 16px rgba(11,39,64,0.06);
  --shadow-hover: 0 10px 32px rgba(11,39,64,0.13);

  /* 注意喚起・補足に使う色。多用しない */
  --warn:         #b4531a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
/* 横はみ出しの抑止は html と body の両方に掛ける。
   body だけに掛けると body の overflow-y が auto に化けて、
   「どの要素がスクロールを担うのか」が曖昧になる。 */
/* hidden だと html/body がスクロールの箱になり、ヘッダーの sticky が効かない（効いていなかった）。clip は箱を作らない */
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', system-ui, -apple-system,
               "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-weight: 400;
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.8;
  /* 数字を等幅にする。料金を縦に並べたとき桁が揃わないと比較できない */
  font-feature-settings: "palt" 1;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }

/* ------------------------------------------------------------ ヘッダ */
header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  padding: 0 var(--gutter);       /* ← 横 padding は外側に置く */
}
.header-inner {
  max-width: var(--wrap); margin: 0 auto;
  padding: 13px 0;                /* ← 内側は縦だけ */
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px;
}
/* ロゴ＝虫眼鏡マーク＋2行のサイト名。
   マークは画像ではなくインラインのSVG。読み込みを1本増やさず、
   拡大しても滲まず、色を --navy で揃えられる。
   ファビコンも同じ形（生成ツールが1枚の元データから作る） */
.logo {
  text-decoration: none; line-height: 1.15;
  display: flex; align-items: center; gap: 9px;
}
.logo-text { display: block; }
.logo-mark {
  /* 高さは2行ぶん（1.08rem×1.15 ＋ 2px ＋ 0.72rem）にほぼ一致させる。
     flex: none を外すと、狭い画面で nav に押されて楕円に潰れる */
  width: 31px; height: 31px; flex: none;
  fill: none; stroke: var(--navy); stroke-width: 4;
  stroke-linecap: round; stroke-linejoin: round;
  transition: stroke 0.25s;
}
.logo:hover .logo-mark { stroke: var(--accent); }
/* サイト名は折り返させない。
   狭い画面で nav に押されると「AGA / クリニック / 検索ナ / ビ」と
   4行に割れる（実際に割れた）。 */
.logo-main {
  font-weight: 900; font-size: 1.08rem;
  color: var(--navy); letter-spacing: 0.02em; display: block;
  white-space: nowrap;
}
.logo-sub {
  font-family: 'Bebas Neue', sans-serif;   /* 英字は数値と同じ書体で揃える */
  font-size: 0.72rem; color: var(--text-light);
  letter-spacing: 0.22em; display: block; margin-top: 2px;
  white-space: nowrap;
}
/* ヘッダ内に限定する。素の nav セレクタにすると、
   都道府県リンク（nav.pref-nav）など他の nav にも効いてしまう。
   実際 align-items:center が漏れて、2行のグループだけ上下中央に寄っていた。 */
.header-inner nav { display: flex; gap: 24px; align-items: center; }
.header-inner nav a {
  color: var(--text-mid); text-decoration: none;
  font-size: 0.79rem; font-weight: 500;
  position: relative; transition: color 0.25s; white-space: nowrap;
}
.header-inner nav a::after {
  content: ''; position: absolute; bottom: -5px; left: 0;
  width: 0; height: 2px; background: var(--accent); transition: width 0.25s;
}
.header-inner nav a:hover { color: var(--accent); }
.header-inner nav a:hover::after { width: 100%; }

/* ------------------------------------------------------------ ヒーロー
   暗い面 → 大きな見出し＋右にビジュアル → 数値バー → 波で明るい面へ落とす。
   右のビジュアルは写真ではなくSVG。画像リクエストを増やさず、
   拡大しても滲まない。 */
.hero {
  position: relative; overflow: hidden;
  /* 光の滲みは疑似要素ではなく background に直接置く。
     以前は ::before に円を置いて「62%で透明」にしていたが、
     その停止位置が横一直線の境界として見えていた（画面右半分・下寄り）。
     停止を1点にせず段階的に薄め、かつ最後の透明点がヒーローの外に
     出るように大きく取ると、境目が出ない。
     格子模様（::after）は、うるさいので廃止した。 */
  background:
    radial-gradient(1150px 880px at 76% 16%,
      rgba(74,152,220,0.26)  0%,
      rgba(63,134,200,0.15) 30%,
      rgba(52,116,180,0.07) 52%,
      rgba(40,96,155,0.025) 72%,
      rgba(11,39,64,0)      92%),
    linear-gradient(180deg, #0e3050 0%, #0b2740 58%, #082038 100%);
  /* 波をこの中に入れたので、下の padding は 0 にする。
     残しておくと「白い波の下に濃紺の帯」が居座る（居座った）。
     波の上の余白は .hero > .wave の margin-top で取る。 */
  padding: 84px var(--gutter) 0;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: var(--wrap); margin: 0 auto;
  /* 文字側を広めに取る。半々だと見出しが3行に割れて
     「探す。」だけが最終行に残る（残った）。 */
  display: grid; grid-template-columns: 1.24fr 0.76fr;
  gap: 36px; align-items: center;
}
.hero-eye {
  font-size: 0.66rem; letter-spacing: 0.34em; font-weight: 700;
  color: var(--accent-light); text-transform: uppercase;
  display: flex; align-items: center; gap: 11px;
}
.hero-eye::before {
  content: ''; display: block; width: 30px; height: 2px;
  background: var(--accent-light);
}
.hero h1 {
  margin-top: 16px;
  font-weight: 900; letter-spacing: 0.01em;
  /* 3行の短い見出し。一番長い行が「AGAクリニック」（8文字）なので、
     その行が折れない範囲で最大まで大きくしてある。
     文字列を変えたら、割れないか必ず実機で見ること。 */
  font-size: clamp(2.15rem, 5.6vw, 4.4rem);
  line-height: 1.16; color: #fff;
}
.hero h1 .em {
  /* 見出しの効かせ色。単色より奥行きが出る */
  background: linear-gradient(92deg, #5aa6e8, #9ccdf5);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead {
  margin-top: 18px; max-width: 520px;
  font-size: 0.92rem; color: #a9c2d8; line-height: 2;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(120,180,240,0.24);
  color: #cfe3f5; font-size: 0.71rem; font-weight: 700;
  letter-spacing: 0.05em; padding: 7px 16px; border-radius: 999px;
  backdrop-filter: blur(6px);
}
.hero-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #5aa6e8; flex: none;
  box-shadow: 0 0 0 4px rgba(90,166,232,0.22);
}

/* 右のビジュアル＝日本地図（ドットマップ）。
   描画は assets/japan-map.js。格子は見本画像から機械的に起こしてある。
   掲載クリニックの多い地方ほど、明るい点の割合が増える。 */
.hero-visual { position: relative; }
/* JSが描くまで高さが0だと、その分だけ後からガタッと動く。
   先に縦横比を確保しておく（58列 × 60行）。 */
.hero-visual svg {
  width: 100%; height: auto; display: block;
  aspect-ratio: 58 / 60;
}
/* 全ての点をきちんと見える濃さで出したうえで、
   クリニックのある都道府県だけを光らせる。
   （沈ませすぎると「日本地図」であること自体が読めなくなる） */
.jp-dot {
  fill: #2e618d;
}
.jp-dot--on {
  fill: #8ecdf9;
  animation: jpPulse 3.6s ease-in-out infinite;
}
@keyframes jpPulse {
  0%, 100% { opacity: .72; }
  50%      { opacity: 1; }
}
/* 沖縄が別枠であることを示すかぎ括弧 */
.jp-bracket { fill: none; stroke: rgba(120,180,240,.22); stroke-width: 1.4; }

/* ------------------------------------------------------------ 波
   暗い面から明るい面への切り替え。 */
/* 背景色はヒーロー最下部の色に合わせる。--navy のままだと、
   ヒーローが下に向かって暗くなるぶん、継ぎ目に横線が出る。
   曲線の塗り（SVG側の fill）は、下に来る面の色と必ず一致させること。
   いまは下が .white-sec なので #fff。ここがズレると帯がグレーに見える。 */
/* 波はヒーローの内側に置く。背景を持たせないので、
   親のグラデーションがそのまま波の裏まで続き、境目が出ない。
   以前は外に出して #082038 のべた塗りにしていたが、
   ヒーロー下端は放射グラデーションのぶんだけ明るく、そこが横線に見えていた。 */
.wave { background: transparent; line-height: 0; }
/* 波はヒーローの横 padding の外まで届かせる。
   届かせないと、下辺の左右にだけ濃紺が三角に残る（残った）。
   トップのヒーローは横に padding があるので、そのぶん引き戻す。 */
.hero > .wave {
  margin: 54px calc(-1 * var(--gutter)) 0;
}
.wave svg { display: block; width: 100%; height: auto; }
/* SVGの高さは幅から割り出すので端数になる。そのぶん最下部に
   1px の筋が残ることがあるので、次の面を 1px 重ねて隠す。 */
.hero + section, .page-hero + section { margin-top: -1px; position: relative; }

/* ------------------------------------------------------------ 3段検索 */
.finder {
  background: var(--bg-white);
  border: 1px solid var(--border-light); border-radius: 14px;
  box-shadow: var(--shadow-hover); overflow: hidden;
}
/* カード内の見出しは置かない。節見出し（エリアから探す／都道府県を選ぶと…）が
   同じことを言っていて、二重になる（なった）。 */
.finder-body {
  display: grid; gap: 12px; padding: 22px;
  grid-template-columns: 1fr 1fr 1fr auto; align-items: end;
}
.fld label {
  display: block; font-size: 0.7rem; font-weight: 700;
  color: var(--text-mid); letter-spacing: 0.06em; margin-bottom: 7px;
}
.fld label .step {
  display: inline-block; width: 16px; height: 16px; line-height: 16px;
  text-align: center; border-radius: 50%; margin-right: 6px;
  background: var(--accent-dim); color: var(--accent); font-size: 0.62rem;
}
/* select は OS 依存の見た目を消して、矢印を自前で描く */
.fld select {
  width: 100%; appearance: none; -webkit-appearance: none;
  font-family: inherit; font-size: 0.88rem; color: var(--text-dark);
  background: var(--bg-white); border: 1px solid var(--border-light);
  border-radius: 9px; padding: 12px 38px 12px 14px; cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-mid) 50%),
    linear-gradient(135deg, var(--text-mid) 50%, transparent 50%);
  background-position: calc(100% - 19px) calc(50% + 1px),
                       calc(100% - 14px) calc(50% + 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.fld select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
/* 前段が未選択のうちは触れないようにする。3段の順序を体で分からせる */
.fld select:disabled {
  background-color: var(--bg-light); color: var(--text-light);
  cursor: not-allowed; opacity: 1;
}
.finder-go {
  font-family: inherit; font-size: 0.87rem; font-weight: 700;
  letter-spacing: 0.04em; color: #fff; background: var(--accent);
  border: none; border-radius: 9px; padding: 13px 26px;
  cursor: pointer; transition: background 0.25s, transform 0.15s;
  white-space: nowrap;
}
.finder-go:hover { background: var(--navy); }
.finder-go:active { transform: translateY(1px); }
.finder-go:disabled {
  background: var(--border-light); color: var(--text-light); cursor: not-allowed;
}
.finder-foot {
  padding: 0 22px 20px; display: flex; flex-wrap: wrap;
  gap: 8px; align-items: center;
}
.finder-foot .cap {
  font-size: 0.71rem; color: var(--text-light); margin-right: 2px;
}
.chip {
  padding: 5px 13px; border: 1px solid var(--border-light);
  border-radius: 999px; background: var(--bg-white);
  font-size: 0.74rem; color: var(--text-mid);
  text-decoration: none; transition: all 0.22s;
}
.chip:hover {
  border-color: var(--accent); color: var(--accent); background: var(--accent-dim);
}

/* ------------------------------------------------------------ 数値バー
   暗いヒーローの中に置く。境界は細い線だけで区切る。 */
.stats-bar {
  position: relative; z-index: 1;
  max-width: var(--wrap); margin: 56px auto 0;
  display: grid; grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid rgba(120,180,240,0.16);
  border-bottom: 1px solid rgba(120,180,240,0.16);
}
.stat-item {
  /* 5つを1行に並べる。左右の padding を詰めないと
     「掲載クリニック」「AGA料金比較」が2行に折れる */
  padding: 22px 6px; text-align: center;
  border-right: 1px solid rgba(120,180,240,0.10);
  transition: background 0.3s;
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(120,180,240,0.045); }
/* 数字は Bebas Neue。縦に長い書体なので、同じ級数でも数字が大きく見える。
   単位（院・記事）は日本語なので Noto に戻す。 */
.stat-number {
  font-family: 'Bebas Neue', 'Noto Sans JP', sans-serif;
  font-size: 2.9rem; font-weight: 400; color: #7fbcf0;
  line-height: 1; letter-spacing: 0.02em;
  display: flex; align-items: baseline; justify-content: center; gap: 4px;
}
.stat-number .unit {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.8rem; color: #9cc4e6;
  font-weight: 700; letter-spacing: 0;
}
.stat-label {
  /* 5列にしたぶん字間を詰める。0.14em のままだと
     「掲載クリニック」が枠に収まらない。**折り返させない** */
  font-size: 0.67rem; color: #6f8ba6;
  letter-spacing: 0.06em; margin-top: 5px; white-space: nowrap;
}

/* ------------------------------------------------------------ 検索の面
   波の下、明るい面の先頭に置く。ヒーローから視線が落ちてくる位置。 */

/* ------------------------------------------------------------ 共通の面 */
.white-sec { background: var(--bg-white); padding: 68px var(--gutter); }
.light-sec { background: var(--bg-light); padding: 68px var(--gutter); }
.gray-sec  { background: var(--bg-gray);  padding: 68px var(--gutter); }
.inner { max-width: var(--wrap); margin: 0 auto; }
.inner-narrow { max-width: 900px; margin: 0 auto; }

.sec-header { margin-bottom: 34px; }
.sec-eye {
  font-size: 0.66rem; letter-spacing: 0.28em; color: var(--accent);
  font-weight: 700; text-transform: uppercase; margin-bottom: 9px;
  display: flex; align-items: center; gap: 10px;
}
.sec-eye::before {
  content: ''; display: block; width: 24px; height: 2px; background: var(--accent);
}
.sec-title {
  font-weight: 900; font-size: clamp(1.32rem, 2.9vw, 1.88rem);
  line-height: 1.42; color: var(--navy);
}
.sec-title .em { color: var(--accent); }
.sec-note { margin-top: 10px; font-size: 0.83rem; color: var(--text-mid); }

/* ------------------------------------------------------------ 都道府県リンク
   検索窓（select）はクローラが辿れないので、辿れるリンクをここで担保する。
   カード型だと場所を取りすぎるうえ、検索窓と役割が重なるので、
   一覧は密なリンク集にしている。 */
.pref-nav {
  margin-top: 30px;
  display: grid; gap: 22px 28px;
  /* 1行のグループと2行のグループで見出しの高さを揃える。
     指定しないと、行の高さに対して縦中央に寄る。 */
  align-items: start;
  grid-template-columns: repeat(auto-fill, minmax(236px, 1fr));
}
.pref-group h3 {
  font-size: 0.72rem; font-weight: 700; color: var(--accent);
  letter-spacing: 0.1em;
  padding-bottom: 7px; margin-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}
.pref-group ul {
  list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px;
}
.pref-group a {
  font-size: 0.83rem; text-decoration: none; color: var(--text-dark);
  display: inline-flex; align-items: baseline; gap: 3px;
  transition: color 0.2s;
}
.pref-group a:hover { color: var(--accent); text-decoration: underline; }
.pref-group b {
  font-family: 'Bebas Neue', sans-serif; font-weight: 400;
  font-size: 0.86rem; color: var(--accent);
}
/* ページそのものが無い県はリンクにしない。 */
.pref-group span { font-size: 0.83rem; color: #b3c2d1; }
/* 院が無い県も、件数は他と同じ「0」で並べる。
   ここだけ「オンライン」と別の言葉を出したが、
   **並びの中で1つだけ語が違うと、何を指しているのか読み取れない。** */

/* ------------------------------------------------------------ 条件で絞る
   絞り込みチップは、地域の結果ページ側で使う。
   トップに置くと「まだ何も絞り込んでいない状態で条件だけ並ぶ」ことになり、
   使いどころがない。 */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 9px; }
.tag-cloud .chip { font-size: 0.78rem; padding: 7px 15px; }

/* ------------------------------------------------------------ オンライン診療
   近くに通える医療機関がない人の受け皿。地域で探した直後に置く。 */
/* 3枚を必ず横一列に、版面いっぱいで並べる。
   auto-fill だと枚数によって最後の列が余り、右端が揃わなかった */
.online-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(3, 1fr);
}
.online-card {
  background: var(--bg-white); border: 1px solid var(--border-light);
  border-radius: 12px; padding: 20px; text-decoration: none;
  display: flex; flex-direction: column; gap: 11px;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.online-card:hover {
  border-color: var(--accent-border); box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.online-card .badge {
  align-self: flex-start;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em;
  color: var(--accent); background: var(--accent-dim);
  padding: 3px 9px; border-radius: 4px;
}
.online-card .name {
  font-size: 0.97rem; font-weight: 700; color: var(--navy); line-height: 1.5;
}
.online-card .price {
  display: flex; align-items: baseline; gap: 4px;
  font-family: 'Bebas Neue', 'Noto Sans JP', sans-serif;
  font-size: 1.86rem; color: var(--accent); line-height: 1;
}
.online-card .price .yen  { font-size: 1.1rem; }
.online-card .price .per  {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.7rem; color: var(--text-light); font-weight: 500;
}
.online-card .spec {
  list-style: none; display: grid; gap: 5px;
  font-size: 0.76rem; color: var(--text-mid); margin-top: auto;
}
.online-card .spec li { display: flex; justify-content: space-between; gap: 10px; }
/* 金額が何の値段か（フィナ＋ミノ）と、その条件。金額のすぐ下に置く */
.online-card .cond {
  margin-top: -6px; font-size: 0.7rem; color: var(--text-light); line-height: 1.5;
}
.online-card .spec b { font-weight: 700; color: var(--text-dark); }

/* ------------------------------------------------------------ 一覧へ誘導する釦 */
.more-wrap { margin-top: 26px; text-align: center; }
.btn-more {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 999px;
  background: var(--accent); color: #fff;
  font-size: 0.85rem; font-weight: 700; text-decoration: none;
  transition: background 0.25s, transform 0.15s;
}
.btn-more:hover { background: var(--navy); }
.btn-more:active { transform: translateY(1px); }
.btn-more::after { content: '→'; font-size: 0.9rem; }

/* ------------------------------------------------------------ 上部へ戻る */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 180;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--border-light); background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px); box-shadow: var(--shadow-hover);
  cursor: pointer; display: grid; place-items: center;
  /* 最初は隠しておき、少しスクロールしてから出す。
     visibility も切らないと、隠れていてもクリックを拾ってしまう。 */
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s, visibility .25s, transform .25s, background .25s;
}
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent); }
.to-top svg { width: 17px; height: 17px; stroke: var(--navy); fill: none;
              stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.to-top:hover svg { stroke: #fff; }
@media (max-width: 640px) {
  .to-top { right: 14px; bottom: 14px; width: 42px; height: 42px; }
}

/* ------------------------------------------------------------ 比較表への導線 */
.compare-card {
  background: var(--bg-white); border: 1px solid var(--border-light);
  border-radius: 14px; overflow: hidden; box-shadow: var(--shadow);
}
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.compare-table th, .compare-table td {
  padding: 13px 16px; text-align: left;
  border-bottom: 1px solid var(--border-light);
}
.compare-table thead th {
  background: var(--bg-light); font-size: 0.72rem; font-weight: 700;
  color: var(--text-mid); letter-spacing: 0.04em; white-space: nowrap;
}
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover { background: var(--bg-light); }
.compare-table .clinic { font-weight: 700; color: var(--navy); }
.compare-table .price {
  font-weight: 900; color: var(--accent);
  font-feature-settings: "tnum" 1; white-space: nowrap;
}
.compare-table .price small {
  font-size: 0.7rem; color: var(--text-light); font-weight: 500; margin-left: 2px;
}
/* 金額に付く条件（クーポン適用・12ヶ月定期 など）。
   **条件は金額のすぐ下に置く。**欄外にまとめると数字だけが独り歩きする */
.compare-table td > small,
.compare-table .price small.cond {
  display: block; margin: 3px 0 0; font-size: 0.68rem; font-weight: 500;
  color: var(--text-light); line-height: 1.5; white-space: normal;
}
/* 表は横に溢れる。body を横スクロールさせず、表の中だけで流す */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ------------------------------------------------------------ 選び方の分かれ道
   2段構えで「どこで受けるか」を絞っていく。
   左右に事実を並べるだけにして、断定はしない。 */
.fork { display: grid; gap: 18px; }
.fork-step {
  background: var(--bg-white); border: 1px solid var(--border-light);
  border-radius: 14px; padding: 24px 24px 22px;
}
.fork-no {
  display: inline-block; font-family: 'Bebas Neue', sans-serif;
  font-size: 0.86rem; letter-spacing: 0.14em; color: var(--accent);
  background: var(--accent-dim); padding: 2px 11px; border-radius: 4px;
}
.fork-step h3 {
  margin-top: 11px; font-size: 1.1rem; font-weight: 700;
  color: var(--navy); line-height: 1.5;
}
.fork-cols {
  margin-top: 16px; display: grid; gap: 12px;
  grid-template-columns: 1fr 1fr; align-items: stretch;
}
.fork-col {
  border: 1px solid var(--border-light); border-radius: 10px;
  padding: 16px 18px; background: var(--bg-light);
}
/* 話の落としどころになる側。色で少しだけ持ち上げる */
.fork-col.is-lead {
  background: var(--accent-dim); border-color: var(--accent-border);
}
.fork-label {
  display: block; font-size: 0.83rem; font-weight: 700;
  color: var(--navy); padding-bottom: 9px; margin-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}
.fork-col.is-lead .fork-label { border-bottom-color: var(--accent-border); }
.fork-col ul { list-style: none; display: grid; gap: 7px; }
.fork-col li {
  font-size: 0.79rem; color: var(--text-mid); line-height: 1.7;
  padding-left: 15px; position: relative;
}
.fork-col li::before {
  content: ''; position: absolute; left: 0; top: 0.62em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
  opacity: 0.45;
}
.fork-col.is-lead li::before { opacity: 1; }
.fork-note {
  margin-top: 14px; font-size: 0.81rem; color: var(--text-mid);
  line-height: 1.9; padding-left: 13px; border-left: 3px solid var(--accent-border);
}

/* 結論のカード。STEPと同じ形のまま、色だけ変えて「ここが答え」と分ける。
   **新しい色は足さない。** STEPが accent（明るい青）なので、
   結論は navy（濃紺）を面で使い、明暗そのもので差をつける。 */
.fork-step.is-conclusion {
  background: var(--navy); border-color: var(--navy);
  /* 間隔は .fork の gap に任せる。ここだけ広げると幅が揃わず、かえって目につく */
}
.fork-step.is-conclusion .fork-no {
  /* Bebas Neue に日本語は無い。字間だけ残ると間延びするので戻す */
  font-family: inherit; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.06em; color: var(--navy); background: #fff;
}
.fork-step.is-conclusion h3 { color: #fff; }
.fork-step.is-conclusion .fork-col {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
}
.fork-step.is-conclusion .fork-label {
  color: #fff; border-bottom-color: rgba(255, 255, 255, 0.2);
}
.fork-step.is-conclusion .fork-col li { color: rgba(255, 255, 255, 0.86); }
.fork-step.is-conclusion .fork-col li::before {
  background: #fff; opacity: 0.6;
}

/* ------------------------------------------------------------ コラム
   画像も日付も出さない。そのぶん見出しを主役にして、
   上端の色帯と余白で1枚ずつを立たせる。 */
.post-grid {
  /* **見出しの下線とカードの上の線を重ねない。**
     .block > h2 の下線のすぐ下にカードが来ると、
     カード上端の色帯と下線がくっついて1本の太い線に見えた */
  margin-top: 18px;
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  /* 2枠ぶんのカードが入らずに次の行へ送られると、そこに穴が空く。
     dense にすると、後ろの1枠のカードが穴を埋めてくれる */
  grid-auto-flow: dense;
}
.post-card {
  position: relative; overflow: hidden;
  background: var(--bg-white); border: 1px solid var(--border-light);
  border-radius: 14px; padding: 26px 22px 20px; text-decoration: none;
  display: flex; flex-direction: column; gap: 12px; min-height: 186px;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
/* 上端の色帯。ふだんは薄く、載せると伸びて濃くなる */
.post-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  /* バッジと同じ色。カードの色だけで、どのカテゴリかが分かるようにする */
  background: var(--cat-fg, var(--accent));
  transform: scaleX(0.18); transform-origin: left;
  opacity: .5; transition: transform .3s, opacity .3s;
}
.post-card:hover {
  border-color: var(--accent-border); box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
.post-card:hover::before { transform: scaleX(1); opacity: 1; }
.post-card .cat {
  /* 色はここで指定しない。上の .cat が変数から取る。
     ここで color/background を書くと詳細度で勝ってしまい、
     カテゴリごとの色がまた全部同じになる（一度なった） */
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em;
  align-self: flex-start;
  padding: 4px 10px; border-radius: 999px;
}
/* カテゴリの色。**ここ1か所で決める。**
   バッジの文字色・地色と、コラムのカードの上端の色帯に同じ値を使う。
   クラスは data/column_slug.json の slug から作る（cat-clinic など）ので、
   カテゴリを足したらここにも1行足す。無ければ既定の青のままになる。

   **色は変数で持つ。** 🔴 以前は .cat.cat-◯◯ に色を直接書いていたが、
   それだとバッジにしか効かず、カードの上端に同じ色を使えなかった。
   変数をカード側に置けば、中のバッジにも上端の帯にも同じ値が届く。 */
.cat-clinic     { --cat-fg: #12588f; --cat-bg: #e3f0fb; }
.cat-medicine   { --cat-fg: #1c6b53; --cat-bg: #e0f2ec; }
.cat-lifestyle  { --cat-fg: #9a5a12; --cat-bg: #fbeedd; }
.cat-transplant { --cat-fg: #7a4a00; --cat-bg: #fdf1dc; }
.cat-myth       { --cat-fg: #6b4a9c; --cat-bg: #eee8f8; }
.cat-young      { --cat-fg: #0f6f86; --cat-bg: #ddf1f6; }
.cat-alopecia   { --cat-fg: #a33a52; --cat-bg: #fbe6ea; }
.cat-covid      { --cat-fg: #4d6076; --cat-bg: #e9eef3; }
.cat-food       { --cat-fg: #5c7a1e; --cat-bg: #eef5dd; }
.cat-scalp      { --cat-fg: #a4551f; --cat-bg: #fbe9dd; }
.cat-gray-hair  { --cat-fg: #5a6472; --cat-bg: #eceff3; }
.cat-season     { --cat-fg: #1f6f5c; --cat-bg: #e2f2ed; }
.cat-tonic      { --cat-fg: #2a6aa8; --cat-bg: #e5eefa; }
.cat-hairstyle  { --cat-fg: #8a3b63; --cat-bg: #fbeaf1; }
.cat-item       { --cat-fg: #7a5c1a; --cat-bg: #f7efd9; }
.cat-genetics   { --cat-fg: #4a5aa0; --cat-bg: #e8ebf8; }
.cat-whorl      { --cat-fg: #97561d; --cat-bg: #fbecdc; }
.cat-online     { --cat-fg: #0d6a72; --cat-bg: #ddf0f1; }
.cat-ranking    { --cat-fg: #8a5a00; --cat-bg: #faeed6; }
.cat-diet       { --cat-fg: #3f7a3f; --cat-bg: #e6f3e6; }
.cat-women      { --cat-fg: #a1447a; --cat-bg: #fbe8f2; }
.cat-other      { --cat-fg: #5a6472; --cat-bg: #eceff3; }

/* 変数が無いときは既定の青。**カテゴリを足し忘れても崩れないように。** */
.cat { color: var(--cat-fg, var(--accent)); background: var(--cat-bg, var(--accent-dim)); }

/* いま見ているカテゴリ。入口の並びの中で自分の位置が分かるようにする */
.chain-nav a.is-here {
  background: var(--navy); border-color: var(--navy); color: #fff;
}
.chain-nav a.is-here b { color: #fff; }
.post-card .ttl {
  font-size: 0.96rem; font-weight: 700; color: var(--navy); line-height: 1.68;
}
.post-card .go {
  margin-top: auto; font-size: 0.74rem; font-weight: 700; color: var(--accent);
  display: inline-flex; align-items: center; gap: 6px;
}
.post-card .go::after {
  content: '→'; transition: transform .25s;
}
.post-card:hover .go::after { transform: translateX(4px); }

/* ------------------------------------------------------------ ハンバーガー
   狭い画面だけに出す。開閉は site.js。 */
.nav-toggle {
  display: none; width: 40px; height: 40px; flex: none;
  background: none; border: 1px solid var(--border-light); border-radius: 9px;
  cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.nav-toggle span {
  display: block; width: 17px; height: 2px; border-radius: 2px;
  background: var(--navy); position: relative;
  transition: transform .25s, opacity .2s;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: ''; position: absolute; left: 0; width: 17px; height: 2px;
  border-radius: 2px; background: var(--navy);
  transition: transform .25s;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top:  6px; }
/* 開いたら×にする */
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ------------------------------------------------------------ 注記・広告表記
   目立つ位置に常時出しておく。 */
.pr-note {
  background: var(--bg-gray); border-top: 1px solid var(--border-light);
  padding: 11px var(--gutter); font-size: 0.71rem; color: var(--text-mid);
  text-align: center; line-height: 1.7;
}
.disclaimer {
  margin-top: 18px; padding: 15px 18px;
  background: var(--bg-light); border-left: 3px solid var(--accent-border);
  border-radius: 0 8px 8px 0;
  font-size: 0.76rem; color: var(--text-mid); line-height: 1.85;
}

/* ------------------------------------------------------------ フッタ */
footer { background: var(--navy); color: #cfdcea; padding: 52px var(--gutter) 26px; }
.foot-grid {
  max-width: var(--wrap); margin: 0 auto;
  display: grid; gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.foot-col h4 {
  font-size: 0.73rem; font-weight: 700; color: #fff;
  letter-spacing: 0.1em; margin-bottom: 13px;
}
.foot-col ul { list-style: none; display: grid; gap: 8px; }
.foot-col a {
  color: #9fb6cd; text-decoration: none; font-size: 0.79rem;
  transition: color 0.22s;
}
.foot-col a:hover { color: #fff; }
.foot-brand .logo-main { color: #fff; }
.foot-brand .logo-sub  { color: #7e98b3; }
.foot-brand p {
  margin-top: 12px; font-size: 0.76rem; color: #8fa8c0; line-height: 1.85;
}
.foot-bottom {
  max-width: var(--wrap); margin: 30px auto 0; padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.11);
  font-size: 0.71rem; color: #7e98b3;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}

/* ------------------------------------------------------------ 画面幅 */
@media (max-width: 980px) {
  /* 2カラムだと文字も絵も痩せる。縦に積んで、絵は見出しの下に回す */
  .hero-inner { grid-template-columns: 1fr; gap: 26px; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
  /* 5つは1行に入らない。3＋2で折る。
     **奇数個なので、行の右端に来る枠と最終行の扱いを個別に指定する。**
     nth-child(2n) のような一律の指定だと、区切り線が縦に揃わない */
  .stats-bar { grid-template-columns: repeat(3, 1fr); }
  .stat-item:nth-child(3n) { border-right: none; }
  .stat-item:nth-child(-n+3) { border-bottom: 1px solid rgba(120,180,240,0.10); }
  /* 最終行は2つ。中央に寄せると、上の行の区切り線とずれて見える。
     左詰めのまま、最後の枠の右線だけ消す */
  .stat-item:last-child { border-right: none; }
}
@media (max-width: 900px) {
  .finder-body { grid-template-columns: 1fr 1fr; }
  .finder-go { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  /* 左右の余白はここ1か所で切り替える。
     各セクションに個別の px を書くと、必ずどこか揃わなくなる。 */
  :root { --gutter: 18px; }

  /* ロゴは左、ハンバーガーは右。nav はその下に畳んでおく */
  .header-inner {
    gap: 12px; padding: 11px 0;     /* 横は header 側の --gutter で取る */
  }
  .logo-main { font-size: 0.95rem; }
  .logo-sub  { font-size: 0.54rem; }
  /* 名前が小さくなるぶんマークも詰める。合わせないとマークだけ浮く */
  .logo-mark { width: 27px; height: 27px; }
  .logo { gap: 8px; }
  .nav-toggle { display: inline-flex; }

  .header-inner nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-hover);
    padding: 2px var(--gutter) 8px;
    /* 閉じている状態。visibility も切らないと、畳んでいてもタップを拾う */
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .2s, visibility .2s, transform .2s;
  }
  .nav-open .header-inner nav { opacity: 1; visibility: visible; transform: none; }
  .header-inner nav a {
    font-size: 0.88rem; padding: 14px 2px;
    border-bottom: 1px solid var(--border-light);
  }
  .header-inner nav a:last-child { border-bottom: none; }
  .header-inner nav a::after { display: none; }

  /* 左右に並べる比較は、狭い画面では縦に積む */
  .fork-cols { grid-template-columns: 1fr; }
  .fork-step { padding: 20px 18px 18px; }

  /* 3枚固定にしたぶん、狭い画面では自分で畳む必要がある */
  .online-grid { grid-template-columns: 1fr; }

  /* 下の padding は 0。🔴 34px 残していたため、白い曲線の下にヒーローの紺が
     帯のように見えていた（スマホの実機で指摘）。曲線の上の間隔は .hero > .wave の margin で取っている */
  .hero { padding: 44px var(--gutter) 0; }
  /* 絵が大きいと検索UIまでのスクロールが長くなる。
     スマホでは主役は検索なので、絵は控えめに詰める。 */
  .hero-visual { max-width: 248px; }
  /* 見出しが「…地域から探 / す。」と半端に折れるので下限を下げる */
  .hero h1 { font-size: clamp(1.62rem, 7vw, 2.72rem); }

  .finder-body { grid-template-columns: 1fr; gap: 14px; }
  .white-sec, .light-sec, .gray-sec { padding: 48px var(--gutter); }
  .stat-number { font-size: 2.3rem; }
  .stat-label { font-size: 0.63rem; letter-spacing: 0.08em; }
  .foot-bottom { flex-direction: column; }
}

/* 動きを減らす設定を尊重する */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   下層ページ（地域ページ／クリニックページ）
   ============================================================ */

/* ------------------------------------------------------------ 下層のヒーロー
   トップと同じ濃紺の面。パンくずと見出しをここに入れて、
   下に .wave を続ける。トップとの一貫性と、面のメリハリのため。 */
.page-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1000px 640px at 78% 6%,
      rgba(74,152,220,0.24)  0%,
      rgba(63,134,200,0.13) 32%,
      rgba(52,116,180,0.06) 56%,
      rgba(11,39,64,0)      88%),
    linear-gradient(180deg, #0e3050 0%, #0b2740 62%, #082038 100%);
}

/* ------------------------------------------------------------ パンくず */
/* **左端は h1 とそろえる。** 🔴
   .page-head は「外側に padding、内側に max-width」の順で組んである。
   パンくずだけ同じ箱に padding を入れると、その 1 つぶん（--gutter）
   右にずれる（ずれていた）。同じ順番にすること */
.crumb { padding: 0 var(--gutter); }
.crumb ol {
  max-width: var(--wrap); margin: 0 auto; padding: 13px 0 0;
  list-style: none; display: flex; flex-wrap: wrap; align-items: center;
  gap: 6px; font-size: 0.74rem; color: #7e98b3;
}
.crumb a { color: #9cc4e6; text-decoration: none; }
.crumb a:hover { color: #fff; text-decoration: underline; }
.crumb li + li::before { content: "\203a"; margin-right: 6px; color: #55738f; }

/* ------------------------------------------------------------ ページ見出し */
.page-head { padding: 26px var(--gutter) 40px; }
.page-head .inner { max-width: var(--wrap); margin: 0 auto; }
/* 記事の頭の小さな行（PR_提供 ◯◯／最終更新）。**<br> で改行しない。** 🔴
   スマホでは .page-lead br を消しているので、リード文の末尾に続けて表示されていた */
.page-lead .page-meta {
  display: block; margin-top: 8px; line-height: 1.5;
  /* 目立たせない。ただし「PR」と読める大きさと濃さは残す（小さすぎ・薄すぎは表示として不十分になる） */
  font-size: 0.68rem; opacity: 0.8; letter-spacing: 0.02em;
}
/* 記事の説明文で指定した改行。スマホで .page-lead br を消す指定より優先して残す */
.page-lead br.keep { display: inline; }
.page-head h1 {
  font-size: clamp(1.46rem, 3.5vw, 2.18rem); font-weight: 900;
  color: #fff; line-height: 1.45;
}
.page-lead {
  /* 改行位置は生成側で <br> を入れて決めている。
     ここが狭いと、その手前でブラウザがもう一度折り返してしまい、
     「カウンセ／リング」のような切れ方になる。1行ぶんの余裕を持たせる。 */
  margin-top: 14px; max-width: 1000px;
  font-size: 0.88rem; color: #a9c2d8; line-height: 2;
}
/* 画面が狭いときは <br> を無効にする。
   決め打ちの改行を残すと、折り返しと重なって1行だけ極端に短くなる */
@media (max-width: 720px) {
  .page-lead br { display: none; }
  /* 記事ページでは、スマホのとき説明文を出さない。本文の書き出しと内容が重なり、
     本文までのスクロールが長くなるだけのため。PR表記（.page-meta）は残す */
  .page-lead .lead-text { display: none; }
  .page-lead .lead-text + .page-meta { margin-top: 0; }

  /* 記事ページ（PR表記・更新日の行がある）だけ、ヒーローまわりの余白を組み直す。
     説明文を消すとヒーローが低くなり、
       ・PR表記が曲線に接して窮屈に見える（ヒーローの下余白が0のため）
       ・曲線から目次までが91pxも空く（本文の上余白48px＋最初の枠の上余白44px）
     ので、ヒーローを下に伸ばし、そのぶん本文側の余白を詰める */
  .page-head:has(.page-meta) .page-lead { margin-top: 6px; }
  .page-head:has(.page-meta) { padding-bottom: 30px; }
  .page-hero:has(.page-meta) + .white-sec { padding-top: 26px; }
  .page-hero:has(.page-meta) + .white-sec .post-main > .block:first-child { margin-top: 0; }
}
/* 見出し直下の要約。件数と最安値を数字で先に出す */
.page-meta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.meta-chip {
  border: 1px solid rgba(120,180,240,0.24); border-radius: 10px;
  padding: 9px 15px; background: rgba(255,255,255,0.06);
  backdrop-filter: blur(6px);
  display: flex; align-items: baseline; gap: 7px;
}
.meta-chip .k { font-size: 0.7rem; color: #8fb0cd; }
.meta-chip .v {
  font-family: 'Bebas Neue', 'Noto Sans JP', sans-serif;
  font-size: 1.24rem; color: #8ecdf9; line-height: 1;
}
/* 時刻は「時」を大きく、「分」を小さく。10:00 の 00 まで大きいと、
   数字が団子になって時が読み取りにくい。 */
.meta-chip .v small { font-size: 0.62em; letter-spacing: 0; }
.meta-chip .u { font-size: 0.7rem; color: #9cc4e6; font-weight: 700; }

/* ------------------------------------------------------------ 節の見出し（下層用） */
.block { margin-top: 44px; }
/* 記事の本文の先頭（目次など）は上をあけない。🔴
   横のサイドバーは余白なしで始まるので、44px ぶん本文だけ下がり、始まりの位置が揃っていなかった */
.post-main > .block:first-child,
.post-main > .block:first-child > :first-child,
.post-main > .block:first-child > :first-child > :first-child { margin-top: 0; }
/* ↑ 目次の無い記事は、書き出しの文章の枠（.prose 18px）とその最初の段落にも上余白があり、
   それが外にはみ出して本文だけ下がっていた。先頭の2段まで上余白を消す */
.block > h2 {
  font-size: clamp(1.12rem, 2.4vw, 1.42rem); font-weight: 900;
  color: var(--navy); line-height: 1.5;
  padding-bottom: 11px; border-bottom: 2px solid var(--border-light);
  position: relative;
}
.block > h2::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 62px; height: 2px; background: var(--accent);
}
.block > .note { margin-top: 12px; font-size: 0.82rem; color: var(--text-mid); line-height: 1.9; }

/* ------------------------------------------------------------ 読みもののページ
   運営者情報・本サイトについて・プライバシーポリシー・お問い合わせで使う。

   **本文は見出しの下線と同じ幅まで流す。**　🔴
   以前は max-width: 900px で1行を短く止めていたが、
   見出しの下線が1180pxまで伸びているので、本文だけ8割で折り返して
   右側が空いて見えた。幅をそろえる方を採る。 */
.prose { margin-top: 18px; }
.prose p {
  margin-top: 14px; font-size: 0.87rem; color: var(--text-dark); line-height: 2;
}
.prose h3 {
  margin-top: 30px; font-size: 1rem; font-weight: 700;
  color: var(--navy); line-height: 1.6;
  padding-left: 12px; border-left: 3px solid var(--accent);
}
.prose h3 + p { margin-top: 10px; }
.prose ul, .prose ol { margin-top: 12px; padding-left: 1.35em; }
.prose li {
  margin-top: 7px; font-size: 0.87rem; color: var(--text-dark); line-height: 1.95;
}
.prose li::marker { color: var(--accent); }
.prose strong { font-weight: 700; color: var(--navy); }
.prose a { color: var(--accent); }
/* **釦は色を上書きさせない。**　🔴
   .prose a が青文字を掛けるので、青地の釦の文字が地の色と同化して
   何も書いていない箱に見えた（見えた） */
.prose a.cmp-go { color: #fff; }
/* 記事の中の「公式サイトへ」。PR記事で読者が次に押すところなので、
   ただの文字リンクにしない（tools/md.py が /go/ だけの段落を変換する）。
   直前の「＼…／」は、ボタンに添える一言として小さく中央に置く */
.prose .cta-lead {
  margin-top: 28px; text-align: center;
  font-size: 0.86rem; font-weight: 700; color: var(--accent);
}
.prose .cta { margin-top: 8px; text-align: center; }
.prose a.btn-cta {
  display: inline-block; width: min(100%, 360px); padding: 15px 24px;
  border-radius: 999px; background: var(--accent); color: #fff;
  font-size: 0.98rem; font-weight: 700; text-decoration: none;
  box-shadow: var(--shadow); transition: background 0.2s;
}
.prose a.btn-cta:hover { background: var(--navy); }
/* 補足・注意書き。本文より一段落として見せる */
.prose .aside {
  margin-top: 18px; padding: 15px 18px;
  background: var(--bg-light); border: 1px solid var(--border-light);
  border-radius: 10px;
  font-size: 0.82rem; color: var(--text-mid); line-height: 1.95;
}
.prose .aside p { margin-top: 8px; font-size: inherit; color: inherit; }
.prose .aside p:first-child { margin-top: 0; }
/* 青い囲み（記事では「>>」で書く）。本文の補足で、読んでほしい一言に使う */
.prose .aside.is-note {
  background: var(--accent-dim); border-color: var(--accent-border);
  color: var(--text-dark); font-size: 0.88rem;
}
.prose .updated {
  margin-top: 26px; font-size: 0.76rem; color: var(--text-light);
}
/* 運営者情報・連絡先の表。クリニックページの .facts と同じ見た目に寄せる */
.prose .facts-wrap { margin-top: 18px; max-width: 900px; overflow-x: auto; }
/* ↑ 表が枠より広いときは、切らずに横スクロールさせる。🔴
   .facts-wrap は角丸のため overflow: hidden で、スマホで4列の表の右端が隠れていた */
/* 4列以上の表は、狭い画面でも各列の幅を保ち、横スクロールで読ませる（列が1〜2文字ずつ折り返すのを防ぐ） */
@media (max-width: 720px) {
  .prose table.facts.is-wide { min-width: 560px; }
}

/* ------------------------------------------------------------ 料金の比較表
   **横スクロールさせない。**　🔴
   9列ある表をスマホで横に流すと、指で送っているあいだに
   どの行を見ていたか分からなくなる。
   狭い画面では同じ <table> のまま、1行＝1枚のカードに組み替える。
   見出しは各セルの data-l に持たせてあるので、DOMは1つで済む
   （表とカードを別々に書くと、片方だけ古くなる）。 */
.cmp-wrap { margin-top: 18px; }
.cmp { width: 100%; border-collapse: collapse; font-size: 0.83rem; }
.cmp th {
  padding: 11px 10px; text-align: left; white-space: nowrap;
  font-size: 0.72rem; font-weight: 700; color: var(--text-mid);
  background: var(--bg-light); border-bottom: 2px solid var(--border-light);
}
.cmp td {
  padding: 13px 10px; border-bottom: 1px solid var(--border-light);
  vertical-align: middle; color: var(--text-dark);
}
.cmp tbody tr:hover { background: var(--bg-light); }
/* 1位だけ枠で持ち上げる。色は付けない（順位は金額で決まっているので、
   色で「おすすめ」に見せない） */
.cmp tr.is-top td { background: #f3f9ff; }
.cmp-rank {
  display: inline-grid; place-items: center; width: 26px; height: 26px;
  border-radius: 50%; background: var(--navy); color: #fff;
  font-family: 'Bebas Neue', sans-serif; font-size: 0.9rem;
}
.cmp tr.is-top .cmp-rank { background: var(--accent); }
.cmp-name {
  display: block; font-weight: 700; color: var(--navy); text-decoration: none;
  line-height: 1.5;
}
.cmp-name:hover { color: var(--accent); text-decoration: underline; }
.cmp-plan {
  display: block; margin-top: 3px; font-size: 0.7rem; color: var(--text-light);
  line-height: 1.5;
}
.cmp-yen {
  font-family: 'Bebas Neue', 'Noto Sans JP', sans-serif;
  font-size: 1.3rem; color: var(--navy); letter-spacing: 0.01em;
}
.cmp tr.is-top .cmp-yen { color: var(--accent); }
.cmp-per { font-size: 0.7rem; color: var(--text-mid); margin-left: 2px; }
.cmp-how { display: block; font-size: 0.68rem; color: var(--text-light); }
.cmp-go {
  display: inline-block; white-space: nowrap;
  padding: 9px 14px; border-radius: 8px;
  background: var(--accent); color: #fff; font-size: 0.76rem; font-weight: 700;
  text-decoration: none;
}
.cmp-go:hover { background: var(--navy); }
.cmp-rest td { font-size: 0.78rem; }
/* ------------------------------------------------------------ コラムの目次
   見出しが3つ以上ある記事だけに出す（tools/md.py）。
   2つしかない記事に付けても、行き先が2つの箱が増えるだけ */
.toc {
  background: var(--bg-light); border: 1px solid var(--border-light);
  border-radius: 12px; padding: 18px 22px; max-width: 900px;
}
.toc-t {
  font-size: 0.78rem; font-weight: 700; color: var(--navy);
  letter-spacing: 0.06em;
}
.toc ol { margin-top: 10px; padding-left: 1.3em; }
.toc li { margin-top: 6px; font-size: 0.83rem; line-height: 1.8; }
.toc li::marker { color: var(--accent); }
.toc a { color: var(--text-dark); text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }
/* 目次の小見出し。番号は付けず、親の見出しの下に一段下げて並べる */
.toc ol ol { margin-top: 4px; padding-left: 1.1em; list-style: none; }
.toc ol ol li { margin-top: 3px; font-size: 0.78rem; }
.toc ol ol li::before { content: "– "; color: var(--text-light); }
/* 開閉式の目次。見出しの行ぜんぶを押せるようにし、右端に「開く／閉じる」を出す */
.toc > summary {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; list-style: none;
}
.toc > summary::-webkit-details-marker { display: none; }
.toc > summary::after {
  content: "開く ＋"; font-size: 0.74rem; font-weight: 700; color: var(--accent);
  letter-spacing: 0;
}
.toc[open] > summary::after { content: "閉じる −"; }

/* 本文の画像。**原寸で出さない。**記事によって元の大きさがばらばらで、
   そのまま出すと横に飛び出す */
.prose img {
  display: block; max-width: 100%; height: auto;
  margin: 18px 0; border-radius: 10px;
}

/* ------------------------------------------------------------ 記事の横の欄
   内部リンクを増やすための場所。
   **狭い画面では横に置かない。**300pxの欄を無理に残すと、
   本文が読めない幅になる。下へ回す */
.post-wrap {
  display: grid; gap: 30px;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
}
.post-main { min-width: 0; }
/* 横の欄はスクロールに付いてくる。長い記事でも導線が消えない */
.post-side { position: sticky; top: 84px; display: grid; gap: 14px; }
.side-box {
  background: var(--bg-white); border: 1px solid var(--border-light);
  border-radius: 12px; padding: 16px 18px;
}
.side-box.side-pr { border-color: var(--accent-border); background: #fbfdff; }
.side-t {
  font-size: 0.78rem; font-weight: 700; color: var(--navy);
  padding-bottom: 9px; border-bottom: 1px solid var(--border-light);
}
.side-t a { color: var(--navy); text-decoration: none; }
.side-t a:hover { color: var(--accent); text-decoration: underline; }
.side-name {
  display: block; margin-top: 11px; font-size: 0.95rem; font-weight: 700;
  color: var(--navy); text-decoration: none; line-height: 1.5;
}
.side-name:hover { color: var(--accent); }
.side-note {
  margin-top: 9px; font-size: 0.78rem; color: var(--text-mid); line-height: 1.9;
}
.side-note strong { color: var(--navy); }
.side-box .cmp-go {
  display: block; margin-top: 12px; text-align: center; padding: 11px;
}
.side-fine {
  margin-top: 9px; font-size: 0.7rem; color: var(--text-light); line-height: 1.8;
}
.side-fine a { color: var(--accent); }
.side-rank, .side-list { margin-top: 11px; }
.side-rank { padding-left: 1.25em; }
.side-list { list-style: none; }
.side-rank li, .side-list li {
  margin-top: 9px; font-size: 0.8rem; line-height: 1.7;
}
.side-rank li::marker { color: var(--accent); font-weight: 700; }
.side-list li { padding-left: 14px; position: relative; }
.side-list li::before {
  content: ''; position: absolute; left: 0; top: 0.62em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}
.side-rank a, .side-list a { color: var(--text-dark); text-decoration: none; }
.side-rank a:hover, .side-list a:hover {
  color: var(--accent); text-decoration: underline;
}
.side-cats { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 7px; }
.side-cats .cat {
  font-size: 0.7rem; font-weight: 700; padding: 4px 11px; border-radius: 999px;
  text-decoration: none;
}
@media (max-width: 900px) {
  .post-wrap { grid-template-columns: 1fr; gap: 26px; }
  .post-side { position: static; }
}

/* ------------------------------------------------------------ 目的別のカード
   「何を優先するか」でおすすめが変わることを、面で見せる。
   中身（どこを推すか）は build_hikaku がデータから選ぶ */
.pick-grid {
  margin-top: 18px; display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
}
.pick {
  background: var(--bg-white); border: 1px solid var(--border-light);
  border-radius: 14px; padding: 20px; display: flex; flex-direction: column;
}
.pick-head { display: flex; align-items: center; gap: 9px; }
.pick-ico { font-size: 1.24rem; line-height: 1; }
.pick-for {
  font-size: 0.76rem; font-weight: 700; color: var(--accent); line-height: 1.5;
}
.pick-name {
  margin-top: 10px; font-size: 1.04rem; font-weight: 700;
  color: var(--navy); text-decoration: none; line-height: 1.5;
}
.pick-name:hover { color: var(--accent); text-decoration: underline; }
.pick-why {
  margin-top: 9px; font-size: 0.79rem; color: var(--text-mid); line-height: 1.9;
  flex: 1 1 auto;
}
.pick-num {
  margin: 14px 0 12px;
  font-family: 'Bebas Neue', 'Noto Sans JP', sans-serif;
  font-size: 1.18rem; color: var(--navy); letter-spacing: 0.01em;
}
.pick .cmp-go { display: block; text-align: center; padding: 11px; }

/* 広告であることの表示。**明るい面の上に置く**ので、
   .ad-badge（暗い面用・薄い青文字）とは色を変える */
.pr-badge {
  display: inline-block;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em;
  color: var(--accent); background: var(--accent-dim);
  padding: 3px 10px; border-radius: 4px;
}

@media (max-width: 860px) {
  .cmp, .cmp tbody, .cmp tr, .cmp td { display: block; width: 100%; }
  .cmp thead { display: none; }
  .cmp tr {
    margin-bottom: 12px; padding: 14px 16px;
    background: var(--bg-white); border: 1px solid var(--border-light);
    border-radius: 12px;
  }
  .cmp tr.is-top { border-color: var(--accent-border); box-shadow: var(--shadow); }
  .cmp tr.is-top td { background: transparent; }
  .cmp td {
    padding: 7px 0; border-bottom: 1px dashed var(--border-light);
    display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  }
  .cmp td:last-child { border-bottom: none; padding-top: 12px; }
  /* 見出しは data-l から出す。空のものは行ごと詰める */
  .cmp td::before {
    content: attr(data-l);
    flex: 0 0 auto; font-size: 0.72rem; font-weight: 700; color: var(--text-mid);
  }
  .cmp td > * { text-align: right; }
  /* 順位と院名は横並びにせず、カードの頭として大きく見せる */
  .cmp td[data-l="順位"] { border-bottom: none; padding-bottom: 0; }
  .cmp td[data-l="順位"]::before { display: none; }
  .cmp td[data-l="クリニック"] { display: block; border-bottom: none; }
  .cmp td[data-l="クリニック"]::before { display: none; }
  .cmp td[data-l="クリニック"] > * { text-align: left; }
  .cmp td[data-l="クリニック"] .cmp-name { font-size: 1.02rem; margin-top: 4px; }
  .cmp td[data-l=""]::before { display: none; }
  .cmp td[data-l=""] { justify-content: stretch; }
  .cmp-go { display: block; text-align: center; padding: 12px; font-size: 0.84rem; }
  .cmp-how { display: inline; margin-left: 6px; }
  /* **1枚のカードを縦に伸ばさない。**　🔴
     22社ぶんを1項目1行で積むと、1枚437pxになって延々スクロールになる。
     金額まわり以外は2つずつ横に並べて、カードの丈を詰める */
  .cmp td[data-l="診療"], .cmp td[data-l="返金保証"],
  .cmp td[data-l="掲載院数"] {
    display: inline-flex; width: 50%; border-bottom: none;
    padding: 4px 0; font-size: 0.78rem; gap: 8px;
  }
  /* 左側に来るほうに余白を入れる。入れないと、左の値と右の見出しが
     くっついて「オンライン返金保証」と1語に見える（見えた） */
  .cmp td[data-l="診療"], .cmp td[data-l="掲載院数"] { padding-right: 14px; }
  .cmp td[data-l="診察料"], .cmp td[data-l="送料"] { padding: 6px 0; }
}

/* ------------------------------------------------------------ クリニックの一覧 */
.clinic-list { margin-top: 18px; display: grid; gap: 14px; }
.clinic-item {
  background: var(--bg-white); border: 1px solid var(--border-light);
  border-radius: 14px; padding: 20px 22px;
  display: grid; gap: 14px;
  grid-template-columns: 1fr 232px; align-items: start;
  transition: background-color .2s, border-color .2s, box-shadow .2s;
}
/* カード全体に反応を付ける。ボタンだけが反応する状態だと、
   カードのどこを触ればよいのか分からない。
   色は薄く、影も浅くする。強くすると順位が高いカードのように見えてしまう。 */
.clinic-item:hover {
  background: var(--bg-light);
  border-color: var(--accent-border);
  box-shadow: var(--shadow);
}
/* 全国から受けられる側。枠の色で少しだけ持ち上げる */
.clinic-item.is-online { border-color: var(--accent-border); background: #fbfdff; }
.clinic-item.is-online:hover { background: #f3f9ff; }
/* 触ってもよい場所だと分かるように、カードの上ではカーソルを変える。
   ただしカード全体をリンクにはしない。中にボタンが2つあり、
   どこを押したかで行き先が変わるので、包むと押し分けられなくなる */
.clinic-item:hover .name a { color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .clinic-item { transition: none; } }
/* バッジは院名の上の行。同じ行に並べると、名前の長い院ほど
   バッジが押し出されて折り返し、どこまでが名前なのか読めなくなる */
.clinic-item .head { display: block; }
.clinic-item .head .badges { display: flex; margin-bottom: 5px; }
.clinic-item .name {
  display: block;
  font-size: 1.02rem; font-weight: 700; color: var(--navy); line-height: 1.45;
}
.clinic-item .name a { color: inherit; text-decoration: none; }
.clinic-item .name a:hover { color: var(--accent); text-decoration: underline; }
.badge-online {
  font-size: 0.64rem; font-weight: 700; letter-spacing: 0.06em;
  color: var(--accent); background: var(--accent-dim);
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}

/* 業態と扱っている治療のバッジ。多くて3つ。
   色は種類の区別だけが目的で、良し悪しの序列は付けない */
.badges { display: inline-flex; flex-wrap: wrap; gap: 5px; vertical-align: 2px; }
.bdg {
  font-size: 0.64rem; font-weight: 700; letter-spacing: 0.06em; font-style: normal;
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
  border: 1px solid transparent;
}
.bdg-kind { color: var(--navy); background: rgba(16, 42, 74, 0.07); }
.bdg-online { color: var(--accent); background: var(--accent-dim); }
.bdg-transplant { color: #7a4a00; background: #fdf1dc; }
.bdg-female { color: #8a3b63; background: #fbeaf1; }
/* 幅が足りないときは折り返す。バッジが院名と同じ行にあったころは
   3つ目を隠していたが、いまは自分の行を持っているので隠す必要がない */
.clinic-item .access {
  margin-top: 8px; font-size: 0.79rem; color: var(--text-mid); line-height: 1.8;
}
.clinic-item .access b { color: var(--text-dark); font-weight: 700; }
.clinic-item .tags { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.clinic-item .tags span {
  font-size: 0.7rem; color: var(--text-mid);
  border: 1px solid var(--border-light); border-radius: 999px; padding: 2px 9px;
  line-height: 1.6;
}
/* 治療名が長いと、2行・3行に折り返して丸い枠（999px）の外に文字がはみ出していた。🔴
   角丸を小さくして折り返す形にしたが、周りの丸い枠と形がそろわなかった。
   **枠は周りと同じ丸のまま、1行に入らない分は「…」で省略する。**
   補足の文はツール側（build_pages.short_treat）で落としてあり、全文は title で読める */
.clinic-item .tags span {
  max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* 右側の料金と導線 */
.clinic-item .buy {
  border-left: 1px solid var(--border-light); padding-left: 20px;
  display: grid; gap: 10px;
}
.clinic-item .price-k { font-size: 0.7rem; color: var(--text-light); }
.clinic-item .price-v {
  display: flex; align-items: baseline; gap: 3px;
  font-family: 'Bebas Neue', 'Noto Sans JP', sans-serif;
  font-size: 1.72rem; color: var(--accent); line-height: 1;
}
.clinic-item .price-v .yen { font-size: 1rem; }
.clinic-item .price-v .per {
  font-family: 'Noto Sans JP', sans-serif; font-size: 0.68rem;
  color: var(--text-light); font-weight: 500;
}
/* 金額に付く条件（クーポン適用・12ヶ月定期 など）。
   **条件は金額のすぐ下。**書かずに金額だけ出すと数字が独り歩きする */
.clinic-item .price-c {
  margin-top: 4px; font-size: 0.64rem; color: var(--text-light);
  line-height: 1.5;
}
.btn-go {
  display: block; text-align: center; text-decoration: none;
  background: var(--accent); color: #fff; border-radius: 9px;
  padding: 11px 10px; font-size: 0.82rem; font-weight: 700;
  transition: background .25s;
}
.btn-go:hover { background: var(--navy); }
.btn-sub {
  display: block; text-align: center; text-decoration: none;
  border: 1px solid var(--border-light); border-radius: 9px;
  padding: 9px 10px; font-size: 0.76rem; color: var(--text-mid);
  transition: border-color .25s, color .25s;
}
.btn-sub:hover { border-color: var(--accent); color: var(--accent); }

/* ------------------------------------------------------------ 項目表 */
.facts-wrap { border: 1px solid var(--border-light); border-radius: 12px; overflow: hidden; }
.facts { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.facts th, .facts td {
  padding: 12px 16px; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--border-light);
}
.facts th {
  width: 168px; white-space: nowrap; font-weight: 700;
  color: var(--text-mid); background: var(--bg-light); font-size: 0.78rem;
}
.facts tr:last-child th, .facts tr:last-child td { border-bottom: none; }
.facts td b { color: var(--accent); font-weight: 700; }
.block > .facts-wrap { margin-top: 18px; }
/* 表の中にリンクの帯を入れるときは、上の余白を殺す */
.facts .linkrow { margin-top: 0; }
.facts .linkrow a { font-size: 0.78rem; padding: 5px 12px; }

/* ------------------------------------------------------------ リンクの帯 */
.linkrow { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.linkrow a, .linkrow span {
  font-size: 0.79rem; text-decoration: none;
  border: 1px solid var(--border-light); border-radius: 999px;
  padding: 6px 14px; background: var(--bg-white); color: var(--text-dark);
  display: inline-flex; align-items: baseline; gap: 4px;
  transition: border-color .22s, color .22s;
}
.linkrow a:hover { border-color: var(--accent); color: var(--accent); }
.linkrow b { font-family: 'Bebas Neue', sans-serif; font-weight: 400; color: var(--accent); }
/* 掲載が無くリンクにできないものは、素のタグで出す */
.linkrow span { color: var(--text-light); }
/* 院のページの「取り扱っている主な治療法」。治療名が長いと、スマホで2行に折り返して
   丸い枠の角に文字がかかっていた。エリアの一覧のタグと同じく、枠は丸いまま1行で「…」にする。
   inline-flex のままでは「…」が効かない（文字が枠の子要素にならない）ので block にする */
.linkrow.is-treat span {
  display: block; max-width: 100%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* リンクの中に置く小さな補足（別の市区町村の院に、その市区町村名を添える）。
   上の .linkrow span がタグの見た目を付けてしまうので、ここで打ち消す。 */
.linkrow a .sub {
  border: 0; padding: 0; background: none;
  font-size: 0.72rem; color: var(--text-light);
  margin-left: -3px;   /* 全角括弧の左の余白のぶんを詰める */
}
.linkrow a:hover .sub { color: inherit; }

/* ------------------------------------------------------- キャンペーン情報 */
/* やっていない院でも節ごと消さないので、「特になし」の見た目も決めておく */
.camp { margin-top: 16px; display: grid; gap: 8px; list-style: none; }
.camp li {
  position: relative; padding: 13px 16px 13px 40px;
  border: 1px solid var(--border-light); border-radius: 10px;
  background: var(--bg-white); font-size: 0.88rem; line-height: 1.7;
}
.camp li::before {
  content: ""; position: absolute; left: 16px; top: 50%;
  width: 8px; height: 8px; margin-top: -4px; border-radius: 50%;
  background: var(--accent);
}
/* 割引率のバッジ。**本文に「通常◯円→◯円」を書いたうえで付ける。**
   割合だけを大きく出すと、何と比べたのか分からない表示になる */
.camp-off {
  display: inline-block; margin-right: 8px; padding: 2px 9px;
  border-radius: 999px; background: var(--accent); color: #fff;
  font-size: 0.78rem; font-weight: 700; letter-spacing: .02em;
  vertical-align: 1px; white-space: nowrap;
}

/* 料金表の但し書き。金額だけでは意味を取り違える行に添える
   （「月額11,400円」が実は6ヶ月コースの60回払いの額、など）。
   **金額より小さく、しかし読める大きさで。**見落とすと誤解のもとになる */
.fee-cap {
  display: block; margin-top: 4px; font-size: 0.78rem;
  color: var(--text-mid); line-height: 1.7; font-weight: 400;
}

/* 料金表の折りたたみ。行数が多い院で、はじめは8件だけ見せる。
   **JSが動かなくても全部読めるように**、既定は開いた状態にしておき、
   site.js が読み込まれたときだけ閉じる（.js-fold が付く） */
.js-fold tr.fold { display: none; }
tr.fold-more td { padding: 0; border: 0; background: none; }
.fold-btn {
  width: 100%; padding: 13px 10px; border: 0; border-radius: 0 0 10px 10px;
  background: var(--bg-soft, #f4f6f9); color: var(--accent);
  font: inherit; font-size: 0.86rem; font-weight: 700; cursor: pointer;
}
.fold-btn:hover { background: var(--border-light); }
/* 開いているときは「閉じる」だと分かるように、印を上向きにして色を落とす */
.fold-btn::after { content: " ▼"; font-size: 0.72em; }
.js-open .fold-btn { color: var(--text-mid); }
.js-open .fold-btn::after { content: " ▲"; }
.fold-more { display: none; }
.js-fold tr.fold-more { display: table-row; }

.camp-none {
  margin-top: 16px; padding: 15px 18px;
  border: 1px dashed var(--border-light); border-radius: 10px;
  color: var(--text-light); font-size: 0.88rem;
}

/* ------------------------------------------------------------ よくある質問 */
.faq { margin-top: 18px; display: grid; gap: 10px; }
.faq details {
  border: 1px solid var(--border-light); border-radius: 12px;
  background: var(--bg-white); overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 15px 46px 15px 18px;
  font-size: 0.88rem; font-weight: 700; color: var(--navy);
  position: relative; line-height: 1.6;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%;
  width: 9px; height: 9px; margin-top: -6px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg); transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .a { padding: 0 18px 16px; font-size: 0.83rem; color: var(--text-mid); line-height: 1.95; }

/* ------------------------------------------------------------ 下部の広告帯
   全ページ共通で最下部に置く。 */
.ad-band { background: var(--bg-gray); padding: 40px var(--gutter); margin-top: 52px; }
.ad-band .inner { max-width: var(--wrap); margin: 0 auto; }   /* バナーを並べたので本文と同じ幅に */
.ad-card {
  background: linear-gradient(135deg, #0e3050, #0b2740 62%, #082038);
  border-radius: 16px; padding: 30px 32px; color: #fff;
  display: grid; gap: 20px; grid-template-columns: 1fr auto; align-items: center;
}
/* PR表記。掲出はするが主張はさせない。塗りは入れず枠線だけにする */
.ad-badge {
  display: inline-block;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em;
  color: #8fb0cd; background: none;
  border: 1px solid rgba(120,180,240,0.34);
  padding: 3px 10px; border-radius: 4px;
}
.ad-card h2 { margin-top: 9px; font-size: 1.28rem; font-weight: 900; line-height: 1.5; }
.ad-card p { margin-top: 10px; font-size: 0.82rem; color: #a9c2d8; line-height: 1.9; }
.ad-card .price {
  display: flex; align-items: baseline; gap: 4px; margin-top: 14px;
  font-family: 'Bebas Neue', 'Noto Sans JP', sans-serif;
  font-size: 2.3rem; color: #8ecdf9; line-height: 1;
}
.ad-card .price .yen { font-size: 1.2rem; }
.ad-card .price .per {
  font-family: 'Noto Sans JP', sans-serif; font-size: 0.72rem;
  color: #9cc4e6; font-weight: 500;
}
.ad-card .btn-go { padding: 15px 34px; font-size: 0.9rem; white-space: nowrap; }
.ad-card .btn-go:hover { background: #fff; color: var(--navy); }
.ad-note { margin-top: 14px; font-size: 0.71rem; color: var(--text-mid); line-height: 1.8; }

@media (max-width: 860px) {
  .clinic-item { grid-template-columns: 1fr; }
  .clinic-item .buy {
    border-left: none; border-top: 1px solid var(--border-light);
    padding-left: 0; padding-top: 14px;
  }
  .ad-card { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .page-head { padding: 24px var(--gutter) 0; }
  .facts th { width: 108px; font-size: 0.73rem; padding: 10px 12px; }
  .facts td { padding: 10px 12px; }
  .ad-band { padding: 30px var(--gutter); }
  .ad-card { padding: 24px 20px; }
}

/* ------------------------------------------------- クリニック名で探す */
/* 版面は「エリアから探す」と同じ .finder-body / .fld を使う。
   こちらは検索ボタンが無いので、3列に割る（あちらは 1fr 1fr 1fr auto）。 */
.finder-body--name { grid-template-columns: 1.4fr 1fr 1.2fr; }
/* .fld の中の入力欄。select と同じ見た目に揃える */
.fld input[type="search"] {
  width: 100%; font-family: inherit; font-size: 0.88rem; color: var(--text-dark);
  background: var(--bg-white); border: 1px solid var(--border-light);
  border-radius: 9px; padding: 12px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none; appearance: none;
}
.fld input[type="search"]:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.finder-hint { font-size: 0.75rem; color: var(--text-light); margin: 0; }

.q-results {
  /* .finder の中に入るので、左右の余白はカードに合わせる */
  margin: 0 22px 20px; list-style: none;
  display: grid; gap: 8px;
  /* 全件出すので、ここだけ縦にスクロールさせる。
     130件でも画面を埋めない */
  max-height: 460px; overflow-y: auto;
  /* **scrollbar-gutter: stable を付けない。**
     付けると結果が1件でもスクロールバー1本ぶんの余白が右に残り、
     すぐ上のプルダウンより結果カードが狭くなる（狭くなっていた）。
     スクロールバーは細くしておく。出たときのズレを16pxから6pxに減らす */
  scrollbar-width: thin;
}
.q-results::-webkit-scrollbar { width: 6px; }
.q-results::-webkit-scrollbar-thumb {
  background: var(--border-light); border-radius: 999px;
}
.q-results li a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  padding: 12px 16px; text-decoration: none;
  border: 1px solid var(--border-light); border-radius: 10px;
  background: var(--bg-white);
  transition: background-color .2s, border-color .2s;
}
.q-results li a:hover { background: var(--bg-light); border-color: var(--accent-border); }
.q-name  { font-size: 0.9rem; font-weight: 700; color: var(--navy); }
.q-where { font-size: 0.76rem; color: var(--text-light); white-space: nowrap; }

/* 検索窓はJSなのでクローラが辿れない。チェーンへのリンクを別に置く。

   **各行を右端まで埋める。**チェーン名の長さがばらばらなので、
   ただ並べると行ごとに右端の余りがちがい、外側の枠とも揃わない。
   flex-grow で行の余りを分け合わせて、どの行も右端で切り揃える。 */
.chain-nav { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 7px; }
.chain-nav a {
  flex: 1 1 auto;
  display: inline-flex; align-items: baseline; justify-content: center; gap: 5px;
  /* コラムのカテゴリは「すべて」を入れて13個。**1行に収める。**
     左右を15px→11pxに詰めて、13個ぶんの幅を作っている。
     カテゴリを増やすときは、ここが2行に折れていないか見ること */
  padding: 8px 11px; text-decoration: none;
  border: 1px solid var(--border-light); border-radius: 999px;
  background: var(--bg-white); color: var(--text-dark); font-size: 0.78rem;
  white-space: nowrap;
  transition: border-color .2s, color .2s;
}
/* **最後の行だけは伸ばさない。**2つしか残っていない行を右端まで
   引き伸ばすと、そこだけ極端に大きいチップが並ぶ。
   余りを丸ごと引き受ける見えない要素を末尾に1つ置いて防ぐ
   （JSが入れる。伸び率を桁違いに大きくしてあるので、
   最後の行の余白はほぼこれが吸う） */
.chain-fill { flex: 9999 1 auto; }
.chain-nav a:hover { border-color: var(--accent); color: var(--accent); }
.chain-nav b { font-family: 'Bebas Neue', sans-serif; font-weight: 400; color: var(--accent); }

@media (max-width: 900px) {
  .finder-body--name { grid-template-columns: 1fr 1fr; }
  .finder-body--name .fld:first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .finder-body--name { grid-template-columns: 1fr; }
  .q-results li a { flex-direction: column; gap: 4px; }
  .q-where { white-space: normal; }
}

/* ------------------------------------------------------------ お問い合わせフォーム
   受け口は /contact/send.php。**宛先はPHPの中だけ。**
   本文にメールアドレスを出すと収集され、迷惑メールが届くようになる。 */
.cform { margin-top: 20px; }
.cform-row { margin-bottom: 18px; }
.cform-row label {
  display: block; font-size: 0.83rem; font-weight: 700;
  color: var(--text-dark); margin-bottom: 7px;
}
.req-mark { color: #c0392b; font-weight: 700; }
.cform input, .cform select, .cform textarea {
  width: 100%; box-sizing: border-box;
  font-family: inherit; font-size: 0.92rem; color: var(--text-dark);
  background: var(--bg-white);
  border: 1px solid var(--border-light); border-radius: 8px;
  padding: 12px 14px; transition: border-color 0.2s, box-shadow 0.2s;
}
.cform textarea { line-height: 1.8; resize: vertical; min-height: 160px; }
.cform input:focus, .cform select:focus, .cform textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.cform ::placeholder { color: var(--text-light); }

/* わなの欄。**display:none にしない。** 🔴
   none だと見えないことを機械に気づかれる。画面の外へ出す */
.cform-trap {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

.cform-send { margin-top: 24px; }
.cform button[type="submit"] {
  border: none; cursor: pointer; font-family: inherit;
  font-size: 0.95rem; padding: 15px 34px;
}
.cform-note {
  font-size: 0.76rem; color: var(--text-mid);
  line-height: 1.8; margin-top: 12px;
}
@media (max-width: 640px) {
  .cform button[type="submit"] { width: 100%; }
}

/* ------------------------------------------------------------ 2枠ぶんのカード
   力を入れた記事だけ横に2つぶん使う。一覧の単調さを崩し、
   どれを読んでほしいかを形で伝える。**選ぶのは人**（data/column_featured.json）。 */
.post-card.is-wide { grid-column: span 2; }
.post-card.is-wide .ttl { font-size: 1.12rem; line-height: 1.6; }
.post-card.is-wide .lead {
  /* 幅が2倍あるぶん、抜粋を1つ足せる。
     幅だけ広げて中身が同じだと、間延びして見える */
  font-size: 0.81rem; color: var(--text-mid); line-height: 1.85;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3;
  overflow: hidden;
}
.post-card.is-wide::before { height: 4px; }

/* 1列にしかならない幅では span 2 を外す。 🔴
   **外さないと、grid が列を1つ増やして横スクロールが出る。**
   258px×2＋間隔16px＝532px が2列になる下限 */
@media (max-width: 567px) {
  .post-card.is-wide { grid-column: auto; }
  .post-card.is-wide .ttl { font-size: 0.96rem; line-height: 1.68; }
}

/* ------------------------------------------------------------ クリニックのロゴ
   元の画像は加工しない。**色も余白も公式のまま。** 🔴
   縦横の比は会社ごとにバラバラなので、枠に contain で収めて位置だけ揃える。
   画像を切ったり塗り替えたりすると、商標の使い方として問題になりうる。

   背景色を指定している会社（data/logo_override.json の bg）は、
   枠の色を画像の背景と同じにする。合わせないと白い枠の中に濃い四角が浮いて、
   文字が枠線ぎりぎりに詰まって見える。 */
.lg {
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-white); border: 1px solid var(--border-light);
  border-radius: 8px; padding: 6px 10px; flex: none; overflow: hidden;
}
.lg img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain; display: block;
}
/* 一覧のカード（院名の左） */
.lg-card { width: 128px; height: 50px; }
/* 比較表の中（院名の上） */
.lg-row { width: 104px; height: 34px; }

/* カードは「ロゴ ＋ 本文 ＋ 料金」の3列。**ロゴの列は固定幅。**
   ロゴが取れていない会社は枠ごと出していないので列が1つ減る。
   **has-logo が付いた行だけ3列にする。** 🔴
   一律に3列にすると、ロゴの無い院だけ料金の枠が1列目に落ちて崩れる */
.clinic-item.has-logo { grid-template-columns: 128px 1fr 232px; }

@media (max-width: 860px) {
  /* 狭い画面ではロゴを小さくし、本文の幅を優先する。
     ロゴと本文は横に並べたまま、料金の枠だけ下の行へ回す */
  .lg-card { width: 96px; height: 38px; }
  .clinic-item.has-logo { grid-template-columns: 96px 1fr; }
  /* **行いっぱいに広げる。** 🔴 指定しないと料金の枠が
     2行目の1列目（96px）に入り、ボタンごと潰れる（潰れた） */
  .clinic-item.has-logo .buy { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  /* ここまで狭いと3つを横に並べきれない。1列に積む */
  .clinic-item.has-logo { grid-template-columns: 1fr; }
  .lg-card { width: 112px; height: 42px; }
}

/* 折り返さない前提の並び（コラムのカテゴリ13個）。
   余りを吸わせる .chain-fill を置かず、チップを版面いっぱいに伸ばす。
   **2行に折れると最後の行だけ極端に伸びる。**
   カテゴリを増やすときは1行に収まっているか見ること */
.chain-nav--fill a { flex: 1 1 auto; }

/* ロゴはカードの上下中央。
   .clinic-item は align-items:start なので、指定しないと上に張り付く。
   バッジ・院名・アクセス・タグと縦に長い本文の横で、
   ロゴだけ上端に寄っていると視線が揃わない */
.clinic-item .lg { align-self: center; }

/* 比較表のクリニック欄。ロゴと院名を横に、プラン名はその下に回す。
   **列は増やさない。**増やすと表全体が横に伸びて、狭い画面での折り返しが増える。
   クリニック欄は408px（本表）あるので、いちばん長い院名を置いても収まる */
.cmp-clinic { display: flex; align-items: center; gap: 11px; }
.cmp-clinic .lg { margin-bottom: 0; }
.cmp-clinic .cmp-name { min-width: 0; }
.cmp-plan { margin-top: 5px; }

/* ------------------------------------------------------------ パンくずの「今いるページ」
   すぐ下の見出し（h1）と同じ文字が並び、記事名が長いと2行・3行になって重複感が強かった。
   画面では上の階層だけを出す。検索エンジン向けの構造化データ（BreadcrumbList）には残している。
   項目が「ホーム」だけのときは消さない */
.crumb li:last-child:not(:first-child) { display: none; }

/* ------------------------------------------------------------ 記事の表
   マスの中身は上下中央。2行・3行のマスと1行のマスが並んでも、行の中で揃う */
.prose table.facts th,
.prose table.facts td { vertical-align: middle; }

/* 横スクロールの案内。4列以上の表（最小幅560px）が実際にはみ出す幅でだけ出す */
.prose .scroll-hint { display: none; }
@media (max-width: 595px) {
  .prose .scroll-hint {
    display: block; margin: 18px 0 -12px; text-align: right;
    font-size: 0.7rem; color: var(--text-light); letter-spacing: 0.04em;
  }
}

/* ------------------------------------------------------------ よく見られているエリア
   見出しを1行まるごと使い、ボタンはその下の行から並べる。
   以前は見出しとボタンが同じ行に並び、途中で折り返して読みにくかった */
.finder-foot .cap { flex-basis: 100%; margin: 0 0 2px; }
@media (max-width: 720px) {
  /* スマホでは6個を1行に並べ、**端末の横幅いっぱいに広げる。**
     以前は文字の幅のまま左に寄せていたので、画面の広い端末では右に余白が残った（実機で指摘）。
     列の幅は文字の長さに合わせて取り、余った幅は6個に均等に配る（grid の auto 列は伸びる） */
  .finder-foot { display: grid; grid-template-columns: repeat(6, auto); gap: 4px; }
  .finder-foot .cap { grid-column: 1 / -1; }
  .finder-foot .chip {
    padding: 4px 3px; font-size: 0.64rem; text-align: center; white-space: nowrap;
  }
}
@media (max-width: 344px) {
  /* 6個が1行に入らない小さい画面は、3個ずつ2行にする */
  .finder-foot { grid-template-columns: repeat(3, 1fr); }
}


/* ------------------------------------------------------------ 医師の写真ヒーロー（お試し）
   戻すときはこの節だけ消して update_top → 配置。HTMLは変えていない。
   写真は右に医師・左が空いた横長。左から紺を重ねて白い文字を読ませ、
   右へ行くほど紺を薄くして医師を見せる。地図は隠す。 */
.hero {
  background:
    linear-gradient(90deg,
      rgba(11,39,64,0.97) 0%, rgba(11,39,64,0.93) 34%,
      rgba(11,39,64,0.62) 54%, rgba(11,39,64,0.18) 74%, rgba(11,39,64,0.05) 100%),
    linear-gradient(0deg, rgba(8,32,56,0.92) 0%, rgba(8,32,56,0) 34%),
    url("hero-doctor.webp") right 0 top 0 / auto 100% no-repeat,
    linear-gradient(180deg, #fefefe 0%, #fefefe 35%, #eef6fd 45%, #fbfcfe 55%, #fefefe 62%, #d9ebfe 70%, #d1e7fd 80%, #cbe4ff 90%, #c3e0fd 100%),
    #b9d6f2;
}
.hero-visual { visibility: hidden; }
/* 数字の帯は右端が白衣に重なる。紺を敷いて読ませる */
.hero .stats-bar {
  background: rgba(8,32,56,0.62);   /* ぼかし（backdrop-filter）は描画が重いので使わない */
  border-radius: 12px;
}
@media (max-width: 980px) {
  /* 縦に積むので地図の場所は詰める。写真は上半分の右に医師を置き、
     文字の下は紺を濃くして読ませる */
  .hero-visual { display: none; }
  .hero-lead { color: #e3edf6; }   /* 行の右端が白衣に重なるので明るく */
  .hero {
    background:
      linear-gradient(90deg, rgba(11,39,64,0.96) 0%, rgba(11,39,64,0.9) 38%, rgba(11,39,64,0.55) 68%, rgba(11,39,64,0.15) 100%),
      linear-gradient(180deg, rgba(11,39,64,0) 32%, rgba(11,39,64,0.9) 56%, #0b2740 68%),
      url("hero-doctor-sp.webp") right 20% top 0 / auto 64% no-repeat,
      #b9d6f2;
  }
}

/* ------------------------------------------------------------ ロゴのアプリ風タイル */
.logo-mark { --logo-tile: #04274e; width: 36px; height: 36px; stroke: none; }
.logo:hover .logo-mark { stroke: none; }
.logo-mark .lm-bg { fill: var(--logo-tile); transition: fill 0.25s; }
.logo:hover .logo-mark .lm-bg { fill: var(--accent); }
.logo-mark .lm-s { fill: none; stroke: #fff; stroke-width: 3.4; }
.logo-mark .lm-f { fill: #fff; stroke: none; }
.logo-mark .lm-h { stroke: #fff; stroke-width: 4.65; stroke-linecap: round; }
.logo-mark .lm-o { fill: var(--logo-tile); stroke: var(--logo-tile); stroke-width: 2; stroke-linejoin: round; transition: fill 0.25s, stroke 0.25s; }
.logo:hover .logo-mark .lm-o { fill: var(--accent); stroke: var(--accent); }
@media (max-width: 980px) { .logo-mark { width: 32px; height: 32px; } }

/* 320px幅で「46都道府県」が2行に折れる。狭い画面だけ単位を詰める */
@media (max-width: 360px) {
  .stat-number { white-space: nowrap; }
  .stat-number .unit { font-size: 0.56rem; letter-spacing: 0; margin-left: 2px; }
}

/* 記事内のバナーは中央に */
.prose .ad-banner { text-align: center; }
.prose .ad-banner img { margin: 18px auto; border-radius: 0; }

/* ヘッダーのロゴはタイル無し（ファビコンと同じ形）。紺1色で、毛穴の縁だけヘッダーの白で抜く */
.logo-mark { width: 34px; height: 34px; }
.logo-mark .lm-s { stroke: var(--logo-tile); transition: stroke 0.25s; }
.logo-mark .lm-h { stroke: var(--logo-tile); transition: stroke 0.25s; }
.logo-mark .lm-f { fill: var(--logo-tile); transition: fill 0.25s; }
.logo-mark .lm-o, .logo:hover .logo-mark .lm-o { fill: #fff; stroke: #fff; }
.logo:hover .logo-mark .lm-s, .logo:hover .logo-mark .lm-h { stroke: var(--accent); }
.logo:hover .logo-mark .lm-f { fill: var(--accent); }
@media (max-width: 980px) { .logo-mark { width: 31px; height: 31px; } }

/* フッターのロゴ。ヘッダーと同じ形を、濃紺の面に合わせて白で出す */
.foot-logo { display: flex; align-items: center; gap: 10px; }
.foot-mark { width: 34px; height: 34px; flex: none; }
.foot-mark .fm-s { fill: none; stroke: #fff; stroke-width: 3.4; }
.foot-mark .fm-h { stroke: #fff; stroke-width: 4.65; stroke-linecap: round; }
.foot-mark .fm-f { fill: #fff; stroke: none; }
.foot-mark .fm-o { fill: var(--navy); stroke: var(--navy); stroke-width: 2; stroke-linejoin: round; }

/* ------------------------------------------------------------ 上部へ戻る（四角） */
.to-top {
  width: 52px; height: 52px; border-radius: 10px; border: none;
  background: var(--accent); backdrop-filter: none;
  box-shadow: 0 4px 16px rgba(26,108,191,0.35);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
}
.to-top:hover { background: var(--navy); transform: translateY(-3px); }
.to-top svg, .to-top:hover svg { stroke: #fff; width: 16px; height: 16px; }
.to-top-label { font-size: 9px; font-weight: 700; letter-spacing: 0.08em; color: #fff; line-height: 1; }
@media (max-width: 640px) { .to-top { width: 48px; height: 48px; } }

/* ------------------------------------------------------------ PR欄：左にバナー、右に紹介 */
.ad-row { display: flex; gap: 18px; align-items: stretch; }
.ad-row .ad-card { flex: 1; min-width: 0; }
.ad-banner-side { flex: none; }
.ad-banner-side a { display: block; }
.ad-banner-side img { display: block; width: 360px; height: 300px; border-radius: 16px; }
@media (max-width: 980px) {
  .ad-row { flex-direction: column; align-items: center; }
  .ad-row .ad-card { width: 100%; min-height: 0; }
  .ad-banner-side { width: 100%; max-width: 360px; }
  .ad-banner-side img { width: 100%; height: auto; aspect-ratio: 600 / 500; }
}

/* PR欄の注記はカードの中、金額の下に */
.ad-card .ad-card-note { margin-top: 8px; font-size: 0.7rem; color: #8fb0cd; line-height: 1.7; }

/* 記事内でバナーが続くときは横に並べる（本文の幅いっぱい・同じ高さ） */
.prose .banner-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 16px; margin: 22px 0; align-items: start; }
.prose .banner-pair p { margin: 0; text-align: center; }
.prose .banner-pair img { margin: 0; width: 100%; height: auto; }
@media (max-width: 480px) { .prose .banner-pair { grid-template-columns: 1fr; } }

/* 縦横比の違うバナーを横に並べる。幅を縦横比で割り振るので高さが揃う（style="flex:比"） */
.prose .banner-pair { display: flex; gap: 16px; }
.prose .banner-pair > p { min-width: 0; }
@media (max-width: 480px) { .prose .banner-pair { flex-direction: column; } .prose .banner-pair > p { flex: none !important; } }

/* ============================================================ 2026-11-10 ブラッシュアップ */
/* 広告バナー：四隅を丸め、マウスを乗せると少し浮く（記事内・下部の広告欄・サイドバー） */
.prose .banner-pair img, .ad-banner-side img, .side-banner img { border-radius: 14px; }
.prose .banner-pair a, .ad-banner-side a, .side-banner {
  display: block; border-radius: 14px;
  transition: transform .22s ease, box-shadow .22s ease;
}
.prose .banner-pair a:hover, .ad-banner-side a:hover, .side-banner:hover {
  transform: translateY(-4px); box-shadow: 0 12px 26px rgba(11,39,64,0.18);
}
.side-banner { margin-top: 12px; }
.side-banner img { display: block; width: 100%; height: auto; }

/* 目次：行のどこを押しても飛べるように、リンクを行いっぱいに広げる。番号もリンクの中に入れる */
.toc nav > ol { list-style: none; padding-left: 0; counter-reset: toc; }
.toc nav > ol > li { margin-top: 2px; }
.toc nav > ol > li > a { counter-increment: toc; }
.toc nav > ol > li > a::before { content: counter(toc) "."; color: var(--accent); font-weight: 700; margin-right: .55em; }
.toc nav a {
  display: block; padding: 6px 10px; border-radius: 8px;
  transition: background .18s, color .18s;
}
.toc nav a:hover { background: var(--accent-dim); color: var(--accent); text-decoration: none; }
.toc ol ol { padding-left: 1.4em; }
.toc ol ol li::before { content: none; }
.toc ol ol a { padding: 4px 10px; }

/* サイドバー：見出しに印、行を押しやすく、番号は丸に */
.side-box { box-shadow: var(--shadow); }
.side-t { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; border-bottom: 2px solid var(--bg-gray); position: relative; }
.side-t::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 34px; height: 2px; background: var(--accent); }
.side-pr .side-t::after { content: none; }
.side-rank { list-style: none; padding-left: 0; counter-reset: rank; margin-top: 8px; }
.side-rank li, .side-list li { margin-top: 0; padding-left: 0; border-bottom: 1px dashed var(--border-light); }
.side-rank li:last-child, .side-list li:last-child { border-bottom: none; }
.side-list li::before { content: none; }
.side-rank a, .side-list a {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 6px;
  border-radius: 8px; transition: background .18s, color .18s;
}
.side-rank a::before {
  counter-increment: rank; content: counter(rank);
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 0.7rem; font-weight: 700;
  display: grid; place-items: center; margin-top: 1px;
}
.side-rank li:nth-child(n+4) a::before { background: var(--bg-gray); color: var(--accent); }
.side-list a::before {
  content: '›'; flex: none; color: var(--accent); font-weight: 700; font-size: 1rem; line-height: 1.5;
}
.side-rank a:hover, .side-list a:hover { background: var(--accent-dim); color: var(--accent); text-decoration: none; }

/* カテゴリ：マウスを乗せると色が反転する */
.cat { transition: background .18s, color .18s, transform .18s; }
a.cat:hover { background: var(--cat-fg, var(--accent)); color: #fff; transform: translateY(-1px); }
.chain-nav a { transition: background .18s, color .18s, border-color .18s; }
.chain-nav a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* 治療法のタグ：リンクは無いが、マウスを乗せると色が変わる */
.linkrow.is-treat span { transition: background .18s, color .18s, border-color .18s; cursor: default; }
.linkrow.is-treat span:hover { background: var(--accent-dim); color: var(--accent); border-color: var(--accent-border); }

/* 下部のPRカード：カード全体を押せるようにし、マウスを乗せると浮く */
.ad-card { position: relative; transition: transform .22s ease, box-shadow .22s ease; }
.ad-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(11,39,64,0.25); }
.ad-card .btn-go::after { content: ''; position: absolute; inset: 0; border-radius: 16px; }

/* 料金比較の表：「〜」は金額の横に付ける（条件の small と同じ指定で改行されていた） */
.compare-table td.price > small:not(.cond) { display: inline; margin: 0 0 0 2px; }

/* サイドバーのバナー：枠もPR表記も無し。角丸だけ揃える */
.side-ad { margin: 0; }
.side-ad .side-banner { margin-top: 0; }

/* 比較ページのボタン2つ並び */
.btn-pair { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.btn-pair > a { flex: 1 1 180px; text-align: center; }

/* フッターの右端のDMMバナー */
.foot-ad { display: flex; justify-content: flex-end; align-items: flex-start; }
.foot-ad .side-banner { width: 100%; max-width: 280px; }
@media (max-width: 900px) { .foot-ad { justify-content: flex-start; } }

/* 2026-11-10 カテゴリを10個に整理。新しい「ヘアケア・育毛剤」の色 */
.cat-haircare   { --cat-fg: #2a6aa8; --cat-bg: #e5eefa; }
.cat-gray-hair  { --cat-fg: #5f5a72; --cat-bg: #efedf5; }

/* ⑤ 料金表を開いたあとも「閉じる」ボタンを出す（開くと行ごと消えていた） */
.js-open tr.fold-more { display: table-row; }

/* ② サイドバーのカテゴリは1行に1つ、横幅いっぱい */
.side-box .side-cats { display: grid; grid-template-columns: 1fr; gap: 6px; }
.side-box .side-cats .cat { display: block; text-align: left; padding: 8px 14px; font-size: 0.78rem; border-radius: 8px; }

/* ③ フッター：ロゴ／探す／AGAについて＋サイト情報／大きめのバナー の4カラム */
.foot-grid { grid-template-columns: 1.15fr 0.8fr 0.9fr 1.35fr; }
.foot-col .foot-h2 { margin-top: 22px; }
.foot-ad .side-banner { max-width: 380px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

/* 院ページの公式サイトボタン */
.block .cta-lead { margin-top: 26px; }

/* フッターのリンクの行間を詰める（2026-11-10） */
.foot-col ul { gap: 4px; }
.foot-col li { line-height: 1.6; font-size: 0.79rem; }
.foot-col a { font-size: 1em; }
.foot-col .foot-h2 { margin-top: 18px; }

/* コラムのランキングに出すクリニックのロゴ（2026-11-10） */
.prose .col-logo { margin: 6px 0 14px; }
.lg-col { width: 240px; height: 76px; padding: 10px 18px; }
@media (max-width: 560px) { .lg-col { width: 200px; height: 64px; } }

/* 2026-11-10 コラムの横の欄は本文に合わせて止めず、普通にスクロールさせる */
.post-side { position: static; align-self: start; }
/* 横の欄のカテゴリは2列（50:50） */
.side-box .side-cats { grid-template-columns: 1fr 1fr; }
.side-box .side-cats .cat { padding: 8px 10px; }

/* 院ページの最後（よくある質問の下）の公式サイトボタン */
.block-cta-end .official-cta { margin-top: 0; }

