/* ==========================================================================
   RoomFit LP｜style.css
   値は CLAUDE.md に従う。色・フォント・文字サイズ・余白は、ここの変数だけで変える
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 変数
   -------------------------------------------------------------------------- */
:root {
  /* 色（案A：セージ＋テラコッタ） */
  --color-bg: #FBF8F1;          /* 背景（ベース） */
  --color-bg-sub: #F3EBDD;      /* 背景（サブ）セクションの切り替え */
  --color-main: #6F8E78;        /* メイン（セージ）線・枠・アイコン。文字は載せない */
  --color-main-tint: #E7EFE6;   /* メインの淡い面。文字を載せてよい */
  --color-text: #2B3530;        /* 文字 */
  --color-btn: #B04F2B;         /* ボタン（アクセント）ボタンだけに使う */
  --color-white: #FFFFFF;       /* ボタンの文字・料金カードの面 */
  --color-gray-tint: color-mix(in srgb, var(--color-text) 6%, var(--color-white));  /* 薄グレー：③の比較の左側 */
  --color-gray-mark: color-mix(in srgb, var(--color-text) 45%, var(--color-white)); /* グレーの印・線（文字ではない） */

  /* フォント */
  --font-heading: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;

  /* 文字の太さ */
  --fw-regular: 400;
  --fw-bold: 700;

  /* 文字サイズ（スマホ 375px） */
  --fs-fv-title: 24px;     /* FVメインコピー */
  --fs-fv-sub: 18px;       /* FVサブコピー */
  --fs-h2: 22px;           /* セクション見出し */
  --fs-h3: 18px;           /* 小見出し・FAQのQ */
  --fs-body: 16px;         /* 本文・FAQのA（16px未満にしない） */
  --fs-note: 14px;         /* 注記（ボタン下・キャプション） */
  --fs-price: 48px;        /* 3,300円 */
  --fs-btn: 18px;          /* ボタン文字 */

  /* 行間 */
  --lh-fv-title: 1.4;
  --lh-fv-sub: 1.7;
  --lh-heading: 1.5;
  --lh-body: 1.9;
  --lh-note: 1.7;
  --lh-price: 1.2;

  /* 文字間 */
  --ls-body: 0.02em;

  /* 余白 */
  --space-side: 20px;      /* 左右 */
  --space-card: 16px;      /* カード・囲みの内側 */
  --space-section: 48px;   /* セクションの上下（スマホ48px以上・PC80px以上） */

  /* 角丸 */
  --radius-photo: 14px;
  --radius-card: 12px;
  --radius-btn: 10px;

  /* ボタン */
  --btn-height: 56px;
  --btn-pad-y: 12px;
  --btn-pad-x: 16px;

  /* レイアウト */
  --content-width: 1080px; /* 仮：PCでの中身の最大幅 */
}

/* 768px（タブレット）：スマホとPCの中間の値 */
@media (min-width: 768px) {
  :root {
    --fs-fv-title: 34px;
    --fs-fv-sub: 20px;
    --fs-h2: 27px;
    --fs-h3: 20px;
    --fs-body: 17px;
    --fs-price: 56px;
    --fs-btn: 19px;
    --space-section: 64px;
  }
}

/* 1280px（PC） */
@media (min-width: 1280px) {
  :root {
    --fs-fv-title: 44px;
    --fs-fv-sub: 22px;
    --fs-h2: 32px;
    --fs-h3: 22px;
    --fs-body: 18px;
    --fs-price: 64px;
    --fs-btn: 20px;
    --space-section: 80px;
  }
}

/* --------------------------------------------------------------------------
   2. 土台
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 { margin: 0; font-family: var(--font-heading); font-weight: var(--fw-bold); }

/* 見出し・サブコピーの文節ごとの改行制御用（<span class="ph">…</span>） */
.ph { display: inline-block; }

/* PC（1024px以上）だけで改行する */
.pc-br { display: none; }

/* 文言をPCとそれ以外で切り替える（PC＝1024px以上） */
.only-pc { display: none; }

@media (min-width: 1024px) {
  .pc-br { display: inline; }
  .only-pc { display: inline; }
  .not-pc { display: none; }
}

/* --------------------------------------------------------------------------
   3. セクションの枠
   -------------------------------------------------------------------------- */
