/* ============================================================
   研Q 事業会社向け LP — Styles
   Hybrid system: editorial ink+gold skeleton, 研Q azure as the
   product/action accent. BLUEZ Design System tokens.
   ============================================================ */

:root {
  /* brand / editorial */
  --ink-blue: #1a1f2e;
  --ink-soft: #2d3347;
  --ink-deep: #0f1218;
  --gold: #b8964a;
  --gold-light: #d4af6e;
  --brand-blue: #1f0acc;
  /* neutrals */
  --white: #ffffff;
  --cream: #faf8f4;
  --sand: #f4f1ec;
  --text: #1a1f2e;
  --muted: #6b7280;
  --on-dark: rgba(250, 248, 244, 0.82);
  --on-dark-faint: rgba(250, 248, 244, 0.62);
  /* hairlines */
  --border: rgba(26, 31, 46, 0.12);
  --border-soft: rgba(26, 31, 46, 0.07);
  --border-gold: rgba(184, 150, 74, 0.40);
  --border-gold-faint: rgba(184, 150, 74, 0.15);
  --border-on-dark: rgba(255, 255, 255, 0.12);
  /* 研Q product azure — the action accent */
  --azure: #4f8def;
  --azure-strong: #2563eb;
  --azure-soft: #eaf1fe;
  --azure-ink: #1e293b;
  /* type */
  --font-display: 'Lexend Deca', sans-serif;
  --font-latin: 'Inter', sans-serif;
  --font-ja: 'Noto Sans JP', sans-serif;
  --font-serif: 'Noto Serif JP', serif;
  /* tracking */
  --tk-label: 0.22em;
  --tk-wide: 0.12em;
  --tk-ja: 0.04em;
  /* radii — editorial sharp; product soft */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-pill: 999px;
  /* motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 0.45s;
}

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

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-ja);
  font-weight: 300;
  color: var(--text);
  background: var(--white);
  line-height: 2;
  letter-spacing: var(--tk-ja);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.inner { max-width: 1160px; margin: 0 auto; padding: 0 40px; }

/* ---------- shared type ---------- */
.eyebrow {
  font-family: var(--font-latin);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: var(--tk-label);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-transform: uppercase;
}
.eyebrow::before { content: ''; width: 34px; height: 1px; background: var(--gold); }
.eyebrow.on-dark { color: var(--gold-light); }

.sec-title {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.55;
  letter-spacing: 0.05em;
  margin-top: 22px;
}
.sec-title em { font-style: normal; color: var(--gold); }
.sec-lead {
  font-weight: 300;
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  line-height: 2.1;
  color: var(--muted);
  max-width: 660px;
  margin-top: 26px;
}

section { padding: clamp(72px, 9vw, 118px) 0; position: relative; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-ja); font-weight: 500;
  font-size: 0.92rem; letter-spacing: 0.08em;
  padding: 16px 32px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              transform 0.2s var(--ease), border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.btn .arr { transition: transform 0.2s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
/* primary = azure product action, soft radius */
.btn-primary {
  background: var(--azure-strong); color: #fff; border-radius: var(--r-md);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.22);
}
.btn-primary:hover { background: #1d4fc4; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(37, 99, 235, 0.30); }
/* secondary = editorial outline, sharp */
.btn-ghost {
  background: transparent; color: var(--ink-blue);
  border-color: var(--border); border-radius: var(--r-sm);
}
.btn-ghost:hover { border-color: var(--ink-blue); transform: translateY(-1px); }
.btn-ghost.on-dark { color: #fff; border-color: var(--border-on-dark); }
.btn-ghost.on-dark:hover { border-color: rgba(255,255,255,0.55); background: rgba(255,255,255,0.04); }
.btn-sm { padding: 11px 22px; font-size: 0.82rem; }

/* link-gold */
.link-gold {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.82rem; letter-spacing: 0.1em; color: var(--gold);
  text-decoration: none; border-bottom: 1px solid var(--border-gold);
  padding-bottom: 4px; transition: gap 0.2s, border-color 0.2s;
}
.link-gold:hover { gap: 16px; border-color: var(--gold); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  background: rgba(250, 248, 244, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
  transition: box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav.scrolled { box-shadow: 0 1px 0 var(--border), 0 6px 24px rgba(16,24,40,0.05); }
.nav-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 40px; height: 70px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-mark { height: 28px; width: auto; display: block; }
.brand-divider { width: 1px; height: 22px; background: var(--border); }
.brand-sub {
  font-family: var(--font-latin); font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.14em; color: var(--muted); line-height: 1.3;
}
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav-links a {
  font-family: var(--font-ja); font-weight: 400; font-size: 0.82rem;
  letter-spacing: 0.06em; color: var(--ink-blue); text-decoration: none;
  opacity: 0.66; transition: opacity 0.2s, color 0.2s;
}
.nav-links a:hover { opacity: 1; color: var(--azure-strong); }
.nav-links .btn-primary, .nav-links .btn-primary:hover { color: #fff; opacity: 1; }
.nav-cta { margin-left: 6px; }
.nav-burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-burger span { display: block; width: 22px; height: 1.5px; background: var(--ink-blue); margin: 5px 0; transition: 0.3s; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; padding: 168px 0 96px; overflow: hidden;
  background: linear-gradient(180deg, var(--cream) 0%, var(--white) 70%);
}
.hero-deco { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.hero-ring { position: absolute; border-radius: 50%; border: 1px solid var(--border-gold-faint); }
.hero-ring.r1 { width: 720px; height: 720px; top: -260px; right: -180px; animation: spin 90s linear infinite; }
.hero-ring.r2 { width: 460px; height: 460px; top: -120px; right: -40px; animation: spin 60s linear infinite reverse; }
.hero-ring.r3 { width: 260px; height: 260px; top: 20px; right: 60px; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-glyph {
  position: absolute; top: 46%; left: -2%; transform: translateY(-50%);
  font-family: var(--font-serif); font-size: clamp(280px, 40vw, 560px);
  font-weight: 500; color: rgba(26, 31, 46, 0.028); line-height: 1;
  user-select: none; pointer-events: none; z-index: 0;
}
.hero-inner {
  position: relative; z-index: 1; max-width: 1160px; margin: 0 auto; padding: 0 40px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center;
}
.hero-eyebrow { margin-bottom: 30px; }
.hero-catch {
  font-family: var(--font-ja); font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 3.1rem); line-height: 1.5;
  letter-spacing: 0.04em; color: var(--ink-blue);
}
.hero-catch em { font-style: normal; color: var(--gold); }
.hero-sub {
  font-weight: 300; font-size: clamp(0.95rem, 1.3vw, 1.08rem);
  line-height: 2.15; color: var(--muted); max-width: 480px; margin-top: 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 42px; align-items: center; }
.hero-trust {
  margin-top: 38px; display: flex; align-items: center; gap: 18px;
  font-family: var(--font-latin); font-size: 0.72rem; letter-spacing: 0.1em;
  color: var(--muted);
}
.hero-trust::before { content: ''; width: 28px; height: 1px; background: var(--border); }

/* hero visual — product frame placeholder */
.hero-visual { position: relative; }
.hero-frame {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: -18px 26px 60px rgba(26, 31, 46, 0.18), 0 0 0 1px var(--border);
  transform: perspective(1400px) rotateY(-9deg) rotateX(3deg);
  transform-origin: center;
}
.hero-frame image-slot { width: 100%; height: 420px; display: block; }
.hero-node-svg { position: absolute; inset: -8% -8% auto auto; width: 60%; height: 60%; z-index: 2; pointer-events: none; }
.hero-badge {
  position: absolute; left: -22px; bottom: 34px; z-index: 3;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--shadow-card, 0 8px 24px rgba(16,24,40,0.10));
  padding: 14px 18px; display: flex; align-items: center; gap: 12px;
}
.hero-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--azure-strong); box-shadow: 0 0 0 4px var(--azure-soft); }
.hero-badge .t { font-size: 0.74rem; font-weight: 500; letter-spacing: 0.04em; color: var(--ink-blue); line-height: 1.5; }
.hero-badge .t small { display: block; font-family: var(--font-latin); font-size: 0.62rem; letter-spacing: 0.08em; color: var(--muted); font-weight: 400; }

/* hero layout variants (set on .hero via data attr) */
.hero[data-layout="center"] .hero-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.hero[data-layout="center"] .hero-sub { max-width: 620px; }
.hero[data-layout="center"] .eyebrow,
.hero[data-layout="center"] .hero-actions,
.hero[data-layout="center"] .hero-trust { justify-content: center; }
.hero[data-layout="center"] .hero-visual { margin-top: 64px; width: 100%; max-width: 720px; }
.hero[data-layout="center"] .hero-frame { transform: perspective(1600px) rotateX(4deg); }
.hero[data-layout="split"] .hero-inner { grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; }
.hero[data-layout="split"] .hero-text { padding-right: 56px; align-self: center; }
.hero[data-layout="split"] .hero-frame { transform: none; border-radius: var(--r-md); }

/* ============================================================
   PROBLEM  (S3)
   ============================================================ */
.problem { background: var(--white); }
.problem-stat {
  margin: 40px 0 8px; padding-bottom: 56px; border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-start; gap: 28px; flex-wrap: wrap;
}
.stat-num {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(3.4rem, 8vw, 6rem); line-height: 1; color: var(--ink-blue);
}
.stat-num .pct { color: var(--gold); }
.stat-copy { font-weight: 300; font-size: clamp(0.95rem, 1.3vw, 1.08rem); line-height: 2; color: var(--muted); max-width: 540px; margin-top: -0.18em; }
.stat-copy strong { font-weight: 500; color: var(--ink-blue); }

.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 8px; }
.pain {
  padding: 48px 40px 48px 0; border-top: 1px solid transparent;
  position: relative;
}
.pain + .pain { padding-left: 40px; border-left: 1px solid var(--border); }
.pain-no {
  font-family: var(--font-display); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.16em; color: var(--gold); margin-bottom: 22px;
}
.pain-title { font-weight: 500; font-size: 1.18rem; letter-spacing: 0.04em; color: var(--ink-blue); margin-bottom: 14px; line-height: 1.6; }
.pain-desc { font-weight: 300; font-size: 0.9rem; line-height: 2; color: var(--muted); }

/* ============================================================
   BEFORE / AFTER  (S4 — dark)
   ============================================================ */
.shift { background: var(--ink-blue); color: #fff; overflow: hidden; }
.shift .sec-title { color: #fff; }
.shift .sec-title em { color: var(--gold-light); }
.shift-deco { position: absolute; inset: 0; pointer-events: none; opacity: 0.5; }
.ba {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch;
  gap: 0; margin-top: 64px;
}
.ba-card { padding: 48px 44px; border: 1px solid var(--border-on-dark); }
.ba-card.before { background: rgba(255,255,255,0.015); }
.ba-card.after { background: rgba(79, 141, 239, 0.10); border-color: rgba(79,141,239,0.35); position: relative; }
.ba-card.after::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, var(--azure), transparent); }
.ba-label {
  font-family: var(--font-latin); font-size: 0.72rem; letter-spacing: 0.2em;
  text-transform: uppercase; margin-bottom: 24px;
}
.ba-card.before .ba-label { color: var(--on-dark-faint); }
.ba-card.after .ba-label { color: var(--azure); }
.ba-head { font-weight: 400; font-size: 1.3rem; letter-spacing: 0.03em; line-height: 1.6; margin-bottom: 24px; }
.ba-card.before .ba-head { color: var(--on-dark); }
.ba-card.after .ba-head { color: #fff; }
.ba-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.ba-list li { font-weight: 300; font-size: 0.9rem; line-height: 1.8; padding-left: 26px; position: relative; }
.ba-card.before .ba-list li { color: var(--on-dark-faint); }
.ba-card.before .ba-list li::before { content: '—'; position: absolute; left: 0; color: var(--on-dark-faint); }
.ba-card.after .ba-list li { color: var(--on-dark); }
.ba-card.after .ba-list li::before { content: ''; position: absolute; left: 0; top: 11px; width: 12px; height: 7px; border-left: 1.5px solid var(--azure); border-bottom: 1.5px solid var(--azure); transform: rotate(-45deg); }
.ba-arrow { display: flex; align-items: center; justify-content: center; padding: 0 28px; color: var(--gold-light); font-size: 1.6rem; }

/* ============================================================
   HOW IT WORKS  (S5)
   ============================================================ */
.how { background: var(--cream); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 64px; position: relative; }
.step {
  background: var(--white); border: 1px solid var(--border); padding: 48px 38px;
  position: relative; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(16,24,40,0.07); z-index: 1; }
.step-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--azure-soft); color: var(--azure-strong);
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem;
  margin-bottom: 28px;
}
.step-tag { font-family: var(--font-latin); font-size: 0.68rem; letter-spacing: 0.18em; color: var(--azure-strong); text-transform: uppercase; margin-bottom: 12px; }
.step-title { font-weight: 500; font-size: 1.18rem; letter-spacing: 0.03em; color: var(--ink-blue); margin-bottom: 14px; line-height: 1.6; }
.step-desc { font-weight: 300; font-size: 0.9rem; line-height: 2; color: var(--muted); }
.how-cta { margin-top: 48px; display: flex; justify-content: center; }

/* ============================================================
   FEATURES  (S6)
   ============================================================ */
.features { background: var(--white); }
.feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; margin-top: 64px; }
.feat {
  background: var(--white); border: 1px solid var(--border); padding: 44px 44px;
  display: flex; gap: 26px; align-items: flex-start; position: relative; overflow: hidden;
  transition: background var(--dur) var(--ease);
}
.feat::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px; background: var(--gold); transition: width var(--dur) var(--ease); }
.feat:hover { background: var(--cream); }
.feat:hover::after { width: 100%; }
.feat-icon { flex-shrink: 0; width: 46px; height: 46px; color: var(--azure-strong); }
.feat-icon svg { width: 100%; height: 100%; }
.feat-body h3 { font-weight: 500; font-size: 1.12rem; letter-spacing: 0.03em; color: var(--ink-blue); margin-bottom: 12px; line-height: 1.6; }
.feat-body p { font-weight: 300; font-size: 0.9rem; line-height: 2; color: var(--muted); }

/* ============================================================
   TRUST  (S7)
   ============================================================ */
.trust { background: var(--sand); }
.phase {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 60px;
  border: 1px solid var(--border); background: var(--white);
}
.phase-step { padding: 36px 30px; position: relative; }
.phase-step + .phase-step { border-left: 1px solid var(--border); }
.phase-no { font-family: var(--font-latin); font-size: 0.7rem; letter-spacing: 0.16em; color: var(--gold); margin-bottom: 16px; }
.phase-title { font-weight: 500; font-size: 1.02rem; letter-spacing: 0.03em; color: var(--ink-blue); margin-bottom: 8px; }
.phase-desc { font-weight: 300; font-size: 0.82rem; line-height: 1.85; color: var(--muted); }
.phase-step .phase-arrow { position: absolute; right: -9px; top: 50%; transform: translateY(-50%); z-index: 2; width: 18px; height: 18px; background: var(--white); border: 1px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; color: var(--gold); }

.poc-band {
  margin-top: 56px; padding: 40px 44px; background: var(--ink-blue); color: #fff;
  display: flex; align-items: center; gap: 40px; flex-wrap: wrap; justify-content: space-between;
}
.poc-text { display: flex; align-items: center; gap: 20px; }
.poc-text .eyebrow.on-dark { color: var(--gold-light); }
.poc-text p { font-weight: 300; font-size: clamp(1rem, 1.6vw, 1.25rem); line-height: 1.7; letter-spacing: 0.04em; }
.poc-text p strong { font-weight: 500; color: #fff; }

.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 2px; }
.kpi { background: var(--ink-soft); color: #fff; padding: 34px 30px; }
.kpi-num { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; color: #fff; }
.kpi-num .u { font-size: 0.42em; font-weight: 400; color: var(--gold-light); margin-left: 6px; letter-spacing: 0.04em; }
.kpi-label { font-weight: 300; font-size: 0.82rem; letter-spacing: 0.06em; color: var(--on-dark); margin-top: 14px; }
.trust-note { margin-top: 20px; font-family: var(--font-latin); font-size: 0.68rem; letter-spacing: 0.08em; color: var(--muted); }

/* ============================================================
   FAQ  (S8)
   ============================================================ */
.faq { background: var(--white); }
.faq-list { margin-top: 56px; border-top: 1px solid var(--border); max-width: 880px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 28px 8px; display: flex;
  align-items: center; gap: 24px; font-weight: 400; font-size: 1.02rem;
  letter-spacing: 0.03em; color: var(--ink-blue); transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--azure-strong); }
.faq-q { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; color: var(--gold); flex-shrink: 0; }
.faq-summary-text { flex: 1; }
.faq-icon { flex-shrink: 0; width: 18px; height: 18px; position: relative; transition: transform 0.3s var(--ease); }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; background: var(--muted); transition: opacity 0.3s; }
.faq-icon::before { top: 8px; left: 0; width: 18px; height: 1.5px; }
.faq-icon::after { top: 0; left: 8px; width: 1.5px; height: 18px; }
.faq-item[open] .faq-icon::after { opacity: 0; }
.faq-answer { padding: 0 8px 30px 60px; font-weight: 300; font-size: 0.92rem; line-height: 2.1; color: var(--muted); max-width: 760px; }

/* ============================================================
   FINAL CTA + FORM  (S9 — dark)
   ============================================================ */
.final { background: var(--ink-blue); color: #fff; overflow: hidden; }
.final-deco { position: absolute; inset: 0; pointer-events: none; opacity: 0.6; }
.final-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 72px; align-items: start; position: relative; z-index: 1; }
.final .sec-title { color: #fff; }
.final .sec-title em { color: var(--gold-light); }
.final-lead { font-weight: 300; font-size: 1rem; line-height: 2.1; color: var(--on-dark); margin-top: 26px; max-width: 380px; }
.final-points { list-style: none; margin-top: 40px; display: flex; flex-direction: column; gap: 18px; }
.final-points li { display: flex; align-items: center; gap: 14px; font-weight: 300; font-size: 0.9rem; color: var(--on-dark); }
.final-points li::before { content: ''; width: 16px; height: 9px; border-left: 1.5px solid var(--azure); border-bottom: 1.5px solid var(--azure); transform: rotate(-45deg); flex-shrink: 0; }

/* form */
.form-card { background: var(--white); border-radius: var(--r-lg); padding: 44px 44px 40px; box-shadow: 0 30px 70px rgba(0,0,0,0.32); }
.form-card-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 8px; }
.form-card-head h3 { font-family: var(--font-ja); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.02em; color: var(--ink-blue); }
.form-card-head span { font-family: var(--font-latin); font-size: 0.68rem; letter-spacing: 0.1em; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.col-2 { grid-column: 1 / -1; }
.field label { font-weight: 500; font-size: 0.8rem; letter-spacing: 0.04em; color: var(--azure-ink); display: flex; align-items: center; gap: 6px; }
.req { color: var(--product-required, #e0533d); font-size: 0.9em; }
.opt { color: var(--muted); font-weight: 400; font-size: 0.92em; }
.field input, .field select, .field textarea {
  font-family: var(--font-ja); font-weight: 300; font-size: 0.92rem; color: var(--ink-blue);
  padding: 13px 15px; border: 1px solid var(--product-border, #e3e8ef); border-radius: var(--r-md);
  background: var(--white); transition: border-color 0.2s, box-shadow 0.2s; width: 100%;
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.8; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--azure); box-shadow: 0 0 0 3px rgba(79,141,239,0.18);
}
.field input::placeholder, .field textarea::placeholder { color: #b6bfcc; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #e0533d; box-shadow: 0 0 0 3px rgba(224,83,61,0.14); }
.field-err { font-size: 0.72rem; letter-spacing: 0.02em; color: #e0533d; min-height: 0; opacity: 0; transition: opacity 0.2s; }
.field.invalid .field-err { opacity: 1; }
.form-foot { margin-top: 26px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.form-note { font-size: 0.72rem; line-height: 1.7; color: var(--muted); max-width: 320px; }
.form-note a { color: var(--azure-strong); text-decoration: none; border-bottom: 1px solid currentColor; }
.form-submit { white-space: nowrap; }

/* success state */
.form-success { display: none; text-align: center; padding: 48px 24px; }
.form-card.sent .form-grid, .form-card.sent .form-foot, .form-card.sent .form-card-head { display: none; }
.form-card.sent .form-success { display: block; animation: rise 0.5s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.success-check { width: 64px; height: 64px; border-radius: 50%; background: var(--azure-soft); display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; }
.success-check svg { width: 30px; height: 30px; color: var(--azure-strong); }
.success-check .ring { stroke-dasharray: 80; stroke-dashoffset: 80; animation: draw 0.6s var(--ease) 0.15s forwards; }
.success-check .tick { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw 0.4s var(--ease) 0.5s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.form-success h3 { font-family: var(--font-ja); font-weight: 700; font-size: 1.3rem; color: var(--ink-blue); margin-bottom: 14px; letter-spacing: 0.02em; }
.form-success p { font-weight: 300; font-size: 0.92rem; line-height: 2; color: var(--muted); max-width: 420px; margin: 0 auto; }

/* ============================================================
   FOOTER  (S10)
   ============================================================ */
.footer { background: var(--ink-deep); color: var(--on-dark-faint); padding: 72px 0 40px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--border-on-dark); }
.footer-brand .footer-mark { height: 30px; margin-bottom: 22px; filter: brightness(0) invert(1); opacity: 0.92; }
.footer-brand p { font-weight: 300; font-size: 0.8rem; line-height: 2; color: var(--on-dark-faint); max-width: 320px; }
.footer-col h4 { font-family: var(--font-latin); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 22px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.footer-col a { font-weight: 300; font-size: 0.82rem; letter-spacing: 0.04em; color: var(--on-dark); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-sns { display: flex; gap: 10px; margin-top: 4px; }
.footer-sns a { width: 36px; height: 36px; border: 1px solid var(--border-on-dark); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--on-dark); transition: border-color 0.2s, color 0.2s; }
.footer-sns a:hover { border-color: var(--gold-light); color: var(--gold-light); }
.footer-sns svg { width: 16px; height: 16px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-family: var(--font-latin); font-size: 0.7rem; letter-spacing: 0.08em; color: var(--on-dark-faint); }
.footer-legal { display: flex; gap: 26px; }
.footer-legal a { font-size: 0.7rem; letter-spacing: 0.06em; color: var(--on-dark-faint); text-decoration: none; transition: color 0.2s; }
.footer-legal a:hover { color: #fff; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
/* hidden state only applies once JS arms it — no-JS / no-IO shows everything */
html.reveal-armed .reveal:not(.in) { opacity: 0; transform: translateY(22px); }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-ring { animation: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: 2; max-width: 560px; }
  .hero-frame { transform: none; }
  .final-grid { grid-template-columns: 1fr; gap: 44px; }
  .feat-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .inner, .nav-inner, .hero-inner { padding-left: 24px; padding-right: 24px; }
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .nav.menu-open .nav-links {
    display: flex; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column;
    gap: 0; background: var(--cream); border-bottom: 1px solid var(--border); padding: 8px 0;
  }
  .nav.menu-open .nav-links li { width: 100%; }
  .nav.menu-open .nav-links a { display: block; padding: 16px 24px; opacity: 1; border-bottom: 1px solid var(--border-soft); }
  .nav.menu-open .nav-links .nav-cta { padding: 16px 24px; }
  .pain-grid, .steps, .phase, .kpis { grid-template-columns: 1fr; }
  .pain + .pain { border-left: none; padding-left: 0; border-top: 1px solid var(--border); }
  .pain { padding: 36px 0; }
  .phase-step + .phase-step { border-left: none; border-top: 1px solid var(--border); }
  .phase-step .phase-arrow { display: none; }
  .kpi { padding: 28px 24px; }
  .ba { grid-template-columns: 1fr; }
  .ba-arrow { padding: 18px 0; transform: rotate(90deg); }
  .form-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .hero[data-layout="split"] .hero-inner { grid-template-columns: 1fr; }
  .hero[data-layout="split"] .hero-text { padding-right: 0; }
}
@media (max-width: 480px) {
  .hero { padding-top: 130px; }
  .btn { padding: 14px 24px; font-size: 0.86rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
}
