/* =========================================================
   top.css — サイト固有CSS（美濃加茂市・加茂郡 不動産売却ガイド）
   Figma: 修正済デザイン案（node 1:2047）
   =========================================================

   【色のルール】
   ・サイト全体の色は「管理画面 ＞ 設定 ＞ サイト情報設定 ＞ サイトカラー設定」で入力。
     （メイン #1e4a3b / アクセント #e0773a / 背景 #f6f4ef … 転記用一覧は納品メモ参照）
   ・hex を書いてよいのは下の「① TOPページ専用の色変数」の定義行だけ。
     プロパティには必ず var(--xx) を使う。
   ・横はみ出し対策は overflow-x: clip（hidden はヘッダー追従を壊す）。
   ========================================================= */


/* ---------------------------------------------------------
   ⓪ サイトカラーの初期値（このサイトの配色）
   main.css の初期値（旧案件の紺 #0a065d 等）を、このサイトの配色に置き換える。
   管理画面「サイトカラー設定」に入力した値は wp_head の後段で出力されるため、
   入力があればそちらが優先される（この値は未入力時の受け皿）。
   --------------------------------------------------------- */
/* 全体の縮尺：デザイン（1920px幅）を画面幅に比例して縮小する。
   1920px以上＝等倍（1px）、1280px＝約0.67、下限0.6（1152px以下）。
   スマホ（768px以下）は等倍に戻す（SP用の値をそのまま使う）。
   PC用の寸法はすべて calc(数値 * var(--u)) で書く。文字は12px未満にしない */
:root {
  --u: clamp(0.6px, calc(100vw / 1920), 1px);
}

@media (max-width: 768px) {
  :root {
    --u: 1px;
  }

  .top-pc-br {
    display: none;
  }
}

:root {
  --color-main:      #1e4a3b;
  --color-main-dark: #173529;
  --color-accent:    #e0773a;
  --color-bg:        #f6f4ef;
  --color-bg-soft:   #e8efea;
  --color-dark:      #173529;
  --color-text:      #26302b;
  --color-text-mid:  #5b655f;
  --color-text-lt:   #6b7280;
  --color-border:    #d8ddd6;
  --color-em:        #b8492a;
  --color-marker:    #f3c9b0;

  /* 管理画面に項目が無いテーマ変数（下層ページで使用）も配色をそろえる */
  --color-warm:         #f6f4ef; /* 旧：#fdf7f2（ピンク寄りのクリーム） */
  --color-accent-dark:  #b35a25;
  --color-point1:       #9dbfae;
  --color-point2:       #e0773a;
  --color-point3:       #f2d06b;
}


/* ---------------------------------------------------------
   ① TOPページ専用の色変数（パレット外の装飾色）
   --------------------------------------------------------- */
:root {
  --top-yellow:      #f2d06b; /* FVの黄色い丸・下線・「徹底調査」バッジ */
  --top-cta-dark:    #b35a25; /* オレンジボタンの影・ホバー */
  --top-cta-shadow:  #804a2f; /* 会社紹介ボタンの影 */
  --top-ghost:       #dce6df; /* 透かし英字見出し */
  --top-check:       #9c5b3a; /* 比較表のチェック・サイトマップのアイコン */
  --top-quote:       #9dbfae; /* FVの「」 */
  --top-chip:        #e4ede6; /* FVの『』背景・吹き出し枠 */
  --top-fv-bg:       #f7f4ec; /* FV背景 */
  --top-label-bg:    #f5f7f5; /* 比較表の項目名セル */
  --top-num:         #bfd3c7; /* 会社紹介の番号 */
  --top-fv-text:     #1f2a26; /* FVの本文（吹き出し・「を」・「相談すべき」） */
  --top-ink:         #23201b; /* サイトマップの文字 */
  --top-dash:        #ede6ce; /* サイトマップの点線 */

  --top-font-en: "Jost", "Noto Sans JP", sans-serif;
  --top-font-fv: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  --top-shadow-card: 0 calc(10 * var(--u)) calc(20 * var(--u)) rgba(23, 53, 41, 0.1);

  /* 会社一覧アコーディオン：カードが flex 表示のため */
  --company-card-display: flex;
}


/* ---------------------------------------------------------
   ② TOPページ（body.home）
   --------------------------------------------------------- */
body.home {
  overflow-x: clip;
}

/* 日本語の改行：単語（文節）の途中で折り返さず、最終行に1〜2文字だけ残る改行を避ける。
   word-break: auto-phrase は <html lang="ja"> のときに有効（Chrome/Edge）。
   未対応ブラウザでは通常の改行になるだけで、表示は崩れない */
/* 本文：行の右端をそろえる（文節改行だと行末がガタつくため、本文は通常の改行＋両端そろえ） */
.top-page :is(.top-check-list span, .top-check-list strong, .top-compare__feat-title strong, .top-compare__feat-desc span, .top-co__point-text, .top-co__for li, .top-review__text p, .top-faq .faq-a p) {
  word-break: normal;
  text-wrap: pretty; /* 最終行に1〜2文字だけ残るのを防ぐ（未対応ブラウザは通常の改行） */
  text-align: justify;
  text-justify: inter-character;
}

/* 中央そろえの短い文は文節で改行（単語の途中で切らない） */
.top-page :is(.top-head__sub, .top-fv__catch, .top-fv__lead-em, .top-fv__lead-sub, .top-compare__lead span, .cite-note, .no-record-note) {
  word-break: auto-phrase;
  text-wrap: pretty;
}

.top-page :is(h1, h2, h3, h4) {
  word-break: auto-phrase;
  text-wrap: balance;
}

/* PCだけの改行 */
.top-pc-br {
  display: inline;
}

.top-page {
  display: block;
  color: var(--color-text);
}

.top-page *,
.top-page *::before,
.top-page *::after {
  box-sizing: border-box;
}

.top-wrap {
  width: min(calc(1200 * var(--u)), calc(100% - calc(64 * var(--u))));
  margin: 0 auto;
}

.top-wrap--wide {
  width: min(calc(1414 * var(--u)), calc(100% - calc(64 * var(--u))));
}

.top-wrap--list {
  width: min(calc(1424 * var(--u)), calc(100% - calc(64 * var(--u))));
}

.top-wrap--narrow {
  width: min(calc(1003 * var(--u)), calc(100% - calc(64 * var(--u))));
}

.top-sec {
  position: relative;
}

.top-center {
  margin-top: calc(56 * var(--u));
  text-align: center;
}

/* ===== 共通見出し ===== */
.top-head {
  position: relative;
  text-align: center;
}

