@charset "UTF-8";
/* ==========================================================================
   Project（p-*）— このデモ固有のレイアウト
   🔴 レイアウトは 25_シート回答（§1＋§4 アドバンス追記）からゼロから組んだもの。
      clinic のアドバンス（ピン留めストーリー＋横ギャラリー）の構成は持ち込まない —— 42 §0-2 複製の禁止。
      ピンは ①積層（木の見えるところ） ②比較（工事前→工事後） の2箇所だけ（鉄則: 2箇所まで）。
   ⚠️ ピン用レイアウトはすべて html.has-scrub ＋ min-width:900px の中に書く
      （スマホ・reduced-motion・JSなし では通常レイアウトに落ちる）
   ========================================================================== */

/* ══ 下層ページの題字 ══ */
.p-pagehead {
  background: var(--b-cream);
  border-bottom: 1px solid var(--b-line);
  padding-bottom: 40px;
}

.p-pagehead__en {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--b-sub-dark);
  margin-top: 28px;
}

.p-pagehead__tit {
  font-size: 38px;
  margin-top: 6px;
}

.p-pagehead__lead {
  margin-top: 12px;
  max-width: 44em;
}

@media (max-width: 767px) {
  .p-pagehead__tit {
    font-size: 28px;
  }
}

/* ══ FV — 写真が主役（2026-08-23 作り替え）══
   梁のLDKが画面いっぱいに広がり、左下に「屋根勾配で角を落とした濃緑のパネル」が重なる。
   文字はパネルの面の上＝写真に文字を重ねない鉄則は維持（35 FVの3鉄則）。
   🔴 clinic アドバンス（左パネル＋右写真の2分割）とは別の構図（全面写真＋重なるパネル） */
.p-fv {
  position: relative;
}

.p-fv__panel {
  position: relative;
  z-index: 2;
  background: var(--b-main-dark);
  color: var(--b-white);
  width: min(640px, 100%);
  padding: 36px 40px 30px;
  margin-top: clamp(-240px, -22vh, -120px);   /* 写真に重なる */
  clip-path: polygon(0 0, calc(100% - 44px) 0, 100% 44px, 100% 100%, 0 100%);   /* 屋根勾配の面取り */
}

@media (max-width: 767px) {
  .p-fv__panel {
    margin-top: -64px;
    padding: 28px 24px 24px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .js .p-fv__panel {
    animation: fv-panel 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) 0.4s both;
  }

  @keyframes fv-panel {
    from {
      opacity: 0;
      translate: 0 28px;
    }

    to {
      opacity: 1;
      translate: 0 0;
    }
  }
}

.p-fv__place {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--b-sub);
}

.p-fv__tit {
  font-size: clamp(38px, 4.8vw, 60px);
  line-height: 1.4;
  letter-spacing: 0.06em;
  color: var(--b-white);
  margin-top: 10px;
}

.p-fv__lead {
  margin-top: 16px;
  font-size: 15.5px;
  line-height: 2;
  color: rgba(255, 255, 255, 0.88);
  max-width: 32em;
}

.p-fv__panel .c-cta {
  margin-top: 22px;
}

.p-fv__panel .c-btn {
  background: var(--b-white);
  color: var(--b-main-dark);
  border-color: var(--b-white);
}

.p-fv__panel .c-btn:hover {
  background: var(--b-cream);
  color: var(--b-main-dark);
}

.p-fv__panel .c-cta__tel a {
  color: var(--b-white);
}

.p-fv__panel .c-cta__note {
  color: rgba(255, 255, 255, 0.75);
}

/* 証拠への予告（36 §3）。パネルの下端に控えめな3リンク */
.p-fv__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.p-fv__proof a {
  color: var(--b-white);
  font-size: 14px;
  text-decoration: none;
}

.p-fv__proof a::after {
  content: "→";
  margin-left: 7px;
  color: var(--b-sub);
}

.p-fv__proof a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* 数字の帯（42年・6棟・10年 — シートの実数のみ。カウントアップはしない）。薄緑の面 */
.p-fv__nums {
  background: var(--b-main-pale);
  margin-top: 48px;
}

