:root {
  --bg: #f3f6f8;
  --bg-deep: #e8eef2;
  --surface: rgba(255, 255, 255, 0.8);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --line: rgba(32, 53, 71, 0.12);
  --line-strong: rgba(32, 53, 71, 0.2);
  --ink: #16212b;
  --muted: #5f7182;
  --accent: #1e4f7a;
  --accent-soft: #6f9fc3;
  --accent-pale: #d8e6f0;
  --focus: #f3a86a;
  --shadow: 0 24px 64px rgba(23, 42, 56, 0.08);
  --shadow-soft: 0 14px 40px rgba(23, 42, 56, 0.06);
  --max: 1260px;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(214, 228, 239, 0.9), transparent 32%),
    radial-gradient(circle at top right, rgba(228, 236, 242, 0.82), transparent 28%),
    linear-gradient(180deg, #f4f7f9 0%, #eff4f7 36%, #f6f8fa 100%);
  font-family: "SF Pro Display", "SF Pro JP", "Hiragino Sans", "Yu Gothic", "YuGothic", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(244, 247, 249, 0.72);
  border-bottom: 1px solid rgba(22, 33, 43, 0.06);
}

.topbar-inner,
.page-shell {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.topbar-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #f7fafc;
  font-weight: 700;
  background: linear-gradient(180deg, #254e74 0%, #18364f 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.brand-text {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-sub {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
}

.topnav a {
  transition: color 180ms ease;
}

.topnav a:hover {
  color: var(--ink);
}

.hero {
  padding: 0 0 42px;
}

.hero-panel,
.cta-shell {
  border: 1px solid rgba(23, 42, 56, 0.08);
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84) 0%, rgba(248, 251, 253, 0.9) 100%);
  box-shadow: var(--shadow);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  min-height: 760px;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: linear-gradient(180deg, #dfe4e7 0%, #d4d9dc 100%);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 36%, rgba(255, 255, 255, 0.12), transparent 24%),
    radial-gradient(circle at 34% 62%, rgba(255, 255, 255, 0.08), transparent 20%),
    linear-gradient(90deg, rgba(223, 228, 231, 0.08) 0%, rgba(223, 228, 231, 0.02) 18%, rgba(238, 242, 244, 0.08) 40%, rgba(244, 246, 247, 0.8) 62%, rgba(246, 248, 249, 0.94) 100%);
  pointer-events: none;
}

.cta-shell {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84) 0%, rgba(248, 251, 253, 0.9) 100%);
}

.hero-copy,
.hero-visual,
.hero-overlay {
  position: relative;
  z-index: 1;
}

.hero-visual {
  position: absolute;
  inset: 0;
}

.hero-overlay {
  position: relative;
  min-height: 760px;
  display: grid;
  grid-template-columns: minmax(320px, 1.08fr) minmax(420px, 0.92fr);
  column-gap: clamp(48px, 7vw, 120px);
  align-items: start;
  padding: 72px min(6vw, 72px) 56px min(5vw, 56px);
}

.hero-overlay-node {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-overlay-node::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(223, 228, 231, 0.18) 0%, rgba(223, 228, 231, 0.06) 18%, rgba(238, 242, 244, 0.04) 40%, rgba(244, 246, 247, 0.48) 62%, rgba(246, 248, 249, 0.84) 100%);
  pointer-events: none;
}

.hero-overlay-node-field {
  width: 100%;
  height: 100%;
}

.hero-title-anchor {
  position: relative;
  z-index: 2;
  align-self: start;
  margin-top: 10px;
  color: var(--ink);
  font-family: "Helvetica Neue", "SF Pro Display", "Avenir Next", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: clamp(68px, 7.4vw, 120px);
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 0.88;
  max-width: 4.2ch;
}

.hero-title-anchor-en {
  display: block;
}

