:root {
  --bg: #06080b;
  --bg-2: #0b0f14;
  --surface: rgba(255, 255, 255, 0.032);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #e9eef4;
  --muted: #8b99a8;
  --accent: #2dd4a7;
  --accent-2: #38bdf8;
  --danger: #fb7185;
  --grad: linear-gradient(135deg, #2dd4a7 0%, #38bdf8 100%);
  --measure: 68rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.9;
  font-feature-settings: "palt";
  overflow-x: hidden;
}

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

/* キーボード操作の現在地。CTA が見えないと登録まで辿り着けない */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* .field input は枠自体を光らせるので二重に出さない */
.field input:focus-visible { outline: none; }

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.1em 0.35em;
  color: var(--accent);
  word-break: break-all;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* .narrow は下層ページ（料金・プライバシー）用。読み幅で中央寄せする。
   LP のセクションは左端を揃える必要があるため .lp-col を使う（下部で定義） */
.narrow { max-width: 44rem; }

/* 背景の動くグラデーション */

.aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.22;
  will-change: transform;
}

.aurora span:nth-child(1) {
  width: 46rem; height: 46rem;
  background: #2dd4a7;
  top: -18rem; left: -10rem;
  animation: drift1 26s var(--ease) infinite alternate;
}

.aurora span:nth-child(2) {
  width: 38rem; height: 38rem;
  background: #38bdf8;
  top: 12rem; right: -14rem;
  animation: drift2 32s var(--ease) infinite alternate;
}

.aurora span:nth-child(3) {
  width: 34rem; height: 34rem;
  background: #6366f1;
  bottom: -12rem; left: 30%;
  opacity: 0.14;
  animation: drift3 38s var(--ease) infinite alternate;
}

@keyframes drift1 { to { transform: translate3d(8rem, 6rem, 0) scale(1.15); } }
@keyframes drift2 { to { transform: translate3d(-7rem, 9rem, 0) scale(1.1); } }
@keyframes drift3 { to { transform: translate3d(5rem, -6rem, 0) scale(1.2); } }

/* 粒状のテクスチャ。べたっとした暗色に質感を出す */
.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 100% 60% at 50% 0%, #000 40%, transparent 100%);
}

/* ヘッダー */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(6, 8, 11, 0.6);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

.site-header.stuck {
  border-bottom-color: var(--line);
  background: rgba(6, 8, 11, 0.85);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
}

.brand svg { width: 1.5rem; height: 1.5rem; }

.site-header nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.site-header nav a:hover { color: var(--text); }

/* .site-header nav a の詳細度が .btn を上回るため、ここで打ち消す */
.site-header nav a.btn,
.site-header nav a.btn:hover { color: #04120e; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--grad);
  color: #04120e;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9375rem;
  border: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.28s var(--ease), box-shadow 0.25s var(--ease);
  box-shadow: 0 0 0 0 rgba(45, 212, 167, 0.4);
  /* --tx / --ty はカーソル追従（app.js）。--step は hover の浮き上がり */
  transform: translate(var(--tx, 0px), calc(var(--ty, 0px) + var(--lift, 0px)));
}

.btn:hover {
  --lift: -2px;
  box-shadow: 0 12px 32px -8px rgba(45, 212, 167, 0.55);
}

.btn:active { --lift: 0px; }

.btn.sm { padding: 0.5rem 1.0625rem; font-size: 0.875rem; }

.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ヒーロー */

.hero {
  padding: 5.5rem 0 5rem;
  position: relative;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.3125rem 0.875rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.dot {
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(45, 212, 167, 0.6);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(45, 212, 167, 0.6); }
  70% { box-shadow: 0 0 0 0.55rem rgba(45, 212, 167, 0); }
  100% { box-shadow: 0 0 0 0 rgba(45, 212, 167, 0); }
}

.hero h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 4.4vw, 3.125rem);
  line-height: 1.4;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.hero h1 .line { display: block; overflow: hidden; }

