:root {
  --green: #2e8b7d;
  --green-hover: #26766a;
  --bg: #fafbfa;
  --text: #1f2624;
  --muted: #5b6663;
  --faint: #8a9491;
  --border: #eef1f0;
  --border-card: #e3e8e6;
  --shadow-phone: 0 24px 60px rgba(31, 38, 36, 0.10), 0 2px 6px rgba(31, 38, 36, 0.04);
  --font-heading: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  --gutter: 24px;
  --measure: 1040px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  letter-spacing: 0.01em;
  font-family: "Noto Sans JP", "Hiragino Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
p, h1, h2, ul { margin: 0; }

.hero__title, .intro__title, .step__title, .cta__title {
  font-family: var(--font-heading);
  font-weight: 900;
  text-wrap: balance;
  word-break: auto-phrase;
}

.btn-cta {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  text-align: center;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}
.btn-cta:hover { background: var(--green-hover); color: #fff; }

.site-header { background: var(--bg); }
.site-header__inner {
  max-width: var(--measure); margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.site-header__logo img { height: 30px; width: auto; }
.site-header__cta { font-size: 12.5px; padding: 10px 16px; }
.site-header__cta .label-long { display: none; }

.phone {
  width: 260px; margin: 0 auto;
  border-radius: 36px; overflow: hidden;
  background: #fff; border: 1px solid var(--border-card);
  box-shadow: var(--shadow-phone);
}
.phone img { width: 100%; }

.phone { aspect-ratio: 600 / 1200; }
.phone img { transform: translateY(-7%); }

.phone--scene { aspect-ratio: 600 / 700; }
.phone--scene img { transform: translateY(-30%); }

.hero__inner {
  max-width: var(--measure); margin: 0 auto;
  padding: 48px var(--gutter) 52px;
  display: grid; grid-template-areas: "copy" "visual" "actions";
}
.hero__copy { grid-area: copy; }
.hero__visual { grid-area: visual; }

.hero__cta { grid-area: actions; }
.hero__copy { text-align: center; }

.hero__title { font-size: clamp(28px, 9vw, 32px); line-height: 1.5; margin-bottom: 20px; }
.hero__lead { font-size: 15.5px; line-height: 1.9; color: var(--muted); }

.hero__visual { margin: 32px 0 0; }
.hero__stage {
  position: relative; height: 380px; overflow: hidden;
  background: linear-gradient(180deg, #e8f6ef 0%, #eef4f1 100%);
  border-radius: 32px;
}
.hero__phone { position: absolute; margin: 0; }
.hero__phone--main { left: 5%; top: 44px; width: min(60%, 300px); transform: rotate(-5deg); background: #fafafa; aspect-ratio: 600 / 1400; }

.hero__phone--main img { transform: translateY(-26%); }
.hero__phone--sub { right: -4%; top: 128px; width: min(50%, 250px); transform: rotate(6deg); }

.hero__chip {
  position: absolute; top: 20px; right: 14px; z-index: 2;
  display: flex; align-items: center; gap: 8px;
  background: #fff; border-radius: 999px; padding: 7px 14px 7px 8px;
  font-family: var(--font-heading); font-weight: 700; font-size: 13px; color: var(--text); white-space: nowrap;
  box-shadow: 0 8px 24px rgba(31, 38, 36, 0.10);
}
.hero__chip img { width: 26px; height: auto; }

.hero__cta { width: 100%; max-width: 320px; margin: 28px auto 0; text-align: center; }
.hero__actions { position: relative; }
.hero__actions .btn-cta { display: block; font-size: 16px; padding: 18px; }

.hero__note { font-size: 12px; line-height: 1.7; color: var(--faint); margin-top: 12px; }
.hero__badge {
  display: none;
  position: absolute; left: -40px; top: -32px; z-index: 4;
  width: 72px; height: 72px; border-radius: 50%;
  background: #ffd166; color: var(--text);
  place-items: center; text-align: center;
  font-family: var(--font-heading); font-weight: 700; font-size: 12px; line-height: 1.3;
  transform: rotate(-12deg); box-shadow: 0 6px 16px rgba(31, 38, 36, 0.12);
}

.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(250, 251, 250, 0.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  transform: translateY(110%); transition: transform 0.25s ease;
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta .btn-cta { display: block; max-width: 360px; margin: 0 auto; font-size: 15.5px; padding: 15px; }
@media (prefers-reduced-motion: reduce) { .sticky-cta { transition: none; } }

.intro { background: #fff; border-top: 1px solid var(--border); padding: 64px var(--gutter); text-align: center; }
.intro__title { font-size: 20px; line-height: 1.5; margin-bottom: 18px; }
.intro__text {
  max-width: 34em; margin: 0 auto;
  font-size: 15px; line-height: 2.1; color: var(--muted);
}

.step { overflow: hidden; padding-top: 72px; }

.step:nth-child(odd) { background: #f1f7f3; }
.step:nth-child(even) { background: #fff; }
.step__inner { max-width: var(--measure); margin: 0 auto; padding: 0 var(--gutter); display: grid; gap: 36px; }
.step__copy { text-align: center; }

.step__visual { height: 328px; overflow: hidden; }
.step__visual .phone { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

.step:nth-child(3) .phone--scene { aspect-ratio: 600 / 780; }
.step:nth-child(3) .phone--scene img { transform: translateY(-40%); }
.step:nth-child(3) .step__visual { height: 245px; }
.step__title { font-size: 26px; line-height: 1.55; margin-bottom: 16px; }
.step__text { font-size: 15px; line-height: 1.95; color: var(--muted); }

.cta { padding: 120px var(--gutter) 96px; background: #f1f7f3; }
.cta__inner { max-width: 560px; margin: 0 auto; text-align: center; }
.cta__art { width: 120px; margin: 0 auto 20px; }

.cta__title { font-size: clamp(19px, 6.4vw, 21px); line-height: 1.5; margin-bottom: 14px; }
.cta__lead { font-size: 15px; line-height: 1.9; color: var(--muted); margin-bottom: 32px; }
.cta__actions { display: grid; max-width: 320px; margin: 0 auto 16px; }
.cta__actions .btn-cta { font-size: 16px; padding: 17px; }
.cta__note { font-size: 12px; line-height: 1.8; color: var(--faint); max-width: 30em; margin: 0 auto; }

.site-footer { background: #fff; border-top: 1px solid var(--border); }
.site-footer__inner { max-width: var(--measure); margin: 0 auto; padding: 40px var(--gutter) 32px; }
.site-footer__logo { height: 28px; width: auto; margin-bottom: 24px; }
.site-footer__nav { display: grid; gap: 14px; font-size: 12.5px; margin-bottom: 28px; }
.site-footer__nav a { color: var(--muted); }
.site-footer__nav a:hover { color: var(--text); }
.site-footer__copy { font-size: 11.5px; color: var(--faint); }

@media (min-width: 900px) {
  :root { --gutter: 40px; }
  .br-sp { display: none; }

  .site-header__inner { padding: 24px var(--gutter); }
  .site-header__cta { font-size: 13px; padding: 12px 22px; }
  .site-header__cta .label-long { display: inline; }
  .site-header__cta .label-short { display: none; }

  .phone { width: 300px; }

  .hero__inner {
    padding: 64px var(--gutter) 0;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    grid-template-areas: "copy visual" "actions visual";
    grid-template-rows: auto 1fr;
    column-gap: 40px; align-items: start;
  }
  .hero__copy { align-self: end; }
  .hero__visual { align-self: end; }
  .hero__copy { text-align: left; }

  .hero__title { font-size: clamp(36px, 4.2vw, 48px); line-height: 1.4; margin-bottom: 24px; }
  .hero__lead { font-size: 17px; margin-bottom: 40px; }
  .hero__cta { width: auto; justify-self: start; max-width: none; margin: 0 0 0 28px; padding-bottom: 96px; text-align: left; }
  .hero__actions .btn-cta { display: inline-block; padding: 18px 44px; box-shadow: 0 12px 28px rgba(46, 139, 125, 0.28); }

  .hero__actions .hero__note { display: none; }
  .hero__badge { display: grid; }

  .hero__lead { text-wrap: balance; }
  .hero__visual { margin: 0; }
  .hero__stage { height: 480px; border-radius: 36px 36px 0 0; }
  .sticky-cta { display: none; }
  .hero__phone--main { left: 6%; top: 40px; width: 54%; }
  .hero__phone--sub { right: 2%; top: 130px; width: 46%; }
  .hero__chip { top: 24px; right: 20px; font-size: 14px; }

  .intro { padding: 80px var(--gutter); }
  .intro__title { font-size: 24px; margin-bottom: 22px; }
  .intro__text { font-size: 16.5px; }

  .step { padding-top: 96px; }
  .step__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px; align-items: end;
  }
  .step__copy { text-align: left; padding-left: 40px; align-self: center; padding-bottom: 72px; }
  .step:nth-child(even) .step__copy { order: 2; padding-left: 0; padding-right: 40px; }
  .step:nth-child(even) .step__visual { order: 1; }
  .step__visual { height: 376px; }

  .step__title { font-size: clamp(30px, 3.6vw, 36px); line-height: 1.5; margin-bottom: 20px; }
  .step__text { font-size: 17px; }

  .cta { padding: 160px var(--gutter) 128px; }
  .cta__title { font-size: 32px; }
  .cta__lead { font-size: 16px; }
  .cta__actions { display: block; max-width: none; }
  .cta__actions .btn-cta { padding: 18px 48px; }

  .site-footer__inner { padding: 36px var(--gutter); display: flex; align-items: center; gap: 24px; }
  .site-footer__logo { margin-bottom: 0; }
  .site-footer__nav { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-left: auto; margin-bottom: 0; justify-content: flex-end; }
  .site-footer__nav a { white-space: nowrap; }
}

.store-badge { display: block; width: fit-content; margin: 0 auto 12px; line-height: 0; }
.store-badge img { height: 48px; width: auto; }
.hero__app { font-size: 12px; line-height: 1.7; color: var(--faint); margin-top: 12px; }
.hero__app a { color: var(--green); text-decoration: underline; }

html:not(.is-ios) .store-ios { display: none !important; }
html:not(.has-app) .store-other, html.is-ios .store-other { display: none !important; }
html.is-ios .web-ios-hide { display: none !important; }
html.is-ios .hero__badge { display: none !important; }
html.is-ios .hero__actions .btn-cta, html.is-ios .cta__actions .btn-cta {
  display: block; background: none; color: var(--green); box-shadow: none;
  font-size: 14px; font-weight: 500; padding: 8px; text-decoration: underline;
}
html.is-ios .hero__actions .btn-cta:hover, html.is-ios .cta__actions .btn-cta:hover { background: none; color: var(--green-hover); }

@media (min-width: 900px) {
  .hero__actions .store-badge { margin-left: 0; }
  html.is-ios .hero__actions .btn-cta { display: inline-block; padding: 8px 0; }
  html.is-ios .hero__actions .hero__note { display: block; }
}