.section,
.site-footer {
  padding: var(--space-section) var(--space-side);
}

.section__inner {
  max-width: var(--content-width);
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   3-2. ボタン（全セクション共通）
   -------------------------------------------------------------------------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: var(--btn-height);
  padding: var(--btn-pad-y) var(--btn-pad-x);
  background: var(--color-btn);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: var(--fs-btn);
  font-weight: var(--fw-bold);
  line-height: 1.3;
  border: 0;
  border-radius: var(--radius-btn);
  cursor: pointer;
  text-decoration: none;
}

.btn:hover { filter: brightness(.92); }
.btn:focus-visible { outline: 3px solid var(--color-text); outline-offset: 3px; }

.btn__icon { flex: none; width: 1em; height: 1em; }

.btn-note {
  margin: 8px 0 0;
  font-size: var(--fs-note);
  line-height: var(--lh-note);
}

/* 768px以上：横幅いっぱいにせず、文字が収まる幅にする */
@media (min-width: 768px) {
  .btn { display: inline-flex; width: auto; min-width: 360px; }
}

/* --------------------------------------------------------------------------
   3-3. ポップアップ（予約ボタンを押したとき）
   -------------------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-side);
  background: color-mix(in srgb, var(--color-text) 55%, transparent);
}

.modal[hidden] { display: none; }

.modal__panel {
  width: 100%;
  max-width: 440px;
  padding: 24px var(--space-card);
  background: var(--color-white);
  border-radius: var(--radius-card);
}

.modal__message {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
}

.modal__text { margin: 0 0 20px; }

/* 閉じるボタン：アクセント色は使わない */
.modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--btn-height);
  background: var(--color-white);
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: var(--fs-btn);
  font-weight: var(--fw-bold);
  border: 2px solid var(--color-main);
  border-radius: var(--radius-btn);
  cursor: pointer;
}

.modal__close:hover { background: var(--color-main-tint); }
.modal__close:focus-visible { outline: 3px solid var(--color-text); outline-offset: 3px; }

body.is-modal-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   3-4. 見出し・段落・チェックリスト（全セクション共通）
   -------------------------------------------------------------------------- */
.section-title {
  margin: 0 0 16px;
  font-size: var(--fs-h2);
  line-height: var(--lh-heading);
}

/* 1行が長くなりすぎないよう、段落の幅を約40字に抑える */
.section-text { max-width: 40em; }
.section-text p { margin: 0 0 1em; }
.section-text p:last-child { margin-bottom: 0; }

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-main);
}

.check-list li:first-child { padding-top: 0; }
.check-list li:last-child { padding-bottom: 0; border-bottom: 0; }

/* チェックの印：メインの色（文字ではない部分） */
.check-list li::before {
  content: "";
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 0.3em;
  background: var(--color-main);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='4'/%3E%3Cpath d='M8 12.5l3 3 5-6'/%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' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='4'/%3E%3Cpath d='M8 12.5l3 3 5-6'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* --------------------------------------------------------------------------
   5. ① ファーストビュー
   -------------------------------------------------------------------------- */
.section--fv { position: relative; overflow: hidden; }

.fv__service {
  margin: 0 0 12px;
  font-size: var(--fs-note);
  line-height: 1.5;
}

.fv__service-name {
  font-family: var(--font-heading);
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
}

.fv__photo {
  margin: 0 0 20px;
  border-radius: var(--radius-photo);
  overflow: hidden;
}

.fv__photo img {
  width: 100%;
  aspect-ratio: 3 / 2;   /* 元の写真の比率。切り取らず全体を見せる（スマホのFV内にボタンまで収めるため） */
  object-fit: cover;
  object-position: 68% 50%;
}

.fv__title {
  margin: 0 0 12px;
  font-size: var(--fs-fv-title);
  line-height: var(--lh-fv-title);
}

.fv__sub {
  margin: 0 0 16px;
  font-size: var(--fs-fv-sub);
  line-height: var(--lh-fv-sub);
}

.fv__offer {
  margin: 0 0 20px;
  padding: 12px var(--space-card);
  background: var(--color-main-tint);
  border-left: 6px solid var(--color-main);
  border-radius: var(--radius-card);
}

.fv__offer-label {
  margin: 0;
  font-size: var(--fs-note);
  line-height: 1.6;
}

.fv__price {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  line-height: var(--lh-price);
}

.fv__price-minute,
.fv__price-unit { font-size: var(--fs-h3); }

.fv__price-minute { margin-right: 8px; }

.fv__price-num { font-size: var(--fs-price); }

/* ボタン下の注記のさらに下：架空・AI生成の明記（14px） */
.fv__disclaimer {
  margin: 12px 0 0;
  font-size: var(--fs-note);
  line-height: var(--lh-note);
}

.fv__offer-note {
  margin: 4px 0 0;
  line-height: 1.6;
}

/* 1024px以上：写真を右に大きく広げ、左に文字を置く */
@media (min-width: 1024px) {
  .section--fv {
    display: flex;
    align-items: center;
    min-height: 640px;
  }

  .fv__inner { width: 100%; }

  /* 文字は写真の上に重ねる（写真は section を基準に広げる） */
  .fv__service,
  .fv__body {
    position: relative;
    z-index: 1;
    max-width: 600px;
  }

  .fv__photo {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    width: 62%;
    margin: 0;
    border-radius: 0;
  }

  .fv__photo img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-position: 72% 50%;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 38%);
    mask-image: linear-gradient(to right, transparent 0, #000 38%);
  }
}

