/* ==========================================================================
   税理士事務所向け 生成AI導入伴走 LP (shigyoai)
   デザイン方向: 「差分(diff)を静かに示す紙面」
   白練の紙面 × 墨青のブロック × 浅葱のアクセント。
   煽らず、事実を罫線で仕切って並べる。過去LPとは配色・書体とも重複させない。

   読み手は40〜50代の会計事務所の所長。可読性を最優先に組む。
   - 走る文に等幅欧文フォントを混ぜない (和文がOSのmonospaceへ落ちるため)
   - 読ませる本文は 16px 以上、注記は 15px 以上を下限とする
   - 本文のコントラストは 7:1 級を基準にする
   ========================================================================== */

:root {
  --paper: #f4f2ed;
  --paper-2: #eae7df;
  --surface: #fbfaf7;
  --ink: #14212b;
  --ink-2: #1d2e3a;

  /* 文字色: 読ませる本文は --text。--text-sub は注記・補足に限定する。
     --text-sub は paper 上で約7.0:1、paper-2 上で約6.3:1。 */
  --text: #14202a;
  --text-sub: #46545e;
  --text-on-ink: #eaf1f4;
  --text-on-ink-sub: #b3c5cf;

  --accent: #0e7c86;
  --accent-strong: #0a5f67;
  --accent-on-ink: #7fd8e0;
  --accent-tint: rgba(14, 124, 134, 0.1);
  --marker: rgba(14, 124, 134, 0.22);
  --marker-on-ink: rgba(127, 216, 224, 0.28);
  --line: rgba(20, 33, 43, 0.14);
  --line-soft: rgba(20, 33, 43, 0.08);
  --line-on-ink: rgba(232, 238, 241, 0.18);
  --danger: #97392a;

  /* 書体の役割
     display: 見出し・数値・ボタンなど字面を締めたいところ
     body   : 走る文すべて
     label  : ラベル/タグ。和文が混ざるため必ず和文書体を含める
     mono   : 欧数字のみの箇所に限定 (日付・連番・コピーライト) */
  --font-display: "Murecho", "Zen Kaku Gothic New", sans-serif;
  --font-body: "Zen Kaku Gothic New", "Murecho", sans-serif;
  --font-label: "Murecho", "Zen Kaku Gothic New", sans-serif;
  --font-mono: "DM Mono", ui-monospace, monospace;

  /* タイポスケール。rem 基準にしてブラウザの文字サイズ設定に追従させる。 */
  --fs-body: clamp(1.0625rem, 0.22vw + 1.02rem, 1.125rem); /* 17 - 18px */
  --fs-body-lg: clamp(1.125rem, 0.3vw + 1.07rem, 1.1875rem); /* 18 - 19px */
  --fs-lead: clamp(1.1875rem, 0.7vw + 1.05rem, 1.375rem); /* 19 - 22px */
  --fs-note: clamp(0.9375rem, 0.15vw + 0.91rem, 1rem); /* 15 - 16px */
  --fs-label: 0.875rem; /* 14px */
  --fs-h3: clamp(1.1875rem, 0.6vw + 1.07rem, 1.3125rem);
  --fs-h2: clamp(1.625rem, 2.4vw, 2.25rem);
  --fs-h1: clamp(1.75rem, 3vw, 2.5rem);

  --lh-body: 1.85;
  --lh-tight: 1.5;

  --shadow-card: 0 20px 48px rgba(20, 33, 43, 0.1);
  --shadow-soft: 0 8px 24px rgba(20, 33, 43, 0.06);
  --radius-lg: 4px;
  --radius-md: 3px;
  --max-width: 1140px;
  --measure: 40em; /* 読ませる文章の行長上限 */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-size: 100%; /* ブラウザの文字サイズ設定を尊重する */
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--paper);
  /* 紙のテクスチャとして残すが、本文の行と干渉しない濃度まで落とす */
  background-image:
    linear-gradient(rgba(20, 33, 43, 0.013) 1px, transparent 1px);
  background-size: 100% 34px;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

/* 和文の組版。約物のぶら下げはせず、禁則を厳格にして行末を安定させる。 */
p, li, dd, dt, figcaption, label, summary, td, th {
  line-break: strict;
  overflow-wrap: break-word;
}

