/* ==========================================================================
   オプション工事ドットコム - 共通スタイル
   Design System準拠: design-system.md
   ========================================================================== */

/* --------------------------------------------------------------------------
   Google Fonts Import
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500&family=Noto+Sans+JP:wght@400;500;600;700&family=Noto+Serif+JP:wght@400;500;600&display=swap');

/* --------------------------------------------------------------------------
   CSS Variables（デザイントークン v2 / docs/design-system.md §1〜§3）
   -------------------------------------------------------------------------- */
:root {
  /* === §1 カラー（紙の質感を意識したベージュ＋ゴールド＋朱赤） === */
  --color-bg:           #FBF8F3;  /* メイン背景 */
  --color-bg-alt:       #F3EEE5;  /* 切替背景 */
  --color-surface:      #FFFFFF;  /* カード面 */

  --color-text:         #1F1B16;  /* 本文・見出し */
  --color-text-sub:     #6B645B;  /* 補助テキスト */
  --color-text-muted:   #A39A8E;  /* 章ナンバリング等 */

  --color-accent:       #B89968;  /* ゴールド（線・点で使う） */
  --color-accent-soft:  #E8D9B8;  /* ゴールド薄色（下線マーカー） */
  --color-cta:          #B43D2E;  /* 主CTA：和の朱赤 */
  --color-cta-hover:    #9A2F22;

  --color-dark:         #1F1B16;
  --color-dark-text:    #FBF8F3;

  --color-border:       #D9D2C5;
  --color-divider:      #E5DFD3;

  /* === §2 タイポグラフィ === */
  --font-serif-jp: "Noto Serif JP", "Shippori Mincho", "Yu Mincho", "游明朝",
                   "Hiragino Mincho ProN", serif;
  --font-sans-jp:  "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-serif-en: "Cormorant Garamond", "EB Garamond", "Playfair Display", serif;
  --font-numeric:  "Cormorant Garamond", "EB Garamond", serif;

  /* === §3 スペーシング === */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  16px;
  --space-4:  24px;
  --space-5:  32px;
  --space-6:  48px;
  --space-7:  64px;
  --space-8:  96px;   /* セクション内主要余白 */
  --space-9:  128px;  /* セクション間（PC） */
  --space-10: 160px;  /* 章間（最大） */

  /* === §3 コンテナ幅 === */
  --container-max:   85%;
  --container-wide:  1440px;
  --container-text:  720px;

  /* ===========================================================
     レガシーエイリアス：既存ルール（旧変数名）を新トークンへ写像
     Phase 1 では HTML 構造を維持するため旧変数名を残しつつ
     視覚を新トークンへ寄せる。Phase 2 以降で各セクション刷新時に
     順次新変数名へ置き換えていく。
     =========================================================== */

  /* 旧 primary（青）→ エディトリアルな濃墨へ */
  --primary:        var(--color-text);
  --primary-dark:   var(--color-text);
  --primary-light:  var(--color-bg-alt);

  /* 旧 accent（オレンジ）→ 主CTA赤へ集約 */
  --accent:         var(--color-cta);
  --accent-dark:    var(--color-cta-hover);

  /* テキスト */
  --text-primary:   var(--color-text);
  --text-secondary: var(--color-text-sub);
  --text-light:     var(--color-text-muted);

  /* 背景 */
  --bg-white:       var(--color-surface);
  --bg-light:       var(--color-bg);
  --bg-section:     var(--color-bg-alt);
  --bg-dark:        var(--color-dark);

  --border:         var(--color-border);
  --success:        #2F7A4D;  /* 落ち着いた緑（フォーム成功） */
  --error:          #B43D2E;  /* CTA色を流用 */

  /* §8.3 角丸：8px以上 → 2px に統一 */
  --radius-sm: 2px;
  --radius-md: 2px;
  --radius-lg: 2px;
  --radius-xl: 2px;

  /* 旧スペーシング名 → 新スケールへ写像 */
  --space-xs:  var(--space-1);
  --space-sm:  var(--space-2);
  --space-md:  var(--space-3);
  --space-lg:  var(--space-5);
  --space-xl:  var(--space-7);
  --space-2xl: var(--space-8);

  /* フォント：display は明朝へ切替（h1/h2/h3 はこれを使う） */
  --font-body:    var(--font-sans-jp);
  --font-display: var(--font-serif-jp);
  --font-ja:      var(--font-sans-jp);
  --font-en:      var(--font-serif-en);

  /* 据え置き */
  --container-padding: 24px;
  --header-height: 90px;
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 400;
  line-height: 2.0;
  letter-spacing: 0.03em;
  color: var(--text-primary);
  background-color: var(--bg-white);
  padding-top: var(--header-height);
  padding-bottom: 80px; /* 追従CTAバナー分（PC） */
}

h1, h2, h3 {
  font-family: var(--font-serif-jp);
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: 0.04em;
}

h1 { font-size: 32px; }
h2 { font-size: 26px; }
h3 { font-size: 19px; font-weight: 600; letter-spacing: 0.05em; }
h4 { font-size: 16px; font-weight: 600; font-family: var(--font-sans-jp); }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

ul, ol {
  list-style: none;
}

/* --------------------------------------------------------------------------
   コンテナ
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* --------------------------------------------------------------------------
   セクション共通
   -------------------------------------------------------------------------- */
.section {
  padding: var(--space-xl) 0;
}

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

.section__label {
  display: block;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.section__title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.section__desc {
  font-size: 15.5px;
  color: var(--text-secondary);
  line-height: 2.0;
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

/* --------------------------------------------------------------------------
   ボタン
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 16px 32px;
  border-radius: var(--radius-md);
  font-family: var(--font-ja);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--primary);
  color: var(--bg-white);
}

.btn--primary:hover {
  background-color: var(--primary-dark);
  transform: none;
  box-shadow: none;
  opacity: 1;
}

.btn--accent {
  background: var(--color-cta);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  padding: 20px 48px;
  border-radius: var(--radius-md);
  border: none;
  transition: background 0.2s ease;
  position: relative;
}

.btn--accent:hover {
  background: var(--color-cta-hover);
  opacity: 1;
}

.btn--accent:active {
  background: var(--color-cta-hover);
}

.btn--ghost {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn--ghost:hover {
  background-color: var(--primary);
  color: var(--bg-white);
  opacity: 1;
}

.btn--ghost-white {
  background-color: transparent;
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: var(--bg-white);
}

.btn--ghost-white:hover {
  background-color: var(--bg-white);
  color: var(--primary);
  opacity: 1;
}

.btn--solid-white {
  background: white;
  color: var(--primary);
  font-size: 16px;
  font-weight: 700;
  padding: 18px 40px;
  border-radius: var(--radius-md);
  box-shadow: none;
  border-bottom: 3px solid var(--border);
}

.btn--solid-white:hover {
  background-color: var(--primary-light);
  transform: none;
  opacity: 1;
}

/* CTA補足テキスト */
.cta-btn-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-sub-text {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 8px;
  font-weight: 500;
  text-align: center;
}

.btn--lg {
  padding: 20px 40px;
  font-size: 16px;
}

/* --------------------------------------------------------------------------
   LINE 友達追加ボタン（.btn-line）
   - PC: 緑地白字テキストボタン「LINEで友達登録」、ヘッダーCTAと同じ高さ
   - SP: 正方形 36px アイコン（"LINE" テキストのみ）
   - https://lin.ee/5tWQat9g に遷移
   -------------------------------------------------------------------------- */
.btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background-color: #06C755;
  color: #fff;
  text-decoration: none;
  font-family: Arial, "Helvetica Neue", "Noto Sans JP", sans-serif;
  font-weight: 700;
  border-radius: 6px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background-color 0.15s ease;
  /* PC: テキストボタン化 */
  padding: 14px 24px;
  font-size: 25px;
  height: auto;
}
.btn-line:hover {
  background-color: #05a847;
  color: #fff;
}
.btn-line__pc {
  display: inline;
}
.btn-line__sp {
  display: none;
}
@media (max-width: 768px) {
  .btn-line {
    width: 36px;
    height: 36px;
    padding: 0;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.04em;
  }
  .btn-line__pc {
    display: none;
  }
  .btn-line__sp {
    display: inline;
  }
}

/* --------------------------------------------------------------------------
   電話 CTA 表示の一括非表示（2026-05-20 時点、再表示するまで一時的に隠す）
   - 復活させる時はこのブロックを削除またはコメントアウト
   -------------------------------------------------------------------------- */
.btn-tel,
.header__tel-inline,
.cta-section__tel,
.complete-screen__tel,
.sticky-cta__tel {
  display: none !important;
}

/* --------------------------------------------------------------------------
   電話 CTA ボタン（.btn-tel）— サイト共通の電話相談ボタン
   - フッターを除く全箇所で使用
   - 3 要素構成: アイコン + ラベル「お電話での相談はこちら」 + 電話番号
   - SP では label を非表示にしてアイコン + 番号だけに
   -------------------------------------------------------------------------- */
.btn-tel {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background-color: var(--color-surface, #fff);
  border: 1px solid var(--color-accent, #B89968);
  border-radius: var(--radius-md, 6px);
  color: var(--color-accent, #B89968);
  text-decoration: none;
  font-family: var(--font-sans-jp);
  line-height: 1.2;
  transition: background-color 0.15s ease, color 0.15s ease;
  cursor: pointer;
}

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

.btn-tel__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-tel__icon svg,
.btn-tel__icon i {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.btn-tel__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.btn-tel__label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.btn-tel__number {
  font-family: var(--font-sans-jp);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* SP: ラベルを非表示にしてアイコン+番号だけ */
@media (max-width: 768px) {
  .btn-tel {
    padding: 8px 14px;
    gap: 8px;
  }
  .btn-tel__label {
    display: none;
  }
  .btn-tel__number {
    font-size: 15px;
  }
}

/* --------------------------------------------------------------------------
   カードコンポーネント
   -------------------------------------------------------------------------- */
.card {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 1px 6px rgba(60, 50, 40, 0.04);
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  box-shadow: none;
  transform: none;
}

/* --------------------------------------------------------------------------
   S1: ヘッダー
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  height: var(--header-height);
  background-color: #ffffff;
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}

.header.is-scrolled {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.header__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.header__logo {
  flex-shrink: 0;
}

.header__logo-link {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  opacity: 1;
}

.header__logo-img {
  display: block;
  height: 77px;
  width: auto;
}
@media (max-width: 768px) {
  .header__logo-img {
    height: 48px;
  }
}

.header__logo-text {
  font-family: var(--font-ja);
  font-size: 14px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 0.01em;
}

.header__logo-sub {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.header__nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.header__nav-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  padding: 4px 0;
  position: relative;
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.header__nav-link:hover {
  color: var(--primary);
  opacity: 1;
}

.header__nav-link:hover::after {
  width: 100%;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-shrink: 0;
  margin-left: auto;
}

/* 新ヘッダー: 電話番号インライン */
.header__tel-inline {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-decoration: none;
  opacity: 1;
  line-height: 1.2;
}

.header__tel-inline:hover {
  opacity: 1;
}

.header__tel-inline .header__tel-label {
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.header__tel-inline .header__tel-number {
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.02em;
}

/* 新ヘッダー: CTAボタン（「【無料】調査依頼」短文化版） */
.header__cta-inline {
  padding: 18px 24px;
  font-size: 27px;
  white-space: nowrap;
  line-height: 1.1;
}
/* PC/SP 文言切り替え用の span */
.header__cta-inline__pc {
  display: inline;
}
.header__cta-inline__sp {
  display: none;
}

/* ヘッダー内では btn-tel と CTA ボタンの高さ・サイズを揃える */
.header__actions .btn-tel,
.header__actions .header__cta-inline {
  min-height: auto;
  box-sizing: border-box;
}
.header__actions .btn-tel {
  padding: 8px 22px;
}

/* PC ではメインナビをハンバーガーに集約（意図的に非表示） */
.header__nav { display: none; }

.header__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 56px;
  height: 56px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.header__hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.header__hamburger.is-active .header__hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__hamburger.is-active .header__hamburger-line:nth-child(2) {
  opacity: 0;
}

.header__hamburger.is-active .header__hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* SPドロワーメニュー（フローティングパネル） */
.header__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  z-index: 200;
}

.header__overlay.is-open {
  display: block;
}

.header__drawer {
  display: block;
  position: fixed;
  top: 68px;
  right: 12px;
  left: auto;           /* 左指定を解除 */
  width: 30%;           /* 画面幅の半分 */
  max-width: 600px;     /* 大画面でも600pxに制限 */
  background-color: var(--bg-white);
  z-index: 199;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow-y: auto;
  max-height: calc(100svh - 84px);
  padding: 20px 20px 24px;
  transform: translateY(-10px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.25s;
}

.header__drawer.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.header__drawer-nav {
  margin-bottom: 16px;
}

.header__drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
}

.header__drawer-link::after {
  content: '›';
  font-size: 20px;
  color: var(--primary);
  line-height: 1;
}

.header__drawer-link:hover {
  color: var(--primary);
  opacity: 1;
}

.header__drawer-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

/* =========================================================
   S2: ヒーローセクション（2カラム：テキスト左 / 画像右）
   ========================================================= */

.hero {
  position: relative;
  width: 100%;
  background: var(--color-bg);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 45% 55%;
  align-items: center;
  min-height: 720px;
  max-width: var(--container-wide);
  margin: 0 auto;
}

/* --- 左：テキストエリア --- */
.hero__content {
  padding: var(--space-5) var(--space-7) var(--space-6) var(--space-6);
  max-width: 560px;
}

.hero__lead {
  font-family: var(--font-sans-jp);
  font-size: 13px;
  color: var(--color-text-sub);
  letter-spacing: 0.05em;
  margin: 0 0 var(--space-5) 0;
}

.hero__title {
  font-family: var(--font-serif-jp);
  font-size: clamp(26px, 2.2vw, 34px);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--color-text);
  margin: 0 0 var(--space-4) 0;
}

.hero__desc {
  font-family: var(--font-sans-jp);
  font-size: 14px;
  line-height: 1.9;
  color: var(--color-text-sub);
  margin: 0 0 var(--space-5) 0;
}

/* ==========================================================================
   実績バッジ(案A:横並びレイアウト)
   - エリア | 数字(主役) | 施工実績 を横一列に
   - CTAボタンと幅を揃えつつ、高さも控えめに
   - PCのみ表示(モバイルは非表示維持)
   ========================================================================== */
.hero__badge {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 20px;
  background: var(--color-bg-alt);
  border-left: 4px solid var(--color-accent);
  margin-bottom: var(--space-4);
  font-family: var(--font-sans-jp);
  width: 100%;
  box-sizing: border-box;
}

.hero__badge-area {
  font-size: 13px;
  color: var(--color-text-sub);
  letter-spacing: 0.05em;
  line-height: 1.2;
  white-space: nowrap;
}

.hero__badge-number {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  line-height: 1;
  padding: 0 12px;
  border-left: 1px solid var(--border, #d8d4c5);
  border-right: 1px solid var(--border, #d8d4c5);
}

.hero__badge-num {
  font-family: var(--font-numeric);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.02em;
  line-height: 1;
}

.hero__badge-unit {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.hero__badge-label {
  font-size: 13px;
  color: var(--color-text-sub);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* --- CTA エリア --- */
.hero__cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 420px;
}

.hero__cta-primary,
.hero__cta-secondary {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 18px 24px;
  font-family: var(--font-sans-jp);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.hero__cta-primary {
  background: var(--color-cta);
  color: #fff;
  border: none;
  position: relative;
  padding: 23px 24px;
  font-size: 16px;
}
.hero__cta-primary:hover {
  background: var(--color-cta-hover);
}
.hero__cta-primary::after {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  pointer-events: none;
}

.hero__cta-note {
  font-size: 11px;
  color: var(--color-text-sub);
  text-align: center;
  margin: -4px 0 0 0;
  line-height: 1.6;
}

.hero__cta-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.hero__cta-secondary:hover {
  background: var(--color-bg-alt);
}

.hero__cta-arrow {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* --- 右：画像エリア --- */
.hero__photo {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 600px;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Hero 画像スライダー（フェード切替） */
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}
.hero__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
@media (prefers-reduced-motion: reduce) {
  .hero__slide {
    transition: none;
  }
}

.hero__photo-caption {
  position: absolute;
  bottom: 12px;
  right: 16px;
  font-family: var(--font-sans-jp);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  letter-spacing: 0.05em;
}

/* --- レスポンシブ --- */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 50% 50%;
    min-height: 600px;
  }
  .hero__content {
    padding: var(--space-7) var(--space-5);
  }
}

@media (max-width: 768px) {
  /* SPでは縦積み：画像が上、テキストが下 */
  .hero__inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero__photo {
    order: -1;          /* 画像を上に */
    min-height: auto;
    aspect-ratio: 16 / 9;
  }

  .hero__content {
    padding: var(--space-6) var(--space-4) var(--space-7);
    max-width: 100%;
  }

  .hero__title {
    font-size: 24px;
  }

  .hero__cta {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 22px;
  }
  .hero__photo {
    aspect-ratio: 16 / 9;
  }
}

/* --------------------------------------------------------------------------
   S3: お悩み訴求
   -------------------------------------------------------------------------- */
.problems {
  background-color: var(--bg-section);
  padding-top: var(--space-6);
}

.problems__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.problem-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: var(--space-lg);
  text-align: center;
  transition: all 0.3s ease;
}

.problem-card:hover {
  box-shadow: none;
  transform: none;
}

.problem-card__icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.problem-card__icon-wrap i {
  width: 32px;
  height: 32px;
  color: var(--primary);
  stroke-width: 1.5;
}

.problem-card__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  line-height: 1.4;
}

.problem-card__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   S4: サービス概要
   -------------------------------------------------------------------------- */
.service-overview__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.service-overview__body {
  /* テキスト側 */
}

.service-overview__text {
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: var(--space-lg);
}

.service-overview__text p {
  margin-bottom: var(--space-md);
}

.service-overview__text p:last-child {
  margin-bottom: 0;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.checklist__item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.checklist__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--color-bg-alt);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.checklist__icon svg {
  width: 14px;
  height: 14px;
}

.service-overview__image img {
  border-radius: var(--radius-md);
  width: 100%;
}

/* --------------------------------------------------------------------------
   S5: 取り扱い商品（カテゴリ×サブカテゴリ 2ペイン構成）
   -------------------------------------------------------------------------- */
.products-v2 {
  background-color: var(--bg-section);
}

.products-v2__layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-3);
  margin-top: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
}

/* PC では SP 用改行・見出しは非表示（SP メディアクエリ内で表示に切替） */
.sp-br {
  display: none;
}
.products-v2__nav-heading,
.products-v2__panels-heading {
  display: none;
}

/* 左：カテゴリナビ */
.products-v2__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-right: 1px solid var(--color-divider);
  padding-right: var(--space-3);
}

.products-v2__nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  padding: 10px var(--space-3);
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  font-family: var(--font-sans-jp);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.products-v2__nav-item:hover {
  background: var(--color-bg-alt);
}

.products-v2__nav-item.is-active {
  background: var(--color-accent);
  color: var(--color-surface);
}

.products-v2__nav-item.is-active .products-v2__nav-count {
  background: rgba(255, 255, 255, 0.2);
  color: var(--color-surface);
}

.products-v2__nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}

.products-v2__nav-icon i,
.products-v2__nav-icon svg {
  width: 20px;
  height: 20px;
}

.products-v2__nav-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.products-v2__nav-count {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 22px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 600;
  background: var(--color-bg-alt);
  color: var(--color-accent);
  border-radius: var(--radius-md);
  font-family: var(--font-sans-jp);
  letter-spacing: 0.05em;
}

.products-v2__nav-arrow {
  display: none;
}

/* 右：サブカテゴリパネル */
.products-v2__panels {
  position: relative;
}

.products-v2__panel {
  display: none;
}

.products-v2__panel.is-active {
  display: block;
  animation: productsV2PanelFadeIn 0.2s ease;
}

@keyframes productsV2PanelFadeIn {
  from { opacity: 0; transform: translateY(2px); }
  to   { opacity: 1; transform: translateY(0); }
}

.products-v2__panel-header {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  padding: 4px var(--space-2) var(--space-2);
  border-bottom: 1px solid var(--color-divider);
  margin-bottom: var(--space-2);
}

.products-v2__panel-title {
  font-family: var(--font-serif-jp);
  font-size: 22px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
  letter-spacing: 0.02em;
}

.products-v2__panel-meta {
  font-size: 13px;
  color: var(--color-text-muted);
  font-family: var(--font-sans-jp);
  letter-spacing: 0.05em;
}

.products-v2__sub-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  max-height: 210px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--color-accent-soft) transparent;
}

