/* ============================================================
   GRAPE Landing Page — styles
   ============================================================ */

:root {
  --bg:           #F5F3FB;
  --bg-alt:       #EDE9F5;
  --primary:      #3D1A78;
  --primary-2:    #382075;
  --primary-deep: #2A1658;
  --muted:        #9878CC;
  --accent:       #C04890;
  --accent-soft:  #F3D7E6;
  --border:       #C0B2D8;
  --white:        #FFFFFF;
  --premium-bg:   #1C0F42;
  --gold:         #F5C850;
  --ink:          #1F0F3E;
  --body:         #4A3B6B;
  --display-size: 70px;

  --radius-card: 14px;
  --radius-sm:   10px;
  --radius-pill: 999px;
  --radius-phone: 44px;

  --shadow-phone: 0 40px 80px -24px rgba(56, 32, 117, 0.45),
                  0 10px 24px -8px rgba(56, 32, 117, 0.25);
  --shadow-soft:  0 10px 30px -12px rgba(56, 32, 117, 0.22);

  --container: 1200px;
  --pad-x: 24px;
}

* { box-sizing: border-box; }

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Helvetica Neue", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "palt";
}

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

a { color: inherit; text-decoration: none; }

/* ============================================================
   CONTAINER & SECTIONS
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  position: relative;
}

.section {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}

.section[data-bg="dark"] {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(192, 72, 144, 0.08), transparent 60%),
    radial-gradient(1000px 800px at 0% 100%, rgba(152, 120, 204, 0.12), transparent 55%),
    linear-gradient(160deg, #3D1A78 0%, #382075 45%, #2A1658 100%);
  color: var(--white);
}

.section[data-bg="light"] {
  background: var(--bg);
  color: var(--ink);
}

/* Alternating subtle tint on every other light section */
.s5-event { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%); }
.s7-premium { background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.display {
  font-size: var(--display-size);
  line-height: 1.08;
  letter-spacing: -0.01em;
  font-weight: 700;
  margin: 24px 0 20px;
  color: var(--primary);
  text-wrap: balance;
}
.display-accent { color: var(--accent); }
.display-dark { color: var(--white); }
.display-accent-dark { color: var(--gold); }
.display-center { text-align: center; }

.h2 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--primary);
  margin: 14px 0 28px;
  text-wrap: balance;
}
.h2-dark { color: var(--white); }
.h2-muted { color: var(--muted); }
.h2-accent { color: var(--accent); }
.h2-center { text-align: center; }

.h3 {
  font-size: clamp(22px, 2vw, 26px);
  line-height: 1.32;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 12px;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--accent);
  padding: 6px 12px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
}
.eyebrow-dark {
  color: var(--gold);
  border-color: rgba(245, 200, 80, 0.55);
}

.lede {
  font-size: 20px;
  line-height: 1.7;
  color: var(--body);
  margin: 0 0 36px;
  max-width: 520px;
}

.body-muted { color: var(--body); line-height: 1.8; margin: 0 0 20px; }
.body-lg { font-size: 18px; line-height: 1.9; color: var(--body); margin: 0 0 20px; }
.body-dark { color: rgba(255,255,255,0.82); }
.body-center { text-align: center; max-width: 640px; margin: 0 auto 40px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.btn-lg { height: 56px; padding: 0 28px; font-size: 16px; }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(192, 72, 144, 0.65);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 34px -12px rgba(192, 72, 144, 0.8); }

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--primary);
}
.btn-ghost:hover { background: var(--white); }

.btn-text {
  background: transparent; color: var(--primary);
  text-decoration: underline; text-underline-offset: 4px;
  padding: 0 10px;
}

.btn-gold {
  background: var(--gold);
  color: var(--premium-bg);
  box-shadow: 0 10px 30px -10px rgba(245, 200, 80, 0.6);
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 16px 36px -12px rgba(245, 200, 80, 0.8); }

/* ============================================================
   STORE BADGES
   ============================================================ */
