/* ==========================================================================
   店舗デザインラボ 共通スタイルシート
   /assets/css/style.css
   - 全ページ共通。ページ固有のCSSはこのファイル末尾にブロックで追加する
   - ブレークポイント: 768px / 1080px（モバイルファーストで記述）
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. デザイントークン（色・余白・文字）
   -------------------------------------------------------------------------- */
:root {
  /* 色 */
  --bg: #FFFFFF;
  --bg-sub: #F6F3EE;
  --text: #222222;
  --muted: #6B6B6B;
  --line: #E2DED7;
  --accent: #A8743A;
  --accent-dark: #8F6230;
  --dark: #111111;

  /* 書体 */
  --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;

  /* 形状・寸法 */
  --radius: 4px;
  --maxw: 1200px;
  --header-h: 72px;
  --sp-fixbar-h: 56px;

  /* 余白 */
  --section-pad: 96px;
  --section-pad-sp: 64px;
  --inner-pad: 24px;
  --inner-pad-sp: 20px;
}

/* --------------------------------------------------------------------------
   2. リセット・基本
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  word-break: break-word;
}

body.no-scroll {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-dark);
}

button {
  font-family: inherit;
  cursor: pointer;
}

ul,
ol {
  margin: 0 0 16px;
  padding-left: 1.5em;
}

p {
  margin: 0 0 16px;
}

figure {
  margin: 0;
}

/* フォーカス可視化（キーボード操作時） */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   3. タイポグラフィ
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 24px;
  color: var(--text);
}

h1 { font-size: clamp(26px, 4vw, 40px); }
h2 { font-size: clamp(22px, 3.2vw, 32px); }
h3 { font-size: clamp(18px, 2.4vw, 24px); }
h4 { font-size: 17px; }

/* 英字ラベル（WORKS / FLOW / PRICE / FAQ など） */
.label-en {
  display: block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

/* リード文 */
.lead {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--muted);
  margin-bottom: 32px;
}

.small {
  font-size: 13px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   4. レイアウト
   -------------------------------------------------------------------------- */
.inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--inner-pad-sp);
  padding-right: var(--inner-pad-sp);
}

@media (min-width: 768px) {
  .inner {
    padding-left: var(--inner-pad);
    padding-right: var(--inner-pad);
  }
}

.section {
  padding: var(--section-pad-sp) 0;
}

@media (min-width: 768px) {
  .section { padding: var(--section-pad) 0; }
}

.section-sub {
  background: var(--bg-sub);
}

.section-head {
  margin-bottom: 48px;
}

/* --------------------------------------------------------------------------
   5. スキップリンク
   -------------------------------------------------------------------------- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 400;
  display: inline-block;
  padding: 12px 20px;
  background: var(--dark);
  color: #fff;
  text-decoration: none;
  border-radius: 0 0 var(--radius) 0;
}

.skip:focus {
  left: 0;
  color: #fff;
}

/* --------------------------------------------------------------------------
   6. ヘッダー / グローバルナビ
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.site-header .inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
}

/* ロゴ */
.logo {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.3;
  text-decoration: none;
  margin-right: auto;
}

.logo-ja {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
}

.logo-en {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}

/* メニューボタン（スマホのみ表示） */
.gnav {
  flex-shrink: 0;
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 48px;
  min-height: 48px;
  padding: 8px 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  position: relative;
  z-index: 120;
}

/* ナビ本体 */
.gnav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gnav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

/* ヘッダー内 電話番号（1080px以上で表示） */
.site-header .hd-tel {
  display: none;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.4;
  text-align: right;
  letter-spacing: 0.02em;
}

.hd-tel small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ヘッダー内 CTA（768px以上で表示）
   ※.btn の display:inline-flex より後に書く／詳細度を上げて打ち消しを防ぐ */
.site-header .hd-cta {
  display: none;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .menu-btn { display: none; }
  .site-header .hd-cta { display: inline-flex; }
}

@media (min-width: 1080px) {
  .site-header .hd-tel { display: block; }
}