/* --------------------------------------------------------------------------
   6. ② 悩み・共感
   -------------------------------------------------------------------------- */
.section--worry { background: var(--color-bg-sub); }

.worry__photo {
  margin: 20px 0 24px;
  border-radius: var(--radius-photo);
  overflow: hidden;
}

.worry__photo img { width: 100%; }

.worry__list {
  padding: var(--space-card);
  background: var(--color-main-tint);
  border-radius: var(--radius-card);
}

.worry__lead {
  margin: 0 0 12px;
  font-weight: var(--fw-bold);
}

.worry__after { margin-top: 24px; }

/* 締めのコピー：背景色を変えた囲みで強調する */
.worry__closing {
  margin: 20px 0 0;
  padding: var(--space-card);
  background: var(--color-main-tint);
  border: 2px solid var(--color-main);
  border-radius: var(--radius-card);
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
}

/* 1024px以上：上から下の順に読めるよう、段ごとに並べる
   1段目＝見出し（横に長く）、2段目＝文章｜写真、3段目＝チェックリスト（2列）、4段目＝締めの文章と囲み */
@media (min-width: 1024px) {
  .worry__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "title title"
      "head photo"
      "list list"
      "after after";
    column-gap: 48px;
    row-gap: 0;
    align-items: start;
  }

  .worry__title { grid-area: title; }
  .worry__head { grid-area: head; }
  .worry__list { grid-area: list; margin-top: 40px; }
  .worry__after { grid-area: after; margin-top: 40px; }

  .worry__photo {
    grid-area: photo;
    align-self: center;
    margin: 0;
  }

  /* チェックリストは左の列に3つ、右の列に3つ（上から下へ） */
  .worry__list .check-list {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(3, auto);
    column-gap: 48px;
  }

  .worry__list .check-list li:nth-child(3) { padding-bottom: 0; border-bottom: 0; }
  .worry__list .check-list li:nth-child(4) { padding-top: 0; }

  /* 締めの文章は、画面の幅（中身の幅）いっぱいに表示する。1文ごとに改行（字間は通常） */
  .worry__after .section-text { max-width: none; }

  .worry__closing {
    max-width: none;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   7. ③ 解決策の提示
   -------------------------------------------------------------------------- */
.solution__examples .check-list {
  padding: var(--space-card);
  background: var(--color-main-tint);
  border-radius: var(--radius-card);
}

.solution__examples p { margin: 12px 0 0; }

.solution__compare { margin-top: 32px; }

.solution__compare-title {
  margin: 0 0 16px;
  font-size: var(--fs-h3);
  line-height: var(--lh-heading);
}

/* 比較：スマホは上下、PCは左右。左は薄グレー、右はメインの淡い面で強調 */
.compare { display: grid; gap: 16px; }

.compare__col {
  padding: var(--space-card);
  border-radius: var(--radius-card);
}

.compare__col--general { background: var(--color-gray-tint); }

.compare__col--roomfit {
  background: var(--color-main-tint);
  border: 3px solid var(--color-main);
  font-weight: var(--fw-bold);
}

.compare__label {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
}

.compare__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.compare__list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
}

