/* =========================================================
   株式会社真基 コーポレートサイト
   Design Comp / Wireframe — v0.1 (mobile-first)
   ========================================================= */

/* ---------- 1. デザイントークン（差し替えしやすいよう変数で管理） ---------- */
:root {
  /* Colors: 暖色寄り＋自然光のトーン */
  --c-bg: #FFFAF5;            /* 背景 ベース（温かみのある白） */
  --c-bg-soft: #FBF3E9;       /* やや濃いベージュ背景 */
  --c-bg-deep: #F0E3D1;       /* セクション切替の濃いベージュ */
  --c-primary: #E89B5B;       /* メインオレンジ */
  --c-primary-deep: #C97B3D;  /* オレンジ濃 */
  --c-primary-soft: #FCE7D2;  /* オレンジ淡（カードベース） */
  --c-accent: #4A3728;        /* ダークブラウン（タイトル・本文強調） */
  --c-text: #2B2622;          /* 本文 */
  --c-text-mute: #7C6F62;     /* キャプション・補足 */
  --c-line: #E8DFD3;          /* 罫線 */
  --c-white: #FFFFFF;
  --c-line-green: #06C755;    /* LINEブランドカラー */
  --c-tel: #C97B3D;           /* 電話ボタン */

  /* Fonts: ビジョンは明朝、本文はゴシック */
  --f-mincho: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", "游明朝", serif;
  --f-gothic: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "游ゴシック", "Meiryo", sans-serif;

  /* Spacing scale */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 80px;

  /* Layout */
  --max-w: 720px;             /* スマホ最優先のため意図的にナロー */
  --max-w-wide: 1080px;       /* PCで広く取りたいセクション */
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --shadow-soft: 0 6px 24px rgba(74, 55, 40, 0.08);
  --shadow-card: 0 4px 16px rgba(74, 55, 40, 0.06);

  /* Sticky CTA bar */
  --sticky-cta-h: 64px;
}

/* ---------- 2. リセット / ベース ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-gothic);
  font-size: 16px;
  line-height: 1.8;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* スマホ固定CTA分の余白 */
  padding-bottom: var(--sticky-cta-h);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }
ul { padding-left: 1.2em; }

/* スクリーンリーダー専用 */
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 3. 共通レイアウト ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  padding: 0 var(--sp-5);
  margin: 0 auto;
}
.container-wide {
  width: 100%;
  max-width: var(--max-w-wide);
  padding: 0 var(--sp-5);
  margin: 0 auto;
}

section {
  padding: var(--sp-9) 0;
}
section.tight { padding: var(--sp-8) 0; }
section.alt { background: var(--c-bg-soft); }
section.deep { background: var(--c-bg-deep); }

/* セクション見出し */
.sec-label {
  display: inline-block;
  font-family: var(--f-mincho);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--c-primary-deep);
  margin-bottom: var(--sp-3);
}
.sec-title {
  font-family: var(--f-mincho);
  font-size: clamp(22px, 5.6vw, 30px);
  line-height: 1.5;
  color: var(--c-accent);
  margin: 0 0 var(--sp-5);
  font-weight: 600;
}
/* 改行を強制的に抑止（一行に収める）するタイトルバリアント */
.sec-title--nobreak {
  white-space: nowrap;
  font-size: clamp(18px, 5.2vw, 30px);
}
.sec-lead {
  font-size: 15px;
  color: var(--c-text);
  margin-bottom: var(--sp-6);
}

