/* ============================================================
  Sgocia トップページ スタイルシート
  最終完成版 2026-04

  構成:
    1. CSS変数（デザイントークン）
    2. リセット・ベース
    3. プレビューツールバー
    4. 共通ユーティリティ
    5. ヘッダー
    6. CTAボタン
    7. ヒーロー
    8. 数字バナー
    9. 悩み別導線バー
   10. サービス一覧
   11. 選ばれる理由
   12. 施工事例
   13. お客様の声
   14. FAQ
   15. 最終CTA
   16. 対応エリア
   17. フッター
   18. SP固定CTAバー
   19. アニメーション
   20. レスポンシブ
============================================================ */

/* ============================================================
  1. CSS変数（デザイントークン）
  ── 色・フォント・角丸・影・アニメ速度を一元管理
============================================================ */
:root {
  /* カラー */
  --navy:       #0f2044;
  --navy-mid:   #1a3260;
  --gold:       #c8a85a;
  --gold-light: #e8cf8a;
  --white:      #ffffff;
  --off:        #f5f7fb;
  --off2:       #eef1f8;
  --text:       #1e2d45;
  --text-muted: rgba(30,45,69,.62);
  --line-clr:   rgba(15,32,68,.10);
  --line-green: #06c755;

  /* フォント
     見出し: Shippori Mincho（上品な和文明朝）
     本文  : Zen Maru Gothic（やわらかい和文ゴシック）
     数字装飾: Cormorant Garamond（欧文装飾、Priority等のみ）  */
  --font-heading: 'Shippori Mincho', 'Noto Serif JP', serif;
  --font-body:    'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', sans-serif;
  --font-number:  'Cormorant Garamond', serif;

  /* 角丸 */
  --r-sm:   12px;
  --r-md:   20px;
  --r-lg:   28px;
  --r-xl:   36px;
  --r-pill: 999px;

  /* 影 */
  --shadow-sm:   0 4px 16px rgba(15,32,68,.08);
  --shadow-md:   0 12px 36px rgba(15,32,68,.11);
  --shadow-lg:   0 22px 56px rgba(15,32,68,.14);
  --shadow-gold: 0 8px 24px rgba(200,168,90,.28);

  /* アニメーション */
  --ease:      cubic-bezier(.22,.68,0,1.2);
  --ease-soft: cubic-bezier(.4,0,.2,1);
  --dur-fast:  .2s;
  --dur-mid:   .4s;
  --dur-slow:  .7s;

  /* レイアウト */
  --header-h: 80px;
  --max-w:    1180px;
}