/* --- PCナビ（768px以上） --- */
@media (min-width: 768px) {
  .gnav > ul {
    display: flex;
    align-items: center;
    gap: 2px;
  }

  .gnav > ul > li {
    position: relative;
  }

  .gnav > ul > li > a {
    padding: 8px 11px;
    font-size: 14px;
  }

  @media (min-width: 1080px) {
    .gnav > ul > li > a {
      padding: 8px 14px;
      font-size: 15px;
    }
  }

  .gnav > ul > li > a:hover {
    color: var(--accent);
  }

  /* ドロップダウン（ホバー/フォーカスで開く） */
  .gnav ul.sub {
    list-style: none;
    margin: 0;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    padding: 8px 0;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .gnav li:hover > ul.sub,
  .gnav li:focus-within > ul.sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .gnav ul.sub a {
    min-height: 44px;
    padding: 8px 20px;
    font-size: 14px;
  }

  .gnav ul.sub a:hover {
    background: var(--bg-sub);
    color: var(--accent);
  }
}

/* --- スマホナビ（768px未満・全画面メニュー） --- */
@media (max-width: 767.98px) {
  .gnav > ul {
    position: fixed;
    inset: 0;
    z-index: 110;
    padding: calc(var(--header-h) + 24px) 24px calc(var(--sp-fixbar-h) + 32px);
    background: var(--bg);
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0.25s;
  }

  .site-header.is-open .gnav > ul {
    transform: translateX(0);
    visibility: visible;
  }

  .gnav > ul > li > a {
    min-height: 56px;
    font-size: 17px;
    font-weight: 600;
    border-bottom: 1px solid var(--line);
  }

  /* 入れ子リスト */
  .gnav ul.sub {
    list-style: none;
    margin: 4px 0 12px;
    padding: 0 0 0 18px;
    border-left: 2px solid var(--line);
  }

  .gnav ul.sub a {
    min-height: 48px;
    font-size: 15px;
    font-weight: 400;
    color: var(--muted);
  }
}

/* --------------------------------------------------------------------------
   7. ヒーロー（写真の上に文字）
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 420px;
  color: #fff;
  background: var(--dark);
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero { min-height: 560px; }
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 暗いグラデーションで文字を読みやすく */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.hero .inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: 96px;
  padding-bottom: 96px;
}

.hero h1,
.hero p {
  color: #fff;
}

.hero h1 {
  margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.hero .lead {
  color: rgba(255, 255, 255, 0.9);
  max-width: 640px;
}

.hero .label-en {
  color: rgba(255, 255, 255, 0.85);
}

/* --------------------------------------------------------------------------
   8. ボタン
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--accent-dark);
  color: #fff;
}

.btn-line {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

.btn-line:hover {
  background: var(--accent);
  color: #fff;
}

/* ボタンをブロック幅にしたい場合 */
.btn-block {
  width: 100%;
}

/* --------------------------------------------------------------------------
   9. カード・グリッド
   -------------------------------------------------------------------------- */
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.card h3 {
  margin-bottom: 12px;
}

.card-img {
  margin: -24px -24px 20px;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

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

/* --------------------------------------------------------------------------
   10. ステップ（番号付き） / タイムライン
   -------------------------------------------------------------------------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 32px;
}

.steps > li {
  position: relative;
  counter-increment: step;
  padding-left: 64px;
}

.steps > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--bg);
}

/* SPは縦のつながり線 */
.steps > li::after {
  content: "";
  position: absolute;
  left: 24px;
  top: 56px;
  bottom: -24px;
  width: 1px;
  background: var(--line);
}

.steps > li:last-child::after {
  display: none;
}

.steps h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.steps p {
  margin-bottom: 0;
  color: var(--muted);
}

/* PCは横並びステップ */
@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px 24px;
  }

  .steps > li {
    padding: 72px 0 0;
  }

  .steps > li::after {
    left: 56px;
    right: -16px;
    top: 24px;
    bottom: auto;
    width: auto;
    height: 1px;
  }
}

/* 縦タイムライン（出店チャート用） */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 32px;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line);
}

.timeline > li {
  position: relative;
  padding-bottom: 32px;
}

.timeline > li:last-child {
  padding-bottom: 0;
}

.timeline > li::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}

