:root {
  color-scheme: light;
  --ink: #242A27;
  --ink-muted: #626C66;
  --paper: #FFFFFF;
  --muted: #F5F7F6;
  --line: #DEE5E0;
  --accent: #075C3B;
  --accent-ink: #FFFFFF;
  --selected: #EAF4EE;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  overflow-wrap: anywhere;
}

.wrap {
  width: min(1080px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.top {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.top-row,
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.top-row {
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 18px;
  line-height: 1;
}

.brand img {
  display: block;
  width: 40px;
  height: 40px;
}

.login {
  color: var(--accent);
  font-weight: 700;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand:focus-visible,
.login:focus-visible,
.button:focus-visible,
footer a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  line-height: 1.4;
}

h1 {
  margin: 12px 0 16px;
  font-size: clamp(28px, 8vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(24px, 6.4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.balance-title .phrase {
  display: inline-block;
}

h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
}

p {
  margin: 0;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-weight: 700;
  line-height: 1.6;
}

.lead,
.copy > p {
  font-size: 16px;
  line-height: 1.75;
}

.lead {
  max-width: 36em;
}

.hero,
.band,
section {
  padding: 28px 0 40px;
}

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

.hero-layout,
.stage,
.shots {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.copy {
  min-width: 0;
}

.shots {
  gap: 20px;
  min-width: 0;
}

figure {
  margin: 0;
  min-width: 0;
}

figure img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--paper);
}

.icon-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.icon-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.icon-list svg {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  padding: 10px;
  border-radius: 14px;
  background: var(--selected);
  border: 1px solid var(--line);
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-list p {
  margin-top: 8px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 700;
}

.button:hover {
  background: #05492F;
}

.actions {
  margin-top: 24px;
}

.step-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.step-list li {
  display: grid;
  grid-template-columns: auto 44px minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
}

.step-index {
  color: var(--accent);
  font-weight: 700;
  font-size: 18px;
  line-height: 44px;
  min-width: 1.8em;
}

.step-list svg {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 14px;
  background: var(--selected);
  border: 1px solid var(--line);
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step-list h3 {
  margin: 8px 0 4px;
}

.step-list p {
  line-height: 1.75;
}

.legal-note {
  margin: 0 0 8px;
  max-width: 40em;
}

.footer-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 0;
  font-weight: 700;
}

footer {
  padding: 28px 0 48px;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.7;
  border-top: 1px solid var(--line);
  background: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0;
}

.footer-links a,
.footer-links .measure-choice {
  color: var(--accent);
}

.footer-links .measure-choice {
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

@media (max-width: 640px) {
  .brand {
    height: 32px;
    font-size: 15px;
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

  .hero .button,
  .closing .button,
  .steps .button {
    width: 100%;
  }

  .footer-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .footer-links a,
  .footer-links .measure-choice {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (min-width: 960px) {
  .hero,
  .band,
  section {
    padding: 64px 0;
  }

  .hero-layout,
  .stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
    gap: 48px;
    align-items: start;
  }

  .lead,
  .copy > p {
    font-size: 18px;
    max-width: 36em;
  }

  .icon-list.pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 32px;
  }

  .closing .stage {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
  }

  .step-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 40px;
  }
}
