/* ==========================================================================
   KaitoriAI LP
   コンセプト: 「夜の問い合わせを、朝の商談に変える」
   夜色の墨紺 × 真鍮ゴールド × 和紙。見出しは明朝(Shippori Mincho B1)、
   本文はZen Kaku Gothic New。LINEグリーンはチャットUIにのみ使用する。
   ========================================================================== */

:root {
  --ink: #0d1420;
  --ink-deep: #090e17;
  --ink-soft: #16202f;
  --ink-line: rgba(214, 197, 150, 0.14);
  --paper: #f6f1e6;
  --paper-warm: #fbf7ee;
  --paper-line: rgba(24, 32, 44, 0.12);
  --brass: #c8a44e;
  --brass-bright: #e6c979;
  --brass-deep: #96762c;
  --text-on-dark: #eef0e9;
  --text-on-dark-sub: rgba(238, 240, 233, 0.72);
  --text-on-paper: #1c2432;
  --text-on-paper-sub: #4c5563;
  --line-green: #06c755;
  --line-bubble: #86e36c;
  --chat-bg: #dfe6ee;
  --danger: #c96f5a;
  --font-display: "Shippori Mincho B1", "Hiragino Mincho ProN", serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
  --shadow-card: 0 18px 50px rgba(9, 14, 23, 0.14);
  --shadow-phone: 0 40px 90px rgba(3, 6, 12, 0.55);
  --radius-lg: 22px;
  --radius-md: 14px;
  --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-on-paper);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

::selection {
  background: var(--brass);
  color: var(--ink-deep);
}

/* --------------------------------------------------------------------------
   共通パーツ
   -------------------------------------------------------------------------- */

.section {
  padding: 104px 24px;
}

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

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 18px;
}

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

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

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

.button-primary {
  background: linear-gradient(135deg, var(--brass-bright), var(--brass));
  color: var(--ink-deep);
  box-shadow: 0 12px 32px rgba(200, 164, 78, 0.35);
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(200, 164, 78, 0.45);
}

.button-ghost {
  border-color: rgba(238, 240, 233, 0.35);
  color: var(--text-on-dark);
}

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

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

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

.site-header[data-elevated="true"] {
  background: rgba(9, 14, 23, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--ink-line);
  padding: 12px 28px;
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(150deg, var(--brass-bright), var(--brass-deep));
  color: var(--ink-deep);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  color: var(--text-on-dark);
}

.brand-name em {
  font-style: normal;
  color: var(--brass-bright);
}

.header-nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}

.header-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-on-dark-sub);
  transition: color 0.2s ease;
}

.header-nav a:hover {
  color: var(--brass-bright);
}

.header-cta {
  padding: 10px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brass-bright), var(--brass));
  color: var(--ink-deep);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(200, 164, 78, 0.4);
}

/* --------------------------------------------------------------------------
   HERO (夜)
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: 168px 24px 120px;
  color: var(--text-on-dark);
  overflow: hidden;
}

.hero-sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 78% -10%, rgba(52, 76, 120, 0.5), transparent 65%),
    radial-gradient(900px 500px at 8% 8%, rgba(200, 164, 78, 0.12), transparent 60%),
    linear-gradient(178deg, var(--ink-deep) 0%, var(--ink) 55%, #101a29 100%);
}

/* 星: box-shadowの点描 */
.hero-sky::before {
  content: "";
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: transparent;
  box-shadow:
    12vw 18vh 0 0 rgba(238, 240, 233, 0.75),
    24vw 9vh 0 1px rgba(238, 240, 233, 0.4),
    36vw 26vh 0 0 rgba(230, 201, 121, 0.8),
    47vw 12vh 0 0 rgba(238, 240, 233, 0.5),
    58vw 30vh 0 1px rgba(238, 240, 233, 0.35),
    66vw 7vh 0 0 rgba(238, 240, 233, 0.6),
    74vw 22vh 0 0 rgba(230, 201, 121, 0.55),
    83vw 15vh 0 1px rgba(238, 240, 233, 0.45),
    91vw 33vh 0 0 rgba(238, 240, 233, 0.65),
    17vw 38vh 0 0 rgba(238, 240, 233, 0.3),
    52vw 42vh 0 0 rgba(238, 240, 233, 0.25),
    88vw 46vh 0 0 rgba(238, 240, 233, 0.3);
  animation: twinkle 5.5s ease-in-out infinite alternate;
}

