/* ============================================================
   CueSync LP
   アプリ本体（src/app/globals.css）と同じデザイントークンを使う。
   LPとアプリで世界観を切らないため、色・タイポの定義はここに複製する。
   ※ アプリ側のトークンを変えたら、ここも合わせて更新すること。

   デザインの方針:
   - 舞台の暗転がベース。光は「差す」ものとして扱い、面で塗らない。
   - 数値・タイムコード・ラベルは等幅。現場の道具としての精度感を出す。
   - 実際のアプリ画面を主役に置き、装飾はその周りを照らすだけに留める。
   ============================================================ */

:root {
  --bg: #05080d;
  --bg-2: #070b11;
  --surface: #0d141d;
  --surface-2: #121b26;
  --surface-3: #16202c;
  --line: #1e2a38;
  --line-soft: #172230;

  --ink: #e9eef5;
  --ink-muted: #94a3b5;
  --ink-faint: #63717f;

  --accent: #22d3ee;
  --accent-strong: #06b6d4;
  --accent-ink: #04202a;

  --magenta: #ec4899;
  --amber: #f59e0b;
  --ok: #34d399;
  --danger: #f472b6;

  --maxw: 1200px;
  --radius: 16px;
  --radius-sm: 11px;

  --font-sans: "Noto Sans JP", ui-sans-serif, system-ui, -apple-system, "Hiragino Kaku Gothic ProN",
    "Yu Gothic", Meiryo, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* 画面外の読み上げ用 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------- スクロールで現れる ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal[data-delay="1"] {
  transition-delay: 0.08s;
}
.reveal[data-delay="2"] {
  transition-delay: 0.16s;
}
.reveal[data-delay="3"] {
  transition-delay: 0.24s;
}
.reveal[data-delay="4"] {
  transition-delay: 0.32s;
}

/* ============================================================
   ヘッダー
   ============================================================ */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(5, 8, 13, 0.86);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: rgba(30, 42, 56, 0.9);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 76px;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.015em;
  text-decoration: none;
  flex-shrink: 0;
}
.logo svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  transform: translateY(2px);
  filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.6));
}
.logo .sync {
  color: var(--accent);
}
.logo-sub {
  font-size: 11px;
  color: var(--ink-faint);
  font-weight: 400;
  letter-spacing: 0.08em;
}

.nav {
  display: flex;
  gap: 2px;
  margin-left: auto;
}
.nav a {
  position: relative;
  padding: 9px 15px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.18s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 3px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav a:hover {
  color: var(--ink);
}
.nav a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
}

/* ---------------- ボタン ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 24px;
  border-radius: 11px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.12s, box-shadow 0.25s;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.5);
}
.btn-primary:hover {
  background: #3ddcf3;
  box-shadow: 0 8px 30px -6px rgba(34, 211, 238, 0.55);
}
.btn-outline {
  border-color: rgba(233, 238, 245, 0.22);
  color: var(--ink);
  backdrop-filter: blur(6px);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-sm {
  min-height: 40px;
  padding: 9px 18px;
  font-size: 13px;
}

/* ============================================================
   ヒーロー
   ============================================================ */

.hero {
  position: relative;
  padding: 152px 0 0;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--bg);
  overflow: hidden;
}
/* 写真を少し拡大して右へずらし、オペレーターの横顔が
   見出しの右隣（本文とパネルの間）に来るようにする */
.hero-bg img {
  width: 128%;
  height: 100%;
  object-fit: cover;
  object-position: center 44%;
  margin-left: 7%;
}
/* 暗幕。左は文字が乗るので濃く、中央はオペレーターが見える程度に薄く、
   右は斜めのパネルが乗るのでもう一度落とす */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      95deg,
      rgba(5, 8, 13, 0.97) 0%,
      rgba(5, 8, 13, 0.9) 18%,
      rgba(5, 8, 13, 0.62) 34%,
      rgba(5, 8, 13, 0.52) 46%,
      rgba(5, 8, 13, 0.74) 62%,
      rgba(5, 8, 13, 0.9) 100%
    ),
    linear-gradient(to top, var(--bg) 1%, rgba(5, 8, 13, 0) 30%),
    linear-gradient(to bottom, rgba(5, 8, 13, 0.85) 0%, rgba(5, 8, 13, 0) 18%);
}

