/* =========================================================
   sppoX LP — section components
   ========================================================= */

/* =================== HERO =================== */
.hero { padding-top: 30px; padding-bottom: 30px; overflow: hidden; }
.hero .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tag {
  font-family: var(--hud); font-weight: 700; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 3px; border: 1px solid var(--line); color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 6px;
}
.tag b { color: var(--brand); }
.tag.hot { color: var(--accent); border-color: rgba(255,106,26,.4); background: rgba(255,106,26,.08); }

.hero h1 {
  font-family: var(--display); font-weight: var(--display-wt);
  font-size: clamp(34px, 10.4vw, 46px);
  line-height: 1.05;
  margin: 6px 0 4px;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.hero h1 .nw { white-space: nowrap; }
/* hero catchphrase (Tweak-editable) */
.hero-catch {
  font-family: var(--display); font-weight: var(--display-wt);
  font-size: clamp(20px, 6vw, 26px); line-height: 1.2;
  margin-bottom: 12px; letter-spacing: .01em;
}
.hero-catch .catch-hl {
  color: var(--accent); display: inline; vertical-align: baseline;
  font-size: 1.16em; font-weight: var(--display-wt);
}
.hero-catch:empty { display: none; }

/* hero: catchphrase promoted to MAIN headline */
.hero-bigcatch {
  font-family: var(--display); font-weight: var(--display-wt);
  font-size: clamp(29px, 8.4vw, 42px); line-height: 1.1;
  letter-spacing: 0; margin: 12px 0 14px;
  word-break: keep-all; overflow-wrap: normal; line-break: strict;
  white-space: nowrap;
}
.hero-bigcatch .catch-hl {
  color: var(--accent); display: inline; font-size: 1.06em; font-weight: var(--display-wt);
  white-space: nowrap;
}
.hero h1 .fes {
  display: inline-block;
  color: #1a0a00;
  background: linear-gradient(100deg, var(--accent), var(--accent-hi));
  padding: 2px 12px 4px; margin: 2px 0;
  --c: 9px;
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c)));
  box-shadow: var(--glow-accent);
  transform: skewX(-4deg);
}
.hero h1 .cy { color: var(--brand); text-shadow: var(--glow-brand); }
.hero .sub { color: var(--ink-2); font-size: 15px; margin-top: 14px; font-weight: 500; }

.hero-media {
  position: relative; margin-top: 22px;
  aspect-ratio: 16 / 9;
  --c: 14px;
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c)));
  background: linear-gradient(115deg, var(--brand), var(--accent), var(--gold), var(--accent), var(--brand));
  background-size: 300% 100%;
  animation: frame-flow 5s linear infinite;
  box-shadow: var(--glow-brand);
}
@keyframes frame-flow { to { background-position: -300% 0; } }
@media (prefers-reduced-motion: reduce) { .hero-media { animation: none; } }
.hero-media .ph { position: absolute; inset: 0; height: 100%; }

/* hero video — sits in the animated frame, gradient ring shows as the border */
.hero-vid-wrap { position: absolute; inset: 0; }
.hero-vid {
  position: absolute; inset: 4px;
  width: calc(100% - 8px); height: calc(100% - 8px);
  object-fit: cover; display: block; z-index: 1;
  --c: 11px;
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c)));
}
/* subtle bottom scrim so HUD chips stay legible over bright footage */
.hero-vid-wrap::after {
  content: ''; position: absolute; inset: 4px; z-index: 2; pointer-events: none;
  --c: 11px;
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c)));
  background: linear-gradient(180deg, rgba(6,9,18,.18) 0%, transparent 26%, transparent 62%, rgba(6,9,18,.42) 100%);
}

