:root {
  color-scheme: light;
  --background: #ffffff;
  --text: #171b23;
  --heading: #080b12;
  --muted: #5d6470;
  --line: #dfe2e6;
  --line-strong: #c9ced4;
  --primary: #80c783;
  --primary-dark: #176b35;
  --primary-soft: #eef8ef;
  --intermediate: #e6a23c;
  --intermediate-dark: #9a5b00;
  --intermediate-soft: #fff8ec;
  --data: #6e86b8;
  --danger: #c5534c;
  --radius: 8px;
  --shadow: 0 12px 30px rgba(9, 22, 42, 0.12);
  --font-sans: "Hiragino Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  --font-numeric: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  font-feature-settings: normal;
  font-kerning: normal;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

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

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

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

figure {
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;
}

h1,
h2,
h3 {
  color: var(--heading);
  font-feature-settings: "palt" 1;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.18;
  text-wrap: balance;
}

h1 {
  margin-bottom: 28px;
  font-size: clamp(3.65rem, 5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

h1 span,
.heading-line {
  display: block;
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(2.5rem, 4.4vw, 4rem);
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.25rem, 1.7vw, 1.55rem);
}

p:last-child {
  margin-bottom: 0;
}

.container {
  width: min(1320px, calc(100% - 56px));
  margin-inline: auto;
}

.section {
  padding-block: 82px;
}

.mobile-break {
  display: none;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--heading);
  color: #ffffff;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid #335fba;
  outline-offset: 4px;
}

.site-header {
  border-bottom: 1px solid var(--line-strong);
  background: #ffffff;
}

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

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.brand img {
  flex: 0 0 auto;
  border-radius: 12px;
}

.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid #67b96d;
  border-radius: 7px;
  background: var(--primary);
  color: #0f2415;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.35;
  box-shadow: 0 6px 16px rgba(47, 120, 57, 0.16);
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  background: #8bd18e;
  box-shadow: 0 8px 20px rgba(47, 120, 57, 0.2);
  transform: translateY(-1px);
}

.button-small {
  min-height: 48px;
  padding: 10px 18px;
  font-size: 0.9rem;
}

.hero {
  padding-top: 58px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--line-strong);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(540px, 1.05fr);
  align-items: center;
  gap: clamp(44px, 4.5vw, 68px);
}

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

.eyebrow {
  margin-bottom: 16px;
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-lede {
  margin-bottom: 20px;
  color: var(--heading);
  font-size: clamp(1.32rem, 2vw, 1.7rem);
  font-feature-settings: "palt" 1;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.5;
}

.hero-description {
  max-width: 650px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.9;
}

.hero-button {
  min-height: 58px;
  padding-inline: 27px;
}

.offer-note {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-top: 15px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.offer-note span {
  white-space: nowrap;
}

.hero-visual,
.sequence-card,
.reflection-card {
  margin-bottom: 0;
}

.hero-visual {
  align-self: start;
  margin-top: 24px;
}

.screenshot-link {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #f5f7f9;
  box-shadow: var(--shadow);
}

.screenshot-link img {
  width: 100%;
  height: auto;
}

.screenshot-link:hover img {
  opacity: 0.98;
}

.sequence-card figcaption,
.reflection-card figcaption {
  color: var(--muted);
  font-size: 0.86rem;
}

.section-heading {
  max-width: 790px;
  margin-bottom: 44px;
}

.section-heading.compact {
  max-width: none;
}

.section-heading > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.8;
}

.section-heading > p:not(.eyebrow) + p {
  margin-top: 12px;
}

.sequence-section {
  padding-block: 52px;
  border-bottom: 1px solid var(--line-strong);
}

.sequence-section h2 {
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 4.3vw, 3.9rem);
}

.sequence-section .section-heading {
  margin-bottom: 24px;
}

.sequence {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) 34px minmax(0, 1.2fr) 34px minmax(0, 0.86fr);
  align-items: end;
  gap: 16px;
}

.sequence-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.sequence-card .screenshot-link {
  border-radius: 7px;
  box-shadow: 0 7px 18px rgba(9, 22, 42, 0.09);
}

.sequence-card figcaption {
  margin: 12px 4px 0;
  color: var(--heading);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-align: center;
}