.store-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 28px 0 20px;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px 10px 16px;
  background: #111;
  color: #fff;
  border-radius: 12px;
  min-height: 52px;
  position: relative;
  transition: transform .2s ease;
}
.store-badge .badge-pill {
  position: absolute;
  top: -9px;
  right: -10px;
  background: #F5C850;
  color: #1C0F42;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  line-height: 1.2;
  display: block;
  flex-direction: row;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
  white-space: nowrap;
}
.store-badge span {
  display: flex;
  flex-direction: column;
  font-weight: 700;
  line-height: 1.1;
  font-size: 16px;
}
.store-badge small {
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 1px;
}
.store-badge:hover { transform: translateY(-1px); }
.store-badge-dark { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); backdrop-filter: blur(10px); }
.store-badge-dark:hover { background: rgba(255,255,255,0.14); }

/* ============================================================
   BRAND (logo + icon)
   ============================================================ */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.wordmark { display: block; height: auto; }
.wordmark-posi { height: 26px; }
.wordmark-sm { height: 22px; }
.wordmark-md { height: 36px; }
.wordmark-lg { height: 42px; }
.wordmark-xl { height: 60px; }

/* 視覚的に Grape タイポが上にずれて見える錯視の補正。
   SVG の bounding box が descender (p) を含むため、視覚重心は幾何中心より上にある。
   横並びでアイコンと並んだ時、サイズに比例して下方向にずらして光学的に揃える。
   （縦積みのレイアウト = .closing-stage は対象外）
   ※ 整数 px で揃えること（sub-pixel transform は SVG にジャギを生じさせるブラウザがある） */
.brand .wordmark            { transform: translateY(2px); } /* 26px height */
.hero-logo-lockup .wordmark { transform: translateY(3px); } /* 42px height */
.footer-brand .wordmark     { transform: translateY(2px); } /* 36px height */

.app-icon {
  display: inline-block;
  border-radius: 22%;
  overflow: hidden;
  background: var(--primary-2);
  box-shadow: 0 6px 20px -6px rgba(56, 32, 117, 0.5);
}
.app-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.app-icon-sm { width: 32px; height: 32px; }
.app-icon-md { width: 48px; height: 48px; }
.app-icon-lg { width: 72px; height: 72px; box-shadow: 0 12px 40px -8px rgba(56, 32, 117, 0.55); }
.app-icon-xl { width: 112px; height: 112px; box-shadow: 0 20px 60px -10px rgba(245, 200, 80, 0.35), 0 12px 48px rgba(56, 32, 117, 0.45); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 243, 251, 0.85);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(192, 178, 216, 0.4);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--body);
}
.nav a { transition: color .2s ease; }
.nav a:hover { color: var(--accent); }

/* ============================================================
   PHONE MOCKUP FRAMES
   ============================================================ */
.phone {
  position: relative;
  border-radius: var(--radius-phone);
  overflow: hidden;
  background: var(--primary-2);
  padding: 8px;
  box-shadow: var(--shadow-phone);
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-phone) - 8px);
}

.phone-hero { max-width: 340px; margin: 0 auto; }
.hero-stack {
  position: relative;
  width: 100%;
  aspect-ratio: 786 / 1864;
  border-radius: calc(var(--radius-phone) - 8px);
  overflow: hidden;
  background: #1C0F42;
}
.hero-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1200ms ease-in-out;
  content-visibility: auto;
}
.hero-layer.is-on {
  opacity: 1;
  will-change: opacity;
}
#heroEvents .he-num {
  display: inline-block;
  transition: opacity 300ms ease, transform 300ms ease;
}
#heroEvents.is-swap .he-num {
  opacity: 0;
  transform: translateY(-5px);
}
.phone-sm { max-width: 260px; margin: 0 auto; }
.phone-xs { max-width: 200px; }
.phone-main { max-width: 340px; }
.phone-overlay { max-width: 220px; position: absolute; }

