:root {
  --bg: #f3f8f7;
  --bg2: #eaf5f2;
  --ink: #0f2a24;
  --muted: #4a655f;
  --line: #c9ddd8;
  --card: rgba(255, 255, 255, 0.88);
  --mint: #17b488;
  --mint-deep: #0e8f6d;
  --sand: #eef4de;
  --radius: 24px;
  --shadow: 0 20px 42px rgba(31, 83, 71, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Noto Sans JP", "Noto Sans KR", "Noto Sans SC", "Noto Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 760px at -15% -10%, #d8f8ea 0%, transparent 62%),
    radial-gradient(1000px 680px at 120% 8%, #e7f5de 0%, transparent 62%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--mint-deep);
  text-decoration: none;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.bg-layer {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  opacity: 0.5;
  filter: blur(6px);
}

.bg-layer-a {
  width: 340px;
  height: 340px;
  left: -110px;
  top: 180px;
  background: linear-gradient(135deg, #b1ffd8, #c8ffe9);
}

.bg-layer-b {
  width: 300px;
  height: 300px;
  right: -100px;
  top: 560px;
  background: linear-gradient(135deg, #d8f3ce, #f3f7de);
}

.topbar {
  margin-top: 18px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(35, 93, 79, 0.08);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

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

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero {
  margin-top: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 30px;
  box-shadow: var(--shadow);
  padding: 34px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.chip {
  margin: 0;
  display: inline-flex;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.84rem;
  font-weight: 700;
  background: linear-gradient(90deg, #d8ffec, #f0f8de);
  color: #165a47;
}

h1 {
  margin: 14px 0 0;
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-size: clamp(2rem, 4.8vw, 3.7rem);
}

h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

h3 {
  margin: 8px 0 0;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  line-height: 1.35;
}

.lead {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.9;
  max-width: 62ch;
}

.cta-row {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-hook {
  margin: 14px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.appstore-link {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  background: #000;
  border-radius: 10px;
  padding: 4px 8px;
}

.appstore-link img {
  display: block;
  height: 44px;
  width: auto;
}

.btn {
  display: inline-block;
  font-weight: 700;
  border-radius: 999px;
  padding: 10px 16px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn.primary {
  background: linear-gradient(140deg, var(--mint), #36cf9f);
  color: #fff;
}

.btn.ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.hero-stage {
  position: relative;
  border-radius: 26px;
  border: 1px solid #bfddd3;
  background: linear-gradient(160deg, #e7fbf2 0%, #f1f9e8 62%, #f9fdf2 100%);
  padding: 16px;
  min-height: 420px;
}

.hero-main {
  width: 100%;
  display: block;
  border-radius: 20px;
  border: 1px solid #cae5dc;
  box-shadow: 0 20px 38px rgba(34, 96, 79, 0.18);
}

.hero-overlay {
  position: absolute;
  width: min(42%, 220px);
  right: -22px;
  bottom: 22px;
  filter: drop-shadow(0 16px 20px rgba(21, 68, 56, 0.2));
}

.hero-bubble {
  position: absolute;
  margin: 0;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #c6dfd8;
  font-size: 0.86rem;
  font-weight: 700;
  color: #1d5b49;
  box-shadow: 0 10px 18px rgba(31, 84, 69, 0.13);
}

.bubble-a {
  left: 26px;
  bottom: 74px;
}

.bubble-b {
  left: 48px;
  bottom: 24px;
}

.benefit {
  margin-top: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #f2fff8 0%, #f6fce9 100%);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.benefit p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.feature-grid {
  margin-top: 18px;
  display: grid;
  gap: 16px;
}

.feature-row {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 18px;
  align-items: center;
}

body.has-motion .feature-row {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

body.has-motion .feature-row.motion-left {
  transform: translateX(-34px);
}

body.has-motion .feature-row.motion-right {
  transform: translateX(34px);
}

body.has-motion .feature-row.is-inview {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

.feature-row.reverse {
  grid-template-columns: 1.05fr 0.95fr;
}

.feature-row.reverse .feature-media {
  order: 2;
}

.feature-row.reverse .feature-copy {
  order: 1;
}

.feature-media {
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.feature-media img {
  width: 70%;
  display: block;
  margin: 0 auto;
  border-radius: 14px;
}

.feature-copy p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.84;
}

.story-intro {
  margin-top: 22px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 22px;
}

.story-intro p {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
}

.story {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 20px;
}

.story-visual {
  position: relative;
}

.story-frame {
  position: sticky;
  top: 24px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
}

.story-frame img {
  width: 100%;
  display: block;
  border-radius: 18px;
  border: 1px solid #cde2db;
  box-shadow: 0 16px 34px rgba(44, 101, 85, 0.2);
  opacity: 0.45;
  transform: scale(0.985);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.story-frame img.is-in {
  opacity: 1;
  transform: scale(1);
}

.story-frame p {
  margin: 12px 2px 2px;
  color: var(--muted);
  line-height: 1.8;
  min-height: 4em;
}

.story-steps {
  display: grid;
  gap: 20px;
}

.story-step {
  min-height: 68vh;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 12px 26px rgba(43, 99, 84, 0.1);
  opacity: 0.36;
  transform: translateY(32px) scale(0.98);
  transition: opacity 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-step.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  border-color: #87cab4;
}

.story-eyebrow {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5a8979;
  font-weight: 700;
}

.story-step p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.95;
  max-width: 36ch;
}

.keywords,
.footer,
.privacy-card {
  margin-top: 22px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.keywords,
.privacy-card {
  padding: 22px;
}

.keywords p,
.privacy-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.footer {
  margin-bottom: 36px;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.footer-links {
  display: flex;
  gap: 12px;
}

.version {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.privacy-card {
  margin-top: 24px;
  margin-bottom: 30px;
}

.privacy-card h1 {
  margin: 12px 0 0;
}

.privacy-card h2 {
  margin-top: 20px;
  font-size: 1.12rem;
}

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

  .hero-stage {
    min-height: 0;
  }

  .feature-row,
  .feature-row.reverse,
  .story {
    grid-template-columns: 1fr;
  }

  .feature-row.reverse .feature-media,
  .feature-row.reverse .feature-copy {
    order: initial;
  }

  .story-frame {
    position: static;
  }

  .story-step {
    min-height: 54vh;
  }
}

@media (max-width: 640px) {
  .topbar,
  .hero,
  .benefit,
  .feature-row,
  .story-intro,
  .story-frame,
  .story-step,
  .keywords,
  .privacy-card {
    border-radius: 18px;
    padding: 16px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .hero-overlay {
    width: 40%;
    right: -8px;
    bottom: 12px;
  }

  .hero-bubble {
    position: static;
    margin-top: 10px;
  }

  .story-step p {
    max-width: none;
  }

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

@media (prefers-reduced-motion: reduce) {
  body.has-motion .feature-row,
  body.has-motion .feature-row.motion-left,
  body.has-motion .feature-row.motion-right,
  body.has-motion .feature-row.is-inview {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