p { text-wrap: pretty; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   共通
   -------------------------------------------------------------------------- */

.section { padding: 104px 24px; }

.section-heading {
  max-width: var(--max-width);
  margin: 0 auto 52px;
}

/* ラベル類。和文が入るため必ず和文書体を含む書体スタックを使う。
   等幅欧文だけを指定すると和文がOSのmonospaceへ落ちて字面が崩れる。 */
.eyebrow {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  color: var(--accent-strong);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: var(--lh-tight);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--accent);
  flex: none;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.48;
  letter-spacing: 0.005em;
  /* 見出しだけ和文をツメて字面を締める。本文には掛けない。 */
  font-feature-settings: "palt" 1;
  text-wrap: balance;
}

/* h2/h3 は改行位置を手で指定していないので、対応ブラウザでは文節折り返しを効かせる。
   未対応ブラウザでも balance にフォールバックするだけで崩れない。 */
h2, h3 { word-break: auto-phrase; }

h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

/* 日本語の折り返し位置を節単位で制御する。
   対応ブラウザでは auto-phrase が上乗せで効く (未対応でも .nb で崩れない)。 */
.nb { display: inline-block; }

.heading-note {
  margin-top: 20px;
  max-width: var(--measure);
  color: var(--text-sub);
  font-size: var(--fs-note);
}

/* 強調は2種類だけに絞る。
   1. strong = 太字 + 本文色 + 下地マーカー
   2. 罫線で囲ったキーメッセージのブロック (.gap-lead / .bridge-punch) */
strong {
  font-weight: 700;
  color: var(--text);
  background-image: linear-gradient(transparent 66%, var(--marker) 66%);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 32px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.4;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
  text-align: center;
}

.button-primary {
  background: var(--ink);
  color: var(--text-on-ink);
  box-shadow: var(--shadow-soft);
}

.button-primary:hover {
  background: var(--accent-strong);
  transform: translateY(-2px);
}

.button-ghost {
  border-color: var(--line);
  color: var(--text);
  background: transparent;
}

.button-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

/* --------------------------------------------------------------------------
   ヘッダー
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 14px 28px;
  background: rgba(244, 242, 237, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.24s ease, box-shadow 0.24s ease;
}

.site-header[data-elevated="true"] {
  border-bottom-color: var(--line);
  box-shadow: 0 2px 18px rgba(20, 33, 43, 0.05);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

/* ブランドマーク: 本体サイト (reiziproduction.com) のロゴと同じ吹き出し×歯車 */
.brand-mark svg {
  width: 28px;
  height: 28px;
  display: block;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.35;
  stroke-linejoin: round;
}

.brand-mark .mark-accent { stroke: var(--accent); }

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
}

.header-nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-sub);
}

.header-nav a { transition: color 0.18s ease; }
.header-nav a:hover { color: var(--accent-strong); }

.header-cta {
  flex: none;
  padding: 12px 22px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  transition: background 0.18s ease, color 0.18s ease;
}

.header-cta:hover {
  background: var(--ink);
  color: var(--text-on-ink);
}

/* --------------------------------------------------------------------------
   ヒーロー
   -------------------------------------------------------------------------- */

.hero {
  padding: 92px 24px 104px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(880px 460px at 78% 12%, rgba(14, 124, 134, 0.09), transparent 68%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: var(--fs-h1);
  line-height: 1.42;
  letter-spacing: 0;
  margin-bottom: 28px;
  /* h1 は <br> と .nb で改行位置を手で決めているため自動調整を切る */
  text-wrap: initial;
}

.hero .h1-accent {
  display: inline-block;
  background-image: linear-gradient(transparent 70%, var(--marker) 70%);
}

.hero .lead {
  max-width: 34em;
  color: var(--text);
  font-size: var(--fs-body-lg);
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-strip li {
  flex: 1 1 160px;
  padding: 16px 18px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.trust-strip li + li {
  padding-left: 22px;
  border-left: 1px solid var(--line-soft);
}

.strip-label {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: var(--fs-label);
  letter-spacing: 0.08em;
  color: var(--accent-strong);
  line-height: var(--lh-tight);
}

.strip-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* ヒーロービジュアル: diff カード */

.diff-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 22px 22px 26px;
  position: relative;
}

.diff-card::after {
  content: "";
  position: absolute;
  inset: 8px -8px -8px 8px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.diff-caption {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: var(--fs-label);
  letter-spacing: 0.06em;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
  line-height: var(--lh-tight);
}

.diff-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
  box-shadow: 0 0 0 3px var(--accent-tint);
}

.diff-panes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1.25fr);
  gap: 10px;
  align-items: center;
}

