/* =========================================================
   page-client.css — アゲルホーム様 平屋LP（hiraya）
   house-brand.jp のモバイルファースト型。元：LP-Sync 納品の静的版（2026-10-27）
   正典: ageru_hiraya_design_rules_2026-09-17.md（W-1〜W-16）
   SP値を書き切り、PCの指定は末尾の @media (min-width:1025px) 1本だけ
   ========================================================= */

/* 元の静的版が <head> 内の <style> に持っていた下地（読み込み順を保つため先頭に置く） */
:root {
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
html {
  scroll-padding-top: env(safe-area-inset-top, 0px);
}
body {
  margin: 0;
  padding: 0;
  font:
    14px -apple-system,
    BlinkMacSystemFont,
    sans-serif;
}
img {
  max-width: 100%;
}
[hidden]:not([hidden="until-found" i]) {
  display: none !important;
}

:root {
  /* ---- 書体 W-6（和文1＋欧文1＝2ファミリー） ---- */
  --font-body:
    "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", system-ui,
    sans-serif;
  --font-mincho:
    "Zen Old Mincho", "Hiragino Mincho ProN", serif; /* FVだけで使う明朝 */
  --font-script: "Cormorant Garamond", serif; /* FV下のあしらい flat house */
  --font-en:
    "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", system-ui,
    sans-serif; /* 全部ゴシックに統一。英字ラベルは字間で差をつける */

  /* ---- 色 W-4（D-8 変数必須・D-9 役割ベース） ---- */
  --bg-base: #faf8f5;
  --bg-raised: #ffffff;
  --bg-tint: #f0ebe3;
  --bg-deep: #22201d;

  --text-main: #22201d; /* on bg-base 15.33:1 */
  --text-sub: #56504a; /* on bg-base  7.50:1 */
  --text-on-deep: #faf8f5;
  --text-accent: #8a6a1f; /* bg-base / 白地でのみ 4.76:1 */

  --accent: #faba22; /* 山吹＝ブランド色。面・罫・アイコン・CTA地のみ。文字色に使わない */
  --accent-wood: #a8794f;
  --accent-slate: #7e8a8f;

  --line: #e3ddd2;
  --line-strong: #cfc7b9;

  /* 半透明・重ね用（D-8：直書きせず役割で持つ） */
  --bg-veil: rgba(250, 248, 245, 0.92); /* 追従バー・SPヘッダー・チップの地 */
  --text-on-photo: #ffffff; /* 写真上の文字 */
  --shadow-photo: 0 1px 12px rgba(34, 32, 29, 0.45);
  /* 写真の上の白文字を、地を暗くせずに浮かせる（Canvaの「グロー」相当）。
     字のきわだけを濃くするので、空の明るさはそのまま残る */
  --glow-photo:
    0 0 4px rgba(8, 14, 24, 0.46), 0 0 10px rgba(8, 14, 24, 0.36),
    0 0 20px rgba(8, 14, 24, 0.26), 0 1px 3px rgba(8, 14, 24, 0.32);
  --scrim-fv: rgba(16, 22, 34, 0.14); /* FVの写真全体のトーンを落とす幕 */
  --scrim-flat: rgba(34, 32, 29, 0.64); /* ポップアップの背景を覆う幕 */
  --scrim: linear-gradient(
    to bottom,
    rgba(34, 32, 29, 0.06) 0%,
    rgba(34, 32, 29, 0.2) 42%,
    rgba(34, 32, 29, 0.72) 100%
  );
  --marker: inset 0 -10px 0 rgba(250, 186, 34, 0.55); /* 総額の山吹マーカー */
  --fade-base: linear-gradient(
    to bottom,
    rgba(250, 248, 245, 0) 0%,
    rgba(250, 248, 245, 0.92) 58%,
    rgba(250, 248, 245, 1) 100%
  ); /* 畳んだ一覧の下端 */
  --line-on-deep: rgba(250, 248, 245, 0.16); /* 反転地の上の罫（強） */
  --line-on-deep-2: rgba(250, 248, 245, 0.1); /* 反転地の上の罫（弱） */
  --veil-rail: radial-gradient(
    120% 75% at 50% 50%,
    rgba(250, 248, 245, 0.97) 0%,
    rgba(250, 248, 245, 0.95) 58%,
    rgba(250, 248, 245, 0) 100%
  ); /* PCレールの地。背景写真の濃い部分から文字を守りつつ、外へ向けて溶かす */
  --line-on-photo: rgba(
    255,
    255,
    255,
    0.55
  ); /* 写真の上に引く細い罫（FVのあしらい） */
  --bubble-fill: rgba(
    255,
    255,
    255,
    0.94
  ); /* 吹き出しの地。空の上でも中の文字が沈まない濃さ */
  --gold-on-photo: #fdd981; /* FVの「土地」「19」。支給画像から抽出した淡い金 */
  --accent-soft: #fbe7bd; /* 山吹の淡い面。③の非選択タブ。--text-sub で 6.4:1 */

  /* ---- 文字サイズ W-1（SP値） ---- */
  --fs-catch: 46px; /* FVキャッチ（W-3）。C案は「アゲルの平屋」の1行 */
  --fs-title: 24px; /* h2 */
  --fs-sub: 18px; /* h3 */
  --fs-lead: 16px;
  --fs-text: 16px;
  --fs-cap: 12px; /* 補足・キャプション */
  --fs-note: 10px; /* 注記 */
  --fs-label: 12px; /* 英字ラベル */
  --fs-input: 16px; /* PCでも16px固定（iOS自動ズーム防止） */
  --fs-stat: 36px; /* FV実績数値（W-3） */
  --fs-price: 40px; /* 実例総額（W-3） */
  --fs-chip: 18px; /* チップ内の数字（W-3） */

  /* ---- 余白 W-5（D-2 8の倍数） ---- */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 48px;
  --sp-6: 64px;
  --sp-7: 80px;
  --gap-sec-l: 40px; /* セクション間・大（話題が変わる）。上下に付くので実際の空きは80px */
  --gap-sec-s: 32px; /* セクション間・小（同じ話題の続き）。実際の空きは64px */

  /* ---- 幅 W-11 / W-14 ---- */
  --maxw: 480px;
  --rail: clamp(260px, 32vw, 460px);
  --rail-gap: clamp(32px, 10.8vw, 156px);
  --pad: 24px;
  --hd-h: 56px;

  /* ---- 角丸（AI感対策 §20-4: 2種類まで） ---- */
  --r-card: 8px;
  --r-btn: 4px;
  --r-bubble: 16px; /* 吹き出しのみ */

  --bar-h: 64px;
}

/* ---- reset（最小） ---- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
img {
  display: block;
  width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  list-style: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
b,
strong {
  font-weight: 500;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--bg-base);
  font-size: var(--fs-text);
  line-height: 1.8; /* D-6 */
  letter-spacing: 0.02em; /* W-7 */
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--bar-h) + var(--sp-1)); /* W-15 重なり回避 */
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   レイアウト骨格（W-14 型A）
   ベース＝モバイル単一カラム／PCで「左カラム＋すき間＋本文」の帯を中央へ
   ========================================================= */
.frame {
  width: 100%;
}
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.rail {
  display: none;
}