.hero h1 .line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: riseIn 0.9s var(--ease) forwards;
}

.hero h1 .line:nth-child(2) > span { animation-delay: 0.1s; }
.hero h1 .line:nth-child(3) > span { animation-delay: 0.2s; }

@keyframes riseIn { to { transform: translateY(0); } }

.grad-text {
  background: linear-gradient(100deg, #2dd4a7, #38bdf8, #6366f1, #2dd4a7);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradFlow 9s linear infinite;
}

@keyframes gradFlow {
  to { background-position: 300% 0; }
}

.hero .lead {
  margin: 0 0 2.25rem;
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 30rem;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.35s forwards;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.5s forwards;
}

.hero-note {
  margin: 1.25rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.65s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(1rem); }
  to { opacity: 1; transform: translateY(0); }
}

.link-quiet {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.link-quiet:hover { color: var(--text); border-color: var(--accent); }

/* ヒーローのダッシュボード実演 */

.demo {
  position: relative;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.45s forwards;
  perspective: 1200px;
}

.panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.375rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 32px 64px -24px rgba(0, 0, 0, 0.8);
  /* --shift はスクロール量に応じたずれ（app.js） */
  transform: translateY(var(--shift, 0px)) rotateY(-6deg) rotateX(3deg);
  transition: transform 0.6s var(--ease);
}

.demo:hover .panel { transform: translateY(var(--shift, 0px)) rotateY(0deg) rotateX(0deg); }

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.125rem;
}

.panel-head .label {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.chips { display: flex; gap: 0.3125rem; }
.chips i {
  width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: var(--line-strong); display: block;
}

.metric {
  font-family: var(--mono);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.metric small { font-size: 1.125rem; color: var(--muted); margin-left: 0.25rem; }

.metric-sub {
  font-size: 0.8125rem;
  color: var(--accent);
  margin: 0.25rem 0 1.25rem;
}

.rows { display: grid; gap: 0.5rem; }

.row {
  display: grid;
  grid-template-columns: 1.75rem 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6875rem 0.8125rem;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.8125rem;
  opacity: 0;
  transform: translateY(0.5rem);
}

.row.in { animation: rowIn 0.55s var(--ease) forwards; }

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

.row .who { color: var(--muted); font-family: var(--mono); }
.row .amt { font-family: var(--mono); font-weight: 700; }

.row .badge {
  width: 1.75rem; height: 1.75rem;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.6875rem;
}

.row.failed .badge { background: rgba(251, 113, 133, 0.16); color: var(--danger); }
.row.sent .badge { background: rgba(56, 189, 248, 0.16); color: var(--accent-2); }
.row.ok .badge { background: rgba(45, 212, 167, 0.16); color: var(--accent); }
.row.ok .amt { color: var(--accent); }

/* 通知バブル */

.toast {
  position: absolute;
  right: -1rem;
  bottom: 2.5rem;
  display: flex;
  gap: 0.6875rem;
  align-items: flex-start;
  background: rgba(13, 17, 23, 0.92);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 0.8125rem 1rem;
  max-width: 17rem;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.9);
  opacity: 0;
  transform: translateY(0.75rem) scale(0.96);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.toast.show { opacity: 1; transform: translateY(0) scale(1); }

.toast .ic {
  width: 1.75rem; height: 1.75rem; flex: none;
  border-radius: 8px;
  background: var(--grad);
  display: grid; place-items: center;
  color: #04120e;
}

.toast p { margin: 0; font-size: 0.8125rem; line-height: 1.65; }
.toast .t { color: var(--muted); font-size: 0.6875rem; }

/* セクション共通 */

section { padding: 6rem 0; position: relative; }

.sec-label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin: 0 0 1rem;
  font-family: var(--mono);
}

h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  line-height: 1.5;
  letter-spacing: -0.015em;
  font-weight: 800;
}

.sec-body { color: var(--muted); }
.sec-body p { margin: 0 0 1.25rem; }
.sec-body p:last-child { margin-bottom: 0; }
.sec-body strong { color: var(--text); font-weight: 700; }