/* 舞台の光。上から差す1本のビーム */
.hero-beam {
  position: absolute;
  top: -12%;
  left: 46%;
  width: 42vw;
  height: 90%;
  z-index: -1;
  background: conic-gradient(
    from 178deg at 50% 0%,
    transparent 0deg,
    rgba(34, 211, 238, 0.13) 6deg,
    rgba(34, 211, 238, 0.02) 13deg,
    transparent 20deg
  );
  filter: blur(6px);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 530px) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  min-height: 540px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  border: 1px solid rgba(34, 211, 238, 0.3);
  background: rgba(34, 211, 238, 0.08);
  color: var(--accent);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.hero h1 {
  margin: 26px 0 0;
  font-size: clamp(34px, 3.7vw, 56px);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.85);
}
.hero h1 .accent {
  color: var(--accent);
  text-shadow: 0 0 44px rgba(34, 211, 238, 0.45);
}

.hero-lead {
  margin: 26px 0 0;
  font-size: 15px;
  line-height: 2.05;
  color: #c6d2e0;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.9);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-sublinks {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 24px;
}
.hero-sublinks a {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: gap 0.2s var(--ease);
}
.hero-sublinks a:hover {
  gap: 12px;
}

.hero-tagline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 46px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.hero-tagline svg {
  color: var(--accent);
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.7));
}
.hero-tagline b {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
}
.hero-tagline span {
  display: block;
  font-size: 11.5px;
  color: var(--ink-muted);
}

/* ---- 斜めにはめ込んだアプリ画面 ---- */

.hero-stage {
  position: relative;
  perspective: 1500px;
  perspective-origin: 20% 50%;
  min-height: 500px;
  padding-bottom: 74px;
}

.hero-panel {
  position: relative;
  width: 120%;
  max-width: none;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.2);
  background: var(--surface);
  transform: rotateY(-21deg) rotateX(5deg) rotateZ(1.4deg) translateZ(0);
  transform-origin: left center;
  box-shadow:
    0 60px 120px -30px rgba(0, 0, 0, 0.92),
    0 0 90px -20px rgba(34, 211, 238, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.9s var(--ease);
}
/* アプリ画面の上部クロームを隠し、Qシート部分だけを見せる */
/* アプリ画面の上部クロームと右の編集パネルを切り落とし、Qシート本体だけを見せる */
.hero-panel .crop {
  overflow: hidden;
  aspect-ratio: 1020 / 600;
}
.hero-panel .crop img {
  width: 137%;
  margin-top: -12.5%;
  margin-left: 0;
}
/* ガラスの映り込み */
.hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(112deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0) 34%);
  pointer-events: none;
}

/* パネルに重ねる小さなカード（アプリの部品をそのまま抜き出したもの） */
.float-card {
  position: absolute;
  z-index: 3;
  width: 206px;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid rgba(34, 211, 238, 0.16);
  background: rgba(13, 20, 29, 0.93);
  backdrop-filter: blur(14px);
  box-shadow: 0 26px 50px -18px rgba(0, 0, 0, 0.9);
  animation: floaty 7s ease-in-out infinite;
}
.float-card:nth-of-type(2) {
  animation-delay: -2.4s;
}
.float-card:nth-of-type(3) {
  animation-delay: -4.6s;
}
@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}
.float-card .fc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-muted);
  margin-bottom: 9px;
}
.fc-ok {
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.16);
  color: var(--ok);
  font-size: 9px;
}
.fc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.fc-chip {
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 9.5px;
  color: var(--ink-muted);
}
.fc-chip.on {
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(34, 211, 238, 0.12);
  color: var(--accent);
}
.fc-dots {
  display: flex;
  gap: 5px;
  margin-bottom: 8px;
}
.fc-dot {
  width: 13px;
  height: 13px;
  border-radius: 999px;
}
.fc-comment {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.fc-avatar {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--surface-3);
  flex-shrink: 0;
}
.fc-comment p {
  margin: 0;
  font-size: 9.5px;
  line-height: 1.65;
  color: var(--ink-muted);
}
.fc-comment b {
  display: block;
  font-size: 9.5px;
  color: var(--ink);
}
.fc-files {
  display: flex;
  gap: 6px;
}
.fc-file {
  flex: 1;
  padding: 7px 4px;
  border-radius: 7px;
  border: 1px solid var(--line);
  text-align: center;
  font-size: 9px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
}

