/* ============================================================
   腹筋カウンター LP
   palette: oled #060807 / panel #101312 / rep-green #33D75A
            pulse-blue #0A84FF / rank-gold #FFD60A
            bone #F0F3EE / ash #8F958F
   type:    Anton (数字・欧文見出し) / Noto Sans JP (和文)
            IBM Plex Mono (データ・ラベル)
   ============================================================ */

:root {
  --oled: #060807;
  --panel: #101312;
  --line: #1e2320;
  --green: #33d75a;
  --green-dim: #1d7a36;
  --blue: #0a84ff;
  --gold: #ffd60a;
  --bone: #f0f3ee;
  --ash: #8f958f;
  --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-num: "Anton", "Arial Narrow", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --pad: clamp(20px, 5vw, 72px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--oled);
  color: var(--bone);
  font-family: var(--font-jp);
  font-weight: 400;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 2px;
}

.sp-only { display: none; }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--pad);
  background: color-mix(in srgb, var(--oled) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.nav__icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--line);
}

.footer__brand .nav__icon { width: 26px; height: 26px; border-radius: 7px; }

.nav__cta {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--bone);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
  transition: border-color 0.2s, color 0.2s;
}

.nav__cta:hover { border-color: var(--green); color: var(--green); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(56px, 9vh, 120px) var(--pad) clamp(48px, 7vh, 96px);
  max-width: 1200px;
  margin: 0 auto;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--green);
  margin-bottom: 20px;
}

.eyebrow__sep { color: var(--ash); margin: 0 0.8em; }

.hero__title {
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.015em;
  white-space: nowrap;
}

@media (max-width: 420px) {
  .hero__title { white-space: normal; }
}

.hero__lead {
  margin-top: 24px;
  max-width: 34em;
  color: var(--ash);
  font-size: clamp(14px, 1.4vw, 16px);
}

.hero__actions { margin-top: 36px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn--primary {
  background: var(--green);
  color: var(--oled);
  padding: 15px 32px;
  font-size: 16px;
  box-shadow: 0 0 0 rgba(51, 215, 90, 0);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(51, 215, 90, 0.35);
}

.btn--big { padding: 18px 44px; font-size: 18px; }

.btn__apple { width: 1em; height: 1.15em; }

.hero__note {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ash);
  letter-spacing: 0.06em;
}

/* ---------- tally (正の字) ---------- */

.tally {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.tally__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--ash);
  margin-bottom: 10px;
}

.tally__row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 34px;
  flex-wrap: wrap;
}

.tally__glyph { width: 30px; height: 30px; }

.tally__glyph path {
  stroke: var(--green);
  stroke-width: 4;
  stroke-linecap: round;
  fill: none;
  opacity: 0;
  transition: opacity 0.12s;
}

.tally__glyph path.on { opacity: 1; }

/* ---------- watch mock ---------- */

.hero__device {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
}

.hero__glow {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 70%;
  height: 70%;
  background: radial-gradient(closest-side, rgba(51, 215, 90, 0.14), transparent 70%);
  filter: blur(10px);
  z-index: 0;
  pointer-events: none;
}