.section {
  padding-block: var(--gap-sec-l);
}
.section--tight {
  padding-block: var(--gap-sec-s);
} /* 話題が続く箇所 */
.section--tint {
  background: var(--bg-tint);
}
.section--deep {
  background: var(--bg-deep);
  color: var(--text-on-deep);
}

/* 見出しまわり（左揃えが基本＝AI感対策 §20-6） */
.sec-head {
  margin-bottom: var(--sp-3);
}
.sec-label {
  display: block;
  font-family: var(--font-en);
  font-weight: 400;
  font-size: var(--fs-label);
  letter-spacing: 0.18em; /* W-7 */
  color: var(--text-accent);
  margin-bottom: var(--sp-1);
}
.section--deep .sec-label {
  color: var(--accent);
}
.sec-title {
  font-size: var(--fs-title);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-wrap: pretty;
}
.sec-lead {
  margin-top: var(--sp-2);
  font-size: var(--fs-lead);
  line-height: 1.9;
  color: var(--text-sub);
  text-wrap: pretty;
}
.section--deep .sec-lead {
  color: var(--text-on-deep);
  opacity: 0.86;
}
.note {
  font-size: var(--fs-note);
  line-height: 1.7;
  color: var(--text-sub);
  text-wrap: pretty;
}
.cap {
  font-size: var(--fs-cap);
  line-height: 1.7;
  color: var(--text-sub);
}

/* 山吹は「点」で効かせる（§7 使用ルール） */
.accent-rule {
  width: 32px;
  height: 2px;
  background: var(--accent);
  margin-bottom: var(--sp-2);
}

/* ---- ボタン ---- */
.btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  min-height: 56px;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-btn);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-align: center;
  background: var(--accent);
  color: var(--text-main); /* 9.37:1 */
  transition: opacity 0.2s ease;
}
.btn:hover {
  opacity: 0.86;
}
/* ボタンに見えない、というFBを受けて矢印を足す（2026-09-25）。
   マークアップは触らず擬似要素で描く＝読み上げには乗らない。
   小さいボタン・「すべて見る」（開閉）・追従バー（幅が足りない）は除く */
.btn:not(.btn--sm):not(.model__more) {
  position: relative;
  /* 矢印のぶんの場所を左右そろえて空ける（文字が矢印の下に潜らない）。
     いちばん長い「土地のことも、まとめて相談する」が250pxなので、
     375px幅（ボタン327px）で1行に収まる上限は左右38px。36pxにしている */
  padding-inline: 36px;
}
.btn:not(.btn--sm):not(.model__more)::before,
.btn:not(.btn--sm):not(.model__more)::after {
  content: "";
  position: absolute;
  top: 50%;
  pointer-events: none;
  opacity: 0.8;
}
.btn:not(.btn--sm):not(.model__more)::before {
  /* 軸 */
  right: var(--sp-2);
  width: 16px;
  height: 1.6px;
  translate: 0 -50%;
  background: currentColor;
}
.btn:not(.btn--sm):not(.model__more)::after {
  /* 先 */
  right: calc(var(--sp-2) + 1px);
  width: 7px;
  height: 7px;
  translate: 0 -50%;
  rotate: 45deg;
  border-top: 1.6px solid currentColor;
  border-right: 1.6px solid currentColor;
}
/* 追従バーは2つ並びで幅が足りないので矢印なし。
   矢印用に空けた左右の余白も戻す（でないと文言が2行に折れる） */
.fixedcta .btn::before,
.fixedcta .btn::after {
  display: none;
}
.fixedcta .btn:not(.btn--sm):not(.model__more) {
  padding-inline: var(--sp-1);
}
.btn__sub {
  font-size: var(--fs-note);
  font-weight: 400;
  opacity: 0.78;
  letter-spacing: 0.02em;
}
.btn--ghost {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--line-strong);
}

/* =========================================================
   SPヘッダー / ドロワー
   ========================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 var(--pad);
  background: var(--bg-veil);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__logo {
  display: block;
}
.header__logo img {
  width: 124px;
  height: auto;
}
.header__note {
  font-size: var(--fs-note);
  color: var(--text-sub);
}
.header__menu-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  gap: 4px;
  align-content: center;
}
.header__menu-btn span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text-main);
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}
.is-open .header__menu-btn span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.is-open .header__menu-btn span:nth-child(2) {
  opacity: 0;
}
.is-open .header__menu-btn span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 29;
  background: var(--bg-base);
  padding: 88px var(--pad) var(--sp-5);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}
.menu.is-open {
  transform: translateY(0);
}
.menu__nav a {
  display: block;
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
}
.menu__cta {
  margin-top: var(--sp-4);
}

/* =========================================================
   FV
   画面高さいっぱい／写真を複数枚フェード切替／下端のグラデ帯にコピーとCTA
   ========================================================= */
/* 写真の下にCTAを置くので、写真だけで画面を埋めない。
   ヘッダーとCTAのぶんを引いた高さにして、1画面にCTAまで収める */
.fv {
  position: relative;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: calc(100vh - var(--hd-h) - 168px);
  height: calc(100svh - var(--hd-h) - 168px);
  /* 画面が低い端末（iPhone SE など）だと枠が横長になり、写真の上＝空が
     削られてコピーが屋根に乗る。写真と同じ 4:5 を下限にして防ぐ。
     大きい端末で伸びすぎないよう 700px で頭打ち */
  min-height: min(128vw, 700px);
}
/* 上端を白く起こして、濃い文字が乗るようにする */
.fv__slider {
  position: absolute;
  inset: 0;
}
/* 写真全体のトーンを一段落として、白い文字を乗りやすくする */
.fv::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: var(--scrim-fv);
}
/* 以前は height:128% で上の空を切って建物を寄せていたが、支給写真が
   「上半分が空」の構図に変わり、その空こそコピーを置く場所になった。
   等倍に戻す。屋根のいちばん高いところで画面の53〜65%なので、
   コピー帯（〜42%）とは重ならない。 */
.fv__slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.fv__slider img.is-show {
  opacity: 1;
}

/* FVだけ明朝＋白文字（支給イメージ FV.png に合わせる）。
   ページの他の部分は細身ゴシックのまま */
.fv__copy {
  position: absolute;
  left: 0;
  right: 0;
  top: 14%;
  z-index: 2;
  padding: 0 var(--pad);
  font-family: var(--font-mincho);
  color: var(--text-on-photo);
  text-align: center;
  text-shadow: var(--glow-photo);
}
.fv__copy > * {
  max-width: var(--maxw);
  margin-inline: auto;
  position: relative;
}
/* 支給画像では「土地」の線の太さが隣の「相談できる」と同じ（実測1.67px
   と1.68px）＝太字ではない。淡い金にしたことでコントラストも足りたので
   太字をやめ、まわりと同じ太さに戻す */
.fv__gold {
  color: var(--gold-on-photo);
}
.fv__eyebrow {
  font-size: 22px;
  line-height: 1.6;
  letter-spacing: 0.1em;
}
.fv__kara {
  font-size: 0.72em;
  letter-spacing: 0.04em;
}
.fv__catch {
  margin-top: var(--sp-1);
  font-size: var(--fs-catch);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.14em;
}
/* 「の」だけ小さく。前後の字が主役 */
.fv__catch-no {
  font-size: 0.54em;
  letter-spacing: 0.02em;
  margin: 0 0.04em;
}
/* あしらいの罫。キャッチと実績数字を分ける */
.fv__rule {
  /* 長さは「アゲルの平屋」の字そのものの端から端（ア の1画目 〜 屋 の
     終筆）にそろえる。実測でインク幅 5.9565em（送り幅ではない）。
     font-size をキャッチと同じにして em で持たせると、SP/PCどちらでも
     字の長さに追従する */
  font-size: var(--fs-catch);
  display: block;
  width: 5.96em;
  height: 1px;
  margin: var(--sp-1) auto 0;
  background: var(--line-on-photo);
}
.fv__stat {
  margin-top: var(--sp-2);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}