.step-number {
  display: block;
  margin-bottom: 10px;
  color: var(--heading);
  font-family: var(--font-numeric);
  font-size: clamp(2.9rem, 3.8vw, 3.55rem);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.sequence-card:nth-of-type(2) .step-number {
  font-size: clamp(4rem, 5.2vw, 5rem);
}

.sequence-arrow {
  align-self: center;
  padding-top: 56px;
  color: var(--heading);
  font-size: 1.7rem;
  font-weight: 700;
  text-align: center;
}

.levels-section {
  padding-block: 64px;
  border-bottom: 1px solid var(--line-strong);
}

.levels-layout {
  display: grid;
  grid-template-columns: minmax(420px, 0.9fr) minmax(0, 1.45fr);
  align-items: start;
  gap: clamp(44px, 4.5vw, 64px);
}

.levels-section .section-heading {
  margin-bottom: 0;
}

.levels-section h2 {
  font-size: clamp(2.35rem, 3vw, 2.8rem);
}

.levels-section .heading-line {
  white-space: nowrap;
}

.level-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.level-card {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #ffffff;
}

.beginner-card .level-copy {
  background: var(--primary-soft);
}

.intermediate-card .level-copy {
  background: var(--intermediate-soft);
}

.level-copy {
  min-height: 128px;
  padding: 21px 22px 16px;
}

.level-copy p:last-child {
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.7;
}

.level-label {
  display: inline-block;
  margin-bottom: 7px;
  font-size: 1.12rem;
  font-feature-settings: "palt" 1;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.beginner-card .level-label {
  color: var(--primary-dark);
}

.intermediate-card .level-label {
  color: var(--intermediate-dark);
}

.level-card .screenshot-link {
  margin: 0 12px 12px;
  border-radius: 5px;
  box-shadow: none;
}

.philosophy {
  padding-block: 54px;
  border-bottom: 1px solid var(--line-strong);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(52px, 6vw, 88px);
}

.philosophy h2 {
  margin-bottom: 0;
  font-size: clamp(2.55rem, 3.6vw, 3.4rem);
}

.philosophy-copy > p {
  margin-bottom: 17px;
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.8;
}

.difference-scale {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 26px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
}

.difference-scale span {
  min-height: 48px;
  display: grid;
  place-items: center;
  padding: 7px;
  border-right: 1px solid var(--line-strong);
  font-size: 0.86rem;
  font-weight: 700;
}

.difference-scale span:last-child {
  border-right: 0;
  color: var(--danger);
}

.difference-scale span:first-child {
  color: var(--primary-dark);
}

.reflection-section {
  padding-block: 64px;
  border-bottom: 1px solid var(--line-strong);
}

.reflection-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.58fr) minmax(0, 1.62fr);
  grid-template-rows: auto auto;
  align-items: start;
  gap: 30px clamp(50px, 6vw, 88px);
}

.reflection-section .section-heading {
  grid-row: 1 / span 2;
  margin-bottom: 0;
}

.reflection-section h2 {
  font-size: clamp(2.55rem, 3.9vw, 3.65rem);
}

.learning-loop {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.learning-loop li {
  position: relative;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 22px 9px 10px;
  border-block: 1px solid var(--line-strong);
  color: var(--heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: center;
}

.learning-loop li:first-child {
  border-left: 1px solid var(--line-strong);
  border-radius: 4px 0 0 4px;
}

.learning-loop li:last-child {
  border-right: 1px solid var(--line-strong);
  border-radius: 0 4px 4px 0;
}

.learning-loop li:not(:last-child)::after {
  position: absolute;
  z-index: 1;
  right: -8px;
  width: 15px;
  height: 15px;
  border-top: 1px solid var(--line-strong);
  border-right: 1px solid var(--line-strong);
  background: #ffffff;
  content: "";
  transform: rotate(45deg);
}

.reflection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 18px;
}

.reflection-card {
  min-width: 0;
}

.reflection-card .screenshot-link {
  border-radius: 6px;
  box-shadow: none;
}

.reflection-card figcaption {
  margin-top: 9px;
}

.scope-faq {
  padding-block: 54px;
  border-bottom: 1px solid var(--line-strong);
}

.scope-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: clamp(56px, 9vw, 132px);
}

.scope-copy h2 {
  font-size: clamp(2.2rem, 3.3vw, 3.05rem);
}

.scope-copy > p:last-child {
  color: var(--muted);
  font-size: 0.94rem;
}

