/* ==========================================================================
   KaitoriAI Call LP
   デザイン方向: 「深夜の通話が、翌朝の受付台帳になる」
   - 生成りの帳票紙 × 深緑インク × 朱色（着信・受付印）
   - 見出し: Zen Kaku Gothic Antique / 本文: IBM Plex Sans JP / 数字: IBM Plex Mono
   - モチーフ: 通話ログと受付票（帳票）。夜間セクションのみ深緑の闇パネル
   ========================================================================== */

:root {
  --bg: #f6f1e4;
  --bg-alt: #fdfaf1;
  --bg-deep: #ece5d0;
  --text: #22322b;
  --text-sub: #5d6b61;
  --accent: #175947;
  --accent-strong: #0d3d2f;
  --night: #0b2b21;
  --night-soft: #10382c;
  --night-ink: #f0ead9;
  --night-sub: #a8b8a9;
  --vermilion: #c2452d;
  --line: rgba(34, 50, 43, 0.16);
  --line-strong: rgba(34, 50, 43, 0.32);
  --danger: #c2452d;

  --font-display: "Zen Kaku Gothic Antique", sans-serif;
  --font-body: "IBM Plex Sans JP", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --shadow-card: 0 18px 50px rgba(24, 42, 33, 0.16);
  --radius-lg: 18px;
  --radius-md: 12px;
  --max-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.mono { font-family: var(--font-mono); }
.nw { white-space: nowrap; }

/* --------------------------------------------------------------------------
   共通レイアウト
   -------------------------------------------------------------------------- */

.section { padding: 104px 24px; }

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.section-heading h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.heading-note {
  margin-top: 18px;
  max-width: 640px;
  font-size: 0.92rem;
  color: var(--text-sub);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 34px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.08em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.button-primary {
  background: var(--accent);
  color: var(--bg-alt);
  box-shadow: 0 10px 26px rgba(23, 89, 71, 0.28);
}

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

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

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 16px 28px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header[data-elevated="true"] {
  background: rgba(246, 241, 228, 0.94);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(8px);
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--bg-alt);
  flex-shrink: 0;
}

.brand-mark svg { width: 19px; height: 19px; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.22rem;
  letter-spacing: 0.02em;
}

.brand-name small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--text-sub);
  line-height: 1.2;
}

.header-nav { display: flex; gap: 26px; margin-left: auto; }
.header-nav a { font-size: 0.9rem; color: var(--text-sub); }
.header-nav a:hover { color: var(--accent); }

.header-cta {
  padding: 10px 24px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--bg-alt);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   ヒーロー: 通話 → 受付票
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: 176px 24px 128px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 47px,
      rgba(34, 50, 43, 0.045) 47px,
      rgba(34, 50, 43, 0.045) 48px
    );
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: -180px;
  right: -160px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23, 89, 71, 0.10) 0%, 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.02fr) minmax(0, 0.98fr);
  gap: 56px;
  align-items: center;
}

.hero .eyebrow { color: var(--vermilion); }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.05rem, 4.4vw, 3.3rem);
  line-height: 1.4;
  letter-spacing: 0.03em;
  margin-bottom: 26px;
}

.hero h1 em {
  font-style: normal;
  color: var(--vermilion);
}

.hero .lead {
  max-width: 34em;
  font-size: 1.02rem;
  color: var(--text-sub);
  margin-bottom: 36px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 44px; }

.trust-strip {
  display: flex;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  max-width: 560px;
  background: rgba(253, 250, 241, 0.6);
}

.trust-strip > div { flex: 1; padding: 16px 10px 14px; text-align: center; }
.trust-strip > div + div { border-left: 1px solid var(--line); }
.trust-strip dt { font-size: 0.7rem; letter-spacing: 0.1em; color: var(--text-sub); margin-bottom: 4px; }
.trust-strip dd {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.06rem;
  color: var(--accent);
  line-height: 1.4;
}
.trust-strip dd span { display: block; font-size: 0.66rem; font-weight: 500; color: var(--text-sub); letter-spacing: 0.06em; }

/* --- 通話カード --- */

.hero-visual { position: relative; padding-bottom: 210px; }