/* 左（一般的な収納術）：グレーの小さな丸 */
.compare__col--general .compare__list li { border-bottom: 1px solid var(--color-gray-mark); }

.compare__col--general .compare__list li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin: 0.8em 8px 0;
  background: var(--color-gray-mark);
  border-radius: 50%;
}

.compare__col .compare__list li:first-child { padding-top: 0; }
.compare__col .compare__list li:last-child { padding-bottom: 0; border-bottom: 0; }

.solution__closing { margin-top: 32px; }

/* 1024px以上：上から下の順に読めるよう、段ごとに並べる
   文章 → 例（2列）→ 比較（左右）→ 締めの文章 */
@media (min-width: 1024px) {
  .solution__examples .check-list {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(2, auto);
    column-gap: 48px;
  }

  .solution__examples .check-list li:nth-child(2) { padding-bottom: 0; border-bottom: 0; }
  .solution__examples .check-list li:nth-child(3) { padding-top: 0; }

  /* 文章は、中身の幅いっぱいに表示する（途中で折り返さない） */
  .solution__head .section-text,
  .solution__closing { max-width: none; }

  .solution__compare { margin-top: 48px; }
  .solution__closing { margin-top: 40px; }

  /* 左右の同じ段が同じ高さになるよう、行をそろえる */
  .compare {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(5, auto);
    column-gap: 24px;
    row-gap: 0;
  }

  .compare__col {
    display: grid;
    grid-row: 1 / span 5;
    grid-template-rows: subgrid;
  }

  .compare__col .compare__list { display: contents; }
}

/* --------------------------------------------------------------------------
   8. ④ ベネフィット
   -------------------------------------------------------------------------- */
.section--benefits { background: var(--color-bg-sub); }

/* 4つは同格：スマホは縦4つ、PCは2×2 */
.benefits__list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.benefit {
  padding: var(--space-card);
  background: var(--color-bg);
  border: 1px solid var(--color-main);
  border-radius: var(--radius-card);
}

.benefit__top {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 番号：淡い面にメインの枠、文字は文字色（メインの上に文字を載せない） */
.benefit__num {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  background: var(--color-main-tint);
  border: 2px solid var(--color-main);
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  line-height: 1;
}

/* アイコン：線画・メインの色・同じ太さとテイスト */
.benefit__icon {
  flex: none;
  width: 56px;
  height: 56px;
  color: var(--color-main);
}

.benefit__icon .icon-mask { fill: var(--color-bg); }

.benefit__title {
  margin: 12px 0 8px;
  font-size: var(--fs-h3);
  line-height: var(--lh-heading);
}

.benefit__text p { margin: 0; }

@media (min-width: 1024px) {
  .benefits__list {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

/* --------------------------------------------------------------------------
   9. ⑤ サービス内容（60分の流れ）
   -------------------------------------------------------------------------- */
.flow__steps {
  margin: 24px 0 32px;
  padding: 0;
  list-style: none;
}

.flow__step {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 64px;
  margin-bottom: 24px;
  padding-left: 80px;
}

.flow__step:last-child { margin-bottom: 0; }

/* STEP番号：大きく。淡い面にメインの枠、文字は文字色 */
.flow__num {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--color-main-tint);
  border: 2px solid var(--color-main);
  border-radius: 50%;
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  line-height: 1;
}

.flow__num-label { font-size: var(--fs-note); }
.flow__num-value { margin-top: 2px; font-size: var(--fs-h2); }

/* ステップをつなぐ線（メインの色） */
.flow__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 64px;
  bottom: -24px;
  left: 31px;
  width: 2px;
  background: var(--color-main);
}

.flow__step-text { margin: 0; }

.flow__chat {
  margin: 24px 0;
  padding: var(--space-card);
  background: var(--color-main-tint);
  border: 2px solid var(--color-main);
  border-radius: var(--radius-card);
}

.flow__chat p { margin: 0; }

.flow__chat .flow__chat-label {
  margin-bottom: 4px;
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
}

.flow__lead-out { margin: 0 0 24px; }

/* 1024px以上：見出しは最上部に1行、その下の左に導入文と締めの文章・ボタン、右にステップ */
@media (min-width: 1024px) {
  .flow__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "title title"
      "head steps"
      "after steps";
    column-gap: 48px;
    align-items: start;
  }

  .flow__title { grid-area: title; }
  .flow__head { grid-area: head; }
  .flow__after { grid-area: after; margin-top: 8px; }

  /* ステップは左の列と同じ高さまで広げ、上に詰まらないようにする */
  .flow__steps {
    grid-area: steps;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    margin: 0;
  }

  .flow__step {
    flex: 1 1 0;
    align-items: flex-start;
    margin-bottom: 0;
  }

  .flow__step:last-child { flex: 0 0 auto; }
  .flow__step:not(:last-child)::after { bottom: 0; }

  .flow__step-text {
    display: flex;
    align-items: center;
    min-height: 64px;
  }
}