.timeline .tl-date {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 4px;
}

.timeline h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.timeline p {
  margin-bottom: 0;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   11. ギャラリー / ライトボックス
   -------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.gallery-grid a {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-sub);
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-grid a:hover img,
.gallery-grid a:focus-visible img {
  transform: scale(1.05);
}

.gallery-grid figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

/* ライトボックス（JSがDOM生成。全画面拡大表示） */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 17, 17, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90vw;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  margin: 0;
  padding: 0 80px;
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.lightbox__btn {
  position: absolute;
  z-index: 1;
  min-width: 48px;
  min-height: 48px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  color: #fff;
  font-size: 15px;
  transition: background 0.2s ease;
}

.lightbox__btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev  { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next  { right: 16px; top: 50%; transform: translateY(-50%); }

/* --------------------------------------------------------------------------
   12. スペック（坪数・工期・坪単価の数字カード）
   -------------------------------------------------------------------------- */
.spec {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

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

.spec__item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
}

.spec__num {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.2;
  color: var(--accent);
  margin-bottom: 8px;
}

.spec__num small {
  font-size: 0.42em;
  color: var(--muted);
  margin-left: 2px;
}

.spec__label {
  font-size: 14px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   13. 料金表（スマホは横スクロール）
   -------------------------------------------------------------------------- */
.price-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.price-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--bg);
}

.price-table th,
.price-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

.price-table td {
  white-space: normal;
}

/* 見出し行を固定 */
.price-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bg-sub);
  font-weight: 700;
}

/* 行見出しを左固定（横スクロール時） */
.price-table tbody th[scope="row"] {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--bg);
  font-weight: 700;
}

.price-table tbody tr:last-child th,
.price-table tbody tr:last-child td {
  border-bottom: none;
}

/* --------------------------------------------------------------------------
   14. FAQ（details/summary アコーディオン）
   -------------------------------------------------------------------------- */
.faq details {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.faq details + details {
  margin-top: 12px;
}

.faq summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  min-height: 48px;
  padding: 16px 56px 16px 20px;
  font-weight: 700;
}

.faq summary::-webkit-details-marker {
  display: none;
}

/* ＋/− アイコン */
.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 14px;
  height: 2px;
  background: var(--accent);
  transform: translateY(-50%);
  transition: transform 0.2s ease;
}

.faq summary::after {
  transform: translateY(-50%) rotate(90deg);
}

.faq details[open] summary::after {
  transform: translateY(-50%) rotate(0deg);
}

.faq .faq-a {
  padding: 0 20px 20px;
  color: var(--muted);
}

.faq .faq-a p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   15. パンくず
   -------------------------------------------------------------------------- */
.breadcrumb {
  padding: 16px 0;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0;
  padding: 0;
}

.breadcrumb li {
  display: flex;
  align-items: center;
}

.breadcrumb li + li::before {
  content: "›";
  margin-right: 8px;
  color: var(--line);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
  color: var(--text);
}

/* --------------------------------------------------------------------------
   16. CTA帯（ページ末尾の相談バンド）
   -------------------------------------------------------------------------- */
.cta-band {
  background: var(--dark);
  color: #fff;
  text-align: center;
  padding: 72px var(--inner-pad-sp);
}

@media (min-width: 768px) {
  .cta-band { padding: 96px var(--inner-pad); }
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 8px;
}

.cta-lead {
  font-family: var(--font-serif);
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.6;
  color: #fff !important;
  margin-bottom: 16px !important;
}

.cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin: 32px 0 20px;
}

.cta-band .btn-line {
  border-color: #fff;
  color: #fff;
}

.cta-band .btn-line:hover {
  background: #fff;
  color: var(--dark);
}

.cta-band .small {
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   17. フッター
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-sub);
  border-top: 1px solid var(--line);
  padding: 64px 0 32px;
}

.site-footer .inner {
  display: grid;
  gap: 40px;
}

@media (min-width: 768px) {
  .site-footer .inner {
    grid-template-columns: 1.1fr 2fr;
    gap: 64px;
  }
}

.ft-company .logo-ja {
  margin: 0 0 16px;
  font-size: 20px;
}