.top-head__en {
  margin: 0 0 -44px;
  color: var(--top-ghost);
  font-family: var(--top-font-en);
  font-size: max(12px, calc(120 * var(--u)));
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.08em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.top-head__sub {
  position: relative;
  margin: 0;
  color: var(--color-main);
  font-size: max(12px, calc(24 * var(--u)));
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.top-head__title {
  position: relative;
  margin: calc(6 * var(--u)) 0 0;
  color: var(--color-text);
  font-size: max(12px, calc(44 * var(--u)));
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

/* 小見出し（「どこに頼んでも同じ」は大間違い！ 等）は H2 の中に入れ、見た目は従来どおり上段に表示 */
.top-head__title:has(> .top-head__sub) {
  margin-top: 0;
}

.top-head__title > .top-head__sub {
  display: block;
  margin-bottom: calc(6 * var(--u));
  font-family: "Noto Sans JP", sans-serif;
  white-space: normal;
}

.top-head__title--en {
  font-family: var(--top-font-en);
  font-size: max(12px, calc(48 * var(--u)));
  font-weight: 600;
  letter-spacing: 0.08em;
}

.top-head__num {
  color: var(--color-main);
  font-size: max(12px, calc(60 * var(--u)));
  line-height: 1;
}

.top-head__accent {
  color: var(--color-accent);
}

.top-head__area {
  color: var(--color-main);
  font-size: max(12px, calc(64 * var(--u)));
  line-height: 1;
}

/* おすすめ3社の見出しは折り返さず1行で表示（PC・タブレット）。
   文字数（約30字分）に合わせ、画面幅に応じて縮小する。上限はPC表示の calc(40 * var(--u)) / calc(56 * var(--u)) / calc(60 * var(--u)) */
.top-reco .top-head__title {
  --reco-fs: min(calc(40 * var(--u)), calc((100vw - calc(64 * var(--u))) / 30.5));
  font-size: var(--reco-fs);
  letter-spacing: 0;
  white-space: nowrap;
}

.top-reco .top-head__area {
  font-size: calc(var(--reco-fs) * 1.4);
}

.top-reco .top-head__num {
  font-size: calc(var(--reco-fs) * 1.5);
}

.top-reco__br {
  display: none;
}

.top-head--light .top-head__sub,
.top-head--light .top-head__title {
  color: var(--color-white);
  text-shadow: 0 calc(2 * var(--u)) calc(12 * var(--u)) rgba(0, 0, 0, 0.35);
}

/* 白抜き（縁取り）文字 */
.top-outline {
  color: var(--color-border);
  /* 縁取りは濃い緑（main-dark）。線は文字の外側に描き（paint-order）、塗りをつぶさない */
  -webkit-text-stroke: max(3px, calc(5 * var(--u))) var(--color-main-dark);
  paint-order: stroke fill;
}

.top-outline--num {
  font-size: max(12px, calc(60 * var(--u)));
  line-height: 1;
}

.top-h3,
.top-h4 {
  display: flex;
  align-items: center;
  gap: calc(14 * var(--u));
  margin: 0;
  padding-bottom: calc(18 * var(--u));
  border-bottom: 2px solid var(--color-main);
  color: var(--color-main);
  line-height: 1.4;
}

.top-h3 {
  font-size: max(12px, calc(28 * var(--u)));
  font-weight: 900;
}

.top-h4 {
  margin-top: calc(64 * var(--u));
  font-size: max(12px, calc(24 * var(--u)));
  font-weight: 700;
}

.top-h3::before,
.top-h4::before {
  content: "";
  flex: 0 0 auto;
  width: calc(12 * var(--u));
  height: calc(12 * var(--u));
  background: var(--color-main);
}

.top-h4::before {
  width: calc(10 * var(--u));
  height: calc(10 * var(--u));
}

.top-note {
  margin: calc(12 * var(--u)) 0 0;
  color: var(--color-text-mid);
  font-size: max(12px, calc(13 * var(--u)));
  font-weight: 700;
}

/* ===== ボタン ===== */
.top-btn,
.top-btn-set .company-btn-set__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(14 * var(--u));
  min-height: 0;
  border-radius: calc(999 * var(--u));
  font-size: max(12px, calc(17 * var(--u)));
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.top-btn::after,
.top-btn-set .company-btn-set__btn::after {
  content: "›";
  font-size: max(12px, calc(20 * var(--u)));
  line-height: 1;
}

.top-btn--outline {
  padding: calc(22 * var(--u)) calc(48 * var(--u));
  border: 2px solid var(--color-main);
  background: var(--color-white);
  color: var(--color-main);
}

.top-btn--outline:hover {
  background: var(--color-bg-soft);
  opacity: 1;
}

.top-btn-set.company-btn-set {
  justify-content: center;
  gap: calc(20 * var(--u));
  margin-top: calc(32 * var(--u));
}

.top-btn-set .company-btn-set__btn {
  min-width: calc(380 * var(--u));
  padding: calc(20 * var(--u)) calc(40 * var(--u));
}

/* PC：会社名が長くても2ボタンを横並びで保持（入りきらない場合はボタン内で改行） */
@media (min-width: 769px) {
  .top-btn-set.company-btn-set:not(.top-btn-set--stack):not(.top-btn-set--list) {
    flex-wrap: nowrap;
  }

  .top-btn-set:not(.top-btn-set--stack):not(.top-btn-set--list) .company-btn-set__btn {
    flex: 0 1 auto;
    min-width: min(calc(380 * var(--u)), calc(50% - calc(10 * var(--u))));
    word-break: auto-phrase;
    text-wrap: balance;
  }
}

/* デザインではHPボタンがオレンジ（テーマ標準は main）。accent で上書き */
.top-btn-set .company-btn-set__btn--hp {
  padding: calc(22 * var(--u)) calc(40 * var(--u));
  background: var(--color-accent);
  box-shadow: 0 calc(4 * var(--u)) 0 var(--top-cta-shadow);
  color: var(--color-white);
}

.top-btn-set .company-btn-set__btn--hp:hover {
  background: var(--top-cta-dark);
  box-shadow: 0 calc(2 * var(--u)) 0 var(--top-cta-shadow);
  transform: translateY(calc(2 * var(--u)));
  opacity: 1;
}

.top-btn-set .company-btn-set__btn--article {
  border: 2px solid var(--color-main);
  background: var(--color-white);
  color: var(--color-main);
}

.top-btn-set .company-btn-set__btn--article:hover {
  background: var(--color-bg-soft);
  opacity: 1;
}

/* 比較表内：縦積み */
.top-btn-set--stack.company-btn-set {
  flex-direction: column;
  flex-wrap: nowrap;
  gap: calc(12 * var(--u));
  margin-top: 0;
}

.top-btn-set--stack .company-btn-set__btn {
  width: 100%;
  min-width: 0;
  padding: calc(16 * var(--u)) calc(12 * var(--u));
  font-size: max(12px, calc(15 * var(--u)));
  letter-spacing: 0;
}

.top-btn-set--stack .company-btn-set__btn--hp {
  box-shadow: none;
}

.top-btn-set--stack .company-btn-set__btn--hp:hover {
  box-shadow: none;
  transform: none;
}

.top-btn-set--stack .company-btn-set__btn--article {
  padding: calc(14 * var(--u)) calc(12 * var(--u));
}

/* 会社一覧カード内：HPボタン1本のみ（デザイン指定）。記事ボタンは一覧では出さない */
.top-btn-set--list.company-btn-set {
  flex-direction: column;
  flex-wrap: nowrap;
  gap: calc(10 * var(--u));
  margin-top: auto;
  padding-top: calc(10 * var(--u));
}

.top-btn-set--list .company-btn-set__btn {
  width: 100%;
  min-width: 0;
  padding: calc(15 * var(--u)) calc(12 * var(--u));
  font-size: max(12px, calc(15 * var(--u)));
  letter-spacing: 0;
}

.top-btn-set--list .company-btn-set__btn--hp {
  box-shadow: none;
}

.top-btn-set--list .company-btn-set__btn--hp:hover {
  transform: none;
  box-shadow: none;
}

/* 一覧カード：記事ボタンのみ（「会社名に相談してみる」）。見た目は相談用のオレンジボタン */
.top-btn-set--list .company-btn-set__btn--article {
  border: 0;
  background: var(--color-accent);
  color: var(--color-white);
}

.top-btn-set--list .company-btn-set__btn--article:hover {
  background: var(--top-cta-dark);
  opacity: 1;
}

/* 一覧カードの記事ボタン：1行に収まらない（会社名が長い）ときだけ「の紹介記事で詳しくみる」の前で改行 */
.top-list-cta__text {
  display: block;
  min-width: 0;
}

.top-list-cta__name,
.top-list-cta__suffix {
  display: inline-block;
}

.top-btn-set--list .company-btn-set__btn::after {
  font-size: max(12px, calc(15 * var(--u)));
}


/* =========================================================
   FV
   ========================================================= */
.top-fv {
  position: relative;
  padding: calc(240 * var(--u)) 0 calc(50 * var(--u));
  background: var(--top-fv-bg);
  box-shadow: 0 calc(20 * var(--u)) calc(50 * var(--u)) rgba(30, 50, 40, 0.12);
  font-family: var(--top-font-fv);
  text-align: center;
}

.top-fv__photo {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: calc(420 * var(--u));
  background: var(--fv-bg-pc) center bottom / cover no-repeat;
}

.top-fv__inner {
  position: relative;
  width: min(calc(1200 * var(--u)), calc(100% - calc(32 * var(--u))));
  margin: 0 auto;
}

/* H1（キャッチ＋タイトル枠）：HTMLはキャッチ→タイトルの順、見た目はタイトル枠→キャッチ */
.top-fv__h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: normal;
}

.top-fv__h1 .top-fv__title {
  order: 1;
}

.top-fv__h1 .top-fv__catch {
  display: block;
  order: 2;
}

/* 読み上げ・検索用（画面には出さない） */
.top-sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* タイトル枠 */
.top-fv__title {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: calc(10 * var(--u));
  margin: 0;
  padding: calc(30 * var(--u)) calc(56 * var(--u)) calc(40 * var(--u));
  border-radius: calc(24 * var(--u));
  background: var(--top-fv-bg);
  filter: drop-shadow(0 calc(18 * var(--u)) calc(22 * var(--u)) rgba(15, 35, 28, 0.22));
  font-weight: 900;
  line-height: 1.2;
}

/* 四隅のカギ括弧 */
.top-fv__title::before,
.top-fv__title::after,
.top-fv__area::before,
.top-fv__area::after {
  content: "";
  position: absolute;
  width: calc(64 * var(--u));
  height: calc(64 * var(--u));
  border: 0 solid var(--color-main);
  pointer-events: none;
}

.top-fv__title::before {
  top: 0;
  left: 0;
  border-width: 8px 0 0 8px;
}

.top-fv__title::after {
  top: 0;
  right: 0;
  border-width: 8px 8px 0 0;
}

.top-fv__area {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: calc(28 * var(--u));
  color: var(--color-main);
  font-size: max(12px, calc(54 * var(--u)));
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.top-fv__area::before {
  bottom: 0;
  left: 0;
  border-width: 0 0 8px 8px;
}

.top-fv__area::after {
  right: 0;
  bottom: 0;
  border-width: 0 8px 8px 0;
}

/* 地域名の左右の黄色い丸（背景で描画） */
.top-fv__area {
  padding: 0 calc(34 * var(--u));
  background:
    radial-gradient(circle, var(--top-yellow) calc(7 * var(--u)), transparent calc(7.5 * var(--u))) left center / calc(14 * var(--u)) calc(14 * var(--u)) no-repeat,
    radial-gradient(circle, var(--top-yellow) calc(7 * var(--u)), transparent calc(7.5 * var(--u))) right center / calc(14 * var(--u)) calc(14 * var(--u)) no-repeat;
}

.top-fv__main {
  display: block;
  padding: calc(10 * var(--u)) calc(32 * var(--u)) calc(16 * var(--u));
  border-radius: calc(14 * var(--u));
  background: var(--color-main);
  box-shadow: 0 calc(10 * var(--u)) 0 var(--top-yellow);
  color: var(--color-white);
  font-size: max(12px, calc(96 * var(--u)));
  letter-spacing: 0.02em;
  line-height: 1.1;
  white-space: nowrap;
}

.top-fv__catch {
  margin: calc(23 * var(--u)) 0 0;
  color: var(--color-main);
  font-size: max(12px, calc(42 * var(--u)));
  font-weight: 900;
  line-height: 1.3;
}

.top-fv__catch-line {
  padding: calc(3 * var(--u)) 0;
  background: linear-gradient(180deg, transparent 62%, var(--top-yellow) 62%, var(--top-yellow) 92%, transparent 92%);
}

.top-fv__quote {
  position: relative;
  width: min(calc(980 * var(--u)), 100%);
  margin: calc(15 * var(--u)) auto 0;
  padding: calc(18 * var(--u)) calc(40 * var(--u)) calc(18 * var(--u)) calc(60 * var(--u));
  border: 2px solid var(--top-chip);
  border-radius: calc(22 * var(--u));
  background: var(--color-white);
  filter: drop-shadow(0 calc(6 * var(--u)) calc(9 * var(--u)) rgba(30, 74, 59, 0.08));
  text-align: left;
}

.top-fv__quote::before,
.top-fv__quote::after {
  position: absolute;
  color: var(--top-quote);
  font-size: max(12px, calc(40 * var(--u)));
  font-weight: 900;
  line-height: 1;
}

.top-fv__quote::before {
  content: "「";
  top: calc(8 * var(--u));
  left: calc(14 * var(--u));
}

.top-fv__quote::after {
  content: "」";
  right: calc(18 * var(--u));
  bottom: calc(8 * var(--u));
}

.top-fv__quote p {
  margin: 0;
  color: var(--top-fv-text);
  font-size: max(12px, calc(20 * var(--u)));
  font-weight: 500;
  line-height: 1.9;
}

.top-fv__chip {
  display: inline-block;
  margin-right: calc(4 * var(--u));
  white-space: nowrap;
  padding: 0 calc(6 * var(--u));
  border-radius: calc(4 * var(--u));
  background: var(--top-chip);
  color: var(--color-main);
  font-weight: 700;
  line-height: 1.65;
}

.top-fv__quote .txt-accent {
  font-weight: 700;
}

.top-fv__lead {
  margin-top: calc(20 * var(--u));
}

.top-fv__lead-em {
  margin: 0;
  white-space: nowrap;
  color: var(--color-em);
  font-size: max(12px, calc(48 * var(--u)));
  font-weight: 900;
  line-height: 1.2;
}

.top-fv__count {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: calc(4 * var(--u));
  margin: calc(4 * var(--u)) 0 0;
  color: var(--color-main);
  font-weight: 900;
  line-height: 1.1;
}

.top-fv__count-num {
  font-size: max(12px, calc(72 * var(--u)));
  letter-spacing: -0.03em;
}

.top-fv__count-unit {
  font-size: max(12px, calc(38 * var(--u)));
}

.top-fv__count-wo {
  margin: 0 calc(8 * var(--u)) 0 calc(4 * var(--u));
  color: var(--top-fv-text);
  font-size: max(12px, calc(26 * var(--u)));
}

.top-fv__count-badge {
  display: inline-block;
  padding: calc(2 * var(--u)) calc(16 * var(--u));
  border-radius: calc(8 * var(--u));
  background: var(--top-yellow);
  font-size: max(12px, calc(38 * var(--u)));
  transform: rotate(-2deg);
}

.top-fv__count-ex {
  margin-left: calc(12 * var(--u));
  font-size: max(12px, calc(34 * var(--u)));
}

.top-fv__lead-sub {
  margin: calc(12 * var(--u)) 0 0;
  color: var(--top-fv-text);
  font-size: max(12px, calc(24 * var(--u)));
  font-weight: 500;
  line-height: 1.7;
}

.top-fv__lead-tag {
  display: inline-block;
  margin: 0 calc(10 * var(--u));
  padding: calc(2 * var(--u)) calc(14 * var(--u));
  border-radius: calc(8 * var(--u));
  background: var(--color-main);
  color: var(--color-white);
  font-size: max(12px, calc(28 * var(--u)));
  font-weight: 900;
  line-height: 1.7;
}

.top-fv__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(22 * var(--u));
  min-width: min(calc(692 * var(--u)), 100%);
  margin-top: calc(25 * var(--u));
  padding: calc(18 * var(--u)) calc(40 * var(--u));
  border-radius: calc(999 * var(--u));
  background: var(--color-accent);
  box-shadow: 0 calc(6 * var(--u)) 0 var(--top-cta-dark);
  color: var(--color-white);
  font-size: max(12px, calc(30 * var(--u)));
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.3;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.top-fv__btn::after {
  content: "›";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(44 * var(--u));
  height: calc(44 * var(--u));
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-accent);
  font-size: max(12px, calc(24 * var(--u)));
  line-height: 1;
}

.top-fv__btn:hover {
  box-shadow: 0 calc(3 * var(--u)) 0 var(--top-cta-dark);
  transform: translateY(calc(3 * var(--u)));
  opacity: 1;
}


/* =========================================================
   COMPARISON
   ========================================================= */
.top-compare {
  padding: calc(140 * var(--u)) 0 calc(120 * var(--u));
  background: var(--color-white);
}

.top-compare__inner {
  width: min(calc(1600 * var(--u)), calc(100% - calc(64 * var(--u))));
  margin: 0 auto;
}

.top-compare .top-head__title {
  font-size: max(12px, calc(44 * var(--u)));
}

.top-compare__scroll {
  margin-top: calc(56 * var(--u));
}

.top-compare__table {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: calc(16 * var(--u));
  border-collapse: separate;
  border-spacing: 0;
  overflow: clip;
  table-layout: fixed;
}

.top-compare__table td,
.top-compare__table th {
  border-top: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
  vertical-align: top;
  text-align: left;
}

.top-compare__table tr > :first-child {
  border-left: 0;
}

.top-compare__table thead tr:first-child > * {
  border-top: 0;
}

.top-compare__lead {
  padding: calc(22 * var(--u)) calc(24 * var(--u)) calc(24 * var(--u));
  background: var(--color-bg-soft);
  color: var(--color-main);
  font-size: max(12px, calc(20 * var(--u)));
  font-weight: 700;
  line-height: 1.45;
  text-align: center !important;
  vertical-align: middle !important;
}

.top-compare__lead span {
  display: block;
}

.top-compare__lead .is-em {
  color: var(--color-accent);
}

.top-compare__head {
  padding: calc(24 * var(--u)) calc(24 * var(--u)) calc(20 * var(--u));
  border-color: rgba(255, 255, 255, 0.2) !important;
  background: var(--color-main);
  color: var(--color-white);
  text-align: center !important;
}

.top-compare__name {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(68 * var(--u));
  font-size: max(12px, calc(24 * var(--u)));
  font-weight: 900;
  line-height: 1.4;
}

.top-compare__name small {
  font-size: max(12px, calc(16 * var(--u)));
  font-weight: 900;
}

.top-compare__shot {
  display: block;
  margin-top: calc(16 * var(--u));
  overflow: clip;
  aspect-ratio: 485 / 303;
  border-radius: calc(8 * var(--u));
  background: rgba(127, 127, 127, 0.08);
}

.top-compare__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.top-compare__shot-empty,
.top-co__shot-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  border: 1px dashed currentColor;
  border-radius: inherit;
  font-size: max(12px, calc(13 * var(--u)));
  opacity: 0.5;
}

.top-compare__head .cite-note {
  margin-top: calc(12 * var(--u));
  text-align: center;
  font-size: max(12px, calc(13 * var(--u)));
  font-weight: 700;
}

.top-compare__head .cite-note,
.top-compare__head .cite-note a {
  color: var(--color-white);
}

.top-compare__rating {
  padding: calc(22 * var(--u)) calc(24 * var(--u));
  vertical-align: middle !important;
}

.top-compare__score {
  display: flex;
  align-items: center;
  gap: calc(4 * var(--u));
  margin: 0;
  color: var(--color-main);
  font-family: var(--top-font-en);
  font-size: max(12px, calc(26 * var(--u)));
  font-weight: 600;
  line-height: 1.4;
}

.top-compare__star {
  color: var(--color-accent);
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
}

.top-compare__score-note {
  margin: 0;
  color: var(--color-text-lt);
  font-size: calc(12 * var(--u));
  line-height: 1.4;
}

.top-compare__features {
  padding: calc(18 * var(--u)) calc(16 * var(--u)) calc(24 * var(--u));
}

.top-check-list {
  display: flex;
  flex-direction: column;
  gap: calc(27 * var(--u));
  margin: 0;
  padding: 0;
  list-style: none;
}

.top-check-list li {
  position: relative;
  padding-left: calc(30 * var(--u));
}

.top-check-list li::before {
  content: "✓";
  position: absolute;
  top: calc(3 * var(--u));
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(20 * var(--u));
  height: calc(20 * var(--u));
  border-radius: 50%;
  background: var(--top-check);
  color: var(--color-white);
  font-size: calc(11 * var(--u));
  line-height: 1;
}

.top-check-list strong {
  display: block;
  color: var(--color-text);
  font-size: max(12px, calc(14 * var(--u)));
  font-weight: 700;
  line-height: 1.7;
}

.top-check-list span {
  display: block;
  margin-top: calc(4 * var(--u));
  color: var(--color-text-mid);
  font-size: max(12px, calc(13 * var(--u)));
  line-height: 1.77;
}

/* 特徴（見出し行＋説明行）：3社の高さを行ごとにそろえる */
.top-compare__table .top-compare__feat-title,
.top-compare__table .top-compare__feat-desc {
  border-top: 0;
  padding: 0 calc(16 * var(--u));
}

.top-compare__table .is-first .top-compare__feat-title {
  border-top: 1px solid var(--color-border);
  padding-top: calc(18 * var(--u));
}

.top-compare__feat-title {
  padding-bottom: calc(4 * var(--u)) !important;
  vertical-align: top !important;
}

.top-compare__feat-desc {
  padding-bottom: calc(27 * var(--u)) !important;
}

.top-compare__table .is-last .top-compare__feat-desc {
  padding-bottom: calc(24 * var(--u)) !important;
}

.top-compare__feat-title strong {
  position: relative;
  display: block;
  padding-left: calc(30 * var(--u));
  color: var(--color-text);
  font-size: max(12px, calc(14 * var(--u)));
  font-weight: 700;
  line-height: 1.7;
}

.top-compare__feat-title strong::before {
  content: "✓";
  position: absolute;
  top: calc(3 * var(--u));
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(20 * var(--u));
  height: calc(20 * var(--u));
  border-radius: 50%;
  background: var(--top-check);
  color: var(--color-white);
  font-size: max(10px, calc(11 * var(--u)));
  line-height: 1;
}

.top-compare__feat-desc span {
  display: block;
  padding-left: calc(30 * var(--u));
  color: var(--color-text-mid);
  font-size: max(12px, calc(13 * var(--u)));
  line-height: 1.77;
}

.top-compare__band {
  padding: calc(18 * var(--u)) calc(24 * var(--u));
  background: var(--color-main);
  color: var(--color-white);
  font-size: max(12px, calc(17 * var(--u)));
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center !important;
}

.top-compare__spec {
  padding: 0;
  height: calc(110 * var(--u));
}

.top-compare__spec-inner {
  display: flex;
  height: 100%;
  min-height: calc(110 * var(--u));
}

.top-compare__spec-label {
  display: flex;
  align-items: center;
  flex: 0 0 calc(150 * var(--u));
  padding: calc(12 * var(--u)) calc(12 * var(--u)) calc(12 * var(--u)) calc(16 * var(--u));
  border-right: 1px solid var(--color-border);
  background: var(--top-label-bg);
  color: var(--color-main);
  font-size: max(12px, calc(13 * var(--u)));
  font-weight: 700;
  line-height: 1.7;
}

.top-compare__spec-value {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(4 * var(--u));
  padding: calc(12 * var(--u)) calc(16 * var(--u));
  text-align: center;
}

.top-compare__spec-value .is-years {
  color: var(--color-em);
  font-size: max(12px, calc(17 * var(--u)));
  font-weight: 900;
  line-height: 1.8;
}

.top-compare__spec-value small {
  color: var(--color-text-mid);
  font-size: calc(12 * var(--u));
  font-weight: 900;
  line-height: 1.66;
}

.top-compare__spec-value .is-mark {
  color: var(--color-main);
  font-size: max(12px, calc(30 * var(--u)));
  font-weight: 700;
  line-height: 1;
}

.top-compare__spec-value .is-none {
  color: var(--color-text-mid);
  font-size: max(12px, calc(22 * var(--u)));
  line-height: 1;
}

.top-compare__btns {
  padding: calc(24 * var(--u));
}

.top-compare__hint {
  display: none;
}

/* SP用の会社切り替えタブ・改行（PCでは非表示） */
.top-compare__tabs,
.top-sp-br {
  display: none;
}


/* =========================================================
   POINT
   ========================================================= */
.top-point {
  padding: calc(140 * var(--u)) 0 calc(151 * var(--u));
  background: var(--color-bg);
}

.top-point__photo {
  position: absolute;
  width: min(calc(540 * var(--u)), 28vw);
  pointer-events: none;
}

.top-point__photo img {
  width: 100%;
  height: auto;
}

.top-point__photo--left {
  top: calc(300 * var(--u));
  left: 0;
}

.top-point__photo--right {
  right: 0;
  bottom: calc(68 * var(--u)); /* 写真の下に余白（デザイン：セクション下端から68px）。記事ボタンの有無で高さが変わっても余白を保つ */
}

.top-point .top-wrap {
  position: relative;
  z-index: 1;
}

.top-point__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(32 * var(--u));
  margin-top: calc(64 * var(--u));
}

