:root {
  --bg: #F7F6F2;
  --surface: #FFFFFF;
  --text: #2C3A38;
  --text-sub: rgba(44, 58, 56, .72);
  --text-muted: rgba(44, 58, 56, .62);
  --accent: #3B9A8F;
  --accent-deep: #2F7E74;
  --line: rgba(44, 58, 56, .08);
  --device: #1B1F20;
  --button: #111111;
  --button-hover: #2C3A38;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1080px;
  --font-body: 'Noto Sans JP', -apple-system, system-ui, sans-serif;
  --font-display: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 246, 242, .9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(44, 58, 56, .06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
}
.brand:hover { color: var(--text); }
.brand img { width: 34px; height: 34px; border-radius: 8px; }

/* ---------- Store buttons ---------- */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 24px 13px 20px;
  border-radius: 14px;
  background: var(--button);
  color: #fff;
  box-shadow: 0 10px 24px rgba(17, 17, 17, .18);
  transition: background-color .2s ease, transform .2s ease;
}
.store-btn:hover { background: var(--button-hover); color: #fff; transform: translateY(-1px); }
.store-btn:focus-visible,
.store-btn-sm:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.store-btn svg { width: 22px; height: 27px; flex: none; fill: #fff; }
.store-btn .label { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-btn .label small { font-size: 11px; opacity: .85; }
.store-btn .label strong { font-size: 19px; font-weight: 700; letter-spacing: .01em; }

.store-btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 12px;
  background: var(--button);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  transition: background-color .2s ease;
}
.store-btn-sm:hover { background: var(--button-hover); color: #fff; }
.store-btn-sm svg { width: 14px; height: 17px; fill: #fff; }

/* ---------- Device frame ---------- */
.device {
  width: min(300px, 72vw);
  padding: 10px;
  border-radius: 48px;
  background: var(--device);
  box-shadow: 0 30px 60px rgba(20, 28, 27, .18);
}
.device img { width: 100%; border-radius: 39px; }

.device--sm {
  width: min(260px, 64vw);
  padding: 9px;
  border-radius: 42px;
  box-shadow: 0 24px 48px rgba(20, 28, 27, .14);
}
.device--sm img { border-radius: 34px; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 48px;
  padding-top: clamp(40px, 8vw, 96px);
  padding-bottom: clamp(56px, 8vw, 96px);
}

.hero-copy {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.eyebrow {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-deep);
  letter-spacing: .06em;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.3;
  letter-spacing: .01em;
}
.hero h1 em { font-style: normal; color: var(--accent); }

.lead {
  margin: 0;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.9;
  color: var(--text-sub);
  text-wrap: pretty;
}

.hero .store-btn { margin-top: 8px; }

.note { margin: 0; font-size: 12px; color: var(--text-muted); }

/* ---------- Features ---------- */
.features { background: var(--surface); }

.features .container {
  display: flex;
  flex-direction: column;
  gap: clamp(72px, 9vw, 112px);
  padding-top: clamp(64px, 8vw, 104px);
  padding-bottom: clamp(64px, 8vw, 104px);
}

.feature {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 36px;
}

.feature-copy {
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
}

.feature-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 14px;
  color: var(--accent);
}

.feature h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.4;
  text-wrap: pretty;
}

.feature p {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-sub);
  text-align: left;
  text-wrap: pretty;
}

/* ---------- CTA ---------- */
.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
  padding-top: clamp(64px, 9vw, 112px);
  padding-bottom: clamp(64px, 9vw, 112px);
}
.cta img {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(59, 154, 143, .25);
}
.cta h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(24px, 3.6vw, 38px);
  line-height: 1.4;
}

/* ---------- Footer ---------- */
.site-footer { margin-top: auto; border-top: 1px solid var(--line); }
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 24px;
  padding-bottom: 24px;
  font-size: 12px;
  color: var(--text-muted);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--accent-deep); }

/* ---------- Small phones ---------- */
@media (max-width: 374px) {
  .brand span { display: none; }
  .store-btn { padding: 12px 20px 12px 16px; }
}

/* ---------- Tablet / Desktop ---------- */
@media (min-width: 820px) {
  .hero {
    grid-template-columns: minmax(0, 500px) 320px;
    justify-content: center;
    align-items: center;
    column-gap: clamp(48px, 7vw, 96px);
  }
  .hero-copy { align-items: flex-start; text-align: left; }

  .feature {
    grid-template-columns: minmax(0, 460px) 280px;
    justify-content: center;
    align-items: center;
    column-gap: clamp(48px, 7vw, 96px);
  }
  .feature-copy { text-align: left; }
  .feature--reverse { grid-template-columns: 280px minmax(0, 460px); }
  .feature--reverse .feature-copy { order: 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .store-btn { transition: none; }
}

.nw { white-space: nowrap; }