/* On dark sections, lift all phones off the bg with a brighter rim + halo */
[data-bg="dark"] .phone {
  background: linear-gradient(180deg, #5a3fa8 0%, #382075 60%);
  box-shadow:
    0 32px 72px -12px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(245, 200, 80, 0.28),
    0 0 0 6px rgba(28, 15, 66, 0.45);
}
[data-bg="dark"] .phone-overlay {
  box-shadow:
    0 24px 60px -10px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(245, 200, 80, 0.4),
    0 0 0 6px rgba(28, 15, 66, 0.6);
}

[data-tilt="on"] .phone-tilt-l { transform: rotate(-3deg); }
[data-tilt="on"] .phone-tilt-r { transform: rotate(2.5deg); }
[data-tilt="on"] .phone-tilt-l:hover,
[data-tilt="on"] .phone-tilt-r:hover { transform: rotate(0deg) translateY(-4px); }

/* ============================================================
   S1 HERO
   ============================================================ */
.s1-hero {
  padding-top: 80px;
  padding-bottom: 120px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-logo-lockup {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 8px;
}
.hero-copy .display { margin-top: 16px; }
[data-hero-style="flat"] .display br { display: none; }
[data-hero-style="flat"] .display-accent { color: var(--primary); }

.cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.hero-meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 24px;
  letter-spacing: 0.02em;
  line-height: 1.9;
}
.hero-meta .meta-free {
  display: inline-flex;
  align-items: center;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  letter-spacing: 0.04em;
  margin-right: 2px;
}
.meta-sep { margin: 0 10px; opacity: 0.5; }

.hero-visual { position: relative; padding: 20px; }
.hero-floater {
  position: absolute;
  background: #fff;
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: var(--shadow-soft);
  font-size: 13px;
  color: var(--body);
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(192, 178, 216, 0.5);
  z-index: 2;
}
.hero-floater-1 {
  top: 20%;
  left: -8px;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.floater-label { font-size: 11px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.floater-val { font-size: 26px; font-weight: 700; color: var(--primary); }
.floater-val small { font-size: 13px; font-weight: 400; color: var(--body); margin-left: 2px; }
.hero-floater-2 {
  bottom: 14%;
  right: -12px;
}
.floater-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(192, 72, 144, 0.15);
}
.floater-strong { font-weight: 700; color: var(--primary); margin: 0 4px; }
.floater-yen { color: var(--accent); font-weight: 700; margin-left: 6px; }

.hero-glow {
  position: absolute;
  inset: auto 0 -200px 0;
  height: 400px;
  background: radial-gradient(60% 100% at 50% 0%, rgba(152, 120, 204, 0.18), transparent 70%);
  pointer-events: none;
}

/* ============================================================
   S2 PROBLEM
   ============================================================ */
.s2-problem .h2 { margin-bottom: 64px; }
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
[data-prob-layout="stack"] .problem-grid { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }

.problem-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-card);
  padding: 40px 32px;
  position: relative;
  backdrop-filter: blur(4px);
  transition: border-color .3s ease, transform .3s ease;
}
.problem-card:hover {
  border-color: rgba(245, 200, 80, 0.4);
  transform: translateY(-4px);
}
.problem-num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--gold);
  margin-bottom: 28px;
}
.problem-q {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  margin: 0 0 20px;
  letter-spacing: -0.005em;
}
.problem-a {
  font-size: 15px;
  line-height: 1.9;
  color: rgba(255,255,255,0.72);
  margin: 0;
}

/* ============================================================
   S3 SOLUTION
   ============================================================ */
.s3-solution .h2 { margin-bottom: 72px; }
.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.solution-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
  position: relative;
}
.solution-card .phone { margin-bottom: 32px; }
.solution-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 10px;
}

/* ============================================================
   S4 CALENDAR
   ============================================================ */
.calendar-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.calendar-copy .h2 { margin-bottom: 40px; }

.feat-list { list-style: none; padding: 0; margin: 0; }
.feat-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  font-size: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.feat-list li:first-child { border-top: none; }
.feat-list b { color: var(--gold); font-weight: 700; }
.feat-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(245, 200, 80, 0.15);
}