.fv__stat b {
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 0.02em;
}
/* あしらいの英字。写真の下のほうに薄く置く */
.fv__script {
  position: absolute;
  left: var(--pad);
  bottom: 4%;
  z-index: 2;
  font-family: var(--font-script);
  font-style: italic;
  font-weight: 500;
  font-size: 52px;
  line-height: 1;
  letter-spacing: 0.14em;
  color: var(--text-on-photo);
  opacity: 0.62;
  pointer-events: none;
  text-shadow: var(--glow-photo);
}

/* ---- 吹き出し（手描き風） ----
   2026-09-24：ユーザー判断で「一旦」HTMLから外した。
   index.html の .fv__copy 内に <div class="fv__bubble"> を戻せばそのまま効く */
.fv__bubble {
  position: relative;
  width: 228px;
  margin: var(--sp-4) auto 0;
  color: var(--text-main);
}
.fv__bubble-fig {
  display: block;
  width: 100%;
  height: auto;
}
/* 地は白で置く。空の上でも中の文字のコントラストが変わらない */
.fv__bubble-body {
  fill: var(--bubble-fill);
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linejoin: round;
}
.fv__bubble-txt {
  position: absolute;
  left: 0;
  right: 0;
  top: 12%;
  height: 64%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: var(--fs-cap);
  line-height: 1.7;
  letter-spacing: 0.02em;
}
.fv__bubble-txt b {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-accent);
  letter-spacing: 0.04em;
}
/* 写真の下のCTA */
.fv__body {
  padding: var(--sp-4) var(--pad) var(--sp-5);
}
.fv__body .btn {
  max-width: var(--maxw);
  margin-inline: auto;
}

/* 写真の上のCTAは、地が暗いので白地＋墨文字にする（9.37:1の山吹はセクション内で使う） */
.btn--on-photo {
  background: var(--bg-raised);
  color: var(--text-main);
}

/* 実績3数値は写真の外 */
.stats-sec {
  padding: 0 var(--pad);
}
.stats {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: var(--sp-3) var(--sp-1);
  text-align: center;
}
.stat + .stat {
  border-left: 1px solid var(--line);
}
.stat__num {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: var(--fs-stat);
  line-height: 1.1;
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 3px solid var(--accent);
}
.stat__unit {
  font-size: var(--fs-cap);
  font-weight: 500;
  margin-left: 4px;
}
.stat__label {
  margin-top: var(--sp-1);
  font-size: var(--fs-note);
  color: var(--text-sub);
  line-height: 1.6;
}

/* =========================================================
   s2 voice（お悩み）／s3 reason
   ========================================================= */
.voice__fig {
  /* 角丸をわずかに覗かせない。ガターを打ち消してカラム幅いっぱいに広げる */
  margin: 0 calc(var(--pad) * -1) var(--sp-3);
}
.voice__list {
  display: grid;
  gap: var(--sp-2);
}
/* 吹き出し。左下にしっぽを出すぶん、下の余白は .voice__list の gap で足りる */
.voice__bubble {
  position: relative;
  text-wrap: pretty;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-bubble);
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--fs-text);
  line-height: 1.8;
}
/* 悩みの核だけ立てる。山吹そのもの（--accent）は文字に使えないので、
   同じ色相で明度を落とした文字用の --text-accent を使う（白地で5.04:1） */
.voice__hl {
  font-weight: 500;
  color: var(--text-accent);
}
.voice__bubble::after {
  content: "";
  position: absolute;
  left: var(--sp-4);
  bottom: -9px;
  width: 16px;
  height: 16px;
  background: var(--bg-raised);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  rotate: 45deg;
}

/* 連続カードを罫だけで区切る箇所（AI感対策 §20-4） */
/* 句読点の位置でだけ折り返す（単語の途中で割れないように） */
.u-nw {
  display: inline-block;
}
.reason__list {
  border-top: 1px solid var(--line);
}
.reason__item {
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-2);
  align-items: start;
}
.reason__no {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: var(--fs-sub);
  color: var(--text-accent);
  line-height: 1.4;
}
.reason__ttl {
  font-size: var(--fs-sub);
  font-weight: 500;
  line-height: 1.5;
  text-wrap: pretty;
}
/* タイトルとテキストの間に入る図版（2026-09-17 指示） */
.reason__fig {
  margin: var(--sp-2) 0;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--bg-raised);
}
.reason__fig img {
  aspect-ratio: 16/9;
  object-fit: cover;
}
.reason__txt {
  margin-top: 0;
  font-size: var(--fs-cap);
  color: var(--text-sub);
  line-height: 1.9;
  text-wrap: pretty;
}

/* =========================================================
   s4 price（§18 実例3本＋総額）
   ========================================================= */
.case {
  background: var(--bg-raised); /* 地から浮かせる（§18-3） */
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
}
.case + .case {
  margin-top: var(--sp-2);
}
/* 3本を1画面で見渡せる高さに抑える（§18-3）。写真は16:9・スペックは1行 */
.case__media img {
  aspect-ratio: 16/9;
  object-fit: cover;
}
/* 中身はCASE番号だけなので、写真に寄せて詰める */
.case__body {
  padding: var(--sp-2) var(--sp-2) var(--sp-1);
}
.case__tag {
  /* 枠は文字ぶんだけ。ブロックのままだとカード幅いっぱいに伸びる */
  display: inline-block;
  padding: var(--sp-1);
  border: 1px solid var(--accent);
  border-radius: var(--r-btn);
  font-family: var(--font-en);
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  color: var(--text-sub);
  line-height: 1;
}
/* スペックは横1行。3本で行の位置が揃い、横比較ができる */
.case__note {
  margin-top: var(--sp-2);
  padding-top: var(--sp-1);
  border-top: 1px solid var(--line);
}

/* =========================================================
   s5 design（テイスト4種）／s6 half／s7 model
   ========================================================= */
.taste {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3) var(--sp-2);
}
/* 押すと写真のポップアップが開く */
.taste__item {
  display: block;
  width: 100%;
  text-align: center;
}
.taste__item img {
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--r-card);
}
/* 名前は写真の下に、山吹のピルで置く */
.taste__name {
  display: block;
  width: 92%;
  margin: var(--sp-2) auto 0;
  padding: var(--sp-1) var(--sp-2);
  border-radius: 999px;
  background: var(--accent);
  color: var(--text-main); /* 9.37:1 */
  font-size: var(--fs-cap);
  font-weight: 500;
  text-align: center;
}

.half__fig {
  border-radius: var(--r-card);
  overflow: hidden;
  margin-bottom: var(--sp-3);
}
.half__fig img {
  aspect-ratio: 3/2;
  object-fit: cover;
}

.model__list {
  display: grid;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}