.call-card {
  position: relative;
  z-index: 2;
  width: min(100%, 400px);
  background: var(--night);
  color: var(--night-ink);
  border-radius: var(--radius-lg);
  padding: 22px 24px 24px;
  box-shadow: var(--shadow-card);
}

.call-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--night-sub);
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(240, 234, 217, 0.14);
  margin-bottom: 16px;
}

.rec-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--vermilion);
  flex-shrink: 0;
}

.js .rec-dot { animation: rec-blink 1.6s ease-in-out infinite; }

@keyframes rec-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.call-card-head .call-time { margin-left: auto; }

.call-wave {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 30px;
  margin-bottom: 18px;
}

.call-wave span {
  flex: 1;
  border-radius: 2px;
  background: rgba(240, 234, 217, 0.5);
  height: 30%;
}

.call-wave span:nth-child(2n) { height: 65%; background: rgba(240, 234, 217, 0.72); }
.call-wave span:nth-child(3n) { height: 45%; }
.call-wave span:nth-child(5n) { height: 88%; background: var(--vermilion); }

.js .call-wave span { animation: wave-pulse 1.3s ease-in-out infinite; }
.js .call-wave span:nth-child(2n) { animation-delay: 0.15s; }
.js .call-wave span:nth-child(3n) { animation-delay: 0.3s; }
.js .call-wave span:nth-child(4n) { animation-delay: 0.45s; }
.js .call-wave span:nth-child(5n) { animation-delay: 0.6s; }

@keyframes wave-pulse {
  0%, 100% { transform: scaleY(0.55); }
  50% { transform: scaleY(1); }
}

.call-lines { display: flex; flex-direction: column; gap: 10px; }

.bubble {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.83rem;
  line-height: 1.7;
}

.bubble.ai {
  align-self: flex-start;
  background: rgba(240, 234, 217, 0.94);
  color: var(--text);
  border-bottom-left-radius: 3px;
}

.bubble.cust {
  align-self: flex-end;
  border: 1px solid rgba(240, 234, 217, 0.4);
  color: var(--night-ink);
  border-bottom-right-radius: 3px;
}

.bubble .speaker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  opacity: 0.6;
  margin-bottom: 2px;
}

/* --- 受付票カード --- */

.receipt-card {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  width: min(86%, 332px);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 4px 4px var(--radius-md) var(--radius-md);
  padding: 20px 24px 22px;
  box-shadow: var(--shadow-card);
}

/* ミシン目（切り取り線）風の上端 */
.receipt-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 8px;
  right: 8px;
  height: 2px;
  background-image: radial-gradient(circle, var(--bg) 1.6px, transparent 1.8px);
  background-size: 9px 3px;
  background-repeat: repeat-x;
}

.receipt-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 2px solid var(--text);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.receipt-head h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.22em;
}

.receipt-no {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-sub);
  letter-spacing: 0.05em;
}

.receipt-rows { display: grid; gap: 0; }

.receipt-rows > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.82rem;
}

.receipt-rows > div:last-child { border-bottom: none; }
.receipt-rows dt { color: var(--text-sub); font-size: 0.74rem; letter-spacing: 0.12em; flex-shrink: 0; }
.receipt-rows dd { font-family: var(--font-mono); font-weight: 500; text-align: right; }
.receipt-rows dd.checked { color: var(--accent); }

.stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 10px 20px;
  border: 3px solid var(--vermilion);
  border-radius: 8px;
  color: var(--vermilion);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.7rem;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  transform: translate(-50%, -50%) rotate(-11deg);
  opacity: 0.22;
  mix-blend-mode: multiply;
  pointer-events: none;
  white-space: nowrap;
}

.hero-flow-arrow {
  position: absolute;
  z-index: 1;
  left: 44%;
  bottom: 118px;
  width: 90px;
  height: 90px;
  border-left: 2px dashed var(--line-strong);
  border-bottom: 2px dashed var(--line-strong);
  border-bottom-left-radius: 48px;
}

.hero-flow-arrow::after {
  content: "";
  position: absolute;
  right: -3px;
  bottom: -6px;
  border: 5px solid transparent;
  border-left: 9px solid var(--line-strong);
}

/* --------------------------------------------------------------------------
   スクロールリビール
   -------------------------------------------------------------------------- */

.js .section:not(.hero) {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 0.8, 0.3, 1);
}

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