/* ============================================================
  2. リセット・ベース
============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  margin: 0;
  padding-top: 56px; /* fixed ヘッダー分のオフセット */
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  /* 日本語の改行品質：禁則処理を効かせ、語の途中での不自然な改行を防ぐ */
  word-break: normal;
  overflow-wrap: anywhere;
  line-break: strict;
}
/* 見出し・キャッチは禁則処理を厳格に（句読点や小書き仮名が行頭に来ない等） */
h1,h2,h3,h4,h5,h6,.catch,.lead { line-break: strict; word-break: normal; }
/* 分割させたくない塊（数字+単位/電話/固有名詞）に付与 */
.nowrap { white-space: nowrap; }
/* PC/スマホで改行位置を出し分けるための <br> */
.sp-br { display: none; }
@media (max-width: 768px) { .sp-br { display: inline; } .pc-br { display: none; } }
/* 本文中の強調：ネイビー＋ゴールドのマーカーで上品に目立たせる */
p strong, li strong, .works-item__desc strong, .prose strong {
  color: var(--navy); font-weight: 700;
  background: linear-gradient(transparent 62%, rgba(200,168,90,.38) 0);
}
a, button { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; display: block; height: auto; }
h1,h2,h3,h4,h5,h6 { margin: 0; font-family: var(--font-heading); }
p  { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* ============================================================
  3. プレビューツールバー（公開時は削除可）
============================================================ */
.toolbar {
  position: sticky; top: 0; z-index: 9999;
  display: flex; justify-content: center; align-items: center;
  gap: 10px; flex-wrap: wrap;
  padding: 10px 16px;
  background: rgba(15,32,68,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: #fff;
}
.toolbar__label {
  font-size: 11px; letter-spacing: .1em; opacity: .7;
  font-family: var(--font-body);
}
.toolbar__btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.toolbar__btns button {
  min-height: 36px; padding: 0 14px;
  border: 1px solid rgba(255,255,255,.2);
  background: transparent; color: #fff;
  border-radius: var(--r-pill);
  font: 600 12px var(--font-body);
  cursor: pointer;
  transition: var(--dur-fast) var(--ease-soft);
}
.toolbar__btns button.active {
  background: var(--gold); color: var(--navy); border-color: var(--gold);
}
@media (hover:hover) {
  .toolbar__btns button:hover { transform: translateY(-1px); }
}

.preview-wrap {
  padding: 24px 10px 80px;
  background: #e8ecf4;
}
.preview-stage {
  width: min(100%, 1440px); margin: 0 auto;
  background: var(--white);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 24px 72px rgba(15,32,68,.18);
  transition: width .3s var(--ease-soft);
}

/* ============================================================
  4. 共通ユーティリティ
============================================================ */
.container   { width: min(100% - 40px, var(--max-w)); margin: 0 auto; }
.section     { padding: 88px 0; }
.text-center { text-align: center; }

.section-eyebrow {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 7px 18px; border-radius: var(--r-pill);
  background: rgba(200,168,90,.12); border: 1px solid rgba(200,168,90,.3);
  color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .12em;
  font-family: var(--font-body);
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.5;
  color: var(--navy);
  margin-top: 14px;
}
.section-copy {
  font-family: var(--font-body);
  font-size: 15px; line-height: 2;
  color: var(--text-muted);
  margin: 12px auto 0; max-width: 680px;
}

/* ============================================================
  5. ヘッダー
============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-clr);
  box-shadow: 0 2px 12px rgba(15,32,68,.06);
}
.site-header__inner {
  width: 100%;
  padding: 0 16px;
  box-sizing: border-box;
  min-height: 56px;
  display: flex;
  flex-direction: row;          /* 常に横並び */
  align-items: center;
  justify-content: space-between;
  gap: 0;
}

/* ロゴ */
.brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-decoration: none;
  color: var(--navy);
  flex-shrink: 0;
}
.brand__logo {
  height: 36px; width: auto;
  display: block; object-fit: contain; object-position: left center;
}

.header-right { display: none; } /* 旧ボタン群は非表示 */
.phone-wrap   { display: none; }

/* ============================================================
  5b. ハンバーガーボタン
============================================================ */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
  border-radius: var(--r-sm);
  transition: background var(--dur-fast) var(--ease-soft);
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
@media (hover: hover) {
  .nav-hamburger:hover { background: rgba(15,32,68,.07); }
}
/* 開いているときの ✕ 変形 */
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
  5c. ドロワーオーバーレイ
============================================================ */
.nav-overlay {
  position: fixed; inset: 0;
  background: rgba(15,32,68,.45);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility 0s linear .3s;
  pointer-events: none;
}
.nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity .3s ease, visibility 0s linear 0s;
  pointer-events: auto;
}

/* ============================================================
  5d. ドロワー本体（右からスライド）
============================================================ */
.nav-drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(300px, 82vw);
  height: 100%;
  background: var(--white);
  z-index: 300;
  /* 初期状態：完全に非表示（右に100%ずらす） */
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .35s cubic-bezier(.4,0,.2,1),
              visibility 0s linear .35s;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(15,32,68,.18);
}
.nav-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform .35s cubic-bezier(.4,0,.2,1),
              visibility 0s linear 0s;
}

/* 閉じるボタン */
.nav-drawer__close {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 14px 18px;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--navy);
  cursor: pointer;
  min-height: 52px;
  border-bottom: 1px solid var(--line-clr);
  width: 100%;
}

/* メニューリスト */
.nav-drawer__list {
  list-style: none;
  margin: 0; padding: 0;
  flex: 1;
}
.nav-drawer__list li {
  border-bottom: 1px solid var(--line-clr);
}
.nav-drawer__list a {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  text-decoration: none;
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
  min-height: 52px;
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease;
}
.nav-drawer__list a::before {
  content: '';
  display: inline-block;
  width: 3px; height: 14px;
  background: var(--gold);
  border-radius: 2px;
  margin-right: 12px;
  flex-shrink: 0;
}
@media (hover: hover) {
  .nav-drawer__list a:hover {
    background: rgba(200,168,90,.08);
    color: var(--gold);
  }
}