/* ---------- 4. ヘッダー（シンプルなロゴ＋メニュー） ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 250, 245, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
  max-width: var(--max-w-wide);
  padding: 0 var(--sp-4);
  margin: 0 auto;
}
.brand {
  display: flex; align-items: baseline; gap: var(--sp-2);
  font-family: var(--f-mincho);
  color: var(--c-accent);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.04em;
}
.brand small { font-size: 11px; color: var(--c-text-mute); font-family: var(--f-gothic); letter-spacing: 0.2em; }

.nav-toggle {
  background: transparent; border: 0; padding: 8px;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 22px; height: 2px;
  background: var(--c-accent); border-radius: 2px;
  position: relative;
  transition: transform .2s ease, top .2s ease;
}
.nav-toggle span::before { position: absolute; top: -7px; left: 0; }
.nav-toggle span::after  { position: absolute; top:  7px; left: 0; }

.site-nav { display: none; }
/* スマホ：開いたときヘッダー直下にスライドダウン表示 */
.site-nav.is-open {
  display: block;
  position: absolute;
  top: 56px;             /* ヘッダー高さ直下に固定 */
  left: 0; right: 0;
  z-index: 51;
  background: var(--c-white);
  box-shadow: 0 6px 20px rgba(74, 55, 40, 0.10);
  border-top: 1px solid var(--c-line);
  max-height: calc(100vh - 56px);
  overflow-y: auto;
}
.site-nav ul {
  list-style: none; padding: var(--sp-3) var(--sp-5) var(--sp-5);
  margin: 0;
}
.site-nav li { padding: var(--sp-3) 0; border-bottom: 1px dashed var(--c-line); }
.site-nav li:last-child { border-bottom: 0; }
.site-nav a { color: var(--c-accent); font-weight: 600; display: block; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.is-open, .site-nav ul {
    display: block; background: transparent; border: 0; padding: 0;
    position: static; box-shadow: none; max-height: none; overflow: visible;
  }
  .site-nav ul { display: flex; gap: var(--sp-6); }
  .site-nav li { border: 0; padding: 0; }
}