.watch {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.watch__band {
  width: 118px;
  height: 74px;
  background: linear-gradient(180deg, #15181a, #0c0e10);
  border: 1px solid #22262a;
}

.watch__band--top { border-radius: 26px 26px 8px 8px; border-bottom: none; }
.watch__band--bottom { border-radius: 8px 8px 26px 26px; border-top: none; }

.watch__case {
  position: relative;
  width: 220px;
  height: 258px;
  border-radius: 58px;
  background: linear-gradient(160deg, #3a3f44, #16181b 55%, #26292d);
  padding: 10px;
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.25),
    0 24px 60px rgba(0, 0, 0, 0.7);
}

.watch__crown {
  position: absolute;
  right: -7px;
  top: 62px;
  width: 9px;
  height: 34px;
  border-radius: 5px;
  background: linear-gradient(90deg, #4a4f54, #212428);
}

.watch__btn {
  position: absolute;
  right: -5px;
  top: 112px;
  width: 6px;
  height: 44px;
  border-radius: 4px;
  background: linear-gradient(90deg, #43484d, #1d2023);
}

.watch__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 48px;
  background: #000;
  overflow: hidden;
  border: 1px solid #000;
}

.ws__main {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 18px 22px;
  transition: opacity 0.35s;
}

.ws__time {
  align-self: flex-end;
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 17px;
}

.ws__label {
  margin-top: 6px;
  font-size: 15px;
  font-weight: 700;
}

.ws__count {
  flex: 1;
  display: grid;
  place-items: center;
  font-family: var(--font-num);
  font-size: 88px;
  line-height: 1;
  color: var(--green);
  letter-spacing: 0.02em;
}

.ws__count.tick { animation: repPulse 0.35s ease-out; }

@keyframes repPulse {
  0% { transform: scale(1); }
  35% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

.ws__bar {
  width: 100%;
  height: 9px;
  border-radius: 999px;
  background: #0a3a66;
  overflow: hidden;
}

.ws__bar i {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: var(--blue);
  transition: width 0.4s ease;
}

.ws__finish {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}

.ws__finish.show { opacity: 1; }

.ws__finish-msg { font-weight: 700; font-size: 16px; }

.ws__finish-count {
  font-family: var(--font-num);
  font-size: 64px;
  line-height: 1;
  color: var(--green);
}

.ws__finish-count small {
  font-family: var(--font-jp);
  font-size: 26px;
  font-weight: 900;
  margin-left: 4px;
}

.ws__finish-badge { font-size: 13px; font-weight: 700; color: var(--gold); }

/* ---------- ticker ---------- */

.ticker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
  padding: 18px var(--pad);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.26em;
  color: var(--ash);
}

.ticker i {
  font-style: normal;
  color: var(--green-dim);
  font-weight: 900;
  font-family: var(--font-jp);
}

/* ---------- sections ---------- */

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(72px, 12vh, 140px) var(--pad) 0;
}

.section__title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: clamp(36px, 5vh, 56px);
}

/* ---------- features ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 26px 30px;
  transition: transform 0.2s, border-color 0.2s;
}

.card:hover { transform: translateY(-4px); border-color: #2c342e; }

.card__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--green);
  margin-bottom: 16px;
}

.card--gold .card__tag { color: var(--gold); }

.card__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 12px;
}

.card__body { font-size: 14px; color: var(--ash); }


/* ---------- watch gallery ---------- */

.shots {
  display: flex;
  gap: clamp(16px, 2.5vw, 32px);
  overflow-x: auto;
  padding: 8px 4px 24px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.shot {
  flex: 0 0 auto;
  scroll-snap-align: start;
  text-align: center;
}

.shot__frame {
  width: clamp(170px, 18vw, 210px);
  border-radius: 42px;
  padding: 9px;
  background: linear-gradient(160deg, #34393e, #141619 55%, #232629);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.6);
}

.shot__frame img {
  border-radius: 34px;
  background: #000;
}

.shot figcaption {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ash);
}

/* ---------- iphone split ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.split__body { color: var(--ash); font-size: 15px; max-width: 32em; }

.split__list {
  margin-top: 24px;
  list-style: none;
}

.split__list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  font-size: 14px;
}

.split__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 14px;
  height: 8px;
  border-left: 2.5px solid var(--green);
  border-bottom: 2.5px solid var(--green);
  transform: rotate(-45deg) scale(0.9);
}

.phones {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.phone {
  width: clamp(180px, 20vw, 240px);
  border-radius: 40px;
  padding: 9px;
  background: linear-gradient(160deg, #34393e, #141619 55%, #232629);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.65);
}

.phone img { border-radius: 32px; }

.phone--back {
  margin-left: -48px;
  margin-top: 64px;
  transform: rotate(4deg);
  z-index: -0;
  opacity: 0.95;
}

/* ---------- iPhone 単体セクションのメディア（写真 + 重ねた実画面） ---------- */

.solo-media {
  position: relative;
  padding-left: 56px;
  padding-bottom: 44px;
}

.solo-media__photo {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.65);
}

.solo-media__photo img { width: 100%; }

.solo-media .solo-media__phone {
  position: absolute;
  width: clamp(96px, 9vw, 120px);
}

/* 手前: 持ち方ガイド / 奥: 計測画面（右上にずらして覗かせる） */
.solo-media .solo-media__phone--guide { left: 0; bottom: 0; z-index: 2; }

.solo-media .solo-media__phone--count {
  left: clamp(76px, 7.5vw, 100px);
  bottom: 34px;
  z-index: 1;
}

/* ---------- steps ---------- */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  counter-reset: step;
}

.step {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.step__no {
  font-family: var(--font-num);
  font-size: 44px;
  line-height: 1;
  color: var(--green);
  display: block;
  margin-bottom: 18px;
}

.step__title { font-size: 20px; font-weight: 900; margin-bottom: 10px; }

.step__body { font-size: 14px; color: var(--ash); }

/* ---------- cta ---------- */

.cta {
  position: relative;
  text-align: center;
  padding: clamp(90px, 16vh, 180px) var(--pad);
  margin-top: clamp(72px, 12vh, 140px);
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.cta__big {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-num);
  font-size: clamp(280px, 46vw, 560px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(51, 215, 90, 0.16);
  pointer-events: none;
  user-select: none;
}

.cta__icon {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 30px;
  margin: 0 auto 32px;
  border: 1px solid var(--line);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.6);
}

.cta__title {
  position: relative;
  font-size: clamp(30px, 4.6vw, 54px);
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 40px;
}

.cta .btn, .cta .hero__note { position: relative; }

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 40px var(--pad) 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ash);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--bone);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer__links a {
  color: var(--ash);
  text-decoration: none;
}

.footer__links a:hover { color: var(--green); text-decoration: underline; }

.footer__copy { font-family: var(--font-mono); font-size: 12px; }

/* ---------- reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .sp-only { display: inline; }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 48px;
  }

  .hero__device { min-height: 0; order: -1; }

  .watch__case { width: 190px; height: 224px; border-radius: 50px; }
  .watch__band { width: 102px; height: 48px; }
  .ws__count { font-size: 72px; }

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

  .phones { justify-content: flex-start; padding-left: 8px; }

  /* モバイルでは常に文章 → 画像の順で読ませる */
  .split--media-first .solo-media { order: 2; padding-left: 36px; padding-bottom: 36px; }
}

/* ---------- reduced motion ---------- */

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

  .reveal { opacity: 1; transform: none; transition: none; }

  .ws__count.tick { animation: none; }

  .btn--primary:hover { transform: none; }

  .card:hover { transform: none; }
}