.pane-label {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.78125rem; /* 12.5px。カード内の狭い枠に収める最小サイズ */
  letter-spacing: 0.04em;
  color: var(--text-sub);
  margin-bottom: 10px;
  line-height: var(--lh-tight);
}

.receipt-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.receipt {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transform: rotate(-1.2deg);
}

.receipt:nth-child(2) { transform: rotate(0.8deg); }
.receipt:nth-child(3) { transform: rotate(-0.4deg); }

.r-line {
  height: 4px;
  border-radius: 2px;
  background: rgba(20, 33, 43, 0.14);
}

.r-w70 { width: 70%; }
.r-w40 { width: 40%; }
.r-w85 { width: 85%; }
.r-w55 { width: 55%; }
.r-w80 { width: 80%; }
.r-w35 { width: 35%; }
.r-w45 { width: 45%; }
.r-w65 { width: 65%; }

.diff-arrow svg {
  width: 100%;
  height: 16px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.4;
}

/* 明細表は欧数字のみ。ここは等幅で桁を揃える。 */
.mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  background: #fff;
  border: 1px solid var(--line-soft);
}

.mini-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text-sub);
  white-space: nowrap;
}

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

.mini-table td:first-child {
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.mini-table .num {
  text-align: right;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

/* --------------------------------------------------------------------------
   いま起きていること (gap)
   -------------------------------------------------------------------------- */

.gap-section {
  background: var(--paper-2);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.gap-body {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 52px;
  align-items: start;
}

/* 強調その2: 罫線で囲ったキーメッセージ */
.gap-lead {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-lead);
  line-height: 1.78;
  color: var(--text);
  margin-bottom: 24px;
  padding-left: 22px;
  border-left: 4px solid var(--accent);
}

.gap-lead strong { font-weight: 800; }

.gap-main > p {
  color: var(--text);
  max-width: var(--measure);
}

.gap-note {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-note);
  line-height: 1.8;
  color: var(--text-sub);
}

.gap-note a {
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gap-aside {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  font-size: var(--fs-note);
  color: var(--text);
}

.aside-label {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  color: var(--accent-strong);
  margin-bottom: 12px;
  line-height: var(--lh-tight);
}

/* --------------------------------------------------------------------------
   橋渡し (bridge) — 墨青のブロック
   -------------------------------------------------------------------------- */

.bridge-section {
  background: var(--ink);
  color: var(--text-on-ink);
  position: relative;
  overflow: hidden;
}

.bridge-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 340px at 20% 0%, rgba(14, 124, 134, 0.22), transparent 70%);
  pointer-events: none;
}

.bridge-inner {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}

.bridge-section .eyebrow { color: var(--accent-on-ink); }
.bridge-section .eyebrow::before { background: var(--accent-on-ink); }

.bridge-section h2 { margin-bottom: 28px; }

.bridge-section p {
  color: var(--text-on-ink);
  margin-bottom: 18px;
}

.bridge-punch {
  margin-top: 32px;
  padding: 28px 30px;
  border: 1px solid var(--line-on-ink);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  font-size: var(--fs-body-lg);
}

.bridge-section strong {
  color: var(--accent-on-ink);
  font-weight: 800;
  background-image: linear-gradient(transparent 66%, var(--marker-on-ink) 66%);
}

/* --------------------------------------------------------------------------
   できることの例
   -------------------------------------------------------------------------- */

.example-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.example-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.example-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.example-card.is-live {
  border-color: var(--accent);
  box-shadow: inset 3px 0 0 var(--accent);
}

.card-tag {
  align-self: flex-start;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: var(--fs-label);
  letter-spacing: 0.06em;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--text-sub);
  line-height: var(--lh-tight);
}

.example-card.is-live .card-tag {
  border-color: var(--accent);
  color: var(--accent-strong);
  background: var(--accent-tint);
}

.example-card h3 { line-height: 1.5; }

.example-card > p { color: var(--text); }

.card-note {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: var(--fs-note);
  line-height: 1.75;
  color: var(--text-sub) !important;
}

.examples-disclaimer {
  max-width: var(--max-width);
  margin: 28px auto 0;
  padding: 22px 26px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  font-size: var(--fs-note);
  color: var(--text-sub);
}

/* --------------------------------------------------------------------------
   対応の範囲
   -------------------------------------------------------------------------- */

.scope-section {
  background: var(--paper-2);
  border-top: 1px solid var(--line-soft);
}

.scope-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.scope-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
}

.scope-card h3 {
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--line);
}

.scope-card li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 16px;
  color: var(--text);
  line-height: 1.8;
}