.fc-1 {
  left: -14%;
  bottom: 4px;
}
.fc-2 {
  left: 19%;
  bottom: 46px;
}
.fc-3 {
  left: 55%;
  bottom: -8px;
}

/* ---------------- 特徴バー ---------------- */

.feature-bar {
  position: relative;
  z-index: 2;
  margin-top: 64px;
  border-top: 1px solid rgba(30, 42, 56, 0.8);
  background: linear-gradient(180deg, rgba(5, 8, 13, 0.6), var(--bg));
  backdrop-filter: blur(10px);
}
.feature-bar ul {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}
.feature-bar li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 26px 20px;
  border-left: 1px solid rgba(30, 42, 56, 0.7);
  min-width: 0;
}
.feature-bar li:first-child {
  border-left: 0;
}
.feature-bar svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.9;
}
.feature-bar b {
  display: block;
  font-size: 12px;
  letter-spacing: -0.01em;
  line-height: 1.5;
  margin-bottom: 3px;
}
.feature-bar span {
  font-size: 11px;
  color: var(--ink-faint);
  line-height: 1.6;
}

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

.section {
  position: relative;
  padding: 116px 0;
}
.section-alt {
  background:
    radial-gradient(70rem 34rem at 50% 0%, rgba(34, 211, 238, 0.055), transparent 62%),
    linear-gradient(180deg, rgba(13, 20, 29, 0.55), rgba(5, 8, 13, 0));
}
/* セクションの上端に走る細い光 */
.section-alt::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.5), transparent);
}

.section-head {
  max-width: 760px;
  margin-bottom: 56px;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.section-label::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.section-head.center .section-label::after {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(27px, 3.5vw, 42px);
  line-height: 1.42;
  font-weight: 700;
  letter-spacing: -0.022em;
}
.section-head p {
  margin: 22px 0 0;
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 2.05;
}

/* ============================================================
   数字のバンド
   ============================================================ */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  padding: 28px 26px;
  background: var(--bg-2);
}
.stat p {
  margin: 0;
}
.stat .v {
  font-family: var(--font-mono);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.stat .v small {
  font-size: 0.5em;
  color: var(--ink-muted);
  margin-left: 3px;
}
.stat .k {
  margin-top: 12px !important;
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.75;
}
.stat.hl .v {
  color: var(--accent);
}

/* ============================================================
   課題
   ============================================================ */

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(198px, 1fr));
  gap: 16px;
}
.problem {
  position: relative;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), rgba(13, 20, 29, 0.45));
  padding: 28px 24px 26px;
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.problem:hover {
  border-color: rgba(244, 114, 182, 0.35);
  transform: translateY(-3px);
}
.problem::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--danger), transparent);
  opacity: 0.5;
}
.problem .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--danger);
  font-weight: 700;
  letter-spacing: 0.1em;
}
.problem h3 {
  margin: 13px 0 11px;
  font-size: 16.5px;
  letter-spacing: -0.01em;
}
.problem p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.95;
}