/* --------------------------------------------------------------------------
   課題・損失
   -------------------------------------------------------------------------- */

.loss-section { background: var(--bg); padding-top: 88px; }

.stat-band {
  max-width: var(--max-width);
  margin: 0 auto 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--text);
  border-bottom: 1px solid var(--line-strong);
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 31px,
      rgba(34, 50, 43, 0.05) 31px,
      rgba(34, 50, 43, 0.05) 32px
    );
}

.stat { padding: 40px 32px 36px; }
.stat + .stat { border-left: 1px solid var(--line); }

.stat-value {
  display: block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  line-height: 1.1;
  color: var(--accent);
  margin-bottom: 18px;
  font-variant-numeric: tabular-nums;
}

.stat-value.is-loss { color: var(--vermilion); }
.stat-unit { font-size: 0.42em; margin-left: 2px; }
.stat-prefix { font-size: 0.42em; margin-right: 4px; }
.stat h3 { font-size: 1.02rem; margin-bottom: 10px; line-height: 1.6; font-weight: 700; }
.stat p { font-size: 0.86rem; color: var(--text-sub); }

.pain-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.pain-grid article {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-top: 3px solid var(--vermilion);
  border-radius: 4px 4px var(--radius-md) var(--radius-md);
  padding: 32px 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pain-grid article:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(24, 42, 33, 0.12); }

.pain-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--vermilion);
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  margin-bottom: 16px;
}

.pain-grid h3 { font-family: var(--font-display); font-size: 1.08rem; margin-bottom: 10px; line-height: 1.6; font-weight: 700; }
.pain-grid p { font-size: 0.88rem; color: var(--text-sub); }

.pain-grid .pain-quote {
  margin-top: 14px;
  padding: 10px 14px;
  background: var(--bg);
  border-left: 3px solid var(--accent);
  font-size: 0.84rem;
  color: var(--text);
}

.pain-quote cite { display: block; font-style: normal; font-size: 0.72rem; color: var(--text-sub); margin-top: 4px; }

/* --------------------------------------------------------------------------
   仕組み: 夜のタイムライン（闇パネル）
   -------------------------------------------------------------------------- */

.how-section {
  background: var(--night);
  color: var(--night-ink);
}

.how-section .eyebrow { color: #d8a13c; }
.how-section .section-heading h2 { color: var(--night-ink); }
.how-section .heading-note { color: var(--night-sub); }

.night-timeline {
  max-width: 880px;
  margin: 0 auto;
  position: relative;
  padding-left: 118px;
}

.night-timeline::before {
  content: "";
  position: absolute;
  left: 96px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, rgba(240, 234, 217, 0.35), rgba(216, 161, 60, 0.6));
}

.night-timeline li { position: relative; padding: 0 0 44px; }
.night-timeline li:last-child { padding-bottom: 0; }

.night-timeline .tl-time {
  position: absolute;
  left: -118px;
  top: 0;
  width: 84px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  color: var(--night-sub);
  text-align: right;
}

.night-timeline li::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 10px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--night-sub);
  outline: 4px solid var(--night);
}

.night-timeline li.is-ring::before { background: var(--vermilion); }
.night-timeline li.is-morning::before { background: #d8a13c; }
.night-timeline li.is-morning .tl-time { color: #d8a13c; }

.night-timeline h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.14rem;
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

.night-timeline p { font-size: 0.9rem; color: var(--night-sub); max-width: 40em; }

.night-timeline .tl-note {
  margin-top: 10px;
  font-size: 0.8rem;
  padding: 8px 14px;
  border: 1px dashed rgba(240, 234, 217, 0.3);
  border-radius: 8px;
  color: var(--night-sub);
  max-width: 40em;
}

.night-timeline .morning-card {
  margin-top: 14px;
  background: var(--bg-alt);
  color: var(--text);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  max-width: 460px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  font-size: 0.86rem;
}

.morning-card .morning-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-sub);
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.morning-card ul { display: grid; gap: 6px; }
.morning-card li { display: flex; gap: 10px; align-items: baseline; font-size: 0.84rem; }
.morning-card li .mono { color: var(--accent); font-size: 0.78rem; flex-shrink: 0; }

.how-boundary {
  max-width: 880px;
  margin: 48px auto 0;
  padding: 16px 22px;
  border: 1px solid rgba(240, 234, 217, 0.25);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  color: var(--night-sub);
}

.how-boundary strong { color: var(--night-ink); font-weight: 700; }

/* --------------------------------------------------------------------------
   機能
   -------------------------------------------------------------------------- */

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

.feature-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.feature-grid article {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-grid article:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(24, 42, 33, 0.12); }

.feature-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 14px;
}