@keyframes twinkle {
  from { opacity: 0.5; }
  to { opacity: 1; }
}

/* 地平線の街明かり */
.hero-sky::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 180px;
  background: linear-gradient(0deg, rgba(200, 164, 78, 0.14), transparent);
}

.hero-side {
  position: absolute;
  top: 176px;
  right: 26px;
  writing-mode: vertical-rl;
  font-size: 0.72rem;
  letter-spacing: 0.5em;
  color: rgba(238, 240, 233, 0.4);
  border-right: 1px solid var(--ink-line);
  padding-right: 14px;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: 48px;
  align-items: center;
}

.hero-copy .eyebrow {
  color: var(--brass-bright);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.42;
  letter-spacing: 0.03em;
  margin-bottom: 26px;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .hero h1 {
    white-space: normal;
    font-size: 1.85rem;
  }
}

.hero h1 span {
  display: block;
}

.hero h1 em {
  font-style: normal;
  color: var(--brass-bright);
  position: relative;
}

.hero h1 em::after {
  content: "";
  position: absolute;
  left: 2%;
  bottom: 6px;
  width: 96%;
  height: 10px;
  background: rgba(200, 164, 78, 0.22);
  z-index: -1;
}

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

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

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

.trust-strip > div {
  flex: 1;
  padding: 16px 8px;
  text-align: center;
}

.trust-strip > div + div {
  border-left: 1px solid var(--ink-line);
}

.trust-strip dt {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--text-on-dark-sub);
  margin-bottom: 4px;
}

.trust-strip dd {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--brass-bright);
}

.trust-strip .unit,
.trust-strip .sup {
  font-size: 0.72rem;
  font-family: var(--font-body);
  color: var(--text-on-dark-sub);
}

.trust-note {
  margin-top: 10px;
  font-size: 0.72rem;
  color: rgba(238, 240, 233, 0.45);
}

/* ---- ヒーローの段階表示 ---- */

.js .hero-copy > * {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s cubic-bezier(0.22, 0.8, 0.3, 1) forwards;
}

.js .hero-copy .eyebrow { animation-delay: 0.05s; }
.js .hero-copy h1 { animation-delay: 0.18s; }
.js .hero-copy .lead { animation-delay: 0.34s; }
.js .hero-copy .hero-actions { animation-delay: 0.48s; }
.js .hero-copy .trust-strip { animation-delay: 0.62s; }
.js .hero-copy .trust-note { animation-delay: 0.72s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   スマホモックアップ (LINEチャット)
   -------------------------------------------------------------------------- */

.hero-visual {
  position: relative;
  justify-self: center;
  padding-bottom: 64px;
}

.phone {
  position: relative;
  width: min(348px, 88vw);
  border-radius: 42px;
  background: #05080d;
  border: 1px solid rgba(238, 240, 233, 0.14);
  padding: 14px;
  box-shadow: var(--shadow-phone);
  transform: rotate(1.6deg);
}

.phone-top {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 108px;
  height: 22px;
  border-radius: 0 0 16px 16px;
  background: #05080d;
  z-index: 3;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ink-soft);
  border-radius: 28px 28px 0 0;
  padding: 30px 18px 12px;
  color: var(--text-on-dark);
}

.chat-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--brass-bright), var(--brass-deep));
  color: var(--ink-deep);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
}

.chat-title {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.chat-title strong {
  font-size: 0.85rem;
}

.chat-title span {
  font-size: 0.68rem;
  color: var(--line-green);
}

.chat-clock {
  margin-left: auto;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--brass-bright);
}

.chat-body {
  background: var(--chat-bg);
  border-radius: 0 0 28px 28px;
  padding: 18px 14px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 380px;
}

.msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 0.82rem;
  line-height: 1.65;
  color: #1a2330;
}

.js .chat-body .msg,
.js .chat-body .typing {
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  animation: pop 0.5s cubic-bezier(0.3, 1.2, 0.4, 1) forwards;
  animation-delay: calc(0.7s + var(--i) * 0.55s);
}

