:root {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --secondary: #8b5cf6;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --surface: #ffffff;
  --surface-muted: #f8fafc;
  --surface-soft: #f1f5f9;
  --text: #111827;
  --muted: #4b5563;
  --subtle: #6b7280;
  --line: #e5e7eb;
  --line-strong: #cbd5e1;
  --shadow: 0 16px 40px rgba(17, 24, 39, 0.08);
  font-family: Roboto, "Hiragino Sans", "Yu Gothic", Meiryo, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--surface);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--surface);
}

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

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

button,
input,
textarea {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: Poppins, "Hiragino Sans", "Yu Gothic", Meiryo, system-ui, sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 840px;
  margin-bottom: 24px;
  font-size: clamp(32px, 2.7vw, 40px);
  line-height: 1.18;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.25;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.35;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  background: var(--text);
  color: var(--surface);
  font-size: 13px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
  line-height: 1.25;
}

.brand small {
  margin-top: 2px;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--primary);
}

.hero-section,
.final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(64px, 8vw, 112px) 0;
}

.hero-copy,
.contact-copy {
  max-width: 880px;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 600;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

.hero-actions p {
  max-width: 440px;
  margin: 0;
  color: var(--subtle);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: var(--surface);
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.primary-button:hover,
.primary-button:focus-visible {
  background: var(--primary-dark);
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.24);
  outline: none;
  transform: translateY(-1px);
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.hero-note {
  position: absolute;
  right: 16px;
  bottom: 16px;
  max-width: min(380px, calc(100% - 32px));
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
}

.hero-note strong,
.hero-note span {
  display: block;
}

.hero-note strong {
  margin-bottom: 4px;
  font-size: 14px;
}

.hero-note span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.65;
}

.section-band {
  padding: clamp(64px, 8vw, 104px) 0;
  background: var(--surface);
}

.quiet-band {
  background: var(--surface-muted);
}

.section-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.two-column,
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.section-heading {
  max-width: 760px;
}

.section-heading.compact {
  max-width: 800px;
  margin-bottom: 32px;
}

.section-heading p,
.contact-copy p {
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.8;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.stat-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.stat-card span,
.effect-row span,
.case-title span {
  display: block;
  margin-bottom: 8px;
  color: var(--subtle);
  font-size: 13px;
  font-weight: 800;
}

.stat-card strong {
  color: var(--text);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.25;
}

.problem-panel,
.contact-form {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 32px;
  color: var(--text);
  font-weight: 700;
  line-height: 1.7;
}

.check-list li::before {
  position: absolute;
  top: 3px;
  left: 0;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: #dbeafe;
  color: var(--primary);
  content: "✓";
  font-size: 13px;
  font-weight: 900;
}

.empathy-box {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
}

.empathy-box strong {
  display: block;
  margin-bottom: 8px;
}

.empathy-box p {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.75;
}

.solution-grid,
.difference-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.solution-card,
.difference-grid article,
.price-card,
.case-card,
.aggregate-card,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.solution-card,
.difference-grid article,
.price-card {
  padding: 24px;
}

.solution-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 32px;
  margin-bottom: 20px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--primary);
  font-family: Inconsolata, ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 900;
}

.solution-card p,
.difference-grid p,
.price-card li,
.effect-row p,
.case-card dd,
.aggregate-card p,
.aggregate-metrics dd,
.faq-list p,
.form-note {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.75;
}

.effect-table {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.effect-row {
  display: grid;
  grid-template-columns: 180px minmax(240px, 0.7fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 24px;
  border-top: 1px solid var(--line);
}

.effect-row:first-child {
  border-top: 0;
}

.effect-row strong {
  font-size: 22px;
  line-height: 1.3;
}

.effect-row p {
  margin: 0;
}

.flow-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-list li {
  position: relative;
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.flow-list span {
  display: grid;
  width: 40px;
  height: 40px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--primary);
  color: var(--surface);
  font-weight: 900;
}

.flow-list p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.75;
}

.price-card {
  position: relative;
}

.price-card.recommended {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.recommend-label {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--surface);
  font-size: 12px;
  font-weight: 900;
}

.price,
.monthly {
  margin: 0;
  font-weight: 900;
  line-height: 1.4;
}

.price {
  margin-top: 20px;
  color: var(--text);
  font-size: 28px;
}

.monthly {
  margin-bottom: 20px;
  color: var(--primary);
  font-size: 18px;
}

.price-card ul {
  margin: 0;
  padding-left: 18px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 0;
}

.faq-list summary {
  min-height: 56px;
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 900;
  line-height: 1.5;
}

.faq-list summary:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.3);
  outline-offset: 2px;
}

.faq-list p {
  margin: 0;
  padding: 0 20px 20px;
}

.case-list {
  display: grid;
  gap: 16px;
}

.case-card {
  padding: 24px;
}

.case-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.case-title h3 {
  margin-bottom: 16px;
}

.case-card dl,
.aggregate-metrics {
  display: grid;
  gap: 0;
  margin: 0;
}

.case-card dl {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.case-card dl div {
  padding: 0 16px;
  border-left: 1px solid var(--line);
}

.case-card dl div:first-child {
  padding-left: 0;
  border-left: 0;
}

.case-card dt,
.aggregate-metrics dt {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.5;
}

.case-card dd {
  margin: 0;
}

.aggregate-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 32px;
  margin-top: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.aggregate-card h3 {
  font-size: 24px;
}

.aggregate-card p {
  margin-bottom: 0;
}

.aggregate-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.aggregate-metrics div {
  padding: 16px;
  border-left: 1px solid var(--line);
  background: var(--surface-muted);
}

.aggregate-metrics div:first-child {
  border-left: 0;
}

.aggregate-metrics dd {
  margin: 0;
  color: var(--primary);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
}

.final-cta {
  border-top: 1px solid var(--line);
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  background: var(--surface);
  outline: none;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-button {
  width: 100%;
  margin-top: 4px;
}

.form-button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
}

.form-status {
  display: none;
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.6;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  background: #dcfce7;
  color: #166534;
}

.form-status.is-error {
  background: #fee2e2;
  color: #991b1b;
}

.form-note {
  margin: 0;
  font-size: 12px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 420ms ease, transform 420ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.32);
  outline-offset: 3px;
}

@media (max-width: 1120px) {
  .nav-links {
    display: none;
  }

  .hero-section,
  .final-cta,
  .two-column,
  .faq-layout,
  .aggregate-card {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 720px;
  }

  .solution-grid,
  .difference-grid,
  .pricing-grid,
  .stat-grid,
  .flow-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .effect-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .case-card dl,
  .aggregate-metrics {
    grid-template-columns: 1fr;
  }

  .case-card dl div,
  .aggregate-metrics div {
    padding: 16px 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .case-card dl div:first-child,
  .aggregate-metrics div:first-child {
    padding-top: 0;
    border-top: 0;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 12px 16px;
  }

  .brand small {
    display: none;
  }

  .hero-section,
  .final-cta,
  .section-inner {
    width: min(100% - 32px, 1180px);
  }

  .hero-section,
  .final-cta {
    padding: 48px 0;
  }

  .section-band {
    padding: 56px 0;
  }

  .solution-grid,
  .difference-grid,
  .pricing-grid,
  .stat-grid,
  .flow-list {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    align-items: stretch;
  }

  .primary-button {
    width: 100%;
  }

  .hero-note {
    position: static;
    max-width: none;
    margin-top: 12px;
  }

  .case-title {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