.p-nums__area {
  padding-bottom: 34px;
  font-size: 14px;
  color: var(--b-muted);
}

.p-nums {
  display: grid;
  gap: 20px;
  padding-block: 28px;
}

@media (min-width: 768px) {
  .p-nums {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding-block: 36px;
  }
}

.p-nums__num {
  font-family: var(--b-font-head);
  font-weight: 600;
  font-size: clamp(48px, 5vw, 64px);   /* 数字は設計物（2026-08-23 増強。小さい数字は帳票に見える） */
  line-height: 1.15;
  color: var(--b-sub-dark);
  font-variant-numeric: tabular-nums;
}

.p-nums__unit {
  font-size: 21px;
  margin-left: 2px;
}

.p-nums__desc {
  display: block;
  font-size: 14px;
  color: var(--b-muted);
  margin-top: 2px;
}

/* 全画面の写真（l-wrap の外に置く＝はみ出し計算をしない全幅）。開いた直後に下から拭き上げ */
.p-fv__photo {
  overflow: hidden;
}

.p-fv__photo .c-figure {
  border-radius: 0;
}

.p-fv__photo .c-figure img {
  width: 100%;
  height: clamp(420px, 88svh, 860px);
  object-fit: cover;
  object-position: 50% 45%;
}

@media (max-width: 767px) {
  .p-fv__photo .c-figure img {
    height: clamp(320px, 58svh, 560px);
  }
}

.p-fv__photo .c-imgslot {
  border-radius: 0;
  border-inline: 0;
  aspect-ratio: auto !important;   /* スロットの inline aspect-ratio より高さの上限を優先 */
  height: clamp(420px, 88svh, 860px);
}

@media (prefers-reduced-motion: no-preference) {
  .js .p-fv__photo {
    animation: fv-wipe 1.1s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  }

  @keyframes fv-wipe {
    from {
      clip-path: inset(0 0 100% 0);
    }

    to {
      clip-path: inset(0);
    }
  }
}

/* 離れるほど写真がわずかに寄る（拡大方向のみ＝見切れが出ない）。エンジンの --vy を使う */
.has-scrub .p-fv__photo .c-figure img {
  scale: calc(1 + var(--vy, 0) * 0.00005);
  transition: scale 0.1s linear;
}

/* ══ 写真の「手」（工務店の意匠）══
   ①杉色の面を少しずらして重ねる（線でなく面 — 32 §4-5）
   ②角をひとつ、屋根の勾配で落とす（面取り。tax の丸い大角とは別の、大工の直線の手） */
.p-ph,
.p-svc__ph {
  position: relative;
}

.p-ph::before,
.p-svc__ph::before {
  content: "";
  position: absolute;
  inset: 20px -16px -16px 20px;
  background: var(--b-sub-ghost);
  border-radius: var(--b-radius);
}

.p-ph > *,
.p-svc__ph > * {
  position: relative;
}

.p-ph .c-figure img,
.p-ph .c-imgslot,
.p-svc__ph .c-figure img,
.p-svc__ph .c-imgslot,
.p-work__ph:not(.p-work__ph--pair) > :first-child .c-figure img,
.p-work__ph:not(.p-work__ph--pair) > :first-child .c-imgslot {
  clip-path: polygon(30px 0, 100% 0, 100% 100%, 0 100%, 0 30px);
}

/* ══ できること（トップ）: 主従のある構成 ══
   🔴 均等な「写真×本文の交互」はテンプレの型に見える（2026-08-23 本人指摘「コーダーが作った感じ」）。
   businessMain の主＝注文住宅を大きく、リフォーム・点検を従の2枚に */
.p-svcfeat {
  display: grid;
  gap: 28px;
  align-items: center;
  margin-bottom: 40px;
}

@media (min-width: 900px) {
  .p-svcfeat {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 56px;
  }
}

.p-svcfeat__tit {
  font-size: clamp(26px, 3vw, 34px);
}