/* ドロワー内 CTAボタン */
.nav-drawer__cta {
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--line-clr);
  background: rgba(15,32,68,.02);
}
.nav-drawer__cta .btn {
  width: 100%;
  min-height: 48px;
  font-size: 14px;
  justify-content: center;
  flex-direction: row;
}

/* ============================================================
  6. CTAボタン（役割別3種 + サイズ修飾子）
============================================================ */
.btn {
  display: inline-flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
  min-height: 52px; padding: 10px 24px;
  border-radius: var(--r-md);
  text-decoration: none; border: 2px solid transparent;
  transition: all var(--dur-fast) var(--ease-soft);
  font-family: var(--font-body); cursor: pointer;
}
.btn__label { font-size: 11px; font-weight: 500; opacity: .85; line-height: 1; }
.btn__main  { font-size: 15px; font-weight: 700; line-height: 1.2; }

/* 電話 */
.btn--tel  { background: var(--navy); color: var(--white); box-shadow: 0 6px 18px rgba(15,32,68,.22); }
/* LINE */
.btn--line { background: var(--line-green); color: var(--white); box-shadow: 0 6px 18px rgba(6,199,85,.25); }
/* ゴールド（フォーム・メイン） */
.btn--gold { background: var(--gold); color: var(--navy); box-shadow: var(--shadow-gold); }
/* ゴースト */
.btn--ghost { background: transparent; border-color: var(--navy); color: var(--navy); }
/* 小ボタン（ヘッダー用）─ ラベル行を非表示にして1行コンパクト化 */
.btn--sm {
  min-height: 34px; padding: 0 14px;
  border-radius: var(--r-sm);
  flex-direction: row; gap: 4px;
}
.btn--sm .btn__label { display: none; }  /* 「写真で相談OK」などの小文字行を非表示 */
.btn--sm .btn__main  { font-size: 12px; font-weight: 700; }

@media (hover:hover) {
  .btn--tel:hover   { background: var(--navy-mid); transform: translateY(-2px); }
  .btn--line:hover  { filter: brightness(1.08);    transform: translateY(-2px); }
  .btn--gold:hover  { filter: brightness(1.06);    transform: translateY(-2px); }
  .btn--ghost:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }
}

/* ============================================================
  7. ヒーロー
============================================================ */
.hero {
  position: relative; isolation: isolate;
  min-height: calc(100vh - var(--header-h) - 46px);
  display: flex; align-items: center;
  padding: 80px 0 60px;
  background:
    linear-gradient(160deg, rgba(10,20,50,.55) 0%, rgba(10,20,50,.72) 100%),
    url('https://images.unsplash.com/photo-1570129477492-45c003edd2be?w=1920&q=80') center / cover no-repeat;
}
.hero::after {
  content: '';
  position: absolute; inset: auto 0 0 0; height: 120px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.92));
  z-index: -1;
}
.hero__inner { position: relative; z-index: 1; text-align: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  justify-content: center;
  padding: 10px 20px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.14); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.95); font-size: 12px; font-weight: 700;
  letter-spacing: .1em; font-family: var(--font-body);
}
.hero-badge span { opacity: .5; }

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5.5vw, 64px);
  font-weight: 700; line-height: 1.3;
  color: var(--white);
  margin: 22px auto 0; max-width: 900px;
  text-shadow: 0 2px 16px rgba(0,0,0,.3);
}
.hero__sub {
  margin: 18px auto 0; max-width: 760px;
  color: rgba(255,255,255,.88);
  font-size: clamp(14px, 1.8vw, 17px);
  line-height: 2.1; font-family: var(--font-body);
}
.hero__reassure {
  display: inline-block; margin-top: 20px;
  padding: 12px 22px; border-radius: var(--r-md);
  background: rgba(200,168,90,.2); border: 1px solid rgba(200,168,90,.4);
  color: var(--gold-light); font-size: 14px; font-weight: 500;
  font-family: var(--font-body); line-height: 1.7;
}
.hero__cta-wrap {
  margin-top: 32px; display: flex; justify-content: center;
  gap: 14px; flex-wrap: wrap;
}
.hero__notes {
  margin-top: 22px; display: flex; justify-content: center;
  gap: 10px; flex-wrap: wrap;
}
.hero__note {
  padding: 8px 16px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.92); font-size: 12px; font-weight: 700;
  font-family: var(--font-body);
}

