@font-face {
  font-family: "Zen Maru Gothic";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/zen-maru-gothic-700.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --paper: #fffdf7;
  --ink: #3d3a34;
  --muted: #716b60;
  --brown: #66574c;
  --yellow: #fff1ad;
  --pink: #ffdce5;
  --green: #d6efdc;
  --display: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic",
    sans-serif;
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-underline-offset: 5px;
}

a:focus-visible {
  outline: 3px solid #397749;
  outline-offset: 6px;
}

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

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

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.5;
  text-wrap: balance;
}

.wrap {
  width: min(1120px, calc(100% - 96px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 8px 16px;
  transform: translateY(-150%);
  border-radius: 8px;
  background: white;
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.site-header nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
}

.site-header nav a,
.site-footer nav a {
  padding-block: 8px;
  font-size: 14px;
  text-decoration: none;
}

.site-header nav a:hover,
.site-footer nav a:hover {
  text-decoration: underline;
}

.hero {
  display: grid;
  grid-template-columns: 1.18fr 1fr;
  align-items: center;
  gap: 64px;
  padding-block: 56px 96px;
}

.eyebrow,
.section-tag {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.small-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6fcf8e;
}

h1 {
  font-size: clamp(40px, 4.2vw, 60px);
  line-height: 1.6;
  letter-spacing: -0.055em;
}

h1 > span {
  display: block;
}

mark {
  padding: 0 0.04em;
  background: linear-gradient(transparent 68%, var(--green) 68%, var(--green) 93%, transparent 93%);
  color: inherit;
}

.hero-lead {
  max-width: 460px;
  margin-top: 26px;
  font-size: 16px;
  line-height: 2.05;
}

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

.button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 12px 26px;
  border-radius: 14px;
  background: var(--brown);
  box-shadow: 0 4px 12px rgb(61 58 52 / 10%);
  color: var(--paper);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  background: #51443b;
}

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.learning-path {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
}

.path-note {
  padding: 5px 13px;
  border-radius: 5px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
}

.path-note:first-child {
  transform: rotate(-4deg);
}

.path-note:last-child {
  transform: rotate(4deg);
}

.path-arrow {
  color: var(--muted);
  font-size: 14px;
}

.note-yellow {
  background: var(--yellow);
}

.note-pink {
  background: var(--pink);
}

.note-green {
  background: var(--green);
}

.hero-visual {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 20px;
  padding: 76px 0 36px;
  background: radial-gradient(ellipse, #f4ecd9 0%, #f4ecd9 46%, transparent 70%);
}

.screen {
  display: block;
  width: 288px;
  max-width: 100%;
  padding: 6px;
  border: 1px solid #e9e2d4;
  border-radius: 28px;
  background: white;
  box-shadow: 0 16px 40px rgb(61 58 52 / 10%);
}

.screen img {
  width: 100%;
  border-radius: 22px;
}

.hero-screen {
  width: 260px;
  transform: rotate(3deg);
}

.hero-note {
  position: absolute;
  z-index: 1;
  top: 6px;
  left: 12px;
  padding: 9px 16px;
  transform: rotate(-6deg);
  border-radius: 5px;
  box-shadow: 0 3px 8px rgb(61 58 52 / 6%);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
}

.word-note {
  justify-self: end;
  padding: 20px 24px;
  transform: rotate(-5deg);
  border-radius: 7px 7px 24px 7px;
  background: var(--green);
  box-shadow: 0 7px 18px rgb(61 58 52 / 9%);
}

.word-note-label {
  font-size: 11px;
  font-weight: 700;
}

.word-note p {
  margin-block: 8px;
  font-size: 22px;
  line-height: 1.5;
}

.word-note > span:last-child {
  font-size: 12px;
}

.hero-caption {
  position: absolute;
  bottom: 8px;
  color: var(--muted);
  font-size: 11px;
}

.bridge {
  background: #f5f0e5;
}

.bridge-inner {
  padding-block: 70px;
  text-align: center;
}

.bridge h2 {
  margin-block: 16px 20px;
  font-size: clamp(28px, 3.2vw, 38px);
}

.bridge p:not(.section-tag) {
  line-height: 2.1;
}

.bridge-last {
  margin-top: 12px;
  font-weight: 700;
}

.learning {
  padding-block: 96px 64px;
}

.section-heading {
  margin-bottom: 72px;
  text-align: center;
}

.section-heading h2 {
  margin-block: 18px;
  font-size: clamp(30px, 3.4vw, 42px);
}

.example-word {
  margin-inline: 4px;
  padding: 3px 10px;
  border-radius: 5px;
  background: white;
  font-weight: 700;
}

.step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 72px;
  padding-block: 40px 76px;
}

.step + .step {
  border-top: 1px dashed #d9d0be;
  padding-top: 76px;
}

.step-copy {
  max-width: 440px;
}

.step-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
}

.step-number {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  transform: rotate(-5deg);
  border-radius: 8px;
  font-family: sans-serif;
  font-size: 17px;
}

.step h3 {
  margin-top: 24px;
  font-size: clamp(26px, 2.8vw, 34px);
}

