/* ============================================================
   CAEPIPE 3D+ — Landing Page Styles
   Theme: NST Lattice (CAE Design System)
   Palette source: design_system/theme.css (OKLCH tokens)
   ============================================================ */

:root {
  /* --- Surface / Background tokens --- */
  --bg: oklch(0.978 0.006 245);          /* Drafting White */
  --bg-paper: oklch(1 0 0);               /* Card surface */
  --bg-deep: oklch(0.354 0.098 238);      /* NST Deep Navy — hero/dark sections */
  --bg-deep-2: oklch(0.245 0.015 257);    /* NST Dark Charcoal — footer */
  --bg-mute: oklch(0.927 0.014 245);      /* Blueprint Mist */

  /* --- Text (Ink) tokens --- */
  --ink: oklch(0.245 0.015 257);          /* Dark Charcoal — heading */
  --ink-2: oklch(0.354 0.098 238);        /* Deep Navy — strong body */
  --ink-3: oklch(0.575 0.030 250);        /* Graphite Grid — secondary */
  --ink-4: oklch(0.720 0.020 250);        /* Muted label */

  /* --- Border / Divider --- */
  --line: oklch(0.880 0.012 245);
  --line-2: oklch(0.830 0.018 245);
  --line-deep: rgba(255, 255, 255, 0.14);

  /* --- Primary (NST Corporate Blue) — structural accents, links, eyebrow line, data dots --- */
  --primary: oklch(0.536 0.138 238);      /* #007FB1 */
  --primary-deep: oklch(0.354 0.098 238); /* #004C68 NST Deep Navy */
  --primary-soft: oklch(0.927 0.014 245); /* Blueprint Mist */

  /* --- Accent (Stress Amber) — CTA buttons & data emphasis only --- */
  --accent: oklch(0.700 0.150 50);        /* #E37820 */
  --accent-deep: oklch(0.620 0.165 45);
  --accent-soft: oklch(0.950 0.030 60);

  --steel: oklch(0.575 0.030 250);
  --ok: oklch(0.620 0.130 145);           /* success green */
  --warn: oklch(0.700 0.150 50);          /* warning amber */

  --radius: 6px;

  --shadow-sm: 0 1px 2px rgba(11, 35, 63, 0.05), 0 1px 1px rgba(11, 35, 63, 0.03);
  --shadow-md: 0 4px 16px -4px rgba(11, 35, 63, 0.10), 0 2px 4px rgba(11, 35, 63, 0.05);
  --shadow-lg: 0 24px 48px -16px rgba(11, 35, 63, 0.20), 0 8px 16px -8px rgba(11, 35, 63, 0.10);

  --font-jp: "Inter", "Noto Sans JP", "Hiragino Kaku Gothic ProN", -apple-system, BlinkMacSystemFont, "Segoe UI", "Yu Gothic", Meiryo, sans-serif;
  --font-en: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Inter", "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;

  --container: 1240px;
  --container-narrow: 1080px;
  --pad-x: clamp(20px, 4vw, 56px);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-jp);
  font-feature-settings: "palt" 1;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

/* ---------- Typography helpers ---------- */
.en { font-family: var(--font-en); letter-spacing: -0.01em; }
.mono { font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace; }

/* Responsive line break: visible on PC/tablet, hidden on smartphones */
.br-pc { display: none; }
@media (min-width: 881px) {
  .br-pc { display: inline; }
}

.eyebrow {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
}

h2.section-title {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
}

.section-lead {
  font-size: clamp(15px, 1.2vw, 17px);
  color: var(--ink-3);
  max-width: 720px;
  line-height: 1.85;
}

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--pad-x); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding-inline: var(--pad-x); }

section { padding-block: clamp(72px, 9vw, 120px); }