/* ============================================================
  8. 数字バナー
============================================================ */
.numbers-section {
  position: relative; z-index: 2;
  margin-top: -40px; padding: 0 0 72px;
}
.numbers-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.number-card {
  background: var(--white);
  border: 1px solid var(--line-clr);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: 32px 20px 28px;
  text-align: center;
  /* 初期状態：右側に隠れている */
  opacity: 0;
  transform: translateX(60px);
  transition:
    opacity  .6s var(--ease-soft),
    transform .6s var(--ease-soft);
}
/* JS が .card-visible を付与したら表示 */
.number-card.card-visible {
  opacity: 1;
  transform: translateX(0);
}
/* 数字部分: Shippori Mincho でAI感を排除 */
.number-card__num {
  display: block;
  font-family: var(--font-heading);
  font-size: 62px; font-weight: 700; line-height: 1;
  color: var(--gold);
  letter-spacing: -.02em;
  position: relative;
}
/* 0円: 「0」大きく・「円」は上付き小文字 */
.number-card__num .num-main { font-size: 1em; font-weight: 700; }
.number-card__num .num-unit {
  font-size: .42em; font-weight: 500;
  vertical-align: super; letter-spacing: 0; margin-left: .04em;
}
/* 数字下のゴールドライン */
.number-card__num::after {
  content: '';
  display: block; width: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 2px;
  margin: 10px auto 0;
  transition: width .8s .3s var(--ease-soft);
}
.number-card.counted .number-card__num::after { width: 56%; }
.number-card__label {
  display: block; margin-top: 12px;
  font-size: 14px; font-weight: 700; color: var(--navy);
  font-family: var(--font-body);
}
.number-card__desc {
  display: block; margin-top: 6px;
  font-size: 12px; color: var(--text-muted);
  line-height: 1.85; font-family: var(--font-body);
}

/* ============================================================
  9. 悩み別導線バー
============================================================ */
.trouble-bar { background: var(--off); padding: 44px 0; }
.trouble-bar__title {
  font-size: 14px; font-weight: 700; letter-spacing: .1em;
  color: var(--navy); font-family: var(--font-body); text-align: center;
}
.trouble-tags {
  display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
  margin-top: 18px;
}
.trouble-tag {
  min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; border-radius: var(--r-pill);
  background: var(--white); color: var(--navy);
  text-decoration: none; font-size: 13px; font-weight: 700;
  border: 1.5px solid var(--line-clr);
  font-family: var(--font-body);
  transition: all var(--dur-fast) var(--ease-soft);
  box-shadow: var(--shadow-sm);
}
@media (hover:hover) {
  .trouble-tag:hover {
    background: var(--navy); color: var(--white);
    border-color: var(--navy); transform: translateY(-2px);
  }
}

/* ============================================================
  10. サービス一覧
============================================================ */
.services-section { background: var(--white); }
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 48px;
}
.service-card {
  text-decoration: none; color: inherit;
  background: var(--white);
  border: 1.5px solid var(--line-clr);
  border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--shadow-md);
  opacity: 1;
  transition: box-shadow var(--dur-fast) var(--ease-soft),
              transform var(--dur-fast) var(--ease-soft);
}
.service-card__img-wrap {
  aspect-ratio: 3 / 2; overflow: hidden; background: var(--off2);
}
.service-card__img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease-soft);
}
.service-card__body { padding: 24px 22px 22px; text-align: center; }
.service-card__num  {
  font-family: var(--font-number); font-size: 14px;
  font-style: italic; color: var(--gold); letter-spacing: .1em;
}
.service-card h3 {
  margin-top: 8px; font-size: 22px; line-height: 1.5; color: var(--navy);
  font-family: var(--font-heading);
}
.service-card p {
  margin: 8px auto 0; font-size: 13px; line-height: 1.9;
  color: var(--text-muted); max-width: 28ch;
  font-family: var(--font-body);
}
.service-card__link {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 16px; min-height: 40px; padding: 0 18px;
  border-radius: var(--r-pill);
  background: var(--off2); font-size: 13px; font-weight: 700;
  color: var(--navy); font-family: var(--font-body);
  transition: background var(--dur-fast) var(--ease-soft);
}
@media (hover:hover) {
  .service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
  .service-card:hover .service-card__img-wrap img { transform: scale(1.04); }
  .service-card__link:hover { background: var(--off); }
}

/* ============================================================
  11. 選ばれる理由
============================================================ */
.reasons-section { background: var(--navy); overflow: hidden; }
.reasons-section .section-eyebrow {
  background: rgba(200,168,90,.15); border-color: rgba(200,168,90,.3);
}
.reasons-section .section-title { color: var(--white); }
.reasons-section .section-copy  { color: rgba(255,255,255,.75); }

