@charset "UTF-8";
/* ============================================================
   株式会社川辺総建 草加営業所 — リニューアル提案デモ
   配色・タイポグラフィは 13_Web構成.md「4. デザイン方針」に準拠
   ============================================================ */

/* ---------- 1. トークン ---------- */
:root {
  /* 配色（13_Web構成.md 4-1） */
  --c-bg:        #FFFFFF; /* ベース背景 */
  --c-surface:   #FAF6F1; /* 面の下地 */
  --c-text:      #1A1A1A; /* 本文テキスト  白比 17.40:1 */
  --c-sub:       #595959; /* 補助テキスト  白比  7.00:1 */
  --c-dark:      #3E3E3E; /* ヘッダー/フッター 白文字 10.70:1 */
  --c-accent:    #AB6513; /* CTAボタンの地（白文字 4.56:1） */
  --c-accent-tx: #9E5D12; /* リンク文字用。色相32.4°・彩度は同一、明度のみ低下
                             （#AB6513 は #FAF6F1 上で 4.24:1 と不足するため）
                             白 5.21:1 ／ #FAF6F1 4.85:1 */
  --c-accent-dk: #7F4A0E; /* ボタンhover/active（白文字 7.2:1） */
  --c-orange:    #E8912A; /* 明オレンジ＝装飾専用。文字色には使わない */
  --c-line:      #E5DDD3; /* 境界線 */

  /* レイアウト */
  --wrap: 1120px;
  --prose: 760px;
  --sec: 96px;
  --header-h: 84px;
  --header-h-min: 64px;
  --radius: 4px;

  /* 速度（3種類に統一） */
  --t-fast: 180ms;   /* ホバー・ボタン */
  --t-base: 500ms;   /* 出現・切り替え */
  --e-out: cubic-bezier(.16,.84,.44,1);
  --e-in:  cubic-bezier(.4,0,.9,.4);
}

/* ---------- 2. リセット ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.9;
  font-weight: 400;
  /* 明朝体・欧文セリフは使わない（現行サイト最大の弱点） */
}
img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }
a { color: var(--c-accent-tx); }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: 2px;
}
h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.4; font-weight: 700; }
p { margin: 0 0 1.2em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.4em; }
li { margin-bottom: .4em; }

/* ---------- 3. 共通パーツ ---------- */
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.prose { max-width: var(--prose); }         /* 全角36〜42字で折り返す */
.prose-center { max-width: var(--prose); margin-inline: auto; }
.section { padding: var(--sec) 0; scroll-margin-top: 90px; }
.section--tint { background: var(--c-surface); }
.section--tight { padding: calc(var(--sec) * .66) 0; }

.h2 { font-size: 32px; line-height: 1.4; margin-bottom: 28px; }
.h3 { font-size: 22px; line-height: 1.5; margin-bottom: 12px; }
.lead { font-size: 19px; }
.note { font-size: 14px; line-height: 1.7; color: var(--c-sub); margin: 8px 0 0; }
.note--img { margin: 8px 0 0; }             /* ※イメージ画像（AI生成） */

/* 見出し下の下線＝明オレンジ（装飾専用） */
.h2--rule { position: relative; padding-bottom: 18px; }
.h2--rule::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 56px; height: 4px; background: var(--c-orange); border-radius: 2px;
}
.h2--rule.is-center { text-align: center; }
.h2--rule.is-center::after { left: 50%; transform: translateX(-50%); }