@keyframes pop {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.msg.bot {
  align-self: flex-start;
  background: #ffffff;
  border-bottom-left-radius: 6px;
  box-shadow: 0 2px 6px rgba(20, 30, 45, 0.08);
}

.msg.user {
  align-self: flex-end;
  background: var(--line-bubble);
  border-bottom-right-radius: 6px;
}

.msg.photo {
  background: none;
  padding: 0;
}

.photo-frame {
  position: relative;
  display: flex;
  align-items: flex-end;
  width: 150px;
  height: 96px;
  border-radius: 14px;
  overflow: hidden;
  background:
    linear-gradient(160deg, #38414d 0%, #232b36 55%, #1a212b 100%);
  box-shadow: 0 2px 8px rgba(20, 30, 45, 0.25);
}

/* 型番ラベル風の白帯 */
.photo-glass {
  position: absolute;
  top: 26px;
  left: 18px;
  width: 96px;
  height: 30px;
  border-radius: 4px;
  background:
    repeating-linear-gradient(
      0deg,
      #e8e8e2 0 4px,
      #c9c9c2 4px 6px
    );
  opacity: 0.9;
}

.photo-label {
  position: relative;
  width: 100%;
  padding: 4px 8px;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(5, 8, 13, 0.55);
}

.typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 5px;
  background: #ffffff;
  border-radius: 18px;
  border-bottom-left-radius: 6px;
  padding: 12px 16px;
  box-shadow: 0 2px 6px rgba(20, 30, 45, 0.08);
}

.typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9aa7b5;
  animation: blink 1.2s ease-in-out infinite;
}

.typing span:nth-child(2) { animation-delay: 0.18s; }
.typing span:nth-child(3) { animation-delay: 0.36s; }

@keyframes blink {
  0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

/* 朝の通知カード: 電話に重ねる */
.morning-card {
  position: absolute;
  right: -18px;
  bottom: 0;
  width: 250px;
  background: var(--paper-warm);
  border: 1px solid rgba(200, 164, 78, 0.5);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: 0 24px 48px rgba(3, 6, 12, 0.5);
  transform: rotate(-2deg);
  color: var(--text-on-paper);
}

.js .morning-card {
  opacity: 0;
  animation: rise 0.8s cubic-bezier(0.22, 0.8, 0.3, 1) forwards;
  animation-delay: calc(0.7s + var(--i) * 0.55s);
}

.morning-time {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--brass-deep);
  border: 1px solid rgba(150, 118, 44, 0.4);
  border-radius: 999px;
  padding: 2px 12px;
  margin-bottom: 8px;
}

.morning-card strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 4px;
}

.morning-card p {
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--text-on-paper-sub);
}

/* --------------------------------------------------------------------------
   スクロールリビール (共通)
   -------------------------------------------------------------------------- */

.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: linear-gradient(180deg, #101a29 0%, var(--ink-deep) 100%);
  color: var(--text-on-dark);
}

.loss-section .section-heading h2 {
  color: var(--text-on-dark);
}

.loss-section .heading-note {
  color: var(--text-on-dark-sub);
}

.stat-band {
  max-width: var(--max-width);
  margin: 0 auto 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink-line);
  border-bottom: 1px solid var(--ink-line);
}

.stat {
  padding: 40px 32px;
}

.stat + .stat {
  border-left: 1px solid var(--ink-line);
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 5.4vw, 4.2rem);
  line-height: 1.1;
  color: var(--brass-bright);
  margin-bottom: 18px;
  font-variant-numeric: tabular-nums;
}

.stat-unit {
  font-size: 0.45em;
  margin-left: 2px;
  color: var(--brass);
}

.stat h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.6;
}

.stat p {
  font-size: 0.88rem;
  color: var(--text-on-dark-sub);
}

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

.pain-grid article {
  background: rgba(22, 32, 47, 0.65);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.pain-grid article:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 164, 78, 0.45);
}

.pain-num {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--brass);
  border-bottom: 1px solid rgba(200, 164, 78, 0.4);
  padding-bottom: 4px;
  margin-bottom: 16px;
}

.pain-grid h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--text-on-dark);
  line-height: 1.6;
}

.pain-grid p {
  font-size: 0.88rem;
  color: var(--text-on-dark-sub);
}