.reasons-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 32px; align-items: start; margin-top: 48px;
}
.reasons-img {
  border-radius: var(--r-xl); overflow: hidden;
  box-shadow: 0 28px 64px rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.08);
}
.reasons-img img { width: 100%; height: 100%; object-fit: cover; }

.reasons-list { display: grid; gap: 14px; }
.reason-card {
  padding: 22px 20px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-lg);
  display: flex; gap: 16px; align-items: flex-start;
  opacity: 1;
}
.reason-card__num {
  flex: 0 0 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(200,168,90,.15); border: 1px solid rgba(200,168,90,.25);
  font-family: var(--font-heading); font-size: 24px; font-weight: 600;
  color: var(--gold);
}
.reason-card__body {}
.reason-card h3 {
  font-family: var(--font-heading); font-size: 19px; line-height: 1.5;
  color: var(--white);
}
.reason-card p {
  margin-top: 7px; font-size: 13px; line-height: 1.95;
  color: rgba(255,255,255,.78); font-family: var(--font-body);
}

/* ============================================================
  12. 施工事例
============================================================ */
.works-section { background: var(--off); }
.works-grid    { display: grid; gap: 28px; margin-top: 48px; }

.work-card {
  background: var(--white); border: 1.5px solid var(--line-clr);
  border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--shadow-md); padding: 32px;
  opacity: 1;
}

/* ヘッダー行：タグ・見出し・BAトグルを縦積み中央揃え */
.work-card__head {
  display: flex; flex-direction: column;
  align-items: center; text-align: center; gap: 14px;
}
.work-card__meta { width: 100%; text-align: center; }
.work-card__tag {
  display: inline-flex; min-height: 32px; align-items: center; justify-content: center;
  padding: 0 14px; border-radius: var(--r-pill);
  background: var(--off2); color: var(--navy);
  font-size: 12px; font-weight: 700; letter-spacing: .06em;
  font-family: var(--font-body);
}
.work-card h3 {
  margin-top: 10px; font-size: 24px; line-height: 1.5; color: var(--navy);
  font-family: var(--font-heading);
}
.work-card__lead {
  margin-top: 8px; font-size: 14px; line-height: 1.9;
  color: var(--text-muted); font-family: var(--font-body);
}

/* BA トグル */
.ba-toggle { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.ba-btn {
  min-height: 40px; padding: 0 22px; border-radius: var(--r-pill);
  border: 1.5px solid var(--line-clr);
  background: var(--white); color: var(--navy);
  font: 700 13px var(--font-body); cursor: pointer;
  transition: all var(--dur-fast) var(--ease-soft);
}
.ba-btn.active { background: var(--navy); color: var(--white); border-color: var(--navy); }
@media (hover:hover) { .ba-btn:not(.active):hover { background: var(--off2); } }

/* コンテンツ：画像＋仕様を均等2カラム */
.work-card__body {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; align-items: start; margin-top: 24px;
}
.ba-figure {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: var(--off2);
  box-shadow: inset 0 0 0 1px rgba(15,32,68,.06);
}
.ba-figure::before {
  content: attr(data-state);
  position: absolute; top: 14px; left: 14px; z-index: 2;
  padding: 6px 14px; border-radius: var(--r-pill);
  background: rgba(15,32,68,.82); color: var(--white);
  font: 700 11px var(--font-body); letter-spacing: .08em;
}
.ba-figure img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.work-side { display: grid; gap: 16px; }
.spec-box {
  background: var(--off2); border-radius: var(--r-lg); padding: 20px;
}
.spec-box h4 {
  font-family: var(--font-heading); font-size: 16px; color: var(--navy);
  margin-bottom: 12px; text-align: center;
}
.spec-box dl { display: grid; grid-template-columns: 6em 1fr; gap: 6px 12px; }
.spec-box dt {
  font-size: 12px; font-weight: 700; color: var(--text-muted);
  font-family: var(--font-body); align-self: start; padding-top: 2px;
}
.spec-box dd {
  font-size: 13px; color: var(--text); line-height: 1.7;
  font-family: var(--font-body); margin: 0;
}

.voice-mini {
  background: rgba(200,168,90,.08); border: 1px solid rgba(200,168,90,.2);
  border-radius: var(--r-lg); padding: 18px 20px;
}
.voice-mini h4 {
  font-family: var(--font-heading); font-size: 15px; color: var(--navy);
  margin-bottom: 8px;
}
.voice-mini p {
  font-size: 13px; line-height: 1.9; color: var(--text-muted);
  font-family: var(--font-body);
}

/* ============================================================
  13. お客様の声
============================================================ */
.voices-section { background: var(--white); }
.voices-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px; margin-top: 48px;
}
.voice-card {
  background: linear-gradient(160deg, var(--white), var(--off));
  border: 1.5px solid var(--line-clr);
  border-radius: var(--r-xl); padding: 28px 24px;
  box-shadow: var(--shadow-sm); text-align: center;
  opacity: 1;
}
.voice-card__city {
  display: inline-flex; min-height: 34px; align-items: center; justify-content: center;
  padding: 0 16px; border-radius: var(--r-pill);
  background: var(--off2); color: var(--navy);
  font-size: 12px; font-weight: 700; font-family: var(--font-body);
}
.voice-card__service {
  display: inline-flex; min-height: 28px; align-items: center; justify-content: center;
  padding: 0 12px; margin-left: 6px; border-radius: var(--r-pill);
  background: rgba(200,168,90,.12); color: var(--gold);
  font-size: 11px; font-weight: 700; font-family: var(--font-body);
  border: 1px solid rgba(200,168,90,.25);
}
.voice-card h3 {
  margin-top: 14px; font-size: 21px; line-height: 1.5; color: var(--navy);
  font-family: var(--font-heading);
}
.voice-card p {
  margin-top: 10px; font-size: 13px; line-height: 2;
  color: var(--text-muted); font-family: var(--font-body);
}
.voice-card__name {
  margin-top: 14px; font-size: 12px; font-weight: 700;
  color: var(--text-muted); font-family: var(--font-body);
}