.top-point__card {
  padding: calc(48 * var(--u)) calc(40 * var(--u));
  border-radius: calc(16 * var(--u));
  background: var(--color-white);
  box-shadow: var(--top-shadow-card);
}

.top-point__no {
  margin: 0;
  color: var(--color-main);
  font-family: var(--top-font-en);
  font-size: max(12px, calc(56 * var(--u)));
  font-weight: 500;
  line-height: 1;
}

.top-point__title {
  margin: calc(22 * var(--u)) 0 0;
  color: var(--color-main);
  font-size: max(12px, calc(21 * var(--u)));
  font-weight: 700;
  line-height: 1.6;
}

.top-point__text {
  margin: calc(24 * var(--u)) 0 0;
  color: var(--color-text);
  font-size: max(12px, calc(15 * var(--u)));
  line-height: 2;
}

/* Figmaの行に合わせて1行ずつ表示（PC 3列）。文字は画面幅に比例（下限なし）でカード幅と同じ比率に保つ */
.top-point__card .top-line {
  display: block;
  white-space: nowrap;
}

.top-point__title,
.top-point__text {
  word-break: normal;
  letter-spacing: 0;
}

.top-point__title {
  font-size: calc(21 * var(--u));
}

.top-point__text {
  font-size: calc(15 * var(--u));
}