.ft-company p {
  font-size: 14px;
  color: var(--muted);
}

.ft-nav {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .ft-nav {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 32px;
  }
}

.ft-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ft-nav a {
  display: inline-block;
  padding: 5px 0;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
}

.ft-nav a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.copy {
  margin: 48px 0 0;
  padding: 0 var(--inner-pad-sp);
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   18. スマホ固定バー（768px未満のみ表示）
   -------------------------------------------------------------------------- */
.sp-fixbar {
  display: none;
}

@media (max-width: 767.98px) {
  body {
    padding-bottom: calc(var(--sp-fixbar-h) + env(safe-area-inset-bottom, 0px));
  }

  .sp-fixbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 150;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--bg);
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .sp-fixbar a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: var(--sp-fixbar-h);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
  }

  .sp-fixbar a:first-child {
    background: var(--bg);
    color: var(--accent);
    border-right: 1px solid var(--line);
  }

  .sp-fixbar a:last-child {
    background: var(--accent);
    color: #fff;
  }
}

/* --------------------------------------------------------------------------
   19. フォーム（3ステップ：入力 → 確認 → 完了）
   -------------------------------------------------------------------------- */
.form {
  max-width: 720px;
  margin: 0 auto;
}

/* ステップ表示 */
.form-steps {
  list-style: none;
  display: flex;
  gap: 12px;
  margin: 0 0 48px;
  padding: 0;
}

.form-steps li {
  flex: 1;
  padding-top: 12px;
  border-top: 3px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.form-steps li.is-current {
  border-top-color: var(--accent);
  color: var(--accent);
  font-weight: 700;
}

/* 入力欄 */
.form-field {
  margin-bottom: 28px;
}

.form-field > label,
.form-field .form-label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}

.form-field .req {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius);
  vertical-align: 2px;
}

.form-field .opt {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  background: var(--bg-sub);
  color: var(--muted);
  font-size: 11px;
  border-radius: var(--radius);
  vertical-align: 2px;
}

.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form input[type="number"],
.form select,
.form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  font-family: inherit;
  font-size: 16px;
  color: var(--text);
}

.form textarea {
  min-height: 160px;
  resize: vertical;
}

.form input:focus-visible,
.form select:focus-visible,
.form textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

/* ラジオ・チェック */
.form-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.form-choices label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  font-weight: 400;
  cursor: pointer;
}

/* エラー表示 */
.form .error {
  margin: 6px 0 0;
  font-size: 13px;
  color: #B3261E;
}

.form .is-invalid input,
.form .is-invalid select,
.form .is-invalid textarea {
  border-color: #B3261E;
  background: #FDF6F5;
}

/* 確認画面 */
.form-confirm {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.form-confirm dl {
  display: grid;
  grid-template-columns: 1fr;
  margin: 0;
}

@media (min-width: 768px) {
  .form-confirm dl {
    grid-template-columns: 200px 1fr;
  }
}

.form-confirm dt {
  padding: 16px 20px;
  background: var(--bg-sub);
  font-weight: 700;
  font-size: 14px;
}

.form-confirm dd {
  margin: 0;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
}

@media (min-width: 768px) {
  .form-confirm dd {
    border-top: none;
    border-left: 1px solid var(--line);
  }

  .form-confirm dt:not(:first-of-type),
  .form-confirm dd:not(:first-of-type) {
    border-top: 1px solid var(--line);
  }
}

.form-note {
  font-size: 13px;
  color: var(--muted);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 40px;
}

/* --------------------------------------------------------------------------
   20. スクロール表示（reveal）
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 動きを控える設定のユーザーにはアニメーション無効 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   ページ固有CSSはこの下にブロックで追加する
   -------------------------------------------------------------------------- */

/* ==========================================================================
   ページ固有: TOP（/index.html）
   ========================================================================== */

/* --- ヒーロースライダー（実績写真のフェード切替） --- */
.hero--slider {
  min-height: 520px;
}

@media (min-width: 768px) {
  .hero--slider { min-height: 640px; }
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero__inner {
  padding-top: 120px;
  padding-bottom: 120px;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 32px 0 20px;
}

/* ヒーロー（暗い背景）上の枠線ボタン */
.hero .btn-line {
  border-color: #fff;
  color: #fff;
}

.hero .btn-line:hover {
  background: #fff;
  color: var(--dark);
}

.hero-tel {
  margin-bottom: 0;
}

.hero-tel a {
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
}

/* スライド停止／再生ボタン */
.hero-toggle {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  min-width: 48px;
  min-height: 48px;
  padding: 8px 18px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius);
  color: #fff;
  font-size: 13px;
  transition: background 0.2s ease;
}

.hero-toggle:hover {
  background: rgba(0, 0, 0, 0.75);
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}

/* --- 選ばれる理由（番号付きカード5枚） --- */
.reasons {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: reason;
  display: grid;
  gap: 24px;
}

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

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

.reasons > li {
  counter-increment: reason;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
}

.reasons > li::before {
  content: counter(reason, decimal-leading-zero);
  display: block;
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 10px;
}

.reasons h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.reasons p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

/* --- 対応業態タイル（写真付きリンク） --- */
.type-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 768px) {
  .type-tiles {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.type-tiles a {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--dark);
  text-decoration: none;
}

.type-tiles img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.type-tiles a:hover img,
.type-tiles a:focus-visible img {
  transform: scale(1.05);
}

.type-tiles a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.65) 100%);
}