/* --------------------------------------------------------------------------
   KaitoriAIの夜 (タイムライン)
   -------------------------------------------------------------------------- */

.night-section {
  background:
    radial-gradient(800px 400px at 85% 15%, rgba(52, 76, 120, 0.3), transparent 65%),
    var(--ink-deep);
  color: var(--text-on-dark);
  /* 朝への地平線 */
  border-bottom: 1px solid rgba(200, 164, 78, 0.35);
}

.night-section .section-heading h2 {
  color: var(--text-on-dark);
}

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

.night-timeline::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 74px;
  width: 1px;
  background: linear-gradient(180deg, rgba(200, 164, 78, 0.15), rgba(200, 164, 78, 0.7));
}

.night-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 32px;
  padding: 26px 0;
}

.night-timeline li::before {
  content: "";
  position: absolute;
  left: 50px;
  top: 38px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink-deep);
  border: 2px solid var(--brass);
}

.tl-time {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--brass-bright);
  text-align: right;
  padding-right: 42px;
  font-variant-numeric: tabular-nums;
}

.tl-body h3 {
  font-size: 1.12rem;
  margin-bottom: 8px;
}

.tl-body p {
  font-size: 0.92rem;
  color: var(--text-on-dark-sub);
  max-width: 34em;
}

.tl-morning {
  margin-top: 18px;
  background: linear-gradient(135deg, rgba(230, 201, 121, 0.14), rgba(200, 164, 78, 0.05));
  border: 1px solid rgba(200, 164, 78, 0.4);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
}

.tl-morning::before {
  top: 42px;
  background: var(--brass-bright);
  box-shadow: 0 0 14px rgba(230, 201, 121, 0.8);
}

.tl-morning .tl-time {
  color: var(--brass-bright);
  text-shadow: 0 0 18px rgba(230, 201, 121, 0.5);
}

/* --------------------------------------------------------------------------
   紙面 (朝) セクション共通
   -------------------------------------------------------------------------- */

.features-section,
.compare-section,
.case-section,
.scope-section,
.pricing-section,
.flow-section,
.faq-section {
  background: var(--paper);
  color: var(--text-on-paper);
  position: relative;
}

/* 和紙の質感 */
.features-section::before,
.compare-section::before,
.case-section::before,
.scope-section::before,
.pricing-section::before,
.flow-section::before,
.faq-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(24, 32, 44, 0.035) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, black, transparent 85%);
}

.features-section {
  background: linear-gradient(180deg, #fdfaf2 0%, var(--paper) 30%);
}

.features-section > *,
.compare-section > *,
.scope-section > *,
.pricing-section > *,
.flow-section > *,
.faq-section > * {
  position: relative;
}

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

.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(--paper-warm);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  box-shadow: 0 6px 18px rgba(24, 32, 44, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-grid article:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

.feature-grid h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(200, 164, 78, 0.55);
  display: inline-block;
}

.feature-grid p {
  font-size: 0.9rem;
  color: var(--text-on-paper-sub);
}

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

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

.compare-table {
  width: 100%;
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.92rem;
}

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

.compare-table thead th {
  font-family: var(--font-display);
  font-size: 1rem;
  padding-bottom: 14px;
  color: var(--text-on-paper-sub);
}

.compare-table tbody th {
  font-weight: 700;
  width: 200px;
  color: var(--text-on-paper);
}

.compare-table td {
  color: var(--text-on-paper-sub);
}

.compare-table .is-kaitoriai {
  background: var(--ink);
  color: var(--text-on-dark);
  font-weight: 700;
  border-bottom-color: rgba(238, 240, 233, 0.12);
}

.compare-table thead .is-kaitoriai {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  color: var(--brass-bright);
  font-size: 1.1rem;
}

.compare-table tbody tr:last-child .is-kaitoriai {
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  border-bottom-color: transparent;
}

/* --------------------------------------------------------------------------
   事例
   -------------------------------------------------------------------------- */

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

.case-inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  background: var(--ink);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.case-copy {
  padding: 64px 56px;
  color: var(--text-on-dark);
  background:
    radial-gradient(600px 300px at 0% 0%, rgba(52, 76, 120, 0.45), transparent 70%);
}

.case-copy h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.5;
  margin-bottom: 20px;
}