.calendar-stage {
  position: relative;
  min-height: 680px;
  padding: 20px 0;
}
.calendar-stage .phone-main {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  max-width: 320px;
}
.phone-day {
  top: 4%;
  right: -10px;
  z-index: 2;
  max-width: 170px;
}
.phone-list {
  bottom: 6%;
  right: -10px;
  z-index: 2;
  max-width: 200px;
}
.callout {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  line-height: 1.45;
  z-index: 4;
  max-width: 220px;
}
.callout-text {
  background: rgba(28, 15, 66, 0.75);
  border: 1px solid rgba(245, 200, 80, 0.35);
  backdrop-filter: blur(8px);
  padding: 10px 14px;
  border-radius: 12px;
  white-space: nowrap;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.4);
}
.callout-text b { color: var(--gold); }
.callout-dot {
  display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  vertical-align: middle;
  margin-right: 6px;
}
.callout-dot-red { background: #E03A3A; box-shadow: 0 0 0 3px rgba(224, 58, 58, 0.2); }
.callout-arrow { color: rgba(245, 200, 80, 0.75); flex-shrink: 0; }
.callout-a { top: 22%; left: 0; }
.callout-b { bottom: 18%; left: 0; }
.callout-b .callout-arrow { transform: scaleX(-1); }

/* ============================================================
   S5 EVENT & ARTIST
   ============================================================ */
.s5-event { padding: 140px 0; }
.event-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.event-copy { padding-right: 20px; }
.event-sep {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 32px 0;
}
.event-sep-line { flex: 1; height: 1px; background: var(--border); }
.event-sep-dot {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--accent);
}

.event-visual {
  position: relative;
  min-height: 620px;
  padding: 20px;
}
.phone-stack-back {
  max-width: 280px;
  position: absolute;
  top: 4%;
  left: 0;
  z-index: 1;
}
.phone-stack-front {
  max-width: 300px;
  position: absolute;
  bottom: 4%;
  right: 0;
  z-index: 2;
}
.event-tag {
  position: absolute;
  background: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(192, 178, 216, 0.5);
  z-index: 3;
}
.event-tag-a {
  top: 2%;
  right: 4%;
  color: var(--accent);
}
.event-tag-b {
  bottom: 18%;
  left: -6%;
  color: var(--primary);
  background: var(--gold);
  border-color: var(--gold);
}

/* ============================================================
   S6 REPORT
   ============================================================ */
.report-container { text-align: center; }
.report-stage {
  position: relative;
  margin-top: 64px;
  padding: 20px;
  display: flex;
  justify-content: center;
}
.phone-report { width: 100%; max-width: 320px; z-index: 2; position: relative; }

/* Report interactive mockup: 3-layer scrolling phone */
.phone-report .report-stage-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 786 / 1704;
  border-radius: calc(var(--radius-phone) - 8px);
  overflow: hidden;
  background: #F5F3FB;
  /* CSS vars drive the auto-scroll math. All based on image intrinsics @ 2x.
     top:    786x310
     bottom: 786x136
     scroll: 786x4828
     stage aspect: 786x1704 (set above) */
  --top-h: calc(310 / 1704 * 100%);        /* fixed top layer height (18.19%) */
  --bot-h: calc(136 / 1704 * 100%);        /* fixed bottom layer height (7.98%) */
  /* Max negative translate for scroll-content, as % of its own height.
     maskH_px    = stageW * (1704 - 310 - 136) / 786 = stageW * 1258/786
     contentH_px = stageW * 4828/786
     travel% = -(1 - maskH/contentH) * 100 = -(1 - 1258/4828) * 100 = -73.94%
  */
  --travel: -73.94%;
}
.phone-report .report-layer-top,
.phone-report .report-layer-bottom {
  position: absolute;
  left: 0;
  width: 100%;
  height: auto;
  display: block;
  z-index: 2;
  pointer-events: none;
  user-select: none;
}
.phone-report .report-layer-top    { top: 0; }
.phone-report .report-layer-bottom { bottom: 0; }

.phone-report .report-scroll-mask {
  position: absolute;
  top: var(--top-h);
  bottom: var(--bot-h);
  left: 0;
  right: 0;
  overflow: hidden;
  z-index: 1;
}
.phone-report .report-scroll-content {
  width: 100%;
  height: auto;
  display: block;
  transform: translateY(0);
  animation: reportAutoScroll 18s cubic-bezier(.55,.05,.45,.95) infinite;
  will-change: transform;
}