.type-tiles span {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 1;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

/* --- セクション末尾のボタン行 --- */
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 48px;
}

/* --- コラム（続きを読む形式） --- */
.column {
  display: grid;
  gap: 48px;
}

.column h3 {
  padding-left: 14px;
  border-left: 3px solid var(--accent);
}

.col-more summary {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--accent);
}

.col-more summary::-webkit-details-marker {
  display: none;
}

.col-more summary::after {
  content: "＋";
  margin-left: 8px;
  font-weight: 400;
}

.col-more[open] summary::after {
  content: "−";
}

/* --- 想い・アフターセクションの本文幅 --- */
.philosophy {
  max-width: 760px;
}

.philosophy p {
  font-size: 17px;
}

/* --- 出店の流れ（10ステップ・タイトルのみのコンパクト版） --- */
.steps--compact > li h3 {
  margin-bottom: 0;
  font-size: 16px;
}

/* --- garagelabo FAQ (preview) --- */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 0;
}
.faq-item summary {
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 600;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary { border-bottom: 1px solid var(--line); }
.faq-item p { padding: 0 18px 16px; margin: 12px 0 0; color: var(--muted); }

/* Language switcher (EN / 日本語). No auto-redirect. */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.lang-switch a {
  color: var(--text);
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.lang-switch a[aria-current="page"] {
  border-bottom-color: var(--accent);
  color: var(--text);
  pointer-events: none;
}
.lang-switch a:hover { color: var(--accent); }
.lang-switch .lang-sep { color: var(--muted); font-weight: 400; }
@media (max-width: 767px) {
  .lang-switch { margin-left: 0; }
  .site-header .inner { flex-wrap: wrap; }
}

.policy-banner { background:#fff;border:1px solid var(--accent);border-radius:4px;padding:14px 16px;max-width:760px; }
.filter-bar { display:flex;flex-wrap:wrap;gap:8px;margin:24px 0 12px; }
.filter-btn { border:1px solid var(--line);background:#fff;padding:8px 14px;border-radius:999px;font-size:13px;cursor:pointer;font-family:inherit;color:var(--text); }
.filter-btn.is-active,.filter-btn:hover { border-color:var(--accent);color:var(--accent);background:#fff; }
.trouble-case.is-hidden, [data-cat-section].is-hidden { display:none !important; }
.count-line { font-size:13px;color:var(--muted);margin:0 0 24px; }
.cat-intro { max-width:760px;color:var(--muted);line-height:1.8; }
.cat-block { margin-top:40px; }
.cat-cta { margin:16px 0 8px; }
.sub-hero { padding:32px 0 0; }
.preview-note { background:#F6F3EE;border:1px solid var(--line);border-radius:4px;padding:12px 14px;font-size:13px;color:var(--muted);margin:0 0 16px; }