.products-v2__sub-list::-webkit-scrollbar {
  width: 6px;
}
.products-v2__sub-list::-webkit-scrollbar-track {
  background: transparent;
}
.products-v2__sub-list::-webkit-scrollbar-thumb {
  background: var(--color-accent-soft);
  border-radius: var(--radius-md);
}
.products-v2__sub-list::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

.products-v2__sub-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 11px var(--space-3);
  border-bottom: 1px solid var(--color-divider);
}

.products-v2__sub-item:last-child {
  border-bottom: none;
}

.products-v2__sub-info {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
}

.products-v2__sub-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text);
  font-family: var(--font-sans-jp);
  margin: 0;
  letter-spacing: 0.02em;
  flex: 1;
  min-width: 0;
}

/* 品名横の「?」ヘルプボタン（ツールチップ本体は main.js が body 直下に生成） */
.products-v2__sub-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 6px;
  padding: 0;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-text-sub);
  background: var(--color-bg);
  border: 1px solid var(--color-divider);
  border-radius: 50%;
  cursor: help;
  flex-shrink: 0;
  vertical-align: middle;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.products-v2__sub-help:hover,
.products-v2__sub-help:focus-visible {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: var(--color-surface);
  outline: none;
}

/* フローティングツールチップ（main.js が body 直下に 1 つ生成し座標を追従） */
.products-tooltip {
  position: fixed;
  z-index: 9999;
  max-width: min(280px, calc(100vw - 16px));
  padding: 9px 13px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: #FBF8F3;
  background: #4A3526;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(74, 53, 38, 0.32);
  pointer-events: none;
}

.products-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: var(--arrow-x, 50%);
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #4A3526;
}

.products-tooltip--below::after {
  top: auto;
  bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: #4A3526;
}

.products-v2__sub-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.products-v2__sub-price {
  font-size: 19px;
  font-weight: 600;
  color: var(--color-text);
  font-family: var(--font-sans-jp);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.products-v2__sub-price.is-quote {
  color: var(--color-text-sub);
  font-weight: 500;
  font-family: var(--font-sans-jp);
  font-size: 15px;
  letter-spacing: 0.02em;
}

.products-v2__sub-price-tax {
  font-size: 11px;
  font-weight: 400;
  margin-left: 4px;
  color: var(--color-text-sub);
  letter-spacing: 0;
}

.products-v2__sub-addon {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-accent);
  background: var(--color-bg);
  border: 1px solid var(--color-accent-soft);
  border-radius: var(--radius-md);
  cursor: help;
  white-space: nowrap;
}

.products-v2__sub-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
  background: var(--color-surface);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-md);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
  letter-spacing: 0.04em;
}

.products-v2__sub-cta:hover {
  background: var(--color-accent);
  color: var(--color-surface);
}

.products-v2__sub-cta svg {
  width: 11px;
  height: 11px;
}

.products-v2__panel-note {
  margin-top: var(--space-2);
  padding: 10px 12px;
  font-size: 12px;
  color: var(--color-text-sub);
  line-height: 1.7;
  background: var(--color-bg);
  border-left: 2px solid var(--color-accent-soft);
}

/* タブレット */
@media (max-width: 1024px) {
  .products-v2__layout {
    grid-template-columns: 220px 1fr;
    padding: var(--space-3);
    gap: var(--space-2);
  }
  .products-v2__nav-item {
    padding: 12px;
    font-size: 13px;
  }
  .products-v2__panel-title {
    font-size: 22px;
  }
}

/* モバイル：ナビは 2 列グリッド、パネルは下に表示 */
@media (max-width: 768px) {
  .products-v2__layout {
    grid-template-columns: 1fr;
    padding: 0;
    gap: 12px;
    background: transparent;
    border: none;
  }
  .sp-br {
    display: inline;
  }
  .products-v2__nav-heading,
  .products-v2__panels-heading {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    font-family: var(--font-sans-jp);
    margin: 0 0 12px;
    letter-spacing: 0.02em;
  }
  .products-v2__panels-heading {
    margin-top: 24px;
  }
  /* 品目名が 11 文字以上のものは SP で 10% 縮小 */
  .products-v2__sub-name--long {
    font-size: 90%;
  }
  .products-v2__nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    flex-direction: row;
    border-right: none;
    padding-right: 0;
  }
  .products-v2__nav-item {
    background: var(--color-surface);
    border: 1px solid var(--color-divider);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    gap: 8px;
  }
  .products-v2__nav-item:first-child {
    border-top: 1px solid var(--color-divider);
  }
  .products-v2__nav-label {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.3;
    font-size: 11px;
    letter-spacing: -0.02em;
  }
  .products-v2__nav-count {
    font-size: 12px;
  }
  .products-v2__nav-arrow {
    display: none;
  }
  .products-v2__panel {
    background: var(--color-bg);
    padding: var(--space-3);
    border: 1px solid var(--color-divider);
    border-radius: var(--radius-md);
  }
  .products-v2__sub-list {
    max-height: none;
    overflow-y: visible;
    padding-right: 0;
  }
  .products-v2__sub-item {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 4px;
  }
  .products-v2__sub-info {
    flex: 1;
    min-width: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .products-v2__sub-name {
    font-size: 14.5px;
    line-height: 1.4;
  }
  .products-v2__sub-price {
    font-size: 15px;
  }
  .products-v2__sub-cta {
    align-self: center;
    flex-shrink: 0;
    padding: 6px 10px;
    font-size: 12px;
  }
  .products-v2__panel-title {
    font-size: 18px;
  }
  .products-v2__panel-meta {
    font-size: 13px;
  }
}

/* --------------------------------------------------------------------------
   S6: 選ばれる理由
   -------------------------------------------------------------------------- */
.reasons__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.reason-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.reason-item:nth-child(even) {
  direction: rtl;
}

.reason-item:nth-child(even) > * {
  direction: ltr;
}

.reason-item__body {
  /* テキスト側 */
}

.reason-item__number {
  font-family: var(--font-en);
  font-size: 60px;
  font-weight: 800;
  color: var(--primary-light);
  line-height: 1;
  margin-bottom: var(--space-sm);
  display: block;
}

.reason-item__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  line-height: 1.4;
}

.reason-item__title::before {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background-color: var(--primary);
  margin-bottom: var(--space-sm);
  border-radius: 2px;
}

.reason-item__desc {
  color: var(--text-secondary);
  line-height: 1.9;
}

.reason-item__image img {
  border-radius: var(--radius-md);
  width: 100%;
}

/* --------------------------------------------------------------------------
   S7: 施工の流れ
   -------------------------------------------------------------------------- */
.flow {
  background-color: var(--bg-section);
}

.flow__steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}

/* 接続線 */
.flow__steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(10% + 18px);
  right: calc(10% + 18px);
  height: 2px;
  background-color: var(--primary-light);
  z-index: 0;
}

.flow__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 var(--space-md);
  position: relative;
  z-index: 1;
}

.flow__step-number {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--bg-white);
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
  box-shadow: none;
}

.flow__step-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  line-height: 1.4;
}

.flow__step-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   S5: 施工の流れ（v2 / 左番号ライン＋右コンテンツ構造）
   -------------------------------------------------------------------------- */
.flow-steps-v2 {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.flow-step-v2 {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0 24px;
}

.flow-step-v2__left {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.flow-step-v2__num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.flow-step-v2__line {
  width: 2px;
  flex: 1;
  background: var(--primary-light);
  min-height: 24px;
}

.flow-step-v2__right {
  padding-bottom: 32px;
}

.flow-step-v2__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 16px;
  padding-top: 12px;
}

.flow-step-v2__title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin: 0;
}

/* 所要時間バッジ（ピル型） */
.flow-step-v2__time-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
  white-space: nowrap;
}

.flow-step-v2__time-badge i {
  width: 13px;
  height: 13px;
  stroke-width: 2.2;
}

.flow-step-v2__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.flow-step-v2__card {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-md);
  align-items: flex-start;
}

.flow-step-v2__card--customer {
  background: var(--bg-section);
  border: 1px solid var(--border);
}

.flow-step-v2__card--us {
  background: var(--primary-light);
  border: 1px solid rgba(31, 27, 22, 0.2);
}

.flow-step-v2__card-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.flow-step-v2__card--customer .flow-step-v2__card-icon {
  background: white;
  color: var(--text-secondary);
}

.flow-step-v2__card--us .flow-step-v2__card-icon {
  background: white;
  color: var(--primary);
}

.flow-step-v2__card-icon i {
  width: 20px;
  height: 20px;
}

.flow-step-v2__card-content {
  flex: 1;
}