.quote {
  margin: 44px 0 0;
  padding: 28px 32px;
  border: 1px solid rgba(244, 114, 182, 0.2);
  border-left: 3px solid var(--danger);
  background: linear-gradient(100deg, rgba(244, 114, 182, 0.08), rgba(244, 114, 182, 0));
  border-radius: 0 var(--radius) var(--radius) 0;
  color: #e2cede;
  font-size: 16px;
  font-weight: 500;
}
.quote cite {
  display: block;
  margin-top: 12px;
  font-size: 11.5px;
  color: var(--ink-faint);
  font-style: normal;
}

/* ============================================================
   As-Is → To-Be
   ============================================================ */

.tobe {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.tobe table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.tobe thead th {
  padding: 16px 22px;
  text-align: left;
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  background: var(--surface);
  border-bottom: 1px solid var(--line-soft);
  font-weight: 700;
}
.tobe thead th:nth-child(3) {
  color: var(--accent);
}
.tobe td {
  padding: 18px 22px;
  border-bottom: 1px solid rgba(23, 34, 48, 0.7);
  vertical-align: top;
  line-height: 1.85;
}
.tobe tr:last-child td {
  border-bottom: 0;
}
.tobe tbody tr:hover td {
  background: rgba(18, 27, 38, 0.5);
}
.tobe .step {
  width: 22%;
  font-weight: 700;
  color: var(--ink);
}
.tobe .as {
  width: 36%;
  color: var(--ink-faint);
}
.tobe .to {
  color: var(--ink-muted);
}
.tobe .to b {
  color: var(--accent);
  font-weight: 600;
}

/* ============================================================
   仕組み
   ============================================================ */

.flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
}
.flow-card {
  position: relative;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), rgba(13, 20, 29, 0.4));
  padding: 32px 26px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.flow-card:hover {
  border-color: rgba(34, 211, 238, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -22px rgba(34, 211, 238, 0.35);
}
.flow-card .idx {
  position: absolute;
  top: 22px;
  right: 24px;
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 700;
  color: rgba(233, 238, 245, 0.06);
  line-height: 1;
}
.flow-card .role {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(34, 211, 238, 0.1);
}
.flow-card h3 {
  margin: 15px 0 13px;
  font-size: 18px;
  letter-spacing: -0.015em;
}
.flow-card p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.95;
}

.sot {
  margin-top: 24px;
  padding: 34px 30px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: var(--radius);
  text-align: center;
  background:
    radial-gradient(40rem 14rem at 50% 0%, rgba(34, 211, 238, 0.1), transparent 70%),
    var(--surface);
}
.sot .k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
}
.sot h3 {
  margin: 12px 0 0;
  font-size: clamp(18px, 2.2vw, 23px);
  letter-spacing: -0.015em;
}
.sot p {
  margin: 12px auto 0;
  max-width: 640px;
  font-size: 13.5px;
  color: var(--ink-muted);
}

/* ============================================================
   機能
   ============================================================ */

.feature {
  display: grid;
  /* スクリーンショット側を常に広い列に置く（reverse 行は order で入れ替わる） */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr);
  gap: 56px;
  align-items: center;
  padding: 72px 0;
  border-top: 1px solid var(--line-soft);
}
.feature:first-of-type {
  border-top: 0;
  padding-top: 24px;
}
.feature.reverse {
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
}
.feature.reverse .feature-text {
  order: 2;
}

.feature-no {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
  display: block;
  margin-bottom: 14px;
}
.feature-text h3 {
  margin: 0 0 18px;
  font-size: clamp(21px, 2.5vw, 29px);
  line-height: 1.52;
  letter-spacing: -0.02em;
}
.feature-text p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 2.05;
}
.feature-text ul {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.feature-text li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 11px;
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.8;
}
.feature-text li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.9);
}

/* 機能側のスクリーンショットも軽く傾ける */
.shot {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 60px -28px rgba(34, 211, 238, 0.34);
  transform: perspective(1600px) rotateY(-6deg) rotateX(2deg);
  transition: transform 0.7s var(--ease);
}
.feature.reverse .shot {
  transform: perspective(1600px) rotateY(6deg) rotateX(2deg);
}
.feature:hover .shot {
  transform: perspective(1600px) rotateY(0deg) rotateX(0deg);
}
.shot figcaption {
  padding: 11px 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 11px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  background: var(--surface);
}