/* できること・家づくりのことで共通の飾り番号（数字の帯・事例・FAQと同じ「手」） */
.p-svcnum {
  display: block;
  font-family: var(--b-font-head);
  font-weight: 600;
  font-size: 34px;
  line-height: 1;
  color: var(--b-sub);
  font-variant-numeric: tabular-nums;
  margin-bottom: 10px;
}

.p-svcgrid {
  display: grid;
  gap: 24px;
}

@media (min-width: 700px) {
  .p-svcgrid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

.p-svccard {
  background: var(--b-white);
  border: 1px solid var(--b-line);
  border-radius: var(--b-radius);
  overflow: hidden;
  box-shadow: var(--b-shadow);
  transition: translate 0.2s ease, box-shadow 0.2s ease;
}

.p-svccard:hover {
  box-shadow: var(--b-shadow-hover);
}

.p-svccard__ph .c-figure img {
  width: 100%;
  height: clamp(170px, 20vw, 230px);
  object-fit: cover;
}

.p-svccard__ph .c-figure img,
.p-svccard__ph .c-imgslot {
  border-radius: 0;
}

.p-svccard__body {
  padding: 20px 24px 22px;
}

.p-svccard__body h3 {
  font-size: 20px;
}

/* ══ できること（下層 services 用の交互2カラムは残す） ══ */
.p-svc {
  display: grid;
  gap: 28px;
  align-items: center;
  margin-bottom: 64px;
}

.p-svc:last-of-type {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .p-svc {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .p-svc--rev .p-svc__ph {
    order: 2;
  }
}

.p-svc__tit {
  font-size: 25px;
}

.p-svc__desc {
  margin-top: 12px;
  font-weight: 700;
}

.p-svc__detail {
  margin-top: 10px;
  font-size: 15.5px;
  color: var(--b-muted);
}

.p-svc__price {
  display: inline-block;
  margin-top: 14px;
  font-size: 14.5px;
}

/* ══ 積層ピン「木の見えるところ」──────────────────────────────
   事例①（木の見える平屋）の写真3枚が、机に写真を並べるように1枚ずつ重なっていく。
   スクロール進行は demo.js の data-step（0..2）。前の写真は残る＝「積み重なる」。
   ⚠️ clinic のクロスフェード（入れ替え）とは違う型 — 42 §4-2 の新型 */
.p-stack__stage {
  display: grid;
  gap: 32px;
}

/* 通常レイアウト（スマホ・reduced-motion・JSなし）: 写真と説明を縦に並べる。
   紙の白い余白に番号を刷り、下の説明（01〜03）と対応がとれるようにする */
.p-stack__papers {
  counter-reset: paper;
  display: grid;
  gap: 20px;
}

.p-stack__paper {
  background: var(--b-white);
  padding: 10px 10px 4px;
  border-radius: var(--b-radius);
  box-shadow: var(--b-shadow);
  counter-increment: paper;
}

.p-stack__paper::after {
  content: "0" counter(paper);
  display: block;
  text-align: right;
  font-family: var(--b-font-head);
  font-weight: 600;
  font-size: 15px;
  color: var(--b-sub-dark);
  padding: 4px 2px;
}

.p-stack__cap {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  padding-block: 10px;
}

.p-stack__num {
  grid-row: 1 / 3;
  font-family: var(--b-font-head);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--b-sub);
  font-variant-numeric: tabular-nums;
}

.p-stack__captit {
  font-family: var(--b-font-head);
  font-weight: 600;
  font-size: 20px;
}

.p-stack__capbody {
  font-size: 15px;
  color: var(--b-muted);
}

.p-stack__more {
  display: inline-block;
  margin-top: 8px;
}

/* ピン版（900px以上＋エンジン起動時だけ） */
@media (min-width: 900px) {
  .has-scrub .p-stack {
    height: 320vh;   /* 3段ぶんのスクロールしろ */
    padding-block: 0;
  }

  .has-scrub .p-stack__pin {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
  }

  /* ⚠️ flex の子に margin-inline:auto があると stretch が効かず内容幅に縮む（実測で踏んだ） */
  .has-scrub .p-stack__pin > .l-wrap {
    width: 100%;
  }

  .has-scrub .p-stack__stage {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
  }

  /* 写真の重なり（机に置いた写真プリントの体） */
  .has-scrub .p-stack__papers {
    position: relative;
    height: clamp(380px, 58vh, 640px);
  }

  .has-scrub .p-stack__paper {
    position: absolute;
    inset: 0;
    margin: auto;
    width: min(82%, 560px);
    height: fit-content;   /* inset:0 のままだと紙が全高に伸びる（実測で踏んだ） */
    padding-bottom: 10px;
    opacity: 0;
    translate: 0 40px;
    transition: opacity 0.6s ease, translate 0.6s ease, rotate 0.6s ease;
  }

  .has-scrub .p-stack__paper::after {
    display: none;   /* ピン版の番号は右の説明の側にある */
  }

  .has-scrub .p-stack__paper .c-figure img,
  .has-scrub .p-stack__paper .c-imgslot {
    height: clamp(280px, 44vh, 480px);
    object-fit: cover;
  }

  .has-scrub .p-stack__paper[data-i="0"] {
    rotate: -2deg;
    translate: -7% 24px;
  }

  .has-scrub .p-stack__paper[data-i="1"] {
    rotate: 1.4deg;
    translate: 7% 32px;
  }

  .has-scrub .p-stack__paper[data-i="2"] {
    rotate: -0.6deg;
    translate: 0 40px;
  }

  /* 積み重なる: いまの段「まで」の写真が出ている（前の写真は消えない） */
  .has-scrub .p-stack[data-step="0"] .p-stack__paper[data-i="0"],
  .has-scrub .p-stack[data-step="1"] .p-stack__paper[data-i="0"],
  .has-scrub .p-stack[data-step="1"] .p-stack__paper[data-i="1"],
  .has-scrub .p-stack[data-step="2"] .p-stack__paper[data-i="0"],
  .has-scrub .p-stack[data-step="2"] .p-stack__paper[data-i="1"],
  .has-scrub .p-stack[data-step="2"] .p-stack__paper[data-i="2"] {
    opacity: 1;
  }

  .has-scrub .p-stack[data-step="1"] .p-stack__paper[data-i="0"] {
    translate: -7% 12px;
  }

  .has-scrub .p-stack[data-step="2"] .p-stack__paper[data-i="0"] {
    translate: -7% 0;
  }

  .has-scrub .p-stack[data-step="2"] .p-stack__paper[data-i="1"] {
    translate: 7% 16px;
  }

  /* 説明の側: いまの段だけ濃く */
  .has-scrub .p-stack__cap {
    opacity: 0.38;
    transition: opacity 0.4s ease;
    border-top: 1px solid var(--b-line);
  }

  .has-scrub .p-stack__cap:first-of-type {
    border-top: 0;
  }

  .has-scrub .p-stack[data-step="0"] .p-stack__cap[data-i="0"],
  .has-scrub .p-stack[data-step="1"] .p-stack__cap[data-i="1"],
  .has-scrub .p-stack[data-step="2"] .p-stack__cap[data-i="2"] {
    opacity: 1;
  }
}

/* ══ 比較ピン「工事前と、工事後」──────────────────────────────
   事例③（断熱リフォーム）。スクロール（--p）で境界が左→右に動き、工事後が現れる。
   ラベルは写真の外（文字を写真に重ねない）。つまみの線は杉色 */
.p-ba {
  background: var(--b-main-dark);
  color: var(--b-white);
}

.p-ba .c-heading h2 {
  color: var(--b-white);
}

.p-ba .c-heading__lead {
  color: rgba(255, 255, 255, 0.85);
}

.p-ba .c-heading__en {
  color: var(--b-sub);
}

.p-ba a {
  color: var(--b-white);
}

/* 前後ラベルの行はピン版だけ（通常レイアウトでは各写真の figcaption が同じ役をする） */
.p-ba__labels {
  display: none;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.p-ba__frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--b-radius);
}