.model__item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: var(--sp-2);
  align-items: center;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
}
.model__item img {
  aspect-ratio: 1/1;
  object-fit: cover;
}
.model__meta {
  padding: var(--sp-2) var(--sp-2) var(--sp-2) 0;
}
.model__area {
  font-size: var(--fs-cap);
  font-weight: 500;
}
.model__txt {
  font-size: var(--fs-note);
  color: var(--text-sub);
}

/* =========================================================
   s8 flow
   ========================================================= */
.flow {
  counter-reset: flow;
  border-top: 1px solid var(--line);
}
.flow__item {
  counter-increment: flow;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-2);
  align-items: start;
}
.flow__item::before {
  content: counter(flow);
  font-family: var(--font-en);
  font-weight: 500;
  font-size: var(--fs-cap);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--text-main);
  line-height: 1;
}
.flow__ttl {
  font-size: var(--fs-text);
  font-weight: 500;
  text-wrap: pretty;
}
.flow__txt {
  margin-top: 8px;
  font-size: var(--fs-cap);
  color: var(--text-sub);
}

/* =========================================================
   s9 entry（フォーム）
   ========================================================= */
.form {
  display: grid;
  gap: var(--sp-3);
}
.field {
  display: grid;
  gap: var(--sp-1);
}
.field__label {
  font-size: var(--fs-cap);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}
.req {
  font-size: var(--fs-note);
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--accent);
  color: var(--text-main);
}
.req--opt {
  background: var(--bg-tint);
  color: var(--text-sub);
}
/* ラジオ・チェックボックスは全幅化の対象外（全幅にするとラベルが折り返す） */
.field input:not([type="radio"]):not([type="checkbox"]),
.field select,
.field textarea {
  width: 100%;
  font-size: var(--fs-input);
  font-family: inherit;
  line-height: 1.6;
  padding: 16px var(--sp-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-btn);
  background: var(--bg-raised);
  color: var(--text-main);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.radio input {
  flex: none;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}
.radio {
  display: grid;
  gap: var(--sp-1);
}
.radio label {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  min-height: 48px;
  padding: 0 var(--sp-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-btn);
  background: var(--bg-raised);
  font-size: var(--fs-cap);
  cursor: pointer;
}
.radio label:has(input:checked) {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

/* 日付と時間帯、郵便番号と検索ボタンを横に並べる。狭い端末では縦に折る */
.field__row {
  display: grid;
  grid-template-columns: 1fr 112px;
  gap: var(--sp-1);
}
.field__row--zip {
  grid-template-columns: 1fr auto;
}
@media (max-width: 359px) {
  .field__row,
  .field__row--zip {
    grid-template-columns: 1fr;
  }
}
/* 見た目は消すが、ブラウザが必須エラーを出せるよう要素は残す */
.vis-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  padding: 0;
  border: 0;
  pointer-events: none;
}

/* 展示場を選ぶボタン。見た目は入力欄に合わせ、右に開く印を出す */
.picker {
  position: relative;
  width: 100%;
  min-height: 56px;
  padding: 16px calc(var(--sp-2) + 20px) 16px var(--sp-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-btn);
  background: var(--bg-raised);
  color: var(--text-main);
  font-size: var(--fs-input);
  font-family: inherit;
  line-height: 1.6;
  text-align: left;
}
.picker::after {
  content: "";
  position: absolute;
  right: var(--sp-2);
  top: 50%;
  width: 8px;
  height: 8px;
  translate: 0 -60%;
  rotate: 45deg;
  border-right: 1.6px solid var(--text-sub);
  border-bottom: 1.6px solid var(--text-sub);
}
.picker:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.picker[disabled] {
  background: var(--bg-tint);
  color: var(--text-sub);
  cursor: not-allowed;
}
.picker.is-set {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

/* ポップアップの中の展示場一覧 */
.sitelist {
  display: grid;
  gap: var(--sp-1);
  margin-top: var(--sp-3);
}
.sitelist button {
  width: 100%;
  min-height: 56px;
  padding: var(--sp-2);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-2);
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-btn);
  background: var(--bg-raised);
  color: var(--text-main);
  text-align: left;
}
.sitelist button:hover {
  border-color: var(--accent);
}
.sitelist .sitelist__body {
  display: grid;
  gap: 4px;
}
.sitelist .sitelist__name {
  font-size: var(--fs-text);
  font-weight: 500;
  line-height: 1.5;
}
/* 同じ町名の棟があるので、キャッチで見分けられるようにする */
.sitelist .sitelist__catch {
  font-size: var(--fs-note);
  color: var(--text-sub);
  line-height: 1.6;
}
.sitelist .sitelist__tag {
  flex: none;
  align-self: start;
  font-size: var(--fs-note);
  color: var(--text-sub);
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  white-space: nowrap;
}
.sitelist .sitelist__none {
  font-size: var(--fs-cap);
  color: var(--text-sub);
  line-height: 1.9;
}

/* =========================================================
   s10 faq
   ========================================================= */
.faq {
  border-top: 1px solid var(--line);
}
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__q {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-2);
  align-items: center;
  padding: var(--sp-3) 0;
  text-align: left;
  font-weight: 500;
  font-size: var(--fs-text);
  line-height: 1.6;
  text-wrap: pretty;
}
.faq__mark {
  width: 20px;
  height: 20px;
  position: relative;
  flex: none;
}
.faq__mark::before,
.faq__mark::after {
  content: "";
  position: absolute;
  background: var(--text-main);
  transition: transform 0.2s ease;
}
.faq__mark::before {
  left: 0;
  top: 9px;
  width: 20px;
  height: 1.5px;
}
.faq__mark::after {
  left: 9px;
  top: 0;
  width: 1.5px;
  height: 20px;
}
.faq__item.is-open .faq__mark::after {
  transform: scaleY(0);
}
.faq__a {
  display: none;
  margin-bottom: var(--sp-3);
  padding: var(--sp-3);
  background: var(--accent);
  color: var(--text-main); /* 9.37:1 */
  font-size: var(--fs-cap);
  line-height: 1.9;
  text-wrap: pretty;
}
.faq__item.is-open .faq__a {
  display: block;
}

/* =========================================================
   company
   ========================================================= */
.table {
  width: 100%;
  border-top: 1px solid var(--line);
  font-size: var(--fs-cap);
}
.table th,
.table td {
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.8;
}
.table th {
  width: 96px;
  font-weight: 500;
  color: var(--text-sub);
}

/* =========================================================
   追従CTA（W-15：FV通過後に出現・1本）
   ========================================================= */
.fixedcta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 28;
  padding: var(--sp-1) var(--pad);
  background: var(--bg-veil);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.3s ease;
}
.fixedcta.is-visible {
  transform: translateY(0);
}
.fixedcta__inner {
  max-width: var(--maxw);
  margin: 0 auto;
}
.fixedcta .btn {
  min-height: var(--bar-h);
}

/* =========================================================
   モーション W-9（fade-up のみ・reduced-motion 尊重）
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.4s ease-out,
    transform 0.4s ease-out;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .fixedcta {
    transition: none;
  }
}

/* =========================================================
   PC（W-2：min-width:1025px の1段のみ／中間640〜1024は全幅追従）
   型A：左カラム＋すき間＋本文 を1つの帯として画面中央に置く
   ========================================================= */

/* =========================================================
   フッター（自社既存LPの型：ロゴ → 電話 → copyright。拠点6店を追加）
   ========================================================= */