/* ---------- 5. ファーストビュー ---------- */
/* スマホ：テキスト＋CTA を上、画像を下に縦積みするレイアウト
   それぞれ独立した領域で確実に見える */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--c-bg-soft);
  overflow: hidden;
}
.hero__inner {
  order: 1;
  position: relative; z-index: 2;
  width: 100%;
  padding: var(--sp-7) var(--sp-5) var(--sp-6);
}
/* スマホ：画像はテキストの下に独立した帯として表示 */
.hero__slides {
  order: 2;
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4;     /* 高さも十分に確保しつつバランス良く */
  background: var(--c-bg-soft);
}
.hero__bg {
  position: absolute; inset: 0;
  background-position: center;
  background-size: cover;     /* 帯として独立したのでcoverで充填 */
  background-repeat: no-repeat;
  background-color: var(--c-bg-soft);
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.hero__bg.is-active { opacity: 1; }
.hero__bg.is-loaded { /* 互換用 */ }

/* PC・タブレット幅でも縦積みレイアウトを維持。
   テキスト＋CTAを上、画像を下にワイドな帯として配置（重なりゼロ） */
@media (min-width: 720px) {
  .hero {
    flex-direction: column;
    min-height: auto;
  }
  .hero__inner {
    order: 1;
    max-width: var(--max-w-wide);
    margin: 0 auto;
    padding: var(--sp-9) var(--sp-6) var(--sp-7);
    text-align: center;            /* PCでは中央寄せで主役級の見せ方 */
  }
  .hero__cta {
    justify-content: center;
  }
  .hero__slides {
    order: 2;
    aspect-ratio: 16 / 6;          /* PCはワイドな帯にして人物を全体表示 */
    width: 100%;
  }
  .hero__bg {
    background-size: cover;
    background-position: center;
  }
}
/* テキスト視認性は文字側の処理（多重 text-shadow）で確保。
   背景写真をそのまま見せるため、矩形・ブラー・暗幕は使わない。 */
.hero__vision {
  font-family: var(--f-mincho);
  color: var(--c-accent);
  letter-spacing: 0.06em;
  opacity: 0; transform: translateY(20px);
  transition: opacity 1s ease .4s, transform 1s ease .4s;
  /* 白いハロー＋細い白輪郭で背景写真上でも読める */
  text-shadow:
    0 0 12px rgba(255, 250, 245, 0.95),
    0 0 6px rgba(255, 250, 245, 0.95),
    1px 1px 0 rgba(255, 255, 255, 0.85),
    -1px 1px 0 rgba(255, 255, 255, 0.85),
    1px -1px 0 rgba(255, 255, 255, 0.85),
    -1px -1px 0 rgba(255, 255, 255, 0.85);
}
.hero__vision.is-visible { opacity: 1; transform: none; }
.hero__vision-en {
  display: block;
  font-size: clamp(14px, 4vw, 18px);
  font-style: italic;
  margin-bottom: var(--sp-2);
  color: var(--c-primary-deep);
}
.hero__vision-jp {
  display: block;
  font-size: clamp(22px, 6.4vw, 34px);
  line-height: 1.5;
  font-weight: 500;
}
.hero__catch {
  margin-top: var(--sp-5);
  font-size: 15px;
  color: var(--c-text);
  opacity: 0; transform: translateY(20px);
  transition: opacity 1s ease .9s, transform 1s ease .9s;
  font-weight: 700;
  /* 白いハローで背景写真上でも読める */
  text-shadow:
    0 0 10px rgba(255, 250, 245, 0.95),
    0 0 4px rgba(255, 250, 245, 0.95),
    1px 1px 0 rgba(255, 255, 255, 0.9),
    -1px 1px 0 rgba(255, 255, 255, 0.9),
    1px -1px 0 rgba(255, 255, 255, 0.9),
    -1px -1px 0 rgba(255, 255, 255, 0.9);
}
/* スマホ専用の改行用クラス（PCでは改行しない） */
.sp-only { display: inline; }
@media (min-width: 600px) {
  .sp-only { display: none; }
}
.hero__catch.is-visible { opacity: 1; transform: none; }

.hero__cta {
  margin-top: var(--sp-5);
  display: flex; flex-direction: column; gap: var(--sp-3);
  opacity: 0; transform: translateY(20px);
  transition: opacity 1s ease 1.3s, transform 1s ease 1.3s;
}
.hero__cta.is-visible { opacity: 1; transform: none; }

@media (min-width: 720px) {
  .hero__cta { flex-direction: row; }
}

/* ---------- 6. ボタン ---------- */
.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2px;
  padding: 14px 22px;
  border-radius: 18px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.4;
  border: 0; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
  min-height: 60px;
  text-align: center;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary {
  background: var(--c-primary);
  color: var(--c-white);
  box-shadow: 0 6px 14px rgba(201, 123, 61, 0.28);
}
.btn--primary:hover { background: var(--c-primary-deep); color: var(--c-white); }
.btn--ghost {
  background: var(--c-white);
  color: var(--c-accent);
  border: 1.5px solid var(--c-accent);
}
.btn--ghost:hover { background: var(--c-accent); color: var(--c-white); }
.btn--line {
  background: var(--c-line-green);
  color: var(--c-white);
  box-shadow: 0 6px 14px rgba(6, 199, 85, 0.25);
}
.btn--line:hover { background: #04a447; color: var(--c-white); }
.btn--tel {
  background: var(--c-tel);
  color: var(--c-white);
  box-shadow: 0 6px 14px rgba(201, 123, 61, 0.28);
}
.btn--tel:hover { background: var(--c-accent); color: var(--c-white); }
.btn small { display: block; font-size: 11px; font-weight: 500; opacity: .9; margin-top: 2px; }
/* LINE一本化での主役ボタン（やや大きめ） */
.btn--lg {
  font-size: 16px;
  padding: 18px 28px;
  min-height: 68px;
  border-radius: 22px;
  letter-spacing: 0.04em;
}
.btn--lg small { font-size: 12px; }

/* ---------- 7. 理念 ---------- */
.philosophy { background: var(--c-bg); }
.philosophy__body p {
  font-size: 15.5px;
  line-height: 2;
  margin: 0 0 var(--sp-4);
}

/* ---------- 8. 社長あいさつ ---------- */
.greeting { background: var(--c-bg-soft); }
.greeting__layout { display: grid; gap: var(--sp-6); }
.greeting__photo {
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, #F5EFE6 0%, #E8DFD3 100%);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
}
.greeting__photo .placeholder-label {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-text-mute); font-size: 12px;
  font-family: var(--f-gothic);
}
.greeting__name {
  font-family: var(--f-mincho);
  font-size: 22px;
  font-weight: 700;
  color: var(--c-accent);
  margin: 0 0 var(--sp-5);
  line-height: 1.6;
}
.greeting__name strong { font-size: 22px; font-weight: 700; margin-left: var(--sp-2); }
/* 役職のみ少しだけ小さく細く */
.greeting__role {
  font-size: 17px;
  font-weight: 500;
}
.greeting__body p {
  font-size: 15px;
  line-height: 2;
  margin: 0 0 var(--sp-4);
}
.greeting__vision {
  font-family: var(--f-mincho);
  text-align: center;
  margin: var(--sp-6) 0;
  color: var(--c-primary-deep);
  font-size: 17px;
  line-height: 1.8;
}
.greeting__vision em {
  display: block;
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

@media (min-width: 900px) {
  .greeting__layout {
    grid-template-columns: 280px 1fr;
    align-items: start;
  }
}

/* ---------- 9. 共感ゾーン（悩み提示） ---------- */
.empathy { background: var(--c-bg); }
.empathy__list {
  list-style: none; padding: 0; margin: 0 0 var(--sp-5);
  display: grid; gap: var(--sp-3);
}
.empathy__list li {
  background: var(--c-white);
  border-radius: var(--radius-m);
  padding: var(--sp-4) var(--sp-5);
  font-weight: 600;
  color: var(--c-accent);
  display: flex; align-items: center; gap: var(--sp-3);
  box-shadow: var(--shadow-card);
  border-left: 4px solid var(--c-primary);
}
.empathy__list li::before {
  content: "“"; font-family: var(--f-mincho);
  font-size: 28px; color: var(--c-primary);
  line-height: 1; margin-top: -6px;
}
.empathy__close {
  text-align: center;
  font-family: var(--f-mincho);
  font-size: 18px;
  color: var(--c-accent);
  margin-top: var(--sp-5);
}

/* ---------- 10. 解決提示 ---------- */
.solution { background: var(--c-primary-soft); overflow: hidden; }
.solution__body p { font-size: 15.5px; line-height: 1.9; }
/* 2画像コンテナ：スマホ縦積み、PC横並び */
.solution__photos {
  margin-top: var(--sp-6);
  display: grid;
  gap: var(--sp-4);
  perspective: 800px;     /* 子の rotate3d をきれいに見せるため */
}
@media (min-width: 720px) {
  .solution__photos {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-5);
  }
}
.solution__photo {
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--c-line);
}
.solution__photo img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
/* PC幅では1枚目を少し下げ、2枚目を少し上げて視覚リズムをつける */
@media (min-width: 720px) {
  .solution__photo--left  { transform-origin: left center;  margin-top: var(--sp-5); }
  .solution__photo--right { transform-origin: right center; margin-top: calc(var(--sp-5) * -1); }
}