/* 通常レイアウト: 前後を2枚並べる（比較としてそのまま成立させる） */
.p-ba__pair {
  display: grid;
  gap: 16px;
}

@media (min-width: 600px) {
  .p-ba__pair {
    grid-template-columns: 1fr 1fr;
  }
}

.p-ba__pair figcaption,
.p-ba__pairlabel {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.85);
}

.p-ba__cap {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 18px;
}

.p-ba__captit {
  font-family: var(--b-font-head);
  font-weight: 600;
  font-size: 21px;
}

.p-ba__capnote {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.8);
}

.p-ba__cap a {
  font-size: 14.5px;
}

.p-ba__hint {
  display: none;
}

/* ピン版（900px以上＋エンジン起動時だけ） */
@media (min-width: 900px) {
  .has-scrub .p-ba {
    height: 240vh;   /* 前→後のスクロールしろ */
    padding-block: 0;
  }

  .has-scrub .p-ba__labels {
    display: flex;
  }

  .has-scrub .p-ba__pin {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
  }

  .has-scrub .p-ba__pin > .l-wrap {
    width: 100%;
  }

  /* ピンの中身が 100vh を超えないよう、見出しの余白と写真の高さを絞る（実測で調整） */
  .has-scrub .p-ba .c-heading {
    margin-bottom: 20px;
  }

  .has-scrub .p-ba .c-heading__lead {
    margin-top: 8px;
  }

  .has-scrub .p-ba__pair {
    display: block;
    position: relative;
    height: clamp(320px, 46vh, 560px);
    border-radius: var(--b-radius);
    overflow: hidden;
  }

  .has-scrub .p-ba__pair figure {
    position: absolute;
    inset: 0;
  }

  .has-scrub .p-ba__pair figcaption {
    display: none;
  }

  .has-scrub .p-ba__pair .c-figure img,
  .has-scrub .p-ba__pair .c-imgslot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
  }

  /* 🔴 工事後は「左から右へ」広がる（2026-08-23 本人指定「左から右に出てくるほうが気持ちいい」）。
     p=0 → 工事前だけ／p=1 → 工事後だけ。つまみは左端から右へ掃く。
     ⚠️ ピン中のラベルは 左=工事後・右=工事前（境界の左側に見えているものを指すため。markup 側で入れ替え済み） */
  .has-scrub .p-ba__after {
    clip-path: inset(0 calc((1 - var(--p, 0)) * 100%) 0 0);
  }

  /* つまみ（杉色の縦線）。左端から右へ掃く。装飾なので aria-hidden */
  .has-scrub .p-ba__handle {
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(var(--p, 0) * 100%);
    width: 3px;
    margin-left: -1.5px;
    background: var(--b-sub);
    z-index: 2;
  }

  .has-scrub .p-ba__hint {
    display: block;
    font-size: 13px;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 14px;
  }

  .has-scrub .p-ba__hint::after {
    content: "";
    display: inline-block;
    width: 34px;
    height: 1px;
    background: var(--b-sub);
    margin-left: 10px;
    vertical-align: middle;
  }
}