@keyframes reportAutoScroll {
  0%, 10%   { transform: translateY(0); }
  50%, 55%  { transform: translateY(var(--travel)); }
  90%, 100% { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .phone-report .report-scroll-content { animation: none; }
}

.report-stat {
  position: absolute;
  color: rgba(255,255,255,0.95);
  text-align: left;
  z-index: 1;
}
.report-stat-num {
  font-size: 160px;
  font-weight: 700;
  line-height: 0.9;
  color: rgba(245, 200, 80, 0.15);
  letter-spacing: -0.04em;
}
.report-stat-lab {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: rgba(245, 200, 80, 0.65);
  margin-top: 8px;
}
.report-stat-l { top: 10%; left: 4%; }
.report-stat-r { bottom: 10%; right: 4%; text-align: right; }
.report-stat-r .report-stat-lab { text-align: right; }

.report-chip {
  position: absolute;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  z-index: 3;
}
.report-chip b { color: var(--gold); font-weight: 700; }
.chip-sw {
  width: 10px; height: 10px; border-radius: 2px; display: inline-block;
}
.report-chip-wrap {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 3;
}
.report-chip-wrap .report-chip { position: static; }
.chip-avatar {
  width: 48px; height: 48px;
  border-radius: 22%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.35), transparent 55%),
    var(--av, #382075);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255,255,255,0.9);
  box-shadow: 0 10px 24px -6px rgba(0,0,0,0.35), 0 0 0 4px rgba(255,255,255,0.08);
  letter-spacing: 0;
  overflow: hidden;
}
.chip-avatar-img { padding: 0; }
.chip-avatar-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.report-chip-1 { top: 6%; left: 6%; }
.report-chip-2 { top: 30%; right: 4%; }
.report-chip-3 { bottom: 28%; left: 4%; }
.report-chip-4 { bottom: 6%; right: 8%; }

@keyframes chip-float-a { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }
@keyframes chip-float-b { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
.report-chip-1 { animation: chip-float-a 5.2s ease-in-out infinite; }
.report-chip-2 { animation: chip-float-b 6.0s ease-in-out infinite; animation-delay: -1.2s; }
.report-chip-3 { animation: chip-float-a 5.6s ease-in-out infinite; animation-delay: -2.4s; }
.report-chip-4 { animation: chip-float-b 6.4s ease-in-out infinite; animation-delay: -3.6s; }

/* ============================================================
   S7 PREMIUM
   ============================================================ */
.premium-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.premium-card {
  background:
    radial-gradient(100% 60% at 50% 0%, rgba(245, 200, 80, 0.22), transparent 70%),
    linear-gradient(160deg, #2A1658 0%, #1C0F42 100%);
  border-radius: 24px;
  padding: 48px 40px;
  color: #fff;
  text-align: center;
  border: 1px solid rgba(245, 200, 80, 0.2);
  position: sticky;
  top: 96px;
  box-shadow: 0 40px 80px -30px rgba(28, 15, 66, 0.6);
}
.premium-crown {
  width: 56px; height: 56px;
  margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  filter: drop-shadow(0 6px 16px rgba(245, 200, 80, 0.35));
}
.premium-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.26em;
  color: var(--gold);
  margin-bottom: 16px;
}
.premium-price {
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
}
.price-yen { font-size: 28px; vertical-align: top; margin-right: 4px; }
.price-num { font-size: 88px; }
.price-period {
  font-size: 28px;
  font-weight: 700;
  color: rgba(255,255,255,0.78);
  margin-left: 4px;
  letter-spacing: -0.02em;
}
.premium-price-note {
  font-size: 13px;
  color: rgba(255,255,255,0.68);
  margin-top: 10px;
  line-height: 1.6;
}
.premium-price-note s { color: rgba(255,255,255,0.42); }
.premium-price-note b { color: var(--gold); font-weight: 700; letter-spacing: 0.02em; font-size: 16px; }
.premium-price-note .price-strong { font-size: 22px; letter-spacing: -0.01em; }
.premium-sep {
  height: 1px;
  background: rgba(245, 200, 80, 0.3);
  margin: 28px 0;
}
.premium-tagline {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.92);
  margin: 0 0 24px;
  letter-spacing: 0.02em;
  text-align: center;
}