.flow-step-v2__card-label {
  font-size: 12px;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

.flow-step-v2__card--customer .flow-step-v2__card-label {
  color: var(--text-secondary);
}

.flow-step-v2__card--us .flow-step-v2__card-label {
  color: var(--primary);
}

.flow-step-v2__card p {
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  color: var(--text-secondary);
}

.flow-step-v2__card--us p {
  color: var(--text-primary);
}

/* PC では chevron 非表示（アコーディオンは SP のみ） */
.flow-step-v2__chevron {
  display: none;
}

/* SP 専用：お客様 / 私たち をタブで切替（PC では display: none） */
.flow-step-tabs {
  display: none;
  gap: 4px;
  background: var(--bg-section);
  padding: 4px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.flow-step-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 6px 10px;
  font-family: var(--font-sans-jp);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.flow-step-tab i {
  width: 14px;
  height: 14px;
}
.flow-step-tab.is-active {
  background: var(--bg-white);
  color: var(--primary);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

@media (max-width: 768px) {
  .flow-steps-v2 {
    padding: 24px;
  }
  .flow-step-v2 {
    grid-template-columns: 40px 1fr;
    gap: 0 16px;
  }
  .flow-step-v2__num {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  /* SP アコーディオン：title-row をクリック可能に、chevron を表示 */
  .flow-step-v2__title-row[data-flow-toggle] {
    cursor: pointer;
    user-select: none;
    padding-right: 8px;
  }
  .flow-step-v2__chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: auto;
    color: var(--color-text-muted);
    transition: transform 0.2s ease;
    flex-shrink: 0;
  }
  .flow-step-v2.is-open .flow-step-v2__chevron {
    transform: rotate(180deg);
  }
  /* 閉じ状態では tabs / cards を非表示 */
  .flow-step-v2:not(.is-open) .flow-step-tabs,
  .flow-step-v2:not(.is-open) .flow-step-v2__cards {
    display: none;
  }
  /* 閉じ状態では body の余白も削除して詰める */
  .flow-step-v2:not(.is-open) .flow-step-v2__title-row {
    margin-bottom: 0;
  }
  .flow-step-tabs {
    display: flex;
  }
  .flow-step-v2__cards {
    grid-template-columns: 1fr;
  }
  .flow-step-v2__cards[data-active-pane="customer"] [data-pane="us"],
  .flow-step-v2__cards[data-active-pane="us"] [data-pane="customer"] {
    display: none;
  }
  .flow-step-v2__card {
    padding: 12px;
    gap: 10px;
  }
  .flow-step-v2__card-icon {
    width: 28px;
    height: 28px;
  }
  .flow-step-v2__card-icon i {
    width: 16px;
    height: 16px;
  }
  .flow-step-v2__card p {
    font-size: 13.5px;
    line-height: 1.65;
  }
  .flow-step-v2__title-row {
    gap: 8px 12px;
    margin-bottom: 12px;
  }
  .flow-step-v2__title {
    font-size: 16px;
  }
  .flow-step-v2__time-badge {
    font-size: 11.5px;
    padding: 3px 10px;
    white-space: normal;
  }
  .flow-step-v2__right {
    padding-bottom: 24px;
  }
}

/* --------------------------------------------------------------------------
   S8: お客様の声
   -------------------------------------------------------------------------- */
.voices__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.voice-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: var(--space-lg);
  transition: all 0.3s ease;
}

.voice-card:hover {
  box-shadow: none;
  transform: none;
}

.voice-card__comment {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-top: var(--space-md);
  margin-bottom: 0;
}

.voice-card__footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "avatar name stars"
    "avatar meta meta";
  align-items: center;
  column-gap: var(--space-md);
  row-gap: 2px;
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
}

.voice-card__avatar {
  grid-area: avatar;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.voice-card__avatar i {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.voice-card__info {
  display: contents;
}

.voice-card__name {
  grid-area: name;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  align-self: end;
}

.voice-card__meta {
  grid-area: meta;
  font-size: 12px;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.voice-card__stars {
  grid-area: stars;
  color: var(--accent);
  font-size: 16px;
  letter-spacing: 2px;
  align-self: end;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   S9: FAQ（プレビュー）
   -------------------------------------------------------------------------- */
.faq-preview {
  background-color: var(--bg-section);
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.faq__item {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
}

.faq__item.is-open {
  border-color: var(--primary);
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-ja);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  transition: background-color 0.2s ease;
}

.faq__question:hover {
  background-color: var(--bg-light);
}

.faq__question-label {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--bg-white);
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq__question-text {
  flex: 1;
}

.faq__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.faq__icon svg {
  width: 14px;
  height: 14px;
  stroke: var(--primary);
  transition: stroke 0.3s ease;
}

.faq__item.is-open .faq__icon {
  transform: rotate(180deg);
  background-color: var(--primary);
}

.faq__item.is-open .faq__icon svg {
  stroke: var(--bg-white);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq__answer-inner {
  padding: 0 var(--space-lg) var(--space-md);
  padding-left: calc(var(--space-lg) + 28px + var(--space-md));
}

.faq__answer-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.faq-preview__more {
  text-align: center;
}

/* --------------------------------------------------------------------------
   S10: CTAセクション
   -------------------------------------------------------------------------- */
.cta-section {
  background: linear-gradient(135deg, #0F0D0A 0%, #1F1B16 50%, #2A2620 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Crect x='18' y='0' width='4' height='40'/%3E%3Crect x='0' y='18' width='40' height='4'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.cta-section__inner {
  position: relative;
  z-index: 1;
}

.cta-section__label {
  display: block;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.cta-section__title {
  font-size: 28px;
  font-weight: 700;
  color: var(--bg-white);
  line-height: 1.4;
  margin-bottom: var(--space-md);
}

.cta-section__desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-lg);
}

.cta-section__actions {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.cta-section__tel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.cta-section__tel-number {
  font-family: var(--font-en);
  font-size: 32px;
  font-weight: 800;
  color: var(--bg-white);
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.2s ease;
}

.cta-section__tel-number:hover {
  color: var(--bg-white);
  opacity: 0.85;
}

.cta-section__tel-hours {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   S11: ブログプレビュー
   -------------------------------------------------------------------------- */
.blog-preview__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.blog-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.3s ease;
}

.blog-card:hover {
  box-shadow: none;
  transform: none;
}

.blog-card__img {
  width: 100%;
  aspect-ratio: 5/3;
  object-fit: cover;
}

.blog-card__body {
  padding: var(--space-md);
}

.blog-card__date {
  font-family: var(--font-en);
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: var(--space-xs);
  display: block;
}

.blog-card__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

.blog-card__more {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

.blog-preview__more {
  text-align: center;
}

/* --------------------------------------------------------------------------
   S12: フッター
   -------------------------------------------------------------------------- */
.footer {
  background-color: var(--bg-dark);
  padding: var(--space-xl) 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.footer__brand {
  /* ブランド情報カラム */
}

.footer__logo {
  font-family: var(--font-ja);
  font-size: 16px;
  font-weight: 900;
  color: var(--bg-white);
  display: block;
  margin-bottom: var(--space-md);
}

.footer__brand-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.footer__tel {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer__tel-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}

.footer__tel-number {
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 700;
  color: var(--bg-white);
  letter-spacing: 0.05em;
}

.footer__tel-number:hover {
  color: var(--accent);
  opacity: 1;
}

.footer__tel-hours {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}

.footer__col-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--bg-white);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__link {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.3s ease;
}

.footer__link:hover {
  color: var(--bg-white);
  opacity: 1;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--space-md) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.footer__copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}

.footer__legal {
  display: flex;
  gap: var(--space-md);
}

.footer__legal-link {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}

.footer__legal-link:hover {
  color: rgba(255, 255, 255, 0.7);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   追従CTAバナー（PC/SP共通・画面下部fixed）
   -------------------------------------------------------------------------- */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background-color: var(--primary);
  box-shadow: none;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.sticky-cta.is-visible {
  transform: translateY(0);
}

.sticky-cta__inner {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  width: 100%;
  height: 84px;
}

@media (min-width: 769px) {
  .sticky-cta__inner {
    height: 85px;        /* 104→95 */
  }
  .sticky-cta__btn,
  .sticky-cta__btn-label {
    font-size: 26px;
  }
  .sticky-cta__tel-number {
    font-size: 32px;
  }
}

.sticky-cta__tel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  padding: 0 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  transition: opacity 0.2s ease;
}

.sticky-cta__tel:hover {
  opacity: 0.85;
  color: #fff;
}

.sticky-cta__tel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.sticky-cta__tel-icon i {
  width: 28px;
  height: 28px;
  stroke-width: 1.6;
}

.sticky-cta__tel-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.sticky-cta__tel-label {
  font-family: var(--font-sans-jp);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  opacity: 0.7;
}

.sticky-cta__tel-number {
  font-family: var(--font-sans-jp);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.sticky-cta__btn {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
  font-family: var(--font-sans-jp);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background-color 0.2s ease;
  white-space: nowrap;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.sticky-cta__btn-arrow {
  font-family: var(--font-serif-en);
  font-size: 18px;
  line-height: 1;
  opacity: 0.85;
  transform: translateY(-1px);
}

.sticky-cta__btn--primary {
  background-color: var(--color-cta);
  color: #fff;
}

.sticky-cta__btn--primary:hover {
  background-color: var(--color-cta-hover);
  color: #fff;
}

.sticky-cta__btn--primary::after {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  pointer-events: none;
}

.sticky-cta__btn.is-disabled {
  background-color: #4A443C;
  color: rgba(255, 255, 255, 0.8);
  cursor: default;
  pointer-events: none;
}

.sticky-cta__btn.is-disabled:hover {
  background-color: #4A443C;
  color: rgba(255, 255, 255, 0.8);
}

.sticky-cta__btn.is-disabled::after {
  border-color: rgba(255, 255, 255, 0.18);
}

.sticky-cta__btn--secondary {
  background-color: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.sticky-cta__btn--secondary:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.sticky-cta__btn--secondary::after {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   フェードインアニメーション
   -------------------------------------------------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* delay classes */
.fade-in--d1 { transition-delay: 0.1s; }
.fade-in--d2 { transition-delay: 0.2s; }
.fade-in--d3 { transition-delay: 0.3s; }
.fade-in--d4 { transition-delay: 0.4s; }
.fade-in--d5 { transition-delay: 0.5s; }

/* --------------------------------------------------------------------------
   ユーティリティ
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-lg { margin-top: var(--space-lg); }

/* --------------------------------------------------------------------------
   レスポンシブ: タブレット（max-width: 1024px）
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .header__nav {
    display: none;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }

  .reasons__list .reason-item {
    gap: var(--space-lg);
  }

  .flow__steps {
    grid-template-columns: repeat(3, 1fr);
    row-gap: var(--space-lg);
  }

  .flow__steps::before {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   レスポンシブ: SP（max-width: 768px）
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
    --space-xl: 40px;
    --space-2xl: 48px;
    --container-padding: 4px;
  }

  body {
    font-size: 15px;
    padding-bottom: 80px; /* 追従CTAバナー分（SP） */
  }

  h1 { font-size: 24px; }
  h2 { font-size: 21px; }
  h3 { font-size: 17px; }
  h4 { font-size: 15px; }

  /* ---- ヘッダー（SP はロゴ + 電話アイコン + ハンバーガー）---- */
  /* ヘッダー全体の左右パディングを縮小（24px → 12px） */
  .header__inner {
    padding: 0 12px;
    gap: 8px;
  }

  .header__actions {
    gap: var(--space-sm);
    flex-wrap: nowrap;
  }

  .header__actions .header__cta-inline {
    padding: 6px 8px;
    font-size: 12px;
    min-height: auto;
    line-height: 1.15;
    text-align: center;
  }
  .header__cta-inline__pc {
    display: none;
  }
  .header__cta-inline__sp {
    display: inline-block;
  }
  .header__cta-inline__sp br {
    display: inline;
  }

  .header__actions .btn-tel {
    padding: 0;
    width: 40px;
    height: 40px;
    min-height: 40px;
    border-radius: 50%;
    gap: 0;
    justify-content: center;
  }

  .header__actions .btn-tel__body {
    display: none;
  }

  /* ハンバーガーを縮小して画面に収める */
  .header__hamburger {
    width: 40px;
    height: 40px;
    padding: 6px;
    gap: 5px;
    flex-shrink: 0;
  }

  /* ドロワーをスマホ実寸に：画面端からはみ出さない幅・位置に */
  .header__drawer {
    top: calc(var(--header-height) + 4px);
    right: 8px;
    width: min(78vw, 320px);
    max-width: calc(100vw - 16px);
    padding: 16px 16px 20px;
    max-height: calc(100svh - var(--header-height) - 16px);
  }

  .header__drawer-link {
    padding: 12px 4px;
    font-size: 14px;
  }

  /* ---- オーダーフォーム：SPでは画面幅いっぱいに使う ---- */
  .order-progress__inner,
  .order-body__inner {
    max-width: 100%;
    padding: 0 16px;
  }

  /* ---- セクション共通 ---- */
  .section {
    padding: 40px 0;
  }

  .section__header {
    margin-bottom: 28px;
  }

  .section__label,
  .section-label {
    font-size: 11px;
  }

  .section__title,
  .section-title {
    font-size: 21px;
  }

  .section__desc,
  .section-desc,
  .section__subtitle {
    font-size: 14px;
  }

  /* ---- ヒーロー：S2 ヒーローセクション内に統合（base CSS 直下のメディアクエリ参照） ---- */
  .hero__badge {
    display: none;
  }

  /* ---- お悩みカード ---- */
  .problems__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .problem-card {
    padding: 16px;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "icon title"
      "desc desc";
    column-gap: 12px;
    row-gap: 8px;
    align-items: center;
    text-align: left;
  }

  .problem-card__icon-wrap {
    width: 44px;
    height: 44px;
    grid-area: icon;
    margin-bottom: 0;
  }

  .problem-card__icon-wrap i {
    width: 22px;
    height: 22px;
  }

  .problem-card__title {
    font-size: 15px;
    grid-area: title;
    margin-bottom: 0;
  }

  .problem-card__desc {
    font-size: 13.5px;
    line-height: 1.7;
    grid-area: desc;
    margin: 0;
  }

  /* ---- サービス概要 ---- */
  .service-overview__inner {
    grid-template-columns: 1fr;
  }

  .service-overview__image {
    order: -1;
  }

  .service-overview__image img {
    max-height: 240px;
    object-fit: cover;
    width: 100%;
  }

  .checklist {
    gap: 0;
  }
  .checklist__item {
    font-size: 14px;
    min-height: 56px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--color-divider);
  }
  .checklist__item:last-child {
    border-bottom: none;
  }
  .checklist__item:first-child {
    padding-top: 0;
  }

  .checklist__icon {
    width: 20px;
    height: 20px;
  }

  /* ---- 商品カード ---- */
  .products__grid {
    grid-template-columns: 1fr 1fr;
  }

  .product-card__img {
    aspect-ratio: auto;
    height: 140px;
    object-fit: cover;
  }

  .product-card__body {
    padding: 10px 12px 12px;
  }

  .product-card__title {
    font-size: 14px;
  }

  .product-card__link {
    font-size: 12px;
  }

  /* ---- 選ばれる理由 ---- */
  .reasons__list {
    gap: 24px;
  }

  .reason-item {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .reason-item:nth-child(even) {
    direction: ltr;
  }

  .reason-item__image img {
    max-height: 200px;
    object-fit: cover;
  }

  .reason-item__number {
    font-size: 40px;
  }

  .reason-item__title {
    font-size: 18px;
  }

  /* ---- 施工の流れ ---- */
  .flow__steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .flow__step {
    flex-direction: row;
    text-align: left;
    padding: 0;
    gap: var(--space-md);
    align-items: flex-start;
  }

  .flow__step-number {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    font-size: 14px;
    margin-bottom: 0;
  }

  .flow__step-title {
    font-size: 14px;
  }

  .flow__step-desc {
    font-size: 12px;
  }

  /* ---- お客様の声 ---- */
  .voices__grid {
    grid-template-columns: 1fr;
  }

  .voice-card {
    padding: 20px;
  }

  .voice-card__stars {
    font-size: 12px;
  }

  .voice-card__comment {
    font-size: 13px;
  }

  .voice-card__avatar {
    width: 36px;
    height: 36px;
  }

  .voice-card__avatar i {
    width: 18px;
    height: 18px;
  }

  /* ---- FAQ ---- */
  .faq__question {
    padding: 14px 16px;
    font-size: 14px;
  }

  .faq__answer-inner {
    padding: 0 16px 14px;
    padding-left: calc(16px + 28px + 12px);
  }

  .faq__answer-text {
    font-size: 13px;
  }

  /* ---- CTAセクション ---- */
  .cta-section__title {
    font-size: 20px;
  }

  .cta-section__desc {
    font-size: 13px;
  }

  .cta-section__tel-number {
    font-size: 26px;
  }

  .cta-section__tel-hours {
    font-size: 11px;
    text-align: center;
    line-height: 1.5;
  }

  .cta-section__actions {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: var(--space-md);
  }

  .cta-section__actions .btn {
    width: 100%;
  }

  /* ---- ブログカード ---- */
  .blog-preview__grid {
    grid-template-columns: 1fr;
  }

  .blog-card__img {
    aspect-ratio: auto;
    height: 120px;
    object-fit: cover;
  }

  .blog-card__body {
    padding: 10px 12px 12px;
  }

  /* ---- フッター ---- */
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .footer__brand-desc {
    font-size: 12px;
  }

  .footer__col-title {
    font-size: 12px;
    margin-bottom: 10px;
  }

  .footer__link {
    font-size: 12px;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  /* ---- 追従CTAバナー（SP） ---- */
  .sticky-cta__inner {
    height: 80px;
    flex-wrap: nowrap;
  }

  .sticky-cta__tel {
    flex: 0 0 auto;
    flex-direction: column;
    gap: 2px;
    padding: 0 12px;
    border-bottom: none;
  }

  .sticky-cta__tel-icon i {
    width: 18px;
    height: 18px;
  }

  .sticky-cta__tel-number {
    font-size: 16px;
  }

  .sticky-cta__tel-label {
    font-size: 9px;
  }

  .sticky-cta__btn {
    padding: 0 8px;
    font-size: 15px;
    text-align: center;
    line-height: 1.3;
    white-space: normal;
    gap: 0;
  }

  .sticky-cta__btn-arrow {
    display: none;
  }

  .sticky-cta__btn--primary::after,
  .sticky-cta__btn--secondary::after {
    inset: 6px;
  }
}

@media (max-width: 480px) {
  .products__grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   商品ページ共通スタイル
   ========================================================================== */

/* --------------------------------------------------------------------------
   パンくずリスト
   -------------------------------------------------------------------------- */
.breadcrumb {
  background-color: var(--bg-section);
  border-bottom: 1px solid var(--border);
}

.breadcrumb__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 12px var(--container-padding);
}

.breadcrumb__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.breadcrumb__item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 13px;
  color: var(--text-light);
}

.breadcrumb__item:not(:last-child)::after {
  content: '›';
  color: var(--text-light);
}

.breadcrumb__link {
  color: var(--primary);
  font-size: 13px;
}

.breadcrumb__link:hover {
  opacity: 0.7;
}

.breadcrumb__current {
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   商品ページタイトルエリア（S2）
   -------------------------------------------------------------------------- */
.item-title-section {
  background-color: var(--bg-section);
  padding: var(--space-lg) 0 var(--space-xl);
}

.item-title-section__tag {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  background-color: var(--primary-light);
  padding: 3px 12px;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

.item-title-section__h1 {
  font-size: 38px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.item-title-section__lead {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 700px;
}

/* --------------------------------------------------------------------------
   商品メインビジュアル（S3）
   -------------------------------------------------------------------------- */
.product-hero {
  background-color: var(--primary-light);
}

.product-hero__img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

/* --------------------------------------------------------------------------
   料金テーブル（S4）
   -------------------------------------------------------------------------- */
.price-table {
  background-color: var(--bg-white);
}

.price-table__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.price-table__title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 24px;
  background-color: var(--primary);
  border-radius: 2px;
  flex-shrink: 0;
}

.price-table__wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.price-table__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 420px;
}

.price-table__table thead th {
  background-color: var(--primary);
  color: var(--bg-white);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 20px;
  text-align: left;
  letter-spacing: 0.05em;
}

.price-table__table thead th:last-child {
  text-align: right;
}

.price-table__table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background-color 0.2s ease;
}

.price-table__table tbody tr:last-child {
  border-bottom: none;
}

.price-table__table tbody tr:hover {
  background-color: var(--bg-light);
}

.price-table__table tbody td {
  padding: 8px 20px;
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.5;
}

.price-table__table tbody td:last-child {
  text-align: right;
  font-family: var(--font-sans-jp);
  font-weight: 700;
  font-size: 16px;
  color: var(--primary);
  white-space: nowrap;
}

.price-table__note {
  margin-top: var(--space-md);
  font-size: 13px;
  color: var(--text-light);
  padding: var(--space-md);
  background-color: var(--bg-light);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--border);
  line-height: 1.7;
}
.price-table__note--list {
  list-style: none;
  padding: var(--space-md);
  padding-left: var(--space-md);
}
.price-table__note--list li {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
  margin: 0;
  padding: 0 0 4px;
}
.price-table__note--list li:last-child {
  padding-bottom: 0;
}

/* --------------------------------------------------------------------------
   商品ストーリー（S5）交互レイアウト
   -------------------------------------------------------------------------- */
.product-story {
  background-color: var(--bg-section);
}

.product-story__blocks {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.story-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

/* 偶数ブロックは左右反転 */
.story-block:nth-child(even) {
  direction: rtl;
}

.story-block:nth-child(even) > * {
  direction: ltr;
}

.story-block__body {
  /* テキスト側 */
}

.story-block__h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: var(--space-md);
  position: relative;
  padding-bottom: var(--space-md);
}

.story-block__h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--primary);
  border-radius: 2px;
}

.story-block__text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.9;
}

.story-block__image img {
  border-radius: var(--radius-md);
  width: 100%;
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   商品仕様・詳細（S6）
   -------------------------------------------------------------------------- */
.product-specs {
  background-color: var(--bg-white);
}

.product-specs__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.product-specs__title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 24px;
  background-color: var(--primary);
  border-radius: 2px;
  flex-shrink: 0;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.specs-block {
  /* 仕様ブロック */
}

.specs-block__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--primary-light);
}

.specs-block__value {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.specs-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-top: var(--space-lg);
  grid-column: 1 / -1;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}

.specs-table thead th {
  background-color: var(--bg-section);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.specs-table tbody tr {
  border-bottom: 1px solid var(--border);
}

.specs-table tbody tr:last-child {
  border-bottom: none;
}

.specs-table tbody td {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.specs-table tbody td:first-child {
  font-weight: 600;
  color: var(--text-primary);
}

/* カラーサンプル */
.color-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.color-chip {
  font-size: 12px;
  color: var(--text-secondary);
  background-color: var(--bg-light);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: var(--radius-md);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   商品ページ お客様の声（S7）
   -------------------------------------------------------------------------- */
.product-voices {
  background-color: var(--bg-section);
}

.product-voices__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

/* --------------------------------------------------------------------------
   商品Q&A（S8）
   -------------------------------------------------------------------------- */
.product-faq {
  background-color: var(--bg-white);
}

/* --------------------------------------------------------------------------
   関連商品（S9）
   -------------------------------------------------------------------------- */
.related-products {
  background-color: var(--bg-section);
}

.related-products__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.related-products__title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 24px;
  background-color: var(--primary);
  border-radius: 2px;
  flex-shrink: 0;
}

.related-products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.related-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
  display: block;
}

.related-card:hover {
  box-shadow: none;
  transform: none;
  opacity: 1;
}

.related-card__img {
  width: 100%;
  aspect-ratio: 9/5;
  object-fit: cover;
}

.related-card__body {
  padding: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.related-card__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.related-card__arrow {
  font-size: 16px;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.related-card:hover .related-card__arrow {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   商品ページ レスポンシブ（max-width: 768px）
   -------------------------------------------------------------------------- */
/* ==========================================================================
   現地調査依頼フォーム（order.html）
   ========================================================================== */

/* --------------------------------------------------------------------------
   フォームページ ヘッダーエリア
   -------------------------------------------------------------------------- */
.order-page-title {
  padding: var(--space-sm) 0 var(--space-xs);
  text-align: center;
}

.order-page-title__h1 {
  font-size: 40px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
  margin: 0;
}

/* --------------------------------------------------------------------------
   プログレスバー
   -------------------------------------------------------------------------- */
.order-progress {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: var(--space-sm) 0 var(--space-md);
  position: sticky;
  top: var(--header-height);
  z-index: 50;
}

.order-progress__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.order-progress__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.order-progress__label {
  font-family: var(--font-sans-jp);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.05em;
}

.order-progress__fraction {
  font-family: var(--font-sans-jp);
  font-size: 13px;
  color: var(--text-light);
}

.order-progress__bar {
  height: 4px;
  background-color: var(--bg-section);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-sm);
}

.order-progress__fill {
  height: 100%;
  background-color: var(--primary);
  border-radius: var(--radius-md);
  transition: width 0.4s ease;
}

.order-progress__steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.order-progress__steps::before {
  content: '';
  position: absolute;
  top: 11px;
  left: 14px;
  right: 14px;
  height: 2px;
  background-color: var(--bg-section);
  z-index: 0;
}

.order-progress__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
}

.order-progress__dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--bg-section);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans-jp);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-light);
  transition: all 0.3s ease;
}

.order-progress__step.is-active .order-progress__dot {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--bg-white);
  box-shadow: 0 0 0 4px var(--primary-light);
}

.order-progress__step.is-done .order-progress__dot {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--bg-white);
}