.p-ba__handle {
  display: none;
}

/* ══ 声の抜粋（トップ）と声ページ ══ */
.p-voicegrid {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .p-voicegrid {
    grid-template-columns: 1fr 1fr;
  }
}

.p-voicegrid--page {
  grid-template-columns: 1fr;
  max-width: 840px;
}

/* ══ 費用の抜粋と費用ページ ══ */
.p-pricepre {
  background: var(--b-white);
  border: 1px solid var(--b-line);
  border-radius: var(--b-radius);
  padding: 28px;
  box-shadow: var(--b-shadow);
}

/* 表の行の順出し（.p-rows に data-reveal を付けて使う） */
.js .p-rows tr {
  opacity: 0;
  translate: 0 8px;
  transition: opacity 0.5s ease, translate 0.5s ease;
}

.js .p-rows.is-in tr {
  opacity: 1;
  translate: 0 0;
}

.js .p-rows.is-in tr:nth-child(2) { transition-delay: 0.08s; }
.js .p-rows.is-in tr:nth-child(3) { transition-delay: 0.16s; }
.js .p-rows.is-in tr:nth-child(4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .js .p-rows tr {
    opacity: 1;
    translate: 0 0;
    transition: none;
  }
}

.p-price__note {
  margin-top: 18px;
}