.case-copy > p {
  font-size: 0.95rem;
  color: var(--text-on-dark-sub);
  margin-bottom: 30px;
}

.case-copy blockquote {
  border-left: 3px solid var(--brass);
  padding-left: 20px;
}

.case-copy blockquote p {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1.9;
  margin-bottom: 8px;
}

.case-copy cite {
  font-style: normal;
  font-size: 0.8rem;
  color: var(--text-on-dark-sub);
}

.case-stats {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding: 56px 52px;
  background: rgba(230, 201, 121, 0.07);
  border-left: 1px solid var(--ink-line);
}

.case-stats > div {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ink-line);
}

.case-stats > div:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.case-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.6rem;
  color: var(--brass-bright);
  line-height: 1.2;
}

.case-unit {
  font-size: 0.45em;
  margin-left: 4px;
}

.case-stats p {
  font-size: 0.85rem;
  color: var(--text-on-dark-sub);
  margin-top: 6px;
}

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

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

.scope-card {
  border-radius: var(--radius-lg);
  padding: 38px 36px;
}

.scope-card.can {
  background: var(--ink);
  color: var(--text-on-dark);
}

.scope-card.cannot {
  background: var(--paper-warm);
  border: 1px solid var(--paper-line);
}

.scope-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 22px;
}

.scope-card.can h3 {
  color: var(--brass-bright);
}

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

.scope-card li {
  position: relative;
  padding: 10px 0 10px 30px;
  font-size: 0.93rem;
  border-bottom: 1px dashed rgba(128, 128, 128, 0.25);
}

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

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

.scope-card.cannot li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 20px;
  width: 12px;
  height: 2px;
  background: var(--danger);
}

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

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

.price-card {
  position: relative;
  background: var(--ink);
  color: var(--text-on-dark);
  border-radius: var(--radius-lg);
  padding: 40px 34px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.price-card:hover {
  transform: translateY(-5px);
}

.price-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -55% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 164, 78, 0.22), transparent 70%);
}

.price-tier {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.24em;
  color: var(--brass);
}

.price-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 14px 0 6px;
}

.price-type {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-deep);
  background: var(--brass-bright);
  border-radius: 999px;
  padding: 3px 14px;
  margin-bottom: 18px;
}

.price-card.is-option .price-type {
  background: transparent;
  color: var(--brass-bright);
  border: 1px solid var(--brass);
}

.price-card p:last-child {
  font-size: 0.88rem;
  color: var(--text-on-dark-sub);
}

.pricing-note {
  max-width: var(--max-width);
  margin: 0 auto;
  font-size: 0.8rem;
  color: var(--text-on-paper-sub);
}

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

.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 {
  position: relative;
  background: var(--paper-warm);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-md);
  padding: 26px 22px;
}

.flow-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -14px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--brass);
  border-right: 2px solid var(--brass);
  transform: translateY(-50%) rotate(45deg);
  z-index: 1;
}

.step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  color: var(--brass-deep);
}

.flow-steps h3 {
  font-size: 1rem;
  margin: 10px 0 8px;
}

.flow-steps p {
  font-size: 0.82rem;
  color: var(--text-on-paper-sub);
  line-height: 1.75;
}

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

.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

.faq-list details {
  border-bottom: 1px solid var(--paper-line);
}

.faq-list summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 24px 48px 24px 0;
  font-weight: 700;
  font-size: 1rem;
  transition: color 0.2s ease;
}

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

.faq-list summary:hover {
  color: var(--brass-deep);
}

.faq-list summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--brass-deep);
  border-bottom: 2px solid var(--brass-deep);
  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 24px;
  font-size: 0.92rem;
  color: var(--text-on-paper-sub);
  max-width: 44em;
}

/* --------------------------------------------------------------------------
   CONTACT (夜に戻る)
   -------------------------------------------------------------------------- */

.contact-section {
  background:
    radial-gradient(900px 500px at 15% 0%, rgba(52, 76, 120, 0.4), transparent 65%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-deep) 100%);
  color: var(--text-on-dark);
}

.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 h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  line-height: 1.5;
  margin-bottom: 20px;
}