.feature-grid h3 { font-family: var(--font-display); font-size: 1.06rem; margin-bottom: 10px; line-height: 1.6; font-weight: 700; }
.feature-grid p { font-size: 0.87rem; color: var(--text-sub); }

.features-note {
  max-width: var(--max-width);
  margin: 28px auto 0;
  font-size: 0.8rem;
  color: var(--text-sub);
}

/* --------------------------------------------------------------------------
   比較表
   -------------------------------------------------------------------------- */

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

.compare-scroll { max-width: var(--max-width); margin: 0 auto; overflow-x: auto; }

.compare-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9rem;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.compare-table th, .compare-table td {
  padding: 17px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.compare-table thead th {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  background: var(--bg);
  border-bottom: 2px solid var(--text);
}

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

.compare-table tbody th {
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--text-sub);
  width: 148px;
}

.compare-table td { color: var(--text-sub); font-size: 0.86rem; }

.compare-table .is-ours {
  background: var(--accent-strong);
  color: var(--night-ink);
  font-weight: 500;
}

.compare-table thead .is-ours {
  background: var(--accent-strong);
  color: #fff;
  font-size: 1rem;
}

.compare-note {
  max-width: var(--max-width);
  margin: 20px auto 0;
  font-size: 0.8rem;
  color: var(--text-sub);
}

/* --------------------------------------------------------------------------
   事例（デモ実演の記録）
   -------------------------------------------------------------------------- */

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

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

.case-copy p { font-size: 0.95rem; color: var(--text-sub); margin-bottom: 18px; max-width: 36em; }
.case-copy p strong { color: var(--text); }

.fact-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.fact-chips span {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text-sub);
  background: var(--bg-alt);
}

.quote-stack { display: grid; gap: 22px; }

.quote-card {
  position: relative;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px 32px 24px;
}

.quote-card::before {
  content: "\201C";
  position: absolute;
  top: 2px;
  left: 18px;
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.35;
}

.quote-card blockquote {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.8;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.quote-card cite {
  display: block;
  font-style: normal;
  font-size: 0.78rem;
  color: var(--text-sub);
}

/* --------------------------------------------------------------------------
   開発中バンド（クレーム一次受付）
   -------------------------------------------------------------------------- */

.dev-section { background: var(--bg); padding-top: 0; }

.dev-band {
  max-width: var(--max-width);
  margin: 0 auto;
  border: 2px dashed rgba(194, 69, 45, 0.55);
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 36px;
  align-items: start;
  background: rgba(194, 69, 45, 0.04);
}

.dev-tag {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.9rem;
  letter-spacing: 0.26em;
  text-indent: 0.26em;
  color: var(--vermilion);
  border: 2.5px solid var(--vermilion);
  border-radius: 6px;
  padding: 8px 12px;
  transform: rotate(-4deg);
  white-space: nowrap;
}

.dev-band h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  line-height: 1.6;
  margin-bottom: 14px;
}

.dev-band p { font-size: 0.92rem; color: var(--text-sub); max-width: 46em; margin-bottom: 10px; }
.dev-band .dev-cta { font-size: 0.88rem; color: var(--text); font-weight: 700; }
.dev-band .dev-cta a { color: var(--vermilion); text-decoration: underline; text-underline-offset: 4px; }

/* --------------------------------------------------------------------------
   できること / やらないこと
   -------------------------------------------------------------------------- */

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

.scope-grid {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.scope-card {
  border-radius: var(--radius-md);
  padding: 38px 36px;
  border: 1px solid var(--line);
  background: var(--bg-alt);
}

.scope-card h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.22rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
}

.scope-card.cannot h3 { color: var(--vermilion); border-bottom-color: var(--vermilion); }