.scope-card li:last-child { margin-bottom: 0; }

.scope-card li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  line-height: 1.7;
}

.scope-card.can li::before { content: "＋"; color: var(--accent); }
.scope-card.cannot li::before { content: "－"; color: var(--danger); }

.scope-card.can h3 { color: var(--accent-strong); }
.scope-card.cannot h3 { color: var(--danger); }

.scope-data {
  max-width: 46em;
  margin: 26px auto 0;
  font-size: var(--fs-note);
  color: var(--text-sub);
}

/* --------------------------------------------------------------------------
   30分の中身
   -------------------------------------------------------------------------- */

.session-steps {
  max-width: 880px;
  margin: 0 auto;
  counter-reset: step;
}

.session-steps li {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 24px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

.session-steps li:last-child { border-bottom: 1px solid var(--line); }

/* 連番は欧数字のみなので等幅を使う */
.step-num {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  color: var(--accent-strong);
  line-height: 1.35;
}

.session-steps h3 { margin-bottom: 10px; }

.session-steps p { color: var(--text); }

/* --------------------------------------------------------------------------
   問い合わせ
   -------------------------------------------------------------------------- */

.contact-section {
  background: var(--ink);
  color: var(--text-on-ink);
}

.contact-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}

.contact-section .eyebrow { color: var(--accent-on-ink); }
.contact-section .eyebrow::before { background: var(--accent-on-ink); }

.contact-copy h2 { margin-bottom: 26px; }

.safety-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 14px;
  color: var(--text-on-ink);
}

.safety-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 14px;
  height: 2px;
  background: var(--accent-on-ink);
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.booking-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  color: var(--text);
  box-shadow: var(--shadow-card);
}

.booking-title { margin-bottom: 12px; }

.booking-lead {
  font-size: var(--fs-note);
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 22px;
}

/* 埋め込みが有効になると Cal.com が iframe を差し込み、フォールバックは隠す */
.booking-embed {
  min-height: 60px;
}

.booking-embed[data-cal-ready="true"] .cal-fallback,
.booking-embed[data-cal-ready="true"] .cal-note {
  display: none;
}

.booking-embed iframe {
  width: 100%;
  border: 0;
}

.booking-privacy {
  font-size: var(--fs-note);
  color: var(--text-sub);
  line-height: 1.75;
  margin-top: 18px;
}

.booking-privacy a {
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cal-note {
  font-size: var(--fs-note);
  color: var(--text-sub);
  line-height: 1.75;
  margin-top: 12px;
}

/* 手順ラベル。1がフォーム、2が日程選択。 */
.step-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h3);
  line-height: var(--lh-tight);
  margin-bottom: 4px;
}

.step-index {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--text-on-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9375rem;
}

.booking-card .step-label { margin-bottom: 12px; }

.contact-form {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: var(--text);
  box-shadow: var(--shadow-card);
}

.contact-form > label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: var(--fs-note);
  font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  padding: 14px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--text);
  width: 100%;
}

.contact-form textarea { resize: vertical; line-height: 1.8; }

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

.contact-form fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 18px 18px;
}

.contact-form legend {
  font-size: var(--fs-note);
  font-weight: 700;
  padding: 0 6px;
}

.contact-form .radio {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.0625rem;
  font-weight: 400;
  padding: 7px 0;
  cursor: pointer;
}

.contact-form .radio input {
  width: auto;
  accent-color: var(--accent);
  transform: scale(1.2);
}

.form-error {
  color: var(--danger);
  font-size: var(--fs-note);
  font-weight: 700;
  min-height: 1.2em;
  line-height: 1.6;
}

.form-error:empty { min-height: 0; }

.form-privacy {
  font-size: var(--fs-note);
  color: var(--text-sub);
  line-height: 1.75;
}