/* ============================================================
  14. FAQ
============================================================ */
.faq-section { background: var(--off); }
.faq-list {
  display: grid; gap: 14px; margin-top: 48px;
  max-width: 860px; margin-left: auto; margin-right: auto;
}
.faq-item {
  background: var(--white); border: 1.5px solid var(--line-clr);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm);
}
.faq-q {
  width: 100%; min-height: 64px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 24px; background: transparent; border: 0;
  text-align: left; cursor: pointer;
  font: 700 15px var(--font-body); color: var(--navy);
  transition: background var(--dur-fast) var(--ease-soft);
}
.faq-q:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.faq-item.open .faq-q { background: rgba(200,168,90,.06); }
.faq-q__text { flex: 1; line-height: 1.6; }
.faq-q__icon {
  flex: 0 0 32px; height: 32px; border-radius: 50%;
  background: var(--off2); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-number); font-size: 22px; font-weight: 400;
  color: var(--gold);
  transition: transform var(--dur-fast) var(--ease-soft);
}
.faq-item.open .faq-q__icon { transform: rotate(45deg); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .38s var(--ease-soft);
  font-family: var(--font-body); font-size: 14px; line-height: 2;
  color: var(--text-muted);
}
.faq-a__inner {
  overflow: hidden;
  padding: 0 24px;
  transition: padding .38s var(--ease-soft);
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-item.open .faq-a__inner { padding: 0 24px 20px; }

/* ============================================================
  15. 最終CTA
============================================================ */
.cta-final {
  position: relative; padding: 88px 0;
  background:
    linear-gradient(160deg, rgba(10,20,50,.7) 0%, rgba(10,20,50,.85) 100%),
    url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=1920&q=80') center / cover no-repeat;
  color: var(--white); text-align: center;
}
.cta-box {
  max-width: 820px; margin: 0 auto; padding: 52px 40px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-xl); backdrop-filter: blur(12px);
}
.cta-final .section-eyebrow {
  background: rgba(200,168,90,.18); border-color: rgba(200,168,90,.35);
}
.cta-final .section-title { color: var(--white); }
.cta-final .section-copy  { color: rgba(255,255,255,.78); }
.cta-reassure {
  display: inline-block; margin-top: 18px;
  padding: 10px 20px; border-radius: var(--r-md);
  background: rgba(200,168,90,.15); border: 1px solid rgba(200,168,90,.3);
  color: var(--gold-light); font-size: 14px; font-weight: 500;
  font-family: var(--font-body); line-height: 1.7;
}
.cta-btns {
  display: flex; justify-content: center; gap: 14px; flex-wrap: wrap;
  margin-top: 28px;
}
.cta-micro {
  margin-top: 16px; font-size: 12px; color: rgba(255,255,255,.65);
  font-family: var(--font-body); line-height: 1.9;
}