.faq h2 {
  margin-bottom: 12px;
  font-size: 1.16rem;
  letter-spacing: -0.025em;
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  position: relative;
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 12px 42px 12px 0;
  color: var(--heading);
  cursor: pointer;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  position: absolute;
  right: 8px;
  color: var(--primary-dark);
  content: "+";
  font-size: 1.2rem;
  font-weight: 700;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin: -1px 42px 18px 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.final-cta {
  padding-block: 62px 66px;
}

.final-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.final-cta img {
  width: 72px;
  height: 72px;
  margin-bottom: 22px;
  border-radius: 17px;
}

.final-cta h2 {
  margin-bottom: 26px;
  font-size: clamp(2.55rem, 4.2vw, 4rem);
}

.site-footer {
  border-top: 1px solid var(--line-strong);
  background: #ffffff;
}

.footer-inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-inner p {
  margin: 0;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 24px;
}

.footer-inner a {
  text-decoration: underline;
  text-decoration-color: #b8bec6;
  text-underline-offset: 4px;
}

.footer-inner a:hover {
  color: var(--heading);
}

@media (max-width: 1180px) {
  .levels-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }

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

@media (max-width: 1100px) {
  .container {
    width: min(100% - 44px, 1040px);
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(460px, 1.04fr);
    gap: 40px;
  }

  h1 {
    font-size: clamp(3.35rem, 5.6vw, 4.2rem);
  }

  .reflection-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }

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

  .reflection-section .section-heading {
    grid-row: auto;
  }
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-visual {
    width: min(100%, 880px);
    margin-top: 0;
  }

  .sequence {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .sequence-card {
    width: min(100%, 800px);
  }

  .sequence-card:nth-of-type(2) .step-number {
    font-size: clamp(2.9rem, 7vw, 4.5rem);
  }

  .sequence-arrow {
    width: min(100%, 800px);
    height: 20px;
    padding-top: 0;
    line-height: 20px;
    transform: rotate(90deg);
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 32px, 680px);
  }

  .section {
    padding-block: 68px;
  }

  .hero {
    padding-top: 58px;
    padding-bottom: 66px;
  }

  .level-grid,
  .philosophy-grid,
  .scope-grid {
    grid-template-columns: 1fr;
  }

  .philosophy-grid,
  .scope-grid {
    gap: 34px;
  }

  .level-copy {
    min-height: auto;
  }

  .learning-loop {
    grid-template-columns: 1fr;
  }

  .learning-loop li {
    min-height: 52px;
    border-inline: 1px solid var(--line-strong);
    border-top: 0;
  }

  .learning-loop li:first-child {
    border-top: 1px solid var(--line-strong);
    border-radius: 4px 4px 0 0;
  }

  .learning-loop li:last-child {
    border-radius: 0 0 4px 4px;
  }

  .learning-loop li:not(:last-child)::after {
    right: auto;
    bottom: -8px;
    border-top: 0;
    border-right: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line-strong);
    transform: rotate(45deg);
  }

  .reflection-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column-reverse;
    justify-content: center;
    padding-block: 28px;
  }

  .footer-inner nav {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .mobile-break {
    display: initial;
  }

  h1 {
    font-size: clamp(2.45rem, 11.8vw, 3.55rem);
    line-height: 1.13;
  }

  h2,
  .sequence-section h2,
  .philosophy h2,
  .reflection-section h2,
  .final-cta h2 {
    font-size: clamp(2rem, 9vw, 2.75rem);
  }

  .levels-section h2 {
    font-size: clamp(1.55rem, 7.8vw, 2.5rem);
  }

  .header-inner {
    flex-wrap: wrap;
    padding-block: 14px;
  }

  .header-inner .button {
    width: 100%;
  }

  .hero-grid {
    gap: 42px;
  }

  .hero-lede {
    font-size: 1.22rem;
  }

  .hero-description br {
    display: none;
  }

  .hero-button {
    width: 100%;
  }

  .offer-note {
    display: grid;
    gap: 2px;
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .step-number,
  .sequence-card:nth-of-type(2) .step-number {
    font-size: 3rem;
  }

  .difference-scale {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .difference-scale span:nth-child(2) {
    border-right: 0;
  }

  .difference-scale span:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line-strong);
  }
}

@media (max-width: 350px) {
  .container {
    width: calc(100% - 24px);
  }

  .brand {
    font-size: 0.98rem;
  }

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

  .button {
    padding-inline: 14px;
  }

  .section {
    padding-block: 60px;
  }
}

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

  .button {
    transition: none;
  }
}