/* ============================================================
   コンソール
   ============================================================ */

.console-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
  gap: 18px;
}
.console {
  position: relative;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), rgba(13, 20, 29, 0.4));
  padding: 26px 24px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.console:hover {
  border-color: rgba(34, 211, 238, 0.35);
  transform: translateY(-3px);
}
.console .status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  padding: 4px 9px;
  border-radius: 6px;
  margin-bottom: 15px;
}
.console .status.live {
  color: var(--ok);
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.28);
}
.console .status.dev {
  color: var(--ink-faint);
  background: rgba(99, 113, 127, 0.1);
  border: 1px solid rgba(99, 113, 127, 0.28);
}
.console h3 {
  margin: 0 0 6px;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.console .fmt {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.console p {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: var(--ink-muted);
  line-height: 1.95;
}

.note {
  margin-top: 32px;
  padding: 22px 26px;
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: linear-gradient(100deg, rgba(245, 158, 11, 0.06), transparent);
  font-size: 12.5px;
  color: var(--ink-muted);
  line-height: 2;
}
.note b {
  color: var(--ink);
}

/* ============================================================
   料金
   ============================================================ */

.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.plan {
  position: relative;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), rgba(13, 20, 29, 0.4));
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.plan:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.3);
}
.plan.featured {
  border-color: rgba(34, 211, 238, 0.45);
  background:
    radial-gradient(30rem 12rem at 50% 0%, rgba(34, 211, 238, 0.12), transparent 70%),
    linear-gradient(180deg, var(--surface), rgba(13, 20, 29, 0.4));
  box-shadow: 0 26px 60px -30px rgba(34, 211, 238, 0.5);
}
.plan .tag {
  position: absolute;
  top: -1px;
  right: 20px;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 0 0 7px 7px;
  background: var(--accent);
  color: var(--accent-ink);
}
.plan h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.plan .for {
  margin: 7px 0 20px;
  font-size: 11.5px;
  color: var(--ink-faint);
}
.plan .price {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  color: var(--accent);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-soft);
  letter-spacing: -0.01em;
}
.plan ul {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
  color: var(--ink-muted);
  flex: 1;
}
.plan li {
  padding: 8px 0;
  border-bottom: 1px dashed rgba(30, 42, 56, 0.6);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.plan li:last-child {
  border-bottom: 0;
}
.plan li b {
  color: var(--ink);
  font-weight: 600;
  text-align: right;
}

/* ============================================================
   FAQ
   ============================================================ */

.faq {
  max-width: 840px;
  margin-inline: auto;
}
.faq details {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.25s var(--ease);
}
.faq details[open] {
  border-color: rgba(34, 211, 238, 0.28);
}
.faq summary {
  padding: 22px 26px;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: color 0.2s;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::before {
  content: "Q";
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 13px;
  flex-shrink: 0;
}
.faq summary::after {
  content: "+";
  margin-left: auto;
  font-size: 19px;
  color: var(--ink-faint);
  font-weight: 400;
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
  color: var(--accent);
}
.faq summary:hover {
  color: var(--accent);
}
.faq .a {
  padding: 4px 26px 26px 54px;
  font-size: 13.5px;
  color: var(--ink-muted);
  line-height: 2.1;
}

/* ============================================================
   事前登録
   ============================================================ */

.signup {
  position: relative;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 22px;
  background:
    radial-gradient(56rem 26rem at 18% -18%, rgba(34, 211, 238, 0.14), transparent 62%),
    radial-gradient(40rem 22rem at 96% 110%, rgba(236, 72, 153, 0.08), transparent 60%),
    var(--surface);
  padding: clamp(34px, 5vw, 60px);
  overflow: hidden;
}
.signup::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.7), transparent);
}
.signup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.signup h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.5;
  letter-spacing: -0.02em;
}
.signup .lead {
  margin: 20px 0 0;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 2.05;
}
.signup-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--ink-muted);
}
.signup-list li {
  padding-left: 26px;
  position: relative;
  margin-bottom: 10px;
}
.signup-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.field {
  display: block;
  margin-bottom: 17px;
}
.field span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.field .req {
  color: var(--danger);
  font-size: 10px;
  margin-left: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.8;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.14);
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  margin: 16px 0 0;
  font-size: 11px;
  color: var(--ink-faint);
  line-height: 1.85;
}
.form-msg {
  margin: 0 0 20px;
  padding: 14px 17px;
  border-radius: var(--radius-sm);
  font-size: 13px;
}
.form-msg.ok {
  border: 1px solid rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.1);
  color: var(--ok);
}
.form-msg.ng {
  border: 1px solid rgba(244, 114, 182, 0.3);
  background: rgba(244, 114, 182, 0.1);
  color: var(--danger);
}