.top-point__text strong {
  font-weight: 900;
}

.top-point mark.txt-marker {
  padding: 0;
  background: linear-gradient(transparent 62%, var(--color-marker) 62%);
}


/* =========================================================
   RECOMMEND（おすすめ3社）
   ========================================================= */
.top-reco {
  padding: calc(140 * var(--u)) 0 calc(120 * var(--u));
  background: var(--color-white);
}

.top-reco__list {
  display: flex;
  flex-direction: column;
  gap: calc(80 * var(--u));
  margin-top: calc(80 * var(--u));
}

.top-co {
  overflow: clip;
  border: 1px solid var(--color-border);
  border-radius: calc(20 * var(--u));
  background: var(--color-white);
}

.top-co__header {
  display: flex;
  align-items: center;
  gap: calc(24 * var(--u));
  padding: calc(32 * var(--u)) calc(64 * var(--u));
  border-radius: calc(20 * var(--u)) calc(20 * var(--u)) calc(24 * var(--u)) calc(24 * var(--u));
  background: var(--color-main);
  color: var(--color-white);
}

.top-co__no {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 calc(76 * var(--u));
  height: calc(76 * var(--u));
  color: var(--top-num);
  font-family: var(--top-font-en);
  font-size: max(12px, calc(64 * var(--u)));
  font-weight: 700;
  line-height: 1;
}

.top-co__heading {
  min-width: 0;
}

.top-co__copy {
  margin: 0;
  font-size: max(12px, calc(20 * var(--u)));
  font-weight: 900;
  line-height: 1.45;
}

.top-co__name {
  margin: calc(4 * var(--u)) 0 0;
  color: var(--color-white);
  font-size: max(12px, calc(32 * var(--u)));
  font-weight: 900;
  line-height: 1.6;
  letter-spacing: 0.04em;
}

.top-co__name small {
  margin-left: calc(6 * var(--u));
  font-size: max(12px, calc(20 * var(--u)));
}

.top-co__body {
  padding: calc(40 * var(--u)) calc(56 * var(--u)) calc(88 * var(--u));
}

.top-co__shot {
  overflow: clip;
  margin: 0;
  aspect-ratio: 1042 / 414;
  border-radius: calc(12 * var(--u));
  background: rgba(127, 127, 127, 0.08);
  color: var(--color-text);
}

.top-co__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.top-co__body > .cite-note {
  margin-top: calc(10 * var(--u));
  color: var(--color-text);
  font-size: max(12px, calc(13 * var(--u)));
  font-weight: 700;
}

.top-co__body > .cite-note a {
  color: var(--color-text);
}

.top-co__body > .top-h4:first-of-type {
  margin-top: calc(48 * var(--u));
}

/* 特徴と強み */
.top-co__points {
  margin: 0;
  padding: 0;
  list-style: none;
}

.top-co__points li {
  display: grid;
  grid-template-columns: calc(120 * var(--u)) minmax(0, 1fr);
  gap: calc(24 * var(--u));
  padding: calc(27 * var(--u)) 0 calc(28 * var(--u));
  border-bottom: 1px solid var(--color-border);
}