.footer {
  background: var(--bg-deep);
  color: var(--text-on-deep);
  padding: var(--sp-7) var(--pad);
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
}
.footer__logo {
  display: inline-block;
  background: var(--bg-raised);
  border-radius: var(--r-card);
  padding: var(--sp-2);
}
.footer__logo img {
  display: block;
  width: 200px;
  height: auto;
}
.footer__note {
  margin-top: var(--sp-1);
  font-size: var(--fs-note);
  opacity: 0.72;
}

.footer__tel {
  margin: var(--sp-4) 0;
}
.footer__tel-num {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: var(--fs-stat);
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  border-bottom: 3px solid var(--accent);
}
.footer__tel-note {
  margin-top: var(--sp-1);
  font-size: var(--fs-note);
  opacity: 0.72;
  line-height: 1.7;
}

.footer__shops {
  display: grid;
  gap: var(--sp-2);
  text-align: left;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line-on-deep);
}
.footer__shop {
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--line-on-deep-2);
}
.footer__shop-name {
  font-size: var(--fs-cap);
  font-weight: 500;
}
.footer__shop-addr {
  margin-top: 4px;
  font-size: var(--fs-note);
  opacity: 0.72;
  line-height: 1.7;
}
.footer__shop-tel {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-top: 4px;
  font-family: var(--font-en);
  font-weight: 500;
  font-size: var(--fs-cap);
  letter-spacing: 0.04em;
}
.footer__copy {
  margin-top: var(--sp-5);
  font-size: var(--fs-note);
  opacity: 0.62;
}

/* =========================================================
   A案の内容を受け入れるための追加（2026-09-18）
   既存のトークン（色・余白・角丸・書体）だけで組む。新しい色は足さない
   ========================================================= */

/* ---- ボタンの小型・線バージョン ---- */
.btn--sm {
  min-height: 40px;
  padding: 0 var(--sp-1);
  font-size: var(--fs-cap);
  white-space: nowrap;
}
.btn--line {
  background: transparent;
  border: 1px solid var(--line-strong);
}

/* ---- OUR REASON：Reason01〜03のタブ切替 ---- */
.reason__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-1);
}
.reason__stat {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: var(--sp-2) 4px;
  background: var(--accent-soft);
  color: var(--text-sub);
  border-radius: var(--r-btn);
  font-family: var(--font-en);
  font-size: var(--fs-lead);
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition:
    background 0.3s,
    color 0.3s;
}
.reason__stat[aria-expanded="true"] {
  background: var(--accent);
  color: var(--text-main);
}

.reason__panels {
  margin-top: var(--sp-2);
  margin-bottom: var(--sp-4);
}
.reason__panel {
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  opacity: 1;
  transition: opacity 0.3s;
}
.reason__panel[hidden] {
  display: none;
}
.reason__panel.is-opening {
  opacity: 0;
}
.reason__panel img {
  aspect-ratio: 3/2;
  object-fit: cover;
}
.reason__body {
  padding: var(--sp-3);
}
.reason__cardnum {
  display: block;
  font-family: var(--font-en);
  font-weight: 500;
  font-size: var(--fs-price);
  line-height: 1.2;
  box-shadow: var(--marker);
  width: fit-content;
  padding: 0 4px 4px;
}
/* 単位は和文なので本文書体に戻す（--font-en に和文グリフがない） */
.reason__statunit {
  font-family: var(--font-body);
  font-size: var(--fs-cap);
  font-weight: 500;
  margin-left: 4px;
}
.reason__cardtitle {
  margin-top: var(--sp-2);
  font-size: var(--fs-sub);
  font-weight: 500;
  line-height: 1.5;
  text-wrap: pretty;
}
.reason__txt {
  margin-top: var(--sp-1);
  font-size: var(--fs-cap);
  color: var(--text-sub);
  line-height: 1.9;
  text-wrap: pretty;
}
.reason__turn {
  margin-top: var(--sp-5);
  font-size: var(--fs-sub);
  font-weight: 500;
  line-height: 1.8;
  text-align: center;
  text-wrap: pretty;
}
.reason__cta {
  margin-top: var(--sp-3);
}

/* ---- MODEL HOUSE：エリアで絞り込むチップ（折り返して全部見せる） ---- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
  margin-top: var(--sp-3);
}
.chip {
  min-height: 40px;
  padding: 0 var(--sp-2);
  border-radius: var(--r-btn);
  border: 1px solid var(--line-strong);
  background: var(--bg-raised);
  color: var(--text-sub);
  font-size: var(--fs-cap);
  font-weight: 500;
  letter-spacing: 0.04em;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}
.chip.is-current {
  background: var(--bg-deep);
  color: var(--text-on-deep);
  border-color: var(--bg-deep);
}
.model__tag {
  display: inline-block;
  margin-bottom: var(--sp-2);
  padding: 4px 8px;
  border-radius: var(--r-btn);
  background: var(--bg-tint);
  color: var(--text-sub);
  font-size: var(--fs-note);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.model__btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-1);
}

/* ---- 1.5 STORY：5棟と「詳しくみる」 ---- */
/* 「県内5棟」を目立たせる。文字はそのままで、山吹のマークで煽る */
.half__h {
  position: relative;
  margin: var(--sp-5) 0 var(--sp-3);
  font-size: var(--fs-sub);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0;
}
/* 文末に添える電球。行の右端に少し重ねて置く */
.half__spark {
  position: absolute;
  right: -8px;
  top: -22px;
  color: var(--accent);
  pointer-events: none;
}
.half__spark-bulb {
  fill: var(--accent);
}
.half__spark-base {
  fill: var(--accent-wood);
}
.half__panel[hidden] {
  display: none;
}
.half__panel {
  margin-top: var(--sp-2);
}
.half__panelttl {
  font-size: var(--fs-cap);
  font-weight: 500;
  margin-bottom: var(--sp-1);
}

/* ---- 写真送り（1.5 STORY の中で使う） ---- */
.stage {
  position: relative;
}
.shots {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  border-radius: var(--r-card);
  background: var(--bg-raised);
  scrollbar-width: none;
}
.shots::-webkit-scrollbar {
  display: none;
}
.shots > * {
  flex: 0 0 100%;
  scroll-snap-align: start;
}
.shots > img {
  aspect-ratio: 16/9;
  object-fit: cover;
}
.shots__no {
  font-family: var(--font-en);
  font-size: var(--fs-note);
  letter-spacing: 0.14em;
  color: var(--text-sub);
}
.shots__d {
  margin-top: var(--sp-1);
  font-size: var(--fs-cap);
  color: var(--text-sub);
  line-height: 1.9;
  text-wrap: pretty;
}
.shots__nav {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-veil);
  border: 1px solid var(--line-strong);
  transition: opacity 0.2s ease;
}
.shots__nav::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--text-main);
  border-right: 2px solid var(--text-main);
}
.shots__nav--prev {
  left: var(--sp-1);
}
.shots__nav--prev::before {
  rotate: 225deg;
  translate: 2px 0;
}
.shots__nav--next {
  right: var(--sp-1);
}
.shots__nav--next::before {
  rotate: 45deg;
  translate: -2px 0;
}
.shots__nav[disabled] {
  opacity: 0;
  pointer-events: none;
}

/* ---- ENTRY：見学予約／資料請求のタブ ---- */
.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-1);
  margin-bottom: var(--sp-3);
}
.tabs__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: var(--sp-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-btn);
  background: var(--bg-raised);
  color: var(--text-sub);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.4;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}