.feature-name {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.step-description {
  margin-top: 24px;
  line-height: 2.1;
}

.example {
  margin-top: 32px;
  padding: 22px 24px;
  border-radius: 8px 8px 22px 8px;
}

.example-label {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
}

.example p {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
}

.example strong {
  font-size: 24px;
}

.example-meaning {
  font-size: 14px;
}

.example .example-sentence {
  display: block;
  font-size: 19px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.example-sentence strong {
  font-size: inherit;
}

.example-sentence ins {
  padding: 3px 5px;
  border-radius: 4px;
  background: #9fdeb3;
  font-weight: 700;
  text-decoration: none;
}

.example-tip {
  display: block;
  margin-top: 8px;
  font-size: 12px;
}

.step-figure {
  display: grid;
  justify-items: center;
  min-width: 0;
}

.step-recall .step-copy {
  grid-column: 2;
  grid-row: 1;
}

.step-recall .step-figure {
  grid-column: 1;
  grid-row: 1;
}

figcaption {
  margin-top: 22px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

figcaption span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}

.screenshot-link:hover {
  border-color: #a99a86;
}

.screenshots-caption {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.story {
  background: #f5f0e5;
}

.story-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 80px;
  padding-block: 96px;
}

.story h2 {
  margin-top: 20px;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.7;
}

.story-notes {
  display: flex;
  gap: 8px;
  margin-top: 32px;
}

.story-note {
  display: grid;
  width: 74px;
  height: 68px;
  place-items: center;
  transform: rotate(-7deg);
  border-radius: 3px 3px 14px 3px;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
}

.story-note:nth-child(2) {
  transform: rotate(4deg);
}

.story-letter {
  padding: 36px 40px;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 3px 12px rgb(61 58 52 / 4%);
  font-size: 15px;
  line-height: 2.15;
}

.story-letter p + p {
  margin-top: 20px;
}

.story-letter .letter-opening {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
}

.story-letter .letter-opening + .letter-opening {
  margin-top: 4px;
}

.letter-signature {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.start {
  padding-block: 88px;
  text-align: center;
}

.start-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.start h2 {
  margin-block: 18px;
  font-size: clamp(28px, 3.2vw, 40px);
}

.start .button {
  margin-top: 28px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 32px;
  padding-block: 28px 36px;
  border-top: 1px solid #e9e2d4;
}

.footer-brand {
  margin-right: auto;
  font-size: 20px;
}

.site-footer nav {
  gap: 24px;
}

.site-footer nav a,
.site-footer small {
  color: var(--muted);
  font-size: 12px;
}

.mobile-break {
  display: none;
}

@media (max-width: 960px) {
  .wrap {
    width: calc(100% - 64px);
  }

  .hero {
    gap: 32px;
  }

  h1 {
    font-size: 40px;
  }

  .hero-screen {
    width: 230px;
  }

  .hero-note {
    left: 0;
    font-size: 12px;
  }

  .word-note {
    padding: 16px 20px;
  }

  .word-note p {
    font-size: 19px;
  }

  .step,
  .story-inner {
    gap: 40px;
  }

  .example {
    padding: 20px;
  }

  .story-letter {
    padding: 28px;
  }
}

@media (max-width: 700px) {
  html {
    scroll-padding-top: 20px;
  }

  .wrap {
    width: calc(100% - 40px);
  }

  .site-header {
    gap: 16px;
    padding-block: 20px;
  }

  .brand {
    gap: 6px;
    font-size: 22px;
  }

  .site-header .brand img {
    width: 36px;
    height: 36px;
  }

  .site-header nav {
    gap: 16px;
  }

  .site-header nav a {
    font-size: 12px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-block: 28px 52px;
  }

  .eyebrow {
    margin-bottom: 18px;
    font-size: 12px;
  }

  h1 {
    font-size: clamp(34px, 10vw, 48px);
    line-height: 1.6;
  }

  .hero-lead {
    margin-top: 20px;
    font-size: 15px;
  }

  .hero-actions {
    gap: 16px;
    margin-top: 24px;
  }

  .button {
    gap: 20px;
    padding-inline: 22px;
    font-size: 15px;
  }

  .text-link {
    font-size: 13px;
  }

  .learning-path {
    gap: 8px;
    margin-top: 28px;
  }

  .path-note {
    padding-inline: 11px;
  }

  .hero-visual {
    width: min(360px, 100%);
    margin-inline: auto;
    padding-block: 76px 36px;
  }

  .hero-screen {
    width: 228px;
  }

  .bridge-inner {
    padding-block: 52px;
  }

  .bridge p:not(.section-tag) {
    font-size: 15px;
  }

  .learning {
    padding-block: 64px 48px;
  }

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

  .section-heading h2 {
    font-size: 30px;
  }

  .section-heading > p:last-child {
    font-size: 14px;
  }

  .step {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-block: 20px 48px;
  }

  .step + .step {
    padding-top: 48px;
  }

  .step-copy {
    max-width: none;
  }

  .step h3 {
    margin-top: 20px;
    font-size: 28px;
  }

  .step-description {
    margin-top: 20px;
    font-size: 15px;
  }

  .example {
    margin-top: 24px;
  }

  .screen {
    width: min(320px, 100%);
  }

  .hero-screen {
    width: 228px;
  }

  .step-recall .step-copy,
  .step-recall .step-figure {
    grid-column: auto;
    grid-row: auto;
  }

  .story-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-block: 56px;
  }

  .story h2 {
    font-size: 30px;
  }

  .story-notes {
    margin-top: 24px;
  }

  .story-letter {
    padding: 24px;
    font-size: 14px;
  }

  .story-letter .letter-opening {
    font-size: 15px;
  }

  .start {
    padding-block: 64px;
  }

  .start > p:not(.section-tag) {
    font-size: 14px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .site-footer nav {
    gap: 16px;
  }

  .footer-brand {
    font-size: 20px;
  }

  .mobile-break {
    display: initial;
  }
}

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