/* HUD chips floating on hero media */
.hud-chip {
  position: absolute; z-index: 3;
  background: rgba(6,9,18,.82); backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 13px;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
.hud-chip .k { font-family: var(--hud); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.hud-chip .v { font-family: var(--display); font-weight: var(--display-wt); font-size: 20px; line-height: 1.1; color: var(--brand); }
.hud-chip .v small { font-size: 11px; color: var(--ink-2); font-family: var(--hud); }
.hud-chip.rank .v { color: var(--gold); }
.hud-chip.tl { top: 12px; left: 12px; }
.hud-chip.tr { top: 12px; right: 12px; }
.hud-chip.bl { bottom: 12px; left: 12px; }
.hud-chip.br { bottom: 12px; right: 12px; }
/* fun anticipation chips (no fake data) */
.hud-chip.fun { display: flex; align-items: center; gap: 9px; padding: 9px 13px; animation: hookbob 2.4s ease-in-out infinite; }
.hud-chip.fun .em { font-size: 24px; line-height: 1; }
.hud-chip.fun .v { font-family: var(--display); font-weight: var(--display-wt); font-size: 14px; line-height: 1.18; color: #fff; }
.hud-chip.fun .v b { color: var(--brand); }
.hud-chip.fun.br { animation-delay: .8s; }
.hud-chip.fun.br .v b { color: var(--gold); }

.hero-info { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin-top: 20px; }

/* hero scroll-hook teaser (replaces static event facts) */
.hero-teaser { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.hero-live {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: 12px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
}
.hero-live .pip { width: 9px; height: 9px; border-radius: 50%; background: #5dff9b; flex: 0 0 9px; box-shadow: 0 0 0 0 rgba(93,255,155,.6); animation: livepip 1.8s ease-out infinite; }
@keyframes livepip { 0% { box-shadow: 0 0 0 0 rgba(93,255,155,.55); } 70% { box-shadow: 0 0 0 8px rgba(93,255,155,0); } 100% { box-shadow: 0 0 0 0 rgba(93,255,155,0); } }
.hero-live .lt { font-size: 13px; font-weight: 700; color: #fff; }
.hero-live .lt b { font-family: var(--hud); font-weight: 700; }
.hero-live .av-stack { margin-left: auto; display: flex; }
.hero-live .av-stack span { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--red, #F0001E); margin-left: -8px; background: linear-gradient(135deg, #ffd24d, #ff8ac4); }
.hero-hook {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--display); font-weight: var(--display-wt); font-size: 15px; color: #fff;
  text-align: center;
}
.hero-hook .qn { color: var(--gold, #ffd21a); }
.hero-hook .dn { animation: hookbob 1.6s ease-in-out infinite; }
@keyframes hookbob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
.info-cell { padding: 13px; }
.info-cell .k { font-family: var(--hud); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 5px; }
.info-cell .v { font-family: var(--display); font-weight: var(--display-wt); font-size: 15px; line-height: 1.25; }
.info-cell .v em { font-style: normal; color: var(--brand); }
.info-cell .v .free { color: var(--accent); }

.hero-cta { margin-top: 20px; }
.hero-note { text-align: center; font-family: var(--hud); font-size: 10.5px; letter-spacing: .1em; color: var(--ink-3); margin-top: 10px; }

/* hero variant B: ranking-forward */
.lp[data-hero="rank"] .hero-media { display: none; }
.lp[data-hero="rank"] .hero-rankcard { display: block; }
.hero-rankcard { display: none; margin-top: 22px; padding: 16px; }
.lp[data-hero="rank"] .hero-info { grid-template-columns: repeat(2,1fr); }

/* hero variant C: minimal centered */
.lp[data-hero="center"] .hero { text-align: center; }
.lp[data-hero="center"] .hero .tags { justify-content: center; }
.lp[data-hero="center"] .hero-info { max-width: 360px; margin-left: auto; margin-right: auto; }
.lp[data-hero="center"] .hero-media { max-width: 360px; margin-left: auto; margin-right: auto; }

/* mini ranking list (reused) */
.rank-list { display: flex; flex-direction: column; gap: 7px; }
.rank-row {
  display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 6px;
  background: rgba(255,255,255,.03); border: 1px solid var(--line-soft);
}
.rank-row .pos { font-family: var(--display); font-weight: var(--display-wt); font-size: 15px; color: var(--ink-3); text-align: center; }
.rank-row.r1 { border-color: rgba(255,206,58,.4); background: rgba(255,206,58,.07); }
.rank-row.r1 .pos { color: var(--gold); }
.rank-row.r2 .pos { color: var(--silver); }
.rank-row.r3 .pos { color: var(--bronze); }
.rank-row.me { border-color: var(--line); background: rgba(30,200,222,.08); box-shadow: var(--glow-brand); }
.rank-row.me .pos { color: var(--brand); }
.rank-row .who { font-weight: 700; font-size: 13.5px; }
.rank-row .who .av { display: inline-block; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg,var(--panel-2),var(--brand)); margin-right: 8px; vertical-align: middle; border: 1px solid var(--line); }
.rank-row .pts { font-family: var(--hud); font-weight: 700; font-size: 14px; }
.rank-row .pts small { color: var(--ink-3); font-size: 10px; }

/* =================== GAME =================== */
.game-sec { background: linear-gradient(180deg, transparent, rgba(30,200,222,.04), transparent); }
.game-wrap { margin-top: 20px; }
.game {
  position: relative; padding: 0; overflow: hidden;
}
.game-inner { position: relative; }

/* HUD bar */
.game-hud {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1px;
  background: var(--line); border-bottom: 1px solid var(--line);
}
.game-hud .cell { background: var(--panel); padding: 10px 12px; text-align: center; }
.game-hud .cell .k { font-family: var(--hud); font-size: 8.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.game-hud .cell .v { font-family: var(--display); font-weight: var(--display-wt); font-size: 20px; line-height: 1.15; margin-top: 2px; }
.game-hud .score .v { color: var(--brand); }
.game-hud .time .v { color: var(--ink); }
.game-hud .time.low .v { color: var(--accent); }
.game-hud .combo .v { color: var(--gold); }

/* court */
.court {
  position: relative;
  height: 380px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(30,200,222,.10), transparent 60%),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(120,150,210,.05) 38px 39px),
    linear-gradient(180deg, #0a1024, #070b18);
  overflow: hidden;
  touch-action: manipulation;
  -webkit-user-select: none; user-select: none;
}
/* court markings */
.court .arc { position: absolute; left: 50%; bottom: -120px; width: 260px; height: 260px; transform: translateX(-50%); border: 2px solid var(--line); border-radius: 50%; opacity: .5; }
.court .key { position: absolute; left: 50%; bottom: 0; width: 120px; height: 130px; transform: translateX(-50%); border: 2px solid var(--line-soft); border-bottom: none; opacity: .6; }
.court .center-msg {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px; gap: 14px; z-index: 5;
}
.court .center-msg .big { font-family: var(--display); font-weight: var(--display-wt); font-size: 30px; line-height: 1.1; }
.court .center-msg .big .cy { color: var(--brand); }
.court .center-msg p { color: var(--ink-2); font-size: 13.5px; max-width: 26ch; }

/* countdown */
.countdown {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 8;
  font-family: var(--display); font-weight: var(--display-wt); font-size: 90px; color: var(--brand); text-shadow: var(--glow-brand);
  pointer-events: none;
}
@keyframes count-pop { 0% { transform: scale(.4); opacity: 0; } 30% { opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.countdown span { animation: count-pop .9s ease forwards; display: inline-block; }

/* target */
.target {
  position: absolute; width: 64px; height: 64px; z-index: 6;
  transform: translate(-50%, -50%);
  cursor: pointer;
}
.target .ball {
  position: absolute; inset: 8px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--accent-hi), var(--accent) 60%, #b8420a);
  box-shadow: 0 0 18px rgba(255,106,26,.6), inset -4px -6px 10px rgba(0,0,0,.4);
}
.target .ball::before, .target .ball::after {
  content: ''; position: absolute; background: rgba(0,0,0,.45);
}
.target .ball::before { inset: 0; border-radius: 50%; border: 1.5px solid rgba(0,0,0,.4); }
.target .ring {
  position: absolute; inset: -2px; border-radius: 50%;
  border: 3px solid var(--brand);
  animation: ring-shrink var(--life,1.2s) linear forwards;
}
@keyframes ring-shrink { from { transform: scale(1.7); opacity: .9; } to { transform: scale(1); opacity: .4; } }
@keyframes target-in { from { transform: translate(-50%,-50%) scale(.2); opacity: 0; } to { transform: translate(-50%,-50%) scale(1); opacity: 1; } }
.target { animation: target-in .16s ease-out; }
.target.golden .ball { background: radial-gradient(circle at 35% 30%, #fff0b0, var(--gold) 55%, #c79612); box-shadow: 0 0 24px rgba(255,206,58,.8); }
.target.golden .ring { border-color: var(--gold); }

/* hit feedback */
.popscore {
  position: absolute; z-index: 7; transform: translate(-50%,-50%);
  font-family: var(--display); font-weight: var(--display-wt); font-size: 22px; color: var(--brand);
  pointer-events: none; text-shadow: 0 2px 8px rgba(0,0,0,.6);
  animation: pop-up .7s ease forwards;
}
.popscore.gold { color: var(--gold); }
@keyframes pop-up { 0% { transform: translate(-50%,-50%) scale(.6); opacity: 0; } 25% { opacity: 1; transform: translate(-50%,-90%) scale(1.1);} 100% { transform: translate(-50%,-150%) scale(1); opacity: 0; } }

@keyframes burst { to { transform: translate(-50%,-50%) scale(2.4); opacity: 0; } }
.burst { position: absolute; width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--brand); transform: translate(-50%,-50%) scale(.6); z-index: 6; pointer-events: none; animation: burst .4s ease-out forwards; }

/* result */
.result {
  position: absolute; inset: 0; z-index: 9;
  background: linear-gradient(180deg, rgba(7,11,24,.96), rgba(7,11,24,.99));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 26px 22px; gap: 6px;
  animation: result-in .4s ease;
}
@keyframes result-in { from { opacity: 0; transform: scale(1.04);} to { opacity: 1; transform: scale(1);} }
.result .clear { font-family: var(--hud); font-size: 12px; letter-spacing: .28em; color: var(--brand); text-transform: uppercase; }
.result .score-big { font-family: var(--display); font-weight: var(--display-wt); font-size: 64px; line-height: 1; color: var(--brand); text-shadow: var(--glow-brand); }
.result .score-big small { font-size: 20px; color: var(--ink-2); }
.result .rank-line { margin: 10px 0 4px; font-family: var(--display); font-weight: var(--display-wt); font-size: 17px; }
.result .rank-line em { font-style: normal; color: var(--gold); font-size: 26px; }
.result .stats { display: flex; gap: 18px; margin: 8px 0 18px; }
.result .stats .s .k { font-family: var(--hud); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.result .stats .s .v { font-family: var(--display); font-weight: var(--display-wt); font-size: 18px; }
.result .cta-stack { width: 100%; display: flex; flex-direction: column; gap: 9px; }
.result .arrow-note { font-family: var(--hud); font-size: 11px; letter-spacing: .1em; color: var(--accent); display: flex; align-items: center; justify-content: center; gap: 6px; }

.game-foot { padding: 14px 16px; display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); background: var(--panel); }
.game-foot .hud { margin: 0; }
.game-foot .spacer { flex: 1; }

/* =================== GAME → EXPERIENCE INVITE (Web体験への導線) =================== */
.launch { margin-top: 20px; }

/* experience-version switch (rich / simple) */
.xpv { display: none; }
.lp[data-xp="rich"] .xpv-rich,
.lp[data-xp="simple"] .xpv-simple,
.lp:not([data-xp]) .xpv-rich { display: block; }

/* ---- simple invite (compact single banner) ---- */
.xp-simple {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 15px;
  padding: 16px 17px; border-radius: 16px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 14%, var(--panel)), var(--panel));
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(0,0,0,.2);
}
.xp-simple .xs-badge {
  flex: 0 0 58px; width: 58px; height: 58px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, var(--accent-hi), var(--accent));
  box-shadow: var(--glow-accent);
}
.xp-simple .xs-badge svg { width: 30px; height: 30px; color: #fff; }
.xp-simple .xs-main { flex: 1; min-width: 0; }
.xp-simple .xs-k { font-family: var(--hud); font-weight: 700; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.xp-simple .xs-t { font-family: var(--display); font-weight: var(--display-wt); font-size: 16px; line-height: 1.3; margin: 2px 0 3px; }
.xp-simple .xs-d { font-size: 11.5px; color: var(--ink-2); line-height: 1.45; }
.xp-simple-cta { margin-top: 12px; }
.xp-simple-cta .btn { width: 100%; }
.xp-simple-note { text-align: center; margin-top: 9px; font-family: var(--hud); font-size: 10px; letter-spacing: .04em; color: var(--ink-3); display: flex; gap: 12px; justify-content: center; }
.xp-simple-note span { display: inline-flex; align-items: center; gap: 5px; }
.xp-simple-note span::before { content: '✓'; color: var(--brand); }

.xp-card { padding: 0; overflow: hidden; }

/* hook stage */
.xp-stage {
  position: relative; overflow: hidden;
  padding: 26px 22px 30px; text-align: center;
  background:
    radial-gradient(130% 90% at 50% 0%, rgba(30,200,222,.14), transparent 62%),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(120,150,210,.05) 38px 39px),
    linear-gradient(180deg, #0a1024, #070b18);
}
.sensor-badge {
  position: relative; z-index: 3; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--hud); font-weight: 700; font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); border: 1px solid rgba(255,106,26,.4); background: rgba(255,106,26,.1);
  padding: 5px 11px; border-radius: 999px; margin-bottom: 16px;
}
.deco-ball {
  position: absolute; width: 44px; height: 44px; border-radius: 50%; z-index: 1;
  background: radial-gradient(circle at 35% 30%, var(--accent-hi), var(--accent) 60%, #b8420a);
  box-shadow: 0 0 18px rgba(255,106,26,.5), inset -4px -6px 10px rgba(0,0,0,.4);
  opacity: .92; animation: ball-float 4.5s ease-in-out infinite;
}
@keyframes ball-float { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-12px) rotate(12deg); } }
.deco-ball.gold { background: radial-gradient(circle at 35% 30%, #fff0b0, var(--gold) 55%, #c79612); box-shadow: 0 0 20px rgba(255,206,58,.6); }
.deco-ball.b1 { top: 14%; left: 9%; width: 34px; height: 34px; animation-delay: -.4s; }
.deco-ball.b2 { top: 20%; right: 11%; animation-delay: -1.8s; }
.deco-ball.b3 { bottom: 16%; left: 14%; width: 26px; height: 26px; animation-delay: -2.6s; }
.deco-ball.b4 { bottom: 22%; right: 16%; width: 30px; height: 30px; animation-delay: -3.4s; }

.xp-hook { position: relative; z-index: 3; }
.xp-hook-k { font-family: var(--display); font-weight: var(--display-wt); font-size: 17px; color: var(--ink); margin-bottom: 2px; }
.xp-score { display: flex; align-items: baseline; justify-content: center; gap: 2px; line-height: 1; }
.xp-score .num { font-family: var(--display); font-weight: var(--display-wt); font-size: 78px; color: var(--brand); text-shadow: var(--glow-brand); }
.xp-score small { font-family: var(--display); font-weight: var(--display-wt); font-size: 22px; color: var(--ink-2); margin-left: 3px; }
.xp-rank {
  display: inline-flex; align-items: baseline; gap: 5px; margin-top: 10px; white-space: nowrap;
  font-family: var(--hud); font-weight: 700; font-size: 12.5px; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px;
}
.xp-rank b { font-family: var(--display); font-weight: var(--display-wt); font-size: 22px; color: var(--gold); }
.xp-rank span { color: var(--ink-3); font-size: 11px; }

/* flow strip */
.xp-flow {
  display: flex; align-items: stretch; justify-content: center; gap: 0;
  background: var(--panel); border-top: 1px solid var(--line);
}
.xp-step {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 6px;
}
.xp-step .xp-ic {
  width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--brand) 12%, transparent); border: 1px solid var(--line); color: var(--brand);
}
.xp-step .xp-ic svg { width: 21px; height: 21px; }
.xp-step b { font-family: var(--display); font-weight: var(--display-wt); font-size: 12.5px; color: var(--ink); white-space: nowrap; }
.xp-arrow { display: flex; align-items: center; color: var(--brand); font-family: var(--hud); font-size: 15px; }

/* cta */
.xp-cta { padding: 18px 16px 16px; background: var(--panel); border-top: 1px solid var(--line-soft); }
.xp-cta .btn { width: 100%; }
.xp-chips { display: flex; justify-content: center; gap: 7px; flex-wrap: wrap; margin-top: 12px; }
.xp-chips span {
  font-family: var(--hud); font-weight: 700; font-size: 10px; letter-spacing: .04em; color: var(--ink-2);
  border: 1px solid var(--line-soft); border-radius: 999px; padding: 5px 11px; display: inline-flex; align-items: center; gap: 5px;
}
.xp-chips span::before { content: '✓'; color: var(--brand); font-size: 10px; }

@media (prefers-reduced-motion: reduce) { .deco-ball { animation: none; } }

/* =================== FES (No.1決定戦) =================== */
/* fes design variant switch (info / hype) */
.fesv { display: none; }
.lp[data-fes="info"] .fesv-info,
.lp[data-fes="hype"] .fesv-hype,
.lp:not([data-fes]) .fesv-info { display: block; }

/* ---- HYPE: full-bleed poster + energetic highlights ---- */
/* ---- HYPE: framed festival poster, fully visible + playful frame ---- */
.fes-poster {
  position: relative; margin: 10px 0 0;
  border-radius: 18px; padding: 10px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, var(--panel)), var(--panel) 55%, color-mix(in srgb, var(--brand) 20%, var(--panel)));
  border: 2.5px solid color-mix(in srgb, var(--accent) 40%, transparent);
  box-shadow: 0 14px 40px rgba(0,0,0,.22);
  overflow: visible;
}
.fes-poster img {
  display: block; width: 100%; height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,.2);
}
/* corner confetti pops */
.fes-poster .conf { position: absolute; z-index: 3; font-size: 22px; pointer-events: none; animation: spk 2.6s ease-in-out infinite; }
.fes-poster .conf.c1 { top: -12px; left: -8px; transform: rotate(-18deg); }
.fes-poster .conf.c2 { top: -14px; right: -6px; animation-delay: .9s; }
.fes-poster .conf.c3 { bottom: -14px; right: 24px; font-size: 18px; animation-delay: 1.5s; }
/* date stamp ribbon */
.fes-poster .fp-date {
  position: absolute; z-index: 4; right: 14px; bottom: 14px;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  font-family: var(--display); font-weight: var(--display-wt); color: #fff;
  background: linear-gradient(180deg, var(--accent-hi), var(--accent));
  padding: 8px 14px; border-radius: 12px; border: 2px solid #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,.3); transform: rotate(-3deg);
}
.fes-poster .fp-date .dk { font-family: var(--hud); font-weight: 700; font-size: 8.5px; letter-spacing: .14em; opacity: .9; }
.fes-poster .fp-date .dv { font-size: 17px; line-height: 1; }
.fes-poster .fp-badge {
  position: absolute; top: -10px; left: 12px; z-index: 4;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--hud); font-weight: 700; font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: #fff; background: linear-gradient(100deg, var(--accent), var(--accent-hi)); border: 2px solid #fff;
  padding: 6px 13px; border-radius: 999px; box-shadow: 0 6px 18px rgba(0,0,0,.3);
}
.fes-poster .fp-badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: livepip 1.8s ease-out infinite; }