.scope-card li {
  padding: 11px 0 11px 26px;
  font-size: 0.92rem;
  border-bottom: 1px dashed var(--line);
  position: relative;
}

.scope-card li:last-child { border-bottom: none; }

.scope-card.can li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 19px;
  width: 10px;
  height: 6px;
  border-left: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}

.scope-card.cannot li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 22px;
  width: 10px;
  height: 2.5px;
  background: var(--vermilion);
}

.scope-card li small { display: block; font-size: 0.8rem; color: var(--text-sub); }

.scope-note {
  max-width: 980px;
  margin: 24px auto 0;
  font-size: 0.86rem;
  color: var(--text-sub);
}

/* --------------------------------------------------------------------------
   料金
   -------------------------------------------------------------------------- */

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

.pricing-grid {
  max-width: var(--max-width);
  margin: 0 auto 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.price-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 4px 4px var(--radius-md) var(--radius-md);
  border-top: 3px solid var(--accent);
  padding: 34px 30px;
  position: relative;
}

.price-layer {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}

.price-card h3 { font-family: var(--font-display); font-weight: 900; font-size: 1.2rem; margin-bottom: 12px; }
.price-card p { font-size: 0.88rem; color: var(--text-sub); }

.price-card .price-hint {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text);
}

.pricing-note {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  background: var(--accent-strong);
  color: var(--night-ink);
  border-radius: var(--radius-md);
  padding: 28px 34px;
}

.pricing-note p { font-size: 0.9rem; }
.pricing-note p strong { font-weight: 700; color: #fff; }
.pricing-note .button { flex-shrink: 0; background: var(--bg-alt); color: var(--accent-strong); box-shadow: none; }

.pricing-caption {
  max-width: var(--max-width);
  margin: 20px auto 0;
  font-size: 0.8rem;
  color: var(--text-sub);
}

/* --------------------------------------------------------------------------
   導入の流れ
   -------------------------------------------------------------------------- */

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

.flow-steps {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  counter-reset: flow;
}

.flow-steps li {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  position: relative;
}

.step-num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  color: var(--accent);
}

.flow-steps h3 { font-family: var(--font-display); font-weight: 700; font-size: 1rem; margin: 10px 0 8px; line-height: 1.6; }
.flow-steps p { font-size: 0.82rem; color: var(--text-sub); line-height: 1.75; }

.flow-note {
  max-width: var(--max-width);
  margin: 24px auto 0;
  font-size: 0.86rem;
  color: var(--text-sub);
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

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

.faq-list { max-width: 840px; margin: 0 auto; border-top: 2px solid var(--text); }
.faq-list details { border-bottom: 1px solid var(--line); }

.faq-list summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 24px 48px 24px 40px;
  font-weight: 700;
  font-size: 0.98rem;
}

.faq-list summary::before {
  content: "Q";
  position: absolute;
  left: 4px;
  top: 24px;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent);
}

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

.faq-list summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s ease;
}

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

.faq-list details p {
  padding: 0 0 26px 40px;
  font-size: 0.92rem;
  color: var(--text-sub);
  max-width: 46em;
}

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

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