.order-progress__step-name {
  font-size: 10px;
  color: var(--text-light);
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.order-progress__step.is-active .order-progress__step-name,
.order-progress__step.is-done .order-progress__step-name {
  color: var(--primary);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   ステップフォーム 共通
   -------------------------------------------------------------------------- */
.order-body {
  background-color: var(--bg-light);
  min-height: 60vh;
  padding: var(--space-xl) 0;
}

.order-body__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.step-panel {
  display: none;
  animation: stepFadeIn 0.35s ease;
}

.step-panel.is-active {
  display: block;
}

@keyframes stepFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.step-panel__question {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 6px;
}

.step-panel__note {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: var(--space-lg);
}

/* --------------------------------------------------------------------------
   Step 1: カード選択（複数選択可）
   -------------------------------------------------------------------------- */
.type-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.type-card {
  position: relative;
  background-color: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.type-card:hover {
  border-color: var(--primary);
  box-shadow: none;
}

.type-card.is-selected {
  border-color: var(--primary);
  background-color: var(--primary-light);
}

.type-card__check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.25s ease;
}

.type-card.is-selected .type-card__check {
  opacity: 1;
  transform: scale(1);
}

.type-card__check svg {
  width: 12px;
  height: 12px;
  stroke: var(--bg-white);
}

.type-card__icon {
  font-size: 32px;
  display: block;
  margin-bottom: var(--space-sm);
  line-height: 1;
}

.type-card__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}

.type-card.is-selected .type-card__label {
  color: var(--primary);
}

/* --------------------------------------------------------------------------
   Step 2, 3: ボタン選択（単一選択）
   -------------------------------------------------------------------------- */
.choice-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.choice-btn {
  background-color: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px var(--space-lg);
  text-align: left;
  font-family: var(--font-ja);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.choice-btn:hover {
  border-color: var(--primary);
  background-color: var(--primary-light);
}

.choice-btn.is-selected {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--bg-white);
}

.choice-btn__arrow {
  font-size: 18px;
  opacity: 0.5;
  transition: opacity 0.25s ease;
}

.choice-btn.is-selected .choice-btn__arrow {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Step 4, 5: フォームフィールド
   -------------------------------------------------------------------------- */
.form-fields {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.form-label__required {
  font-size: 11px;
  font-weight: 700;
  color: var(--bg-white);
  background-color: var(--error);
  padding: 2px 6px;
  border-radius: var(--radius-md);
  letter-spacing: 0.05em;
}

.form-label__optional {
  font-size: 11px;
  color: var(--text-light);
}

/* サブラベル（時間帯など、ひとつの form-group 内の二段目以降） */
.form-label--sub {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: var(--space-xs);
}

/* honeypot：人間にもアシスティブテックにも見せない（bot のみ DOM 走査で見つける） */
.form-group--honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* 時間指定の詳細欄（select で「時間指定」を選んだ時のみ表示） */
.visit-time-detail {
  margin-top: var(--space-xs);
}

/* 第1〜第3希望の区切り線 */
.visit-group + .visit-group {
  border-top: 1px solid var(--border);
  padding-top: var(--space-md);
  margin-top: var(--space-sm);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  background-color: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-ja);
  font-size: 15px;
  color: var(--text-primary);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: none;
}

.form-input.is-error,
.form-select.is-error,
.form-textarea.is-error {
  border-color: var(--error);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.7;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='8' viewBox='0 0 14 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}

.form-error {
  font-size: 13px;
  color: var(--error);
  display: flex;
  align-items: center;
  gap: 4px;
  display: none;
}

.form-error.is-visible {
  display: flex;
}

/* エラーメッセージ（ステップ全体） */
.step-error {
  background-color: #fef2f2;
  border: 1px solid var(--error);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--error);
  margin-bottom: var(--space-md);
  display: none;
}

.step-error.is-visible {
  display: block;
}

/* --------------------------------------------------------------------------
   ナビゲーションボタン（戻る・次へ）
   -------------------------------------------------------------------------- */
.step-nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.step-nav--center {
  justify-content: center;
}

.step-nav__back {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-ja);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.step-nav__back:hover {
  color: var(--primary);
}

.step-nav__next {
  flex: 1;
}

.step-nav__next .btn {
  width: 100%;
}

/* ステップフォームの「次へ進む」「入力内容を確認する」ボタンを赤茶に統一 */
.step-nav__next .btn--primary {
  background-color: #B43D2E;
  border-color: #B43D2E;
  color: #fff;
}
.step-nav__next .btn--primary:hover {
  background-color: #9a3325;
  border-color: #9a3325;
  color: #fff;
}

/* --------------------------------------------------------------------------
   確認画面
   -------------------------------------------------------------------------- */
.confirm-box {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: var(--space-lg);
}

.confirm-box__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  background-color: var(--bg-section);
  padding: 10px var(--space-lg);
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.05em;
}

.confirm-table {
  width: 100%;
  border-collapse: collapse;
}

.confirm-table tr {
  border-bottom: 1px solid var(--border);
}

.confirm-table tr:last-child {
  border-bottom: none;
}

.confirm-table th {
  width: 130px;
  padding: 14px var(--space-lg);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
  background-color: var(--bg-light);
}

.confirm-table td {
  padding: 14px var(--space-lg);
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.6;
}

.confirm-edit {
  display: block;
  text-align: center;
  margin-top: var(--space-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-ja);
}

.confirm-edit:hover {
  opacity: 0.7;
}

/* --------------------------------------------------------------------------
   完了画面
   -------------------------------------------------------------------------- */
.complete-screen {
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.complete-screen__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
}

.complete-screen__icon svg {
  width: 36px;
  height: 36px;
  stroke: var(--primary);
}

.complete-screen__title {
  font-size: 24px;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  line-height: 1.4;
}

.complete-screen__text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.complete-screen__tel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
  background-color: var(--bg-light);
  border-radius: var(--radius-md);
}

.complete-screen__tel-label {
  font-size: 12px;
  color: var(--text-light);
}

.complete-screen__tel-number {
  font-family: var(--font-en);
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   オーダーページ レスポンシブ（max-width: 768px）
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .order-page-title__h1 {
    font-size: 15px;
  }

  .order-progress {
    top: 60px;
    padding: 6px 0 10px;
  }

  .order-progress__steps {
    display: none;
  }

  .type-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .step-panel__question {
    font-size: 18px;
  }

  .confirm-table th {
    width: 100px;
    padding: 12px var(--space-md);
  }

  .confirm-table td {
    padding: 12px var(--space-md);
  }
}

/* ==========================================================================
   商品ページ レスポンシブ（元コード続き）
   ========================================================================== */
@media (max-width: 768px) {
  .item-title-section__h1 {
    font-size: 26px;
  }

  .story-block {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .story-block:nth-child(even) {
    direction: ltr;
  }

  .story-block__image {
    order: -1;
  }

  .specs-grid {
    grid-template-columns: 1fr;
  }

  .product-voices__grid {
    grid-template-columns: 1fr;
  }

  .related-products__grid {
    grid-template-columns: 1fr;
  }

  .price-table__table tbody td:last-child {
    font-size: 16px;
  }

  .price-table__table {
    min-width: 0;
  }
}

@media (max-width: 1024px) {
  .product-voices__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   新ページ共通 CSS エイリアス（about / flow / faq / privacy / simulation）
   ========================================================================== */

/* section-label / section-title / section-desc エイリアス */
.section-label {
  display: block;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.section-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ==========================================================================
   about.html / flow.html / faq.html / privacy.html 共通
   ========================================================================== */

.item-title-section__lead {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-top: var(--space-md);
  max-width: 640px;
}

/* ==========================================================================
   about.html
   ========================================================================== */

/* 想い セクション */
.about-story {
  padding: var(--space-2xl) 0;
  background: var(--bg-white);
}

.about-story__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.about-story__heading {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.5;
  margin: var(--space-md) 0 var(--space-lg);
  letter-spacing: 0.01em;
}

.about-story__body {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: var(--space-md);
}

.about-story__badges {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.about-story__badge {
  flex: 1;
  display: flex;
  flex-direction: column-reverse;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  min-width: 0;
}

.about-story__badge-num {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 44px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.05;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.about-story__badge-num small {
  font-size: 14px;
  font-weight: 700;
  margin-left: 4px;
  vertical-align: baseline;
}

.about-story__badge-label {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 10px 0;
}

.about-story__image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

/* 強み セクション */
.about-strengths {
  padding: var(--space-xl) 0;
  background: var(--bg-section);
}

.about-strengths__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.about-strength-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.about-strength-card:hover {
  box-shadow: none;
  transform: none;
}

.about-strength-card__icon {
  margin-bottom: 4px;
}

.about-strength-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.5;
}

.about-strength-card__text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* 実績 セクション */
.about-stats {
  padding: var(--space-xl) 0;
  background: linear-gradient(135deg, #0F0D0A 0%, #1F1B16 50%, #2A2620 100%);
  text-align: center;
}

.about-stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.about-stat {
  padding: var(--space-md) 8px;
  text-align: center;
}

.about-stat__label {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px 0;
  letter-spacing: 0.02em;
}

.about-stat__num {
  font-family: 'Outfit', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.0;
  margin: 0;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.about-stat__unit {
  font-size: 16px;
  font-weight: 700;
  margin-left: 6px;
  vertical-align: baseline;
}

/* 対応エリア セクション */
.about-area {
  padding: var(--space-xl) 0;
  background: var(--bg-white);
}

.about-area__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.about-area__desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: var(--space-md) 0 var(--space-lg);
}

.about-area__list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.about-area__list li {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  text-align: center;
}

.about-area__note {
  font-size: 13px;
  color: var(--text-light);
}

.about-area__map img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

/* お客様の声（about.html） */
.about-voices {
  padding: var(--space-xl) 0;
  background: var(--bg-section);
}

/* ==========================================================================
   flow.html
   ========================================================================== */

.flow-detail-section {
  padding: var(--space-xl) 0 var(--space-2xl);
  background: var(--bg-light);
}

.flow-step-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: var(--space-xl);
  margin-bottom: 0;
}

.flow-step-card__badge-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.flow-step-card__step-num {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--primary);
  background: var(--primary-light);
  padding: 6px 14px;
  border-radius: var(--radius-md);
}

.flow-step-card__step-num em {
  font-style: normal;
  font-size: 18px;
  margin-left: 4px;
}

.flow-step-card__time-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--bg-section);
  padding: 6px 12px;
  border-radius: var(--radius-md);
}

.flow-step-card__title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  letter-spacing: 0.01em;
}

.flow-step-card__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.flow-step-card--reverse .flow-step-card__inner {
  direction: rtl;
}

.flow-step-card--reverse .flow-step-card__content {
  direction: ltr;
}

.flow-step-card--reverse .flow-step-card__image {
  direction: ltr;
}

.flow-step-card__image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.flow-step-card__desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.flow-step-card__points {
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.flow-step-card__points li {
  font-size: 14px;
  color: var(--text-primary);
  padding-left: 22px;
  position: relative;
  line-height: 1.6;
}

.flow-step-card__points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.flow-step-card__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.flow-step-card__note-box {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 8px 8px 0;
  padding: var(--space-md) var(--space-lg);
}

.flow-step-card__note-box p {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.flow-step-card__note-box--accent {
  background: #fef9ee;
  border-left-color: var(--accent);
}

.flow-step-card__note-box--accent p {
  color: var(--accent-dark);
}

/* ステップ間コネクター */
.flow-step-connector {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 56px;
  position: relative;
}

.flow-step-connector::before {
  content: '';
  display: block;
  width: 2px;
  height: 32px;
  background: var(--border);
}

.flow-step-connector::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid var(--border);
}

/* FAQ誘導バナー */
.flow-faq-banner {
  padding: var(--space-lg) 0;
  background: var(--bg-white);
}

.flow-faq-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  background: var(--bg-section);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-xl);
}

.flow-faq-banner__heading {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.flow-faq-banner__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==========================================================================
   faq.html
   ========================================================================== */

.faq-page-section {
  padding: var(--space-xl) 0 var(--space-2xl);
  background: var(--bg-light);
}

/* タブナビゲーション */
.faq-tab-nav {
  display: flex;
  gap: var(--space-sm);
  border-bottom: 2px solid var(--border);
  margin-bottom: var(--space-xl);
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.faq-tab-nav::-webkit-scrollbar {
  display: none;
}

.faq-tab-btn {
  flex-shrink: 0;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.faq-tab-btn:hover {
  color: var(--primary);
}

.faq-tab-btn.is-active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.faq-tab-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* FAQアコーディオン（faq.html用 - main.jsの.faq-itemクラスを流用） */
.faq-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* 解決しない場合バナー */
.faq-contact-banner {
  margin-top: var(--space-xl);
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  text-align: center;
}

.faq-contact-banner__text {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.faq-contact-banner__actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}

.faq-contact-banner__hours {
  font-size: 13px;
  color: var(--text-light);
}

/* ==========================================================================
   privacy.html
   ========================================================================== */

.privacy-updated {
  font-size: 13px;
  color: var(--text-light);
  margin-top: var(--space-sm);
}

.privacy-body {
  padding: var(--space-xl) 0 var(--space-2xl);
  background: var(--bg-white);
}

.privacy-article {
  max-width: 800px;
  margin: 0 auto;
}

.privacy-article__intro {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.9;
  padding: var(--space-lg);
  background: var(--bg-light);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-xl);
}

.privacy-section {
  border-top: 1px solid var(--border);
  padding: var(--space-xl) 0;
}

.privacy-section:last-child {
  border-bottom: 1px solid var(--border);
}

.privacy-section__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  letter-spacing: 0.01em;
}

.privacy-section__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.privacy-section__text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: var(--space-md);
}

.privacy-section__text:last-child {
  margin-bottom: 0;
}

.privacy-section__list {
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.privacy-section__list li {
  font-size: 15px;
  color: var(--text-secondary);
  padding-left: 20px;
  position: relative;
  line-height: 1.7;
}

.privacy-section__list li::before {
  content: '・';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.privacy-contact-box {
  background: var(--bg-section);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.privacy-contact-box__company {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 15px;
  margin-bottom: var(--space-sm);
}

.privacy-contact-box__row {
  display: flex;
  gap: var(--space-md);
  font-size: 14px;
  color: var(--text-secondary);
  align-items: center;
}

.privacy-contact-box__label {
  min-width: 80px;
  font-weight: 600;
  color: var(--text-primary);
}

.privacy-contact-box__row a {
  color: var(--primary);
  text-decoration: none;
}

.privacy-contact-box__row a:hover {
  opacity: 0.7;
}

/* ==========================================================================
   about / flow / faq レスポンシブ
   ========================================================================== */

@media (max-width: 1024px) {
  .about-strengths__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .item-title-section__lead {
    font-size: 15px;
  }

  /* about */
  .about-story__inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .about-story__heading {
    font-size: 22px;
  }

  .about-story__badges {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .about-story__badge-num {
    font-size: 48px;
  }

  .about-story__badge-label {
    font-size: 16px;
  }

  .about-strengths__grid {
    grid-template-columns: 1fr;
  }

  .about-stats__grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .about-stat__label {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .about-stat__num {
    font-size: 36px;
  }

  .about-area__inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .about-area__text {
    min-width: 0;
  }

  .about-area__list {
    grid-template-columns: 1fr;
  }

  .about-area__cta {
    width: 100% !important;
  }

  /* flow */
  .flow-step-card {
    padding: var(--space-lg);
  }

  .flow-step-card__inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .flow-step-card--reverse .flow-step-card__inner {
    direction: ltr;
  }

  .flow-step-card__image {
    order: -1;
  }

  .flow-step-card__title {
    font-size: 20px;
  }

  .flow-step-card__actions {
    flex-direction: column;
  }

  .flow-faq-banner__inner {
    flex-direction: column;
    text-align: center;
    padding: var(--space-lg);
  }

  /* faq */
  .faq-tab-btn {
    padding: 10px 16px;
    font-size: 13px;
  }

  /* privacy */
  .privacy-section__title {
    font-size: 16px;
  }
}

/* ==========================================================================
   概算シミュレーション（simulation.html）
   ========================================================================== */

/* ページタイトル・説明 */
.sim-page-title {
  font-size: 32px;
  font-weight: 900;
  color: var(--text-primary);
  margin: var(--space-sm) 0 var(--space-md);
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.sim-page-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 720px;
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 8px 8px 0;
  margin-bottom: 0;
}

/* セクション */
.sim-section {
  padding: var(--space-xl) 0 var(--space-2xl);
  background: var(--bg-light);
}

/* 2カラムレイアウト */
.sim-body {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
}

/* ── 左: 商品選択エリア ── */
.sim-categories {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.sim-loading {
  text-align: center;
  padding: var(--space-xl);
  color: var(--text-light);
}

.sim-category__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  padding: var(--space-sm) var(--space-md);
  border-left: 4px solid var(--primary);
  margin-bottom: var(--space-md);
  letter-spacing: 0.01em;
}

.sim-item-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 商品カード */
.sim-item-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  user-select: none;
}

.sim-item-card:hover {
  border-color: var(--primary);
  box-shadow: none;
}

.sim-item-card:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.sim-item-card.is-selected {
  border-color: var(--primary);
  background: var(--primary-light);
}

/* チェックボックス */
.sim-item-card__check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border);
  background: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}

.sim-item-card.is-selected .sim-item-card__check {
  background: var(--primary);
  border-color: var(--primary);
}

.sim-item-card__check-icon {
  opacity: 0;
  transition: opacity 0.15s;
}

.sim-item-card.is-selected .sim-item-card__check-icon {
  opacity: 1;
}

/* 商品情報 */
.sim-item-card__body {
  min-width: 0;
}

.sim-item-card__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
  margin: 0 0 2px 0;
}

.sim-item-card__note {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.4;
  margin: 0;
}

/* 右エリア（価格＋数量） */
.sim-item-card__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.sim-item-card__price {
  margin: 0;
  white-space: nowrap;
}

.sim-item-card__price-num {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}

.sim-item-card__price-unit {
  font-size: 12px;
  color: var(--text-secondary);
}

/* 数量入力 */
.sim-item-card__qty-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}