/* スクロールで出す。
   JS が動いている時だけ隠す。JS が落ちても本文が読めるようにするため、
   .js が付いていない状態では最初から表示されている。 */

.js .reveal {
  opacity: 0;
  transform: translateY(1.75rem);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

/* JS が並び順から遅延を割り振る。data-d より細かい段差を作る */
.js .reveal[style*="--i"] { transition-delay: calc(var(--i) * 90ms); }

/* 見出しはマスクの下からせり上げる */
.js .reveal-clip > .ln {
  display: block;
  overflow: hidden;
}

.js .reveal-clip > .ln > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 0.85s var(--ease);
}

.js .reveal-clip.in > .ln > span { transform: none; }
.js .reveal-clip.in > .ln:nth-child(2) > span { transition-delay: 0.08s; }
.js .reveal-clip.in > .ln:nth-child(3) > span { transition-delay: 0.16s; }

/* clip 版は本体の fade は使わない */
.js .reveal-clip { opacity: 1; transform: none; }

/* LP のテキストセクション。読み幅は絞りつつ、左端はカードグリッドと揃える */
.lp-col { max-width: var(--measure); }
.lp-col > * { max-width: 44rem; }
/* 横に並べるブロックは読み幅の制限から外す */
.lp-col > .split,
.lp-col > .art { max-width: none; }
.closing .lp-col > * { margin-inline: auto; }
.reveal[data-d="1"] { transition-delay: 0.1s; }
.reveal[data-d="2"] { transition-delay: 0.2s; }
.reveal[data-d="3"] { transition-delay: 0.3s; }

/* 誤解の対比 */

.contrast {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-top: 3rem;
}

.cbox {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.75rem;
  background: var(--surface);
}

.cbox .k { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.08em; }
.cbox .v { font-size: 1.375rem; font-weight: 800; margin: 0.5rem 0 0; line-height: 1.5; }
.cbox.bad .v { color: var(--danger); }
.cbox.good { border-color: rgba(45, 212, 167, 0.32); background: rgba(45, 212, 167, 0.05); }
.cbox.good .v { color: var(--accent); }

.cbox p { margin: 0.75rem 0 0; font-size: 0.875rem; color: var(--muted); }

.vs {
  font-family: var(--mono);
  color: var(--muted);
  font-size: 0.8125rem;
}

/* 3 ステップ */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
  position: relative;
}

.step {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.75rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s;
}

.step::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(20rem 12rem at var(--mx, 50%) var(--my, 0%), rgba(45, 212, 167, 0.14), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.step:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.step:hover::after { opacity: 1; }

.step .n {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.step h3{ margin: 0 0 0.625rem; font-size: 1.0625rem; line-height: 1.6; }
.step p { margin: 0; font-size: 0.875rem; color: var(--muted); }

/* 料金 */

.calc {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2.25rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  margin-top: 2.5rem;
}

.calc-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.calc-top .k { font-size: 0.875rem; color: var(--muted); }

.calc-val {
  font-family: var(--mono);
  font-size: 1.75rem;
  font-weight: 700;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 0.375rem;
  border-radius: 999px;
  background: var(--surface-2);
  outline: none;
  margin: 0.5rem 0 2rem;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 1.375rem; height: 1.375rem;
  border-radius: 50%;
  background: var(--grad);
  cursor: pointer;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--line-strong), 0 6px 18px -4px rgba(45, 212, 167, 0.7);
  transition: transform 0.2s var(--ease);
}

input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }

input[type="range"]::-moz-range-thumb {
  width: 1.375rem; height: 1.375rem;
  border-radius: 50%;
  background: #2dd4a7;
  cursor: pointer;
  border: 3px solid var(--bg);
}

.breakdown { display: grid; gap: 0.75rem; }

.brow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem 1.125rem;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.9375rem;
}