tr[id] {
  scroll-margin-top: 24px;
}

/* ══ 現在地ドット（施工事例ページ・PCだけ・JSがあるときだけ） ══ */
.p-dots {
  display: none;
}

@media (min-width: 1100px) {
  .js .p-dots {
    display: block;
    position: fixed;
    right: 28px;
    top: 50%;
    translate: 0 -50%;
    z-index: 20;
  }

  .p-dots ul {
    display: grid;
    gap: 14px;
  }

  .p-dots a {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--b-line);
    transition: background-color 0.25s ease, scale 0.25s ease;
  }

  .p-dots a:hover {
    background: var(--b-sub);
  }

  .p-dots a[data-here] {
    background: var(--b-sub);
    scale: 1.35;
  }
}

/* ══ 施工事例（見開き） ══ */
.p-work {
  padding-block: 56px;
  border-top: 1px solid var(--b-line);
  scroll-margin-top: 16px;
}

.p-work:first-of-type {
  border-top: 0;
  padding-top: 24px;
}

.p-work__head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
}

.p-work__num {
  font-family: var(--b-font-head);
  font-weight: 600;
  font-size: 52px;
  line-height: 1;
  color: var(--b-sub);
  font-variant-numeric: tabular-nums;
}

.p-work__tit {
  font-size: clamp(26px, 2.8vw, 34px);
}

.p-work__note {
  width: 100%;
  color: var(--b-muted);
  margin-top: 6px;
}

.p-work__ph {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

@media (min-width: 768px) {
  .p-work__ph {
    grid-template-columns: repeat(6, 1fr);
  }

  .p-work__ph > :first-child {
    grid-column: 1 / -1;   /* 主役の1枚はラップいっぱいの全幅（2026-08-23 スケールアップ）。下に小2枚 */
  }

  .p-work__ph > :first-child .c-figure img {
    height: clamp(380px, 52vh, 600px);
  }

  .p-work__ph > :nth-child(2),
  .p-work__ph > :nth-child(3) {
    grid-column: span 3;
  }

  /* 2枚の事例は 4:2、前後比較は 3:3 で並べる */
  .p-work__ph--pair > :first-child,
  .p-work__ph--pair > :nth-child(2) {
    grid-column: span 3;
  }
}

.p-work__ph .c-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 事例の写真は1枚ずつ順に入場する（大→小→小の時間差） */
.js .p-work__ph > :nth-child(2) .c-figure,
.js .p-work__ph > :nth-child(2) .c-figure img {
  transition-delay: 0.15s;
}

.js .p-work__ph > :nth-child(3) .c-figure,
.js .p-work__ph > :nth-child(3) .c-figure img {
  transition-delay: 0.3s;
}

.p-work__ph figcaption {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--b-muted);
  margin-bottom: 6px;
}

.p-work__voice {
  margin-top: 26px;
  max-width: 720px;
}

.p-work__voicetit {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--b-sub-dark);
  margin-bottom: 10px;
}

/* ══ よくある質問（2026-08-23 作り替え）══
   箱のアコーディオンをやめ、大きな飾り番号＋明朝の問いを主役に。
   左は写真と導線（PCでは追従）＝4問でもページが痩せない */
.p-faqpage {
  display: grid;
  gap: 48px;
}

@media (min-width: 900px) {
  .p-faqpage {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 72px;
    align-items: start;
  }

  .p-faqpage__side {
    position: sticky;
    top: 32px;
  }
}

.p-faqpage__note {
  margin-top: 28px;
  font-size: 15px;
  color: var(--b-muted);
  max-width: 26em;
}

.p-qa {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 24px;
  align-items: start;
  padding-block: 34px;
}

.p-qa + .p-qa {
  border-top: 1px solid var(--b-line);
}

.p-qa:first-child {
  padding-top: 0;
}

.p-qa__num {
  font-family: var(--b-font-head);
  font-weight: 600;
  font-size: clamp(44px, 5vw, 60px);
  line-height: 1;
  color: var(--b-sub);
  font-variant-numeric: tabular-nums;
}