.sim-qty-btn {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-white);
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
  line-height: 1;
}

.sim-qty-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
}

.sim-qty-input {
  width: 52px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  color: var(--text-primary);
  background: var(--bg-white);
  padding: 0;
  -moz-appearance: textfield;
}

.sim-qty-input::-webkit-outer-spin-button,
.sim-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.sim-qty-input:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

/* ── 右: 結果パネル ── */
.sim-results {
  width: 340px;
  flex-shrink: 0;
  position: sticky;
  top: calc(72px + 24px);
  align-self: flex-start;
}

.sim-results__inner {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.sim-results__heading {
  font-size: 17px;
  font-weight: 700;
  color: var(--bg-white);
  background: var(--primary);
  padding: var(--space-md) var(--space-lg);
  letter-spacing: 0.01em;
}

/* 空状態 */
.sim-results__empty {
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.8;
}

.sim-results__empty-icon {
  margin-bottom: var(--space-md);
}

/* 明細 */
.sim-results__detail {
  padding: var(--space-md);
}

.sim-results__table-wrap {
  overflow-x: auto;
  margin-bottom: var(--space-md);
}

.sim-results__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.sim-results__table th {
  background: var(--bg-section);
  padding: 6px 8px;
  text-align: left;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.sim-results__table td {
  padding: 8px;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  vertical-align: middle;
}

.sim-results__table td:first-child {
  font-size: 12px;
  line-height: 1.4;
}

.sim-table-subtotal {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  white-space: nowrap;
  text-align: right;
}

/* 合計 */
.sim-results__total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md);
  background: var(--bg-section);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

.sim-results__total-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.sim-results__total-value {
  font-family: var(--font-sans-jp);
  font-size: 28px;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

/* 注記 */
.sim-results__note {
  font-size: 11px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

/* CTA */
.sim-results__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  padding-left: 16px;
  padding-right: 16px;
}

.sim-results__cta-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-light);
  margin-top: 8px;
}

.sim-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
}

.sim-reset-btn:hover {
  background: var(--bg-section);
  color: var(--text-primary);
}

.sim-restore-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  margin-bottom: 16px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: var(--radius-md);
  font-size: 13px;
}

.sim-restore-notice button {
  background: none;
  border: none;
  font-size: 18px;
  color: inherit;
  cursor: pointer;
  padding: 0 0 0 12px;
  line-height: 1;
}

/* ── SP 合計バー ── */
.sim-sp-total {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 998;
  background: var(--bg-white);
  border-top: 2px solid var(--primary);
  box-shadow: none;
  padding-bottom: env(safe-area-inset-bottom, 0px); /* iOSのホームバー分は内側で確保 */
}

.sim-sp-total__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px var(--space-md);
  gap: var(--space-md);
}

.sim-sp-total__label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sim-sp-total__label span {
  font-size: 11px;
  color: var(--text-secondary);
}

.sim-sp-total__label strong {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
}

/* ── おすすめセクション ── */
.sim-recommend {
  padding: var(--space-xl) 0;
  background: var(--bg-white);
}

.sim-recommend__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.sim-recommend__card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.sim-recommend__card:hover {
  box-shadow: none;
  transform: none;
}

.sim-recommend__icon {
  margin-bottom: 4px;
}

.sim-recommend__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.5;
}

.sim-recommend__text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
}

.sim-recommend__select-btn {
  margin-top: var(--space-sm);
  align-self: flex-start;
}

/* ==========================================================================
   概算シミュレーション レスポンシブ
   ========================================================================== */
@media (max-width: 1024px) {
  .sim-results {
    width: 300px;
  }
}

@media (max-width: 768px) {
  .sim-page-title {
    font-size: 26px;
  }

  .sim-page-desc {
    padding: var(--space-md);
  }

  .sim-body {
    flex-direction: column;
  }

  .sim-categories {
    width: 100%;
    flex: none;
  }

  .sim-results {
    width: 100%;
    position: static;
    order: -1; /* SP では結果を上に表示 */
    margin-bottom: var(--space-md);
  }

  .sim-sp-total {
    display: block;
  }

  .sim-item-card {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "check body"
      "right right";
    gap: 8px 12px;
    padding: 12px 14px;
  }
  .sim-item-card__check { grid-area: check; }
  .sim-item-card__body { grid-area: body; }
  .sim-item-card__right {
    grid-area: right;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-top: 8px;
    border-top: 1px solid var(--border);
  }

  .sim-recommend__grid {
    grid-template-columns: 1fr;
  }

  .sim-results__total-value {
    font-size: 20px;
  }
}

/* ==========================================================================
   シミュレーション V2 — カテゴリ展開UI + 横並びアイテム + 概算スクロール
   ========================================================================== */

/* ── カテゴリ展開ブロック ── */
.sim-cat {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.sim-cat + .sim-cat {
  margin-top: 3px;
}

.sim-cat__header {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 18px;
  background: var(--color-text);
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans-jp);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-surface);
  transition: background-color 0.15s ease;
}

.sim-cat__header:hover {
  background: #2A251F;
}

.sim-cat__name {
  flex: 1;
  letter-spacing: 0.02em;
  color: var(--color-surface);
}

.sim-cat__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--color-accent-soft);
}
.sim-cat__icon i,
.sim-cat__icon svg {
  width: 20px;
  height: 20px;
}

.sim-cat__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 22px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-surface);
  background: rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  font-family: var(--font-sans-jp);
  letter-spacing: 0.05em;
}

.sim-cat__chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--color-surface);
  transition: transform 0.2s ease;
}
.sim-cat.is-open .sim-cat__chevron {
  transform: rotate(180deg);
}

.sim-cat__body {
  display: none;
  border-top: 1px solid var(--color-divider);
  padding: 4px 12px 8px;
}
.sim-cat.is-open .sim-cat__body {
  display: block;
}

/* order.html Step 1 — カテゴリヘッダー右の選択中バッジ */
.sim-cat__selected {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  height: 22px;
  padding: 0 10px;
  margin-left: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: var(--color-accent);
  border-radius: var(--radius-md);
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.sim-cat__selected[hidden] { display: none; }

/* order.html Step 1 — カテゴリ body の余白上書き */
.sim-cat__body--pick {
  padding: 14px 14px 16px !important;
}

/* order.html Step 1 — 商品カード（チェックボックス・グリッド配置） */
.product-pick-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}
.product-pick-item {
  margin: 0;
}
.product-pick-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  min-height: 58px;
  border: 1.5px solid var(--color-border);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  font-size: 13px;
  line-height: 1.4;
  user-select: none;
  box-sizing: border-box;
}
.product-pick-card:hover {
  border-color: var(--color-text);
  background: #fafafa;
}
.product-pick-card input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--color-text);
  cursor: pointer;
  margin: 0;
}
.product-pick-card:has(input:checked) {
  border-color: var(--color-text);
  background: #f5efe7;
}
.product-pick-card:has(input:checked) .product-pick-card__name {
  font-weight: 600;
}
.product-pick-card__name {
  color: var(--color-text);
}

@media (max-width: 768px) {
  .product-pick-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 6px;
  }
  .product-pick-card {
    padding: 9px 10px;
    font-size: 12px;
  }
}

/* ── 商品カード（V2: li 横並び） ── */
.sim-cat__body .sim-item-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sim-cat__body .sim-item-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 6px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-divider);
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.15s ease;
  user-select: none;
  grid-template-columns: none;
}

.sim-cat__body .sim-item-card:last-child {
  border-bottom: none;
}

.sim-cat__body .sim-item-card:hover {
  background: var(--color-bg-alt);
  border-color: var(--color-divider);
  box-shadow: none;
}

.sim-cat__body .sim-item-card:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.sim-cat__body .sim-item-card.is-selected {
  background: var(--color-bg);
  border-color: var(--color-divider);
}

.sim-cat__body .sim-item-card__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.sim-cat__body .sim-item-card__check svg {
  opacity: 0;
  transition: opacity 0.15s ease;
}
.sim-cat__body .sim-item-card.is-selected .sim-item-card__check {
  background: var(--color-accent);
  border-color: var(--color-accent);
}
.sim-cat__body .sim-item-card.is-selected .sim-item-card__check svg {
  opacity: 1;
}

.sim-item-card__name {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  font-family: var(--font-sans-jp);
  min-width: 0;
  margin: 0;
}

.sim-item-card__price {
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  font-family: var(--font-sans-jp);
  letter-spacing: 0;
  white-space: nowrap;
  margin: 0;
}

.sim-item-card__price.is-quote {
  color: var(--color-text-sub);
  font-weight: 500;
  font-family: var(--font-sans-jp);
  font-size: 13px;
}

.sim-item-card__addon {
  flex-shrink: 0;
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--color-accent);
  background: var(--color-bg);
  border: 1px solid var(--color-accent-soft);
  border-radius: var(--radius-md);
  cursor: help;
  white-space: nowrap;
}

/* ── 数量ステッパー（PC: 1 行内） ── */
.sim-item-card__qty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: auto;
}
.sim-qty-btn {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--color-border);
  border-radius: 4px;
  background: #fff;
  color: var(--color-text);
  font-size: 16px;
  line-height: 1;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  padding: 0;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.sim-qty-btn:hover:not(:disabled) {
  border-color: var(--color-accent);
  background: var(--color-bg);
}
.sim-qty-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.sim-qty-val {
  min-width: 22px;
  text-align: center;
  font-weight: 600;
  font-family: var(--font-sans-jp);
  font-size: 15px;
  color: var(--color-text);
}
.sim-item-card__minnote {
  display: none;
}

/* SP（2 段レイアウト）: 上=商品名+価格、下=チェック+数量 */
@media (max-width: 768px) {
  .sim-cat__body .sim-item-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "name  name  price"
      "check qty   qty"
      "note  note  note";
    column-gap: 8px;
    row-gap: 6px;
    padding: 11px 6px;
  }
  .sim-cat__body .sim-item-card__check {
    grid-area: check;
    align-self: center;
  }
  .sim-cat__body .sim-item-card__name {
    grid-area: name;
    align-self: center;
  }
  .sim-cat__body .sim-item-card__price {
    grid-area: price;
    text-align: right;
    align-self: center;
  }
  .sim-cat__body .sim-item-card__qty {
    grid-area: qty;
    justify-self: start;
    margin-left: 0;
  }
  .sim-cat__body .sim-item-card__addon {
    grid-area: qty;
    justify-self: end;
    align-self: center;
  }
  .sim-item-card__minnote {
    grid-area: note;
    display: block;
    font-size: 11px;
    color: var(--color-text-sub);
    line-height: 1.5;
    margin: 0;
  }
}

/* ── 概算ペインのスクロール ── */
.sim-results__table-wrap {
  max-height: 280px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--color-accent-soft) transparent;
}
.sim-results__table-wrap::-webkit-scrollbar { width: 6px; }
.sim-results__table-wrap::-webkit-scrollbar-track { background: transparent; }
.sim-results__table-wrap::-webkit-scrollbar-thumb {
  background: var(--color-accent-soft);
  border-radius: var(--radius-md);
}
.sim-results__table-wrap::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

/* ── 明細テーブル ── */
.sim-results__table th {
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 6px 4px;
  border-bottom: 1px solid var(--color-divider);
  text-align: left;
}
.sim-results__table th:last-child { text-align: right; }
.sim-results__table td {
  padding: 8px 4px;
  border-bottom: 1px solid var(--color-divider);
  vertical-align: top;
}
.sim-table__cat {
  display: block;
  font-size: 11px;
  color: var(--color-text-muted);
  margin-bottom: 2px;
  letter-spacing: 0.04em;
}
.sim-table__name {
  display: inline;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
}
.sim-table__addon {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 500;
  color: var(--color-accent);
  background: var(--color-bg);
  border: 1px solid var(--color-accent-soft);
  border-radius: var(--radius-md);
  vertical-align: middle;
}
.sim-table__qty {
  display: inline-block;
  margin-left: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  font-family: var(--font-sans-jp);
  vertical-align: middle;
}
.sim-table__quote {
  display: inline-block;
  font-size: 12px;
  color: var(--color-text-sub);
  font-family: var(--font-sans-jp);
  font-weight: 500;
}
.sim-table__price-cell {
  text-align: right;
  font-family: var(--font-sans-jp);
  font-weight: 700;
  font-size: 14px;
  color: var(--color-text);
  letter-spacing: 0;
  white-space: nowrap;
}

/* ── 副 CTA: PDF 出力 ── */
.sim-results__pdf-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 10px;
  padding: 10px 16px;
  background: transparent;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-md);
  font-family: var(--font-sans-jp);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.sim-results__pdf-cta:hover {
  background: var(--color-accent);
  color: var(--color-surface);
}

/* ── 要見積件数表示 ── */
.sim-results__quote-count {
  margin-top: 10px;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--color-text-sub);
  background: var(--color-bg);
  border-left: 2px solid var(--color-accent-soft);
  line-height: 1.6;
}
.sim-results__quote-count strong {
  color: var(--color-accent);
  font-family: var(--font-numeric);
  margin: 0 2px;
}

/* ==========================================================================
   ブログ一覧ページ（blog.html）
   ========================================================================== */

/* ── ヘッダーナビ: 現在ページ表示 ─────────────────────────── */
.header__nav-link.is-current {
  color: var(--primary);
  font-weight: 600;
}

/* ── S2: パンくず＋ページタイトル ────────────────────────── */
.blog-title-section {
  background: var(--bg-section);
  padding: 40px 0 32px;
}

.blog-page__title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin: var(--space-md) 0 var(--space-sm);
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.blog-page__desc {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0;
}

/* ── S3: カテゴリフィルター ───────────────────────────────── */
.blog-filter-section {
  background: var(--bg-section);
  padding: 0 0 24px;
  border-bottom: 1px solid var(--border);
}

.blog-filter {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.blog-filter::-webkit-scrollbar {
  display: none;
}

.blog-filter__tab {
  flex-shrink: 0;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--bg-white);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: 'Noto Sans JP', sans-serif;
}

.blog-filter__tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.blog-filter__tab.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
}

/* ── S4: 記事一覧グリッド ─────────────────────────────────── */
.blog-list-section {
  padding-top: var(--space-xl);
}

.blog-list__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

/* カードサムネイルをラップして、バッジを重ねる */
.blog-card__thumb-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.blog-card__category-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-md);
  letter-spacing: 0.02em;
  font-family: 'Noto Sans JP', sans-serif;
}

/* blog.html の記事カード（.blog-card--full）は
   既存の .blog-card スタイルを継承しつつ、カーソルを追加 */
.blog-card--full {
  cursor: pointer;
}

.blog-card--full:focus-within {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--radius-md);
}

/* サムネイル画像ホバー効果 */
.blog-card--full .blog-card__img {
  transition: transform 0.3s ease;
}

.blog-card--full:hover .blog-card__img {
  transform: scale(1.03);
}

/* カテゴリフィルター非表示クラス */
.blog-card--hidden {
  display: none;
}

/* フェードイン適用 */
.blog-card--full.fade-in-active {
  animation: blogFadeIn 0.35s ease both;
}

@keyframes blogFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* フィルター結果なし */
.blog-list__empty {
  text-align: center;
  padding: var(--space-xl) 0;
  color: var(--text-light);
  font-size: 15px;
}

/* ── S5: ページネーション ─────────────────────────────────── */
.blog-pagination-section {
  padding: var(--space-lg) 0 var(--space-xl);
}