.fes-hype-title { text-align: center; margin-top: 14px; }
.fes-hype-title .vs { font-family: var(--hud); font-weight: 700; font-size: 11px; letter-spacing: .26em; color: var(--accent); }
.fes-hype-title h2 { font-family: var(--display); font-weight: var(--display-wt); font-size: clamp(26px, 8.4vw, 34px); line-height: 1.06; margin: 7px 0 6px; }
.fes-hype-title h2 .out { color: transparent; -webkit-text-stroke: 1.6px var(--accent); }
.fes-hype-title p { color: var(--ink-2); font-size: 13.5px; }

.fes-hype-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.fhp {
  position: relative; overflow: hidden;
  padding: 15px 14px; border-radius: 14px; text-align: left;
  background: var(--panel); border: 1px solid var(--line);
  box-shadow: 0 6px 16px rgba(0,0,0,.14);
}
.fhp .fi { font-size: 20px; line-height: 1; display: inline; margin-right: 6px; vertical-align: -2px; }
.fhp b { font-family: var(--display); font-weight: var(--display-wt); font-size: 16px; display: inline; }
.fhp span { font-size: 11.5px; color: var(--ink-2); display: block; margin-top: 4px; }
.fhp::after { content: ''; position: absolute; right: -14px; bottom: -14px; width: 54px; height: 54px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 10%, transparent); }

.fes-hype-cta {
  margin-top: 16px; padding: 17px 18px; border-radius: 14px; text-align: center;
  background: radial-gradient(120% 130% at 50% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%), var(--panel);
  border: 1px solid var(--line);
}
.fes-hype-cta .fl { font-family: var(--display); font-weight: var(--display-wt); font-size: 17px; line-height: 1.4; }
.fes-hype-cta .fl em { font-style: normal; color: var(--accent); }
.fes-hype-cta .fs { margin-top: 6px; font-size: 12px; color: var(--ink-2); }

/* =================== FES banner (info ver) =================== */
.fes-banner {
  margin-top: 4px; padding: 22px 18px; text-align: center; overflow: hidden;
  background: radial-gradient(120% 100% at 50% 0%, rgba(255,106,26,.14), transparent 65%), var(--panel);
}
.fes-banner .vs { font-family: var(--hud); font-size: 12px; letter-spacing: .3em; color: var(--accent); }
.fes-banner h2 { font-family: var(--display); font-weight: var(--display-wt); font-size: clamp(28px, 9vw, 38px); line-height: 1.04; margin: 8px 0; }
.fes-banner h2 .out { color: transparent; -webkit-text-stroke: 1.5px var(--brand); }
.fes-stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin-top: 20px; }
.fes-stat { padding: 14px; text-align: center; }
.fes-stat .v { font-family: var(--display); font-weight: var(--display-wt); font-size: 26px; color: var(--brand); line-height: 1; }
.fes-stat .v small { font-size: 13px; color: var(--ink-2); }
.fes-stat .k { font-family: var(--hud); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-top: 6px; }

/* prizes */
.prizes { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.prize { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 14px; padding: 14px 16px; }
.prize .medal { font-family: var(--display); font-weight: var(--display-wt); font-size: 30px; text-align: center; line-height: 1; }
.prize .rank-k { font-family: var(--hud); font-size: 9px; letter-spacing: .14em; color: var(--ink-3); text-transform: uppercase; }
.prize .name { font-family: var(--display); font-weight: var(--display-wt); font-size: 15px; margin-top: 3px; }
.prize .gift-ph { width: 54px; height: 54px; flex: 0 0 54px; }
.prize .gift-img { width: 52px; height: 70px; flex: 0 0 52px; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0,0,0,.28)); }
.prize.p1 { border-color: rgba(255,206,58,.45); background: linear-gradient(100deg, rgba(255,206,58,.1), transparent); }
.prize.p1 .medal { color: var(--gold); }
.prize.p2 .medal { color: var(--silver); }
.prize.p3 .medal { color: var(--bronze); }

