:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-deep: #030812;
  --panel: rgba(255, 255, 255, 0.065);
  --panel-strong: rgba(255, 255, 255, 0.11);
  --text: #f8fbff;
  --muted: rgba(248, 251, 255, 0.72);
  --faint: rgba(218, 234, 255, 0.54);
  --line: rgba(255, 255, 255, 0.14);
  --ink: #111827;
  --paper: #f6f8f7;
  --paper-muted: #526170;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--bg-deep);
  color: var(--text);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

img {
  display: block;
}

.site-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 3;
  padding: 1rem clamp(1rem, 4vw, 4rem);
}

.brand {
  display: inline-grid;
  grid-template-columns: 1.95rem minmax(0, 1fr);
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 1.95rem;
  height: 1.95rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.22rem;
}

.brand-mark img {
  width: 100%;
  height: auto;
}

.brand-copy {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.brand-copy strong,
.brand-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-copy strong {
  font-size: 0.88rem;
  font-weight: 900;
}

.brand-copy small {
  color: var(--faint);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(24rem, 0.84fr) minmax(24rem, 0.72fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  min-height: 84vh;
  padding: clamp(6.8rem, 10vw, 8.5rem) clamp(1.3rem, 6vw, 6rem) clamp(3.2rem, 7vw, 5rem);
  background:
    linear-gradient(90deg, rgba(3, 8, 18, 0.98) 0%, rgba(7, 17, 31, 0.95) 54%, rgba(7, 17, 31, 0.78) 100%),
    var(--bg);
}

.hero-copy,
.product-preview,
.sample-copy,
.system-cards,
.system-cards article,
.problem-showcase,
.hero-facts,
.sample-tabs {
  min-width: 0;
}

.section-label {
  margin: 0 0 0.8rem;
  color: rgba(218, 234, 255, 0.74);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.hero-copy h1,
.section-heading h2,
.system-section h2 {
  margin: 0;
  color: #fff;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-copy h1 {
  max-width: none;
  font-size: clamp(2.8rem, 4.6vw, 5.1rem);
  line-height: 1.02;
  text-wrap: balance;
  word-break: keep-all;
  overflow-wrap: normal;
}

.hero-copy h1 span {
  display: block;
  white-space: nowrap;
}

.hero-lead {
  max-width: 41rem;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.42vw, 1.18rem);
  line-height: 1.78;
  overflow-wrap: anywhere;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 40rem;
  margin-top: 1.25rem;
}

.hero-facts span,
.system-list span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(248, 251, 255, 0.84);
  padding: 0 0.65rem;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.2;
  min-width: 0;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  border-radius: 8px;
  padding: 0 1.2rem;
  font-weight: 900;
  line-height: 1.2;
  border: 1px solid #fff;
  background: #fff;
  color: #06101f;
  margin-top: 1.75rem;
}

.primary-action:hover,
.primary-action:focus-visible {
  transform: translateY(-1px);
}

.product-preview {
  display: grid;
  gap: 0.85rem;
  width: min(100%, 34rem);
  max-width: 34rem;
  justify-self: end;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 0.75rem;
  box-shadow: var(--shadow);
}

.sample-tabs {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.1rem;
}

.sample-tabs button {
  flex: 0 0 auto;
  min-height: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(248, 251, 255, 0.78);
  cursor: pointer;
  padding: 0 0.62rem;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sample-tabs button.active,
.sample-tabs button:hover,
.sample-tabs button:focus-visible {
  border-color: rgba(255, 255, 255, 0.78);
  background: #fff;
  color: #06101f;
}

.sample-copy {
  display: grid;
  gap: 0.25rem;
}

.sample-copy p,
.sample-copy h2 {
  margin: 0;
}

.sample-copy p {
  color: rgba(218, 234, 255, 0.7);
  font-size: 0.78rem;
  font-weight: 900;
}

.sample-copy h2 {
  color: #fff;
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
  line-height: 1.28;
}

.sample-copy span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.sample-screen {
  max-height: 30rem;
  overflow: hidden;
  border-radius: 6px;
  background: #eef2f6;
}

.sample-screen img {
  width: 100%;
  height: auto;
}

.problem-section {
  display: grid;
  grid-template-columns: minmax(0, 0.48fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  padding: clamp(4.5rem, 9vw, 7rem) clamp(1.3rem, 6vw, 6rem);
  background: var(--paper);
  color: var(--ink);
}

.problem-section .section-label {
  color: #476074;
}

.section-heading h2 {
  max-width: 12ch;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.08;
}

.problem-showcase {
  display: grid;
  overflow: hidden;
  border: 1px solid #d8dfdf;
  border-radius: 8px;
  background: #fff;
}

.problem-showcase article {
  display: grid;
  grid-template-columns: 3.1rem minmax(0, 1fr);
  gap: clamp(0.8rem, 2vw, 1.3rem);
  align-items: center;
  border-bottom: 1px solid #d8dfdf;
  padding: 1.05rem clamp(1rem, 2.3vw, 1.4rem);
}

.problem-showcase article:last-child {
  border-bottom: 0;
}

.problem-showcase span {
  color: #6a7d91;
  font-size: 0.78rem;
  font-weight: 900;
}

.problem-showcase h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.problem-showcase p {
  margin: 0;
  color: var(--paper-muted);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.system-section {
  display: grid;
  grid-template-columns: minmax(0, 0.48fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(4.5rem, 9vw, 7rem) clamp(1.3rem, 6vw, 6rem);
  border-top: 1px solid var(--line);
  background: #06101f;
}

.system-section h2 {
  max-width: 14ch;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.08;
}

.system-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.system-cards article {
  min-height: 12rem;
  background: rgba(255, 255, 255, 0.055);
  padding: clamp(1rem, 2.4vw, 1.35rem);
  min-width: 0;
}

.system-cards span {
  display: block;
  margin-bottom: 1rem;
  color: rgba(218, 234, 255, 0.58);
  font-size: 0.78rem;
  font-weight: 900;
}

.system-cards h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.05rem, 1.7vw, 1.32rem);
  line-height: 1.35;
}

.system-cards p {
  margin: 0.7rem 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.metric-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.metric-strip b {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(248, 251, 255, 0.86);
  padding: 0 0.55rem;
  font-size: 0.78rem;
  line-height: 1.2;
}

.report-thumb {
  width: 100%;
  max-height: 6.8rem;
  object-fit: cover;
  object-position: top;
  margin-top: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
}

@media (max-width: 980px) {
  .hero-section,
  .problem-section,
  .system-section {
    grid-template-columns: 1fr;
  }

  .product-preview {
    justify-self: start;
    max-width: min(100%, 34rem);
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 0.85rem 1rem;
  }

  .hero-section {
    min-height: auto;
    gap: 1.4rem;
    padding: 5.9rem 1rem 2.4rem;
  }

  .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(1.86rem, 8.2vw, 2.08rem);
    line-height: 1.13;
    word-break: keep-all;
    overflow-wrap: normal;
  }

  .hero-lead {
    margin-top: 1rem;
    font-size: 0.94rem;
    line-height: 1.72;
  }

  .hero-facts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .hero-facts span {
    min-height: 2.18rem;
    padding: 0 0.58rem;
    font-size: 0.76rem;
  }

  .primary-action {
    width: 100%;
    min-height: 3rem;
    margin-top: 1.35rem;
  }

  .product-preview {
    max-width: 100%;
    padding: 0.45rem;
  }

  .sample-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .sample-tabs button {
    width: 100%;
    min-width: 0;
    padding: 0 0.36rem;
    font-size: 0.7rem;
  }

  .sample-copy h2 {
    font-size: 1.05rem;
  }

  .sample-screen {
    max-height: 10.5rem;
  }

  .problem-section,
  .system-section {
    padding: 3.2rem 1rem;
  }

  .section-heading h2,
  .system-section h2 {
    max-width: 100%;
    font-size: 1.72rem;
    line-height: 1.22;
  }

  .problem-showcase article {
    grid-template-columns: 2.2rem minmax(0, 1fr);
    gap: 0.5rem 0.8rem;
    padding: 1rem;
  }

  .problem-showcase p {
    grid-column: 2;
  }

  .system-cards {
    grid-template-columns: 1fr;
  }

  .system-cards article {
    min-height: auto;
    padding: 1rem;
  }

  .report-thumb {
    max-height: 8.5rem;
  }
}