.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.blog-pagination__btn {
  padding: 8px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.blog-pagination__btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.blog-pagination__pages {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-pagination__page {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.blog-pagination__page:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.blog-pagination__page.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 700;
}

/* ── レスポンシブ ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .blog-list__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-title-section {
    padding: 24px 0 20px;
  }

  .blog-page__title {
    font-size: 22px;
  }

  .blog-list__grid {
    grid-template-columns: 1fr;
  }

  .blog-pagination__btn {
    padding: 8px 12px;
    font-size: 12px;
  }
}

/* ==========================================================================
   記事ページ（blog-article-sample.html）
   ========================================================================== */

/* ── S2: パンくずラッパー ─────────────────────────────────── */
.article-breadcrumb-wrap {
  background: var(--bg-section);
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

/* ── S3: 記事ヘッダー ────────────────────────────────────── */
.article-header {
  background: var(--bg-section);
  padding: 32px 0 48px;
}

.article-header__inner {
  margin-bottom: 24px;
}

.article-category-badge {
  /* blog-card__category-badge と同スタイルを継承しつつ、インライン表示に */
  position: static;
  display: inline-block;
  margin-bottom: 16px;
}

.article-header__title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.5;
  letter-spacing: 0.01em;
  margin: 0 0 16px;
}

.article-header__meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.article-header__date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-light);
}

.article-header__date i {
  width: 14px;
  height: 14px;
}

.article-header__eyecatch {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
}

/* ── S4: 2カラムレイアウト ───────────────────────────────── */
.article-body-section {
  padding: var(--space-xl) 0;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

.article-main,
.article-sidebar {
  min-width: 0;
}

/* ── 目次ボックス（本文上部） ─────────────────────────────── */
.article-toc {
  background: var(--bg-section);
  border-left: 3px solid var(--primary);
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  margin-bottom: 40px;
}

.article-toc__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.article-toc__list {
  padding-left: 20px;
  margin: 0;
}

.article-toc__list li {
  margin-bottom: 6px;
}

.article-toc__sub {
  padding-left: 16px;
  margin-top: 4px;
  list-style: disc;
}

.article-toc__link {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.article-toc__link:hover {
  color: var(--primary);
}

/* ── 記事本文スタイル（.article-content スコープ） ────────── */
.article-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 8px;
  margin: 48px 0 20px;
  line-height: 1.4;
  letter-spacing: 0.01em;
  scroll-margin-top: 100px;
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  padding-left: 12px;
  border-left: 3px solid var(--primary);
  margin: 32px 0 16px;
  line-height: 1.4;
  scroll-margin-top: 100px;
}

.article-content p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.article-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 24px 0;
  display: block;
}

/* 蛍光ペン風マーカー */
.article-marker {
  background: linear-gradient(transparent 60%, var(--primary-light) 60%);
  padding: 0 2px;
}

/* 箇条書き */
.article-summary-list {
  padding-left: 24px;
  margin-bottom: 24px;
}

.article-summary-list li {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-primary);
  margin-bottom: 8px;
}

/* テーブル */
.article-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 480px;
}

.article-table th {
  background: var(--primary-light);
  color: var(--text-primary);
  font-weight: 600;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.article-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  vertical-align: middle;
}

.article-table tr:last-child td {
  border-bottom: none;
}

.article-table tr:nth-child(even) td {
  background: var(--bg-light);
}

.article-table__badge {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-md);
  display: inline-block;
}

.article-table__badge--option {
  background: #fef3c7;
  color: #92400e;
}

.article-table__badge--standard {
  background: #d1fae5;
  color: #065f46;
}

/* ── 記事末CTA ────────────────────────────────────────────── */
.article-footer-cta {
  background: var(--primary-light);
  border-radius: var(--radius-md);
  padding: 32px;
  margin-top: 48px;
  text-align: center;
}

.article-footer-cta__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 12px;
  line-height: 1.4;
}

.article-footer-cta__desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 20px;
  line-height: 1.7;
}

.article-footer-cta__btn {
  display: inline-block;
}

/* ── サイドバー ───────────────────────────────────────────── */
.article-sidebar__sticky {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.sidebar-widget {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.sidebar-widget__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 16px;
  background: var(--bg-section);
  border-bottom: 1px solid var(--border);
}

/* サイドバー目次 */
.sidebar-toc__list {
  list-style: none;
  padding: 12px 0;
  margin: 0;
}

.sidebar-toc__list li {
  border-bottom: 1px solid var(--border);
}

.sidebar-toc__list li:last-child {
  border-bottom: none;
}

.sidebar-toc__link {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s, border-left-color 0.2s;
  border-left: 2px solid transparent;
  line-height: 1.5;
}

.sidebar-toc__link:hover {
  color: var(--primary);
  border-left-color: var(--primary);
}

.sidebar-toc__link.is-active {
  color: var(--primary);
  font-weight: 600;
  border-left-color: var(--primary);
  background: var(--primary-light);
}

/* 人気記事 */
.sidebar-popular__list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: popular-counter;
}

.sidebar-popular__item {
  border-bottom: 1px solid var(--border);
  counter-increment: popular-counter;
}

.sidebar-popular__item:last-child {
  border-bottom: none;
}

.sidebar-popular__link {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 16px;
  text-decoration: none;
  transition: background 0.2s;
  position: relative;
}

.sidebar-popular__link:hover {
  background: var(--bg-light);
}

.sidebar-popular__link::before {
  content: counter(popular-counter);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  margin-top: 2px;
  font-family: 'Outfit', sans-serif;
}

.sidebar-popular__thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.sidebar-popular__title {
  font-size: 12px;
  color: var(--text-primary);
  line-height: 1.6;
}

/* サイドバーCTA */
.sidebar-cta {
  padding: 0;
}

.sidebar-cta .sidebar-widget__title {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.sidebar-cta__desc {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 14px 16px 0;
  margin: 0;
  line-height: 1.7;
}

.sidebar-cta__btn {
  display: block;
  margin: 14px 16px;
  text-align: center;
  font-size: 13px;
  padding: 12px 16px;
}

.sidebar-cta__tel {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px 16px;
  gap: 2px;
}

.sidebar-cta__tel-number {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.03em;
}

.sidebar-cta__tel-hours {
  font-size: 11px;
  color: var(--text-light);
}

/* ── S5: 関連記事 ─────────────────────────────────────────── */
.article-related {
  background: var(--bg-section);
}

.article-related__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 var(--space-lg);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

/* ── レスポンシブ ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr 280px;
    gap: 32px;
  }

  .article-header__title {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .article-header {
    padding: 24px 0 32px;
  }

  .article-header__title {
    font-size: 20px;
  }

  .article-header__eyecatch {
    border-radius: var(--radius-md);
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .article-sidebar__sticky {
    position: static;
  }

  /* SP ではサイドバー目次を非表示（本文上部の目次で代替） */
  .sidebar-toc {
    display: none;
  }

  .article-content h2 {
    font-size: 19px;
  }

  .article-content h3 {
    font-size: 16px;
  }

  .article-footer-cta {
    padding: 24px 20px;
  }

  .article-footer-cta__title {
    font-size: 17px;
  }
}

/* ==========================================================================
   商品ページ（item-*.html）2カラムレイアウト
   - WordPress化時に sidebar.php として右カラムを切り出せる構造
   ========================================================================== */

/* ── ページタイトル（簡素化版） ── */
.item-page-header {
  padding: 16px 0 8px;
  border-bottom: 1px solid var(--border);
  background-color: var(--bg-white);
}

.item-page-header__title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: var(--text-primary);
}

/* ── 2カラムグリッド ── */
.item-layout {
  padding: var(--space-lg) 0;
}

.item-layout__grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: start;
}

.item-layout__main {
  min-width: 0;
}

.item-layout__main > .section {
  padding: var(--space-lg) 0;
}

/* ── 商品ストーリー（縦並び：見出し → 画像 → 本文） ── */
.item-layout__main .product-story {
  background-color: transparent;
}

.item-layout__main .product-story__blocks {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.item-layout__main .story-block {
  display: block;
  grid-template-columns: none;
  gap: 0;
  direction: ltr;
}

.item-layout__main .story-block:nth-child(even) {
  direction: ltr;
}

.item-layout__main .story-block__h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
}

.item-layout__main .story-block__h3::after {
  display: none;
}

.item-layout__main .story-block__image {
  margin: 0 0 20px;
}

.item-layout__main .story-block__image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: none;
}

.item-layout__main .story-block__body p + p {
  margin-top: 16px;
}

.item-layout__main .story-block__text {
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.95;
}

/* ── 商品メイン画像（高さ制限） ── */
.item-main-image {
  margin-bottom: var(--space-md);
  background-color: var(--color-bg, #f5f1ea);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.item-main-image__img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  border-radius: var(--radius-md);
  display: block;
}

/* ── ★ CTA ブロック（ファーストビュー内） ── */
.item-cta-block {
  background-color: var(--primary-light);
  border-radius: var(--radius-md);
  padding: 24px 32px;
  margin-bottom: var(--space-md);
}

.item-cta-block.item-cta-block--inline {
  padding: 16px 32px;
}

.item-cta-block__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.item-cta-block__text {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.6;
}

.item-cta-block__buttons {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.item-cta-block__note {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0;
}

/* ── 右カラム: サイドバー ── */
.item-layout__sidebar {
  position: sticky;
  top: calc(var(--header-height) + 16px);
}

/* 商品一覧ナビ */
.sidebar-nav {
  background-color: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 11px 15px 11px;       /* 20px 20px 16px → 11px 15px 11px */
  margin-bottom: 24px;
}

.sidebar-nav__title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;             /* 12px → 6px */
  padding-bottom: 4px;            /* 10px → 4px */
  border-bottom: 2px solid var(--primary);
  line-height: 1.4;
}

.sidebar-nav__group {
  margin-bottom: 0;           /* 14px → 0 */
}

.sidebar-nav__group:last-child {
  margin-bottom: 0;
}

.sidebar-nav__category {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.sidebar-nav__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav__list li {
  margin-bottom: 2px;
}

.sidebar-nav__link {
  display: block;
  padding: 6px 0 6px 12px;
  font-size: 13.5px;
  color: var(--text-secondary);
  text-decoration: none;
  line-height: 1.5;
  border-left: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.sidebar-nav__link:hover {
  color: var(--primary);
  border-left-color: var(--primary-light);
  background-color: var(--bg-light);
  opacity: 1;
}

.sidebar-nav__link.is-current {
  color: var(--primary);
  font-weight: 700;
  border-left-color: var(--primary);
  background-color: var(--primary-light);
}

/* 関連記事 */
.sidebar-related {
  background-color: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.sidebar-related__title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  line-height: 1.4;
}

.sidebar-related__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-related__item {
  margin-bottom: 12px;
}

.sidebar-related__item:last-child {
  margin-bottom: 0;
}

.sidebar-related__link {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  text-decoration: none;
  color: var(--text-primary);
  transition: opacity 0.2s ease;
}

.sidebar-related__link:hover {
  opacity: 0.7;
}

.sidebar-related__img {
  flex-shrink: 0;
  width: 80px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
}

.sidebar-related__name {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-primary);
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── SP（768px以下）: 1カラムに ── */
@media (max-width: 768px) {
  .item-page-header {
    padding: 12px 0 8px;
  }

  .item-page-header__title {
    font-size: 22px;
  }

  .item-layout {
    padding: var(--space-md) 0;
  }

  .item-layout__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .item-layout__sidebar {
    position: static;
    order: 2;
  }

  .item-main-image__img {
    max-height: 220px;
  }

  .item-cta-block {
    padding: 20px 16px;
  }

  .item-cta-block__buttons {
    flex-direction: column;
    width: 100%;
  }

  .item-cta-block__buttons .btn {
    width: 100%;
  }
}

/* ==========================================================================
   v2 デザインシステム ユーティリティ（design-system.md §4 準拠）
   Phase 1 で土台のみ追加。実際の適用は Phase 3 以降の章ヘッダー差し替え時。
   ========================================================================== */

/* §4-1 章ヘッダー（CHAPTER N° 03 / FLOW など） */
.chapter-header {
  display: block;
  margin-bottom: var(--space-6);
}

.chapter-header__num {
  display: block;
  font-family: var(--font-serif-en);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.chapter-header__label {
  display: block;
  font-family: var(--font-serif-en);
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--color-text);
  margin-bottom: var(--space-6);
}

.chapter-header__title {
  font-family: var(--font-serif-jp);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--color-text);
}

.chapter-header__accent {
  background: linear-gradient(transparent 60%, var(--color-accent-soft) 60%);
}

/* §4-2 ページ送り風インジケータ（[ 窓まわり ]   01 / 06） */
.pagination-indicator {
  font-family: var(--font-serif-en);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
}

/* §4-3 セクション末尾ナンバリング（N° 001 — TOP） */
.section-numbering {
  display: inline-block;
  font-family: var(--font-serif-en);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
}

/* §2 ゴールド下線マーカー（蛍光ペン風ハイライト） */
.gold-marker {
  background: linear-gradient(transparent 60%, var(--color-accent-soft) 60%);
}

/* ==========================================================================
   order.html 確認画面の見積セクション
   ========================================================================== */
.confirm-estimate__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-top: 2px solid var(--color-text);
  margin-top: 8px;
}
.confirm-estimate__total-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}
.confirm-estimate__total-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-text);
  font-family: var(--font-sans-jp);
  letter-spacing: -0.01em;
}
.confirm-estimate__note {
  margin-top: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--color-text-sub);
  background: var(--color-bg);
  border-left: 2px solid var(--color-accent-soft);
  line-height: 1.6;
}
.confirm-estimate__note strong {
  color: var(--color-accent);
  margin: 0 2px;
  font-family: var(--font-sans-jp);
}
.confirm-estimate__cat {
  display: block;
  font-size: 11px;
  color: var(--color-text-muted);
  margin-bottom: 2px;
  letter-spacing: 0.04em;
}
.confirm-estimate__name {
  display: inline;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
}
.confirm-estimate__addon {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 500;
  color: var(--color-accent);
  background: var(--color-bg);
  border: 1px solid var(--color-accent-soft);
  border-radius: var(--radius-md);
  vertical-align: middle;
}
.confirm-estimate__qty {
  display: inline-block;
  margin-left: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  font-family: var(--font-sans-jp);
  vertical-align: middle;
}
.confirm-estimate__price {
  text-align: right;
  font-family: var(--font-sans-jp);
  font-weight: 700;
  font-size: 13px;
  color: var(--color-text);
  white-space: nowrap;
}

/* ==========================================================================
   フッター追従 CTA バナーの抑止
   body.no-sticky-cta が付いているページではバナー非表示
   （simulation.html / estimate-order.html / thanks-estimate.html）
   ========================================================================== */
body.no-sticky-cta .sticky-cta,
body.no-sticky-cta #stickyCta {
  display: none !important;
}

/* ==========================================================================
   サンキューページ（thanks-estimate.html）
   ========================================================================== */
.thanks-section {
  padding: var(--space-7) 0 var(--space-8);
  background: var(--color-bg);
}
.thanks-screen {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.thanks-screen__icon {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-4);
}
.thanks-screen__icon svg {
  width: 72px;
  height: 72px;
}
.thanks-screen__title {
  font-family: var(--font-serif-jp);
  font-size: 28px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 var(--space-3);
  letter-spacing: 0.02em;
}
.thanks-screen__lead {
  font-size: 15px;
  color: var(--color-text-sub);
  line-height: 1.9;
  margin: 0 0 var(--space-5);
}
.thanks-screen__lead strong {
  color: var(--color-text);
  font-weight: 700;
}
.thanks-screen__panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-5);
  text-align: left;
}
.thanks-screen__panel-title {
  font-family: var(--font-serif-jp);
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 var(--space-2);
  letter-spacing: 0.02em;
}
.thanks-screen__steps {
  list-style: decimal;
  padding-left: 1.4em;
  margin: 0;
  color: var(--color-text-sub);
  font-size: 14px;
  line-height: 1.8;
}
.thanks-screen__steps li + li {
  margin-top: 6px;
}
.thanks-screen__tel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: var(--space-5);
}
.thanks-screen__tel-label {
  font-size: 12px;
  color: var(--color-text-muted);
}
.thanks-screen__tel-number {
  font-family: var(--font-sans-jp);
  font-size: 26px;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.thanks-screen__tel-hours {
  font-size: 12px;
  color: var(--color-text-muted);
}
.thanks-screen__actions {
  display: flex;
  justify-content: center;
}
@media (max-width: 768px) {
  .thanks-screen__title { font-size: 22px; }
  .thanks-screen__lead { font-size: 14px; }
  .thanks-screen__tel-number { font-size: 22px; }
}

/* ==========================================================================
   印刷用スタイル — 見積PDFテンプレートだけを印刷
   ブラウザの印刷ダイアログから「PDFに保存」で見積書を出力可能にする
   ========================================================================== */
@media print {
  /* body 直下の全要素を消し、見積テンプレートだけ表示 */
  body > * {
    display: none !important;
  }
  body > #pdfTemplate {
    display: block !important;
    position: static !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    width: 100% !important;
    padding: 0 !important;
    box-shadow: none !important;
  }
  /* body 自体の余計なスタイル抑止 */
  html, body {
    background: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    overflow: visible !important;
  }
  @page {
    size: A4 portrait;
    margin: 12mm;
  }
}

/* =========================================================================
   商品ストーリー本文中のハイライトと箇条書き（初心者向けライティング対応）
   ========================================================================= */