/* ============================================================
   フッター
   ============================================================ */

.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 52px 0 64px;
  margin-top: 52px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.site-footer p {
  margin: 0;
  font-size: 11px;
  color: var(--ink-faint);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 11.5px;
}
.footer-links a {
  color: var(--ink-faint);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--accent);
}

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

@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
    gap: 24px;
  }
  .hero-panel {
    width: 140%;
  }
  .float-card {
    width: 190px;
  }
  .fc-3 {
    display: none;
  }
}

@media (max-width: 900px) {
  .nav {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    gap: 0;
    padding: 12px 20px 24px;
    background: rgba(5, 8, 13, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line-soft);
    display: none;
  }
  .nav.open {
    display: flex;
  }
  .nav a {
    padding: 15px 10px;
    font-size: 15px;
    border-bottom: 1px solid rgba(23, 34, 48, 0.7);
  }
  .nav a::after {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    font-size: 17px;
  }
  .header-cta {
    display: none;
  }

  .hero {
    padding-top: 116px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 48px;
  }
  .hero-bg img {
    width: 100%;
    margin-left: 0;
    object-position: 46% 34%;
  }
  .hero-bg::after {
    background:
      linear-gradient(180deg, rgba(5, 8, 13, 0.92) 0%, rgba(5, 8, 13, 0.6) 40%, rgba(5, 8, 13, 0.95) 88%),
      linear-gradient(to top, var(--bg) 2%, rgba(5, 8, 13, 0) 24%);
  }
  .hero-beam {
    display: none;
  }
  .hero-stage {
    perspective: none;
    min-height: 0;
  }
  .hero-panel {
    width: 100%;
    transform: none;
  }
  .hero-panel .crop {
    aspect-ratio: 1400 / 560;
  }
  .float-card {
    display: none;
  }
  .hero-tagline {
    margin-top: 34px;
  }

  .feature-bar ul {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-bar li {
    border-left: 0;
    border-top: 1px solid rgba(30, 42, 56, 0.7);
    padding: 20px 16px;
  }
  .feature-bar li:nth-child(2n) {
    border-left: 1px solid rgba(30, 42, 56, 0.7);
  }
  .feature-bar li:first-child {
    border-top: 0;
  }
  .feature-bar li:nth-child(2) {
    border-top: 0;
  }

  .section {
    padding: 76px 0;
  }
  .stats,
  .flow,
  .plans {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 52px 0;
  }
  .feature.reverse .feature-text {
    order: 0;
  }
  .shot,
  .feature.reverse .shot {
    transform: none;
  }
  .signup-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  /* 表は横スクロールで見せる */
  .tobe {
    overflow-x: auto;
  }
  .tobe table {
    min-width: 640px;
  }
}

@media (max-width: 560px) {
  .stats,
  .plans {
    grid-template-columns: 1fr;
  }
  .flow {
    grid-template-columns: 1fr;
  }
  .quote {
    padding: 22px 20px;
    font-size: 14.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