.section-header { margin-bottom: clamp(40px, 5vw, 64px); max-width: 880px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(244, 247, 251, 0.86); /* Drafting White */
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--pad-x);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-en);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-img {
  display: block;
  width: auto;
  height: 30px;
  max-width: 220px;
  object-fit: contain;
}
@media (max-width: 980px) {
  .brand-img { height: 26px; }
}
.footer .brand {
  display: inline-flex;
  align-items: center;
  background: #fff;
  padding: 10px 16px;
  border-radius: var(--radius);
}
.footer .brand-img { height: 32px; max-width: 240px; }
.brand-mark {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  border-radius: var(--radius);
  position: relative;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.brand-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.22), transparent);
  pointer-events: none;
}
.brand-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  gap: 2px;
}
.brand-meta .brand-name { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; }
.brand-meta .brand-sub {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.footer .brand-meta .brand-sub { color: rgba(255,255,255,0.5); }
.brand-mark::after {
  content: "";
  position: absolute;
  inset: auto -4px -4px auto;
  width: 8px; height: 8px;
  background: var(--primary);
}
.brand-name { font-size: 16px; }
.brand-name .plus { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}
.nav-links a:hover { color: var(--primary); }
.nav-cta {
  display: flex;
  gap: 12px;
  align-items: center;
}
@media (max-width: 880px) {
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  .nav-inner { gap: 8px; }
  .brand-img { height: 22px; max-width: 160px; }
  .nav-cta { gap: 6px; }
  .nav-cta .btn-ghost { display: none; }
  .nav-cta .btn-primary { padding: 8px 12px; font-size: 12px; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-family: var(--font-jp);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease, filter .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { filter: brightness(1.10); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.btn-accent:hover { background: var(--accent-deep); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.btn-ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn-sm { padding: 10px 18px; font-size: 13px; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ============================================================
   CHATGPT HERO/TRUST COMPATIBILITY
   ============================================================ */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-jp);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.button-primary {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}
.button-primary:hover { background: var(--accent-deep); }
.button-ghost {
  color: #fff;
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .36);
}
.button-ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .72);
}

.hero.chatgpt-hero {
  min-height: min(760px, calc(100vh - 32px));
  display: grid;
  align-items: center;
  justify-items: stretch;
  padding-block: clamp(88px, 11vw, 148px);
  color: #fff;
  background:
    linear-gradient(90deg, rgb(0 0 0 / 92%) 0%, rgb(0 0 0 / 66%) 52%, rgba(0, 76, 104, .22) 100%),
    url("assets/plant-hero.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero.chatgpt-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  opacity: 0.35;
  z-index: 0;
}
.hero.chatgpt-hero > .container {
  width: min(100% - 40px, 1140px);
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 0;
}
.hero.chatgpt-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, .18), rgba(0, 0, 0, .04));
  pointer-events: none;
}
.chatgpt-hero .hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-inline: 0 auto;
  padding: 76px 0 88px;
  text-align: left;
}
.chatgpt-hero .hero-content .eyebrow {
  margin-bottom: 18px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, .28);
  color: #F2F8FC;
  background: rgba(0, 76, 104, 0.38);
  border-radius: var(--radius);
}
.chatgpt-hero .hero-content .eyebrow::before { display: none; }
.chatgpt-hero .hero-content h1 {
  max-width: 780px;
  margin-bottom: 22px;
  color: #fff;
  font-size: clamp(34px, 5.2vw, 62px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0;
  text-wrap: normal;
}
.chatgpt-hero .hero-lead {
  max-width: 840px;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, .88);
  font-size: clamp(15px, 1.35vw, 19px);
  font-weight: 500;
  line-height: 1.85;
}
.chatgpt-hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.trust-strip {
  padding-block: 0;
  color: #fff;
  background: var(--bg-deep);
  position: relative;
}
.trust-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.4;
  pointer-events: none;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: min(100% - 40px, 1140px);
  max-width: 1140px;
  padding-inline: 0;
  background: var(--line-deep);
  position: relative;
  z-index: 1;
}
.trust-grid .trust-item {
  min-height: 128px;
  display: block;
  padding: 26px;
  background: var(--bg-deep);
  border-top: 2px solid transparent;
  transition: border-color .15s ease;
}
.trust-grid .trust-item:hover {
  border-top-color: var(--accent);
}
.trust-grid .trust-item strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 19px;
  line-height: 1.45;
}
.trust-grid .trust-item span {
  display: block;
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
  line-height: 1.75;
}