/* --------------------------------------------------------------------------
   10. ⑥ 信頼・不安解消（末尾にアドバイザー紹介）
   -------------------------------------------------------------------------- */
.section--trust { background: var(--color-bg-sub); }

/* 4つのカード：スマホは縦1列、PCは2×2。4つは同格（「代わりに片づけるサービスではない」も同じ見た目） */
.trust__list {
  display: grid;
  gap: 16px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.trust-card {
  padding: var(--space-card);
  background: var(--color-bg);
  border-left: 6px solid var(--color-main);
  border-radius: var(--radius-card);
}

.trust-card__top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trust-card__icon {
  flex: none;
  width: 56px;
  height: 56px;
  color: var(--color-main);
}

.trust-card__title {
  margin: 0;
  font-size: var(--fs-h3);
  line-height: var(--lh-heading);
}

.trust-card__text { margin-top: 12px; }
.trust-card__text p { margin: 0; }

/* アドバイザー紹介 */
.advisor {
  margin-top: 40px;
  padding: var(--space-card);
  background: var(--color-main-tint);
  border-radius: var(--radius-card);
}

.advisor__photo {
  max-width: 200px;
  margin: 0 0 16px;
  border-radius: var(--radius-photo);
  overflow: hidden;
}

.advisor__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.advisor__heading {
  margin: 0 0 8px;
  font-size: var(--fs-h3);
  line-height: var(--lh-heading);
}

.advisor__label {
  margin: 0;
  font-size: var(--fs-note);
  line-height: var(--lh-note);
}

.advisor__name {
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
}

.advisor__kana {
  font-family: var(--font-body);
  font-size: var(--fs-note);
  font-weight: var(--fw-regular);
}

.advisor__profile {
  margin: 4px 0 16px;
  line-height: 1.7;
}

.advisor__quote {
  margin: 16px 0 0;
  padding-left: 12px;
  border-left: 4px solid var(--color-main);
  font-weight: var(--fw-bold);
}

.advisor__caption {
  margin: 16px 0 0;
  font-size: var(--fs-note);
  line-height: var(--lh-note);
}

@media (min-width: 768px) {
  .advisor {
    display: grid;
    grid-template-columns: 200px 1fr;
    column-gap: 24px;
    align-items: start;
  }

  .advisor__photo { margin: 0; }
}

@media (min-width: 1024px) {
  /* 導入文は、中身の幅いっぱいに表示する（「」の途中では折り返さない） */
  .trust__head .section-text { max-width: none; }

  .trust__list {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .advisor { grid-template-columns: 240px 1fr; column-gap: 32px; }
  .advisor__photo { max-width: none; }
}

/* --------------------------------------------------------------------------
   11. ⑦ 料金・オファー
   -------------------------------------------------------------------------- */
/* 料金カード：白い面にメインの枠。いちばん大きいのは 3,300円。通常料金は一段小さく */
.price__card {
  margin-top: 24px;
  padding: var(--space-card);
  background: var(--color-white);
  border: 2px solid var(--color-main);
  border-top-width: 8px;
  border-radius: var(--radius-card);
}

.price__table { margin: 0; }
.price__table dt,
.price__table dd { margin: 0; }

.price__row--normal {
  display: flex;
  flex-wrap: wrap;
  column-gap: 12px;
  align-items: baseline;
}

.price__row--first {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-main);
}

.price__tag {
  display: inline-block;
  margin-bottom: 4px;
  padding: 0 12px;
  background: var(--color-main-tint);
  border: 2px solid var(--color-main);
  border-radius: 999px;
  font-weight: var(--fw-bold);
  line-height: 1.6;
}

.price__first {
  display: block;
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  line-height: var(--lh-price);
}

.price__minute,
.price__unit { font-size: var(--fs-h3); }

.price__num { font-size: var(--fs-price); }

.price__includes {
  margin-top: 20px;
  padding: var(--space-card);
  background: var(--color-main-tint);
  border-radius: var(--radius-card);
}

.price__includes p { margin: 0; }
.price__includes .price__includes-lead {
  margin-bottom: 8px;
  font-weight: var(--fw-bold);
}

.price__detail { margin-top: 24px; }
.price__detail .btn { margin-top: 24px; }

/* 1024px以上：左に料金カード、右に追加料金の説明とボタン */
@media (min-width: 1024px) {
  .price__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "title title"
      "card detail";
    column-gap: 48px;
    align-items: start;
  }

  .price__title { grid-area: title; }
  .price__card { grid-area: card; margin-top: 8px; }
  .price__detail { grid-area: detail; align-self: center; margin-top: 8px; }
}