.story-block p mark,
.story-block li mark {
  background: linear-gradient(transparent 60%, #fff35a 60%);
  padding: 0 2px;
  color: inherit;
}

.story-block ul {
  padding-left: 24px;
  margin: 12px 0;
  list-style: disc;
}

.story-block li {
  margin-bottom: 8px;
  line-height: 1.8;
  color: var(--color-text, #333);
}

.story-block li mark {
  font-weight: 500;
}

/* =========================================================================
   商品ページ右サイドバー アコーディオン化（カテゴリ単位で開閉）
   ========================================================================= */
.sidebar-nav__group {
  border-top: 1px solid var(--color-border, #e0e0e0);
}
.sidebar-nav__group:last-of-type {
  border-bottom: 1px solid var(--color-border, #e0e0e0);
}
.sidebar-nav__group > summary.sidebar-nav__category {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 3px 32px 5px 0;    /* 8px → 3px */
  font-size: 11px;    /* 14px → 11px */
  font-weight: 600;
  color: var(--text-primary);
  user-select: none;
}
.sidebar-nav__group > summary.sidebar-nav__category::-webkit-details-marker {
  display: none;
}
.sidebar-nav__group > summary.sidebar-nav__category::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-75%) rotate(45deg);
  transition: transform 0.2s ease;
}
.sidebar-nav__group[open] > summary.sidebar-nav__category::after {
  transform: translateY(-25%) rotate(-135deg);
}
.sidebar-nav__group > summary.sidebar-nav__category:hover {
  color: var(--color-primary, #1a6fb5);
}
.sidebar-nav__group > .sidebar-nav__list {
  padding: 4px 0 12px 12px;
  margin: 0;
  list-style: none;
}

/* =========================================================================
   フッター コピーライト + プライバシーポリシー（ブランド説明文の直下に配置）
   ========================================================================= */
.footer__brand-legal {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--text-secondary, #888);
}
.footer__brand-legal .footer__copy {
  margin: 0;
  font-size: 12px;
  color: inherit;
}
.footer__brand-legal .footer__legal-link {
  font-size: 12px;
  color: inherit;
  text-decoration: none;
}
.footer__brand-legal .footer__legal-link:hover {
  color: var(--color-accent, #c54a36);
  text-decoration: underline;
}

/* コピーライトの英語部分（"All Rights Reserved."）を塊で改行 */
.footer__copy-en {
  white-space: nowrap;
}

/* SP時はコピーライト全体を少し小さく */
@media (max-width: 768px) {
  .footer__copy {
    font-size: 11px;
  }
  .footer__copy-en {
    display: inline-block;
  }
}

/* =========================================================================
   フッター 拡張：ナビ群 / 商品ページ一覧 / 対応エリア
   ========================================================================= */
/* 既存の.footer__gridは brand + nav-cols の2カラム構成に変更 */
.footer .footer__grid {
  grid-template-columns: 1.4fr 2fr;
}

/* ブランド情報内：tel と legal の縦間隔調整 */
.footer__brand .footer__tel {
  margin-top: var(--space-md);
}

/* ナビ群（サービス + ご利用ガイド） */
.footer__nav-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

/* 商品ページ一覧 */
.footer__products {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--space-xl) 0;
}

.footer__products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg) var(--space-xl);
}

.footer__products-cat {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 10px;
  letter-spacing: 0.04em;
}

.footer__products-cat--spaced {
  margin-top: var(--space-md);
}

.footer__products-col .footer__links {
  gap: 6px;
  margin-bottom: 4px;
}

.footer__products-col .footer__link {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

/* 対応エリア */
.footer__areas {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--space-xl) 0;
}

.footer__areas-list {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.9;
  margin: 0;
}

/* レスポンシブ：タブレット */
@media (max-width: 1024px) {
  .footer .footer__grid {
    grid-template-columns: 1fr;
  }
  .footer__products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* レスポンシブ：SP（max-width: 768px）
   ブランド情報のみ表示し、ナビ群・商品一覧・対応エリアは非表示にしてCTA重視に */
@media (max-width: 768px) {
  .footer__nav-cols,
  .footer__products,
  .footer__areas {
    display: none;
  }
  .footer .footer__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  /* ブランド情報の親はデフォルト左揃えに戻す（継承の影響を打ち消す） */
  .footer__brand {
    grid-column: auto;
    text-align: left;
  }
  /* ロゴ：中央寄せ */
  .footer .footer__logo {
    display: block;
    text-align: center;
  }
  /* 説明文：両端まで均等割り（最終行は左寄せで自然に） */
  .footer .footer__brand-desc {
    text-align: justify;
    text-align-last: auto;
  }
  /* 電話番号エリア：中央寄せ（CTA重視） */
  .footer__brand .footer__tel {
    align-items: center;
    text-align: center;
  }
  /* コピーライト・プライバシー：左揃え */
  .footer .footer__brand-legal {
    align-items: flex-start;
    text-align: left;
  }
  .footer .footer__brand-legal .footer__copy,
  .footer .footer__brand-legal .footer__legal-link {
    text-align: left;
  }
}

/* =========================================================================
   フッター アコーディオン（PC：取扱商品一覧 / 対応エリア）
   ========================================================================= */
.footer__accordion {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0;
}

.footer__accordion > .footer__accordion-summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  padding: var(--space-md) 0;
  margin: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: none;
  padding-right: 32px;
}

/* デフォルトの開閉マーカーを消す */
.footer__accordion > .footer__accordion-summary::-webkit-details-marker {
  display: none;
}

/* カスタムシェブロン（▾） */
.footer__accordion > .footer__accordion-summary::after {
  content: '';
  position: absolute;
  right: 4px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(255, 255, 255, 0.55);
  border-bottom: 2px solid rgba(255, 255, 255, 0.55);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}

.footer__accordion[open] > .footer__accordion-summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.footer__accordion > .footer__accordion-summary:hover {
  color: var(--bg-white);
}

/* アコーディオン展開時の中身に上下余白 */
.footer__accordion[open] > .footer__products-grid,
.footer__accordion[open] > .footer__areas-list,
.footer__accordion[open] > .footer__links {
  padding-top: var(--space-md);
  padding-bottom: var(--space-md);
}

/* ナビ用アコーディオン（サービス/ご利用ガイド）はborder-top不要 */
.footer__accordion--nav {
  border-top: none;
}
.footer__accordion--nav > .footer__accordion-summary {
  padding-top: 0;
  padding-bottom: var(--space-sm);
}

/* =====================================
   ヒーロータイトルの孤立行対策
   ===================================== */
.nowrap {
  display: inline-block;
}

.hero__title {
  text-wrap: pretty;
}

/* =====================================
   お悩み訴求カルーセル(Swiper)
   ===================================== */
/* swiperを囲む外側のラッパー(ページネーション独立配置用) */
.problems-swiper-wrap {
  position: relative;
}

.problems-swiper {
  position: relative;
  padding: 8px 0; /* 下のページネーションは外に出したので余白不要 */
  overflow: hidden;
}

/* スライド内のカードの高さを揃える */
.problems-swiper .swiper-slide {
  height: auto;
  display: flex;
}

.problems-swiper .swiper-slide .problem-card {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.problems-swiper .swiper-slide .problem-card__desc {
  flex-grow: 1;
}

/* ナビゲーション矢印(独自スタイル) */
.problems-swiper .swiper-button-prev,
.problems-swiper .swiper-button-next {
  width: 48px;
  height: 48px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  color: var(--text-primary);
  transition: all 0.2s ease;
  margin-top: -24px; /* カードの縦中央に */
}

.problems-swiper .swiper-button-prev:hover,
.problems-swiper .swiper-button-next:hover {
  background: var(--primary, var(--color-accent));
  color: #fff;
  border-color: transparent;
}

.problems-swiper .swiper-button-prev::after,
.problems-swiper .swiper-button-next::after {
  font-size: 18px;
  font-weight: 700;
}

.problems-swiper .swiper-button-prev {
  left: -8px;
}

.problems-swiper .swiper-button-next {
  right: -8px;
}

/* ページネーション(swiper外・カード下に独立配置) */
.problems-swiper-wrap .swiper-pagination {
  position: static;
  margin-top: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.problems-swiper-wrap .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: var(--border);
  opacity: 1;
  transition: all 0.2s ease;
  margin: 0 !important; /* Swiperデフォルトのmarginを打ち消し */
}

.problems-swiper-wrap .swiper-pagination-bullet-active {
  background: var(--color-accent);
  width: 28px;
  border-radius: 5px;
}

/* タブレット未満では矢印を画面内に */
@media (max-width: 1100px) {
  .problems-swiper .swiper-button-prev {
    left: 4px;
  }
  .problems-swiper .swiper-button-next {
    right: 4px;
  }
}

/* スマホでは矢印を非表示(スワイプ操作で十分) */
@media (max-width: 640px) {
  .problems-swiper .swiper-button-prev,
  .problems-swiper .swiper-button-next {
    display: none;
  }
}

/* =========================================================================
   料金表 2段化（price-table__table--enhanced + price-row__*）
   - 商品名カラム：種別(type) + 商品名(label) を上段、補足(sublabel) を下段に
   - 価格カラム：value を中央配置
   ========================================================================= */
.price-table__table--enhanced thead th.price-table__th-price {
  text-align: right;
  white-space: nowrap;
}

.price-table__table--enhanced tbody td.price-table__td-label {
  padding: 14px 20px;
  vertical-align: middle;
}

.price-table__table--enhanced tbody td.price-table__td-price {
  padding: 14px 20px;
  text-align: right;
  vertical-align: middle;
  white-space: nowrap;
}

/* 商品名(上段): type + label を横並び */
.price-table__table--enhanced .price-row__main {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-bottom: 4px;
}

.price-table__table--enhanced .price-row__type {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary, #888);
  letter-spacing: 0.03em;
  line-height: 1.3;
}

.price-table__table--enhanced .price-row__label {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

/* 補足(下段) */
.price-table__table--enhanced .price-row__sublabel {
  font-size: 12px;
  color: var(--text-secondary, #888);
  line-height: 1.5;
  margin: 0;
  font-weight: 400;
}

/* 価格 */
.price-table__table--enhanced .price-row__value {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

/* SP対応 */
@media (max-width: 768px) {
  .price-table__table--enhanced tbody td.price-table__td-label {
    padding: 12px 12px;
  }
  .price-table__table--enhanced tbody td.price-table__td-price {
    padding: 12px 12px;
  }
  .price-table__table--enhanced .price-row__label {
    font-size: 14px;
  }
  .price-table__table--enhanced .price-row__type {
    font-size: 11px;
  }
  .price-table__table--enhanced .price-row__sublabel {
    font-size: 11px;
  }
  .price-table__table--enhanced .price-row__value {
    font-size: 14px;
  }
}
/* =========================================================================
   SPドロワー: オプション工事一覧 アコーディオン
   ※ @media (max-width: 768px) で囲み、PCには一切影響しない
   ========================================================================= */
@media (max-width: 768px) {

  /* 第1階層: details ラッパ
     既存 .header__drawer-link の border-bottom がそのまま下線として効くので
     ここでは追加スタイル不要 */
  .header__drawer-accordion {
  }

  /* 第1階層: 「オプション工事 一覧」サマリ
     既存 .header__drawer-link のスタイルを継承しつつ、矢印 › を +/− に変更 */
  .header__drawer-link--toggle {
    list-style: none;
    cursor: pointer;
    user-select: none;
  }
  .header__drawer-link--toggle::-webkit-details-marker {
    display: none;
  }
  .header__drawer-link--toggle::after {
    content: '+';          /* 既存 '›' を上書き */
    font-size: 22px;
    font-weight: 400;
    color: var(--primary);
    line-height: 1;
  }
  .header__drawer-accordion[open] > .header__drawer-link--toggle::after {
    content: '−';
  }

  /* 第2階層: カテゴリ群コンテナ */
  .header__drawer-cats {
    padding: 4px 0 6px 8px;
    background-color: rgba(0, 0, 0, 0.02);
  }

  /* 第2階層: カテゴリ単位 details */
  .header__drawer-cat {
    border-bottom: 1px solid var(--border);
  }
  .header__drawer-cat:last-child {
    border-bottom: none;
  }

  /* 第2階層: カテゴリ summary（窓まわり 等） */
  .header__drawer-cat-summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 6px 10px 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
  }
  .header__drawer-cat-summary::-webkit-details-marker {
    display: none;
  }
  .header__drawer-cat-summary::after {
    content: '+';
    font-size: 18px;
    font-weight: 400;
    color: var(--primary);
    line-height: 1;
  }
  .header__drawer-cat[open] > .header__drawer-cat-summary::after {
    content: '−';
  }

  /* 第3階層: 商品リンク群 */
  .header__drawer-cat-list {
    list-style: none;
    padding: 0 0 8px 20px;
    margin: 0;
  }
  .header__drawer-cat-list li {
    margin: 0;
  }
  .header__drawer-cat-list a {
    display: block;
    padding: 8px 6px;
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    line-height: 1.4;
    border-bottom: 1px dotted rgba(0, 0, 0, 0.06);
  }
  .header__drawer-cat-list li:last-child a {
    border-bottom: none;
  }
  .header__drawer-cat-list a:hover,
  .header__drawer-cat-list a:active {
    color: var(--primary);
  }
}
/* =========================================================================
   協力業者募集ページ (page-partners.php) 専用スタイル
   styles.css 末尾に追加
   ========================================================================= */

/* -------- 共通: ページヒーロー -------------------------------------------- */
.page-hero {
  position: relative;
  padding: 120px 0 100px;
  background:
    radial-gradient(circle at 20% 20%, rgba(var(--primary-rgb, 192, 36, 36), 0.06), transparent 50%),
    linear-gradient(180deg, #fbf9f7 0%, #ffffff 100%);
  text-align: center;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 1px;
  height: 60px;
  background: var(--primary);
  opacity: 0.4;
}
.page-hero__label {
  display: inline-block;
  font-family: var(--font-display, 'Inter', sans-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--primary);
  margin-bottom: 24px;
  padding: 0 4px 0 0;
}
.page-hero__title {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
  margin: 0 0 32px;
  letter-spacing: 0.05em;
}
.page-hero__lead {
  max-width: 720px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 2;
  color: var(--text-secondary, #555);
}

@media (max-width: 768px) {
  .page-hero {
    padding: 70px 0 56px;
  }
  .page-hero__label {
    font-size: 11px;
    margin-bottom: 16px;
  }
  .page-hero__title {
    font-size: 26px;
    margin-bottom: 20px;
  }
  .page-hero__lead {
    font-size: 14px;
    line-height: 1.9;
    padding: 0 4px;
  }
  .page-hero__lead br { display: none; }
}

/* -------- 共通: section の bg-soft modifier ------------------------------ */
.section--bg-soft {
  background-color: #f7f5f2;
}

/* -------- 共通: セクションヘッダ強化(partners-* スコープ) --------------- */
.section .section__header {
  text-align: center;
  margin-bottom: 56px;
}
.section .section__label {
  display: inline-block;
  font-family: var(--font-display, 'Inter', sans-serif);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--primary);
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 12px;
}
.section .section__label::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 32px;
  height: 2px;
  background: var(--primary);
  transform: translateX(-50%);
}
.section .section__title {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-primary);
  margin: 0 0 16px;
  letter-spacing: 0.04em;
}
.section .section__desc {
  max-width: 640px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-secondary, #555);
}

@media (max-width: 768px) {
  .section .section__header { margin-bottom: 36px; }
  .section .section__label { font-size: 11px; }
  .section .section__title { font-size: 22px; }
  .section .section__desc { font-size: 13.5px; }
}

/* =========================================================================
   P2: 募集の背景
   ========================================================================= */
.partners-intro {
  max-width: 820px;
  margin: 0 auto;
}
.partners-intro p {
  font-size: 16px;
  line-height: 2.1;
  color: var(--text-primary);
  margin: 0 0 24px;
}
.partners-intro p:last-child { margin-bottom: 0; }
.partners-intro strong {
  color: var(--primary);
  font-weight: 700;
  border-bottom: 2px solid rgba(192, 36, 36, 0.15);
  padding-bottom: 2px;
}

@media (max-width: 768px) {
  .partners-intro p { font-size: 14px; line-height: 1.95; }
}

/* =========================================================================
   P3: 募集職種 - グリッドカード
   ========================================================================= */
.partners-trades-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.partners-trade-card {
  background: #ffffff;
  border: 1px solid #e8e4dd;
  border-radius: 8px;
  padding: 28px 24px;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}
.partners-trade-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.partners-trade-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  border-color: rgba(192, 36, 36, 0.2);
}
.partners-trade-card:hover::before { transform: scaleX(1); }

.partners-trade-card__title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #d8d2c8;
}
.partners-trade-card__body {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-secondary, #555);
  margin: 0;
}

@media (max-width: 960px) {
  .partners-trades-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .partners-trades-grid { grid-template-columns: 1fr; gap: 14px; }
  .partners-trade-card { padding: 20px 18px; }
  .partners-trade-card__title { font-size: 15px; }
  .partners-trade-card__body { font-size: 13px; }
}

/* =========================================================================
   P4: ご一緒する3つのメリット
   ========================================================================= */
.partners-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.partners-benefit {
  background: #ffffff;
  border-radius: 10px;
  padding: 40px 28px 32px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.partners-benefit__num {
  font-family: var(--font-display, 'Inter', sans-serif);
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  color: var(--primary);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
  position: relative;
}
.partners-benefit__num::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--primary);
  margin-top: 14px;
  border-radius: 2px;
}
.partners-benefit__title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-primary);
  margin: 0 0 14px;
}
.partners-benefit__body {
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-secondary, #555);
  margin: 0;
}

@media (max-width: 768px) {
  .partners-benefits { grid-template-columns: 1fr; gap: 18px; }
  .partners-benefit { padding: 28px 22px; }
  .partners-benefit__num { font-size: 44px; }
}

/* =========================================================================
   P5: 求めるパートナー像 - チェックリスト
   ========================================================================= */
.partners-requirements {
  max-width: 820px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 28px;
}

.partners-requirements li {
  position: relative;
  padding: 14px 18px 14px 50px;
  background: #ffffff;
  border-radius: 6px;
  border-left: 3px solid var(--primary);
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.partners-requirements li::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px 12px;
  background-position: center;
  background-repeat: no-repeat;
}