@media (max-width: 880px) {
  .hero.chatgpt-hero {
    min-height: auto;
    padding-block: 72px;
    background-position: 58% center;
  }
  .hero.chatgpt-hero > .container {
    width: min(100% - 28px, 1140px);
  }
  .chatgpt-hero .hero-content {
    padding: 54px 0 76px;
  }
  .chatgpt-hero .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; white-space: normal; }
  .trust-grid {
    grid-template-columns: 1fr;
    width: min(100% - 28px, 1140px);
  }
  .page-v2 .chatgpt-hero .hero-content { padding: 0 0 76px; }
  .page-v2 .chatgpt-hero .hero-content h1 { font-size: 27px; }
  .page-v1 .chatgpt-hero .hero-content h1 { font-size: 31px; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding-block: clamp(64px, 8vw, 104px) clamp(48px, 6vw, 80px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero-eyebrow { margin-bottom: 28px; }
.hero h1 {
  font-size: clamp(34px, 4.6vw, 60px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.hero h1 .accent { color: var(--primary); }
.hero h1 .quiet { color: var(--ink-3); font-weight: 500; }
.hero .lead {
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.9;
  color: var(--ink-2);
  max-width: 560px;
  margin-bottom: 36px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-bullets {
  display: grid;
  gap: 14px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.hero-bullets li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  font-size: 14.5px;
  color: var(--ink-2);
  align-items: start;
}
.hero-bullets .num {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  padding-top: 4px;
  letter-spacing: 0.04em;
}

/* Hero visual */
.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 640px;
}
.hero-photo {
  position: absolute;
  inset: 0;
  background: var(--bg-deep);
  overflow: hidden;
  border-radius: 2px;
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.95;
}
.hero-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.62) 100%);
}
.hero-stat-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  padding: 20px 24px;
  z-index: 2;
  border-radius: 2px;
}
.hero-stat-card.tl {
  top: 24px; left: -24px;
  min-width: 220px;
}
.hero-stat-card.br {
  bottom: 32px; right: -32px;
  min-width: 260px;
}
.hero-stat-card .label {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.hero-stat-card .value {
  font-family: var(--font-en);
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.hero-stat-card .unit { font-size: 14px; color: var(--ink-3); margin-left: 4px; }
.hero-stat-card .sub {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 6px;
  line-height: 1.5;
}

.hero-tick {
  position: absolute;
  top: -8px; left: 12px;
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  background: var(--accent);
  color: #fff;
  padding: 4px 8px;
}

@media (max-width: 980px) {
  .hero-stat-card.tl, .hero-stat-card.br { left: 16px; right: 16px; }
  .hero-stat-card.tl { top: 16px; }
  .hero-stat-card.br { bottom: 16px; left: auto; right: 16px; }
}

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-paper);
  padding-block: 56px;
}
.trust-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
}
.trust-item {
  display: grid;
  gap: 10px;
  position: relative;
  padding-left: 56px;
}
.trust-item .trust-num {
  position: absolute;
  left: 0;
  top: 2px;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--primary);
}
.trust-item .trust-num::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 28px;
  height: 1px;
  background: var(--line-2);
}
.trust-item strong {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
  letter-spacing: -0.01em;
}
.trust-item span {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.85;
}
@media (max-width: 860px) {
  .trust { padding-block: 40px; }
  .trust-items { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================================
   PROBLEMS
   ============================================================ */
.problems { background: var(--bg); }
.problems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
@media (max-width: 880px) { .problems-grid { grid-template-columns: 1fr; } }
.problem {
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.problem:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 127, 177, 0.35);
}
.problem .num {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--primary);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.problem .num::after {
  content: ""; flex: 1; height: 1px; background: var(--line); margin-left: 4px;
}
.problem h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.5;
}
.problem p { font-size: 14.5px; line-height: 1.85; color: var(--ink-3); margin: 0; }