.brow.total {
  border-color: rgba(45, 212, 167, 0.34);
  background: rgba(45, 212, 167, 0.06);
}

.brow .num { font-family: var(--mono); font-weight: 700; }
.brow.total .num { color: var(--accent); font-size: 1.125rem; }
.brow .off { color: var(--muted); font-size: 0.8125rem; }

.calc-note { margin: 1.25rem 0 0; font-size: 0.8125rem; color: var(--muted); }

/* 現状の注記 */

.honest {
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: 4px 14px 14px 4px;
  padding: 2rem 2.25rem;
  background: var(--surface);
}

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

/* クロージング */

.closing { text-align: center; }

.closing h2 { max-width: 40rem; margin-inline: auto; }

.closing code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.125em 0.4em;
  color: var(--accent);
}

/* フォーム */

.form-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2.25rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  max-width: 38rem;
  margin: 2.5rem auto 0;
}

.signup { display: grid; gap: 1.125rem; }

.field { display: grid; gap: 0.5rem; }
.field > span { font-size: 0.8125rem; color: var(--muted); }

.field input {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0.8125rem 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input::placeholder { color: rgba(139, 153, 168, 0.6); }

.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45, 212, 167, 0.14);
}

.check {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--muted);
  cursor: pointer;
}

.check input {
  width: 1.125rem; height: 1.125rem;
  accent-color: #2dd4a7;
  cursor: pointer;
}

.signup .btn { justify-content: center; width: 100%; }

.form-note { margin: 0; font-size: 0.8125rem; color: var(--muted); }

.form-msg {
  margin: 1rem 0 0;
  padding: 1rem 1.125rem;
  border-radius: 12px;
  font-size: 0.9375rem;
  border: 1px solid rgba(45, 212, 167, 0.32);
  background: rgba(45, 212, 167, 0.07);
}

.form-msg.err {
  border-color: rgba(251, 113, 133, 0.34);
  background: rgba(251, 113, 133, 0.07);
  color: var(--danger);
}

/* 読み方 */

.reading {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.hero-reading {
  margin: 0.625rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.8s forwards;
}

.hero-reading b { color: var(--text); font-weight: 700; }

/* フッター */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer nav { display: flex; gap: 1.25rem; }
.site-footer p { margin: 0 0 0.25rem; }

/* 下層ページ */

.page { padding: 4rem 0 6rem; }
.page h1 { margin: 0 0 0.75rem; font-size: clamp(1.75rem, 3.4vw, 2.375rem); line-height: 1.45; font-weight: 800; letter-spacing: -0.015em; }
.page h2 { margin: 3rem 0 1rem; font-size: 1.25rem; }
.page p, .page li { color: var(--muted); }
.page p { margin-bottom: 1.25rem; }
.page strong { color: var(--text); }
.page ul { padding-left: 1.25rem; }
.page li { margin-bottom: 0.625rem; }
.page dl { margin: 0; }
.page dt { font-weight: 700; margin-top: 1.75rem; color: var(--text); }
.page dd { margin: 0.375rem 0 0; color: var(--muted); }
.updated { color: var(--muted); font-size: 0.8125rem; font-family: var(--mono); }

/* 法務ページの表 */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 1.5rem 0;
  -webkit-overflow-scrolling: touch;
}

.page table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  min-width: 34rem;
}

.page th,
.page td {
  text-align: left;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.page tr:last-child td { border-bottom: 0; }

.page th {
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
}

.page td { color: var(--muted); }
.page td:first-child { color: var(--text); font-weight: 700; white-space: nowrap; }

.page .note-sm {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: -0.5rem;
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.example {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem;
  background: var(--surface);
}

.example .k { font-size: 0.8125rem; color: var(--muted); }
.example .v { font-family: var(--mono); font-size: 1.5rem; font-weight: 700; margin: 0.375rem 0 0; }
.example .v.hl { color: var(--accent); }

/* スクロール進捗 */

.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--grad);
  z-index: 60;
  will-change: transform;
}

/* セクションのイラスト */