.tabs__btn.is-current {
  background: var(--bg-deep);
  color: var(--text-on-deep);
  border-color: var(--bg-deep);
}
.tabs__panel[hidden] {
  display: none;
}
.tabs__panel > .sec-lead {
  margin-top: 0;
  margin-bottom: var(--sp-3);
}

/* ---- 希望エリアは3列に畳む（1列だと縦に伸びすぎる） ---- */
.radio--grid {
  grid-template-columns: repeat(3, 1fr);
}
.radio--grid label {
  justify-content: center;
  padding: 0 var(--sp-1);
  text-align: center;
}

/* fieldset の既定の枠を消す（希望エリアを囲む線が出てしまう） */
fieldset.field {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
fieldset.field > legend {
  padding: 0;
}

/* 3列に畳むと「ひたちなか」がラジオの丸に押されて折り返すので、
   丸は隠して枠の色で選択を示す（A案のチップと同じ考え方） */
.radio--grid input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.radio--grid label:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* =========================================================
   横スライドの一覧（④価格 / ⑥1.5階建て / ⑦モデルハウス）
   ========================================================= */
/* ガターを打ち消して画面の端まで流す。カード1枚ずつで止める */
.scroller {
  display: flex;
  gap: var(--sp-2);
  overflow-x: auto;
  margin: 0 calc(var(--pad) * -1);
  padding: 0 var(--pad) var(--sp-2);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  /* これが無いとスナップがガターを無視して、先頭のカードが画面端に貼りつく */
  scroll-padding-inline: var(--pad);
  scrollbar-width: none;
}
.scroller::-webkit-scrollbar {
  display: none;
}
.scroller > * {
  flex: 0 0 auto;
  scroll-snap-align: start;
}
/* 横スライドの中ではタイルを固定幅にする（伸びて1枚しか見えなくなるため） */
.scroller .house {
  width: 224px;
}
.scroller__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-2);
}
.scroller__idx {
  font-family: var(--font-en);
  font-size: var(--fs-cap);
  color: var(--text-sub);
  letter-spacing: 0.08em;
}

/* マウスだと横に送れないので、タイルの下にスクロールバーを出す（2026-09-30。SPにも出す）。
   OSのバーは環境で出たり消えたりするので、自前で描く。つまんで動かす／クリックで1画面送る */
.scrollbar {
  position: relative;
  height: 16px;
  margin-bottom: var(--sp-1);
  cursor: pointer;
  touch-action: none;
}
.scrollbar[hidden] {
  display: none;
}
.scrollbar::before {
  /* 溝 */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  translate: 0 -50%;
  border-radius: 2px;
  background: var(--line);
}
.scrollbar__thumb {
  /* つまみ */
  position: absolute;
  top: 50%;
  left: 0;
  height: 4px;
  translate: 0 -50%;
  border-radius: 2px;
  background: var(--text-sub);
  cursor: grab;
  transition: height 0.2s ease;
}
/* 指でもつかめるよう、見た目より上下に広く当たりを取る */
.scrollbar__thumb::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  bottom: -16px;
}
.scrollbar:hover .scrollbar__thumb,
.scrollbar.is-drag .scrollbar__thumb {
  height: 8px;
  border-radius: 4px;
}
.scrollbar.is-drag .scrollbar__thumb {
  cursor: grabbing;
}

/* 実例カードの中では写真送りの角丸を切る（カード側で丸めているため） */
.case .shots {
  border-radius: 0;
  background: transparent;
}

/* =========================================================
   追従CTA：見学予約と資料請求の2つ
   ========================================================= */
.fixedcta__inner--2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-1);
}
/* 2つ並べると幅が半分になるので、余白と文字を詰めて折り返しを防ぐ
   （iPhone SE の320pxでも1行に収まること） */
.fixedcta__inner--2 .btn {
  padding-inline: var(--sp-1);
  font-size: 14px;
}
/* 半透明の帯に線だけのボタンを置くと浮かないので、面を持たせる */
.fixedcta .btn--line {
  background: var(--bg-raised);
}

/* =========================================================
   ⑦モデルハウス：2列の一覧を畳んでおき、「すべて見る」で開く
   ========================================================= */

.model__wrap {
  position: relative;
}
.model__wrap.is-collapsed {
  overflow: hidden;
}
/* 畳んでいる間だけ、続きがあることが分かるように下端をぼかす */
.model__wrap.is-collapsed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 136px;
  background: var(--fade-base);
  pointer-events: none;
}
/* ぼかしに少し重ねて置く */
.model__more {
  max-width: 280px;
  margin: calc(var(--sp-4) * -1) auto 0;
  position: relative;
  z-index: 1;
}
/* 開いた状態ではぼかしが無いので、重ねずに一覧の下へ置く */
.model__more[aria-expanded="true"] {
  margin-top: var(--sp-4);
}

/* FAQのあとの予約ボタン（A案の内容に合わせて追加） */
.faq__cta {
  margin-top: var(--sp-4);
}

/* =========================================================
   見学できる平屋のタイル（⑥1.5階建て / ⑦モデルハウス）
   参考: in-lp.com/live-best_flathouse の Access
   写真＋濃色の見出し帯を2列に並べ、押すと下に1棟ぶんの詳細が開く
   ========================================================= */
.houses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}
.house {
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--accent);
  text-align: center;
}
.house[hidden] {
  display: none;
}
.house img {
  aspect-ratio: 4/3;
  object-fit: cover;
}
.house__cap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-2) var(--sp-1);
  color: var(--text-main);
  font-size: var(--fs-text);
  font-weight: 500;
  line-height: 1.5;
  text-wrap: pretty;
}
/* 白い丸の中の ⌄。開いている間は上を向く */
.house__chev {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  background: var(--bg-raised);
  transition: rotate 0.3s;
}
.house__chev::before {
  content: "";
  width: 8px;
  height: 8px;
  /* 山吹のままだと白の上で1.7:1しか出ないので、濃い金茶にする */
  border-right: 2px solid var(--text-accent);
  border-bottom: 2px solid var(--text-accent);
  rotate: 45deg;
  translate: 0 -2px;
}
.house[aria-expanded="true"] .house__chev {
  rotate: 180deg;
}

.house__detail {
  margin-top: var(--sp-3);
}
.house__detail[hidden] {
  display: none;
}
.house__badge {
  display: inline-block;
  padding: var(--sp-1) var(--sp-3);
  border-radius: 999px;
  background: var(--bg-deep);
  color: var(--text-on-deep);
  font-size: var(--fs-cap);
  font-weight: 500;
  letter-spacing: 0.08em;
}
.house__name {
  margin-top: var(--sp-2);
  font-size: var(--fs-sub);
  font-weight: 500;
  line-height: 1.5;
}
/* HPのモデルハウス一覧から持ってきた各棟のキャッチ */
.house__catch {
  margin-top: var(--sp-1);
  font-size: var(--fs-cap);
  font-weight: 500;
  line-height: 1.6;
  text-wrap: pretty;
}
.house__detail > img {
  margin-top: var(--sp-2);
  aspect-ratio: 3/2;
  object-fit: cover;
  border-radius: var(--r-card);
}
.house__detail .stage {
  margin-top: var(--sp-2);
}
.house__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-1);
  margin-top: var(--sp-2);
}