/* ============================================================
   REASONS (3 reasons)
   ============================================================ */
.reasons {
  background: var(--bg-deep);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.reasons::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(255,255,255,0.04), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(255,255,255,0.03), transparent 60%);
  pointer-events: none;
}
.reasons .container { position: relative; }
.reasons h2.section-title { color: #fff; }
.reasons .section-lead { color: rgba(255,255,255,0.7); }
.reasons .eyebrow { color: oklch(0.78 0.10 238); }
.reasons .eyebrow::before { background: oklch(0.78 0.10 238); }
.reasons-header { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; margin-bottom: 64px; }
@media (max-width: 880px) { .reasons-header { grid-template-columns: 1fr; } }
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-deep);
  border: 1px solid var(--line-deep);
}
@media (max-width: 880px) { .reasons-grid { grid-template-columns: 1fr; } }
.reason {
  background: var(--bg-deep);
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 380px;
}
.reason-num {
  font-family: var(--font-en);
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, oklch(0.78 0.10 238), oklch(0.58 0.14 240));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}
.reason h3 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
}
.reason p {
  font-size: 14.5px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
  flex: 1;
}
.reason-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  color: #fff;
  align-self: flex-start;
}
.reason-tag::before {
  content: "✓";
  color: oklch(0.78 0.10 238);
  font-weight: 700;
}

/* ============================================================
   CAD WORKFLOW
   ============================================================ */
.cad-workflow .section-header { margin-bottom: 64px; }
.cad-screens {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  margin-bottom: 64px;
}
.cad-screen-main {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}
.cad-screen-part {
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  position: relative;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.cad-screen-part img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 5;
  object-fit: cover;
  object-position: left center;
  display: block;
}
.cad-screens-side { display: grid; grid-template-rows: 1fr 1fr; gap: 24px; }

@media (max-width: 880px) {
  .cad-screens {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 40px;
  }
  .cad-screen-main,
  .cad-screens-side {
    grid-template-rows: auto;
    gap: 16px;
  }
  .cad-screen-part img,
  .cad-screen-side img {
    aspect-ratio: 16 / 10;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
  }
}
.cad-screen-side {
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  box-shadow: var(--shadow-sm);
}
.cad-screen-side img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.cad-flow {
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 880px) { .cad-flow { grid-template-columns: 1fr; padding: 32px; } }
.cad-flow h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.5;
}
.cad-flow p { font-size: 14.5px; color: var(--ink-3); margin: 0 0 20px; }
.cad-flow ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 10px;
}
.cad-flow ul li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-2);
  align-items: start;
  line-height: 1.75;
}
.cad-flow ul li::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--primary);
  margin-top: 10px;
  border-radius: 2px;
}
.cad-flow-img {
  background: var(--bg-mute);
  padding: 24px;
  border-radius: var(--radius);
  background-image: linear-gradient(rgba(0, 127, 177, 0.08) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(0, 127, 177, 0.08) 1px, transparent 1px);
  background-size: 20px 20px;
}
.cad-flow-img img { width: 100%; height: auto; }

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.compare { background: var(--bg-mute); }
.compare-table-wrap {
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  overflow-x: auto;
  margin-top: 56px;
  box-shadow: var(--shadow-sm);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 720px;
}
.compare-table thead th {
  text-align: center;
  padding: 24px 24px;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line);
  vertical-align: bottom;
  white-space: nowrap;
}
.compare-table thead th.us {
  background: var(--bg-deep);
  color: #fff;
  font-size: 14px;
  position: relative;
}
.compare-table thead th.us::before {
  content: "RECOMMENDED";
  position: absolute;
  top: 8px; right: 8px;
  font-family: var(--font-en);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 700;
}
.compare-table thead th .h-product {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
  display: block;
}
.compare-table thead th.us .h-product { color: #fff; }
.compare-table thead th .h-sub {
  font-size: 11px;
  color: var(--ink-4);
  font-weight: 500;
}
.compare-table thead th.us .h-sub { color: rgba(255, 255, 255, 0.6); }

.compare-table tbody td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  text-align: center;
  vertical-align: middle;
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody td:first-child {
  font-weight: 500;
  color: var(--ink);
  text-align: left;
}
.compare-table tbody td.us {
  background: rgba(0, 127, 177, 0.05);
  font-weight: 600;
  color: var(--ink);
  border-left: 1px solid rgba(0, 127, 177, 0.18);
  border-right: 1px solid rgba(0, 127, 177, 0.18);
}

.cell-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
}
.cell-pill.yes {
  color: var(--primary);
}
.cell-pill.partial {
  color: var(--accent);
}
.cell-pill.no {
  color: var(--ink-4);
}
.cell-pill::before { content: none; display: none; }
.cell-pill.no::before,
.cell-pill.partial::before { content: none; display: none; }