/* --------------------------------------------------------------------------
   12. ⑧ FAQ（開閉できる質問リスト。読みやすさを優先）
   -------------------------------------------------------------------------- */
.section--faq { background: var(--color-bg-sub); }

/* 見出しも質問リストも、同じ幅（840px）で中央に置く */
.section--faq .section__inner { max-width: 840px; }

.faq__list { margin-top: 24px; }

.faq__item {
  margin-bottom: 12px;
  background: var(--color-bg);
  border: 1px solid var(--color-main);
  border-radius: var(--radius-card);
}

.faq__item:last-child { margin-bottom: 0; }

/* 質問：太字・大きめ。右端の＋／−はメインの色（文字ではない部分） */
.faq__q {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: var(--space-card);
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
  cursor: pointer;
  list-style: none;
}

.faq__q::-webkit-details-marker { display: none; }
.faq__q:focus-visible { outline: 3px solid var(--color-text); outline-offset: 2px; border-radius: var(--radius-card); }

.faq__q-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  background: var(--color-main-tint);
  border: 2px solid var(--color-main);
  border-radius: 50%;
  font-size: var(--fs-body);
  line-height: 1;
}

.faq__q-text { flex: 1; }

.faq__q::after {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  background:
    linear-gradient(var(--color-main), var(--color-main)) center / 100% 2px no-repeat,
    linear-gradient(var(--color-main), var(--color-main)) center / 2px 100% no-repeat;
}

.faq__item[open] .faq__q::after {
  background: linear-gradient(var(--color-main), var(--color-main)) center / 100% 2px no-repeat;
}

/* 回答：本文サイズ。質問の文字の位置にそろえる */
.faq__a { padding: 0 var(--space-card) var(--space-card) calc(var(--space-card) + 32px + 12px); }
.faq__a p { margin: 0; }

/* --------------------------------------------------------------------------
   13. ⑨ クロージング（強く見せるのは「今の家」を基準／60分3,300円／ボタンの3点）
   -------------------------------------------------------------------------- */
/* 最終ボタンの周りに、十分な余白をとる */
.section--closing { padding-bottom: calc(var(--space-section) + 32px); }

.closing__photo {
  margin: 0 0 24px;
  border-radius: var(--radius-photo);
  overflow: hidden;
}

.closing__photo img { width: 100%; }

/* 主な訴求：太字・大きめ・メインの太い線 */
.closing__statement {
  margin: 8px 0 0;
  padding-left: 12px;
  border-left: 6px solid var(--color-main);
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
}

.closing__cta { margin-top: 32px; }

/* オファー：60分3,300円を大きく */
.closing__offer {
  margin-bottom: 24px;
  padding: var(--space-card);
  background: var(--color-white);
  border: 2px solid var(--color-main);
  border-radius: var(--radius-card);
}

.closing__offer p { margin: 0; }

.closing__offer-main {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
}

.closing__offer .closing__offer-sub { margin-top: 4px; }