/* ----- ailas風：左から/右から3D回転スライド ----- */
.vis-leftin, .vis-rightin {
  opacity: 0;
  will-change: opacity, transform;
}
.vis-leftin.is-visible {
  animation: vis-leftin 1100ms ease 200ms forwards;
}
.vis-rightin.is-visible {
  animation: vis-rightin 1100ms ease 500ms forwards;
}
@keyframes vis-leftin {
    0% { opacity: 0; transform: translateX(-100vw) perspective(600px) rotate3d(0, 1, 0, -180deg); }
   60% { opacity: 1; transform: translateX(40px)   perspective(600px) rotate3d(0, 1, 0, -120deg); }
   85% { opacity: 1; transform: translateX(-5px)   perspective(600px) rotate3d(0, 1, 0,   20deg); }
   90% { opacity: 1; transform: translateX(0)      perspective(600px) rotate3d(0, 1, 0,   -5deg); }
  100% { opacity: 1; transform: translateX(0)      perspective(600px) rotate3d(0, 1, 0,    0deg); }
}
@keyframes vis-rightin {
    0% { opacity: 0; transform: translateX(100vw)  perspective(600px) rotate3d(0, 1, 0,  180deg); }
   60% { opacity: 1; transform: translateX(-40px)  perspective(600px) rotate3d(0, 1, 0,  120deg); }
   85% { opacity: 1; transform: translateX(5px)    perspective(600px) rotate3d(0, 1, 0,  -20deg); }
   90% { opacity: 1; transform: translateX(0)      perspective(600px) rotate3d(0, 1, 0,    5deg); }
  100% { opacity: 1; transform: translateX(0)      perspective(600px) rotate3d(0, 1, 0,    0deg); }
}
@media (prefers-reduced-motion: reduce) {
  .vis-leftin, .vis-rightin { animation: none; opacity: 1; }
}