.price-pill {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  gap: 8px;
}
.price-pill .dots { display: inline-flex; gap: 3px; }
.price-pill .dot { width: 7px; height: 7px; background: var(--primary); border-radius: 50%; }
.price-pill .dot.off { background: transparent; border: 1px solid var(--line-2); }

.compare-note {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 20px;
  line-height: 1.7;
}

/* ============================================================
   ADVANCED FEATURES
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}
@media (max-width: 880px) { .features-grid { grid-template-columns: 1fr; } }
.feature {
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 127, 177, 0.35);
}
.feature-img {
  aspect-ratio: 4 / 3;
  background: var(--bg-mute);
  overflow: hidden;
  position: relative;
}
.feature-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.feature-body { padding: 28px; }
.feature .tag {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--primary);
  margin-bottom: 12px;
}
.feature h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.5;
}
.feature p {
  font-size: 14px;
  color: var(--ink-3);
  margin: 0;
  line-height: 1.8;
}

/* ============================================================
   CASE STUDY
   ============================================================ */
.case {
  background: var(--bg-paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.case-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 880px) { .case-grid { grid-template-columns: 1fr; } }
.case-photo { position: relative; }
.case-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.case-photo-overlay {
  position: absolute;
  bottom: 24px; left: 24px;
  background: rgba(0, 0, 0, 0.88);
  color: #fff;
  padding: 16px 20px;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
}
.case-photo-overlay .l1 { color: oklch(0.78 0.10 238); margin-bottom: 4px; font-size: 10px; }
.case h2 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 24px;
}
.case .role {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--ink);
}
.case p { font-size: 15px; color: var(--ink-3); line-height: 1.95; margin: 0 0 32px; }
.case-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.case-stat .k {
  font-family: var(--font-en);
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--primary);
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.case-stat .k .unit { font-size: 14px; color: var(--ink-3); font-weight: 500; margin-left: 4px; }
.case-stat .v {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.5;
}

/* ============================================================
   GUIDE PROMO
   ============================================================ */
.guide {
  background: var(--bg-deep);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.guide-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 880px) { .guide-grid { grid-template-columns: 1fr; } }
.guide .eyebrow { color: oklch(0.78 0.10 238); }
.guide h2 {
  color: #fff;
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 24px;
}
.guide p { color: rgba(255,255,255,0.7); font-size: 15.5px; line-height: 1.9; margin-bottom: 32px; }
.guide ul {
  list-style: none; padding: 0; margin: 0 0 40px;
  display: grid; gap: 14px;
}
.guide ul li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  font-size: 14.5px;
  align-items: start;
  color: rgba(255,255,255,0.88);
  line-height: 1.7;
}
.guide ul li .n {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  color: oklch(0.78 0.10 238);
  padding-top: 4px;
  letter-spacing: 0.04em;
}
.guide-mock {
  position: relative;
  aspect-ratio: 4 / 5;
  perspective: 1200px;
}
.guide-page {
  position: absolute;
  background: #fff;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
  overflow: hidden;
  border-radius: var(--radius);
  width: 92%;
  aspect-ratio: 1.414 / 1; /* A4横 */
}
.guide-page img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.guide-page-1 { top: 14%; left: 0; transform: rotate(-4deg); z-index: 1; }
.guide-page-2 { bottom: 14%; right: 0; transform: rotate(3deg); z-index: 2; }
.guide-page-1::before, .guide-page-2::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0) 60%, rgba(0,0,0,0.04));
  pointer-events: none;
}

