:root {
  color-scheme: light;
  --ink: #202630;
  --muted: #667286;
  --brand: #62748d;
  --brand-dark: #47576d;
  --brand-pale: #e9eef4;
  --paper: #ffffff;
  --base: #f5f7f9;
  --line: #d7dee7;
  --green: #2f855a;
  --warm: #a56817;
  --shadow: 0 24px 70px rgba(37, 49, 65, 0.12);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--base);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  min-height: 76px;
  padding: 12px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(215, 222, 231, 0.88);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 11px;
  background: var(--brand);
}
.brand-mark span {
  width: 19px;
  height: 19px;
  background: #fff;
}
.site-header nav { display: flex; gap: 32px; }
.site-header nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.site-header nav a:hover { color: var(--brand-dark); }
.header-action {
  justify-self: end;
  padding: 8px 18px;
  border: 1px solid var(--brand);
  border-radius: 8px;
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 0.92fr);
  gap: clamp(48px, 7vw, 108px);
  align-items: center;
  max-width: 1280px;
  min-height: 720px;
  margin: 0 auto;
  padding: 90px clamp(24px, 5vw, 72px) 110px;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
}
.hero h1 {
  margin: 0;
  font-size: clamp(44px, 5vw, 72px);
  line-height: 1.22;
  letter-spacing: -0.055em;
}
.hero h1 span { color: var(--brand); }
.hero-lead {
  max-width: 650px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { border-color: var(--brand); background: var(--brand); color: #fff; }
.button-primary:hover { background: var(--brand-dark); }
.button-secondary { border-color: var(--line); background: var(--paper); color: var(--ink); }
.button-secondary:hover { border-color: var(--brand); }
.hero-note { margin: 18px 0 0; color: var(--muted); font-size: 13px; }

.hero-visual {
  position: relative;
  display: grid;
  grid-template-columns: 0.78fr 40px 1fr;
  align-items: center;
}
.visual-data, .visual-form {
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.visual-data {
  z-index: 1;
  padding: 18px;
  border-radius: 14px;
}
.visual-data > div:not(.visual-title) {
  display: grid;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.visual-data > div:last-child { border: 0; }
.visual-data small, .visual-form label { color: var(--muted); font-size: 10px; }
.visual-data strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; }
.visual-title { margin-bottom: 8px; font-size: 12px; font-weight: 800; }
.database-icon { color: var(--brand); }
.visual-arrow {
  z-index: 2;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 5px solid var(--base);
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
}
.visual-form {
  min-height: 370px;
  padding: 0 22px 22px;
  border-radius: 18px;
  transform: rotate(1deg);
}
.visual-window { display: flex; gap: 6px; margin: 0 -22px 22px; padding: 14px; border-bottom: 1px solid var(--line); }
.visual-window i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.visual-form p { margin: 0 0 22px; font-size: 15px; font-weight: 800; }
.visual-form label { display: block; margin: 12px 0 5px; }
.visual-input, .visual-inputs span {
  display: block;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfd;
  font-size: 11px;
}
.visual-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.visual-complete {
  display: block;
  margin-top: 18px;
  padding: 9px;
  border-radius: 6px;
  background: #edf7f1;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1120px;
  margin: 0 auto 110px;
  border-block: 1px solid var(--line);
}
.quick-facts div { padding: 24px 32px; border-right: 1px solid var(--line); }
.quick-facts div:last-child { border-right: 0; }
.quick-facts strong, .quick-facts span { display: block; }
.quick-facts strong { font-size: 15px; }
.quick-facts span { margin-top: 3px; color: var(--muted); font-size: 12px; }

.demo-section, .how-section, .support-section { padding: 110px clamp(24px, 5vw, 72px); }
.demo-section { background: var(--paper); }
.section-intro { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-intro h2, .privacy-section h2 { margin: 0; font-size: clamp(32px, 4vw, 48px); line-height: 1.35; letter-spacing: -0.035em; }
.section-intro > p:last-child { margin: 16px 0 0; color: var(--muted); }
.demo-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1120px;
  margin: 0 auto 36px;
  padding: 0;
  list-style: none;
}
.demo-steps li { position: relative; padding: 0 20px; text-align: center; }
.demo-steps li:not(:last-child)::after {
  position: absolute;
  top: 16px;
  right: -7px;
  width: 14px;
  height: 1px;
  background: var(--line);
  content: "";
}
.demo-steps span {
  display: grid;
  width: 32px;
  height: 32px;
  margin: 0 auto 10px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-pale);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
}
.demo-steps strong, .demo-steps small { display: block; }
.demo-steps strong { font-size: 14px; }
.demo-steps small { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.demo-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 28px;
  max-width: 1120px;
  margin: 0 auto;
  align-items: start;
}
.demo-guide {
  position: sticky;
  top: 100px;
  padding: 28px;
  border-radius: 16px;
  background: var(--brand-dark);
  color: #fff;
}
.guide-label { margin: 0; color: #cdd7e3; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; }
.demo-guide h3 { margin: 8px 0 10px; font-size: 22px; line-height: 1.45; }
.demo-guide > p:not(.guide-label):not(.demo-status) { color: #dfe5ec; font-size: 13px; }
.demo-guide .button { width: 100%; margin-top: 10px; }
.demo-guide .button-primary { border-color: #fff; background: #fff; color: var(--brand-dark); }
.demo-guide .button-secondary { border-color: #8493a6; background: transparent; color: #fff; }
.demo-status { margin: 20px 0 0; color: #dfe5ec; font-size: 12px; }
.demo-form {
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--base);
}
.form-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 30px; }
.form-heading span { color: var(--brand); font-size: 10px; font-weight: 800; letter-spacing: 0.14em; }
.form-heading h3 { margin: 2px 0 0; font-size: 24px; }
.form-heading .form-badge { padding: 5px 9px; border-radius: 20px; background: var(--brand-pale); letter-spacing: 0; }
.demo-form label, .demo-form legend { color: var(--ink); font-size: 13px; font-weight: 750; }
.demo-form em { color: #b84a55; font-size: 10px; font-style: normal; }
.demo-form input:not([type="radio"]):not([type="checkbox"]), .demo-form select, .demo-form textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 11px 13px;
  border: 1px solid #c9d2dc;
  border-radius: 7px;
  outline: 0;
  background: var(--paper);
  color: var(--ink);
  font-weight: 400;
}
.demo-form input:focus, .demo-form select:focus, .demo-form textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(98, 116, 141, 0.14); }
.demo-form textarea { resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 20px; }
.demo-form fieldset { margin: 0 0 20px; padding: 0; border: 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 7px; }
.choice-row label, .check-label { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); font-weight: 500; }
.check-label { margin-top: 20px; }
.choice-row input, .check-label input { accent-color: var(--brand); }

.how-section { max-width: 1120px; margin: 0 auto; }
.how-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; border: 1px solid var(--line); background: var(--line); }
.how-list article { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 34px; background: var(--paper); }
.how-list article > span { color: var(--brand); font-size: 14px; font-weight: 800; }
.how-list h3 { margin: 0; font-size: 18px; }
.how-list p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }

.support-section { background: var(--paper); }
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 980px; margin: 0 auto; }
.support-card { padding: 34px; border: 1px solid var(--line); border-radius: 14px; }
.support-card h3 { margin: 0 0 20px; font-size: 19px; }
.support-card h3 span { display: inline-grid; width: 28px; height: 28px; margin-right: 8px; place-items: center; border-radius: 50%; }
.supported h3 span { background: #e8f5ed; color: var(--green); }
.unsupported h3 span { background: #f5efe7; color: var(--warm); }
.support-card ul { margin: 0; padding-left: 22px; color: var(--muted); }
.support-card li { padding: 5px 0; }

.privacy-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: end;
  max-width: 1120px;
  margin: 0 auto;
  padding: 110px 24px;
}
.privacy-section > p { margin: 0; color: var(--muted); }
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 34px clamp(24px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: var(--paper);
}
footer p { color: var(--muted); font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 13px; }
.footer-links a { text-underline-offset: 4px; }
.footer-links a:hover { color: var(--brand-dark); }
.privacy-section > p a { display: inline-block; margin-top: 12px; color: var(--brand-dark); text-underline-offset: 4px; }

.document-page { background: var(--paper); }
.document-main { max-width: 860px; margin: 0 auto; padding: 72px 28px 96px; overflow-wrap: anywhere; }
.document-main h1 { margin: 12px 0; font-size: clamp(28px, 4vw, 40px); line-height: 1.4; letter-spacing: -0.03em; }
.document-meta { margin: 0 0 32px; color: var(--muted); font-size: 13px; }
.document-lead { font-size: 17px; line-height: 1.9; }
.document-main section { margin-top: 44px; }
.document-main h2 { margin: 0 0 16px; font-size: 22px; line-height: 1.6; scroll-margin-top: 100px; }
.document-main p, .document-main li { line-height: 1.95; }
.document-main li + li { margin-top: 10px; }
.document-main ul, .document-main ol { padding-left: 1.5em; }
.document-main a { color: var(--brand-dark); text-underline-offset: 4px; }
.document-main a:focus-visible, .footer-links a:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
.document-note { margin: 28px 0; padding: 22px 24px; border-left: 3px solid var(--brand); background: var(--base); line-height: 1.9; }
.document-note strong { display: block; margin-bottom: 6px; }
.contact-address { font-size: clamp(20px, 4vw, 28px); font-weight: 700; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 72px; }
  .hero-copy { text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { max-width: 610px; margin: 0 auto; }
  .demo-steps { grid-template-columns: 1fr 1fr; gap: 24px 0; }
  .demo-steps li:nth-child(2)::after { display: none; }
  .demo-layout { grid-template-columns: 1fr; }
  .demo-guide { position: static; }
}

@media (max-width: 640px) {
  .site-header { min-height: 64px; padding: 10px 18px; }
  .brand { font-size: 19px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 9px; }
  .brand-mark span { width: 16px; height: 16px; }
  .header-action { padding: 6px 11px; font-size: 12px; }
  .hero { gap: 56px; padding: 64px 20px 80px; }
  .hero h1 { font-size: 42px; }
  .hero-lead { font-size: 16px; }
  .hero-visual { grid-template-columns: 0.75fr 24px 1fr; }
  .visual-data { padding: 12px; }
  .visual-arrow { width: 36px; height: 36px; border-width: 4px; }
  .visual-form { min-height: 330px; padding-inline: 14px; }
  .visual-window { margin-inline: -14px; }
  .quick-facts { grid-template-columns: 1fr; margin-inline: 20px; }
  .quick-facts div { border-right: 0; border-bottom: 1px solid var(--line); text-align: center; }
  .quick-facts div:last-child { border-bottom: 0; }
  .demo-section, .how-section, .support-section { padding: 80px 20px; }
  .demo-steps { grid-template-columns: 1fr; }
  .demo-steps li::after { display: none; }
  .field-row, .how-list, .support-grid, .privacy-section { grid-template-columns: 1fr; }
  .how-list article { padding: 26px; }
  .privacy-section { gap: 24px; padding: 80px 20px; }
  footer { display: grid; gap: 12px; }
  footer p { margin: 0; }
  .document-main { padding: 44px 20px 64px; }
  .document-main h2 { font-size: 20px; }
  .document-note { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