.partners-note {
  max-width: 820px;
  margin: 24px auto 0;
  font-size: 13px;
  color: var(--text-secondary, #666);
  text-align: center;
}

@media (max-width: 768px) {
  .partners-requirements { grid-template-columns: 1fr; gap: 10px; }
  .partners-requirements li { font-size: 13.5px; padding: 12px 16px 12px 44px; }
}

/* =========================================================================
   P6: お仕事の流れ - タイムライン
   ========================================================================= */
.partners-flow {
  max-width: 880px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
  position: relative;
}

.partners-flow::before {
  content: '';
  position: absolute;
  left: 50px;
  top: 30px;
  bottom: 30px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary) 0%, rgba(192, 36, 36, 0.2) 100%);
}

.partners-flow__step {
  position: relative;
  padding: 0 0 32px 110px;
  min-height: 80px;
}
.partners-flow__step:last-child { padding-bottom: 0; }

.partners-flow__step::before {
  content: '';
  position: absolute;
  left: 38px;
  top: 18px;
  width: 26px;
  height: 26px;
  background: #ffffff;
  border: 3px solid var(--primary);
  border-radius: 50%;
  z-index: 1;
}

.partners-flow__num {
  position: absolute;
  left: 0;
  top: 14px;
  font-family: var(--font-display, 'Inter', sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--primary);
  background: #ffffff;
  padding: 2px 4px;
}

.partners-flow__title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-primary);
  margin: 0 0 10px;
  padding-top: 8px;
}
.partners-flow__body {
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-secondary, #555);
  margin: 0;
}

@media (max-width: 768px) {
  .partners-flow::before { left: 14px; }
  .partners-flow__step { padding: 0 0 28px 50px; min-height: 0; }
  .partners-flow__step::before { left: 2px; width: 22px; height: 22px; top: 14px; }
  .partners-flow__num {
    position: static;
    background: transparent;
    display: inline-block;
    margin-bottom: 6px;
    padding: 0;
  }
  .partners-flow__title { font-size: 16px; padding-top: 0; }
  .partners-flow__body { font-size: 13.5px; }
}

/* =========================================================================
   P7: FAQ
   ========================================================================= */
.partners-faq {
  max-width: 820px;
  margin: 0 auto;
}

.partners-faq__item {
  background: #ffffff;
  border: 1px solid #e8e4dd;
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}
.partners-faq__item[open] {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border-color: rgba(192, 36, 36, 0.25);
}

.partners-faq__q {
  list-style: none;
  cursor: pointer;
  user-select: none;
  padding: 20px 56px 20px 60px;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--text-primary);
  position: relative;
  transition: background 0.2s ease;
}
.partners-faq__q::-webkit-details-marker { display: none; }
.partners-faq__q:hover { background: #fbf8f4; }

.partners-faq__q::before {
  content: 'Q';
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background: var(--primary);
  color: #ffffff;
  font-family: var(--font-display, 'Inter', sans-serif);
  font-size: 15px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partners-faq__q::after {
  content: '+';
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 300;
  color: var(--primary);
  line-height: 1;
  transition: transform 0.25s ease;
}
.partners-faq__item[open] > .partners-faq__q::after {
  content: '−';
}

.partners-faq__a {
  padding: 0 60px 22px 60px;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--text-secondary, #555);
  position: relative;
}
.partners-faq__a::before {
  content: 'A';
  position: absolute;
  left: 20px;
  top: 0;
  width: 30px;
  height: 30px;
  background: #f0ece5;
  color: var(--primary);
  font-family: var(--font-display, 'Inter', sans-serif);
  font-size: 15px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .partners-faq__q { padding: 16px 44px 16px 52px; font-size: 14px; }
  .partners-faq__q::before { left: 14px; width: 26px; height: 26px; font-size: 13px; }
  .partners-faq__q::after { right: 16px; font-size: 20px; }
  .partners-faq__a { padding: 0 18px 18px 52px; font-size: 13.5px; }
  .partners-faq__a::before { left: 14px; width: 26px; height: 26px; font-size: 13px; }
}

/* =========================================================================
   P8: 応募フォーム (Contact Form 7)
   ========================================================================= */
.partners-form {
  max-width: 760px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 12px;
  padding: 48px 48px 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

/* CF7 全体リセット & スタッキング */
.partners-cf7 .partners-cf7__row {
  display: block;
  margin: 0 0 26px;
}

.partners-cf7__label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.5;
}

.partners-cf7__required {
  display: inline-block;
  padding: 2px 8px;
  background: var(--primary);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  border-radius: 3px;
  letter-spacing: 0.05em;
}
.partners-cf7__optional {
  display: inline-block;
  padding: 2px 8px;
  background: #ece8e1;
  color: #777;
  font-size: 10.5px;
  font-weight: 700;
  border-radius: 3px;
  letter-spacing: 0.05em;
}

/* テキスト系 input / textarea / select */
.partners-cf7 input[type="text"],
.partners-cf7 input[type="email"],
.partners-cf7 input[type="tel"],
.partners-cf7 textarea,
.partners-cf7 select {
  width: 100%;
  padding: 13px 14px;
  font-size: 15px;
  font-family: inherit;
  line-height: 1.5;
  color: var(--text-primary);
  background: #faf8f5;
  border: 1px solid #d8d2c8;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.partners-cf7 select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23999' stroke-width='1.8'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  padding-right: 38px;
}

.partners-cf7 input[type="text"]:focus,
.partners-cf7 input[type="email"]:focus,
.partners-cf7 input[type="tel"]:focus,
.partners-cf7 textarea:focus,
.partners-cf7 select:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(192, 36, 36, 0.12);
}

.partners-cf7 textarea {
  min-height: 160px;
  resize: vertical;
  font-family: inherit;
}

/* CF7 のラジオ・チェックボックスリスト */
.partners-cf7 .wpcf7-list-item {
  display: inline-block;
  margin: 0 8px 8px 0;
}
.partners-cf7 .wpcf7-list-item.first { margin-left: 0; }

.partners-cf7 .wpcf7-list-item-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 9px 16px 9px 38px;
  background: #faf8f5;
  border: 1px solid #d8d2c8;
  border-radius: 6px;
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.4;
}
.partners-cf7 .wpcf7-list-item input[type="radio"],
.partners-cf7 .wpcf7-list-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.partners-cf7 .wpcf7-list-item-label::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid #b8b0a3;
  background: #ffffff;
  transition: all 0.15s ease;
}
.partners-cf7 .wpcf7-list-item:has(input[type="radio"]) .wpcf7-list-item-label::before {
  border-radius: 50%;
}
.partners-cf7 .wpcf7-list-item:has(input[type="checkbox"]) .wpcf7-list-item-label::before {
  border-radius: 3px;
}

/* チェック時 */
.partners-cf7 .wpcf7-list-item:has(input:checked) .wpcf7-list-item-label {
  background: rgba(192, 36, 36, 0.06);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 700;
}
.partners-cf7 .wpcf7-list-item:has(input:checked) .wpcf7-list-item-label::before {
  border-color: var(--primary);
  background: var(--primary);
}
.partners-cf7 .wpcf7-list-item:has(input[type="radio"]:checked) .wpcf7-list-item-label::after {
  content: '';
  position: absolute;
  left: 17px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
}
.partners-cf7 .wpcf7-list-item:has(input[type="checkbox"]:checked) .wpcf7-list-item-label::after {
  content: '';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 5px;
  height: 10px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  margin-top: -2px;
}

/* 同意チェック行 */
.partners-cf7__row--acceptance {
  text-align: center;
  margin: 32px 0 24px;
  padding: 20px 0;
  border-top: 1px solid #ece8e1;
}
.partners-cf7__row--acceptance .wpcf7-list-item {
  margin: 0;
  display: inline-block;
}
.partners-cf7__row--acceptance .wpcf7-list-item-label {
  background: transparent;
  border: none;
  padding-left: 30px;
  font-size: 14px;
}
.partners-cf7__row--acceptance .wpcf7-list-item-label::before {
  left: 0;
}
.partners-cf7__row--acceptance .wpcf7-list-item:has(input:checked) .wpcf7-list-item-label {
  background: transparent;
  color: var(--text-primary);
}
.partners-cf7__row--acceptance a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 送信ボタン */
.partners-cf7__submit {
  text-align: center;
  margin: 0;
}
.partners-cf7 input[type="submit"] {
  display: inline-block;
  min-width: 320px;
  padding: 18px 48px;
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 6px 18px rgba(192, 36, 36, 0.25);
  -webkit-appearance: none;
  appearance: none;
}
.partners-cf7 input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(192, 36, 36, 0.35);
  background: #a51e1e;
}
.partners-cf7 input[type="submit"]:active {
  transform: translateY(0);
}

/* CF7 検証メッセージ */
.partners-cf7 .wpcf7-not-valid-tip {
  color: var(--primary);
  font-size: 12.5px;
  margin-top: 6px;
  display: block;
}
.partners-cf7 .wpcf7-not-valid {
  border-color: var(--primary) !important;
  background: rgba(192, 36, 36, 0.04) !important;
}
.partners-cf7 .wpcf7-response-output {
  margin: 24px 0 0 !important;
  padding: 14px 18px !important;
  border-width: 2px !important;
  border-radius: 6px;
  font-size: 14px;
  text-align: center;
}

/* 電話フォールバック */
.partners-tel-fallback {
  text-align: center;
  margin: 28px 0 0;
  font-size: 14px;
  color: var(--text-secondary, #666);
}
.partners-tel-link {
  display: inline-block;
  font-family: var(--font-display, 'Inter', sans-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  margin: 0 6px;
  letter-spacing: 0.02em;
}
.partners-tel-link::before {
  content: '☎ ';
  font-size: 18px;
}

@media (max-width: 768px) {
  .partners-form { padding: 28px 20px 24px; border-radius: 8px; }
  .partners-cf7 .partners-cf7__row { margin-bottom: 22px; }
  .partners-cf7 input[type="submit"] { min-width: 0; width: 100%; padding: 16px; font-size: 15px; }
  .partners-tel-link { font-size: 18px; }
  .partners-tel-fallback { font-size: 13px; }
}

/* =========================================================================
   SEO 商品ページ ブラッシュアップ用 CSS（amido 等で使用）
   エディトリアル路線（ベージュ + ゴールド + 朱赤・明朝）に揃える
   ========================================================================= */

/* ── ページタイトル メタ情報（公開日・著者） ── */
.item-page-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--color-text-sub);
  line-height: 1.7;
  letter-spacing: 0.04em;
}
.item-page-header__date,
.item-page-header__author {
  display: inline-block;
}

/* ── 目次（Table of Contents） ── */
.item-layout__main > .toc,
.toc {
  padding: var(--space-md) 0;
}
.toc__details {
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px 24px;
}
.toc__summary {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif-jp);
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  user-select: none;
  list-style: none;
  letter-spacing: 0.04em;
}
.toc__summary::-webkit-details-marker {
  display: none;
}
.toc__summary::after {
  content: '▾';
  margin-left: auto;
  font-size: 14px;
  color: var(--color-accent);
  transition: transform 0.2s;
}
.toc__details[open] .toc__summary::after {
  transform: rotate(180deg);
}
.toc__icon {
  font-size: 18px;
}
.toc__list {
  margin: 14px 0 0;
  padding-left: 22px;
  list-style: decimal;
  font-family: var(--font-sans-jp);
}
.toc__item {
  margin-bottom: 6px;
}
.toc__link {
  color: var(--color-text);
  text-decoration: none;
  line-height: 1.75;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  transition: color 0.15s ease;
}
.toc__link:hover {
  color: var(--color-accent);
  opacity: 1;
}

/* ── セクション内 H3（既存 .item-layout__main .story-block__h3 のフル幅実線パターンと完全一致） ── */
.item-layout__main .section__h3,
.section__h3 {
  font-family: var(--font-serif-jp);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
}
/* 短帯 ::after は使わない（既存商品ページパターンに合わせて非表示） */
.item-layout__main .section__h3::after,
.section__h3::after {
  display: none;
}

/* ── セクション内 リスト（既存 .story-block ul / li パターンと完全一致） ── */
.section__list {
  font-family: var(--font-sans-jp);
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.8;
  margin: 12px 0;
  padding-left: 24px;
  list-style: disc;
}
.section__list li {
  margin-bottom: 8px;
}
.section__list li strong {
  color: var(--color-text);
  font-weight: 700;
}

/* ── product-intro / product-section の本文 ── */
.product-intro,
.product-section {
  padding: var(--space-lg) 0;
}
/* 本文段落（既存 .item-layout__main .story-block__text パターンと完全一致） */
.product-intro__body,
.product-section__body {
  font-family: var(--font-sans-jp);
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.95;
}
/* 段落間余白は隣接セレクタで（既存 .item-layout__main .story-block__body p + p パターン） */
.product-intro__body p + p,
.product-section__body p + p {
  margin-top: 16px;
}
.product-intro__body strong,
.product-section__body strong {
  font-weight: 700;
  color: var(--text-primary);
}
.product-intro__body mark,
.product-section__body mark {
  background: linear-gradient(transparent 60%, #fff35a 60%);
  padding: 0 2px;
  color: inherit;
  font-weight: 500;
}
.product-section__body .story-block__image {
  margin: var(--space-md) 0;
}
.product-section__body .story-block__image img {
  border-radius: var(--radius-md);
  width: 100%;
  height: auto;
}

/* ── 結論ボックス（各セクション冒頭の「結論：...」を視覚的に強調） ── */
.section__conclusion {
  background-color: var(--color-bg-alt);
  border-left: 4px solid var(--color-accent);
  padding: 18px 24px;
  margin: 0 0 var(--space-md);
  font-family: var(--font-sans-jp);
  font-size: 15.5px;
  color: var(--text-primary);
  line-height: 1.9;
  letter-spacing: 0.02em;
}
.section__conclusion strong {
  font-weight: 700;
  color: var(--text-primary);
}
.section__conclusion p {
  margin: 0;
}
.section__conclusion p + p {
  margin-top: 10px;
}

/* ── セクション・段落間の余白（詰まりすぎ解消） ── */
/* セクション本体の縦余白を 32px → 48px に拡大 */
.item-layout__main > .product-intro,
.item-layout__main > .product-section {
  padding: var(--space-6) 0;  /* 48px */
}
/* セクション本体内で次の H3 が来る前に大きめの呼吸間を確保（初手は不要） */
.product-intro__body > * + .section__h3,
.product-section__body > * + .section__h3 {
  margin-top: 40px;
}
.product-intro__body > .section__h3:first-child,
.product-section__body > .section__h3:first-child {
  margin-top: 0;
}
/* p ↔ ul（または section__list）間の余白 */
.product-intro__body p + ul,
.product-intro__body ul + p,
.product-section__body p + ul,
.product-section__body ul + p,
.product-intro__body p + .section__list,
.product-intro__body .section__list + p,
.product-section__body p + .section__list,
.product-section__body .section__list + p {
  margin-top: 16px;
}
/* p ↔ specs-table-wrapper 間の余白 */
.product-section__body p + .specs-table-wrapper,
.product-section__body .specs-table-wrapper + p,
.product-section__body p + .specs-grid,
.product-section__body .specs-grid + p {
  margin-top: 20px;
}
/* 結論ボックスの直後に H3 が来た場合の余白 */
.product-intro__body > .section__conclusion + .section__h3,
.product-section__body > .section__conclusion + .section__h3 {
  margin-top: 40px;
}

/* ── intro 末尾のハイライト（チェックリスト・ゴールド左帯） ── */
.intro__highlights {
  background-color: var(--color-bg-alt);
  border-left: 4px solid var(--color-accent);
  padding: 18px 24px;
  margin-top: var(--space-md);
  list-style: none;
  font-family: var(--font-sans-jp);
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.95;
}
.intro__highlights li {
  padding: 4px 0;
  letter-spacing: 0.02em;
}

/* ── 著者情報セクション ── */
.author-info {
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--color-divider);
  margin-top: var(--space-lg);
}
.author-info__title {
  font-family: var(--font-serif-jp);
  font-size: 19px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-md);
  letter-spacing: 0.04em;
}
.author-info__list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 24px;
  font-family: var(--font-sans-jp);
  font-size: 14px;
  margin: 0 0 var(--space-md);
  line-height: 1.7;
}
.author-info__list dt {
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.04em;
}
.author-info__list dd {
  margin: 0;
  color: var(--color-text-sub);
}
.author-info__note {
  font-family: var(--font-sans-jp);
  font-size: 13px;
  color: var(--color-text-sub);
  line-height: 1.85;
  padding-top: 14px;
  border-top: 1px dashed var(--color-divider);
}

/* ── SP 対応 ── */
@media (max-width: 768px) {
  .item-page-header__meta {
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
  }
  .toc__details {
    padding: 14px 18px;
  }
  .toc__summary {
    font-size: 15px;
  }
  .toc__list {
    padding-left: 20px;
  }
  .toc__link {
    font-size: 14px;
  }
  .item-layout__main .section__h3,
  .section__h3 {
    font-size: 19px;
    margin: var(--space-md) 0 var(--space-sm);
  }
  .product-intro__body,
  .product-section__body {
    font-size: 15px;
    line-height: 1.9;
  }
  .intro__highlights {
    padding: 14px 18px;
    font-size: 14px;
  }
  .author-info__list {
    grid-template-columns: 1fr;
    gap: 2px 0;
  }
  .author-info__list dt {
    margin-top: 10px;
  }
  .author-info__list dt:first-of-type {
    margin-top: 0;
  }
  .author-info__title {
    font-size: 17px;
  }
}

/* =========================================================================
   画像ライトボックス（タップで拡大）- amido 等の商品ページ本文画像用
   ========================================================================= */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
  cursor: zoom-out;
}
.lightbox-overlay.is-active {
  display: flex;
}
.lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  cursor: default;
  border-radius: var(--radius-md);
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-text);
  border: none;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans-jp);
}
.lightbox-close:hover {
  background: #fff;
}
@media (max-width: 768px) {
  .lightbox-overlay {
    padding: 12px;
  }
  .lightbox-close {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }
}