/* ============================================================
   FORM / CTA
   ============================================================ */
.cta-form { background: var(--bg-mute); }
.cta-form-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 1.5);
  padding: clamp(32px, 4vw, 64px);
  box-shadow: var(--shadow-md);
}
@media (max-width: 980px) { .cta-form-grid { grid-template-columns: 1fr; gap: 40px; } }

.cta-info h2 {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 20px;
}
.cta-info p { font-size: 14.5px; color: var(--ink-3); margin-bottom: 28px; line-height: 1.85; }
.cta-perks { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 12px; }
.cta-perks li {
  font-size: 13.5px;
  color: var(--ink-2);
  padding-left: 22px;
  position: relative;
  line-height: 1.7;
}
.cta-perks li::before {
  content: "▸";
  position: absolute;
  left: 0; top: 0;
  color: var(--primary);
  font-size: 12px;
}
.cta-contact {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.7;
}
.cta-contact b { color: var(--ink); font-weight: 600; }

.form {
  display: grid;
  gap: 18px;
}
.field { display: grid; gap: 6px; }
.field label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.field label .req {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.1em;
}
.field input, .field select, .field textarea {
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  background: #fff;
  font-family: var(--font-jp);
  font-size: 14.5px;
  color: var(--ink);
  border-radius: var(--radius);
  transition: border-color .15s ease, box-shadow .15s ease;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 127, 177, 0.16);
}
.field textarea { resize: vertical; min-height: 90px; line-height: 1.6; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.radio-group {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}
.radio-opt {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line-2);
  cursor: pointer;
  font-size: 14px;
  color: var(--ink-2);
  align-items: center;
  border-radius: var(--radius);
  transition: border-color .15s ease, background .15s ease;
}
.radio-opt:hover { border-color: var(--primary); }
.radio-opt input { width: 16px; height: 16px; accent-color: var(--primary); margin: 0; }
.radio-opt input:checked + span { color: var(--ink); font-weight: 600; }
.radio-opt:has(input:checked) { border-color: var(--primary); background: rgba(0, 127, 177, 0.05); }

.form-consent {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.7;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.form-consent a { color: var(--ink); text-decoration: underline; }

.form-submit {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 18px 24px;
  font-family: var(--font-jp);
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.form-submit:hover { background: var(--accent-deep); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.form-success {
  display: none;
  text-align: center;
  padding: 48px 24px;
}
.form-success .check {
  width: 56px; height: 56px;
  margin: 0 auto 20px;
  background: var(--primary);
  color: #fff;
  display: grid; place-items: center;
  font-size: 28px;
  border-radius: 50%;
}
.form-success h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.form-success p { color: var(--ink-3); font-size: 14px; }
.form.submitted { display: none; }
.form.submitted + .form-success { display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-deep-2);
  color: rgba(255, 255, 255, 0.7);
  padding-block: 56px 32px;
  font-size: 13px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  align-items: start;
}
@media (max-width: 880px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px 24px;
  }
  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer .brand { color: #fff; margin-bottom: 16px; }
.footer .brand-name { color: #fff; }
.footer-tag {
  font-size: 12.5px;
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
  max-width: 300px;
}
.footer h5 {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin: 0 0 16px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer ul a:hover { color: #fff; }
.footer-bot {
  padding-top: 32px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================================
   MISC
   ============================================================ */
.callout-band {
  background: var(--bg-deep);
  color: #fff;
  padding-block: 0;
}
.callout-band-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding-block: 36px;
}
@media (max-width: 700px) {
  .callout-band-inner { grid-template-columns: 1fr; }
}
.callout-band h3 {
  color: #fff;
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 600;
  line-height: 1.6;
}
.callout-band .accent { color: var(--accent); }
