:root {
  --ink: #162033;
  --muted: #5d6778;
  --paper: #ffffff;
  --surface: #f4f7fb;
  --line: #d9e0ea;
  --navy: #101828;
  --teal: #0f766e;
  --teal-dark: #115e59;
  --teal-soft: #e6f6f3;
  --amber: #9a5b00;
  --amber-soft: #fff5df;
  --rose: #b42318;
  --rose-soft: #fff1ef;
  --shadow: 0 20px 52px rgba(16, 24, 40, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.72;
  letter-spacing: 0;
  overflow-x: hidden;
}

a { color: inherit; }

h1, h2, h3, p, span, li, summary, .button { overflow-wrap: anywhere; }

.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: var(--navy);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.34;
  background-image: linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.76fr);
  gap: 44px;
  align-items: center;
  min-height: 680px;
  padding: 68px 0 56px;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 6px 10px;
  border: 1px solid rgba(173, 245, 233, 0.35);
  border-radius: 4px;
  color: #b9f4e8;
  font-size: 13px;
  font-weight: 800;
}

h1 { margin: 0; font-size: clamp(36px, 4.3vw, 62px); line-height: 1.16; }

.lead { max-width: 630px; margin: 24px 0 0; color: #d8e1ee; font-size: 18px; }

.hero-offer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  max-width: 660px;
  margin-top: 24px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.hero-offer strong { display: block; color: #b9f4e8; font-size: 30px; line-height: 1; }
.hero-offer span { font-size: 12px; font-weight: 800; }
.hero-offer p { margin: 0; color: #e9eff7; font-size: 14px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid var(--teal);
  border-radius: 6px;
  color: #ffffff;
  background: var(--teal);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.button:hover { background: var(--teal-dark); }
.button.secondary { border-color: rgba(255, 255, 255, 0.34); background: transparent; }
.button.secondary:hover { background: rgba(255, 255, 255, 0.1); }
.button.light { border-color: #ffffff; color: var(--navy); background: #ffffff; }

.micro { margin: 14px 0 0; color: #b7c2d5; font-size: 12px; line-height: 1.62; }

.hero-visual { position: relative; min-width: 0; margin: 0; }
.hero-photo { display: block; width: 100%; aspect-ratio: 4 / 4.8; object-fit: cover; object-position: center 20%; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 8px; filter: brightness(0.72); }
.agent-console { position: absolute; right: -18px; bottom: 24px; width: min(360px, calc(100% - 20px)); padding: 16px; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 8px; background: rgba(16, 24, 40, 0.88); box-shadow: var(--shadow); }
.console-top { display: flex; justify-content: space-between; gap: 8px; color: #eaf0f8; font-size: 11px; font-weight: 800; }
.console-status { color: #b9f4e8; }
.console-flow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.console-chip { padding: 8px; border: 1px solid rgba(185, 244, 232, 0.18); border-radius: 4px; color: #d9f6f0; background: rgba(15, 118, 110, 0.2); font-size: 11px; font-weight: 800; }
.console-output { margin-top: 10px; padding: 10px; border-radius: 4px; color: #c5f6e9; background: rgba(15, 118, 110, 0.28); font-size: 12px; }
.hero-visual figcaption { margin-top: 12px; color: #b7c2d5; font-size: 12px; }

section { padding: 84px 0; background: var(--paper); }
section.alt { background: var(--surface); }

.section-head { max-width: 760px; }
.section-head h2, .panel h2, .form-card h2 { margin: 0; font-size: clamp(28px, 3vw, 40px); line-height: 1.28; }
.section-head p, .panel > p { margin: 16px 0 0; color: var(--muted); font-size: 17px; }

.problem-grid, .output-grid, .role-grid, .fit-grid, .form-layout, .faq-grid { display: grid; gap: 16px; margin-top: 34px; }
.problem-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.output-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.role-grid, .fit-grid, .form-layout, .faq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.problem-card, .output-card, .fit-card, .faq-card { padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: #ffffff; box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06); }
.problem-number { display: grid; width: 34px; height: 34px; place-items: center; margin-bottom: 18px; border-radius: 4px; color: var(--teal-dark); background: var(--teal-soft); font-weight: 900; }
.problem-card h3, .output-card h3, .fit-card h3 { margin: 0; font-size: 19px; line-height: 1.35; }
.problem-card p, .output-card p, .fit-card p, .faq-card p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }

.story-row { display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(320px, 1fr); gap: 34px; align-items: center; }
.story-label { color: var(--teal-dark); font-size: 13px; font-weight: 900; }
.story-copy h2 { margin: 8px 0 0; font-size: clamp(30px, 3.5vw, 47px); line-height: 1.25; }
.story-copy p { margin: 20px 0 0; color: var(--muted); font-size: 17px; }
.story-board { padding: 24px; border: 1px solid #b6e7de; border-radius: 8px; background: var(--teal-soft); }
.story-board .board-line { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(15, 118, 110, 0.16); font-size: 14px; }
.story-board .board-line:last-child { border-bottom: 0; }
.story-board b { color: var(--teal-dark); }

.output-card { display: grid; grid-template-columns: 44px 1fr; gap: 14px; min-height: 146px; }
.output-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 4px; color: var(--teal-dark); background: var(--teal-soft); font-weight: 900; }
.source-note { margin: 18px 0 0; color: var(--muted); font-size: 13px; }

.process { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 34px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.process-step { min-height: 162px; padding: 22px; border-right: 1px solid var(--line); background: #ffffff; }
.process-step:last-child { border-right: 0; }
.process-step b { display: block; color: var(--teal-dark); font-size: 14px; }
.process-step span { display: block; margin-top: 10px; color: var(--muted); font-size: 14px; }

.role-card { padding: 24px; border-radius: 8px; }
.role-card.ai { border: 1px solid #a7dfd5; background: var(--teal-soft); }
.role-card.human { border: 1px solid #f1d08e; background: var(--amber-soft); }
.role-card h3 { margin: 0; font-size: 21px; }
.role-card p { margin: 12px 0 0; color: var(--muted); }

.fit-card.bad { border-color: #f3c1bd; background: var(--rose-soft); }
.fit-card.good { border-color: #b6e7de; background: #ffffff; }

.form-band { background: var(--navy); color: #ffffff; }
.form-band .section-head p { color: #c9d4e4; }
.form-card { padding: 28px; border-radius: 8px; color: var(--ink); background: #ffffff; box-shadow: var(--shadow); }
.form-card h2 { font-size: 28px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
label { color: var(--ink); font-size: 13px; font-weight: 900; }
input, select, textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); font: inherit; background: #ffffff; }
textarea { min-height: 104px; resize: vertical; }
.consent-row { display: flex; gap: 8px; align-items: flex-start; margin-top: 16px; font-size: 12px; line-height: 1.55; }
.consent-row input { width: 16px; min-height: 16px; margin-top: 2px; }
.form-notice { margin-top: 14px; padding: 12px; border-radius: 5px; color: #754b00; background: var(--amber-soft); font-size: 12px; line-height: 1.55; }
.form-status { min-height: 1.6em; margin: 14px 0 0; font-size: 13px; }
.form-status.is-error { color: var(--rose); }
.form-status.is-sending { color: var(--teal-dark); }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-side { align-self: stretch; padding: 28px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 8px; background: rgba(255, 255, 255, 0.08); }
.form-side h3 { margin: 0; font-size: 22px; }
.form-side ol { display: grid; gap: 18px; margin: 22px 0 0; padding-left: 22px; color: #d7e0ec; }
.form-side b { display: block; color: #ffffff; }
.form-side span { display: block; margin-top: 3px; font-size: 13px; }

.faq-card details { border-bottom: 1px solid var(--line); }
.faq-card details:last-child { border-bottom: 0; }
.faq-card summary { padding: 16px 0; cursor: pointer; font-weight: 900; }
.faq-card details p { padding: 0 0 16px; }

.final { color: #ffffff; background: var(--teal-dark); }
.final .wrap { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.final h2 { margin: 0; font-size: clamp(26px, 3vw, 38px); line-height: 1.3; }
.final p { margin: 10px 0 0; color: #d9fff8; }

footer { padding: 28px 0; color: var(--muted); background: #ffffff; font-size: 12px; }
footer p { margin: 0; }

@media (max-width: 820px) {
  .wrap { width: min(100% - 28px, 1120px); }
  .hero-inner, .story-row, .role-grid, .fit-grid, .form-layout, .faq-grid { grid-template-columns: 1fr; }
  .hero-inner { min-height: auto; gap: 28px; padding: 34px 0; }
  h1 { font-size: 35px; }
  .lead { font-size: 16px; }
  .hero-photo { aspect-ratio: 4 / 3; }
  .agent-console { right: 12px; bottom: 16px; }
  section { padding: 58px 0; }
  .problem-grid, .output-grid, .process { grid-template-columns: 1fr; }
  .process-step { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .process-step:last-child { border-bottom: 0; }
  .field-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .final .wrap { display: block; }
  .final .button { margin-top: 20px; }
}