.top-co__point-no {
  padding-top: calc(6 * var(--u));
  color: var(--color-main);
  font-family: var(--top-font-en);
  font-size: max(12px, calc(15 * var(--u)));
  font-weight: 600;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.top-co__point-title {
  margin: 0;
  color: var(--color-text);
  font-size: max(12px, calc(19 * var(--u)));
  font-weight: 700;
  line-height: 1.6;
}

.top-co__point-text {
  margin: calc(10 * var(--u)) 0 0;
  color: var(--color-text-mid);
  font-size: max(12px, calc(15 * var(--u)));
  font-weight: 700;
  line-height: 2;
}

/* こんな人におすすめ */
.top-co__for {
  display: flex;
  flex-direction: column;
  gap: calc(18 * var(--u));
  margin: calc(32 * var(--u)) 0 0;
  padding: calc(36 * var(--u)) calc(44 * var(--u));
  border-radius: calc(12 * var(--u));
  background: var(--color-bg-soft);
  list-style: none;
}

.top-co__for li {
  position: relative;
  padding-left: calc(40 * var(--u));
  color: var(--color-text);
  font-size: max(12px, calc(17 * var(--u)));
  font-weight: 700;
  line-height: 1.8;
}

.top-co__for li::before {
  content: "✓";
  position: absolute;
  top: calc(3 * var(--u));
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(24 * var(--u));
  height: calc(24 * var(--u));
  border-radius: 50%;
  background: var(--color-main);
  color: var(--color-white);
  font-size: max(12px, calc(13 * var(--u)));
  line-height: 1;
}

/* 売却事例 */
.top-table-wrap {
  overflow-x: auto;
  margin-top: calc(32 * var(--u));
  border: 1px solid var(--color-border);
  border-radius: calc(12 * var(--u));
}

.top-case {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.top-case th,
.top-case td {
  padding: calc(16 * var(--u)) calc(20 * var(--u));
  font-size: max(12px, calc(15 * var(--u)));
  font-weight: 700;
  line-height: 1.7;
  text-align: left;
}

.top-case th {
  background: var(--color-main);
  color: var(--color-white);
}

.top-case td {
  border-top: 1px solid var(--color-border);
  color: var(--color-text);
}

.top-case tbody tr:nth-child(even) td {
  background: var(--color-bg);
}

.top-case th:nth-child(1),
.top-case th:nth-child(4) {
  width: 27%;
}

.top-case th:nth-child(2),
.top-case th:nth-child(5) {
  width: 13.2%;
  text-align: center;
}

.top-case td:nth-child(2),
.top-case td:nth-child(5) {
  text-align: center;
}

.top-co__body .no-record-note {
  margin-top: calc(32 * var(--u));
  padding: calc(40 * var(--u));
  border: 0;
  border-radius: calc(12 * var(--u));
  background: var(--color-bg);
  color: var(--color-text-mid);
  font-size: max(12px, calc(16 * var(--u)));
  font-weight: 700;
}

/* 口コミ */
.top-co__reviews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(24 * var(--u));
  margin-top: calc(32 * var(--u));
}

.top-review {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: calc(31 * var(--u)) calc(32 * var(--u)) calc(32 * var(--u));
  border-radius: calc(12 * var(--u));
  background: var(--color-bg);
}

.top-review__text {
  flex: 1 1 auto;
  margin: 0;
  padding: 0 0 calc(24 * var(--u));
}

.top-review__text::before {
  content: "“";
  display: block;
  height: calc(29 * var(--u));
  color: var(--color-main);
  font-family: var(--top-font-en);
  font-size: max(12px, calc(48 * var(--u)));
  font-weight: 700;
  line-height: 0.9;
}

.top-review__text p {
  margin: calc(12 * var(--u)) 0 0;
  color: var(--color-text);
  font-size: max(12px, calc(16 * var(--u)));
  font-weight: 700;
  line-height: 1.9;
}

.top-review__foot {
  display: flex;
  flex-wrap: wrap; /* 入りきらないときは単語の途中で折らず、引用元を次の行へ回す */
  align-items: center;
  justify-content: space-between;
  gap: calc(6 * var(--u)) calc(12 * var(--u));
  padding-top: calc(16 * var(--u));
  border-top: 1px solid var(--color-border);
}

.top-review__who {
  white-space: nowrap;
  color: var(--color-text-mid);
  font-size: max(12px, calc(14 * var(--u)));
  font-weight: 700;
}

.top-review__foot .cite-note {
  margin: 0 0 0 auto;
  white-space: nowrap;
  color: var(--color-text-mid);
  font-size: max(12px, calc(13 * var(--u)));
  font-weight: 700;
}

.top-review__foot .cite-note a {
  color: var(--color-main);
}

/* 会社概要 */
.top-co__info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: calc(40 * var(--u));
  margin-top: calc(32 * var(--u));
}

.top-co__dl {
  display: grid;
  grid-template-columns: calc(150 * var(--u)) minmax(0, 1fr);
  align-content: start;
  margin: 0;
  border-top: 1px solid var(--color-border);
}

.top-co__dl dt,
.top-co__dl dd {
  margin: 0;
  border-bottom: 1px solid var(--color-border);
  font-size: max(12px, calc(16 * var(--u)));
  font-weight: 700;
  line-height: 1.8;
}

.top-co__dl dt {
  padding: calc(20 * var(--u));
  background: var(--color-bg-soft);
  color: var(--color-main);
}

.top-co__dl dd {
  padding: calc(20 * var(--u)) calc(24 * var(--u));
  color: var(--color-text);
  word-break: break-all;
}

.top-co__dl dd a {
  color: var(--color-main);
  text-decoration: underline;
}

.top-map {
  position: relative;
  overflow: clip;
  min-height: calc(338 * var(--u));
  border-radius: calc(12 * var(--u));
  background: var(--color-bg-soft);
}

.top-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.top-map--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-mid);
  font-size: max(12px, calc(13 * var(--u)));
}


/* =========================================================
   帯見出し（MARKET / QUESTION）
   ========================================================= */
.top-band {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(259 * var(--u));
  padding: calc(24 * var(--u)) calc(16 * var(--u));
  background: var(--band-bg-pc) center / cover no-repeat;
}

.top-band--faq {
  min-height: calc(330 * var(--u));
}

.top-band .top-head__en {
  margin-bottom: -46px;
}

/* MARKET：Figmaどおり「美濃加茂市・加茂郡の」を透かし文字の下寄りに（重なり28px） */
.top-market .top-band .top-head__en {
  margin-bottom: calc(-28 * var(--u));
}


/* =========================================================
   MARKET
   ========================================================= */
.top-market {
  padding: 0 0 calc(120 * var(--u));
  background: var(--color-bg);
}

.top-market__intro {
  max-width: none;
  margin: calc(62 * var(--u)) auto 0;
  color: var(--color-text);
  font-size: max(12px, calc(17 * var(--u)));
  line-height: 2.1;
  text-align: center;
}

.top-market__block {
  margin-top: calc(80 * var(--u));
}

.top-market__block:first-of-type {
  margin-top: calc(64 * var(--u));
}

.top-market__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(24 * var(--u));
  margin-top: calc(32 * var(--u));
}

.top-market__card {
  display: flex;
  flex-direction: column;
  overflow: clip;
  border-radius: calc(16 * var(--u));
  background: var(--color-white);
  box-shadow: 0 calc(6 * var(--u)) calc(24 * var(--u)) rgba(23, 53, 41, 0.06);
}

.top-market__card.is-empty {
  box-shadow: none;
  opacity: 0.85;
}

.top-market__type {
  margin: 0;
  padding: calc(18 * var(--u)) calc(28 * var(--u));
  background: var(--color-main);
  color: var(--color-white);
  font-size: max(12px, calc(20 * var(--u)));
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
}

.top-market__card.is-empty .top-market__type {
  background: var(--color-border);
  color: var(--color-text-mid);
}

.top-market__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: calc(32 * var(--u)) calc(28 * var(--u)) calc(24 * var(--u));
}

.top-market__label {
  margin: 0;
  color: var(--color-text-mid);
  font-size: max(12px, calc(15 * var(--u)));
  font-weight: 700;
  text-align: center;
}

.top-market__price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: calc(6 * var(--u));
  margin: calc(8 * var(--u)) 0 0;
  padding-bottom: calc(6 * var(--u));
  color: var(--color-main);
  font-size: max(12px, calc(24 * var(--u)));
  font-weight: 700;
}

.top-market__price span {
  font-family: var(--top-font-en);
  font-size: max(12px, calc(72 * var(--u)));
  font-weight: 500;
  line-height: 1;
}

.top-market__yoy {
  align-self: center;
  margin: calc(8 * var(--u)) 0 0;
  padding: calc(5 * var(--u)) calc(16 * var(--u));
  border: 1px solid var(--color-main);
  border-radius: calc(999 * var(--u));
  color: var(--color-main);
  font-size: max(12px, calc(14 * var(--u)));
  font-weight: 700;
  line-height: 1.4;
}

.top-market__stats {
  display: grid;
  gap: calc(10 * var(--u));
  margin-top: calc(24 * var(--u));
}

.top-market__stats--row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.top-market__stat {
  padding: calc(16 * var(--u)) calc(18 * var(--u));
  border-radius: calc(10 * var(--u));
  background: var(--color-bg-soft);
}

.top-market__stat-label {
  margin: 0;
  color: var(--color-main);
  font-size: max(12px, calc(13 * var(--u)));
  font-weight: 700;
}

.top-market__stat-value {
  margin: calc(4 * var(--u)) 0 0;
  color: var(--color-text);
  font-size: max(12px, calc(20 * var(--u)));
  font-weight: 700;
  line-height: 1.4;
}

.top-market__stat-value small {
  color: var(--color-text-mid);
  font-size: calc(12 * var(--u));
  font-weight: 500;
}

.top-market__stats--row .top-market__stat-value small {
  display: block;
}

.top-market__source {
  margin-top: auto;
  padding-top: calc(13 * var(--u));
  border-top: 1px solid var(--color-border);
  color: var(--color-text-mid);
  font-size: calc(12 * var(--u));
  line-height: 1.7;
}

.top-market__stats + .top-market__source {
  margin-top: calc(24 * var(--u));
}

.top-market__body > .top-market__source {
  margin-top: auto;
}

.top-market__stats {
  margin-bottom: calc(24 * var(--u));
}

.top-market__source p {
  margin: 0;
}