.contact-copy p {
  font-size: 0.95rem;
  color: var(--text-on-dark-sub);
  margin-bottom: 26px;
  max-width: 30em;
}

.contact-points li {
  position: relative;
  padding: 8px 0 8px 26px;
  font-size: 0.9rem;
  color: var(--text-on-dark-sub);
}

.contact-points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 16px;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--brass-bright);
  border-bottom: 2px solid var(--brass-bright);
  transform: rotate(-45deg);
}

.contact-form {
  background: var(--paper-warm);
  border-radius: 26px;
  padding: 44px 42px;
  color: var(--text-on-paper);
  box-shadow: 0 30px 70px rgba(3, 6, 12, 0.5);
  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 rgba(24, 32, 44, 0.22);
  border-radius: 10px;
  background: #ffffff;
  color: var(--text-on-paper);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(200, 164, 78, 0.22);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form fieldset {
  border: 1px solid rgba(24, 32, 44, 0.16);
  border-radius: 12px;
  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(--brass-deep);
  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-on-paper-sub);
  line-height: 1.7;
}

.form-privacy a {
  color: var(--brass-deep);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   フッター
   -------------------------------------------------------------------------- */

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

.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;
  max-width: var(--max-width);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--ink-line);
  padding-top: 24px;
}

.footer-meta nav {
  display: flex;
  gap: 22px;
  font-size: 0.85rem;
}

.footer-meta a:hover {
  color: var(--brass-bright);
}

.copyright {
  font-size: 0.78rem;
}

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

.floating-cta {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 55;
  padding: 15px 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brass-bright), var(--brass));
  color: var(--ink-deep);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  box-shadow: 0 16px 36px rgba(3, 6, 12, 0.45);
  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(--ink-soft);
  color: var(--text-on-dark);
  border: 1px solid rgba(200, 164, 78, 0.5);
  border-radius: 12px;
  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-page {
  background: var(--paper);
  color: var(--text-on-paper);
}

.policy-page .site-header {
  background: rgba(9, 14, 23, 0.92);
}

.policy-hero {
  padding-top: 168px;
  background: linear-gradient(180deg, var(--ink-deep), var(--ink));
  color: var(--text-on-dark);
}

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

.policy-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin-bottom: 18px;
}

.policy-hero p {
  font-size: 0.95rem;
  color: var(--text-on-dark-sub);
}

.policy-updated {
  margin-top: 14px;
  font-size: 0.8rem;
}

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

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

.policy-content h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(200, 164, 78, 0.5);
}

.policy-content p,
.policy-content li {
  font-size: 0.93rem;
  color: var(--text-on-paper-sub);
}

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

.policy-content li {
  position: relative;
  padding: 6px 0 6px 22px;
}

.policy-content li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 17px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brass);
}

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

@media (max-width: 1020px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 72px;
  }

  .hero-side {
    display: none;
  }

  .hero-visual {
    justify-self: center;
  }

  .flow-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }

  .flow-steps li:not(:last-child)::after {
    display: none;
  }

  .case-inner {
    grid-template-columns: 1fr;
  }

  .case-stats {
    border-left: none;
    border-top: 1px solid var(--ink-line);
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
  }

  .case-stats > div {
    flex: 1 1 160px;
    border-bottom: none;
    padding-bottom: 0;
  }
}

@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(--ink-line);
  }

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

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 72px 20px;
  }

  .hero {
    padding: 132px 20px 88px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .trust-strip {
    max-width: none;
  }

  .night-timeline::before {
    left: 8px;
  }

  .night-timeline {
    padding-left: 0;
  }

  .night-timeline li {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-left: 30px;
  }

  .night-timeline li::before {
    left: -16px;
    top: 10px;
  }

  .tl-time {
    text-align: left;
    padding-right: 0;
  }

  .morning-card {
    position: static;
    width: 100%;
    margin-top: 18px;
    transform: none;
  }

  .hero-visual {
    padding-bottom: 0;
  }

  .phone {
    transform: none;
  }

  .flow-steps {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 32px 24px;
  }

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

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

  .js .hero-copy > *,
  .js .chat-body .msg,
  .js .chat-body .typing,
  .js .morning-card {
    animation: none;
    opacity: 1;
    transform: none;
  }

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

  .hero-sky::before {
    animation: none;
  }
}
