/* Litmus（英語版）。白と墨に、アクセントの青を1色だけ。セクションは背景色を変えず、余白で区切る */
:root {
  --bg: #ffffff;
  --subtle: #f5f5f7;
  --line: #e9e9ec;
  --line-2: #d9d9de;
  --text: #0a0a0b;
  --text-2: #5b5c63;
  --text-3: #8d8e95;
  --signal: #2a5bff;
  --blue: var(--signal);
  --red: #d42a1f;

  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;

  --max: 1160px;
  --gutter: 28px;

  --spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --spring-soft: cubic-bezier(0.22, 1, 0.36, 1);

  --shadow-card: 0 0 0 1px rgb(10 10 11 / 0.06), 0 1px 2px rgb(10 10 11 / 0.04), 0 8px 24px -10px rgb(10 10 11 / 0.1);

  interpolate-size: allow-keywords;
}

@supports (transition-timing-function: linear(0, 1)) {
  :root {
    /* 減衰 0.45（少し跳ねる）と 0.8（ほぼ跳ねない）のばねを 40 点でサンプリングしたもの */
    --spring: linear(0, 0.043, 0.154, 0.307, 0.48, 0.654, 0.814, 0.951, 1.058, 1.135, 1.182, 1.203, 1.203, 1.185, 1.157, 1.123, 1.087, 1.052, 1.022, 0.997, 0.978, 0.966, 0.96, 0.958, 0.96, 0.965, 0.972, 0.979, 0.986, 0.993, 0.998, 1.003, 1.006, 1.008, 1.009, 1.008, 1.008, 1.006, 1.005, 1.003, 1);
    --spring-soft: linear(0, 0.018, 0.065, 0.131, 0.209, 0.292, 0.377, 0.46, 0.539, 0.611, 0.678, 0.737, 0.789, 0.834, 0.872, 0.904, 0.931, 0.952, 0.97, 0.983, 0.994, 1.002, 1.007, 1.011, 1.013, 1.015, 1.015, 1.015, 1.014, 1.013, 1.012, 1.011, 1.01, 1.008, 1.007, 1.006, 1.005, 1.004, 1.003, 1.003, 1);
  }
}

@media (max-width: 640px) {
  :root { --gutter: 18px; }
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: rgb(42 91 255 / 0.16); }
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }
.nw { white-space: nowrap; }

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