.top-market__source a {
  color: var(--color-main);
  text-decoration: underline;
  word-break: break-all;
}

.top-market__none {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  min-height: calc(280 * var(--u));
  color: var(--color-text-mid);
  font-size: max(12px, calc(28 * var(--u)));
  font-weight: 700;
}


/* =========================================================
   FAQ（main.js の .faq-item / .faq-q / .faq-a 構造を使用）
   ========================================================= */
.top-faq {
  padding: 0 0 calc(120 * var(--u));
  background: var(--color-white);
}

.top-faq .top-head__sub {
  margin-top: calc(8 * var(--u));
}

.top-faq .top-head__title {
  margin-top: 0;
}

.top-faq .top-head__title > .top-head__sub {
  margin-bottom: 0;
}

.top-faq__list.faq-list {
  gap: calc(16 * var(--u));
  margin-top: calc(75 * var(--u));
}

.top-faq .faq-item,
.top-faq .faq-item:first-child,
.top-faq .faq-item:last-child {
  overflow: clip;
  border: 1px solid var(--color-border);
  border-radius: calc(12 * var(--u));
  background: var(--color-white);
}

.top-faq .faq-q,
.top-faq .faq-q.is-open {
  gap: calc(24 * var(--u));
  padding: calc(26 * var(--u)) calc(32 * var(--u));
  background: var(--color-white) !important;
  color: var(--color-text) !important;
}

.top-faq .faq-q p {
  margin: 0;
  padding: 0;
  color: var(--color-text);
  font-size: max(12px, calc(18 * var(--u)));
  font-weight: 700;
  line-height: 1.6;
}

.top-faq .faq-badge {
  width: calc(44 * var(--u));
  height: calc(44 * var(--u));
  font-family: var(--top-font-en);
  font-size: max(12px, calc(18 * var(--u)));
  font-weight: 500;
  letter-spacing: -0.02em;
}

.top-faq .faq-badge--q {
  background: var(--color-main);
  color: var(--color-white);
}

.top-faq .faq-badge--a {
  background: var(--color-bg-soft);
  color: var(--color-main);
}

.top-faq .faq-toggle,
.top-faq .faq-q.is-open .faq-toggle {
  width: calc(28 * var(--u));
  color: var(--color-main) !important;
  font-size: max(12px, calc(24 * var(--u)));
  font-weight: 300;
  text-align: center;
  transform: none;
}

.top-faq .faq-a {
  gap: calc(24 * var(--u));
  padding: 0 calc(32 * var(--u)) calc(30 * var(--u));
  border-top: 0;
}

.top-faq .faq-a p {
  padding-top: calc(6 * var(--u));
  color: var(--color-text);
  font-size: max(12px, calc(16 * var(--u)));
  line-height: 2;
}


/* =========================================================
   COMPANY LIST
   ========================================================= */
.top-list {
  padding: calc(100 * var(--u)) 0 calc(120 * var(--u));
  background: var(--color-bg);
}

.top-list__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(24 * var(--u));
  margin-top: calc(56 * var(--u));
}

/* main.css の .company-list-card（!important）を上書き */
.top-list .company-list-card.top-list__card {
  overflow: clip;
  padding: 0 !important;
  border: 0 !important;
  border-radius: calc(12 * var(--u)) !important;
  box-shadow: none !important;
}

.top-list__card .top-map {
  min-height: calc(220 * var(--u));
  height: calc(220 * var(--u));
  border-radius: 0;
}

.top-list__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: calc(9 * var(--u));
  padding: calc(24 * var(--u)) calc(28 * var(--u)) calc(26 * var(--u));
}

.top-list__name {
  margin: 0;
  color: var(--color-text);
  font-size: max(12px, calc(18 * var(--u)));
  font-weight: 700;
  line-height: 1.5;
}

.top-list__addr {
  margin: 0 0 calc(18 * var(--u));
  color: var(--color-text-mid);
  font-size: max(12px, calc(14 * var(--u)));
  font-weight: 700;
  line-height: 1.7;
}

.top-list .company-list-toggle-label.top-list__toggle {
  margin-top: calc(48 * var(--u));
  padding: calc(20 * var(--u)) calc(64 * var(--u));
  border: 2px solid var(--color-main);
  font-size: max(12px, calc(17 * var(--u)));
}


/* =========================================================
   新着記事・サイトコンテンツ一覧（テーマが自動出力）の見た目調整
   ※ HTMLは template-parts 側。ここでは見た目のみ合わせる
   ========================================================= */
body.home .hikaku-news {
  padding: calc(100 * var(--u)) 0 calc(110 * var(--u));
  background: var(--color-white);
}

body.home .hikaku-contents {
  padding: calc(108 * var(--u)) 0 calc(120 * var(--u));
  background: var(--color-bg);
}

body.home .hikaku-news__inner,
body.home .hikaku-contents__inner {
  position: relative;
  width: min(calc(1280 * var(--u)), calc(100% - calc(64 * var(--u))));
}

body.home .hikaku-news__inner::before,
body.home .hikaku-contents__inner::before {
  display: block;
  margin-bottom: -76px;
  color: var(--top-ghost);
  font-family: var(--top-font-en);
  font-size: max(12px, calc(120 * var(--u)));
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-align: center;
  white-space: nowrap;
}

body.home .hikaku-news__inner::before {
  content: "NEWS";
}

body.home .hikaku-contents__inner::before {
  content: "SITEMAP";
}

body.home .hikaku-news__eyebrow {
  display: none;
}

body.home .hikaku-news__title,
body.home .hikaku-contents__title {
  position: relative;
  color: var(--color-text);
  font-size: max(12px, calc(42 * var(--u)));
  font-weight: 900;
}

body.home .hikaku-news-card {
  border: 1px solid var(--color-border); /* 白背景で輪郭が消えないよう罫線 */
  border-radius: calc(12 * var(--u));
  box-shadow: 0 calc(2 * var(--u)) calc(6 * var(--u)) rgba(95, 76, 20, 0.07);
}

body.home .hikaku-news__more-btn {
  padding: calc(18 * var(--u)) calc(48 * var(--u));
  font-size: max(12px, calc(16 * var(--u)));
}

body.home .hikaku-contents__card {
  margin-top: calc(56 * var(--u));
  padding: 0;
  border: 0;
  background: transparent;
}

body.home .hikaku-contents__grid {
  gap: calc(32 * var(--u));
}

body.home .hikaku-contents__group {
  height: 100%;
  padding: calc(34 * var(--u)) calc(40 * var(--u)) calc(40 * var(--u));
  background: var(--color-white);
  box-shadow: 0 calc(2 * var(--u)) calc(6 * var(--u)) rgba(95, 76, 20, 0.07);
}

body.home .hikaku-contents__cat {
  margin: 0 0 calc(18 * var(--u));
  padding-bottom: calc(14 * var(--u));
  border-bottom: 4px solid var(--color-main);
  font-size: max(12px, calc(23 * var(--u)));
  font-weight: 900;
}

body.home .hikaku-contents__title,
body.home .hikaku-contents__cat a {
  color: var(--top-ink);
}

body.home .hikaku-contents__list {
  display: flex;
  flex-direction: column;
  gap: calc(2 * var(--u));
}

body.home .hikaku-contents__post {
  position: relative;
  padding: calc(11 * var(--u)) 0 calc(11 * var(--u)) calc(38 * var(--u));
  border-bottom: 1px dashed var(--top-dash);
  font-size: max(12px, calc(17 * var(--u)));
  font-weight: 700;
}

body.home .hikaku-contents__post::before {
  content: "";
  position: absolute;
  top: calc(15 * var(--u));
  left: calc(4 * var(--u));
  width: calc(20 * var(--u));
  height: calc(20 * var(--u));
  background: var(--top-check);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6 2h8l6 6v14H4V2h2zm7 1.5V9h5.5L13 3.5zM7 12v1.5h10V12H7zm0 3v1.5h10V15H7zm0 3v1.5h7V18H7z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6 2h8l6 6v14H4V2h2zm7 1.5V9h5.5L13 3.5zM7 12v1.5h10V12H7zm0 3v1.5h10V15H7zm0 3v1.5h7V18H7z'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.home .hikaku-contents__post a {
  color: var(--top-ink);
}


/* ---------------------------------------------------------
   ③ 下層ページ・共通部品の色合わせ（旧案件の色が残っていた箇所）
   --------------------------------------------------------- */
/* ページトップボタン：影が旧サイトの紺、矢印が緑でオレンジ地に沈むため調整 */
.page-top-btn {
  color: var(--color-white) !important;
  box-shadow: 0 calc(4 * var(--u)) calc(16 * var(--u)) rgba(30, 74, 59, 0.3) !important;
}

.page-top-btn:hover {
  background: var(--color-accent-dark) !important;
}

/* サイドバー・見出しの影：single.css / archive.css に残る旧サイトの紺色の影を緑系に */
.archive-sidebar .sidebar-widget,
.sidebar .sidebar-section,
.sidebar .sidebar-widget,
.sidebar-widget {
  box-shadow: 0 2px 12px rgba(30, 74, 59, 0.08) !important;
}

/* 下層ページの広い背景：テーマ標準は「ソフト背景」（このサイトでは薄緑）で塗られるため、
   TOPと同じ生成り色（ページ背景）に統一。小さな箱（目次・表の見出しなど）は薄緑のまま */
body.single-post,
.single-post,
.archive-page {
  background: var(--color-bg);
}