/* ---------- 11. 施工事例（Before/After スライダー） ---------- */
.cases { background: var(--c-bg-soft); }

/* スライダー本体 */
.case-slider {
  position: relative;
  margin-top: var(--sp-6);
}
.case-slider__viewport {
  overflow: hidden;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
  background: var(--c-line);
}
.case-slider__track {
  display: flex;
  transition: transform .5s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}
.case-slide {
  flex: 0 0 100%;
  margin: 0;
  position: relative;
  background: var(--c-line);
  aspect-ratio: 4 / 3;     /* 縦を2倍に：1600x1200 の合成画像に合わせる */
}
.case-slide img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
/* BEFORE / AFTER ラベル（小さめにして室外機・エアコンに被りにくく） */
.case-slide__tag {
  position: absolute;
  bottom: 8px;
  padding: 2px 7px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  border-radius: 3px;
  color: #fff;
  z-index: 2;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  line-height: 1.4;
}
.case-slide__tag--before {
  left: 8px;
  background: rgba(74, 55, 40, 0.85);
}
.case-slide__tag--after {
  /* AFTER は右半分の左下 */
  left: calc(50% + 8px);
  background: var(--c-primary);
}

/* 左右ナビボタン */
.case-slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--c-accent);
  border: 1px solid var(--c-line);
  box-shadow: 0 2px 8px rgba(74, 55, 40, .15);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  line-height: 1;
  padding: 0 0 4px;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
  z-index: 3;
}
.case-slider__btn:hover { background: #fff; transform: translateY(-50%) scale(1.05); }
.case-slider__btn:disabled { opacity: .35; cursor: default; }
.case-slider__btn--prev { left: 8px; }
.case-slider__btn--next { right: 8px; padding: 0 0 4px 4px; }

/* ドット（現在位置インジケータ） */
.case-slider__dots {
  display: flex; justify-content: center; gap: 8px;
  margin-top: var(--sp-4);
}
.case-slider__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(74, 55, 40, 0.25);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.case-slider__dot.is-active {
  background: var(--c-primary);
  transform: scale(1.3);
}

/* 互換用（もし旧 .case-list を後で参照しても安全） */
.case-list[hidden], .case-card[hidden] { display: none; }
.case-list {
  display: grid; gap: var(--sp-6);
  margin-top: var(--sp-5);
}
.case-card {
  background: var(--c-white);
  border-radius: var(--radius-m);
  padding: var(--sp-5);
  box-shadow: var(--shadow-card);
}
.case-card__tags {
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}
.case-card__tag {
  font-size: 11px;
  background: var(--c-primary-soft);
  color: var(--c-primary-deep);
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 600;
}
.ba-pair {
  display: grid; gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}
.ba-pair__caption {
  font-size: 12px;
  color: var(--c-text-mute);
  letter-spacing: .08em;
  margin: 0 0 var(--sp-2);
  font-weight: 600;
}
.ba-group {
  display: grid; gap: var(--sp-4);
  margin-bottom: var(--sp-4);
}
.ba-pair figure {
  margin: 0;
  border-radius: var(--radius-s);
  overflow: hidden;
  background: var(--c-line);
  position: relative;
  aspect-ratio: 4 / 3;
}
.ba-pair figure img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.ba-pair figcaption {
  position: absolute; top: 8px; left: 8px;
  padding: 4px 10px;
  font-size: 11px; font-weight: 700;
  border-radius: 999px;
  letter-spacing: 0.08em;
}
.ba-pair .ba-before figcaption { background: rgba(124, 111, 98, .92); color: #fff; }
.ba-pair .ba-after  figcaption { background: var(--c-primary); color: #fff; }
.ba-pair .placeholder-label {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(74,55,40,.5); font-size: 12px;
}
.ba-before { background: linear-gradient(135deg, #D9CFC2 0%, #B8AA9A 100%); }
.ba-after  { background: linear-gradient(135deg, #FCE7D2 0%, #E89B5B 100%); }
/* 画像読込み失敗時：「BEFORE/AFTER 画像」プレースホルダーを表示 */
.ba-pair figure.placeholder-fallback::after {
  content: "画像を配置してください";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(74,55,40,.55); font-size: 12px; pointer-events: none;
}

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

.case-card__steps {
  display: grid; gap: var(--sp-2);
  margin: 0; padding: 0;
}
.case-card__steps dt {
  font-size: 12px; color: var(--c-primary-deep); font-weight: 700;
  letter-spacing: 0.08em;
}
.case-card__steps dd {
  margin: 0 0 var(--sp-2);
  font-size: 14.5px;
  color: var(--c-text);
}

/* ---------- 12. お客様の声 ---------- */
.voices { background: var(--c-bg); }
.voice-list { display: grid; gap: var(--sp-4); margin-top: var(--sp-5); }
.voice-card {
  background: var(--c-white);
  border-radius: var(--radius-m);
  padding: var(--sp-5);
  box-shadow: var(--shadow-card);
}
.voice-card__stars { color: #F4B400; font-size: 18px; letter-spacing: 2px; margin-bottom: var(--sp-2); }
.voice-card__body { font-size: 15px; line-height: 1.85; margin: 0 0 var(--sp-3); }
.voice-card__meta { font-size: 12px; color: var(--c-text-mute); }
.voice-card__keyword {
  display: inline-block;
  background: var(--c-primary-soft); color: var(--c-primary-deep);
  font-size: 11px; padding: 2px 8px; border-radius: 999px; margin-right: 4px;
}
.placeholder-note {
  margin-top: var(--sp-3);
  font-size: 12px; color: var(--c-text-mute); text-align: center;
}

/* ---------- 13. 6つの安心ポイント ---------- */
.points { background: var(--c-bg-soft); }
.point-grid {
  display: grid; gap: var(--sp-4);
  margin-top: var(--sp-5);
}
.point-card {
  background: var(--c-white);
  border-radius: var(--radius-m);
  padding: var(--sp-5);
  text-align: center;
  box-shadow: var(--shadow-card);
}
.point-card__icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--c-primary-soft);
  color: var(--c-primary-deep);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--sp-3);
  font-family: var(--f-mincho);
  font-weight: 700;
  font-size: 22px;
}
.point-card__icon svg {
  width: 30px; height: 30px;
  display: block;
}
.point-card__title {
  font-size: 16px;
  color: var(--c-accent);
  font-weight: 700;
  margin: 0 0 var(--sp-2);
}
.point-card__desc { font-size: 13.5px; color: var(--c-text-mute); line-height: 1.7; margin: 0; }
.points__close {
  font-family: var(--f-mincho);
  text-align: center;
  font-size: 16px;
  color: var(--c-accent);
  margin-top: var(--sp-6);
}

@media (min-width: 600px) { .point-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .point-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- 14. 安心・信頼セクション ---------- */
.trust { background: var(--c-bg); }
.trust__photo {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-m);
  background: linear-gradient(135deg, #FBF3E9 0%, #E8DFD3 100%);
  box-shadow: var(--shadow-card);
  margin-bottom: var(--sp-5);
  position: relative; overflow: hidden;
}
.trust__photo .placeholder-label {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-text-mute); font-size: 12px;
}
.trust__list { list-style: none; padding: 0; display: grid; gap: var(--sp-3); }
.trust__list li {
  background: var(--c-bg-soft);
  border-radius: var(--radius-s);
  padding: var(--sp-3) var(--sp-4);
  font-weight: 600; color: var(--c-accent);
  display: flex; align-items: center; gap: var(--sp-3);
}
.trust__list li::before { content: "✓"; color: var(--c-primary); font-weight: 700; }

/* ---------- 15. LINE見積依頼 ---------- */
.line-cta {
  background: linear-gradient(180deg, #06C755 0%, #04a447 100%);
  color: var(--c-white);
}
.line-cta .sec-title, .line-cta .sec-label, .line-cta .sec-lead { color: var(--c-white); }
.line-cta__inner {
  display: grid; gap: var(--sp-5);
  align-items: center;
}
.line-cta__qr {
  width: 160px; height: 160px;
  background: var(--c-white); border-radius: var(--radius-s);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
  color: var(--c-text-mute); font-size: 12px; text-align: center;
  padding: var(--sp-3);
}
.line-cta__qr img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}
.line-cta .btn--white {
  background: var(--c-white); color: var(--c-line-green);
  margin-top: var(--sp-4);
}

/* ---------- 16. Q&A ---------- */
.qa { background: var(--c-bg); }
.qa-list { margin-top: var(--sp-5); display: grid; gap: var(--sp-3); }
.qa-item {
  background: var(--c-white);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.qa-item__q {
  width: 100%;
  text-align: left;
  background: transparent; border: 0;
  padding: var(--sp-4) var(--sp-5);
  font-size: 15px; font-weight: 700;
  color: var(--c-accent);
  display: flex; align-items: center; gap: var(--sp-3);
  cursor: pointer;
}
.qa-item__q::before {
  content: "Q";
  width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--c-primary); color: var(--c-white);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--f-mincho); font-weight: 700;
}
.qa-item__q::after {
  content: "+";
  margin-left: auto; color: var(--c-primary-deep);
  font-size: 22px; transition: transform .2s ease;
}
.qa-item.is-open .qa-item__q::after { transform: rotate(45deg); }
.qa-item__a {
  display: none;
  padding: 0 var(--sp-5) var(--sp-5);
  font-size: 14.5px;
  color: var(--c-text);
  line-height: 1.9;
  border-top: 1px dashed var(--c-line);
}
.qa-item.is-open .qa-item__a { display: block; padding-top: var(--sp-4); }

/* ---------- 17. 最終CTA ---------- */
.final-cta {
  background: linear-gradient(180deg, #FCE7D2 0%, #FFFAF5 100%);
}
.final-cta__buttons {
  display: grid; gap: var(--sp-3);
  margin-top: var(--sp-5);
}
.final-cta__buttons--single {
  max-width: 480px;
  margin-left: auto; margin-right: auto;
}
@media (min-width: 720px) {
  .final-cta__buttons { grid-template-columns: repeat(3, 1fr); }
  .final-cta__buttons--two { grid-template-columns: repeat(2, 1fr); max-width: 720px; margin-left: auto; margin-right: auto; margin-top: var(--sp-5); }
  .final-cta__buttons--single { grid-template-columns: 1fr; }
}

/* ---------- 18. ビジョン回収（締め） ---------- */
.outro {
  background:
    linear-gradient(180deg, rgba(74,55,40,.5) 0%, rgba(74,55,40,.85) 100%),
    linear-gradient(135deg, #C97B3D 0%, #4A3728 100%);
  color: var(--c-white);
  text-align: center;
  padding: var(--sp-9) var(--sp-5);
}
.outro p { font-size: 15px; line-height: 1.9; max-width: 560px; margin: 0 auto var(--sp-5); }
.outro__vision {
  font-family: var(--f-mincho);
  letter-spacing: 0.06em;
}
.outro__vision-en {
  display: block; font-style: italic;
  font-size: 16px; margin-bottom: var(--sp-2);
  color: #FCE7D2;
}
.outro__vision-jp {
  display: block;
  font-size: clamp(18px, 5vw, 30px);
  line-height: 1.6;
  color: var(--c-white);
  white-space: nowrap;       /* スマホでも一行に収める */
}

/* ---------- 19. 会社概要 ---------- */
.company { background: var(--c-bg); }
.company__table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--sp-4);
  font-size: 14.5px;
}
.company__table th, .company__table td {
  text-align: left;
  padding: var(--sp-3) var(--sp-3);
  border-bottom: 1px solid var(--c-line);
  vertical-align: top;
}
.company__table th {
  width: 35%;
  color: var(--c-accent);
  font-weight: 700;
  background: var(--c-bg-soft);
  white-space: nowrap;
}
.company__map {
  margin-top: var(--sp-5);
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.company__map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- 20. フッター ---------- */
.site-footer {
  background: var(--c-accent);
  color: #E8DFD3;
  padding: var(--sp-8) 0 var(--sp-9);
}
.site-footer a { color: #FCE7D2; }
.site-footer__brand {
  font-family: var(--f-mincho);
  font-size: 22px; color: var(--c-white);
  margin: 0 0 var(--sp-2);
}
.site-footer__addr { font-size: 13px; line-height: 1.8; }
.site-footer__nav {
  list-style: none; padding: 0; margin: var(--sp-5) 0;
  display: grid; gap: var(--sp-2);
  grid-template-columns: 1fr 1fr;
}
.site-footer__nav a { font-size: 13px; }
.site-footer__links {
  display: flex; flex-direction: column; gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}
.site-footer__copy {
  font-size: 11px; color: rgba(232, 223, 211, 0.65);
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: var(--sp-4);
}

/* ---------- 21. スマホ固定CTA（スクロール追従） ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: var(--c-white);
  border-top: 1px solid var(--c-line);
  display: grid; grid-template-columns: 1fr 1fr;
  height: var(--sticky-cta-h);
  box-shadow: 0 -4px 12px rgba(74,55,40,.08);
}
.sticky-cta--single { grid-template-columns: 1fr; }
.sticky-cta a {
  display: flex; align-items: center; justify-content: center;
  gap: var(--sp-2);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  color: var(--c-white);
}
.sticky-cta .sticky-tel { background: var(--c-tel); }
.sticky-cta .sticky-line { background: var(--c-line-green); }
.sticky-cta .icon { font-size: 18px; }

@media (min-width: 900px) {
  .sticky-cta { display: none; }
  body { padding-bottom: 0; }
}

/* ---------- 22. Reveal animation (scroll-in) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 22b. 画像コンテナ内のimgを枠いっぱいに ---------- */
.greeting__photo img,
.solution__photo img,
.trust__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- 23. 注釈 ---------- */
.note-dummy {
  display: inline-block;
  font-size: 11px;
  background: #FFE9C7; color: #8C5A1F;
  border: 1px dashed #C97B3D;
  padding: 2px 8px; border-radius: 4px;
  margin-left: 8px;
  font-weight: 600;
}