.form-privacy a {
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.submit-button { width: 100%; }

.submit-button:disabled {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

/* --------------------------------------------------------------------------
   フッター / 追従CTA / トースト
   -------------------------------------------------------------------------- */

.site-footer {
  padding: 56px 24px 40px;
  background: var(--paper-2);
  border-top: 1px solid var(--line);
}

.site-footer .brand {
  max-width: var(--max-width);
  margin: 0 auto 20px;
}

.footer-operator {
  max-width: 54em;
  margin: 0 auto 20px;
  margin-inline: max(0px, calc((100% - var(--max-width)) / 2));
  font-size: var(--fs-note);
  line-height: 1.85;
  color: var(--text-sub);
}

.footer-operator strong {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text);
  background-image: none;
}

.footer-operator a {
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-note {
  max-width: var(--max-width);
  margin: 0 auto 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--text-sub);
}

.footer-meta {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  font-size: var(--fs-note);
  color: var(--text-sub);
}

.footer-meta nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-meta a { font-weight: 500; }
.footer-meta a:hover { color: var(--accent-strong); }

/* コピーライトは欧数字のみ */
.copyright { font-family: var(--font-mono); font-size: 0.875rem; }

.floating-cta {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 45;
  padding: 16px 26px;
  background: var(--ink);
  color: var(--text-on-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s;
}

.floating-cta[data-visible="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 60;
  transform: translate(-50%, 16px);
  max-width: min(560px, calc(100vw - 40px));
  padding: 16px 24px;
  background: var(--accent-strong);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: var(--fs-note);
  line-height: 1.7;
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s;
}

.toast[data-visible="true"] {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* --------------------------------------------------------------------------
   プライバシーポリシーページ
   -------------------------------------------------------------------------- */

.policy-hero {
  padding: 76px 24px 40px;
  border-bottom: 1px solid var(--line);
}

.policy-hero > div {
  max-width: 820px;
  margin: 0 auto;
}

.policy-hero h1 {
  font-size: var(--fs-h1);
  margin-bottom: 20px;
}

.policy-hero p { color: var(--text); }

.policy-updated {
  margin-top: 16px;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: var(--fs-note);
  color: var(--text-sub);
}

.policy-content {
  max-width: 820px;
  margin: 0 auto;
  padding-top: 56px;
}

.policy-content article { margin-bottom: 44px; }

.policy-content h2 {
  font-size: var(--fs-h3);
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--line-soft);
}

.policy-content p,
.policy-content li {
  color: var(--text);
}

.policy-content ul { margin-top: 12px; }

.policy-content li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
}

.policy-content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 11px;
  height: 2px;
  background: var(--accent);
}

.policy-contact { margin-top: 20px; }

.policy-page .site-footer { margin-top: 40px; }

/* --------------------------------------------------------------------------
   スクロールリビール (JS有効時のみ。未発火でも読める)
   -------------------------------------------------------------------------- */

.js .section:not(.hero) {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .section[data-visible="true"] {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   レスポンシブ
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .section { padding: 76px 20px; }
  .hero { padding: 60px 20px 76px; }

  .header-nav { display: none; }
  .site-header { gap: 16px; }
  .header-cta { margin-left: auto; }

  .hero-inner,
  .gap-body,
  .contact-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .example-grid,
  .scope-grid { grid-template-columns: minmax(0, 1fr); }

  .bridge-punch { padding: 24px 22px; }
}

@media (max-width: 640px) {
  /* 本文サイズは下げない。狭い画面ほど読みづらくなるため。 */
  .section { padding: 56px 18px; }
  .hero { padding: 44px 18px 60px; }

  .hero h1 { font-size: 1.6875rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }

  .trust-strip li {
    flex: 1 1 100%;
    padding: 14px 0;
    border-left: none !important;
    padding-left: 0 !important;
  }

  .trust-strip li + li { border-top: 1px solid var(--line-soft); }

  .diff-panes {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .diff-arrow svg { transform: rotate(90deg); height: 22px; }
  .diff-card::after { display: none; }

  .mini-table { font-size: 0.8125rem; }
  .mini-table td { padding: 8px; }

  .gap-lead { padding-left: 16px; }

  .session-steps li {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 24px 0;
  }

  .step-num { font-size: 1.5rem; }

  .booking-card,
  .contact-form { padding: 24px 20px; }

  .floating-cta {
    left: 18px;
    right: 18px;
    bottom: 18px;
    text-align: center;
  }

  .footer-meta { flex-direction: column; align-items: flex-start; }
}

/* 極小幅。本文は縮めず、ヘッダーの固定要素だけを詰めて横溢れを防ぐ。 */
@media (max-width: 420px) {
  .site-header { padding: 12px 14px; gap: 10px; }
  .brand { gap: 8px; }
  .brand-mark svg { width: 24px; height: 24px; }
  .brand-name { font-size: 0.8125rem; letter-spacing: 0.03em; }
  .header-cta { padding: 10px 14px; font-size: 0.875rem; }
}

/* --------------------------------------------------------------------------
   モーション低減
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  .js .section:not(.hero) {
    opacity: 1 !important;
    transform: none !important;
  }

  .button:hover,
  .example-card:hover { transform: none; }
}