.contact-section .eyebrow { color: #d8a13c; }
.contact-section h2 { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.5; margin-bottom: 20px; }

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

.contact-copy > p { font-size: 0.95rem; color: var(--night-sub); margin-bottom: 16px; max-width: 30em; }
.contact-copy .contact-safety {
  border: 1px dashed rgba(240, 234, 217, 0.3);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  font-size: 0.88rem;
  color: var(--night-ink);
  margin-top: 26px;
}

.contact-form {
  background: var(--bg-alt);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 44px 42px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form > label { display: flex; flex-direction: column; gap: 8px; font-size: 0.86rem; font-weight: 700; }

.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(23, 89, 71, 0.25);
}

.contact-form textarea { resize: vertical; }
.contact-form fieldset { border: 1px solid var(--line-strong); border-radius: 10px; padding: 16px 18px 14px; }
.contact-form legend { font-size: 0.82rem; font-weight: 700; padding: 0 8px; }
.contact-form fieldset label { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 0.9rem; font-weight: 500; cursor: pointer; }
.contact-form input[type="radio"] { accent-color: var(--accent); width: 17px; height: 17px; padding: 0; }

.form-error { min-height: 1.2em; font-size: 0.82rem; color: var(--danger); font-weight: 700; }
.submit-button { width: 100%; font-size: 1.05rem; padding: 18px; }
.submit-button:disabled { opacity: 0.6; cursor: wait; transform: none; }
.form-privacy { font-size: 0.75rem; color: var(--text-sub); line-height: 1.7; }
.form-privacy a { color: var(--accent); text-decoration: underline; }

/* --------------------------------------------------------------------------
   フッター / フローティングCTA / トースト
   -------------------------------------------------------------------------- */

.site-footer {
  padding: 56px 24px 40px;
  border-top: 1px solid var(--line);
  color: var(--text-sub);
  background: var(--bg);
}

.site-footer .brand, .footer-note, .footer-meta { max-width: var(--max-width); margin-left: auto; margin-right: auto; }
.site-footer .brand { display: flex; margin-bottom: 20px; }
.footer-note { display: block; font-size: 0.75rem; line-height: 1.9; margin-bottom: 28px; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 24px; }
.footer-meta nav { display: flex; gap: 22px; font-size: 0.85rem; }
.copyright { font-size: 0.78rem; }

.floating-cta {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 55;
  padding: 15px 30px;
  border-radius: 8px;
  background: var(--vermilion);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  box-shadow: 0 14px 34px rgba(194, 69, 45, 0.4);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

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

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  z-index: 70;
  max-width: min(92vw, 520px);
  background: var(--text);
  color: var(--bg-alt);
  border-radius: 10px;
  padding: 14px 22px;
  font-size: 0.88rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

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

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

.policy-hero { padding-top: 168px; }
.policy-hero > div { max-width: 820px; margin: 0 auto; }
.policy-hero h1 { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 18px; }
.policy-hero p { color: var(--text-sub); font-size: 0.95rem; }
.policy-updated { margin-top: 14px; font-size: 0.8rem; font-family: var(--font-mono); }
.policy-content { max-width: 820px; margin: 0 auto; }
.policy-content article { margin-bottom: 44px; }
.policy-content h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--line); }
.policy-content p, .policy-content li { font-size: 0.93rem; color: var(--text-sub); }
.policy-content li { padding: 6px 0 6px 22px; position: relative; }
.policy-content li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.policy-contact { margin-top: 10px; }

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

@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; gap: 72px; }
  .hero-visual { max-width: 560px; }
  .flow-steps { grid-template-columns: repeat(2, 1fr); }
  .case-inner { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 900px) {
  .header-nav { display: none; }
  .stat-band, .pain-grid, .feature-grid, .pricing-grid { grid-template-columns: 1fr; }
  .stat + .stat { border-left: none; border-top: 1px solid var(--line); }
  .scope-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: 44px; }
  .pricing-note { grid-template-columns: 1fr; }
  .dev-band { grid-template-columns: 1fr; gap: 20px; padding: 36px 32px; }
  .dev-tag { justify-self: start; }
  .night-timeline { padding-left: 0; padding-top: 8px; }
  .night-timeline::before { left: 4px; }
  .night-timeline li { padding-left: 30px; }
  .night-timeline .tl-time { position: static; display: block; width: auto; text-align: left; margin-bottom: 6px; }
  .night-timeline li::before { left: 0; }
}

@media (max-width: 640px) {
  .section { padding: 72px 20px; }
  .hero { padding: 140px 20px 88px; }
  .hero-actions .button { width: 100%; }
  .trust-strip { max-width: none; flex-direction: column; }
  .trust-strip > div + div { border-left: none; border-top: 1px solid var(--line); }
  .flow-steps { grid-template-columns: 1fr; }
  .contact-form { padding: 32px 24px; }
  .footer-meta { flex-direction: column; align-items: flex-start; }
  .hero-visual { padding-bottom: 0; }
  .call-card { width: 100%; }
  .receipt-card { position: relative; width: 100%; margin-top: 18px; }
  .hero-flow-arrow { display: none; }
  .compare-table thead .is-ours { font-size: 0.92rem; }
}

/* --------------------------------------------------------------------------
   reduced-motion（削らない）
   -------------------------------------------------------------------------- */

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

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

  .js .call-wave span,
  .js .rec-dot {
    animation: none;
  }
}