/* ボタン（最小44px確保） */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 14px 28px;
  font-size: 17px; font-weight: 700; line-height: 1.4;
  border: 2px solid transparent; border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: background-color var(--t-fast) var(--e-out),
              border-color var(--t-fast) var(--e-out),
              color var(--t-fast) var(--e-out);
}
.btn--primary { background: var(--c-accent); color: #FFFFFF; }
.btn--primary:hover { background: var(--c-accent-dk); }
.btn--ghost {
  background: #FFFFFF; color: var(--c-accent-tx); border-color: var(--c-accent);
}
.btn--ghost:hover { background: var(--c-surface); border-color: var(--c-accent-dk); }
.btn--onDark {
  background: #FFFFFF; color: var(--c-accent-tx); border-color: #FFFFFF;
}
.btn--onDark:hover { background: var(--c-surface); }
.btn--wide { width: 100%; max-width: 420px; }
.btn__ico { width: 22px; height: 22px; flex: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }
.btn-row--center { justify-content: center; }

/* テキストリンク（各セクション末尾） */
.tlink {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; font-weight: 700; color: var(--c-accent-tx);
  text-decoration: underline; text-underline-offset: 4px;
}
.tlink:hover { color: var(--c-accent-dk); }
.tlink__ico { width: 18px; height: 18px; }

/* ---------- 4. ヘッダー ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  background: var(--c-dark); color: #FFFFFF;
  transition: background-color var(--t-fast) var(--e-out);
}
.header.is-scrolled { background: rgba(62, 62, 62, .93); backdrop-filter: blur(6px); }
.header__inner {
  /* ヘッダーだけは本文より広く取り、7項目のメニューを1行に収める */
  width: min(100% - 40px, 1320px);
  display: flex; align-items: center; gap: 20px;
  height: var(--header-h);
  transition: height var(--t-fast) var(--e-out);
}
.header.is-scrolled .header__inner { height: var(--header-h-min); }
.header__brand {
  display: flex; flex-direction: column; justify-content: center;
  color: #FFFFFF; text-decoration: none; flex: none; line-height: 1.3;
}
.header__brand b { font-size: 19px; font-weight: 700; white-space: nowrap; }
.header__brand span { font-size: 14px; color: #D8D3CD; } /* 濃色比 7.19:1 */
.header.is-scrolled .header__brand span { display: none; }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__list a {
  display: flex; align-items: center; min-height: 44px; padding: 6px 10px;
  color: #FFFFFF; font-size: 15px; font-weight: 500; text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: border-color var(--t-fast) var(--e-out), color var(--t-fast) var(--e-out);
}
.nav__list a:hover { border-bottom-color: var(--c-orange); }
.nav__list a[aria-current="page"] { border-bottom-color: var(--c-orange); font-weight: 700; }

.header__cta { display: flex; align-items: center; gap: 12px; flex: none; }
.header__tel {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  color: #FFFFFF; font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap;
}
.header__tel:hover { text-decoration: underline; text-underline-offset: 4px; }
.header__tel .btn__ico { filter: brightness(0) invert(1); }
.header .btn { min-height: 46px; padding: 8px 20px; font-size: 16px; }

.nav-toggle {
  display: none; margin-left: auto;
  width: 48px; height: 48px; padding: 0;
  background: transparent; border: 2px solid #FFFFFF; border-radius: var(--radius);
  color: #FFFFFF; cursor: pointer;
}
.nav-toggle__bar, .nav-toggle::before { display: block; }
.nav-toggle span {
  display: block; width: 22px; height: 2px; margin: 4px auto; background: #FFFFFF;
}
body { padding-top: var(--header-h); }

/* ---------- 5. ヒーロー ---------- */
.hero { position: relative; background: var(--c-dark); overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20,16,12,.86) 0%, rgba(20,16,12,.72) 46%, rgba(20,16,12,.34) 100%);
}
.hero__body { position: relative; padding: 108px 0 96px; color: #FFFFFF; }
.hero h1 {
  font-size: clamp(30px, 3.6vw, 44px); line-height: 1.42; max-width: 20em;
  margin-bottom: 20px; text-shadow: 0 1px 2px rgba(0,0,0,.45);
}
.hero__sub { font-size: 19px; max-width: 34em; color: #F3EFEA; margin-bottom: 32px; }
/* 写真の上に置く注記は、背景の明暗に左右されないよう下地を敷く
   （白背景の空にかかると #E6E0D8 では 2.7:1 まで落ちるため） */
.hero .note, .phero .note {
  display: inline-block; color: #FFFFFF;
  background: rgba(20, 16, 12, .72);
  padding: 4px 12px; border-radius: var(--radius);
}
.hero__scroll {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  margin: 56px auto 0; width: max-content; color: #F3EFEA; font-size: 14px;
}
.hero__scroll svg { width: 26px; height: 26px; }
/* スクロール誘導の矢印：上下にゆっくり揺れる（CSS） */
.bob { animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(9px); } }

/* ページ用の小さめヒーロー帯 */
.phero { position: relative; background: var(--c-dark); overflow: hidden; }
.phero__media { position: absolute; inset: 0; }
.phero__media img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.phero__scrim { position: absolute; inset: 0; background: rgba(20,16,12,.72); }
.phero__body { position: relative; padding: 64px 0 56px; color: #FFFFFF; }
.phero h1 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 10px; }
.phero p { color: #F3EFEA; margin: 0; max-width: 40em; }
.crumb { font-size: 14px; color: #E6E0D8; margin: 0 0 10px; }
.crumb a { color: #FFFFFF; }

/* ---------- 6. 主役層：1軒まるごとビフォーアフター ---------- */
.ba { background: var(--c-surface); border-block: 1px solid var(--c-line); }
.ba__inner { min-height: 100vh; padding: calc(var(--header-h-min) + 14px) 0 24px; display: flex; flex-direction: column; }
.ba__head { text-align: center; margin-bottom: 12px; }
.ba__head .h2 { margin-bottom: 6px; padding-bottom: 14px; }
.ba__hint { font-size: 15px; color: var(--c-sub); margin: 0; }

.ba__stagewrap { position: relative; flex: 1 1 auto; min-height: 0; }
.scene {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity var(--t-base) var(--e-out), visibility var(--t-base);
}
.scene.is-active { opacity: 1; visibility: visible; }
.scene__cap { margin: 12px 0 0; text-align: center; max-width: 34em; font-size: 17px; }
.scene__cap b { display: block; font-size: 15px; color: var(--c-sub); font-weight: 700; margin-bottom: 2px; }

/* 比較スライダー */
.compare {
  position: relative; aspect-ratio: 4 / 3;
  height: min(100%, 620px); width: auto; max-width: 100%;
  margin-inline: auto; border-radius: var(--radius); overflow: hidden;
  background: #DED7CE; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.cmp-under, .cmp-top { position: absolute; inset: 0; }
.compare img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border-radius: 0; pointer-events: none; -webkit-user-drag: none;
}
/* つまみの位置までAfterを表示し、その右にBeforeが現れる */
.cmp-top { clip-path: inset(0 calc(100% - var(--pos, 67%)) 0 0); }
.cmp-line {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 67%);
  width: 4px; margin-left: -2px; background: #FFFFFF; pointer-events: none;
}
.cmp-handle {
  position: absolute; top: 50%; left: var(--pos, 67%);
  width: 60px; height: 60px; margin: -30px 0 0 -30px; padding: 0;
  display: flex; align-items: center; justify-content: center; gap: 2px;
  background: #FFFFFF; border: 3px solid var(--c-accent); border-radius: 50%;
  color: var(--c-accent-tx); cursor: grab; touch-action: none;
}
.cmp-handle:active { cursor: grabbing; }
.cmp-handle svg { width: 15px; height: 15px; }
.cmp-tag {
  position: absolute; top: 14px; padding: 5px 12px; border-radius: var(--radius);
  background: rgba(26,22,18,.82); color: #FFFFFF; font-size: 14px; font-weight: 700;
}
.cmp-tag--after { left: 14px; }
.cmp-tag--before { right: 14px; }
/* 最初の場面だけ、つまみをわずかに揺らす */
.scene--first .cmp-handle .cmp-arrows { animation: nudge 2s ease-in-out infinite; }
@keyframes nudge {
  0%, 82%, 100% { transform: translateX(0); }
  88% { transform: translateX(-3px); }
  94% { transform: translateX(3px); }
}
.cmp-arrows { display: flex; align-items: center; gap: 3px; }

/* 場面インジケータ */
.ba__steps { display: flex; justify-content: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.ba__step {
  min-height: 44px; padding: 8px 16px; font-size: 15px; font-weight: 700;
  background: transparent; color: var(--c-sub);
  border: 2px solid var(--c-line); border-radius: 999px; cursor: pointer;
  transition: color var(--t-fast) var(--e-out), border-color var(--t-fast) var(--e-out),
              background-color var(--t-fast) var(--e-out);
}
.ba__step:hover { border-color: var(--c-accent); color: var(--c-text); }
.ba__step[aria-selected="true"] {
  background: var(--c-accent); border-color: var(--c-accent); color: #FFFFFF;
}
.ba__where { display: block; font-size: 14px; font-weight: 400; }
.ba__static-note { display: none; }

/* prefers-reduced-motion 時：ピン留めを解除し、前後2枚並びの静的表示にする */
.ba.is-static .ba__inner { min-height: 0; padding: var(--sec) 0; display: block; }
.ba.is-static .ba__stagewrap { position: static; }
.ba.is-static .ba__steps { display: none; }
.ba.is-static .ba__hint { display: none; }
.ba.is-static .ba__static-note { display: block; }
.ba.is-static .scene {
  position: static; opacity: 1; visibility: visible; transition: none;
  margin-top: 56px; align-items: stretch;
}
.ba.is-static .scene__cap { text-align: left; max-width: var(--prose); }
.ba.is-static .compare {
  position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  aspect-ratio: auto; height: auto; width: 100%; background: transparent; overflow: visible;
}
/* 仕切りとつまみは消え、Before・Afterが左右2枚並びになる */
.ba.is-static .cmp-line, .ba.is-static .cmp-handle { display: none; }
.ba.is-static .cmp-under, .ba.is-static .cmp-top {
  position: relative; inset: auto; clip-path: none; border-radius: var(--radius); overflow: hidden;
}
.ba.is-static .cmp-under { order: 1; }   /* 左＝施工前 */
.ba.is-static .cmp-top   { order: 2; }   /* 右＝施工後 */
.ba.is-static .compare img { position: static; width: 100%; height: auto; aspect-ratio: 4 / 3; }
.ba.is-static .cmp-tag { top: 10px; left: 10px; right: auto; }

/* ---------- 7. カード・グリッド ---------- */
.grid { display: grid; gap: 28px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  display: flex; flex-direction: column;
  background: #FFFFFF; border: 1px solid var(--c-line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: inherit;
  transition: border-color var(--t-fast) var(--e-out), transform var(--t-fast) var(--e-out);
}
a.card:hover { border-color: var(--c-accent); }
.card__media { position: relative; aspect-ratio: 4 / 3; background: var(--c-surface); }
.card__media img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.card__body { padding: 20px 22px 24px; flex: 1 1 auto; display: flex; flex-direction: column; }
.card__body .h3 { font-size: 20px; margin-bottom: 8px; }
.card__body p { font-size: 16px; line-height: 1.8; margin-bottom: 12px; }
.card__more { margin-top: auto; font-weight: 700; color: var(--c-accent-tx); }
.card .note { padding: 0 22px 14px; margin: -6px 0 0; }
.card--plain { background: var(--c-surface); }

/* 3本柱カードのアイコン */
.pillar__ico {
  width: 64px; height: 64px; margin-bottom: 14px;
  background: var(--c-surface); border-radius: 50%; padding: 10px;
}
.card--plain .pillar__ico { background: #FFFFFF; }

/* 悩みから探す */
.needs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.need {
  display: flex; align-items: center; gap: 14px;
  min-height: 88px; padding: 16px 20px;
  background: #FFFFFF; border: 1px solid var(--c-line); border-radius: var(--radius);
  color: var(--c-text); text-decoration: none; font-weight: 700; line-height: 1.6;
  transition: border-color var(--t-fast) var(--e-out), background-color var(--t-fast) var(--e-out);
}
.need:hover { border-color: var(--c-accent); background: var(--c-surface); }
.need img { width: 34px; height: 34px; flex: none; }
.need span { flex: 1 1 auto; font-size: 16px; }
.need svg { width: 16px; height: 16px; flex: none; color: var(--c-accent-tx); }

/* 理由 3点 */
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: r; }
.reason { padding: 28px 24px; background: #FFFFFF; border: 1px solid var(--c-line); border-radius: var(--radius); }
.reason::before {
  counter-increment: r; content: counter(r);
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-bottom: 14px;
  background: var(--c-orange); color: #1A1A1A; /* 装飾図形。数字は #1A1A1A で 8.6:1 */
  border-radius: 50%; font-weight: 700; font-size: 20px;
}
.reason h3 { font-size: 20px; }
.reason p { font-size: 16px; margin: 0; }

/* 相談の流れ 5ステップ */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; list-style: none; padding: 0; }
.step { padding: 22px 18px; background: #FFFFFF; border: 1px solid var(--c-line); border-radius: var(--radius); margin: 0; }
.step::before {
  counter-increment: s; content: "STEP " counter(s);
  display: block; font-size: 14px; font-weight: 700; color: var(--c-accent-tx); margin-bottom: 6px;
}
.step b { display: block; font-size: 18px; margin-bottom: 6px; }
.step p { font-size: 15px; line-height: 1.75; margin: 0; color: var(--c-sub); }

/* 取扱い内容の3ブロック */
.blocks { display: grid; gap: 56px; }
.block { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.block:nth-child(even) .block__media { order: 2; }
.block__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.block__body h3 { font-size: 24px; }
.block__when {
  margin-top: 16px; padding: 16px 20px;
  background: var(--c-surface); border-left: 4px solid var(--c-orange); border-radius: var(--radius);
}
.block__when b { display: block; font-size: 15px; color: var(--c-sub); margin-bottom: 2px; }
.block__when p { margin: 0; font-size: 16px; }

/* ---------- 8. 施工事例 ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.filter {
  min-height: 52px; padding: 12px 20px;
  font-size: 16px; font-weight: 700; line-height: 1.5;
  background: #FFFFFF; color: var(--c-text);
  border: 2px solid var(--c-line); border-radius: 999px; cursor: pointer;
  transition: border-color var(--t-fast) var(--e-out), background-color var(--t-fast) var(--e-out),
              color var(--t-fast) var(--e-out);
}
.filter:hover { border-color: var(--c-accent); }
.filter[aria-pressed="true"] { background: var(--c-accent); border-color: var(--c-accent); color: #FFFFFF; }
.filter__n { font-weight: 400; font-size: 14px; opacity: .9; }

.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.work { background: #FFFFFF; border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; }
.work.is-hidden { display: none; }
.work__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--c-line); }
.work__shot { position: relative; }
.work__shot img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 0; }
.work__shot span {
  position: absolute; left: 8px; top: 8px; padding: 3px 9px; border-radius: var(--radius);
  background: rgba(26,22,18,.82); color: #FFFFFF; font-size: 14px; font-weight: 700;
}
.work__single img { width: 100%; aspect-ratio: 8/3; object-fit: cover; border-radius: 0; }
.work__body { padding: 18px 22px 22px; }
.work__cat { display: inline-block; font-size: 14px; font-weight: 700; color: var(--c-accent-tx); margin-bottom: 6px; }
.work__body h3 { font-size: 19px; margin-bottom: 8px; }
.work__how { font-size: 16px; margin: 0; color: var(--c-sub); }
.work__body .note { margin-top: 12px; }
.works-empty { display: none; padding: 32px 0; }

/* ---------- 9. フォーム ---------- */
.form { max-width: var(--prose); }
.field { margin-bottom: 26px; }
.field > label, .field > legend {
  display: block; font-weight: 700; font-size: 17px; margin-bottom: 8px; padding: 0;
}
.req { font-size: 14px; color: #FFFFFF; background: var(--c-accent); border-radius: 3px; padding: 2px 8px; margin-left: 8px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea, .field select {
  width: 100%; min-height: 56px; padding: 12px 14px;
  font: inherit; font-size: 17px; color: var(--c-text);
  background: #FFFFFF; border: 2px solid var(--c-line); border-radius: var(--radius);
}
.field textarea { min-height: 170px; line-height: 1.8; resize: vertical; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: #C9BCA9; }
.field .help { font-size: 14px; color: var(--c-sub); margin: 6px 0 0; }
.radios { display: flex; flex-wrap: wrap; gap: 12px; border: 0; margin: 0; padding: 0; }
.radio {
  display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 20px;
  background: #FFFFFF; border: 2px solid var(--c-line); border-radius: var(--radius);
  font-weight: 700; cursor: pointer;
}
.radio:hover { border-color: var(--c-accent); }
.radio input { width: 22px; height: 22px; accent-color: var(--c-accent); }
.radio:has(input:checked) { border-color: var(--c-accent); background: var(--c-surface); }

/* ---------- 10. 連絡先ブロック / CTA帯 ---------- */
.cta { background: var(--c-surface); border-top: 4px solid var(--c-orange); }
.cta__inner { padding: var(--sec) 0; text-align: center; }
.cta .h2 { margin-bottom: 12px; }
.cta__lead { max-width: 36em; margin: 0 auto 28px; }
.tel-block { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; margin-top: 24px; }
.tel-item { text-align: left; }
.tel-item b { display: block; font-size: 14px; color: var(--c-sub); font-weight: 700; }
.tel-item a {
  font-size: 28px; font-weight: 700; color: var(--c-accent-tx);
  text-decoration: none; letter-spacing: .02em; line-height: 1.4;
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px;
}
.tel-item a:hover { text-decoration: underline; text-underline-offset: 5px; }
.tel-item img { width: 24px; height: 24px; }

.deftable { width: 100%; border-collapse: collapse; max-width: var(--prose); }
.deftable th, .deftable td {
  text-align: left; vertical-align: top; padding: 18px 16px;
  border-bottom: 1px solid var(--c-line); font-size: 17px;
}
.deftable th { width: 8.5em; font-weight: 700; background: var(--c-surface); }
.deftable a { font-weight: 700; }
.map { width: 100%; aspect-ratio: 16/9; border: 1px solid var(--c-line); border-radius: var(--radius); }

/* ---------- 11. フッター ---------- */
.footer { background: var(--c-dark); color: #FFFFFF; padding: 64px 0 32px; }
.footer a { color: #FFFFFF; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.footer__brand b { display: block; font-size: 20px; margin-bottom: 10px; }
.footer address { font-style: normal; font-size: 16px; line-height: 1.9; color: #E6E0D8; }
.footer address a { font-weight: 700; }
.footer h2 { font-size: 16px; margin-bottom: 12px; color: #D8D3CD; }
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list a {
  display: inline-flex; align-items: center; min-height: 44px; font-size: 16px;
  text-decoration: none; border-bottom: 1px solid transparent;
}
.footer__list a:hover { border-bottom-color: var(--c-orange); }
.footer__disc {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid #5A5A5A;
  font-size: 14px; line-height: 1.85; color: #D8D3CD; /* 濃色比 7.19:1 */
}
.footer__copy { margin: 16px 0 0; font-size: 14px; color: #D8D3CD; }

/* ---------- 12. 基礎層アニメーション ---------- */
/* JSが動かない環境では常に表示。.js-anim が付いたときだけ隠して出現させる */
.js-anim .reveal { opacity: 0; }

/* ---------- 13. レスポンシブ ---------- */
@media (max-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .needs { grid-template-columns: repeat(2, 1fr); }
  .works { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1280px) {
  /* 幅が足りなくなったら、ヘッダーの電話番号を先に落とす（CTAボタンは残す） */
  .header__cta .header__tel { display: none; }
}
@media (max-width: 1120px) {
  .nav-toggle { display: block; order: 2; }
  .header__cta { order: 3; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--c-dark); padding: 8px 20px 20px; display: none;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { min-height: 52px; font-size: 17px; border-bottom: 1px solid #5A5A5A; }
  .nav__list a:hover, .nav__list a[aria-current="page"] { border-bottom-color: var(--c-orange); }
}
@media (max-width: 900px) {
  :root { --sec: 64px; }
  .header__inner { gap: 12px; }
  .grid--3, .grid--2, .reasons { grid-template-columns: 1fr; }
  .block, .ba.is-static .compare { grid-template-columns: 1fr; }
  .block:nth-child(even) .block__media { order: 0; }
  .hero__body { padding: 72px 0 64px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .h2 { font-size: 26px; }
  .grid--4, .needs, .works, .steps, .footer__grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .tel-item a { font-size: 24px; }
  .ba__inner { padding-top: calc(var(--header-h-min) + 12px); }
  .work__pair { grid-template-columns: 1fr 1fr; }
}

/* ---------- 14. モーション設定の尊重 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .js-anim .reveal { opacity: 1 !important; transform: none !important; }
}
@media print {
  .header, .footer, .nav-toggle { position: static; }
  body { padding-top: 0; }
}