.hero-title-anchor-ja {
  display: block;
  margin-top: 12px;
  font-size: clamp(24px, 2vw, 36px);
  letter-spacing: 0.22em;
  text-align: left;
  color: rgba(22, 33, 43, 0.72);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  z-index: 2;
  width: min(100%, 600px);
  margin-left: 0;
  margin-top: 44px;
  padding: 0;
  align-items: flex-start;
  text-align: left;
}

.eyebrow,
.panel-label,
.workspace-label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(21, 27, 34, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.section-label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(30, 79, 122, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  color: #1e4f7a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

h1,
h2,
h3,
h4 {
  font-family: "Helvetica Neue", "SF Pro Display", "Avenir Next", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
}

h1 {
  margin: 0 0 24px;
  font-size: clamp(40px, 4.8vw, 70px);
  line-height: 0.99;
  max-width: 11.2em;
  font-weight: 700;
  letter-spacing: -0.022em;
  font-feature-settings: "palt" 1;
  text-wrap: pretty;
}

.hero-title-ja {
  display: block;
  max-width: 10em;
  letter-spacing: -0.028em;
  line-height: 1.03;
  text-align: left;
}

.lead {
  max-width: 32ch;
  margin: 0;
  color: rgba(39, 48, 57, 0.78);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.8;
}

.hero-actions,
.problem-grid,
.concept-grid,
.how-grid,
.output-grid,
.value-grid,
.company-grid {
  display: grid;
  gap: 18px;
}

.hero-actions {
  grid-template-columns: repeat(2, minmax(0, max-content));
  margin-top: 28px;
  justify-content: start;
}

.hero-note {
  max-width: 34ch;
  margin-top: 26px;
  color: rgba(39, 48, 57, 0.68);
  font-size: 14px;
  line-height: 1.7;
}

.button {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(180deg, #2a3138 0%, #161c22 100%);
  color: #f6f9fb;
  border-color: #161c22;
  box-shadow: 0 12px 24px rgba(16, 20, 24, 0.18);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.34);
  color: var(--ink);
}

.section .button-primary {
  background: linear-gradient(180deg, #204d75 0%, #193a57 100%);
  border-color: #183a57;
  box-shadow: 0 12px 24px rgba(24, 58, 87, 0.18);
}

.section .button-secondary,
.cta-section .button-secondary {
  background: rgba(255, 255, 255, 0.72);
}

.metric-card,
.info-card,
.workspace-card,
.output-card {
  border: 1px solid rgba(22, 33, 43, 0.08);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
}

.metric-card {
  padding: 18px;
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
  line-height: 1.25;
}

.metric-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.hero-scroll-copy {
  max-width: 720px;
  margin: 20px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 78px 0 10px;
}

.section-head {
  max-width: 820px;
  margin-bottom: 28px;
}

h2 {
  margin: 12px 0 0;
  font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1.05;
}

.section-desc {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.problem-grid,
.output-grid,
.value-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.concept-grid,
.how-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.company-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card,
.workspace-card,
.output-card,
.cta-shell {
  padding: 24px;
}

.card-index {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: rgba(216, 230, 240, 0.78);
  font-size: 13px;
  font-weight: 700;
}

h3 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.15;
}

.info-card p,
.workspace-card p,
.output-card p,
.cta-copy p,
.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.concept-panel-large {
  padding: 28px;
}

.concept-panel-large p {
  max-width: 640px;
  color: var(--muted);
}

.concept-diagram {
  display: grid;
  grid-template-columns: repeat(7, auto);
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.diagram-node {
  min-width: 110px;
  padding: 16px 18px;
  border: 1px solid rgba(30, 79, 122, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  text-align: center;
  font-weight: 700;
}

.diagram-node-accent {
  background: rgba(243, 168, 106, 0.16);
  border-color: rgba(211, 140, 79, 0.26);
}

.diagram-link {
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, rgba(67, 109, 143, 0.32), rgba(67, 109, 143, 0.82));
}

.concept-stack {
  display: grid;
  gap: 14px;
}

.info-card-soft {
  background: rgba(249, 251, 252, 0.86);
}

.step-list {
  display: grid;
  gap: 14px;
}

.step-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px;
  border: 1px solid rgba(22, 33, 43, 0.08);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.step-no {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #f8fafb;
  background: linear-gradient(180deg, #38678d 0%, #244663 100%);
  font-size: 20px;
  font-weight: 700;
}

.step-card h3 {
  margin-bottom: 8px;
  font-size: 24px;
}

.workspace-flow {
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  gap: 14px;
  margin-top: 18px;
  align-items: center;
}

.flow-column h4 {
  margin: 0 0 14px;
  font-size: 16px;
}

.flow-column {
  padding: 20px;
  border: 1px solid rgba(22, 33, 43, 0.06);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.mini-node {
  padding: 12px 14px;
  border: 1px solid rgba(22, 33, 43, 0.08);
  border-radius: 14px;
  background: rgba(245, 249, 251, 0.88);
  color: var(--ink);
  font-size: 13px;
}

.mini-node + .mini-node {
  margin-top: 10px;
}

.mini-node-strong {
  background: rgba(216, 230, 240, 0.82);
}

.flow-arrow {
  height: 2px;
  background: linear-gradient(90deg, rgba(47, 95, 134, 0.22), rgba(47, 95, 134, 0.82));
  position: relative;
}

.flow-arrow::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid rgba(47, 95, 134, 0.82);
  border-right: 2px solid rgba(47, 95, 134, 0.82);
  transform: translateY(-50%) rotate(45deg);
}

.output-card {
  min-height: 220px;
}

.output-icon {
  width: 74px;
  min-height: 34px;
  margin-bottom: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(216, 230, 240, 0.82);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.info-card-wide {
  min-height: 210px;
}

.cta-section {
  padding: 84px 0 88px;
}

.cta-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 22px;
  align-items: center;
}

.cta-copy h2 {
  margin-bottom: 12px;
}

.cta-actions {
  display: grid;
  gap: 12px;
}

@media (max-width: 1040px) {
  .concept-grid,
  .how-grid,
  .cta-shell {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: auto;
  }

  .hero-overlay {
    min-height: 640px;
    grid-template-columns: 1fr;
    column-gap: 0;
    align-items: end;
    padding: 22px;
  }

  .hero-title-anchor {
    margin-top: 0;
    max-width: none;
    font-size: clamp(52px, 9vw, 92px);
  }

  .hero-copy {
    width: min(100%, 720px);
    max-width: none;
    margin-left: 0;
    margin-top: 12px;
    padding: 0;
  }

  .problem-grid,
  .output-grid,
  .value-grid,
  .company-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar-inner,
  .page-shell {
    width: min(calc(100% - 22px), var(--max));
  }

  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
  }

  .hero {
    padding-top: 22px;
  }

  .hero-panel {
    min-height: 420px;
  }

  .hero-actions,
  .workspace-flow,
  .cta-actions {
    grid-template-columns: 1fr;
  }

  .flow-arrow {
    width: 2px;
    height: 32px;
    justify-self: center;
    background: linear-gradient(180deg, rgba(47, 95, 134, 0.22), rgba(47, 95, 134, 0.82));
  }

  .flow-arrow::after {
    right: 50%;
    top: auto;
    bottom: -1px;
    transform: translateX(50%) rotate(135deg);
  }

  .hero-overlay {
    min-height: 420px;
    padding: 14px;
  }

  .hero-copy {
    width: 100%;
    margin-top: 8px;
  }

  h1 {
    font-size: clamp(34px, 10vw, 54px);
  }

  h2 {
    font-size: clamp(30px, 8vw, 42px);
  }

  .concept-diagram {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .diagram-link {
    width: 1px;
    height: 22px;
    margin-left: 20px;
    background: linear-gradient(180deg, rgba(67, 109, 143, 0.32), rgba(67, 109, 143, 0.82));
  }
}