/* =========================================================
   モデルハウスの詳細ポップアップ
   ========================================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.modal[hidden] {
  display: none;
}
.modal__scrim {
  position: absolute;
  inset: 0;
  background: var(--scrim-flat);
}
.modal__box {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin: var(--sp-5) 0;
  max-height: calc(100dvh - var(--sp-5) * 2);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--sp-5) var(--pad) var(--sp-4);
  background: var(--bg-base);
  border-radius: var(--r-card);
}
.modal__x {
  position: absolute;
  top: var(--sp-1);
  right: var(--sp-1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
}
.modal__x::before,
.modal__x::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 16px;
  height: 2px;
  background: var(--text-main);
}
.modal__x::before {
  rotate: 45deg;
}
.modal__x::after {
  rotate: -45deg;
}
.modal__name {
  margin-top: var(--sp-2);
  font-size: var(--fs-title);
  font-weight: 500;
  line-height: 1.5;
}
.modal__catch {
  margin-top: var(--sp-1);
  font-size: var(--fs-cap);
  font-weight: 500;
  line-height: 1.6;
  text-wrap: pretty;
}

/* ---- 画像一覧 ---- */
.gal {
  margin-top: var(--sp-3);
}
.gal__main {
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--bg-tint);
}
.gal__main img {
  aspect-ratio: 4/3;
  object-fit: cover;
}
.gal__cap {
  margin-top: var(--sp-1);
  font-size: var(--fs-note);
  color: var(--text-sub);
  line-height: 1.7;
  text-wrap: pretty;
}
.gal__cap:empty {
  display: none;
}
.gal__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-1);
  margin-top: var(--sp-2);
}
/* モデルハウスは棟によって2〜16枚とばらつくので、サムネは2段の横スクロール。
   1列に4枚ぶんの幅を割り当てて、8枚ずつ送れるようにする */
.stage--thumbs {
  position: relative;
}
.stage--thumbs .gal__thumbs {
  grid-template-columns: none;
  grid-template-rows: repeat(2, 1fr);
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - var(--sp-1) * 3) / 4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.stage--thumbs .gal__thumbs::-webkit-scrollbar {
  display: none;
}
/* 8枚ずつ送るので、各列の左端で止める */
.stage--thumbs .gal__thumb {
  scroll-snap-align: start;
}
/* 2段ぶんの高さの真ん中に矢印を置く */
.stage--thumbs .shots__nav {
  top: calc(50% + var(--sp-1));
}
.gal__thumb {
  border-radius: var(--r-btn);
  overflow: hidden;
  background: var(--bg-tint);
  opacity: 0.55;
  transition: opacity 0.2s ease;
}
.gal__thumb img {
  aspect-ratio: 4/3;
  object-fit: cover;
}
.gal__thumb.is-current {
  opacity: 1;
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

/* テイスト：大きい写真1枚＋下のサムネを押して切り替える（2026-10-07 E案）。
   支給画像は16:9で、テイスト名が画像の中に入っている */
.taste-gal .gal__main img {
  aspect-ratio: 16/9;
}
/* サムネは1段・3枚ぶんを見せて横に送る（矢印は既存の .shots__nav。3枚ずつ送る） */
.stage--tastes {
  margin-top: var(--sp-2);
  container-type: inline-size;
}
.taste-gal .gal__thumbs {
  margin-top: 0;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - var(--sp-1) * 2) / 3);
  gap: var(--sp-1);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.taste-gal .gal__thumbs::-webkit-scrollbar {
  display: none;
}
.taste-gal .gal__thumb {
  scroll-snap-align: start;
}
/* 矢印はサムネ写真の高さの真ん中に（下の和名ぶんを除く） */
.stage--tastes .shots__nav {
  top: calc((100cqw - var(--sp-1) * 2) / 3 * 9 / 16 / 2);
  width: 32px;
  height: 32px;
}
.taste-gal .gal__thumb {
  background: none;
}
.taste-gal .gal__thumb img {
  aspect-ratio: 16/9;
  border-radius: var(--r-btn);
}
.taste-gal .gal__thumb.is-current {
  outline: none;
}
.taste-gal .gal__thumb.is-current img {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
/* サムネの中の英字は小さくて読めないので、和名を下に添える */
.taste__label {
  display: block;
  margin-top: 4px;
  font-size: var(--fs-note);
  line-height: 1.4;
  color: var(--text-main);
  text-align: center;
}

/* ---- 特徴・面積 ---- */
.modal__feat {
  margin-top: var(--sp-4);
  padding: var(--sp-3);
  background: var(--bg-raised);
  border-radius: var(--r-card);
}
.modal__featlead {
  font-size: var(--fs-text);
  font-weight: 500;
  line-height: 1.7;
  text-wrap: pretty;
}
.modal__featsub {
  margin-top: var(--sp-1);
  font-size: var(--fs-cap);
  color: var(--text-sub);
  line-height: 1.9;
  text-wrap: pretty;
}

/* ---- 間取り・アクセス ---- */
.modal__h {
  margin-top: var(--sp-4);
  font-family: var(--font-en);
  font-size: var(--fs-sub);
  font-weight: 500;
}
.modal__madori {
  margin-top: var(--sp-2);
  border-radius: var(--r-card);
  background: var(--bg-raised);
}
.modal__addr {
  margin-top: var(--sp-2);
  margin-bottom: var(--sp-2);
  font-size: var(--fs-cap);
  line-height: 1.8;
}
.modal__cta {
  margin-top: var(--sp-4);
}

/* 開いた瞬間にスクロールバーが消えて本文・レール・背景が横にずれないよう、幅を常に確保しておく */
html {
  scrollbar-gutter: stable;
}
body.is-modal {
  overflow: hidden;
}
/* ポップアップを開いている間は追従バーを隠す（下端で重なるため） */
body.is-modal .fixedcta {
  display: none;
}

/* 住所の下にそのまま地図を出す（モーダルは畳んであるので、開くまで読み込まれない） */
.modal__map {
  margin-top: var(--sp-2);
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--bg-tint);
  aspect-ratio: 4/3;
}
.modal__map iframe {
  display: block;
  width: 100%;
  height: 100%;
}

/* =========================================================
   あしらい（淡い図形）
   本文の邪魔をしないよう、地に近いところまで薄めて端に置く。
   文字と重なっても --text-main で10:1以上は保てる濃さに収めている
   ========================================================= */
.section--deco {
  position: relative;
  overflow: hidden;
}
.section--deco > .container {
  position: relative;
  z-index: 1;
}
.deco {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}
.deco__dot {
  fill: var(--accent-soft);
  opacity: 0.72;
}
.deco__arcs {
  fill: none;
  stroke: var(--accent-wood);
  stroke-width: 1.2;
  opacity: 0.34;
}
.deco__sqs {
  fill: none;
  stroke: var(--accent-wood);
  stroke-width: 1.1;
  opacity: 0.3;
}

/* 置き場所。はみ出したぶんはセクション側の overflow:hidden で切る */
.deco--set-a {
  top: 8px;
  right: -40px;
} /* ②お悩み：見出しの右 */
.deco--sq-a {
  top: -16px;
  right: -48px;
} /* ④実例：見出しの右上 */
.deco--set-b {
  top: -8px;
  right: -48px;
} /* ⑧流れ：見出しの右 */
.deco--arc-a {
  bottom: -40px;
  left: -48px;
  rotate: 170deg;
} /* ⑩FAQ：左下（据え置き） */

