:root {
  --bg: #fbfaf5;
  --surface: #ffffff;
  --ink: #20302a;
  --muted: #69746f;
  --line: #ded8cb;
  --leaf: #23624c;
  --leaf-dark: #174936;
  --mint: #dcebe3;
  --coral: #f08a6f;
  --blue: #7ea2bb;
  --gold: #f3cf77;
  --shadow: 0 18px 48px rgba(35, 54, 45, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", "Segoe UI", sans-serif;
  line-height: 1.7;
}

body {
  margin: 0;
}

a {
  color: inherit;
}

.site-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1120px;
  padding: 24px;
}

.brand {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  font-size: 18px;
  font-weight: 800;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--leaf);
  border-radius: 8px;
  color: white;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.nav {
  display: flex;
  gap: 18px;
}

.nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.hero {
  align-items: center;
  display: grid;
  gap: 56px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  margin: 0 auto;
  max-width: 1120px;
  min-height: calc(100vh - 96px);
  padding: 32px 24px 88px;
}

.hero-copy h1 {
  font-size: clamp(42px, 7vw, 76px);
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0 0 24px;
}

.hero-copy p {
  color: var(--muted);
  font-size: 18px;
  margin: 0;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-size: 15px;
  font-weight: 800;
  min-height: 48px;
  padding: 0 20px;
  text-decoration: none;
}

.button.primary {
  background: var(--leaf);
  color: white;
}

.button.secondary {
  border: 1px solid var(--line);
  color: var(--leaf-dark);
}

.hero-visual {
  min-height: 520px;
  position: relative;
}

.phone {
  background: #fffdf8;
  border: 8px solid #20302a;
  border-radius: 34px;
  box-shadow: var(--shadow);
  margin: 0 auto;
  max-width: 310px;
  min-height: 520px;
  padding: 20px;
  position: relative;
  z-index: 2;
}

.phone-bar {
  background: #20302a;
  border-radius: 99px;
  height: 5px;
  margin: 0 auto 26px;
  width: 76px;
}

.app-title {
  font-size: 23px;
  font-weight: 900;
  margin-bottom: 22px;
}

.book-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
}

.cover {
  border-radius: 6px;
  box-shadow: inset 0 -20px 0 rgba(0, 0, 0, 0.08);
  display: block;
  height: 116px;
}

.cover-green {
  background: var(--mint);
  border: 2px solid var(--leaf);
}

.cover-coral {
  background: #ffd7c9;
  border: 2px solid var(--coral);
}

.cover-blue {
  background: #d7e7f0;
  border: 2px solid var(--blue);
}

.stat-card {
  align-items: center;
  background: var(--leaf);
  border-radius: 8px;
  color: white;
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  padding: 18px;
}

.stat-card span {
  font-size: 14px;
  font-weight: 700;
}

.stat-card strong {
  font-size: 38px;
  line-height: 1;
}

.list-row {
  background: #eee9df;
  border-radius: 8px;
  height: 22px;
  margin-top: 24px;
}

.list-row.short {
  width: 68%;
}

.picture-book {
  border-radius: 8px;
  box-shadow: var(--shadow);
  height: 160px;
  position: absolute;
  width: 118px;
}

.book-a {
  background: var(--gold);
  left: 12px;
  top: 80px;
  transform: rotate(-10deg);
}

.book-b {
  background: var(--coral);
  bottom: 88px;
  right: 10px;
  transform: rotate(9deg);
}

.section {
  border-top: 1px solid var(--line);
  margin: 0 auto;
  max-width: 1120px;
  padding: 84px 24px;
}

.section-copy {
  max-width: 680px;
}

.section h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.18;
  margin: 0 0 18px;
}

.section-copy p,
.feature-grid p,
.document p {
  color: var(--muted);
}

.feature-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 40px;
}

.feature-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.feature-grid h3 {
  font-size: 20px;
  margin: 0 0 10px;
}

.feature-grid p {
  margin: 0;
}

.document {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 32px auto 80px;
  max-width: 880px;
  padding: 48px;
}

.document h1 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.15;
  margin: 0;
}

.updated {
  margin-bottom: 44px;
}

.document section {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}

.document h2 {
  font-size: 22px;
  margin: 0 0 12px;
}

.document p {
  margin: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 12px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1120px;
  padding: 24px;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .hero {
    gap: 36px;
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 18px;
  }

  .hero-visual {
    min-height: 440px;
  }

  .phone {
    min-height: 440px;
  }

  .picture-book {
    display: none;
  }

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

  .document {
    border-left: 0;
    border-radius: 0;
    border-right: 0;
    margin: 16px 0 48px;
    padding: 32px 24px;
  }
}