.art {
  display: block;
  width: 100%;
  height: auto;
  margin: 2.75rem 0 0;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    radial-gradient(40rem 20rem at 50% -20%, rgba(45, 212, 167, 0.09), transparent 70%),
    var(--bg-2);
}

.art .stroke { stroke: rgba(255, 255, 255, 0.14); }
.art .stroke-a { stroke: var(--accent); }
.art .fill-soft { fill: rgba(255, 255, 255, 0.045); }
.art .fill-bg { fill: #0b0f14; }
.art .t { fill: #8b99a8; font-size: 11px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.art .t-hl { fill: #2dd4a7; }
.art .t-bad { fill: #fb7185; }
.art .t-lg { fill: #e9eef4; font-size: 14px; font-weight: 700; font-family: -apple-system, "Hiragino Sans", sans-serif; }

/* 期限切れのカード */

.art .card-ghost { opacity: 0.35; }

/* 半径に依存しないよう scale で広げる。transform-box で各要素の中心を原点にする */
.art .pulse-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: ring 2.6s ease-out infinite;
}

@keyframes ring {
  0% { transform: scale(0.65); opacity: 0.75; }
  70% { transform: scale(1.75); opacity: 0; }
  100% { transform: scale(1.75); opacity: 0; }
}

.art .dash {
  stroke-dasharray: 5 6;
  animation: march 1.6s linear infinite;
}

@keyframes march { to { stroke-dashoffset: -22; } }

/* ステップカードのイラスト枠 */

.step .art-sm {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  margin: 0 0 1.25rem;
}

/* 止まる理由の内訳 */

.causes { display: grid; gap: 0.875rem; margin-top: 2.5rem; }

.cause {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  padding: 1.125rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  transition: border-color 0.3s, background 0.3s;
}

.cause:hover { border-color: var(--line-strong); background: var(--surface-2); }

.cause-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.cause-head b { font-weight: 700; font-size: 0.9375rem; }

.cause-head .fix {
  font-size: 0.6875rem;
  font-family: var(--mono);
  color: var(--accent);
  border: 1px solid rgba(45, 212, 167, 0.28);
  background: rgba(45, 212, 167, 0.07);
  border-radius: 999px;
  padding: 0.125rem 0.5625rem;
  white-space: nowrap;
}

.cause-head .fix.no {
  color: var(--muted);
  border-color: var(--line);
  background: transparent;
}

.cause p { margin: 0; font-size: 0.8125rem; color: var(--muted); }

/* 引用のような強調ブロック */

.pull {
  margin: 2.5rem 0 0;
  padding: 1.75rem 2rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
    linear-gradient(135deg, rgba(45, 212, 167, 0.5), rgba(56, 189, 248, 0.2)) border-box;
  border: 1px solid transparent;
  font-size: 1.0625rem;
  line-height: 1.85;
}

.pull p { margin: 0 0 1rem; color: var(--muted); }
.pull p:last-child { margin: 0; }
.pull strong { color: var(--text); }

/* 通知のタイムライン */

.timeline {
  margin-top: 2.75rem;
  position: relative;
  padding-left: 2.25rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.4375rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(56, 189, 248, 0.15));
  transform: scaleY(0);
  transform-origin: 0 0;
  transition: transform 1.4s var(--ease);
}

.timeline.in::before { transform: scaleY(1); }

.tl {
  position: relative;
  padding-bottom: 2rem;
}

.tl:last-child { padding-bottom: 0; }

.tl::before {
  content: "";
  position: absolute;
  left: -2.25rem;
  top: 0.5625rem;
  width: 1rem; height: 1rem;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--line-strong);
  transition: border-color 0.4s, box-shadow 0.4s;
}

/* スクロールに合わせて点が順番に灯る */
.tl.lit::before {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(45, 212, 167, 0.12), 0 0 14px 0 rgba(45, 212, 167, 0.45);
}

.tl.lit .when { color: var(--accent); }

.tl .when {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.06em;
}

.tl h4 { margin: 0.375rem 0 0.5rem; font-size: 1.0625rem; line-height: 1.6; }
.tl p { margin: 0; font-size: 0.9375rem; color: var(--muted); }

.tl .tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-family: var(--mono);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.0625rem 0.5rem;
  margin-left: 0.5rem;
  vertical-align: 0.125rem;
}