/* =========================================================
   写真をタップで拡大
   ========================================================= */
.js-zoom {
  cursor: zoom-in;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4) var(--sp-2);
  background: var(--scrim-flat);
}
.lightbox[hidden] {
  display: none;
}
.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  object-fit: contain;
  border-radius: var(--r-card);
}
.lightbox__close {
  position: absolute;
  top: var(--sp-2);
  right: var(--sp-2);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
}
.lightbox__close::before,
.lightbox__close::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 2px;
  background: var(--text-main);
}
.lightbox__close::before {
  rotate: 45deg;
}
.lightbox__close::after {
  rotate: -45deg;
}

/* =========================================================
   PCの背景画像
   左右の余白に敷く。本文の帯は地の色で塗りつぶして読みやすさを保つ
   ========================================================= */

/* =========================================================
   Contact Form 7 の出力を既存の field レイアウトに合わせる（標準エラー表示は残す）
   ========================================================= */
#entry .wpcf7-form-control-wrap {
  display: block;
  min-width: 0;
}
#entry .radio--grid > .wpcf7-form-control-wrap,
#entry .radio--grid .wpcf7-radio {
  display: contents;
}
#entry .wpcf7-list-item {
  margin: 0;
}
#entry .wpcf7-not-valid-tip,
#entry .wpcf7-response-output {
  font-size: var(--fs-cap);
  line-height: 1.8;
}
#entry .wpcf7-response-output {
  margin: var(--sp-2) 0;
}
#entry .wpcf7-form.submitting button[type="submit"] {
  opacity: 0.6;
  pointer-events: none;
}
/* .field input の全幅指定に負けないよう、展示場の控え欄は ID で潰す */
#entry #siteInput.vis-hidden {
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
}
/* 控え欄の包み（CF7 が足す span）が .field の行として数えられ、余白が1段増えるのを防ぐ */
#entry .wpcf7-form-control-wrap[data-name="your-site-01"] {
  position: absolute;
}
/* 日付と時間帯の横並び：包みの中でも入力欄を行の高さいっぱいに伸ばす（元は日付欄の高さに揃う） */
#entry .field__row > .wpcf7-form-control-wrap {
  display: grid;
}

/* =========================================================
   PC（min-width:1025px）— このファイルで唯一のPC指定
   ========================================================= */
@media (min-width: 1025px) {
  /* ---- 書体・余白の値（:root） ---- */
  :root {
    --fs-catch: 58px;
    --fs-title: 26px;
    --fs-sub: 20px;
    --fs-lead: 18px;
    --fs-text: 18px;
    --fs-cap: 14px;
    --fs-note: 12px;
    --fs-label: 14px;
    --fs-stat: 40px;
    --fs-price: 44px;
    --fs-chip: 20px;
    --gap-sec-l: 56px;
    --gap-sec-s: 40px;
    --pad: 32px;
  }

  /* ---- 骨格・左レール（型A） ---- */
  body {
    padding-bottom: 0;
  }
  .header {
    display: none;
  }
  .menu {
    display: none;
  }
  .fixedcta {
    display: none;
  } /* PCは左レール内のCTAが常時見える */

  .wrap {
    --band: calc(var(--rail) + var(--rail-gap) + var(--maxw));
    --band-side: max(var(--pad), calc((100vw - var(--band)) / 2));
  }
  .frame {
    width: var(--maxw);
    margin-left: auto;
    margin-right: var(--band-side);
  }
  /* PCでもガターを維持する（W-11）。0にすると文字が地の端に触れる */

  /* 帯の左半分。中身を右寄せ（flex-end）にすると、
     レール内容の左余白＝本文の右余白 になり左右が揃う（型Aの検収条件） */
  .rail {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: calc(var(--band-side) + var(--maxw) + var(--rail-gap));
    padding-block: var(--sp-5);
    z-index: 20;
  }
  /* 背景写真に濃い部分（葉）があるとロゴとメニューが沈む。
     中身の箱まわりだけ地を起こし、外側へ向けて消す（写真は見せたまま） */
  .rail__inner {
    position: relative;
  }
  .rail__inner::before {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    inset: calc(var(--sp-5) * -1) calc(var(--sp-4) * -1);
    background: var(--veil-rail);
  }
  .rail__inner {
    width: var(--rail);
    max-width: 100%;
  }
  .rail__logo {
    display: block;
  }
  .rail__logo img {
    width: 200px;
    height: auto;
  }
  /* レールは背景写真の上に乗る。写真の最暗部（RGB152）だと --text-sub は
     2.76まで落ちるので、レール内の文字は --text-main で統一する（5.63:1） */
  .rail__note {
    margin-top: 8px;
    font-size: var(--fs-note);
    color: var(--text-main);
  }
  /* メニューは2列（2026-09-17 指示） */
  /* 項目を絞ったので1列にして、見ているところに「・」を出す */
  .rail__nav {
    margin-top: var(--sp-4);
    display: grid;
    gap: 0;
  }
  .rail__nav a {
    display: flex;
    align-items: center;
    gap: var(--sp-1);
    padding: var(--sp-2) 0;
    border-bottom: 1px solid var(--line);
    font-size: var(--fs-cap);
    color: var(--text-main);
    font-weight: 400;
    transition: font-weight 0.2s ease;
  }
  .rail__nav a:first-child {
    border-top: 1px solid var(--line);
  }
  .rail__nav a:hover,
  .rail__nav a.is-current {
    font-weight: 500;
  }
  .rail__dot {
    width: 6px;
    height: 6px;
    flex: none;
    border-radius: 50%;
    background: var(--text-main);
    opacity: 0;
    transition: opacity 0.2s ease;
  }
  .rail__nav a.is-current .rail__dot {
    opacity: 1;
  }
  .rail__cta {
    margin-top: var(--sp-3);
    padding-top: var(--sp-3);
  } /* 上の線はメニュー最終行の下線で足りる */

  /* FVはPCでも全幅ブリードにしない（帯の中で完結させる）。
     min-height は写真と同じ 4:5（480×600）。ウィンドウが低いときに
     枠だけ横長になって空が上から削られ、コピーが屋根に乗るのを防ぐ。 */
  .fv {
    width: 100%;
    margin-left: 0;
    border-radius: var(--r-card);
    height: calc(100svh - var(--sp-7) - 152px);
    min-height: 600px;
  }
  .fv__copy {
    padding: 0 var(--sp-4);
  }

  .taste {
    grid-template-columns: repeat(2, 1fr);
  }
  .table th {
    width: 120px;
  }

  /* ---- フッター ---- */
  .footer {
    padding-bottom: var(--sp-7);
  }
  .footer__shops {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-2) var(--sp-3);
  }

  /* ---- 横スライド ---- */
  .scroller .house {
    width: 240px;
  }

  /* ---- あしらい ---- */
  /* PCはセクションの幅＝本文カラムなので、内側に寄せると本文に被る。端へ逃がす */
  .deco--set-a {
    right: -88px;
  }
  .deco--sq-a {
    right: -96px;
  }
  .deco--set-b {
    right: -96px;
  }
  .deco--arc-a {
    left: -96px;
  }

  /* ---- 背景画像 ---- */
  body {
    background-image: url("img/bg-pc.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
  }
  .frame {
    background: var(--bg-base);
  }
}