/* ---------- ボタン：触れると面の色が少し明るくなり、押すと濃くなる ----------
   大きさは変えない。拡大の動きは、文字のにじみや最初の一回の引っかかりが出やすいのでやめた */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background-color: var(--text);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.14), 0 1px 2px rgb(10 10 11 / 0.24), 0 6px 14px -6px rgb(10 10 11 / 0.36);
  color: #fff;
  font: 500 14px/1 var(--sans);
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.15s ease;
}
.btn:focus-visible { background-color: #2c2c32; }
@media (hover: hover) {
  .btn:not(:disabled):hover { background-color: #2c2c32; }
}
.btn:not(:disabled):active { background-color: #000; }
.btn:focus-visible, .form input:focus-visible, .form textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.btn:disabled { opacity: 0.5; cursor: default; }
.btn-sm { height: 36px; padding: 0 14px 0 16px; font-size: 13.5px; }
.btn-lg { height: 50px; padding: 0 24px; font-size: 15.5px; }
.btn-invert { background-color: #fff; color: var(--text); box-shadow: 0 1px 2px rgb(0 0 0 / 0.3); }
.btn-invert:focus-visible { background-color: #e9e9ed; }
@media (hover: hover) {
  .btn-invert:not(:disabled):hover { background-color: #e9e9ed; }
}
.btn-invert:not(:disabled):active { background-color: #dcdce1; }
.arr { width: 8px; height: 10px; margin-right: -3px; }
.arr path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- ヘッダー：浮いたリキッドグラス ---------- */

.top {
  position: fixed;
  top: 12px;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0 var(--gutter);
  pointer-events: none;
}
.glass {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 1040px;
  height: 56px;
  margin: 0 auto;
  padding: 0 10px 0 24px;
  border-radius: 999px;
  pointer-events: auto;
}
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.6), rgb(255 255 255 / 0.42));
  -webkit-backdrop-filter: blur(14px) saturate(1.9);
  backdrop-filter: blur(14px) saturate(1.9);
  box-shadow:
    inset 0 1px 1px rgb(255 255 255 / 0.95),
    inset 0 -1px 1px rgb(10 10 11 / 0.03),
    0 0 0 1px rgb(10 10 11 / 0.07),
    0 2px 6px -2px rgb(10 10 11 / 0.08),
    0 12px 32px -12px rgb(10 10 11 / 0.18);
  transition: box-shadow 0.3s, background 0.3s;
}
/* Chromium では縁で背景が屈折する（マップは en.js で作る） */
.refract .glass::before { backdrop-filter: url(#lg-refract) blur(6px) saturate(1.9); }
.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(150deg, rgb(255 255 255 / 1), rgb(255 255 255 / 0.25) 30%, rgb(255 255 255 / 0) 50%, rgb(255 255 255 / 0.3) 75%, rgb(255 255 255 / 0.9));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.top.scrolled .glass::before {
  background: linear-gradient(180deg, rgb(255 255 255 / 0.68), rgb(255 255 255 / 0.52));
  box-shadow:
    inset 0 1px 1px rgb(255 255 255 / 0.95),
    inset 0 -1px 1px rgb(10 10 11 / 0.03),
    0 0 0 1px rgb(10 10 11 / 0.08),
    0 4px 10px -4px rgb(10 10 11 / 0.1),
    0 18px 40px -14px rgb(10 10 11 / 0.24);
}
.top-end { justify-self: end; display: flex; align-items: center; gap: 6px; }
/* 言語の切り替え。いまの言語は墨、もう一方は薄く */
.lang { display: flex; align-items: center; margin-right: 6px; font-size: 12.5px; font-weight: 500; letter-spacing: 0.02em; }
.lang a { padding: 6px 3px; color: var(--text-3); transition: color 0.2s; }
.lang span { color: var(--line-2); }
.lang a:hover { color: var(--text); }
.lang a[aria-current] { color: var(--text); }
/* 一番狭い画面では、ロゴとぶつからないよう詰める */
@media (max-width: 360px) {
  .glass { padding-left: 16px; }
  .lang { margin-right: 2px; }
}

/* ロゴ：正方形の右上だけを青い 1 枚に切り分けたマークと、その横に文字 */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.36em;
  justify-self: start;
  font: 600 19px/1 var(--sans);
  letter-spacing: -0.04em;
}
.logo-mark { flex: none; width: 1.2em; height: 1.2em; fill: var(--text); }
.logo-mark .lit { fill: var(--blue); }

.nav { position: relative; display: flex; gap: 2px; }
.nav a {
  position: relative;
  z-index: 1;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--text-2);
  transition: color 0.15s;
}
.nav a:hover { color: var(--text); }
.nav-hl {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: var(--w, 0px);
  border-radius: 999px;
  background: rgb(10 10 11 / 0.06);
  opacity: 0;
  transform: translateX(var(--x, 0px));
  transition: transform 0.5s var(--spring-soft), width 0.5s var(--spring-soft), opacity 0.2s;
}
.nav-hl.on { opacity: 1; }
.nav-hl.jump { transition: opacity 0.2s; }

@media (max-width: 760px) {
  .nav { display: none; }
  .glass { grid-template-columns: 1fr auto; padding-left: 20px; height: 52px; }
  .top { top: 8px; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: max(660px, 100svh);
  padding: 120px 0 72px;
  overflow: hidden;
}
.hero-in { position: relative; z-index: 1; width: 100%; }
.hero-copy { max-width: 560px; }
.hero h1 {
  font-size: clamp(46px, 6.2vw, 84px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.055em;
}
.lead {
  max-width: 27em;
  margin: 28px 0 40px;
  /* 短い一文なので、2行の長さをそろえる。言葉のまとまり（.nw）の途中では折り返さない */
  text-wrap: balance;
  font-size: 19px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--text-2);
}

.js .enter { animation: rise 1s var(--spring-soft) both; animation-delay: calc(var(--d, 0) * 90ms + 80ms); }
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* 鳥の群れは Hero いっぱいに敷き、左（見出しの側）と下は白へ溶かす */
.flock {
  position: absolute;
  inset: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 38%, #000 68%), linear-gradient(0deg, transparent, #000 16%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 38%, #000 68%), linear-gradient(0deg, transparent, #000 16%);
  mask-composite: intersect;
}
.flock canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-out;
}
.flock.ready canvas { opacity: 1; }

/* 狭い画面では、群れを上に置いて見出しを下に続ける。Hero で画面を埋め、余った高さは群れが受け持つ */
@media (max-width: 900px) {
  .hero { flex-direction: column; align-items: stretch; min-height: 100svh; padding: 64px 0 40px; }
  .flock {
    position: relative;
    inset: auto;
    flex: 1 0 auto;
    /* 背の低い画面でも、ボタンまで最初の画面に収める */
    height: min(100vw, 520px, 48svh);
    margin-bottom: -24px;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 78%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 18%, #000 78%, transparent);
  }
}
@media (max-width: 640px) {
  .lead { font-size: 17px; margin: 22px 0 32px; }
}
/* 幅いっぱいのボタンは、片手で持つ大きさの画面だけ */
@media (max-width: 480px) {
  .hero-copy .btn { width: 100%; }
}

/* ---------- スクロールで出てくる ---------- */

.js .rv {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 1.1s var(--spring-soft);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js .rv.is-in { opacity: 1; transform: none; }

/* ---------- セクション共通 ---------- */

section { padding: 140px 0 0; }
section h2 {
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.045em;
}
.sub { max-width: 24em; margin-top: 18px; font-size: 17px; color: var(--text-2); }

@media (max-width: 640px) {
  section { padding-top: 96px; }
}

/* ---------- Product：何をしてくれるか ---------- */

/* 大きな文字の一段落。最初の一文（b）だけ墨、続きは薄く。切り替えは一回だけ */
.statement {
  max-width: 25em;
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.035em;
  color: var(--text-3);
  text-wrap: pretty;
}
.statement b { font-weight: inherit; color: var(--text); }

/* カードは絵と見出しと一文。絵は 3 枚で同じ言葉を使う：墨の小さな印＝エージェント、輪＝プロダクト、青＝入れた */
.points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 64px;
}
.point {
  padding: 28px 28px 32px;
  border-radius: 20px;
  background: var(--subtle);
}
.point h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
.point p { margin-top: 8px; font-size: 15px; color: var(--text-2); }

/* カードの絵の場所（絵はまだ。大きさだけ取っておく） */
.obj { width: 224px; height: 148px; margin: 0 auto 20px; }
svg.obj { display: block; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* 1 枚目：ExploitBench のような図をイメージで。うちだけ青く高く上がり、ほかは下で少しだけか 0 のまま（数字は事実に合わせていない） */
.obj-bench .grid { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 2 3; }
.obj-bench .axis { stroke: var(--line-2); stroke-width: 1; }
.obj-bench .low { stroke: #c4c5cb; stroke-width: 1.5; }
.obj-bench .low-dot { fill: #c4c5cb; }
.obj-bench .ours { stroke: var(--blue); stroke-width: 1.75; }
.obj-bench .ours-dot { fill: var(--blue); }

/* 2 枚目：動いているサービスの線。右端が「いま」で、後半の青がエージェントの入っている所 */
.obj-live .grid { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 2 3; }
.obj-live .axis { stroke: var(--line-2); stroke-width: 1; }
.obj-live .line { stroke: #c4c5cb; stroke-width: 1.75; }
.obj-live .line-on { stroke: var(--blue); stroke-width: 1.75; }
.obj-live .now-ring { fill: rgb(42 91 255 / 0.1); }
.obj-live .now { fill: var(--blue); }

/* 3 枚目：点と線の地図。外（墨の点）から奥（右）までの一本だけ青い */
.obj-path .edge { stroke: var(--line-2); stroke-width: 1; }
.obj-path .route { stroke: var(--blue); stroke-width: 1.75; }
.obj-path circle { stroke: var(--subtle); stroke-width: 2; paint-order: stroke; }
.obj-path .node { fill: #c4c5cb; }
.obj-path .hop { fill: var(--blue); }
.obj-path .entry { fill: var(--text); }
.obj-path .target-ring { fill: rgb(42 91 255 / 0.1); stroke: none; }
.obj-path .target { fill: var(--blue); }

/* カードに触れたら、青い所だけ描き直す。線が伸びきったところで、先の点が出る。灰色の所と、カードそのものは動かさない */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .point:hover :is(.ours, .line-on, .route) { stroke-dasharray: 1; animation: obj-draw 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }
  .point:hover :is(.ours-dot, .now, .now-ring, .hop, .target, .target-ring) {
    transform-box: fill-box;
    transform-origin: center;
    animation: obj-pop 0.5s var(--spring) 0.55s both;
  }
}
@keyframes obj-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes obj-pop { from { opacity: 0; transform: scale(0.4); } }


@media (max-width: 900px) {
  .points { grid-template-columns: 1fr; margin-top: 40px; }
}
@media (max-width: 640px) {
  .obj { width: 194px; height: 128px; margin-bottom: 16px; }
}

/* ---------- Proof：強さを数字で ---------- */

/* 見出しは左、説明は右に置いて下をそろえる。その下に、箱に入れない横いっぱいのグラフ */
.proof-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; }
.proof-head .sub { flex: 0 1 26em; margin-top: 0; }
.chart { --h: 260px; margin: 64px 0 0; }
.chart-title { font-size: 14px; font-weight: 500; color: var(--text-2); }
.chart-body { position: relative; margin-top: 24px; padding-left: 44px; }
/* 目盛りの線。棒と同じく 16% を上端として置く */
.chart-grid { position: absolute; left: 0; right: 0; top: 0; height: calc(var(--h) + 40px); pointer-events: none; }
.chart-grid span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--t) / 16 * var(--h));
  border-top: 1px dashed var(--line);
  font-size: 12px;
  line-height: 0;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
/* 1 本の棒に、値・棒・名前をまとめる。広い画面では縦の棒、狭い画面では横の棒にする */
.bars { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 24px; list-style: none; }
.bars::before { content: ""; position: absolute; left: 0; right: 0; top: calc(var(--h) + 40px); border-top: 1px solid var(--line-2); }
.bar { display: flex; flex-direction: column; align-items: center; }
.bar-plot { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; width: 100%; height: calc(var(--h) + 40px); }
.bar-val { margin-bottom: 12px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--text-3); font-variant-numeric: tabular-nums; }
/* 0 付近の棒も、細い線として見えるようにする */
.bar-fill { width: 100%; max-width: 120px; height: calc(var(--v) / 16 * var(--h)); min-height: 3px; border-radius: 12px 12px 2px 2px; background: #e1e2e6; transform-origin: bottom; }
.bar-name { margin-top: 14px; font-size: 14px; line-height: 1.35; text-align: center; color: var(--text-3); }
.bar.ref .bar-fill { background: #8d8e95; }
.bar.ref .bar-val, .bar.ref .bar-name { color: var(--text-2); }
.bar.ours .bar-fill { background: var(--signal); }
.bar.ours .bar-val, .bar.ours .bar-name { color: var(--text); }
.bar.ours .bar-name { font-weight: 600; }
.bar-name small { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--text-2); }
.chart-note { margin-top: 28px; font-size: 12px; color: var(--text-3); }

/* 見えたら、左から順に棒が伸びる */
.js .chart .bar-fill { transform: scaleY(0); transition: transform 1.1s var(--spring-soft); transition-delay: calc(var(--i) * 90ms + 250ms); }
.js .chart .bar-val { opacity: 0; transition: opacity 0.5s ease; transition-delay: calc(var(--i) * 90ms + 700ms); }
.js .chart.is-in .bar-fill { transform: none; }
.js .chart.is-in .bar-val { opacity: 1; }

@media (max-width: 900px) {
  .proof-head { display: block; }
  .proof-head .sub { margin-top: 18px; }
  .chart { --h: 200px; margin-top: 48px; }
  .bars { column-gap: 12px; }
}
/* 狭い画面では、名前を左に置いた横の棒。左の縦線が足もと */
@media (max-width: 600px) {
  .chart-grid, .bars::before { display: none; }
  .chart-body { padding-left: 0; }
  .bars { grid-template-columns: 1fr; }
  .bar { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); }
  .bar-name { grid-column: 1; grid-row: 1; align-self: center; margin: 0; padding-right: 12px; font-size: 13px; text-align: left; }
  .bar-plot { grid-column: 2; grid-row: 1; flex-direction: row; justify-content: flex-start; height: auto; padding: 7px 0; border-left: 1px solid var(--line-2); }
  .bar-fill { width: calc(var(--v) / 16 * (100% - 3.5em)); max-width: none; height: 28px; min-width: 3px; min-height: 0; border-radius: 2px 8px 8px 2px; transform-origin: left; }
  .bar-val { order: 1; margin: 0 0 0 10px; font-size: 14px; }
  .js .chart .bar-fill { transform: scaleX(0); }
}

/* ---------- Safety：本番に入れても大丈夫か ---------- */

.promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; margin-top: 56px; }
.promises li { padding-top: 24px; border-top: 1px solid var(--text); }
.promises h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.025em; }
.promises p { margin-top: 10px; font-size: 15.5px; color: var(--text-2); }
.qa-title { font-size: 20px; font-weight: 600; letter-spacing: -0.025em; }

@media (max-width: 900px) {
  .promises { grid-template-columns: 1fr; gap: 32px; margin-top: 40px; }
  .qa { margin-top: 64px; }
}
/* 見出しは左、問いは右に開閉で並べる */
.qa {
  display: grid;
  margin-top: 96px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 64px;
}
.qa-list details { border-bottom: 1px solid var(--line); }
.qa-list details:first-child { border-top: 1px solid var(--line); }
.qa-list details::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size 0.5s var(--spring-soft), content-visibility 0.5s allow-discrete;
}
.qa-list details[open]::details-content { block-size: auto; }
summary {
  position: relative;
  padding: 22px 44px 22px 0;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.015em;
  list-style: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
summary::-webkit-details-marker { display: none; }
summary::before, summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 12px;
  height: 1.5px;
  border-radius: 1px;
  background: var(--text-3);
  transition: transform 0.5s var(--spring);
}
summary::after { transform: rotate(90deg); }
details[open] summary::after { transform: rotate(0); }
details[open] summary::before { transform: rotate(180deg); }
.qa-list p { padding: 0 44px 24px 0; font-size: 15.5px; color: var(--text-2); }

@media (max-width: 760px) {
  .qa { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Pricing ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.plan {
  display: flex;
  flex-direction: column;
  padding: 36px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-card);
}
.plan-name { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }
.plan-amount {
  margin-top: 18px;
  font-size: 56px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
}
.plan-amount small { margin-left: 8px; font-size: 16px; font-weight: 500; letter-spacing: -0.01em; color: var(--text-3); }
.plan-desc { margin-top: 16px; max-width: 22em; font-size: 15px; color: var(--text-2); }
.plan ul { margin-top: 28px; }
.plan li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.plan li span { color: var(--text-2); }
.plan li b { font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.plan-note { margin-top: 18px; margin-bottom: 36px; font-size: 13.5px; color: var(--text-3); }
.plan .btn { align-self: flex-start; margin-top: auto; }
.plan-dark .plan-desc { margin-bottom: 40px; }

.plan-dark {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(70% 80% at 105% 110%, rgb(42 91 255 / 0.62), transparent 70%),
    radial-gradient(50% 60% at 70% 120%, rgb(140 170 255 / 0.32), transparent 70%),
    radial-gradient(130% 90% at 0% 0%, #2a2a30, #0a0a0b 62%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.1), 0 24px 48px -24px rgb(10 10 11 / 0.55);
}
/* グレイン */
.plan-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.22;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.plan-dark > * { position: relative; }
.plan-dark .plan-desc { color: rgb(255 255 255 / 0.62); }

@media (max-width: 760px) {
  .plans { grid-template-columns: 1fr; }
  .plan { padding: 28px; }
  .plan-amount { font-size: 48px; }
}

/* ---------- Start ---------- */

#start { padding-bottom: 140px; }
/* 左は見出しと流れ、右はフォーム。左の流れの下端を、送信ボタンの行にそろえる */
.start {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 72px;
}
.start > .rv:first-child { display: flex; flex-direction: column; }
.start .steps { margin-top: auto; padding-top: 40px; }
/* 申し込みのあとの流れ。番号は飾りにせず、本文と同じ書体で小さく */
.steps { max-width: 26em; }
.steps li { display: flex; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 16px; color: var(--text); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps span { width: 1em; color: var(--text-3); font-variant-numeric: tabular-nums; }

/* 料金のカードの直後なので、フォームは箱に入れず、ページの上に直接置く */
.form { padding-top: 6px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 7px; font-size: 13.5px; font-weight: 500; }
.opt { margin-left: 4px; font-weight: 400; color: var(--text-3); }
.form input, .form textarea {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line-2), 0 1px 2px rgb(10 10 11 / 0.04);
  color: var(--text);
  font: 15px/1.5 var(--sans);
  transition: box-shadow 0.2s;
}
.form textarea { height: auto; min-height: 104px; padding: 11px 14px; resize: vertical; }
.form input::placeholder { color: #aaabb1; }
.form input:hover, .form textarea:hover { box-shadow: inset 0 0 0 1px #c4c4cc, 0 1px 2px rgb(10 10 11 / 0.04); }
.form input:focus, .form textarea:focus { outline: none; box-shadow: inset 0 0 0 1px var(--blue), 0 0 0 4px rgb(42 91 255 / 0.14); }
.form [aria-invalid="true"] { box-shadow: inset 0 0 0 1px var(--red), 0 0 0 4px rgb(212 42 31 / 0.1); animation: shake 0.4s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
/* 何の連絡か。丸は入力欄と同じ線で描き、選ぶと墨で塗って中に白い点 */
.topic { min-width: 0; margin: 0 0 22px; padding: 0; border: 0; }
.topic legend { margin-bottom: 10px; padding: 0; font-size: 13.5px; font-weight: 500; }
.choices { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.field .choice { display: inline-flex; align-items: center; gap: 9px; margin: 0; font-size: 15px; font-weight: 400; cursor: pointer; }
.form .choice input,
.form .choice input:focus {
  display: grid;
  place-content: center;
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  appearance: none;
  box-shadow: inset 0 0 0 1px var(--line-2), 0 1px 2px rgb(10 10 11 / 0.04);
  cursor: pointer;
}
.form .choice:hover input:not(:checked) { box-shadow: inset 0 0 0 1px #c4c4cc, 0 1px 2px rgb(10 10 11 / 0.04); }
.form .choice input::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  transform: scale(0);
  transition: transform 0.25s var(--spring-soft);
}
.form .choice input:checked { box-shadow: inset 0 0 0 9px var(--text); }
.form .choice input:checked::before { transform: scale(1); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { display: none; margin-bottom: 14px; font-size: 14px; color: var(--red); }
.form-msg.on { display: block; }
.form-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 4px; }
.form-foot small { font-size: 13px; color: var(--text-3); }
.form-done { display: none; }
.form-done h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.form-done p { margin-top: 6px; color: var(--text-2); }
.form.sent > :not(.form-done) { display: none; }
.form.sent .form-done { display: block; animation: rise 0.8s var(--spring-soft); }

@media (max-width: 900px) {
  .start { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 560px) {
  .row { grid-template-columns: 1fr; gap: 0; }
  .choices { flex-direction: column; gap: 12px; }
  .form-foot .btn { width: 100%; }
}

/* ---------- Privacy などの文書ページ ---------- */

.legal { padding: 168px 0 120px; }
.legal-in { max-width: 720px; }
.legal h1 { font-size: 48px; font-weight: 600; line-height: 1.05; letter-spacing: -0.04em; }
.legal .updated { margin-top: 14px; font-size: 14px; color: var(--text-3); }
.legal .updated + p { margin-top: 36px; color: var(--text); }
.legal h2 { margin-top: 44px; font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.legal p { margin-top: 10px; font-size: 16px; line-height: 1.7; color: var(--text-2); }
.legal p a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
@media (max-width: 560px) {
  .legal { padding: 128px 0 88px; }
  .legal h1 { font-size: 40px; }
}

/* ---------- Footer ---------- */

.foot { border-top: 1px solid var(--line); }
.foot-in {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-block: 32px;
  font-size: 13.5px;
  color: var(--text-3);
}
.foot .logo { font-size: 17px; color: var(--text); }
.foot-brand { display: flex; align-items: center; gap: 16px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-in a:not(.logo) { transition: color 0.2s; }
.foot-in a:not(.logo):hover { color: var(--text); }
@media (max-width: 560px) {
  .foot-in { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ---------- 日本語版（/ja/） ---------- */

/* Geist には和文の字がないので、和文はヒラギノ・Noto に任せる。欧文（Litmus、数字）は Geist のまま */
html:lang(ja) { --sans: "Geist", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif; }
html:lang(ja) body { line-height: 1.8; }
/* 和文は字間を詰めると窮屈になるので戻す。改行は文節の切れ目で */
html:lang(ja) :is(h1, h2, h3, .statement, .lead, .sub, .plan-desc, summary) { letter-spacing: 0; word-break: auto-phrase; }
html:lang(ja) .logo { letter-spacing: -0.04em; }
html:lang(ja) .hero h1 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.25; }
html:lang(ja) section h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.3; }
html:lang(ja) .statement { max-width: 30em; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.6; }
html:lang(ja) .legal h1 { font-size: 40px; letter-spacing: 0; }
html:lang(ja) .legal p { line-height: 1.9; }

@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 .rv { opacity: 1; transform: none; }
}