/* 下層ページのタイトル帯：TOPのセクション（白と生成りの交互）に合わせて白 */
.archive-header,
.lower-hero {
  background: var(--color-white);
}

.lower-hero {
  border-bottom: 1px solid var(--color-border);
}

/* PRバー：記事ページだけ薄緑になっていたのをTOPと同じ白に */
body .site-pr-bar {
  background: var(--color-white);
}

/* 404・会社一覧ページ：テンプレート内<style>の直書きグレーを配色に合わせる
   （テンプレートは触らず、詳細度を上げて上書き） */
body .error-page__text,
body .company-list-card__copy {
  color: var(--color-text-mid);
}

body .error-page__search p {
  color: var(--color-text-lt);
}

body .error-page__search-form input[type="text"] {
  border-color: var(--color-border);
}

body .error-page__search-form button,
body .company-list-card__btn {
  color: var(--color-white);
}

body .company-list-card {
  background: var(--color-white);
}

/* 一覧ページの「現在、記事はありません」（テンプレートのstyle属性 #666 を上書き） */
#main p[style*="#666"] {
  color: var(--color-text-mid) !important;
}

/* 記事本文の大見出し(h2)の影も緑系に */
.article-body h2 {
  box-shadow: 0 2px 8px rgba(30, 74, 59, 0.12);
}

/* 記事本文のマーカー：single.css の金色をサイトのマーカー色に */
.article-body mark {
  background: linear-gradient(transparent 50%, var(--color-marker) 50%);
  color: inherit;
}


/* ---------------------------------------------------------
   ④ レスポンシブ（calc(1440 * var(--u)) / calc(1024 * var(--u)) / calc(768 * var(--u)) / calc(390 * var(--u))）
   --------------------------------------------------------- */
@media (max-width: 1440px) {
  .top-point__photo--left {
    top: calc(340 * var(--u));
  }
}

@media (max-width: 1200px) {
  .top-fv__lead-em {
    font-size: clamp(calc(28 * var(--u)), 4vw, calc(44 * var(--u)));
    white-space: normal;
  }
}

@media (max-width: 1024px) {
  .top-head__en {
    font-size: max(12px, calc(88 * var(--u)));
    margin-bottom: -32px;
  }

  .top-head__title {
    font-size: max(12px, calc(36 * var(--u)));
  }

  .top-head__area {
    font-size: max(12px, calc(48 * var(--u)));
  }

  .top-fv__main {
    font-size: clamp(calc(56 * var(--u)), 7.4vw, calc(76 * var(--u)));
  }

  .top-fv__quote p {
    font-size: max(12px, calc(18 * var(--u)));
  }

  .top-point__photo {
    display: none;
  }

  .top-point__card .top-line {
    display: inline;
    white-space: normal;
  }

  .top-point__title,
  .top-point__text {
    word-break: auto-phrase;
  }

  .top-point__title {
    font-size: max(16px, calc(21 * var(--u)));
  }

  .top-point__text {
    font-size: max(14px, calc(15 * var(--u)));
  }

  .top-point__cards {
    grid-template-columns: 1fr;
    max-width: calc(720 * var(--u));
    margin-right: auto;
    margin-left: auto;
  }

  .top-co__header {
    padding: calc(28 * var(--u)) calc(32 * var(--u));
  }

  .top-co__body {
    padding: calc(32 * var(--u)) calc(32 * var(--u)) calc(64 * var(--u));
  }

  .top-co__info {
    grid-template-columns: 1fr;
  }

  .top-co__reviews {
    grid-template-columns: 1fr;
  }

  .top-market__cards {
    grid-template-columns: 1fr;
    max-width: calc(560 * var(--u));
    margin-right: auto;
    margin-left: auto;
  }

  .top-market__card.is-empty .top-market__none {
    min-height: calc(120 * var(--u));
  }

  .top-list__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* 比較表：横スクロール */
  .top-compare__scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .top-compare__table {
    min-width: calc(960 * var(--u));
  }

  .top-compare__hint {
    display: block;
    margin: calc(12 * var(--u)) 0 0;
    color: var(--color-text-mid);
    font-size: calc(12 * var(--u));
    text-align: center;
  }
}