.p-qa__q {
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.7;
}

.p-qa__a {
  margin-top: 12px;
  color: var(--b-muted);
  max-width: 36em;
}

/* ══ 費用の目安（2026-08-23 作り替え: 証拠つきの料金表）══
   各行 = 写真（事例の使い回し）＋名前と一言＋大きな金額。値段⇄実物を1タップで往復 */
.p-feelist {
  border-top: 1px solid var(--b-line);
}

.p-fee {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px 24px;
  align-items: center;
  padding-block: 26px;
  border-bottom: 1px solid var(--b-line);
  scroll-margin-top: 24px;
  transition: background-color 0.2s ease;
}

.p-fee:hover {
  background: var(--b-cream);
}

@media (min-width: 768px) {
  .p-fee {
    grid-template-columns: 200px minmax(0, 1fr) auto;
    gap: 32px;
    padding-block: 30px;
  }
}

.p-fee__ph .c-figure img,
.p-fee__ph .c-imgslot {
  clip-path: polygon(20px 0, 100% 0, 100% 100%, 0 100%, 0 20px);
}

.p-fee__ph .c-figure img {
  width: 100%;
  height: 124px;
  object-fit: cover;
}

@media (max-width: 767px) {
  .p-fee__ph {
    grid-row: 1 / 3;
    width: 116px;
  }

  .p-fee__ph .c-figure img {
    height: 78px;
  }
}

.p-fee__name {
  font-size: clamp(19px, 2vw, 23px);
}

.p-fee__cap {
  margin-top: 6px;
  font-size: 14.5px;
  color: var(--b-muted);
}

.p-fee__link {
  display: inline-block;
  margin-top: 8px;
  font-size: 14.5px;
}

.p-fee__amount {
  white-space: nowrap;
  justify-self: end;
}

@media (max-width: 767px) {
  .p-fee__amount {
    grid-column: 2;
    justify-self: start;
  }
}

/* ══ お客様の声（2026-08-23 作り替え: 声と「その家の写真」の見開き）══ */
.p-voices {
  display: grid;
  gap: 72px;
}

.p-vpair {
  display: grid;
  gap: 28px;
  align-items: center;
}

@media (min-width: 820px) {
  .p-vpair {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 64px;
  }

  .p-vpair--rev .p-vpair__ph {
    order: 2;
  }
}

.p-v__quote {
  font-family: var(--b-font-head);
  font-weight: 600;
  font-size: clamp(19px, 2.2vw, 23px);
  line-height: 2;
}

.p-v__quote::before {
  content: "「";
  margin-left: -0.5em;
}

.p-v__quote::after {
  content: "」";
}

.p-v__who {
  margin-top: 14px;
  font-size: 14px;
  color: var(--b-muted);
}

.p-v__link {
  display: inline-block;
  margin-top: 10px;
  font-size: 14.5px;
}

/* 家の無い声は、余白の広い1本組みで挟む（リズムを崩す静かな段） */
.p-vsolo {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  padding-block: 8px;
}

.p-vsolo .p-v__quote {
  font-size: clamp(18px, 2vw, 21px);
}

/* ══ 会社概要・アクセス ══ */
.p-about {
  display: grid;
  gap: 40px;
}

@media (min-width: 900px) {
  .p-about {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: start;
  }
}

/* ══ お問い合わせ ══ */
.p-contact__form {
  background: var(--b-white);
  border: 1px solid var(--b-line);
  border-radius: var(--b-radius);
  padding: 32px 28px;
  box-shadow: var(--b-shadow);
}

.p-contact__submit {
  width: 100%;
  margin-top: 8px;
}

.p-contact__tel {
  text-align: center;
}

.p-contact__teltit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
}

.p-contact__telnum a {
  font-size: 34px;
  font-weight: 700;
  color: var(--b-main-dark);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}

/* ══ 締めのご相談（各ページ末尾） ══ */
.p-close {
  text-align: center;
}

.p-close__lead {
  max-width: 36em;
  margin-inline: auto;
}