.premium-note {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
  text-align: center;
  margin: 12px 0 0;
}

.premium-copy { padding-top: 12px; }
.premium-copy .h2 { margin-bottom: 40px; }
.premium-feat {
  list-style: none; padding: 0; margin: 0 0 40px;
}
.premium-feat li {
  display: flex; gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--border);
}
.premium-feat li:last-child { border-bottom: 1px solid var(--border); }
.pf-num {
  min-width: 32px;
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  font-family: 'Inter', sans-serif;
  padding-top: 6px;
}
.pf-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin: 4px 0 6px;
}
.pf-body {
  font-size: 14px;
  color: var(--body);
  line-height: 1.8;
  margin: 0;
}

.premium-shots {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: flex-end;
  padding: 20px 0;
}
.premium-shots-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 28px;
  align-items: stretch;
  justify-items: center;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 24px 0;
}
.premium-shots-2x2 .phone { width: 100%; max-width: 260px; }

.premium-shots-wrap {
  padding-top: 72px;
  padding-bottom: 8px;
}
.premium-shots-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  align-items: end;
  justify-items: center;
  padding: 0;
}
.premium-shots-row .phone {
  width: 100%;
  max-width: 240px;
}
.premium-shots-row .phone:nth-child(odd) { transform: translateY(16px); }
[data-tilt="on"] .premium-shots-row .phone:nth-child(1) { transform: rotate(-3deg) translateY(16px); }
[data-tilt="on"] .premium-shots-row .phone:nth-child(2) { transform: rotate(2deg); }
[data-tilt="on"] .premium-shots-row .phone:nth-child(3) { transform: rotate(-2deg) translateY(16px); }
[data-tilt="on"] .premium-shots-row .phone:nth-child(4) { transform: rotate(3deg); }

@media (max-width: 960px) {
  .premium-shots-wrap { padding-top: 48px; }
  .premium-shots-row {
    grid-template-columns: 1fr 1fr;
    gap: 28px 24px;
    max-width: 520px;
    margin: 0 auto;
  }
  .premium-shots-row .phone { max-width: 220px; }
  .premium-shots-row .phone:nth-child(odd) { transform: none; }
  [data-tilt="on"] .premium-shots-row .phone:nth-child(1),
  [data-tilt="on"] .premium-shots-row .phone:nth-child(3) { transform: rotate(-3deg); }
  [data-tilt="on"] .premium-shots-row .phone:nth-child(2),
  [data-tilt="on"] .premium-shots-row .phone:nth-child(4) { transform: rotate(2.5deg); }
}

/* ============================================================
   S8 CLOSING
   ============================================================ */
.s8-closing { padding: 140px 0 160px; }
.closing-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
}
.closing-stage .app-icon-xl { margin-bottom: 8px; }
.closing-stage .display { font-size: clamp(44px, 5.4vw, 72px); margin: 12px 0 16px; }
.closing-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 16px;
}
.closing-note {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin: 40px 0 0;
  letter-spacing: 0.04em;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--premium-bg);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 40px;
  font-size: 13px;
}
.footer-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  gap: 16px 32px;
  align-items: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  grid-row: 1;
}
.footer-tag {
  grid-row: 1;
  color: rgba(255,255,255,0.6);
}
.footer-links {
  display: flex; gap: 22px;
  grid-row: 1;
}
.footer-links a { transition: color .2s; }
.footer-links a:hover { color: var(--gold); }
.footer-legal {
  grid-column: 1 / -1;
  grid-row: 2;
  color: rgba(255,255,255,0.4);
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(.2,.7,.2,1);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  :root { --display-size: 52px; }
  .section { padding: 96px 0; }
  .hero-grid, .calendar-grid, .event-grid, .premium-grid {
    grid-template-columns: 1fr;
    gap: 64px;
  }
  .solution-grid { grid-template-columns: 1fr; gap: 48px; }
  .problem-grid { grid-template-columns: 1fr; gap: 16px; }
  .phone-hero, .phone-main, .phone-report { max-width: 300px; }
  .report-stat-num { font-size: 100px; }
  .premium-card { position: static; }
  .hero-floater-1 { left: 0; top: 8%; }
  .hero-floater-2 { right: 0; bottom: 8%; }
  .calendar-stage { min-height: 560px; }
  .phone-day { max-width: 140px; }
  .phone-list { max-width: 170px; }
  .callout { max-width: 180px; font-size: 12px; }
  .event-visual { min-height: 540px; }
  .footer-row { grid-template-columns: 1fr; text-align: center; }
  .footer-brand, .footer-links { justify-content: center; }
}