/* ============================================================
  16. Instagram施工事例ギャラリー
============================================================ */
.insta-section { background: var(--off); padding: 80px 0; }
.insta-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  max-width: 960px;
  margin: 0 auto;
}
.insta-item {
  display: block; position: relative; overflow: hidden;
  aspect-ratio: 1/1; border-radius: 8px;
}
.insta-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s;
  display: block;
}
.insta-overlay {
  position: absolute; inset: 0;
  background: rgba(15,32,68,.55);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s;
}
.insta-overlay span {
  color: var(--white); font-size: .78rem; font-weight: 600;
  letter-spacing: .06em; border: 1px solid rgba(255,255,255,.7);
  padding: 6px 12px; border-radius: 20px;
}
@media (hover: hover) {
  .insta-item:hover img { transform: scale(1.06); }
  .insta-item:hover .insta-overlay { opacity: 1; }
}
.insta-follow-btn {
  display: inline-block;
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: var(--white); font-weight: 700; font-size: .9rem;
  padding: 12px 32px; border-radius: 28px;
  text-decoration: none; transition: opacity .2s; min-height: 44px;
  line-height: 1.5;
}
.insta-follow-btn:hover { opacity: .85; }

/* ============================================================
  16. 対応エリア（地域SEOテキスト）
============================================================ */
.area-section { background: var(--white); padding: 72px 0; }
.area-box {
  padding: 36px 32px;
  background: var(--off); border: 1px solid var(--line-clr);
  border-radius: var(--r-xl); box-shadow: var(--shadow-sm);
  text-align: center;
}
.area-box h2 {
  font-family: var(--font-heading); font-size: 28px; color: var(--navy);
}
.area-box p {
  margin-top: 14px; max-width: 820px; margin-left: auto; margin-right: auto;
  font-size: 14px; line-height: 2.1; color: var(--text-muted);
  font-family: var(--font-body);
}

/* ============================================================
  17. フッター
============================================================ */
.footer {
  background: var(--navy); color: var(--white);
  padding: 60px 0 calc(72px + env(safe-area-inset-bottom));
}
.footer-grid {
  display: grid; grid-template-columns: 1.3fr .9fr .9fr;
  gap: 28px; align-items: start;
  text-align: center;
}
/* フッターロゴ：背景透過でそのまま表示 */
.footer-logo {
  display: block; margin: 0 auto 18px;
  width: 240px; height: auto;
}
.footer-brand p {
  margin-top: 12px; font-size: 14px; line-height: 2;
  color: rgba(255,255,255,.75); font-family: var(--font-body);
}
.footer-col {
  font-family: var(--font-heading); font-size: 20px; color: var(--white);
  padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 14px; text-align: center;
}
.footer-links { display: grid; gap: 8px; }
.footer-links a {
  font-size: 14px; color: rgba(255,255,255,.78); text-decoration: none;
  font-family: var(--font-body); line-height: 1.8;
  transition: color var(--dur-fast);
}
@media (hover:hover) { .footer-links a:hover { color: var(--gold); } }

.footer-info { display: grid; gap: 8px; }
.footer-info li {
  font-size: 13px; color: rgba(255,255,255,.72);
  line-height: 1.9; font-family: var(--font-body);
}
.footer-info a { color: rgba(255,255,255,.78); text-decoration: none; }