/* 1024px以上：見出し（全幅）→ 左に文章・右に写真 → 主な訴求の一文（全幅・1行）→ オファーとボタン */
@media (min-width: 1024px) {
  .closing__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "title title"
      "body photo"
      "statement statement"
      "cta cta";
    column-gap: 48px;
    align-items: start;
  }

  .closing__title { grid-area: title; }
  .closing__body { grid-area: body; }

  /* 主な訴求は、左の文章と右の写真の下に、1行で表示する */
  .closing__statement { grid-area: statement; margin-top: 40px; }

  .closing__cta { grid-area: cta; margin-top: 32px; }

  /* オファーの枠は、文字に合わせて右へ広げ、2行（「初めての方は、60分3,300円（税込）。」／「相談後7日間の…」）を左揃えで置く */
  .closing__offer {
    width: fit-content;
    max-width: 100%;
  }

  .closing__offer-main,
  .closing__offer-sub { white-space: nowrap; }

  /* 写真は、左の文章の1行目と上端をそろえる（行間の上の余白ぶんだけ下げる） */
  .closing__photo {
    grid-area: photo;
    align-self: start;
    margin: calc((var(--lh-body) - 1) * 0.5em) 0 0;
  }
}

/* --------------------------------------------------------------------------
   14. 最上部の帯（ヘッダー）：左にRoomFit、右にページ内リンク。固定しない
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

.site-header {
  position: relative;
  padding: 0 var(--space-side);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-main);
}

/* 左右の端は、各セクションの中身の端とそろえる */
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--content-width);
  min-height: 48px;
  margin: 0 auto;
}

.site-header__logo {
  display: flex;
  align-items: center;
  min-height: 44px;   /* タップしやすい大きさ（見た目の位置は変えない） */
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  line-height: 1;
  text-decoration: none;
}

/* メニューのボタン（スマホ） */
.site-header__toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  background: transparent;
  color: var(--color-text);
  border: 0;
  border-radius: var(--radius-btn);
  cursor: pointer;
}

.site-header__toggle svg { width: 26px; height: 26px; }
.site-header__toggle .icon-close { display: none; }
.site-header__toggle.is-open .icon-open { display: none; }
.site-header__toggle.is-open .icon-close { display: block; }

.site-header__logo:focus-visible,
.site-header__toggle:focus-visible,
.site-nav a:focus-visible { outline: 3px solid var(--color-text); outline-offset: 3px; }

/* スマホ：メニューを開くと、帯の下に縦に並ぶ */
.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-main);
}

.site-nav.is-open { display: block; }

.site-nav__list {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--space-side);
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 12px 0;
  color: var(--color-text);
  text-decoration: none;
}

.site-nav__list li + li { border-top: 1px solid var(--color-main); }

/* 768px以上：リンクを右に横並びにする（メニューのボタンは出さない） */
@media (min-width: 768px) {
  .site-header__toggle { display: none; }

  .site-nav {
    position: static;
    display: block;
    background: transparent;
    border-bottom: 0;
  }

  .site-nav__list {
    display: flex;
    gap: 24px;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .site-nav__list li + li { border-top: 0; }
  .site-nav a { padding: 12px 0; }
  .site-nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
}

/* --------------------------------------------------------------------------
   15. フッター（このページについて／制作概要）：14pxの注記
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--color-bg-sub);
  border-top: 1px solid var(--color-main);
  font-size: var(--fs-note);
  line-height: var(--lh-note);
}

.site-footer__block + .site-footer__block { margin-top: 32px; }

.site-footer__heading {
  margin: 0 0 8px;
  font-size: var(--fs-body);
  line-height: var(--lh-heading);
}

.site-footer p { margin: 0; }

.site-footer__list { margin: 0; }
.site-footer__list dt,
.site-footer__list dd { margin: 0; }

.site-footer__row { padding: 12px 0; border-top: 1px solid var(--color-main); }
.site-footer__row:last-child { border-bottom: 1px solid var(--color-main); }

.site-footer__list dt { font-weight: var(--fw-bold); }

/* 768px以上：項目名と内容を左右に並べる */
@media (min-width: 768px) {
  .site-footer__row {
    display: grid;
    grid-template-columns: 11em 1fr;
    column-gap: 16px;
  }
}