/* LINE 連携（トークのモック） */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 2.5rem;
}

.badge-soon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-family: var(--mono);
  color: var(--accent-2);
  border: 1px solid rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.07);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  margin-bottom: 1rem;
}

.phone {
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  box-shadow: 0 32px 64px -24px rgba(0, 0, 0, 0.85);
  max-width: 20rem;
}

.phone-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.25rem 0.875rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.phone-bar .av {
  width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: var(--grad);
}

.chat { display: grid; gap: 0.625rem; }

.bub {
  max-width: 84%;
  padding: 0.6875rem 0.875rem;
  border-radius: 14px;
  font-size: 0.8125rem;
  line-height: 1.7;
  background: var(--surface-2);
  border: 1px solid var(--line);
  opacity: 0;
  transform: translateY(0.5rem);
}

.chat.in .bub { animation: rowIn 0.5s var(--ease) forwards; }
.chat.in .bub:nth-child(2) { animation-delay: 0.35s; }
.chat.in .bub:nth-child(3) { animation-delay: 0.7s; }
.chat.in .bub:nth-child(4) { animation-delay: 1.05s; }

.bub.me {
  margin-left: auto;
  background: linear-gradient(135deg, rgba(45, 212, 167, 0.22), rgba(56, 189, 248, 0.14));
  border-color: rgba(45, 212, 167, 0.3);
}

.bub .cta-line {
  display: block;
  margin-top: 0.5rem;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.75rem;
}

/* 導入手順 */

.setup { display: grid; gap: 1rem; margin-top: 2.5rem; }

.setup-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.375rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.setup-item .k {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  padding-top: 0.3125rem;
}

.setup-item h4 { margin: 0 0 0.375rem; font-size: 1rem; }
.setup-item p { margin: 0; font-size: 0.875rem; color: var(--muted); }

/* レスポンシブ */

@media (max-width: 62rem) {
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .phone { max-width: 22rem; }
  .hero .wrap { grid-template-columns: 1fr; gap: 3rem; }
  .panel { transform: none; }
  .steps { grid-template-columns: 1fr; }
  .contrast { grid-template-columns: 1fr; }
  .vs { text-align: center; }
  .example-grid { grid-template-columns: 1fr; }
}

@media (max-width: 40rem) {
  section { padding: 4.5rem 0; }
  .hero { padding: 3.5rem 0 4rem; }
  .site-header nav a:not(.btn) { display: none; }
  .calc, .form-card, .honest, .pull { padding: 1.5rem; }
  .toast { right: 0; bottom: -1rem; max-width: 15rem; }
  .timeline { padding-left: 1.75rem; }
  .tl::before { left: -1.75rem; }
  .timeline::before { left: 0.4375rem; }

  /* SVG は viewBox ごと縮むため、幅の狭い画面では図中の文字が読めなくなる。
     ユーザー単位のフォントサイズを上げて実寸を確保する。
     CSS は presentation attribute（font-size="9" 等）より優先される。 */
  .art .t,
  .art text[font-size] { font-size: 17px; }
  .art .t-lg { font-size: 21px; }
  /* 枠に収める必要があるものは控えめに（上の一括指定より後に置いて勝たせる） */
  .art .t-sm, .art .t-sm text { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .js .reveal-clip > .ln > span { transform: none; }
  .hero h1 .line > span { transform: none; }
  .panel, .demo:hover .panel { transform: none; }
  .btn, .btn:hover { transform: none; }
  .hero .lead, .hero-actions, .hero-note, .demo { opacity: 1; }
  .row { opacity: 1; transform: none; }
}