.footer-bottom {
  margin-top: 44px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom small {
  font-size: 12px; color: rgba(255,255,255,.5); font-family: var(--font-body);
}
.footer-bottom-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-bottom-links a {
  font-size: 12px; color: rgba(255,255,255,.5);
  text-decoration: none; font-family: var(--font-body);
}

/* ============================================================
  18. SP固定CTAバー（スマホのみ表示）
============================================================ */
.sp-cta {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 998;
  padding: 0 0 env(safe-area-inset-bottom);
}
.sp-cta__inner {
  display: grid; grid-template-columns: 1fr 1fr;
  box-shadow: 0 -6px 24px rgba(15,32,68,.2);
}
.sp-cta a {
  min-height: 56px; display: flex; align-items: center; justify-content: center;
  text-decoration: none; font: 700 15px var(--font-body); color: var(--white); gap: 6px;
}
.sp-cta__tel  { background: var(--navy); }
.sp-cta__line { background: var(--line-green); }

/* ============================================================
  19. アニメーション
  ── CSS @keyframes で実装（カード・セクションは opacity:1 で常時表示）
============================================================ */
.fade-up {
  opacity: 1; transform: translateY(0);
  animation: fadeUpIn .6s var(--ease-soft) both;
}
@keyframes fadeUpIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── 画像フェードイン + ズームイン ──────────────────────────
   初期状態：透明 + 少し縮小
   JS が .img-visible を付与 → フェードイン + 等倍に戻る
──────────────────────────────────────────────────────────── */
img[loading="lazy"] {
  opacity: 0;
  transform: scale(1.05);
  transition:
    opacity   .75s cubic-bezier(.4, 0, .2, 1),
    transform .95s cubic-bezier(.4, 0, .2, 1);
  will-change: opacity, transform;
}
img[loading="lazy"].img-visible {
  opacity: 1;
  transform: scale(1);
}

/* loading="eager"（ヒーロー最上部など）はフェードしない */
img[loading="eager"] {
  opacity: 1;
  transform: none;
  transition: none;
}

/* ── カード画像ホバーズーム ─────────────────────────────── */
.img-hover-zoom {
  transition:
    opacity   .75s cubic-bezier(.4, 0, .2, 1),
    transform .95s cubic-bezier(.4, 0, .2, 1) !important;
}
@media (hover: hover) {
  .service-card:hover .img-hover-zoom,
  .company-service-card:hover .img-hover-zoom,
  .work-card:hover .img-hover-zoom,
  .president-local__img:hover .img-hover-zoom {
    transform: scale(1.06) !important;
  }
}

/* ── パララックス対象画像の基本設定 ─────────────────────── */
.page-hero__bg img,
.president-hero__bg img {
  transform-origin: center center;
  will-change: transform;
}

/* ============================================================
  20. レスポンシブ
============================================================ */
@media (max-width: 1024px) {
  .services-grid  { grid-template-columns: repeat(2, 1fr); }
  .numbers-grid   { grid-template-columns: repeat(2, 1fr); }
  .voices-grid    { grid-template-columns: repeat(2, 1fr); }
  .reasons-layout { grid-template-columns: 1fr; }
  .footer-grid    { grid-template-columns: 1fr 1fr; }
  .footer-brand   { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  :root { --header-h: 52px; }

  /* ヘッダー：スマホでも横並び維持 */
  .site-header__inner {
    padding: 0 14px;
    min-height: 52px;
  }
  .brand__logo { height: 30px; }

  .hero         { min-height: auto; padding: 72px 0 44px; }
  .hero__cta-wrap { flex-direction: column; align-items: center; }
  .btn          { width: 100%; max-width: 340px; }
  .section      { padding: 68px 0; }
  .container    { width: min(100% - 28px, var(--max-w)); }
  .work-card    { padding: 22px 18px; }
  .work-card__body { grid-template-columns: 1fr; }
  .work-card__lead { font-size: 13px; }
  .spec-box dl  { grid-template-columns: 5.5em 1fr; gap: 5px 10px; }
  .spec-box dt  { padding-top: 8px; }
  .number-card__desc { font-size: 11.5px; line-height: 1.75; }
  .footer-grid  { grid-template-columns: 1fr; }
  .footer       { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
}

@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .numbers-grid  { grid-template-columns: 1fr 1fr; }
  .voices-grid   { grid-template-columns: 1fr; }
  .sp-cta        { display: block; }
  body           { padding-bottom: 56px; }
  .section       { padding: 56px 0; }
  .hero h1       { font-size: clamp(28px, 9vw, 40px); }
  .section-title { font-size: 26px; }
  .numbers-section { padding-bottom: 56px; }
  .insta-grid    { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .cta-box       { padding: 36px 20px; }
  .area-box      { padding: 28px 18px; }
  .insta-grid    { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .work-card__body { gap: 18px; }
  .work-card h3  { font-size: 20px; }
  .number-card__num { font-size: 52px; }
  .number-card   { padding: 24px 14px 20px; }
}

@media (max-width: 374px) {
  .numbers-grid  { grid-template-columns: 1fr; }
  .hero-badge    { font-size: 11px; }
  .btn           { padding: 10px 18px; }
  .number-card__num { font-size: 48px; }
}

@media (hover:none) {
  .btn:hover, .service-card:hover, .trouble-tag:hover,
  .footer-links a:hover { transform: none; filter: none; }
}