/* ===== prizes — winner's showcase (exciting ver) ===== */
.prizes2 { margin-top: 22px; }
.prizes2-head { text-align: center; margin-bottom: 16px; }
.prizes2-head .k { display: inline-flex; align-items: center; gap: 9px; font-family: var(--hud); font-weight: 700; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.prizes2-head .k::before, .prizes2-head .k::after { content: '★'; color: var(--gold); }
.prizes2-head h3 { font-family: var(--display); font-weight: var(--display-wt); font-size: clamp(20px, 6.2vw, 25px); line-height: 1.2; margin-top: 6px; }
.prizes2-head h3 em { font-style: normal; color: var(--gold); }

/* MVP hero card */
.prize-hero {
  position: relative; overflow: hidden; border-radius: 18px;
  padding: 22px 18px 20px; text-align: center;
  background:
    radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--gold) 26%, transparent), transparent 62%),
    linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1.5px solid color-mix(in srgb, var(--gold) 55%, transparent);
  box-shadow: 0 14px 40px rgba(0,0,0,.26), inset 0 0 30px color-mix(in srgb, var(--gold) 12%, transparent);
}
/* rotating light rays behind the prize */
.prize-hero .rays {
  position: absolute; top: -40%; left: 50%; width: 360px; height: 360px; transform: translateX(-50%);
  z-index: 0; pointer-events: none; opacity: .5;
  background: repeating-conic-gradient(from 0deg at 50% 50%, color-mix(in srgb, var(--gold) 30%, transparent) 0deg 6deg, transparent 6deg 18deg);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 62%);
          mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 62%);
  animation: rays-spin 36s linear infinite;
}
@keyframes rays-spin { to { transform: translateX(-50%) rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .prize-hero .rays { animation: none; } }
.prize-hero > * { position: relative; z-index: 1; }
.prize-hero .crown { font-size: 26px; line-height: 1; margin-bottom: 4px; }
.prize-hero .mvp-badge {
  display: inline-block; font-family: var(--display); font-weight: var(--display-wt); font-size: 14px; letter-spacing: .12em;
  color: #2a1a00; background: linear-gradient(180deg, #ffe48a, var(--gold)); padding: 4px 16px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 5px 14px color-mix(in srgb, var(--gold) 45%, transparent); margin-bottom: 14px;
}
.prize-hero .kh {
  width: 150px; height: 192px; object-fit: contain; margin: 0 auto 12px;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.4));
  animation: kh-bob 3.4s ease-in-out infinite;
}
@keyframes kh-bob { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-7px) rotate(1deg); } }
@media (prefers-reduced-motion: reduce) { .prize-hero .kh { animation: none; } }
.prize-hero .kh-ph { width: 132px; height: 150px; margin: 0 auto 12px; }
/* two prize items (certificate + keyholder) */
.prize-items { display: flex; align-items: flex-end; justify-content: center; gap: 16px; margin-bottom: 12px; }
.prize-items .pi { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.prize-items .kh { width: 112px; height: 150px; margin: 0; }
.prize-items .kh-ph { width: 100px; height: 130px; margin: 0; }
.prize-items .pi-cap { font-family: var(--hud); font-weight: 700; font-size: 10px; letter-spacing: .08em; color: var(--ink-3); }
.cert {
  position: relative; width: 96px; height: 128px; padding: 13px 11px;
  display: flex; flex-direction: column; gap: 6px;
  background: linear-gradient(165deg, #fffdf6, #f1e6c9);
  border: 1px solid color-mix(in srgb, var(--gold) 45%, #ddd);
  border-radius: 6px; transform: rotate(-5deg);
  box-shadow: 0 9px 20px rgba(0,0,0,.24);
  animation: kh-bob 3.4s ease-in-out infinite .4s;
}
@media (prefers-reduced-motion: reduce) { .cert { animation: none; } }
.cert::before { content: ''; position: absolute; inset: 4px; border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); border-radius: 3px; pointer-events: none; }
.cert .ct { font-family: var(--display); font-weight: var(--display-wt); font-size: 12px; letter-spacing: .14em; color: var(--brand); text-align: center; margin-bottom: 2px; }
.cert .cl { height: 2px; border-radius: 2px; background: rgba(40,20,20,.14); }
.cert .cl.s { width: 62%; }
.cert .cl.m { width: 82%; }
.cert .seal { position: absolute; bottom: 9px; right: 9px; width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 38% 34%, #ffe9a8, var(--gold) 70%); box-shadow: 0 2px 5px rgba(0,0,0,.3); }
.cert .seal::after { content: '★'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; color: #7a5a10; }
.prize-hero .pname { font-family: var(--display); font-weight: var(--display-wt); font-size: 18px; line-height: 1.3; }
.prize-hero .psub { font-family: var(--hud); font-weight: 700; font-size: 11px; letter-spacing: .08em; color: var(--gold); margin-top: 5px; }
/* horizontal MVP layout: badge left, info right */
.mvp-main { display: flex; align-items: center; gap: 16px; text-align: left; }
.mvp-main .kh, .mvp-main .kh-ph { margin: 0 !important; flex: 0 0 auto; width: 118px; height: 148px; }
.mvp-main .mvp-info { flex: 1; min-width: 0; }
.mvp-main .mvp-info .mvp-badge { margin-bottom: 9px; }
.mvp-main .mvp-info .pname { font-size: 17px; }

/* podium: 3 badges side by side (2nd · MVP · 3rd) */
.podium { display: grid; grid-template-columns: 1fr 1.25fr 1fr; align-items: end; gap: 8px; margin-top: 4px; }
.podium .pod { position: relative; text-align: center; }
.podium .pod .crown { font-size: 22px; line-height: 1; margin-bottom: 2px; }
.podium .pod .rk { display: inline-block; font-family: var(--hud); font-weight: 700; font-size: 9px; letter-spacing: .06em; padding: 3px 9px; border-radius: 999px; margin-bottom: 7px; white-space: nowrap; }
.podium .pod.silver .rk { color: #3a3f46; background: linear-gradient(180deg, #f0f2f5, #c8ced6); }
.podium .pod.bronze .rk { color: #3a2410; background: linear-gradient(180deg, #e6b483, var(--bronze)); }
.podium .pod.mvp .rk { color: #2a1a00; background: linear-gradient(180deg, #ffe48a, var(--gold)); font-size: 11px; padding: 4px 13px; }
.podium .pod img, .podium .pod .ph { width: 100%; max-width: 88px; height: auto; aspect-ratio: 5 / 6.2; object-fit: contain; margin: 0 auto 7px; filter: drop-shadow(0 6px 12px rgba(0,0,0,.3)); }
.podium .pod.mvp img, .podium .pod.mvp .ph { max-width: 120px; filter: drop-shadow(0 8px 16px rgba(0,0,0,.34)); animation: kh-bob 3.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce){ .podium .pod.mvp img { animation: none; } }
.podium .pod .pname { font-family: var(--display); font-weight: var(--display-wt); font-size: 12px; line-height: 1.25; }
.podium .pod.mvp .pname { font-size: 14px; }
.podium .pod .psub { font-family: var(--body); font-weight: 500; font-size: 9.5px; color: var(--ink-3); margin-top: 2px; }
/* 2nd/3rd row nested inside the MVP card */
.prize-inrow { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.prize-inrow .pmini { text-align: center; }
.prize-inrow .pmini .rk { display: inline-block; font-family: var(--hud); font-weight: 700; font-size: 9.5px; letter-spacing: .08em; padding: 3px 11px; border-radius: 999px; margin-bottom: 7px; white-space: nowrap; }
.prize-inrow .pmini.silver .rk { color: #3a3f46; background: linear-gradient(180deg, #f0f2f5, #c8ced6); }
.prize-inrow .pmini.bronze .rk { color: #3a2410; background: linear-gradient(180deg, #e6b483, var(--bronze)); }
.prize-inrow .pmini img { width: 78px; height: 96px; object-fit: contain; margin: 0 auto 6px; filter: drop-shadow(0 5px 10px rgba(0,0,0,.28)); }
.prize-inrow .pmini .ph { width: 78px; height: 90px; margin: 0 auto 6px; }
.prize-inrow .pmini .pname { font-family: var(--display); font-weight: var(--display-wt); font-size: 12.5px; line-height: 1.3; }
.prize-inrow .pmini .psub { font-family: var(--body); font-weight: 500; font-size: 10px; color: var(--ink-3); margin-top: 2px; letter-spacing: 0; }
.prize-hero .sparkle { position: absolute; z-index: 1; color: var(--gold); pointer-events: none; animation: spk 2.6s ease-in-out infinite; }
.prize-hero .sparkle.s1 { top: 16px; right: 22px; font-size: 16px; }
.prize-hero .sparkle.s2 { top: 64px; left: 20px; font-size: 11px; animation-delay: .8s; }
.prize-hero .sparkle.s3 { bottom: 54px; right: 30px; font-size: 13px; animation-delay: 1.5s; }
@keyframes spk { 0%,100% { opacity: .3; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.15); } }

/* 2nd / 3rd duo */
.prize-duo { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.prize-mini {
  position: relative; overflow: hidden; border-radius: 14px; padding: 16px 12px 14px; text-align: center;
  background: var(--panel); border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(0,0,0,.16);
}
.prize-mini .rk { display: inline-block; font-family: var(--hud); font-weight: 700; font-size: 10px; letter-spacing: .08em; padding: 3px 11px; border-radius: 999px; margin-bottom: 8px; white-space: nowrap; }
.prize-mini.silver .rk { color: #3a3f46; background: linear-gradient(180deg, #f0f2f5, #c8ced6); }
.prize-mini.bronze .rk { color: #3a2410; background: linear-gradient(180deg, #e6b483, var(--bronze)); }
.prize-mini .kh { width: 96px; height: 124px; object-fit: contain; margin: 0 auto 8px; filter: drop-shadow(0 6px 12px rgba(0,0,0,.3)); }
.prize-mini .kh-ph { width: 76px; height: 90px; margin: 0 auto 8px; }
.prize-mini .pname { font-family: var(--display); font-weight: var(--display-wt); font-size: 13px; line-height: 1.3; }
.prize-mini .psub { font-size: 10.5px; color: var(--ink-3); margin-top: 3px; }

/* ===== special challenge badges (条件クリアで解放) ===== */
.spbadge-head { margin-top: 30px; text-align: center; }
.spbadge-head .k { display: inline-flex; align-items: center; gap: 8px; font-family: var(--hud); font-weight: 700; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.spbadge-head .k::before, .spbadge-head .k::after { content: '⚡'; }
.spbadge-head h3 { font-family: var(--display); font-weight: var(--display-wt); font-size: clamp(19px, 5.8vw, 23px); line-height: 1.25; margin-top: 6px; }
.spbadge-head h3 em { font-style: normal; color: var(--accent); }
.spbadge-head p { font-size: 12.5px; color: var(--ink-2); margin-top: 6px; }
.spbadge-grid { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.spbadge {
  position: relative; overflow: hidden; border-radius: 16px; padding: 18px 14px 16px; text-align: center;
  background:
    radial-gradient(80% 55% at 50% 0%, color-mix(in srgb, var(--sp, var(--accent)) 40%, transparent), transparent 72%),
    linear-gradient(165deg, #1a1f33, #0a0d18 70%);
  border: 1.5px solid color-mix(in srgb, var(--sp, var(--accent)) 50%, transparent);
  box-shadow: 0 10px 28px rgba(0,0,0,.32), inset 0 0 26px color-mix(in srgb, var(--sp, var(--accent)) 12%, transparent);
}
.spbadge::before {
  content: ''; position: absolute; top: -40%; left: 50%; width: 200%; height: 200%; transform: translateX(-50%);
  z-index: 0; pointer-events: none; opacity: .35;
  background: repeating-conic-gradient(from 0deg at 50% 50%, color-mix(in srgb, var(--sp, var(--accent)) 38%, transparent) 0deg 5deg, transparent 5deg 16deg);
  -webkit-mask-image: radial-gradient(circle at 50% 32%, #000 0%, transparent 56%);
          mask-image: radial-gradient(circle at 50% 32%, #000 0%, transparent 56%);
  animation: rays-spin 40s linear infinite;
}
@media (prefers-reduced-motion: reduce){ .spbadge::before { animation: none; } }
.spbadge > * { position: relative; z-index: 1; }
.spbadge .img { width: 130px; height: 150px; object-fit: contain; border-radius: 0; margin: 0 auto 12px; filter: drop-shadow(0 8px 18px rgba(0,0,0,.5)); animation: kh-bob 3.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce){ .spbadge .img { animation: none; } }
.spbadge .nm { font-family: var(--display); font-weight: var(--display-wt); font-size: 15px; line-height: 1.2; color: #fff; }
.spbadge .cond { margin-top: 8px; font-size: 11.5px; color: rgba(255,255,255,.72); line-height: 1.5; }
.spbadge .cond b { color: color-mix(in srgb, var(--sp, var(--accent)) 60%, #fff); }
.spbadge .lock { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; font-family: var(--hud); font-weight: 700; font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.66); border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 4px 10px; }
.spbadge .lock::before { content: '🔒'; font-size: 11px; }
.spbadge.b1 { --sp: #ef2b3c; }
.spbadge.b2 { --sp: #8b4cff; }
/* secret/hidden badge */
.spbadge.secret .img { filter: brightness(0) opacity(.62) drop-shadow(0 8px 16px rgba(0,0,0,.3)); animation: none; }
.spbadge.secret .img-wrap { position: relative; width: 130px; height: 150px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; animation: kh-bob 3.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce){ .spbadge.secret .img-wrap { animation: none; } }
.spbadge.secret .img-wrap .img { margin: 0; position: absolute; inset: 0; }
.spbadge.secret .qmark { position: relative; z-index: 1; font-family: var(--display); font-weight: var(--display-wt); font-size: 56px; color: var(--sp, var(--accent)); text-shadow: 0 4px 14px color-mix(in srgb, var(--sp, var(--accent)) 50%, transparent); }
.spbadge.secret .nm { letter-spacing: .14em; }
.spbadge-note { margin-top: 12px; text-align: center; font-family: var(--hud); font-size: 10.5px; letter-spacing: .04em; color: var(--ink-3); }

/* =================== GROWTH LOOP (なぜ上達) =================== */
.loop { margin-top: 24px; display: flex; flex-direction: column; gap: 0; }
.loop-step {
  display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start;
  padding: 4px 0;
}
.loop-step .node {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: var(--display-wt); font-size: 20px;
  border: 1.5px solid var(--line); background: var(--panel); color: var(--brand);
  position: relative;
}
.loop-step .node .n { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: #160800; font-family: var(--hud); font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.loop-step .body { padding-bottom: 22px; }
.loop-step .body h4 { font-family: var(--display); font-weight: var(--display-wt); font-size: 17px; margin-bottom: 4px; }
.loop-step .body p { color: var(--ink-2); font-size: 13.5px; }
.loop-connector { width: 52px; display: flex; justify-content: center; }
.loop-connector::before { content: ''; width: 2px; height: 22px; background: linear-gradient(var(--brand), var(--line)); margin: -20px 0 -2px; }
.loop-step:last-child .body { padding-bottom: 0; }

.loop-result {
  margin-top: 16px; padding: 16px 18px; text-align: center;
  background: radial-gradient(100% 100% at 50% 0%, rgba(182,242,74,.1), transparent), var(--panel);
}
.loop-result .v { font-family: var(--display); font-weight: var(--display-wt); font-size: 19px; }
.loop-result .v .lime { color: var(--lime); }

/* ---- WHY section variant switch ---- */
.whyv { display: none; }
.lp[data-why="loop"] .whyv-loop,
.lp[data-why="quest"] .whyv-quest,
.lp[data-why="story"] .whyv-story,
.lp:not([data-why]) .whyv-loop { display: block; }

/* ===== WHY variant C : ストーリー型（楽しい→続く→変わる） ===== */
.story-lead {
  margin-top: 22px; text-align: center;
  font-family: var(--display); font-weight: var(--display-wt);
  font-size: clamp(18px, 5.4vw, 22px); line-height: 1.4;
}
.story-lead .pop { color: var(--accent); }
.story-lead .mut { color: var(--ink-3); }

/* "本人は遊んでるだけ / 実は…" reveal cards */
.story-twin { margin-top: 20px; display: grid; grid-template-columns: 1fr; gap: 12px; }
.story-face {
  position: relative; padding: 16px 16px 16px 56px; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--line-soft);
}
.story-face .em { position: absolute; left: 14px; top: 15px; font-size: 26px; line-height: 1; }
.story-face .lab { font-family: var(--hud); font-weight: 700; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 3px; }
.story-face .tx { font-family: var(--display); font-weight: var(--display-wt); font-size: 15.5px; line-height: 1.35; }
.story-face.kid { border-color: color-mix(in srgb, var(--brand) 35%, transparent); background: color-mix(in srgb, var(--brand) 7%, var(--panel)); }
.story-face.kid .lab { color: var(--brand); }
.story-face.real { border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: color-mix(in srgb, var(--accent) 7%, var(--panel)); }
.story-face.real .lab { color: var(--accent); }
.story-face.real .tx em { font-style: normal; color: var(--accent); }
.story-vs {
  text-align: center; font-family: var(--hud); font-weight: 700; font-size: 10.5px; letter-spacing: .1em;
  color: var(--ink-3); margin: -2px 0;
}

/* habit progress (楽しいから、気づけば続いてる) */
.story-habit { margin-top: 18px; padding: 18px 18px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.story-habit .hh { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.story-habit .hh .t { font-family: var(--display); font-weight: var(--display-wt); font-size: 15px; }
.story-habit .hh .d { font-family: var(--hud); font-weight: 700; font-size: 12px; color: var(--accent); }
.habit-bars { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; align-items: end; height: 64px; }
.habit-bars i { display: block; border-radius: 3px 3px 1px 1px; background: color-mix(in srgb, var(--brand) 55%, transparent); }
.habit-bars i.up { background: linear-gradient(180deg, var(--accent-hi), var(--accent)); }
.story-habit .hcap { display: flex; justify-content: space-between; margin-top: 8px; font-family: var(--hud); font-size: 9.5px; letter-spacing: .04em; color: var(--ink-3); }
/* streak calendar (clearer "毎日続いてる") */
.habit-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; }
.habit-cal .cd {
  aspect-ratio: 1; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-family: var(--hud); font-weight: 700; font-size: 13px; color: #fff;
  background: linear-gradient(160deg, var(--accent-hi), var(--accent));
  box-shadow: 0 3px 8px color-mix(in srgb, var(--accent) 28%, transparent);
}
.habit-cal .cd.off { background: var(--line-soft); color: var(--ink-3); box-shadow: none; }
.habit-cal .cd.today { background: linear-gradient(160deg, #ffe48a, var(--gold)); color: #2a1a00; outline: 2px solid var(--gold); outline-offset: 1px; }
.story-habit .hcap2 { margin-top: 11px; text-align: center; font-size: 12px; color: var(--ink-2); }
.story-habit .hcap2 b { color: var(--accent); font-family: var(--display); font-weight: var(--display-wt); }

.story-punch {
  margin-top: 16px; padding: 18px 18px; border-radius: 14px; text-align: center;
  background: radial-gradient(120% 120% at 50% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%), var(--panel);
  border: 1px solid var(--line);
}
.story-punch .pl { font-family: var(--display); font-weight: var(--display-wt); font-size: 17px; line-height: 1.45; }
.story-punch .pl .hl { color: var(--accent); }
.story-punch .ps { font-size: 12.5px; color: var(--ink-2); margin-top: 7px; line-height: 1.6; }

/* ===== WHY variant B : クエスト型（フェスポイント） ===== */
.quest-rule {
  margin-top: 22px; padding: 20px 18px; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
}
.quest-rule .rk {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--hud); font-weight: 700; font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 4px 11px; margin-bottom: 12px;
}
.quest-rule .rt { font-family: var(--display); font-weight: var(--display-wt); font-size: 18px; line-height: 1.3; }
.quest-rule .rt .pt { color: var(--accent); }
.quest-rule .rd { font-size: 12.5px; color: var(--ink-2); line-height: 1.6; margin-top: 8px; }

/* daily point tracker */
.pt-track { margin-top: 14px; }
.pt-track .pt-cap { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 9px; }
.pt-track .pt-cap .l { font-family: var(--hud); font-weight: 700; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.pt-track .pt-cap .r { font-family: var(--display); font-weight: var(--display-wt); font-size: 13px; color: var(--accent); }
.pt-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.pt-day { text-align: center; }
.pt-day .dot {
  width: 100%; aspect-ratio: 1; border-radius: 11px; display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--line-soft); color: var(--ink-3); position: relative;
  font-family: var(--hud); font-weight: 700; font-size: 11px;
}
.pt-day.on .dot {
  background: linear-gradient(150deg, var(--accent-hi), var(--accent)); color: #fff; border-color: transparent;
  box-shadow: 0 4px 10px color-mix(in srgb, var(--accent) 35%, transparent);
}
.pt-day.on .dot::after { content: '✓'; font-size: 14px; }
.pt-day.today .dot { border-color: var(--accent); border-style: dashed; color: var(--accent); }
.pt-day .dl { font-family: var(--hud); font-size: 8.5px; letter-spacing: .04em; color: var(--ink-3); margin-top: 4px; display: block; }

/* causal cycle */
.quest-cycle { margin-top: 22px; position: relative; display: flex; flex-direction: column; gap: 0; }
.qc {
  position: relative; z-index: 1; display: grid; grid-template-columns: 50px 1fr; gap: 14px; align-items: center;
  padding: 14px 16px; border-radius: 13px;
  background: var(--panel); border: 1px solid var(--line-soft);
}
.qc .qn {
  width: 50px; height: 50px; flex: 0 0 50px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center; font-size: 23px;
  background: color-mix(in srgb, var(--brand) 12%, transparent); border: 1px solid var(--line);
}
.qc .qb h4 { font-family: var(--display); font-weight: var(--display-wt); font-size: 15.5px; margin-bottom: 2px; }
.qc .qb p { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.qc .qb .gain { color: var(--accent); font-family: var(--hud); font-weight: 700; }
.qc-link {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--hud); font-weight: 700; font-size: 10.5px; letter-spacing: .06em; color: var(--accent);
  padding: 7px 0;
}
.qc-link::before, .qc-link::after { content: ''; width: 22px; height: 1px; background: color-mix(in srgb, var(--accent) 45%, transparent); }
.quest-loopback {
  margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 16px; border-radius: 13px; text-align: center;
  background: color-mix(in srgb, var(--accent) 8%, var(--panel));
  border: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent);
  font-family: var(--display); font-weight: var(--display-wt); font-size: 14.5px;
}
.quest-loopback .lt { color: var(--accent); font-size: 18px; }
.quest-loopback b { color: var(--accent); }

/* =================== UNLOCK CARDS (クラブ限定) =================== */
.unlock-grid { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.unlock {
  position: relative; padding: 0; overflow: hidden;
}
.unlock .card-media { position: relative; aspect-ratio: 16/9; }
.unlock .card-media .ph { position: absolute; inset: 0; height: 100%; border: none; }
.unlock .lock-badge {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  font-family: var(--hud); font-weight: 700; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 3px; display: inline-flex; align-items: center; gap: 6px;
}
.unlock .lock-badge.locked { background: rgba(6,9,18,.8); border: 1px solid var(--line); color: var(--ink-2); }
.unlock .lock-badge.unlocked { background: linear-gradient(100deg,var(--brand),var(--brand-hi)); color: #021016; box-shadow: var(--glow-brand); }
.unlock .club-logo-ph { position: absolute; left: 10px; top: 10px; z-index: 3; width: 44px; height: 44px; border-radius: 8px; }
.unlock .card-body { padding: 14px 16px 16px; }
.unlock .club-k { font-family: var(--hud); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.unlock h4 { font-family: var(--display); font-weight: var(--display-wt); font-size: 18px; margin: 4px 0 8px; }
.unlock .feats { display: flex; flex-wrap: wrap; gap: 6px; }
.unlock .feat { font-family: var(--hud); font-size: 10.5px; font-weight: 600; padding: 5px 9px; border-radius: 3px; border: 1px solid var(--line-soft); color: var(--ink-2); background: rgba(255,255,255,.03); }
.unlock .feat::before { content: '▸ '; color: var(--brand); }
.unlock.locked .card-media .ph { filter: grayscale(.5) brightness(.7); }

.swap-note { margin-top: 14px; font-family: var(--hud); font-size: 10.5px; letter-spacing: .06em; color: var(--ink-3); text-align: center; display: flex; align-items: center; justify-content: center; gap: 8px; }
.swap-note::before, .swap-note::after { content: ''; height: 1px; flex: 1; background: var(--line-soft); }

/* =================== AI =================== */
.ai-sec { background: radial-gradient(120% 60% at 50% 0%, rgba(30,200,222,.06), transparent); }
.ai-flow { margin-top: 22px; display: grid; grid-template-columns: 1fr; gap: 10px; }
.ai-step { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 14px 16px; }
.ai-step .ic { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; background: rgba(30,200,222,.07); font-family: var(--hud); font-weight: 700; color: var(--brand); font-size: 15px; }
.ai-step .t { font-family: var(--display); font-weight: var(--display-wt); font-size: 15px; }
.ai-step .d { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.ai-menu { margin-top: 16px; padding: 16px; }
.ai-menu .head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.ai-menu .head .badge { font-family: var(--hud); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: #021016; background: var(--brand); padding: 3px 7px; border-radius: 3px; font-weight: 700; }
.ai-menu .head .wk { font-family: var(--display); font-weight: var(--display-wt); font-size: 14px; }
.ai-task { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line-soft); }
.ai-task:first-of-type { border-top: none; }
.ai-task .chk { width: 20px; height: 20px; border-radius: 5px; border: 1.5px solid var(--line); flex: 0 0 20px; display: flex; align-items: center; justify-content: center; color: var(--brand); font-size: 12px; }
.ai-task.done .chk { background: var(--brand); color: #021016; border-color: var(--brand); }
.ai-task.done .label { color: var(--ink-3); text-decoration: line-through; }
.ai-task .label { font-size: 13.5px; font-weight: 500; flex: 1; }
.ai-task .mins { font-family: var(--hud); font-size: 11px; color: var(--ink-3); }

/* ---- AI design variant switch ---- */
.aiv { display: none; }
.lp[data-ai="flow"] .aiv-flow,
.lp[data-ai="chat"] .aiv-chat,
.lp:not([data-ai]) .aiv-flow { display: block; }

/* ===== AI variant B : チャットUI ===== */
.ai-feats { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.ai-feat { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: center; }
.ai-feat .fi {
  width: 46px; height: 46px; flex: 0 0 46px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  border: 1px solid var(--line); color: var(--brand);
}
.ai-feat .fi svg { width: 24px; height: 24px; }
.ai-feat.f2 .fi { background: color-mix(in srgb, var(--lime) 14%, transparent); border-color: color-mix(in srgb, var(--lime) 40%, transparent); color: var(--lime); }
.ai-feat.f3 .fi { background: color-mix(in srgb, var(--accent) 13%, transparent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); color: var(--accent); }
.ai-feat .ft h4 { font-family: var(--display); font-weight: var(--display-wt); font-size: 15.5px; margin-bottom: 2px; }
.ai-feat .ft p { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }

/* phone chat mockup (always light "device screen") */
.chat-mock {
  margin-top: 24px; border-radius: 22px; overflow: hidden;
  background: #eef1f7; border: 1px solid rgba(20,40,80,.1);
  box-shadow: 0 22px 50px rgba(0,0,0,.32);
}
.chat-head { display: flex; align-items: center; gap: 11px; padding: 15px 16px; background: #fff; border-bottom: 1px solid #e7eaf2; }
.chat-head .av { width: 40px; height: 40px; border-radius: 50%; flex: 0 0 40px; background: linear-gradient(140deg, #cfd6e6, #aeb8d0); display: flex; align-items: center; justify-content: center; color: #5b6280; }
.chat-head .av svg { width: 22px; height: 22px; color: #5b6280; }
.chat-head .nm { font-family: var(--display); font-weight: var(--display-wt); font-size: 14px; color: #18203a; }
.chat-head .on { font-family: var(--hud); font-weight: 700; font-size: 10.5px; color: #1f9d57; display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.chat-head .on::before { content: ''; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #25c46a; }
.chat-body { padding: 16px 14px; display: flex; flex-direction: column; gap: 12px; }
.brow { display: flex; gap: 9px; align-items: flex-end; max-width: 88%; }
.brow .ba { width: 28px; height: 28px; border-radius: 50%; flex: 0 0 28px; background: linear-gradient(140deg, #cfd6e6, #aeb8d0); }
.bubble { padding: 11px 14px; border-radius: 16px; font-size: 13.5px; line-height: 1.5; color: #1c2540; }
.bubble.ai { background: #fff; border-bottom-left-radius: 5px; box-shadow: 0 2px 6px rgba(20,40,80,.07); }
.brow.me { margin-left: auto; flex-direction: row-reverse; max-width: 82%; }
.bubble.me { background: linear-gradient(150deg, var(--accent-hi), var(--accent)); color: #fff; border-bottom-right-radius: 5px; }
.menu-bubble { background: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: 0 2px 8px rgba(20,40,80,.08); align-self: flex-start; max-width: 92%; }
.menu-bubble .mt { font-family: var(--display); font-weight: var(--display-wt); font-size: 14px; color: var(--accent); margin-bottom: 9px; }
.menu-bubble .mi { display: flex; align-items: center; gap: 11px; padding: 6px 0; font-size: 13px; color: #1c2540; border-top: 1px solid #f0f2f8; }
.menu-bubble .mi:first-of-type { border-top: none; }
.menu-bubble .mi .n { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 16%, #fff); color: var(--accent); font-family: var(--hud); font-weight: 700; font-size: 11px; display: flex; align-items: center; justify-content: center; }
.typing { display: inline-flex; gap: 4px; background: #fff; padding: 13px 16px; border-radius: 16px; border-bottom-left-radius: 5px; box-shadow: 0 2px 6px rgba(20,40,80,.07); }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #b7c0d6; animation: typedot 1.2s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .18s; }
.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes typedot { 0%,60%,100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.chat-input { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #fff; border-top: 1px solid #e7eaf2; }
.chat-input .fld { flex: 1; height: 38px; border-radius: 999px; background: #eef1f7; }
.chat-input .snd { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; background: linear-gradient(150deg, var(--accent-hi), var(--accent)); display: flex; align-items: center; justify-content: center; color: #fff; }
.chat-input .snd svg { width: 19px; height: 19px; }

/* AI coach video — inside an iPhone frame */
.coach-chat-video {
  margin-top: 26px;
  width: 290px; max-width: 82%;
  margin-left: auto; margin-right: auto;
  position: relative;
  padding: 34px 11px 13px;
  border-radius: 46px;
  background: linear-gradient(155deg, #2b2f38, #0c0e14 60%);
  box-shadow:
    0 0 0 2px #3a3f4a,
    0 26px 56px rgba(0,0,0,.4),
    inset 0 1px 2px rgba(255,255,255,.18);
}
.coach-chat-video::before {
  /* notch / dynamic island sits in the top bezel band */
  content: ''; position: absolute; top: 13px; left: 50%; transform: translateX(-50%);
  width: 84px; height: 22px; border-radius: 999px; background: #05070e; z-index: 3;
}
.coach-chat-video video {
  display: block; width: 100%; height: auto;
  border-radius: 30px; background: #05070e;
}

/* coach video card */
.coach-card {
  margin-top: 14px; position: relative; overflow: hidden;
  border-radius: 18px; padding: 30px 20px; text-align: center;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
}
.coach-card::before {
  content: ''; position: absolute; inset: 0; z-index: 0; opacity: .5;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 12px, transparent 12px 24px);
}
.coach-card > * { position: relative; z-index: 1; }
.coach-card .tag { display: inline-block; font-family: var(--hud); font-weight: 700; font-size: 10.5px; letter-spacing: .14em; color: #021016; background: var(--brand); padding: 5px 12px; border-radius: 999px; margin-bottom: 16px; }
.coach-card .play { width: 70px; height: 70px; margin: 0 auto 16px; border-radius: 50%; background: linear-gradient(150deg, var(--accent-hi), var(--accent), var(--brand)); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 30px color-mix(in srgb, var(--accent) 45%, transparent); }
.coach-card .play .tri { width: 0; height: 0; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; margin-left: 5px; }
.coach-card .lbl { font-family: var(--hud); font-weight: 700; font-size: 11.5px; letter-spacing: .06em; color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; display: inline-block; }

/* coach video card (with real video) */
.coach-video {
  margin-top: 14px; position: relative; overflow: hidden;
  border-radius: 18px; border: 1px solid var(--line);
  background: #05070e;
  box-shadow: 0 14px 36px rgba(0,0,0,.3);
}
.coach-video video { display: block; width: 100%; height: auto; background: #05070e; }
.coach-video .vtag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-family: var(--hud); font-weight: 700; font-size: 10.5px; letter-spacing: .14em;
  color: #021016; background: var(--brand); padding: 5px 12px; border-radius: 999px;
  box-shadow: var(--glow-brand);
}
.coach-video .vcap {
  padding: 12px 16px; display: flex; align-items: center; gap: 8px;
  font-family: var(--hud); font-weight: 700; font-size: 11.5px; letter-spacing: .04em; color: var(--ink-2);
  border-top: 1px solid var(--line); background: var(--panel);
}
.coach-video .vcap::before { content: '▶'; color: var(--accent); font-size: 11px; }

/* =================== PARENTS =================== */
.parent-sec { background: var(--bg-2); }
.parent-reasons { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.preason { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: center; padding: 15px 18px; }
.preason .ic {
  width: 56px; height: 56px; border-radius: 16px; flex: 0 0 56px;
  background: linear-gradient(150deg, var(--accent-hi), var(--accent)); color: #fff;
  border: none; display: flex; align-items: center; justify-content: center;
  margin-bottom: 0; box-shadow: var(--glow-accent);
}
.preason .ic svg { width: 28px; height: 28px; display: block; }
.preason h4 { font-family: var(--display); font-weight: var(--display-wt); font-size: 16px; line-height: 1.3; margin-bottom: 3px; }
.preason p { font-size: 12.5px; color: var(--ink-2); line-height: 1.55; }

.reviews { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.review { padding: 15px 16px; }
.review .top { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.review .av { width: 44px; height: 44px; border-radius: 50%; flex: 0 0 44px; object-fit: cover; border: 2px solid var(--line); }
.review .who { font-family: var(--body); font-weight: 700; font-size: 13px; white-space: nowrap; }
.review .who .sub { font-weight: 400; font-size: 11px; color: var(--ink-3); }
.review .stars { margin-left: auto; color: var(--gold); font-size: 13px; letter-spacing: 1px; }
.review p { font-size: 13px; color: var(--ink); line-height: 1.65; }
.review .rv-head { display: block; font-family: var(--display); font-weight: var(--display-wt); color: var(--brand); font-size: 14.5px; line-height: 1.42; margin-bottom: 6px; }
.review .tagrow { margin-top: 9px; display: flex; gap: 6px; flex-wrap: wrap; }
.review .rtag { font-family: var(--hud); font-size: 9.5px; letter-spacing: .06em; color: var(--brand); border: 1px solid var(--line); padding: 3px 7px; border-radius: 3px; white-space: nowrap; }

/* =================== STEPS (利用の流れ) =================== */
.steps { margin-top: 22px; display: flex; flex-direction: column; gap: 0; }
.step { display: grid; grid-template-columns: 46px 1fr; gap: 16px; }
.step .marker { display: flex; flex-direction: column; align-items: center; }
.step .marker .dot { width: 46px; height: 46px; border-radius: 12px; background: var(--panel); border: 1.5px solid var(--line); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: var(--display-wt); font-size: 18px; color: var(--brand); flex: 0 0 46px; }
.step .marker .line { flex: 1; width: 2px; background: var(--line-soft); margin: 4px 0; min-height: 14px; }
.step:last-child .marker .line { display: none; }
.step .txt { padding-bottom: 22px; }
.step:last-child .txt { padding-bottom: 0; }
.step .txt h4 { font-family: var(--display); font-weight: var(--display-wt); font-size: 16px; margin-bottom: 3px; display: flex; align-items: center; gap: 8px; }
.step .txt p { font-size: 13px; color: var(--ink-2); }
.step.is-last .marker .dot { background: linear-gradient(100deg,var(--accent),var(--accent-hi)); color: #160800; border-color: transparent; box-shadow: var(--glow-accent); }
.step.is-last .txt h4 { color: var(--accent); }
.goal-badge {
  font-family: var(--hud); font-weight: 700; font-size: 9px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--accent); border-radius: 3px; padding: 2px 6px; line-height: 1;
}

/* =================== FLOW v2 (リッチな利用の流れ) =================== */
/* flow design variant switch (rich / simple) */
.flowv { display: none; }
.lp[data-flow="rich"] .flowv-rich,
.lp[data-flow="simple"] .flowv-simple,
.lp[data-flow="three"] .flowv-three,
.lp:not([data-flow]) .flowv-rich { display: block; }

/* ---- THREE: bold 3-step cards ---- */
.flow-three { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.f3 {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 60px 1fr; gap: 16px; align-items: center;
  padding: 18px 18px; border-radius: 16px;
  background: var(--panel); border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(0,0,0,.16);
}
.f3 .f3n {
  width: 60px; height: 60px; flex: 0 0 60px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: var(--display-wt); font-size: 26px;
  color: #fff; background: linear-gradient(150deg, var(--accent-hi), var(--accent));
  box-shadow: var(--glow-accent);
}
.f3 .f3b .f3k { font-family: var(--hud); font-weight: 700; font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.f3 .f3b h4 { font-family: var(--display); font-weight: var(--display-wt); font-size: 18px; line-height: 1.25; margin: 2px 0 3px; }
.f3 .f3b p { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.f3 .f3ghost { position: absolute; right: -8px; bottom: -26px; z-index: 0; font-family: var(--display); font-weight: var(--display-wt); font-size: 96px; line-height: 1; color: var(--accent); opacity: .06; pointer-events: none; }
.f3 > * { position: relative; z-index: 1; }
.f3.goal .f3n { background: linear-gradient(150deg, var(--gold-hi, #ffd24d), var(--gold, #e0a93a)); color: #2a1a00; }
.f3.goal { border-color: color-mix(in srgb, var(--gold, #e0a93a) 45%, transparent); background: color-mix(in srgb, var(--gold, #e0a93a) 7%, var(--panel)); }
.f3-arrow { display: flex; justify-content: center; color: color-mix(in srgb, var(--accent) 55%, transparent); font-size: 18px; margin: -4px 0; }

/* ---- SIMPLE: compact numbered list with connecting line ---- */
.flow-simple { margin-top: 24px; position: relative; display: flex; flex-direction: column; gap: 0; }
.fs-row { position: relative; display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: center; padding: 11px 0; }
.fs-row .fn {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: var(--display-wt); font-size: 16px;
  color: #fff; background: linear-gradient(150deg, var(--accent-hi), var(--accent));
  position: relative; z-index: 1;
}
.fs-row:not(:last-child) .fn::after {
  content: ''; position: absolute; top: 38px; left: 50%; transform: translateX(-50%);
  width: 2px; height: 26px; background: color-mix(in srgb, var(--accent) 30%, transparent);
}
.fs-row .ft { font-family: var(--display); font-weight: var(--display-wt); font-size: 15.5px; }
.fs-row .ft small { font-family: var(--body); font-weight: 500; font-size: 12px; color: var(--ink-2); margin-left: 8px; }
.fs-row.goal .fn { background: linear-gradient(150deg, var(--gold-hi, #ffd24d), var(--gold, #e0a93a)); color: #2a1a00; }
.fs-row.goal .ft { color: var(--accent); }

/* =================== FLOW v2 base styles =================== */
.flow2 { margin-top: 26px; position: relative; display: flex; flex-direction: column; gap: 14px; padding-left: 8px; }
/* gradient rail behind the nodes */
.flow2::before {
  content: ''; position: absolute; left: 33px; top: 26px; bottom: 64px; width: 3px; z-index: 0;
  background: linear-gradient(180deg, var(--brand), var(--accent));
  border-radius: 3px; opacity: .55;
}
.fstep { position: relative; z-index: 1; display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: stretch; }
.fstep .rail { display: flex; flex-direction: column; align-items: center; }
.fstep .node {
  width: 52px; height: 52px; border-radius: 15px; flex: 0 0 52px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: var(--display-wt); font-size: 21px;
  color: var(--brand); background: var(--panel);
  border: 2px solid var(--line);
  box-shadow: 0 6px 16px rgba(0,0,0,.22);
}
.fstep .fcard {
  position: relative; overflow: hidden;
  padding: 15px 17px; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--line-soft);
  box-shadow: 0 6px 18px rgba(0,0,0,.16);
  display: flex; align-items: center; gap: 13px;
}
/* big ghost number watermark */
.fstep .ghost {
  position: absolute; right: -6px; bottom: -22px; z-index: 0;
  font-family: var(--display); font-weight: var(--display-wt); font-size: 86px; line-height: 1;
  color: var(--brand); opacity: .07; pointer-events: none;
}
.fstep .ficon {
  position: relative; z-index: 1; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  border: 1px solid var(--line);
  color: var(--brand);
}
.fstep .ficon svg { width: 23px; height: 23px; }
.fstep .fbody { position: relative; z-index: 1; flex: 1; min-width: 0; }
.fstep .fkicker { font-family: var(--hud); font-weight: 700; font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.fstep .fbody h4 { font-family: var(--display); font-weight: var(--display-wt); font-size: 16px; line-height: 1.25; margin: 1px 0 3px; }
.fstep .fbody p { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
/* goal step */
.fstep.goal .node { background: linear-gradient(140deg, var(--accent), var(--accent-hi)); color: #fff; border-color: transparent; box-shadow: var(--glow-accent); }
.fstep.goal .fcard { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 7%, var(--panel)); }
.fstep.goal .ficon { background: color-mix(in srgb, var(--accent) 16%, transparent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); color: var(--accent); }
.fstep.goal .ghost { color: var(--accent); }
.fstep.goal .fkicker { color: var(--accent); }
.fstep .fcheck { position: relative; z-index: 1; flex: 0 0 auto; color: var(--accent); font-family: var(--hud); font-weight: 700; font-size: 11px; }

/* =================== FINAL CTA =================== */
.final {
  text-align: center; padding: 50px var(--pad) 40px;
  background: radial-gradient(120% 90% at 50% 100%, rgba(255,106,26,.16), transparent 60%), radial-gradient(120% 90% at 50% 0%, rgba(30,200,222,.12), transparent 60%);
}
.final h2 { font-family: var(--display); font-weight: var(--display-wt); font-size: clamp(28px, 9.4vw, 40px); line-height: 1.06; margin-bottom: 8px; }
.final h2 .cy { color: var(--brand); text-shadow: var(--glow-brand); }
.final p { color: var(--ink-2); font-size: 14.5px; margin-bottom: 24px; }
.final .btn { max-width: 360px; margin: 0 auto; font-size: 19px; padding: 20px; }
.final .trust { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.final .trust .t { font-family: var(--hud); font-size: 10px; letter-spacing: .1em; color: var(--ink-3); border: 1px solid var(--line-soft); padding: 6px 10px; border-radius: 3px; white-space: nowrap; }

/* footer */
.lp-foot { padding: 26px var(--pad) 40px; text-align: center; border-top: 1px solid var(--line-soft); }
.lp-foot .logo { height: 18px; margin: 0 auto 12px; opacity: .8; }
.lp-foot .links { display: flex; gap: 16px; justify-content: center; font-size: 11px; color: var(--ink-3); flex-wrap: wrap; }
.lp-foot .links a { white-space: nowrap; }
.lp-foot .cp { margin-top: 14px; font-family: var(--hud); font-size: 9.5px; letter-spacing: .1em; color: var(--ink-3); }

/* reveal on scroll — gated under .js so content stays visible if JS fails */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* =================== PRICING (料金プラン) =================== */
.price-card {
  position: relative; margin-top: 32px; padding: 42px 22px 22px; text-align: center; overflow: visible;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(0,0,0,.28);
}
.price-ribbon {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  font-family: var(--display); font-weight: var(--display-wt); font-size: 18px; letter-spacing: .04em;
  padding: 9px 36px; white-space: nowrap;
  clip-path: polygon(0 0, 100% 0, calc(100% - 13px) 50%, 100% 100%, 0 100%, 13px 50%);
  box-shadow: var(--glow-accent);
}
.price-first { font-family: var(--body); font-weight: 700; font-size: 15px; color: var(--ink-2); margin-top: 4px; }
.price-row { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 6px 0 2px; }
.price-was { display: inline-flex; align-items: baseline; font-family: var(--display); font-weight: var(--display-wt); font-size: 40px; color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 3px; line-height: 1; }
.price-arrow { font-family: var(--hud); font-size: 26px; color: var(--ink-3); }
.price-now { display: inline-flex; align-items: baseline; font-family: var(--display); font-weight: var(--display-wt); font-size: 68px; color: var(--accent); line-height: 1; }
.price-row small {
  font-size: 15px; font-family: var(--hud); font-weight: 700;
  border: 2px solid var(--ink-2); color: var(--ink); border-radius: 3px;
  padding: 0 3px; margin-left: 5px; line-height: 1.1; align-self: flex-end; margin-bottom: 4px;
}
.price-now small { border-color: var(--accent); color: var(--accent); }
.price-trial { font-family: var(--display); font-weight: var(--display-wt); font-size: 19px; margin: 12px 0 18px; }
.price-trial em { font-style: normal; color: var(--accent); }
.price-card .btn { max-width: 360px; margin: 0 auto; }
.price-notes { list-style: none; text-align: left; margin: 18px auto 0; max-width: 360px; display: flex; flex-direction: column; gap: 5px; }
.price-notes li { font-size: 11.5px; color: var(--ink-3); line-height: 1.55; padding-left: 15px; position: relative; }
.price-notes li::before { content: '※'; position: absolute; left: 0; }

/* ---- pricing variant switch ---- */
.price-variants { position: relative; }
.pv { display: none; }
.lp[data-pricing="a"] .pv-a,
.lp[data-pricing="b"] .pv-b,
.lp[data-pricing="c"] .pv-c,
.lp:not([data-pricing]) .pv-a { display: block; }

/* ===== Plan B : タイムライン型 ===== */
.ptl {
  margin-top: 32px; padding: 26px 20px 20px; text-align: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0,0,0,.26);
}
.ptl-head { display: flex; align-items: baseline; justify-content: center; gap: 9px; margin-bottom: 4px; white-space: nowrap; }
.ptl-head .z { font-family: var(--display); font-weight: var(--display-wt); font-size: 60px; color: var(--accent); line-height: .9; }
.ptl-head .d { font-family: var(--display); font-weight: var(--display-wt); font-size: 23px; color: var(--ink); white-space: nowrap; }
.ptl-sub { font-size: 12.5px; color: var(--ink-3); margin-bottom: 20px; }
.ptl-track { display: grid; grid-template-columns: 1.7fr 1.3fr; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.ptl-seg { padding: 14px 12px; text-align: left; }
.ptl-seg .sk { font-family: var(--hud); font-weight: 700; font-size: 9.5px; letter-spacing: .12em; color: var(--ink-3); }
.ptl-seg .sv { font-family: var(--display); font-weight: var(--display-wt); font-size: 16px; margin-top: 3px; }
.ptl-seg.free { background: color-mix(in srgb, var(--accent) 12%, transparent); border-right: 2px dashed color-mix(in srgb, var(--accent) 55%, transparent); }
.ptl-seg.free .sv { color: var(--accent); }
.ptl-seg.free .sv b { font-size: 22px; }
.ptl-seg.paid .sv { color: var(--ink); }
.ptl-seg.paid .sv small { font-size: 11px; color: var(--ink-3); margin-left: 3px; }
.ptl-marker { font-family: var(--hud); font-weight: 700; font-size: 10.5px; letter-spacing: .06em; color: var(--accent); margin: 10px 0 18px; }
.ptl .btn { width: 100%; }
.ptl-foot { font-size: 11px; color: var(--ink-3); margin-top: 12px; line-height: 1.6; }

/* ===== Plan C : チケット型 ===== */
.ptk {
  margin-top: 32px; position: relative; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 14px 40px rgba(0,0,0,.26);
}
.ptk-top { display: flex; align-items: center; gap: 16px; padding: 24px 22px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, var(--panel)), var(--panel)); }
.ptk-stamp {
  flex: 0 0 78px; width: 78px; height: 78px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: var(--display); font-weight: var(--display-wt); font-size: 15px; line-height: 1.05; color: #fff;
  background: linear-gradient(150deg, var(--accent-hi), var(--accent)); box-shadow: var(--glow-accent);
  transform: rotate(-8deg); border: 3px solid #fff;
}
.ptk-main { flex: 1; text-align: left; min-width: 0; }
.ptk-main .k { font-family: var(--display); font-weight: var(--display-wt); font-size: 13px; color: var(--ink-2); }
.ptk-main .z { font-family: var(--display); font-weight: var(--display-wt); font-size: 60px; line-height: .92; color: var(--accent); }
.ptk-main .sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.ptk-main .sub s { color: var(--ink-3); }
.ptk-perf { position: relative; height: 0; border-top: 2px dashed var(--line); margin: 0 14px; }
.ptk-perf::before, .ptk-perf::after { content: ''; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); }
.ptk-perf::before { left: -24px; }
.ptk-perf::after { right: -24px; }
.ptk-bottom { padding: 18px 22px 20px; }
.ptk-bottom .btn { width: 100%; }
.ptk-note { font-size: 11px; color: var(--ink-3); text-align: center; margin-top: 11px; line-height: 1.6; }

/* =================== FAQ (よくある質問) =================== */
.faq-list { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.faq-item { padding: 0; overflow: hidden; }
.faq-q {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 18px; font-family: var(--display); font-weight: var(--display-wt); font-size: 14.5px; line-height: 1.4;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q .q-tx { display: flex; align-items: baseline; gap: 9px; }
.faq-q .q-tx::before { content: 'Q'; font-family: var(--hud); color: var(--accent); font-size: 15px; flex: 0 0 auto; }
.faq-mk { position: relative; width: 18px; height: 18px; flex: 0 0 18px; }
.faq-mk::before, .faq-mk::after { content: ''; position: absolute; background: var(--accent); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.faq-mk::before { left: 0; top: 8px; width: 18px; height: 2px; }
.faq-mk::after { left: 8px; top: 0; width: 2px; height: 18px; }
.faq-item[open] .faq-mk::after { transform: scaleY(0); }
.faq-a { padding: 0 18px 17px 18px; font-size: 13px; color: var(--ink-2); line-height: 1.75; }
.faq-a .a-tx { display: flex; align-items: baseline; gap: 9px; }
.faq-a .a-tx::before { content: 'A'; font-family: var(--hud); font-weight: 700; color: var(--ink-3); font-size: 14px; flex: 0 0 auto; }