@media (max-width: 768px) {
  :root { --display-size: 40px; --pad-x: 20px; }
  .section { padding: 72px 0; }
  .nav { display: none; }
  .header-row { height: 60px; }
  .lede { font-size: 17px; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { width: 100%; }
  .store-badges { justify-content: flex-start; }
  .problem-q { font-size: 22px; }
  .problem-card { padding: 28px 22px; }
  .phone-hero, .phone-main, .phone-stack-front, .phone-stack-back {
    max-width: 240px;
  }
  .phone-report { max-width: 300px; }
  .phone-overlay { display: none; }
  .calendar-stage { min-height: 500px; }
  .event-visual { min-height: 480px; }
  .callout { display: none; }
  .report-stat { position: static; margin: 20px 0; text-align: center; }
  .report-stat-num { font-size: 80px; }
  .report-stat-r .report-stat-lab { text-align: center; }
  .report-chip { display: none; }
  .premium-card { padding: 32px 24px; }
  .price-num { font-size: 64px; }
  .price-period { font-size: 22px; }
  .event-tag-a { top: -2%; right: -4%; }
  .event-tag-b { bottom: 4%; left: -2%; }
  .tweaks { width: calc(100% - 40px); bottom: 12px; right: 20px; }
  .hero-visual { padding: 0; }
  .hero-floater { display: none; }
}

@media (max-width: 560px) {
  :root { --display-size: 36px; }
  .s1-hero .display { font-size: 36px; line-height: 1.14; margin-top: 40px; }
}

@media (max-width: 400px) {
  :root { --display-size: 32px; }
  .s1-hero .display { font-size: 32px; line-height: 1.18; margin: 44px 0 16px; }
}

/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer { padding: 72px 0 56px; background: var(--premium-bg); color: rgba(255,255,255,0.85); }
.footer-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px 48px;
  row-gap: 20px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-tag {
  font-size: 14px;
  color: rgba(255,255,255,0.62);
  word-break: keep-all;
  overflow-wrap: normal;
  line-break: strict;
}
.footer-links {
  display: flex;
  gap: 28px;
  justify-self: end;
  white-space: nowrap;
}
.footer-links a {
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: #fff; }
.footer-legal {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  color: rgba(255,255,255,0.42);
  white-space: nowrap;
}

@media (max-width: 720px) {
  .site-footer { padding: 56px 0 40px; }
  .footer-row {
    grid-template-columns: 1fr;
    grid-auto-flow: row;
    align-items: start;
    justify-items: stretch;
    text-align: left;
    gap: 20px;
    padding: 0;
  }
  .footer-brand,
  .footer-tag,
  .footer-links { padding: 0 var(--pad-x); }
  .footer-brand {
    grid-row: 1;
    justify-content: flex-start;
  }
  .footer-tag {
    grid-row: 2;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: anywhere;
    text-wrap: pretty;
    font-size: 13px;
    letter-spacing: 0;
    max-width: none;
    text-align: left;
  }
  .footer-links {
    grid-row: 3;
    gap: 18px;
    justify-self: stretch;
    justify-content: flex-start;
    font-size: 13px;
    flex-wrap: wrap;
    max-width: none;
    padding-top: 4px;
  }
  .footer-legal {
    grid-row: 4;
    grid-column: 1 / -1;
    text-align: left;
    padding: 18px var(--pad-x) 0;
    margin-top: 4px;
    font-size: 11px;
    width: 100%;
    white-space: normal;
  }
  .footer-legal .meta-sep { margin: 0 6px; }
}

@media (max-width: 400px) {
  .footer-tag { font-size: 12.5px; }
  .footer-links { gap: 14px 18px; font-size: 12.5px; }
  .footer-legal { font-size: 10.5px; }
}