@media (max-width: 768px) {
  .top-wrap,
  .top-wrap--wide,
  .top-wrap--list,
  .top-wrap--narrow,
  .top-compare__inner {
    width: calc(100% - 32px);
  }

  .top-head__en {
    margin-bottom: -18px;
    font-size: 52px;
    letter-spacing: 0.04em;
  }

  .top-head__sub {
    font-size: 15px;
  }

  .top-head__title {
    margin-top: 4px;
    font-size: 24px;
    line-height: 1.6;
  }

  .top-head__title--en {
    font-size: 32px;
  }

  .top-head__title > .top-head__sub {
    margin-bottom: 4px;
  }

  .top-head__num,
  .top-outline--num {
    font-size: 34px;
  }

  .top-head__area {
    font-size: 28px;
  }

  /* SP：1行だと文字が小さくなりすぎるため「〜の」で2行に分ける */
  .top-reco .top-head__title {
    --reco-fs: min(22px, calc((100vw - 32px) / 16.5));
    white-space: nowrap;
  }

  .top-reco__br {
    display: inline;
  }

  .top-outline {
    -webkit-text-stroke-width: 3px;
  }

  .top-h3 {
    font-size: 20px;
  }

  .top-h4 {
    margin-top: 48px;
    padding-bottom: 12px;
    font-size: 18px;
  }

  .top-btn,
  .top-btn-set .company-btn-set__btn {
    font-size: 15px;
  }

  .top-btn--outline {
    width: 100%;
    padding: 18px 20px;
  }

  .top-btn-set.company-btn-set {
    flex-direction: column;
    gap: 14px;
  }

  .top-btn-set .company-btn-set__btn {
    width: 100%;
    min-width: 0;
    padding: 16px 20px;
  }

  .top-btn-set .company-btn-set__btn--hp {
    padding: 18px 20px;
  }

  /* FV（Figma：モバイルファーストビュー node 146:49／390px幅） */
  .top-fv {
    padding: 134px 0 62px;
  }

  .top-fv__photo {
    height: 218px;
    background-image: var(--fv-bg-sp);
    background-position: center;
  }

  .top-fv__inner {
    width: 100%;
  }

  .top-fv__title {
    display: flex;
    gap: 6px;
    width: calc(100% - 60px);
    margin: 0 auto;
    min-height: 116px;
    padding: 12px 10px 14px;
    border-radius: 0;
    background: var(--top-fv-bg);
    box-shadow: 0 10px 24px rgba(15, 35, 28, 0.16);
    filter: none;
  }

  .top-fv__title::before,
  .top-fv__title::after,
  .top-fv__area::before,
  .top-fv__area::after {
    width: 20px;
    height: 20px;
    border-width: 0;
  }

  .top-fv__title::before { border-width: 4px 0 0 4px; }
  .top-fv__title::after  { border-width: 4px 4px 0 0; }
  .top-fv__area::before  { border-width: 0 0 4px 4px; }
  .top-fv__area::after   { border-width: 0 4px 4px 0; }

  .top-fv__area {
    padding: 0 14px;
    font-size: 18px;
    letter-spacing: 0;
    line-height: 1.45;
    background-size: 6px 6px, 6px 6px;
    background-image:
      radial-gradient(circle, var(--top-yellow) 3px, transparent 3.5px),
      radial-gradient(circle, var(--top-yellow) 3px, transparent 3.5px);
  }

  .top-fv__main {
    width: 100%;
    padding: 4px 0;
    border-radius: 8px;
    box-shadow: 0 5px 0 var(--top-yellow);
    font-size: min(28px, calc((100vw - 80px) / 8.4));
    line-height: 1.35;
    letter-spacing: 0;
  }

  .top-fv__catch {
    margin-top: 16px;
    font-size: 22px;
    line-height: 1.3;
  }

  .top-fv__catch-line {
    padding: 0 2px;
    background: linear-gradient(180deg, transparent 65%, var(--top-yellow) 65%, var(--top-yellow) 94%, transparent 94%);
  }

  .top-fv__quote {
    width: calc(100% - 40px);
    margin-top: 12px;
    padding: 16px 18px;
    border-width: 1px;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(30, 74, 59, 0.08);
    filter: none;
  }

  .top-fv__quote::before,
  .top-fv__quote::after {
    font-size: 20px;
  }

  .top-fv__quote::before {
    top: 4px;
    left: 6px;
  }

  .top-fv__quote::after {
    right: 6px;
    bottom: 4px;
  }

  .top-fv__chip {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 6px;
    padding: 1px 2px;
    border-radius: 5px;
    font-size: 13px;
    line-height: 1.5;
  }

  .top-fv__chip:first-child {
    width: 100%;
  }

  .top-fv__quote p {
    font-size: 13px;
    line-height: 1.75;
  }

  .top-fv__lead {
    width: calc(100% - 40px);
    margin: 37px auto 0;
  }

  .top-fv__lead-em {
    font-size: 18px;
    line-height: 1.5;
    white-space: nowrap;
  }

  .top-fv__count {
    gap: 4px;
    min-height: 56px;
    margin-top: 6px;
  }

  .top-fv__count-num {
    font-size: 44px;
    letter-spacing: 0;
    line-height: 1.15;
  }

  .top-fv__count-unit,
  .top-fv__count-ex {
    font-size: 20px;
  }

  .top-fv__count-wo {
    margin: 0;
    font-size: 16px;
  }

  .top-fv__count-badge {
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 20px;
  }

  .top-fv__count-ex {
    margin-left: 0;
  }

  .top-fv__lead-sub {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.45;
  }

  .top-fv__lead-tag {
    margin: 0;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 18px;
    line-height: 1.45;
  }

  .top-fv__btn {
    gap: 12px;
    width: calc(100% - 40px);
    min-width: 0;
    height: 62px;
    margin-top: 36px;
    padding: 0 18px;
    box-shadow: 0 5px 0 var(--top-cta-dark);
    font-size: 20px;
    letter-spacing: 0;
  }

  .top-fv__btn::after {
    width: 30px;
    height: 30px;
    font-size: 22px;
  }

  /* COMPARISON */
  .top-compare {
    padding: 72px 0 64px;
  }

  .top-compare .top-head__title {
    font-size: 22px;
  }

  .top-compare__scroll {
    margin-top: 32px;
  }

  /* 見出し：「〜のおすすめ／不動産会社3社徹底比較！」の2行 */
  .top-sp-br {
    display: inline;
  }

  .top-compare .top-head__title.top-compare__title {
    font-size: min(22px, calc((100vw - 32px) / 15));
    white-space: nowrap;
  }

  /* 会社切り替えタブ */
  .top-compare__tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 28px;
  }

  .top-compare__tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 64px;
    padding: 8px 6px;
    border: 2px solid var(--color-main);
    border-radius: 10px;
    background: var(--color-white);
    color: var(--color-main);
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .top-compare__tab-no {
    font-family: var(--top-font-en);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
  }

  .top-compare__tab.is-active {
    background: var(--color-main);
    color: var(--color-white);
  }

  /* 選択中の会社の列だけ表示（表を縦1列に組み替え） */
  .top-compare__scroll {
    overflow: visible;
    margin-top: 12px;
  }

  .top-compare__table,
  .top-compare__table thead,
  .top-compare__table tbody,
  .top-compare__table tr {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .top-compare__table colgroup {
    display: none;
  }

  .top-compare__table td,
  .top-compare__table th {
    display: none;
    width: 100%;
    border-left: 0;
  }

  .top-compare__scroll[data-active-company="1"] tr > :nth-child(1),
  .top-compare__scroll[data-active-company="2"] tr > :nth-child(2),
  .top-compare__scroll[data-active-company="3"] tr > :nth-child(3),
  .top-compare__table .top-compare__band {
    display: block;
  }

  .top-compare__hint {
    display: none !important;
  }

  .top-compare__spec,
  .top-compare__spec-inner {
    height: auto;
    min-height: 72px;
  }

  .top-compare__spec-label {
    flex-basis: 120px;
  }

  .top-compare__lead {
    font-size: 16px;
  }

  .top-compare__name {
    font-size: 20px;
  }

  /* POINT */
  .top-point {
    padding: 72px 0 72px;
  }

  .top-point__cards {
    gap: 20px;
    margin-top: 36px;
  }

  .top-point__card {
    padding: 32px 24px;
  }

  .top-point__no {
    font-size: 44px;
  }

  .top-point__title {
    margin-top: 16px;
    font-size: 18px;
  }

  .top-point__text {
    margin-top: 16px;
    font-size: 14px;
  }

  .top-center {
    margin-top: 36px;
  }

  /* RECOMMEND */
  .top-reco {
    padding: 72px 0 64px;
  }

  .top-reco__list {
    gap: 48px;
    margin-top: 40px;
  }

  .top-co {
    border-radius: 14px;
  }

  .top-co__header {
    gap: 14px;
    padding: 20px 18px;
    border-radius: 14px 14px 16px 16px;
  }

  .top-co__no {
    flex-basis: 44px;
    height: 44px;
    font-size: 38px;
  }

  .top-co__copy {
    font-size: 13px;
  }

  .top-co__name {
    font-size: 20px;
    line-height: 1.5;
  }

  .top-co__name small {
    display: block;
    margin-left: 0;
    font-size: 14px;
  }

  .top-co__body {
    padding: 24px 16px 48px;
  }

  .top-co__body > .top-h4:first-of-type {
    margin-top: 36px;
  }

  .top-co__points li {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 20px 0;
  }

  .top-co__point-no {
    padding-top: 0;
    font-size: 13px;
  }

  .top-co__point-title {
    font-size: 16px;
  }

  .top-co__point-text {
    margin-top: 6px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.9;
  }

  .top-co__for {
    gap: 14px;
    margin-top: 24px;
    padding: 22px 18px;
  }

  .top-co__for li {
    padding-left: 32px;
    font-size: 15px;
    line-height: 1.7;
  }

  .top-co__for li::before {
    top: 2px;
    width: 22px;
    height: 22px;
    font-size: 12px;
  }

  /* 売却事例：SPはカード型に組み替え */
  .top-table-wrap {
    margin-top: 24px;
    border: 0;
    border-radius: 0;
  }

  .top-case,
  .top-case tbody,
  .top-case tr,
  .top-case td {
    display: block;
    width: 100%;
  }

  .top-case thead {
    display: none;
  }

  .top-case tr {
    overflow: clip;
    margin-bottom: 12px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
  }

  .top-case tbody tr:nth-child(even) td {
    background: transparent;
  }

  .top-case td,
  .top-case td:nth-child(2),
  .top-case td:nth-child(5) {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 12px;
    padding: 10px 14px;
    border-top: 1px solid var(--color-border);
    font-size: 14px;
    text-align: left;
  }

  .top-case td:first-child {
    border-top: 0;
  }

  .top-case td::before {
    content: attr(data-label);
    color: var(--color-main);
    font-size: 12px;
  }

  .top-co__reviews {
    gap: 14px;
    margin-top: 24px;
  }

  .top-review {
    padding: 22px 20px 20px;
  }

  .top-review__text p {
    font-size: 15px;
  }

  .top-co__info {
    gap: 20px;
    margin-top: 24px;
  }

  .top-co__dl {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .top-co__dl dt,
  .top-co__dl dd {
    padding: 14px 12px;
    font-size: 14px;
  }

  .top-map {
    min-height: 240px;
  }

  /* 帯見出し */
  .top-band {
    min-height: 180px;
    background-image: var(--band-bg-sp);
  }

  .top-band--faq {
    min-height: 200px;
  }

  .top-band .top-head__en,
  .top-market .top-band .top-head__en {
    margin-bottom: -10px;
  }

  /* MARKET */
  .top-market {
    padding-bottom: 72px;
  }

  .top-market__intro {
    margin-top: 32px;
    font-size: 15px;
    line-height: 1.9;
    text-align: left;
  }

  .top-market__block,
  .top-market__block:first-of-type {
    margin-top: 48px;
  }

  .top-market__cards {
    gap: 16px;
    margin-top: 24px;
  }

  .top-market__type {
    padding: 14px 20px;
    font-size: 17px;
  }

  .top-market__body {
    padding: 24px 18px 20px;
  }

  .top-market__price span {
    font-size: 56px;
  }

  .top-market__card.is-empty .top-market__none {
    min-height: 72px;
    font-size: 22px;
  }

  /* FAQ */
  .top-faq {
    padding-bottom: 72px;
  }

  .top-faq__list.faq-list {
    gap: 12px;
    margin-top: 36px;
  }

  .top-faq .faq-q,
  .top-faq .faq-q.is-open {
    gap: 12px;
    padding: 16px 16px;
  }

  .top-faq .faq-q p {
    font-size: 15px;
  }

  .top-faq .faq-badge {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .top-faq .faq-a {
    gap: 12px;
    padding: 0 16px 18px;
  }

  .top-faq .faq-a p {
    padding-top: 4px;
    font-size: 14px;
    line-height: 1.9;
  }

  /* COMPANY LIST */
  .top-list {
    padding: 72px 0 72px;
  }

  .top-list__grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 36px;
  }

  .top-list__card .top-map {
    height: 180px;
    min-height: 180px;
  }

  .top-list__body {
    padding: 18px 18px 20px;
  }

  .top-list__name {
    font-size: 16px;
  }

  .top-list__addr {
    margin-bottom: 10px;
    font-size: 13px;
  }

  .top-list .company-list-toggle-label.top-list__toggle {
    margin-top: 32px;
    padding: 16px 48px;
    font-size: 15px;
  }

  /* 新着記事・サイトコンテンツ一覧 */
  body.home .hikaku-news,
  body.home .hikaku-contents {
    padding: 64px 0 72px;
  }

  body.home .hikaku-news__inner,
  body.home .hikaku-contents__inner {
    width: calc(100% - 32px);
  }

  body.home .hikaku-news__inner::before,
  body.home .hikaku-contents__inner::before {
    margin-bottom: -34px;
    font-size: 52px;
    letter-spacing: 0.04em;
  }

  body.home .hikaku-news__title,
  body.home .hikaku-contents__title {
    font-size: 24px;
  }

  body.home .hikaku-contents__card {
    margin-top: 32px;
  }

  body.home .hikaku-contents__grid {
    gap: 16px;
  }

  body.home .hikaku-contents__group {
    padding: 24px 20px 28px;
  }

  body.home .hikaku-contents__cat {
    font-size: 19px;
  }

  body.home .hikaku-contents__post {
    font-size: 15px;
  }

  body.home .hikaku-contents__post::before {
    top: 13px;
  }
}

@media (max-width: 390px) {
  .top-head__en {
    font-size: 44px;
  }

  .top-head__title {
    font-size: 22px;
  }

  .top-co__dl {
    grid-template-columns: 84px minmax(0, 1fr);
  }
}
