/* =========================================================
   ウザク式麻雀学習 LP — Demo A（青系 / blue）
   明るい・清爽・game/anime 公式サイト風
   ========================================================= */

:root {
  /* ---- THEME（緑版はこのブロック中心に差し替え） ---- */
  --primary:    #2f7bf6;   /* main blue */
  --primary-2:  #18c6e6;   /* cyan */
  --accent:     #7aa8ff;
  --ink:        #15294a;   /* dark navy text */
  --ink-soft:   #51668c;
  --ink-mute:   #8294b3;
  --panel:      #ffffff;
  --tint:       #eef5ff;   /* alt section */
  --line:       #dbe7fb;
  --ring:       rgba(47,123,246,.18);
  --grad:       linear-gradient(100deg, #2f7bf6, #18c6e6);
  --grad-soft:  linear-gradient(135deg, #e8f1ff, #dcf3fb);
  --shadow:     0 20px 45px -22px rgba(31,86,184,.45);
  --shadow-lg:  0 40px 80px -34px rgba(31,86,184,.55);
  --page-bg:    radial-gradient(1100px 700px at 85% -5%, #d3eaff, transparent 60%),
                radial-gradient(900px 600px at 5% 8%, #e6f8ff, transparent 55%),
                radial-gradient(1000px 820px at 50% 116%, #d9ebff, transparent 62%),
                linear-gradient(180deg, #f4faff 0%, #e8f1ff 54%, #eef5ff 100%);
  /* shared */
  --maxw: 1180px;
  --radius: 20px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-rev: cubic-bezier(.16,1,.3,1);   /* smooth, visible scroll-in easing */
  --font: "Hiragino Kaku Gothic ProN","Yu Gothic","Meiryo","Noto Sans JP","Segoe UI",system-ui,sans-serif;
}

html, body { background: #eef5ff; color: var(--ink); font-family: var(--font); }
/* NOTE: no background-attachment:fixed — it forces a full repaint every scroll
   frame and was the main cause of janky scrolling. The page background scrolls
   normally; per-section glows below carry the depth instead. */
body { position: relative; overflow-x: hidden; background: var(--page-bg); }

/* soft, STATIC background orbs (no scroll-time animation → no repaint cost) */
.bg-deco { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(46px); opacity: .4; }
.orb-1 { width: 400px; height: 400px; top: -60px; right: -60px; background: radial-gradient(circle, #8fc2ff, transparent 68%); }
.orb-2 { width: 340px; height: 340px; top: 44%; left: -120px; background: radial-gradient(circle, #9af0ff, transparent 68%); }
.orb-3 { width: 300px; height: 300px; bottom: 8%; right: 6%; background: radial-gradient(circle, #b9d4ff, transparent 68%); }

.container { width: min(100% - 40px, var(--maxw)); margin-inline: auto; position: relative; z-index: 1; }

/* =================== Header =================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px,4vw,40px); transition: all .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(255,255,255,.82); backdrop-filter: blur(14px); border-bottom-color: var(--line); box-shadow: 0 8px 30px -20px rgba(31,86,184,.5); }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-size: 14px; font-weight: 700; color: var(--ink-soft); position: relative; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2.5px; border-radius: 2px; background: var(--grad); transition: width .25s var(--ease); }
.nav a:hover { color: var(--primary); } .nav a:hover::after { width: 100%; }
.header-cta { font-size: 13.5px; font-weight: 800; color: #fff; padding: 10px 20px; border-radius: 999px; background: var(--grad); box-shadow: 0 10px 22px -8px var(--ring); transition: transform .2s, box-shadow .25s; }
.header-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px var(--ring); }
.nav-toggle { position: relative; z-index: 2; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 40px; height: 40px; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; border-radius: 3px; background: var(--ink); transition: transform .3s, opacity .3s; }
.nav-toggle::before { content: "☰"; display: none; font-size: 24px; line-height: 1; font-weight: 800; color: var(--ink); }

/* =================== Buttons =================== */
.btn { box-sizing: border-box; display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 15px; padding: 15px 28px; border-radius: 999px; transition: transform .2s var(--ease), box-shadow .25s, background .25s; }
.btn--primary { color: #fff; background: var(--grad); box-shadow: 0 16px 30px -12px var(--ring); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -12px var(--ring); }
.btn--ghost { color: var(--primary); background: #fff; border: 1.5px solid var(--line); box-shadow: var(--shadow); }
.btn--ghost:hover { transform: translateY(-3px); border-color: var(--primary); }
/* unified chevron affordance (replaces bare → everywhere) */
.arrow { display: inline-flex; align-items: center; transition: transform .2s var(--ease); }
.arrow svg { width: 1.05em; height: 1.05em; display: block; }
.btn:hover .arrow { transform: translateX(4px); }

/* =================== Hero =================== */
.hero { position: relative; min-height: clamp(620px,92vh,940px); padding: clamp(118px,15vh,168px) 0 clamp(90px,10vw,130px); overflow: hidden; display: flex; align-items: center; }
/* background illustration slot (auto-shown when assets/illust/hero-key.png exists) */
.hero-key { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: .92; pointer-events: none; }
/* background performance layers */
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; mix-blend-mode: screen; will-change: transform; }
.aurora.a1 { width: 56vw; height: 56vw; max-width: 680px; max-height: 680px; top: -16%; right: -8%; background: radial-gradient(circle, #6fb3ff, transparent 66%); animation: auroraA 12s ease-in-out infinite alternate; }
.aurora.a2 { width: 46vw; height: 46vw; max-width: 560px; max-height: 560px; bottom: -22%; left: -10%; background: radial-gradient(circle, #76edff, transparent 66%); animation: auroraB 14s ease-in-out infinite alternate; }
.aurora.a3 { width: 38vw; height: 38vw; max-width: 460px; max-height: 460px; top: 28%; left: 42%; background: radial-gradient(circle, #b9d4ff, transparent 68%); animation: auroraA 16s ease-in-out infinite alternate-reverse; }
@keyframes auroraA { from { transform: translate(0,0) scale(1); } to { transform: translate(-58px,46px) scale(1.14); } }
@keyframes auroraB { from { transform: translate(0,0) scale(1); } to { transform: translate(64px,-42px) scale(1.16); } }
.hero-lines { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .78; animation: heroLinesDrift 8s ease-in-out infinite alternate; }
.hero-lines path { fill: none; stroke: rgba(47,123,246,.46); stroke-width: 1.8; stroke-dasharray: 10 18; animation: dashFlowStrong 6.5s linear infinite; }
.hero-lines path:nth-child(2){ animation-duration: 7.4s; } .hero-lines path:nth-child(3){ animation-duration: 8.2s; }
@keyframes dashFlowStrong { from { stroke-dashoffset: 0; transform: translateX(0); } to { stroke-dashoffset: -260; transform: translateX(64px); } }
@keyframes heroLinesDrift { from { transform: translateX(-32px); } to { transform: translateX(32px); } }
.hero-particles { position: absolute; inset: 0; }
.particle { position: absolute; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--accent)); box-shadow: 0 0 12px rgba(120,170,255,.7); animation: floatUp linear infinite; }
@keyframes floatUp { 0% { transform: translate(0,18px); opacity: 0; } 14% { opacity: .72; } 86% { opacity: .72; } 100% { transform: translate(32px,-42px); opacity: 0; } }

/* hero entrance (transition-based; reduced-motion snaps to final) */
.hero-anim, .hero-anim-v { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.hero-anim-v { transform: translateX(76px) translateY(18px) scale(.94); transition-duration: .95s; }
.hero-badge.hero-anim { transform: translateY(-18px); }
.hero.is-in .hero-anim { opacity: 1; transform: none; }
.hero.is-in .hero-anim-v {
  transition: none;
  animation: heroVisualIn .95s cubic-bezier(.16,1,.3,1) .45s both, heroVisualFloat 3.4s ease-in-out 1.45s infinite alternate;
  will-change: transform, opacity, filter;
}
.hero.is-in .hero-copy .hero-anim:nth-child(1){transition-delay:.12s}
.hero.is-in .hero-copy .hero-anim:nth-child(2){transition-delay:.2s}
.hero.is-in .hero-copy .hero-anim:nth-child(3){transition-delay:.4s}
.hero.is-in .hero-copy .hero-anim:nth-child(4){transition-delay:.6s}
.hero.is-in .hero-copy .hero-anim:nth-child(5){transition-delay:.82s}
@keyframes heroVisualIn {
  0% { opacity: 0; transform: translateX(76px) translateY(18px) scale(.94); filter: blur(3px); }
  70% { opacity: 1; transform: translateX(-8px) translateY(-4px) scale(1.015); filter: blur(0); }
  100% { opacity: 1; transform: translateX(0) translateY(0) scale(1); filter: blur(0); }
}
@keyframes heroVisualFloat {
  0% { opacity: 1; transform: translateY(16px) rotate(-.5deg) scale(1); }
  100% { opacity: 1; transform: translateY(-16px) rotate(.5deg) scale(1.006); }
}

/* CTA buttons: light sweep + breathing */
.btn--primary { position: relative; overflow: hidden; }
.btn--primary::after { content: ""; position: absolute; top: 0; left: -60%; width: 38%; height: 100%; transform: skewX(-20deg); background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); animation: btnShine 4.8s ease-in-out infinite; }
@keyframes btnShine { 0% { left: -60%; } 42% { left: 130%; } 100% { left: 130%; } }
.hero-actions .btn--primary { animation: btnBreath 3.2s ease-in-out infinite; }
@keyframes btnBreath { 0%,100% { box-shadow: 0 16px 30px -12px var(--ring); } 50% { box-shadow: 0 18px 44px -10px var(--ring), 0 0 0 4px rgba(47,123,246,.10); } }

.hero-inner { display: grid; grid-template-columns: 1.02fr 1.05fr; gap: clamp(28px,4vw,56px); align-items: center; }
.hero-inner > * { min-width: 0; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; letter-spacing: .04em; color: var(--primary); background: #fff; border: 1.5px solid var(--line); padding: 7px 16px; border-radius: 999px; margin-bottom: 22px; box-shadow: var(--shadow); }
.hero-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 10px var(--primary); animation: blink 2s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.35} }
.hero h1 { font-size: clamp(32px,5.6vw,62px); line-height: 1.1; letter-spacing: .01em; margin-bottom: 22px; text-wrap: balance; }
.hero h1 .g, .grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: clamp(15px,1.7vw,18px); color: var(--ink-soft); max-width: 540px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero-actions .btn { opacity: 0; transform: translateY(10px) scale(.96); }
.hero.is-in .hero-actions .btn { animation: heroButtonIn .5s var(--ease) both; }
.hero.is-in .hero-actions .btn:nth-child(1) { animation-delay: .68s; }
.hero.is-in .hero-actions .btn:nth-child(2) { animation-delay: .8s; }
@keyframes heroButtonIn { to { opacity: 1; transform: translateY(0) scale(1); } }
/* anchor target for the header "アプリを入手" → lands on the Hero download buttons,
   offset so the fixed header never covers them */
#app-download { scroll-margin-top: clamp(96px, 15vh, 140px); }
.hero-stats { display: flex; gap: clamp(18px,3vw,40px); flex-wrap: wrap; }
.hero-stats .stat { border-left: 3px solid var(--accent); padding-left: 14px; }
.hero-stats .stat b { display: block; font-size: clamp(20px,2.4vw,26px); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats .stat span { font-size: 12.5px; color: var(--ink-mute); font-weight: 600; }

/* hero visual */
.hero-visual { position: relative; }
/* bright focal halo so the product screen pops against the blue field */
.hero-visual::before { content: ""; position: absolute; z-index: 0; inset: -10% -14% -18% -12%; background: radial-gradient(56% 54% at 62% 44%, rgba(255,255,255,.98), rgba(223,240,255,.55) 44%, transparent 72%); pointer-events: none; }
.visual-glow { position: absolute; z-index: 0; inset: 4% 2%; border-radius: 44px; background: var(--grad); filter: blur(54px); opacity: .68; animation: glowPulseStrong 4.8s ease-in-out infinite alternate; }

/* book cover peeking behind the device → adds "書籍" presence + depth */
.hv-book { position: absolute; z-index: 1; right: -2%; top: 2%; width: 31%; max-width: 168px; transform: rotate(7deg); border-radius: 9px; overflow: hidden; box-shadow: 0 26px 46px -20px rgba(31,86,184,.6); }
.hv-book::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255,255,255,.28), transparent 55%); }
.hv-book img { display: block; width: 100%; height: auto; }
@keyframes glowPulseStrong { from { opacity: .42; transform: translateY(8px) translateX(-10px) scale(.96); } to { opacity: .74; transform: translateY(-22px) translateX(18px) scale(1.10); } }
.device { position: relative; z-index: 2; }
/* tilted panel behind the device + soft ground shadow → spatial depth */
.device::before { content: ""; position: absolute; z-index: -1; inset: 10% -7% -12% 9%; border-radius: 28px; background: linear-gradient(155deg, rgba(120,170,255,.32), rgba(24,198,230,.12)); transform: rotate(3.4deg); filter: blur(3px); }
.device::after { content: ""; position: absolute; z-index: -1; left: 8%; right: 8%; bottom: -8%; height: 42px; background: radial-gradient(50% 100% at 50% 0%, rgba(31,86,184,.32), transparent 72%); filter: blur(7px); }
.device-screen { position: relative; border-radius: 22px; background: #fff; padding: 12px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; transform: rotate(-1.2deg); animation: deviceScreenBreath 3.6s ease-in-out infinite alternate; will-change: transform, box-shadow; }
@keyframes deviceScreenBreath {
  0% { transform: rotate(-1.2deg) scale(1); box-shadow: 0 34px 70px -34px rgba(31,86,184,.46); }
  100% { transform: rotate(-.4deg) scale(1.012); box-shadow: 0 54px 100px -30px rgba(31,86,184,.68); }
}
.device-screen img { width: 100%; aspect-ratio: auto; object-fit: contain; border-radius: 14px; display: block; }
.screen-scan { position: absolute; top: 12px; bottom: 12px; left: -45%; width: 36%; border-radius: 14px; transform: skewX(-12deg); background: linear-gradient(100deg, transparent, rgba(255,255,255,.38), transparent); animation: scan 7s ease-in-out infinite 1.3s; }
.hero-visual__shine { position: absolute; top: 8%; bottom: 28%; left: 8px; right: 8px; border-radius: 18px; pointer-events: none; overflow: hidden; mix-blend-mode: screen; }
.hero-visual__shine::before { content: ""; position: absolute; top: -20%; bottom: -20%; left: -42%; width: 170px; transform: skewX(-18deg); filter: blur(5px); background: linear-gradient(105deg, transparent 0%, rgba(255,255,255,0) 24%, rgba(255,255,255,.95) 45%, rgba(80,190,255,.62) 56%, rgba(255,255,255,.72) 64%, transparent 100%); animation: heroTitleShineStrong 6.8s ease-in-out infinite 1.25s; }
@keyframes scan { 0%,18% { left: -45%; opacity: 0; } 30% { opacity: .72; } 44% { left: 118%; opacity: .4; } 100% { left: 118%; opacity: 0; } }
@keyframes heroTitleShineStrong {
  0% { left: -42%; opacity: 0; }
  6% { opacity: .98; }
  20% { left: 112%; opacity: .72; }
  28% { left: 118%; opacity: 0; }
  100% { left: 118%; opacity: 0; }
}
.screen-dot { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--primary-2); box-shadow: 0 0 0 6px rgba(24,198,230,.22), 0 0 16px var(--primary-2); top: 28%; left: 24%; animation: dotMove 9s ease-in-out infinite; }
@keyframes dotMove { 0% { top: 28%; left: 24%; } 33% { top: 62%; left: 56%; } 66% { top: 40%; left: 78%; } 100% { top: 28%; left: 24%; } }

/* midground floating UI cards */
.float-card { position: absolute; z-index: 3; background: linear-gradient(150deg, rgba(255,255,255,.96), rgba(255,255,255,.82)); border: 1px solid rgba(255,255,255,.85); border-radius: 16px; box-shadow: 0 18px 38px -16px rgba(31,86,184,.5); backdrop-filter: blur(12px); padding: 14px 16px; }
.fc-compare { left: -7%; top: 14%; width: 168px; animation: chipFloat 6s ease-in-out infinite alternate; }
.fc-label { display: block; font-size: 11px; font-weight: 800; color: var(--primary); margin-bottom: 8px; letter-spacing: .04em; }
.fc-bars { display: grid; gap: 7px; }
.fc-bars i { position: relative; display: block; height: 15px; border-radius: 999px; background: var(--tint); overflow: hidden; }
.fc-bars i::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); border-radius: 999px; background: var(--grad); }
.fc-bars i b { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); z-index: 1; font-size: 9px; color: #fff; }
.fc-meta { right: -5%; bottom: 14%; display: flex; align-items: center; gap: 10px; animation: chipFloat 7s ease-in-out infinite alternate-reverse; }
.fc-meta .fc-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 10px var(--primary); flex: 0 0 auto; }
.fc-meta b { display: block; font-size: 13px; color: var(--ink); } .fc-meta span { font-size: 11px; color: var(--ink-mute); }

.hero-chip { position: absolute; z-index: 3; font-size: 12px; font-weight: 800; color: var(--primary); background: linear-gradient(150deg, rgba(255,255,255,.96), rgba(255,255,255,.8)); border: 1px solid rgba(255,255,255,.85); padding: 8px 15px; border-radius: 999px; box-shadow: 0 14px 30px -14px rgba(31,86,184,.5); backdrop-filter: blur(10px); }
.hero-chip.chip-a { top: 4%; left: 0%; animation: chipFloat 4.2s ease-in-out infinite alternate; }
.hero-chip.chip-b { bottom: 30%; right: -4%; animation: chipFloat 6.5s ease-in-out infinite alternate-reverse; }
@keyframes chipFloat { from { transform: translateY(0); } to { transform: translateY(-12px); } }

/* foreground mascot — small accent tucked at the device base */
.hero-mascot { position: absolute; z-index: 5; left: -8%; bottom: -11%; width: 32%; max-width: 210px; filter: drop-shadow(0 16px 20px rgba(31,86,184,.34)); opacity: 0; transform-origin: 50% 82%; }
.hero.is-in .hero-mascot { animation: mascotPopStrong .9s cubic-bezier(.16,1,.3,1) 1s both, heroMascotBobStrong 2.9s ease-in-out 1.92s infinite alternate; }
@keyframes mascotPopStrong {
  0% { opacity: 0; transform: translateY(96px) scale(.92) rotate(-6deg); }
  62% { opacity: 1; transform: translateY(-16px) scale(1.04) rotate(2deg); }
  82% { opacity: 1; transform: translateY(6px) scale(.995) rotate(-.8deg); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}
@keyframes heroMascotBobStrong {
  0% { opacity: 1; transform: translateY(12px) rotate(-1.8deg); }
  100% { opacity: 1; transform: translateY(-14px) rotate(1.8deg); }
}
@keyframes mascotBob { from { transform: translateY(0) rotate(-2deg); } to { transform: translateY(-14px) rotate(2deg); } }

/* scroll indicator */
.scroll-ind { position: absolute; z-index: 4; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; justify-items: center; gap: 6px; color: var(--ink-mute); }
.si-mouse { width: 24px; height: 38px; border: 2px solid var(--ink-mute); border-radius: 14px; display: grid; justify-items: center; padding-top: 6px; }
.si-mouse i { width: 4px; height: 8px; border-radius: 4px; background: var(--primary); animation: scrollDot 1.6s ease-in-out infinite; }
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }
.si-text { font-size: 10px; font-weight: 800; letter-spacing: .2em; }

/* layered waves */
.wave-divider { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; line-height: 0; height: clamp(70px,9vw,130px); }
.wave-divider .wave { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; }
.wave-divider .w1 path { fill: var(--tint); } .wave-divider .w2 path { fill: #dcefff; } .wave-divider .w3 path { fill: #cfe6ff; }
.wave-divider .w1 { animation: waveFlowStrong 6s ease-in-out infinite alternate; }
.wave-divider .w2 { opacity: .86; animation: waveFlowStrong 5.4s ease-in-out infinite alternate-reverse; }
.wave-divider .w3 { opacity: .72; animation: waveFlowStrong 7s ease-in-out infinite alternate; }
@keyframes waveFlowStrong { from { transform: translateX(-72px) translateY(0); } to { transform: translateX(72px) translateY(14px); } }

/* =================== Section base =================== */
/* Each section carries its own background "beat" so the page never reads as a
   single flat blue wash. Glows are CSS gradients (cheap), not blurred layers. */
.section { position: relative; z-index: 1; padding: clamp(64px,8vw,110px) 0; }
.section--tint { background: var(--tint); }
.section--soft { background: linear-gradient(180deg, #f5faff, #e9f2ff); }
/* localized focal highlight to lift a key section out of the flat field */
.section--spot::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(900px 480px at 50% -8%, rgba(176,212,255,.5), transparent 70%); }

/* Mini — calm, with extra breathing room above/below so it reads as a pause */
.section--mini { padding-top: clamp(80px,10vw,140px); padding-bottom: clamp(80px,10vw,140px); background: linear-gradient(180deg, #eef5ff 0%, #f3f8ff 100%); }

/* App — the deepest, most focal block; a tinted field + top glow + faint tile dots */
.section--app { background: linear-gradient(180deg, #e7f1ff 0%, #eaf4ff 60%, #e4eeff 100%); }
.section--app::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1000px 520px at 78% -6%, rgba(120,170,255,.34), transparent 66%),
    radial-gradient(760px 460px at 8% 108%, rgba(24,198,230,.16), transparent 64%); }
.section--app::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(120,160,230,.16) 1.4px, transparent 1.6px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent); }

/* Books — bright and clean, with a single soft center glow (clearly ≠ App) */
.section--books { background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%); }
.section--books::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(820px 420px at 50% 8%, rgba(200,224,255,.4), transparent 68%); }
.section > .container { position: relative; z-index: 1; }
.sec-head { max-width: 760px; margin-bottom: 46px; }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); background: #fff; border: 1.5px solid var(--line); padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; box-shadow: var(--shadow); }
.section--tint .eyebrow { background: #fff; }
.section-title { font-size: clamp(24px,3.6vw,40px); letter-spacing: .01em; margin-bottom: 14px; text-wrap: balance; }
.section-lead { color: var(--ink-soft); font-size: clamp(14.5px,1.5vw,17px); }

/* =================== Concept =================== */
.concept-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.concept-card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; }
.concept-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.concept-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.concept-card:hover::before { transform: scaleX(1); }
.concept-card .ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px; color: #fff; background: var(--grad); box-shadow: 0 12px 22px -10px var(--ring); }
.concept-card .ic svg { width: 28px; height: 28px; }
.concept-card h3 { font-size: 20px; margin-bottom: 10px; }
.concept-card p { color: var(--ink-soft); font-size: 14.5px; }

/* =================== Flow =================== */
.flow-wrap { position: relative; }
.flow-line { display: grid; gap: 18px; max-width: 880px; }
.flow-step { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 22px 26px; box-shadow: var(--shadow); position: relative; transition: transform .25s var(--ease), box-shadow .25s; }
.flow-step:hover { transform: translateX(6px); box-shadow: var(--shadow-lg); }
.flow-step .num { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 19px; font-weight: 900; color: #fff; background: var(--grad); box-shadow: 0 12px 22px -10px var(--ring); }
.flow-body h3 { font-size: 18px; margin-bottom: 4px; }
.flow-body p { color: var(--ink-soft); font-size: 14px; }
.flow-mascot { position: absolute; right: 0; bottom: -6px; width: 190px; max-width: 30vw; filter: drop-shadow(0 16px 20px rgba(31,86,184,.3)); animation: mascotBob 5s ease-in-out infinite alternate; display: none; }
@media (min-width: 1080px) { .flow-mascot[src] { display: block; } .flow-line { max-width: 760px; } }

/* =================== Modes =================== */
.modes-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.mode-card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px 22px; box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s; overflow: hidden; }
.mode-card::after { content: ""; position: absolute; right: -24px; bottom: -24px; width: 90px; height: 90px; border-radius: 50%; background: var(--grad-soft); opacity: .9; transition: transform .3s; }
.mode-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.mode-card:hover::after { transform: scale(1.25); }
.mode-tag { position: relative; z-index: 1; display: inline-block; font-size: 11.5px; font-weight: 800; color: var(--primary); background: var(--tint); border-radius: 999px; padding: 4px 12px; margin-bottom: 12px; }
.mode-card h3 { position: relative; z-index: 1; font-size: 18px; margin-bottom: 6px; }
.mode-card p { position: relative; z-index: 1; color: var(--ink-soft); font-size: 13.5px; }

/* =================== Depth =================== */
.depth-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.depth-card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 28px 22px; box-shadow: var(--shadow); text-align: center; transition: transform .3s var(--ease), box-shadow .3s; }
.depth-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.depth-card .ic { width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; color: var(--primary); background: var(--grad-soft); border: 1px solid var(--line); }
.depth-card .ic svg { width: 28px; height: 28px; }
.depth-card h3 { font-size: 17px; margin-bottom: 8px; }
.depth-card p { color: var(--ink-soft); font-size: 13.5px; }

/* =================== Update =================== */
.update-band { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px,4vw,56px); align-items: center; background: var(--grad); color: #fff; border-radius: 28px; padding: clamp(36px,5vw,60px); overflow: hidden; box-shadow: var(--shadow-lg); }
.update-band::before, .update-band::after { content: ""; position: absolute; border-radius: 50%; filter: blur(8px); opacity: .25; }
.update-band::before { width: 220px; height: 220px; background: #fff; top: -90px; right: -40px; }
.update-band::after { width: 180px; height: 180px; background: #cdecff; bottom: -80px; left: 30%; }
.update-band .eyebrow { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.4); color: #fff; box-shadow: none; }
.update-band .section-title, .update-band .section-lead { color: #fff; }
.update-band .section-lead { opacity: .92; }
.update-list { position: relative; z-index: 1; display: grid; gap: 12px; }
.update-item { display: grid; gap: 2px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); border-radius: 14px; padding: 16px 20px; backdrop-filter: blur(4px); transition: transform .25s, background .25s; }
.update-item:hover { transform: translateX(5px); background: rgba(255,255,255,.22); }
.update-item b { font-size: 16px; } .update-item span { font-size: 13.5px; opacity: .92; }

/* =================== Books =================== */
.book-rail { display: grid; grid-template-columns: repeat(5,1fr); gap: 20px; }
.book { position: relative; aspect-ratio: 600/850; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s; }
.book:hover { transform: translateY(-8px) rotate(-1.2deg); box-shadow: var(--shadow-lg); }
.book .ph { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 16px 14px; color: #fff;
  background: linear-gradient(160deg, #4f95ff, #1ec3e6); }
.book .ph::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 9px; background: rgba(255,255,255,.5); }
.book .ph-uz { font-size: 10px; letter-spacing: .16em; opacity: .85; }
.book .ph-title { font-size: 13px; font-weight: 800; line-height: 1.45; text-shadow: 0 1px 4px rgba(0,40,90,.4); }
.book .ph-seal { align-self: flex-end; min-width: 42px; height: 42px; padding: 0 8px; border-radius: 999px; border: 2px solid rgba(255,255,255,.85); display: grid; place-items: center; font-size: 10px; font-weight: 800; }
.book .cover { position: absolute; inset: 0; }
.book .cover img { width: 100%; height: 100%; object-fit: cover; }
.book-note { margin-top: 18px; font-size: 12.5px; color: var(--ink-mute); }

/* =================== CTA =================== */
.cta-card { position: relative; text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: 30px; padding: clamp(46px,6vw,72px) clamp(24px,5vw,60px) clamp(40px,5vw,56px); box-shadow: var(--shadow-lg); overflow: hidden; }
.cta-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--grad); }
.cta-card::after { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: var(--grad-soft); top: -180px; left: 50%; transform: translateX(-50%); opacity: .6; }
.cta-mascot { position: relative; z-index: 1; width: 120px; margin: 0 auto 18px; filter: drop-shadow(0 14px 18px rgba(31,86,184,.3)); animation: mascotBob 4s ease-in-out infinite alternate; }
.cta-card .hero-badge { position: relative; z-index: 1; }
.cta-card h2 { position: relative; z-index: 1; font-size: clamp(24px,3.8vw,40px); margin: 6px 0 14px; }
.cta-card p { position: relative; z-index: 1; color: var(--ink-soft); max-width: 600px; margin: 0 auto 28px; }
.cta-actions { position: relative; z-index: 1; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* =================== FAQ =================== */
.faq-list { max-width: 880px; display: grid; gap: 12px; }
.faq-item { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); transition: box-shadow .25s; }
.faq-item.open { box-shadow: var(--shadow-lg); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left; padding: 20px 24px; font-size: 16px; font-weight: 800; color: var(--ink); }
.faq-q .ic { position: relative; flex: 0 0 auto; width: 24px; height: 24px; }
.faq-q .ic::before, .faq-q .ic::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--primary); border-radius: 2px; transition: transform .3s var(--ease); }
.faq-q .ic::before { width: 14px; height: 2.5px; transform: translate(-50%,-50%); }
.faq-q .ic::after { width: 2.5px; height: 14px; transform: translate(-50%,-50%); }
.faq-item.open .faq-q .ic::after { transform: translate(-50%,-50%) scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a-inner { padding: 0 24px 22px; color: var(--ink-soft); font-size: 14.5px; }
.faq-note { margin-top: 22px; font-size: 13px; color: var(--ink-mute); border-left: 3px solid var(--accent); padding-left: 14px; max-width: 880px; }

/* =================== Footer =================== */
.site-footer { position: relative; z-index: 1; background: #fff; border-top: 1px solid var(--line); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(5,1fr); gap: 28px; }
.footer-brand img { height: 42px; margin-bottom: 14px; }
.footer-brand p { color: var(--ink-soft); font-size: 14px; max-width: 320px; }
.footer-col h5 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--ink-soft); font-size: 14px; padding: 6px 0; transition: color .2s, padding .2s; }
.footer-col a:hover { color: var(--primary); padding-left: 4px; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--ink-mute); font-size: 12.5px; }

/* =================== Reveal (scroll-in) =================== */
/* Visible scroll-in: as a section enters the viewport its title → main visual →
   text → cards slide in from a direction and fade in, in sequence. Strong
   enough to read by eye, transforms-only (no blur/filter) so it stays cheap.

   SAFETY: content is visible by DEFAULT. Only after main.js adds <html class="js">
   do reveal elements enter their hidden start state — so if JS never runs (or
   IntersectionObserver is missing) nothing is hidden. The hidden/directional
   rules use :not(.in) so that once revealed they fully release the element
   (card :hover transforms keep working, mobile/desktop overrides don't stick). */
.reveal { opacity: 1; transform: none; }
.js .reveal { transition: opacity 1s var(--ease-rev), transform 1s var(--ease-rev); will-change: opacity, transform; }

/* hidden start state (desktop) — only while NOT yet revealed */
.js .reveal:not(.in)        { opacity: 0; transform: translateY(76px); }
.js .reveal-up:not(.in)     { transform: translateY(76px); }
.js .reveal-left:not(.in)   { transform: translateX(-86px); }
.js .reveal-right:not(.in)  { transform: translateX(86px); }
.js .reveal-scale:not(.in)  { transform: translateY(56px) scale(.89); transform-origin: center; }

/* per-module entry rhythm: ~150ms steps (title 0 → visual 1 → text 2 → cards 3+) */
.js .reveal[data-delay="1"]{ transition-delay: .15s; }
.js .reveal[data-delay="2"]{ transition-delay: .30s; }
.js .reveal[data-delay="3"]{ transition-delay: .45s; }
.js .reveal[data-delay="4"]{ transition-delay: .60s; }
.js .reveal[data-delay="5"]{ transition-delay: .75s; }
.js .reveal[data-delay="6"]{ transition-delay: .90s; }

/* mobile: lighter but still clearly visible (shorter travel/time, ~80ms stagger) */
@media (max-width: 640px) {
  .js .reveal { transition-duration: .78s; }
  .js .reveal:not(.in)        { transform: translateY(44px); }
  .js .reveal-up:not(.in)     { transform: translateY(44px); }
  .js .reveal-left:not(.in)   { transform: translateX(-48px); }
  .js .reveal-right:not(.in)  { transform: translateX(48px); }
  .js .reveal-scale:not(.in)  { transform: translateY(34px) scale(.92); }
  .js .reveal[data-delay="1"]{ transition-delay: .08s; }
  .js .reveal[data-delay="2"]{ transition-delay: .16s; }
  .js .reveal[data-delay="3"]{ transition-delay: .24s; }
  .js .reveal[data-delay="4"]{ transition-delay: .32s; }
  .js .reveal[data-delay="5"]{ transition-delay: .40s; }
  .js .reveal[data-delay="6"]{ transition-delay: .48s; }
}

/* motionDebug (open with ?motionDebug=1): exaggerated so the mechanism is
   unmistakable. Defined LAST + higher specificity + full !important transition,
   so it overrides BOTH the normal rules and reduced-motion (lets you verify the
   animation even if your OS has "reduce motion" on). Not used in normal mode. */
html.motion-debug.js .reveal { transition: opacity 1.4s var(--ease-rev), transform 1.4s var(--ease-rev) !important; }
html.motion-debug.js .reveal:not(.in)       { opacity: 0 !important; transform: translateY(100px) !important; }
html.motion-debug.js .reveal-up:not(.in)    { transform: translateY(100px) !important; }
html.motion-debug.js .reveal-left:not(.in)  { transform: translateX(-110px) !important; }
html.motion-debug.js .reveal-right:not(.in) { transform: translateX(110px) !important; }
html.motion-debug.js .reveal-scale:not(.in) { transform: translateY(80px) scale(.85) !important; }
html.motion-debug.js .reveal[data-delay="1"]{ transition-delay: .22s !important; }
html.motion-debug.js .reveal[data-delay="2"]{ transition-delay: .44s !important; }
html.motion-debug.js .reveal[data-delay="3"]{ transition-delay: .66s !important; }
html.motion-debug.js .reveal[data-delay="4"]{ transition-delay: .88s !important; }
html.motion-debug.js .reveal[data-delay="5"]{ transition-delay: 1.10s !important; }
html.motion-debug.js .reveal[data-delay="6"]{ transition-delay: 1.32s !important; }

/* =================== Responsive =================== */
@media (max-width: 980px) {
  .hero { min-height: auto; padding: 116px 0 90px; }
  .hero .container { width: calc(100vw - 40px); max-width: 720px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: 0; max-width: 520px; margin: 40px auto 8px; }
  .device-screen { animation-name: deviceScreenBreathTablet; }
  .hero.is-in .hero-mascot { animation-name: mascotPopStrong, heroMascotBobStrong; }
  .scroll-ind { display: none; }
  .fc-compare { left: -2%; } .fc-meta { right: -2%; }
  .concept-grid, .modes-grid { grid-template-columns: 1fr 1fr; }
  .depth-grid { grid-template-columns: 1fr 1fr; }
  .update-band { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex !important; position: absolute; top: 14px; right: 16px; background: rgba(255,255,255,.88); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); }
  .site-header.nav-open .nav { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; position: absolute; top: 100%; left: 0; right: 0; background: rgba(255,255,255,.97); backdrop-filter: blur(14px); padding: 22px clamp(16px,4vw,40px); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-header.nav-open .header-cta { display: inline-flex; }
  .site-header.nav-open { background: rgba(255,255,255,.95); }
  .nav-toggle::before { display: block; }
  .nav-toggle span { display: none; }
  .site-header.nav-open .nav-toggle::before { content: "×"; }
  .site-header.nav-open .nav-toggle span:nth-child(1){transform:translateY(7px) rotate(45deg)}
  .site-header.nav-open .nav-toggle span:nth-child(2){opacity:0}
  .site-header.nav-open .nav-toggle span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
  .book-rail { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 180px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
  .book { scroll-snap-align: start; }
  .hero-mascot { width: 30%; left: 0; bottom: -6%; }
}
@media (max-width: 560px) {
  .concept-grid, .modes-grid, .depth-grid, .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .hero { padding: 88px 0 56px; }
  .hero .container { width: calc(100vw - 32px); max-width: 390px; margin-left: auto; margin-right: auto; }
  .hero-copy { width: 100%; }
  .hero-copy, .hero-sub { max-width: 100%; overflow-wrap: anywhere; }
  .hero h1 { font-size: clamp(30px, 8.2vw, 36px); line-height: 1.08; margin-bottom: 16px; }
  .hero-sub { width: min(100%, calc(100vw - 128px)); font-size: 14.5px; line-height: 1.75; margin-bottom: 22px; }
  .hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: min(100%, calc(100vw - 96px)); max-width: 342px; margin-bottom: 22px; }
  .hero-actions .btn { flex: 0 1 auto; width: 100%; max-width: 100%; justify-content: center; }
  .hero-visual { max-width: 340px; margin: 24px auto 0; }
  .device-screen { animation-name: deviceScreenBreathMobile; }
  .device-screen { padding: 8px; border-radius: 18px; }
  .device-screen img { border-radius: 12px; }
  .hero.is-in .hero-mascot { animation-name: mascotPopStrong, heroMascotBobStrong; }
  .hero-mascot { width: 34%; left: -2%; }
  .fc-compare { width: 140px; padding: 11px 12px; }
  .book-rail { grid-auto-columns: 150px; }
  .flow-step { grid-template-columns: auto 1fr; padding: 18px; gap: 16px; }
}
@keyframes deviceScreenBreathTablet {
  0% { transform: rotate(-1.1deg) scale(1); box-shadow: 0 34px 70px -36px rgba(31,86,184,.46); }
  100% { transform: rotate(-.4deg) scale(1.01); box-shadow: 0 46px 88px -32px rgba(31,86,184,.62); }
}
@keyframes deviceScreenBreathMobile {
  0% { transform: rotate(-1deg) scale(1); box-shadow: 0 30px 62px -36px rgba(31,86,184,.44); }
  100% { transform: rotate(-.4deg) scale(1.008); box-shadow: 0 40px 78px -34px rgba(31,86,184,.58); }
}
@media (max-width: 768px) {
  @keyframes heroVisualFloat {
    0% { opacity: 1; transform: translateY(9px) scale(1); }
    100% { opacity: 1; transform: translateY(-9px) scale(1.004); }
  }
  @keyframes heroMascotBobStrong {
    0% { opacity: 1; transform: translateY(7px) rotate(-1.1deg); }
    100% { opacity: 1; transform: translateY(-8px) rotate(1.1deg); }
  }
}

/* =================== Illustration slots + CTA extras + a11y =================== */
.section-illust { position: absolute; z-index: 0; pointer-events: none; opacity: .9; }
.illust-concept { top: 6%; right: 1%; width: clamp(170px,22vw,330px); }
.illust-depth { bottom: 4%; left: 1%; width: clamp(170px,22vw,330px); }
.cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: .5; pointer-events: none; }
.cta-spark { position: absolute; z-index: 0; border-radius: 50%; background: radial-gradient(circle, #fff, transparent 70%); filter: blur(1px); pointer-events: none; }
.cta-spark.s1 { width: 14px; height: 14px; top: 22%; left: 16%; animation: sparkle 3s ease-in-out infinite; }
.cta-spark.s2 { width: 10px; height: 10px; bottom: 26%; right: 20%; animation: sparkle 3.6s ease-in-out infinite .5s; }
@keyframes sparkle { 0%,100% { opacity: .2; transform: scale(.7); } 50% { opacity: .9; transform: scale(1.2); } }
@media (max-width: 720px) { .section-illust { display: none; } }

/* =================== Real Screens =================== */
.screens-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.screen-card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 14px; box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s; }
.screen-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.screen-tag { position: absolute; top: 24px; left: 24px; z-index: 2; font-size: 11.5px; font-weight: 800; color: #fff; background: var(--grad); padding: 5px 13px; border-radius: 999px; box-shadow: 0 8px 16px -8px var(--ring); }
.screen-shot { border-radius: 12px; overflow: hidden; background: var(--tint); }
.screen-shot img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; display: block; }
.screen-card figcaption { text-align: center; font-size: 14px; font-weight: 700; color: var(--ink-soft); padding: 13px 0 4px; }
.screens-grid .screen-card:nth-child(1) .screen-shot { animation: floaty 7s ease-in-out infinite alternate; }
.screens-grid .screen-card:nth-child(2) .screen-shot { animation: floaty 6s ease-in-out infinite alternate-reverse; }
.screens-grid .screen-card:nth-child(3) .screen-shot { animation: floaty 8s ease-in-out infinite alternate; }
@keyframes floaty { from { transform: translateY(0); } to { transform: translateY(-7px); } }

/* =================== Depth screenshot layout =================== */
.depth-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 3.5vw, 44px); align-items: center; }
.depth-shot { position: relative; margin: 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-lg); }
.depth-shot img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; display: block; }
.depth-shot figcaption { position: absolute; left: 12px; bottom: 12px; font-size: 11.5px; font-weight: 800; color: var(--primary); background: rgba(255,255,255,.92); border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; backdrop-filter: blur(4px); }
.depth-layout .depth-grid { grid-template-columns: 1fr 1fr; gap: 16px; }

@media (max-width: 980px) {
  .screens-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .depth-layout { grid-template-columns: 1fr; }
  .brand img { max-width: 210px; }
}
@media (max-width: 560px) {
  .depth-layout .depth-grid { grid-template-columns: 1fr; }
  .brand img { max-width: 180px; }
}
/* =================== Mini Nanikiru Experience =================== */
/* Styled to feel like the real app's question screen: calm gray-green/beige
   panel, clean white tiles (real assets), light software-like chrome.        */
.mini-panel { position: relative; background: #f1f3ed; border: 1px solid #e0e3d8; border-radius: 26px; padding: clamp(18px,2.4vw,30px); box-shadow: 0 24px 50px -32px rgba(60,70,55,.45); overflow: hidden; }
.mini-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 4px 4px 0; }
.mini-info { font-size: 13.5px; font-weight: 800; color: #4a5742; background: #e6e9dd; padding: 7px 16px; border-radius: 999px; }
.mini-hint { font-size: 14px; font-weight: 800; color: #6a7560; }
/* thin progress line echoing the app's blue bar under the top chrome */
.mini-progress { height: 4px; border-radius: 999px; background: #e0e3d8; margin: 14px 4px 0; overflow: hidden; }
.mini-progress > span { display: block; height: 100%; width: 10%; border-radius: 999px; background: linear-gradient(90deg,#2f7bf6,#5fa0ff); }
/* the board / stage the tiles sit on */
.mini-hand { display: flex; gap: 1px; align-items: flex-end; justify-content: center; flex-wrap: nowrap; padding: clamp(20px,3vw,32px) clamp(10px,2vw,20px); margin-top: 14px; background: #eaece2; border: 1px solid #e0e3d8; border-radius: 18px; box-shadow: inset 0 2px 10px -6px rgba(60,70,55,.4); }
.mtile { position: relative; flex: 0 0 auto; width: clamp(44px,5.4vw,60px); border: none; background: none; padding: 0; cursor: pointer; line-height: 0; transition: transform .16s var(--ease), filter .2s; }
.tile-img { display: block; width: 100%; height: auto; border-radius: 7px; filter: drop-shadow(0 3px 4px rgba(45,55,40,.22)); transition: filter .2s; }
.mtile:hover { transform: translateY(-7px); }
.mtile:hover .tile-img { filter: drop-shadow(0 8px 9px rgba(45,55,40,.3)); }
.mtile:active { transform: translateY(-3px) scale(.98); }
.mtile.drawn { margin-left: 32px; }
.mtile.drawn::before { content: ""; position: absolute; left: -17px; top: 14%; bottom: 14%; width: 2px; border-radius: 2px; background: #cfd3c4; }
/* CSS kanji fallback (only shown if the real PNG fails to load) */
.tile-img + .tile-face { display: none; }
.tile-face { position: absolute; inset: 0; flex-direction: column; align-items: center; justify-content: center; line-height: 1; font-weight: 800; background: #fff; border: 1px solid #d8d8cc; border-radius: 7px; box-shadow: 0 3px 4px rgba(45,55,40,.18); }
.tile-face:first-child { display: flex; position: relative; inset: auto; width: 100%; aspect-ratio: 5 / 7; }
.tile-face b { font-size: clamp(18px,2.1vw,24px); }
.tile-face i { font-style: normal; font-size: clamp(10px,1.2vw,13px); margin-top: 2px; }
.suit-man { color: #1c2530; } .suit-pin { color: #1f6fd0; } .suit-sou { color: #1f9d57; }
.suit-honor b { color: #d63b3b; font-size: clamp(20px,2.4vw,26px); }
.mtile.is-correct { transform: translateY(-4px); animation: correctPop .5s var(--ease); }
.mtile.is-correct .tile-img { filter: drop-shadow(0 0 2px #2f7bf6) drop-shadow(0 0 9px rgba(47,123,246,.65)); }
@keyframes correctPop { 0% { transform: scale(1); } 40% { transform: translateY(-10px) scale(1.07); } 100% { transform: translateY(-4px) scale(1); } }
.mtile.is-wrong { animation: shake .4s; }
.mtile.is-wrong .tile-img { filter: drop-shadow(0 0 2px #e0463c) drop-shadow(0 0 8px rgba(224,70,60,.55)); }
@keyframes shake { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-5px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }
.mini-hand.locked .mtile:not(.is-correct) { opacity: .5; cursor: default; }
.mini-result { margin-top: 18px; border-radius: 16px; padding: 18px 20px; border: 1px solid #e0e3d8; background: #f6f7f2; animation: miniFade .4s var(--ease); }
@keyframes miniFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.mini-result.ok { border-color: rgba(47,123,246,.32); background: linear-gradient(180deg,#eef4fb,#f7faff); }
.mini-result.ng { border-color: rgba(214,90,70,.3); background: #fbf3f1; }
.mini-result-head { margin-bottom: 10px; }
.mini-badge { display: inline-block; font-weight: 800; font-size: 14px; padding: 6px 15px; border-radius: 999px; }
.mini-badge.ok { color: #fff; background: var(--grad); }
.mini-badge.ng { color: #c0392b; background: #f6ddd8; }
.mini-result-text { color: var(--ink-soft); font-size: 14.5px; }
.mini-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.mini-actions .btn { padding: 12px 22px; font-size: 14px; }
@media (max-width: 760px) {
  .mini-hand { justify-content: flex-start; overflow-x: auto; padding-left: 14px; padding-right: 14px; -webkit-overflow-scrolling: touch; }
  .mtile { width: 50px; }
}
/* =================== Store / Download buttons =================== */
.btn--store { gap: 11px; padding: 13px 22px; }
.btn--store .btn-ic { flex: 0 0 auto; width: 21px; height: 21px; display: grid; place-items: center; }
.btn--store .btn-ic svg { width: 100%; height: 100%; display: block; }
.btn--store .btn-tx { line-height: 1; }
.btn--play { color: #fff; background: linear-gradient(180deg,#27313f,#161c27); box-shadow: 0 16px 30px -14px rgba(20,28,45,.7); }
.btn--play:hover { transform: translateY(-3px); box-shadow: 0 22px 38px -14px rgba(20,28,45,.8); }
.btn--win { color: var(--primary); background: #fff; border: 1.5px solid var(--line); box-shadow: var(--shadow); }
.btn--win:hover { transform: translateY(-3px); border-color: var(--primary); }
.btn--text { color: var(--ink-soft); background: transparent; padding: 13px 12px; font-size: 14px; }
.btn--text:hover { color: var(--primary); }

/* =================== CTA download note =================== */
.cta-note { position: relative; z-index: 1; margin-top: 16px; font-size: 12.5px; color: var(--ink-mute); }

/* =================== Opening animation (≤1.6s, runs once) =================== */
.hero-bg { animation: introBg 1.1s var(--ease) both; }
@keyframes introBg { from { opacity: 0; } to { opacity: 1; } }
/* title appears line by line (segments split on 、) */
.hero h1 .nb { display: block; opacity: 0; transform: translateY(14px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.hero.is-in h1 .nb { opacity: 1; transform: none; }
.hero.is-in h1 .nb:nth-of-type(1) { transition-delay: .18s; }
.hero.is-in h1 .nb:nth-of-type(2) { transition-delay: .32s; }
.hero.is-in h1 .nb:nth-of-type(3) { transition-delay: .44s; }
/* mascot pops in after the device, floating tags & cards come last */
.hero-chip, .float-card { opacity: 0; transition: opacity .5s ease; }
.hero.is-in .hero-chip, .hero.is-in .float-card { opacity: 1; transition-delay: .82s; }
/* =================== Functions (spotlight + system map) =================== */
.feature-layout { display: grid; gap: clamp(18px,2.4vw,28px); }
/* spotlight: the one feature shown with a real screenshot */
.feature-spot { position: relative; display: grid; grid-template-columns: 1.12fr .96fr; gap: clamp(22px,3.4vw,48px); align-items: center; background: linear-gradient(135deg,#ffffff,#eef5ff); border: 1px solid var(--line); border-radius: 26px; padding: clamp(18px,2.6vw,34px); box-shadow: var(--shadow-lg); overflow: hidden; }
.feature-spot::before { content: ""; position: absolute; width: 460px; height: 460px; right: -130px; top: -150px; background: radial-gradient(circle, rgba(47,123,246,.16), transparent 68%); pointer-events: none; }
.feature-spot .fs-media { position: relative; z-index: 1; }
.feature-spot .fs-media img { display: block; width: 100%; border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.feature-spot .fs-body { position: relative; z-index: 1; }
.feature-spot .mode-tag { margin-bottom: 12px; }
.feature-spot h3 { font-size: clamp(21px,2.6vw,31px); line-height: 1.25; margin-bottom: 12px; letter-spacing: .01em; }
.feature-spot p { color: var(--ink-soft); font-size: 15px; }
.fs-stats { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.fs-stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 18px; box-shadow: var(--shadow); }
.fs-stat b { display: block; font-size: clamp(18px,2.2vw,24px); line-height: 1.1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fs-stat span { font-size: 11.5px; color: var(--ink-mute); font-weight: 700; }
/* system map: 4 grouped, icon-driven cards */
.feature-groups { display: grid; grid-template-columns: repeat(4,1fr); gap: clamp(16px,1.8vw,24px); }
.fgroup { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 22px 20px; box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s; }
.fgroup:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.fgroup-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.fgroup-ic { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--grad); box-shadow: 0 10px 18px -10px var(--ring); }
.fgroup-ic svg { width: 22px; height: 22px; }
.fgroup-tt b { display: block; font-size: 16px; line-height: 1.2; }
.fgroup-tt span { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); font-weight: 800; }
.fgroup-list { display: grid; gap: 15px; }
.fitem { display: flex; gap: 11px; align-items: flex-start; }
.fitem-ic { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: var(--primary); background: var(--tint); }
.fitem-ic svg { width: 17px; height: 17px; }
.fitem-tx h4 { font-size: 14px; margin-bottom: 2px; }
.fitem-tx p { color: var(--ink-soft); font-size: 12px; line-height: 1.5; }
@media (max-width: 900px) {
  .feature-spot { grid-template-columns: 1fr; }
  .feature-groups { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .feature-groups { grid-template-columns: 1fr; }
}

/* =================== Author profile (G・ウザク) =================== */
.profile-card { position: relative; display: grid; grid-template-columns: .4fr 1fr; gap: clamp(24px,4vw,52px); align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 28px; padding: clamp(26px,4vw,50px); box-shadow: var(--shadow-lg); overflow: hidden; }
.profile-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--grad); }
.profile-aside { display: grid; justify-items: center; gap: 14px; }
.profile-avatar { width: clamp(132px,17vw,196px); filter: drop-shadow(0 18px 24px rgba(31,86,184,.32)); }
.profile-catch { font-size: 13px; font-weight: 800; color: var(--primary); background: var(--tint); border: 1px solid var(--line); padding: 7px 16px; border-radius: 999px; }
.profile-main .eyebrow { margin-bottom: 14px; }
.profile-main .section-title { margin-bottom: 6px; }
.profile-role { color: var(--primary); font-weight: 800; font-size: 14px; margin-bottom: 16px; }
.profile-bio { color: var(--ink-soft); font-size: 15px; line-height: 1.85; margin-bottom: 18px; }
.profile-facts { display: grid; gap: 9px; margin-bottom: 22px; }
.profile-facts li { position: relative; padding-left: 22px; color: var(--ink-soft); font-size: 14px; }
.profile-facts li::before { content: ""; position: absolute; left: 0; top: 7px; width: 10px; height: 10px; border-radius: 3px; background: var(--grad); }
.profile-links { display: flex; gap: 14px; flex-wrap: wrap; }
.profile-link { display: flex; flex-direction: column; gap: 2px; padding: 11px 22px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; box-shadow: var(--shadow); transition: transform .2s, border-color .2s; }
.profile-link:hover { transform: translateY(-3px); border-color: var(--primary); }
.pl-label { font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--ink-mute); }
.pl-handle { font-size: 15px; font-weight: 800; color: var(--primary); }
@media (max-width: 760px) {
  .profile-card { grid-template-columns: 1fr; text-align: center; }
  .profile-facts li { text-align: left; }
  .profile-links { justify-content: center; }
}

/* =================== Portal site (総合サイト) =================== */
/* hero entry chips (replaces hero stats) */
.hero-entries { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-entry { font-size: 12.5px; font-weight: 800; color: var(--ink-soft); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; box-shadow: var(--shadow); }
.hero-entry::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); margin-right: 7px; vertical-align: middle; }
.sec-head--center { margin-inline: auto; text-align: center; }

/* portal nav cards */
.portal-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.portal-card { position: relative; display: flex; flex-direction: column; background: linear-gradient(160deg, #ffffff, #f6faff); border: 1px solid var(--line); border-radius: 20px; padding: 26px 22px; box-shadow: var(--shadow); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.portal-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.portal-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.portal-card:hover::before { transform: scaleX(1); }
.pc-ic { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; color: #fff; background: var(--grad); box-shadow: 0 12px 22px -10px var(--ring); margin-bottom: 16px; transition: transform .3s var(--ease); }
.pc-ic svg { width: 26px; height: 26px; }
.portal-card:hover .pc-ic { transform: translateY(-2px) scale(1.06) rotate(-3deg); }
.portal-card h3 { font-size: 18px; margin-bottom: 8px; }
.portal-card p { color: var(--ink-soft); font-size: 13.5px; flex: 1; margin-bottom: 18px; }
/* unified entry link: text (animated underline) + chevron circle */
.pc-link { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 800; color: var(--primary); }
.pc-link-tx { position: relative; }
.pc-link-tx::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 100%; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ease); }
.portal-card:hover .pc-link-tx::after { transform: scaleX(1); }
.pc-chev { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #fff; background: var(--grad); box-shadow: 0 8px 16px -8px var(--ring); transition: transform .25s var(--ease); }
.pc-chev svg { width: 14px; height: 14px; }
.portal-card:hover .pc-chev { transform: translateX(4px); }
@media (max-width: 900px) { .portal-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .portal-grid { grid-template-columns: 1fr; } }

/* app section */
.app-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(48px,6vw,88px); align-items: center; margin-bottom: clamp(72px,8vw,96px); }
.app-steps { display: grid; gap: 34px; }
.app-step { display: flex; align-items: flex-start; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow); }
.as-no { font-size: 13px; font-weight: 900; color: var(--primary); opacity: .5; min-width: 22px; }
.as-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: var(--grad); flex: 0 0 auto; box-shadow: 0 10px 18px -10px var(--ring); }
.as-ic svg { width: 20px; height: 20px; }
.as-tx h4 { font-size: 15px; margin-bottom: 3px; }
.as-tx p { color: var(--ink-soft); font-size: 13px; }
@media (max-width: 900px) {
  .app-layout { grid-template-columns: 1fr; gap: 44px; margin-bottom: 64px; }
  .app-steps { gap: 28px; }
}

.app-dist { text-align: center; }

/* app feature体系 — "ひとつの学習体系": intro → flow → spotlight → grouped map */
.app-features { margin-bottom: clamp(72px,8vw,96px); }
.app-system-head { text-align: center; max-width: 740px; margin: clamp(36px,5vw,56px) auto clamp(48px,5.5vw,72px); }
.app-system-head h3 { font-size: clamp(20px,2.8vw,32px); line-height: 1.25; margin-bottom: 12px; letter-spacing: .01em; }
.app-system-head h3 .g, .app-system-head h3 b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.app-system-head p { color: var(--ink-soft); font-size: clamp(14px,1.5vw,16px); }
/* learning flow strip: 解く → 理由を読む → 見直す → 続ける */
.learn-flow { display: flex; align-items: center; justify-content: center; gap: clamp(12px,2vw,24px); flex-wrap: wrap; margin: 0 auto clamp(56px,6vw,80px); }
.lf-step { font-weight: 800; font-size: clamp(12.5px,1.4vw,15px); color: var(--primary); background: #fff; border: 1.5px solid var(--line); padding: 10px clamp(14px,1.8vw,22px); border-radius: 999px; box-shadow: var(--shadow); }
.lf-arrow { display: grid; place-items: center; color: var(--accent); }
.lf-arrow svg { width: 18px; height: 18px; }
/* spotlight + groups spacing inside the app section */
.app-features .feature-spot { gap: clamp(36px,5vw,72px); margin-bottom: clamp(60px,7vw,84px); }
.app-features .feature-groups { gap: clamp(28px,3vw,44px); }
@media (max-width: 560px) {
  .app-layout { gap: 32px; margin-bottom: 48px; }
  .app-steps { gap: 24px; }
  .app-features { margin-bottom: 48px; }
  .app-system-head { margin: 28px auto 32px; }
  .learn-flow { gap: 10px; margin-bottom: 36px; }
  .app-features .feature-spot { gap: 30px; margin-bottom: 42px; }
  .app-features .feature-groups { gap: 28px; }
  .lf-step { padding: 8px 13px; }
  .lf-arrow svg { width: 14px; height: 14px; }
}

@media (max-width: 560px) {
  .hero-actions .btn,
  .btn--store {
    min-height: 46px;
    min-width: 0;
    padding: 10px 8px;
    gap: 6px;
    font-size: 12.5px;
  }

  .btn--store .btn-ic {
    width: 16px;
    height: 16px;
  }

  .btn--store .btn-tx { white-space: nowrap; }

  .hero-entries {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .hero-entries::-webkit-scrollbar { display: none; }

  .hero-entry {
    flex: 0 0 auto;
    font-size: 12px;
    padding: 6px 12px;
  }

  .portal-grid { gap: 14px; }

  .portal-card {
    display: grid;
    grid-template-columns: 52px 1fr;
    column-gap: 14px;
    row-gap: 6px;
    padding: 18px;
    border-radius: 18px;
  }

  .portal-card .pc-ic {
    grid-row: 1 / span 3;
    width: 46px;
    height: 46px;
    margin-bottom: 0;
  }

  .portal-card h3 {
    font-size: 16px;
    margin-bottom: 2px;
  }

  .portal-card p {
    font-size: 13px;
    line-height: 1.65;
    margin-bottom: 6px;
  }

  .portal-card .pc-link { font-size: 13px; }

  .section--app .section-lead {
    font-size: 14px;
    line-height: 1.8;
  }

  .app-layout {
    gap: 24px;
    margin-bottom: 36px;
  }

  .app-steps { gap: 14px; }

  .app-step {
    padding: 15px 16px;
    border-radius: 16px;
  }
}

/* japanese books — large covers, neatly aligned (cover itself links to Amazon).
   No deliberate offset / wobble — the row stays tidy and stable. */
.jpbook-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: clamp(16px,2vw,26px); align-items: start; }
.jpbook { display: flex; flex-direction: column; }
.jpbook-cover { position: relative; display: block; border-radius: 10px; overflow: hidden; box-shadow: 0 18px 34px -16px rgba(31,86,184,.55); transition: transform .3s var(--ease), box-shadow .3s; }
.jpbook-cover.is-empty { display: none; }
.jpbook-cover img { display: block; width: 100%; aspect-ratio: 600 / 850; object-fit: cover; }
.jpbook-cover:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
/* subtle "open on Amazon" chevron, revealed on hover/focus */
.jpbook-go { position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; display: grid; place-items: center; color: #fff; background: var(--grad); border-radius: 50%; box-shadow: 0 10px 20px -8px var(--ring); opacity: 0; transform: translateY(6px) scale(.9); transition: opacity .25s var(--ease), transform .25s var(--ease); }
.jpbook-go svg { width: 16px; height: 16px; }
.jpbook-cover:hover .jpbook-go, .jpbook-cover:focus-visible .jpbook-go { opacity: 1; transform: translateY(0) scale(1); }
.jpbook-body { display: flex; flex-direction: column; padding: 14px 2px 0; flex: 1; }
.jpbook-body h3 { font-size: 14px; line-height: 1.45; margin-bottom: 7px; }
.jpbook-body h3 a { color: var(--ink); transition: color .2s; }
.jpbook-body h3 a:hover { color: var(--primary); }
.jpbook-pub { font-size: 12px; color: var(--ink-soft); }
.jpbook-date { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.jpbook-isbn { font-size: 10px; color: var(--ink-mute); margin-top: 4px; opacity: .8; }
@media (max-width: 980px) { .jpbook-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 680px) { .jpbook-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .jpbook-grid { grid-template-columns: 1fr; max-width: 280px; margin-inline: auto; } }

/* english editions — covers are only a weakened reference to the JP original */
.enbook-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.enbook { display: flex; gap: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); }
.enbook-cover { position: relative; flex: 0 0 auto; width: 92px; align-self: flex-start; }
.enbook-cover.is-empty { display: none; }
.enbook-cover img { width: 100%; border-radius: 6px; box-shadow: 0 8px 16px -10px rgba(31,86,184,.4); display: block; filter: saturate(.55) brightness(1.05); opacity: .82; }
/* clear "this is the original-book image, not the final EN cover" label */
.enbook-ref { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); white-space: nowrap; font-size: 9.5px; font-weight: 800; letter-spacing: .02em; color: var(--ink-soft); background: rgba(255,255,255,.92); border: 1px solid var(--line); padding: 3px 9px; border-radius: 999px; box-shadow: var(--shadow); }
.enbook-body { display: flex; flex-direction: column; align-items: flex-start; }
.enbook-flag { font-size: 10.5px; font-weight: 800; color: var(--ink-soft); background: var(--tint); border: 1px solid var(--line); padding: 4px 11px; border-radius: 999px; margin-bottom: 10px; }
.enbook-body h3 { font-size: 14.5px; line-height: 1.4; margin-bottom: 8px; }
.enbook-orig { font-size: 12px; color: var(--ink-soft); margin-bottom: 4px; }
.enbook-pub { font-size: 11.5px; color: var(--ink-mute); margin-top: auto; }
@media (max-width: 900px) { .enbook-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

/* sns / news */
.sns-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.sns-card { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s; }
.sns-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.sns-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: #15294a; }
.sns-ic svg { width: 23px; height: 23px; }
.sns-tx b { display: block; font-size: 16px; }
.sns-tx span { font-size: 13px; font-weight: 800; color: var(--primary); }
.sns-tx p { color: var(--ink-soft); font-size: 13px; margin-top: 6px; }
.sns-btn { margin-top: 4px; padding: 10px 18px; font-size: 13.5px; }
@media (max-width: 820px) { .sns-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

html.motion-on .hero.is-in .hero-anim,
html.motion-on .hero.is-in .hero-anim-v,
html.motion-on .hero.is-in h1 .nb,
html.motion-on .hero.is-in .hero-actions .btn,
html.motion-on .hero.is-in .hero-chip,
html.motion-on .hero.is-in .float-card,
html.motion-on .hero.is-in .hero-mascot {
  opacity: 1;
}

html.motion-on .hero.is-in .hero-anim,
html.motion-on .hero.is-in h1 .nb {
  transform: none;
}

html.motion-off *,
html.motion-off *::before,
html.motion-off *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

/* =================== Mobile compact pass =================== */
@media (max-width: 768px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  main,
  section,
  .site-header,
  .hero,
  .section {
    max-width: 100%;
    overflow-x: clip;
  }

  .hero-bg,
  .hero-lines,
  .wave-divider {
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .hero-lines { transform-origin: center; }

  .hero-lines,
  .wave-divider,
  .screen-scan,
  .orb,
  .aurora {
    display: none;
  }

  .js .reveal-left:not(.in),
  .js .reveal-right:not(.in) {
    transform: translateY(42px);
  }

  @keyframes heroLinesDrift {
    from { transform: translateX(-16px); }
    to { transform: translateX(16px); }
  }

  @keyframes heroVisualIn {
    0% {
      opacity: 0;
      transform: translateX(24px) translateY(10px) scale(.97);
      filter: blur(2px);
    }
    100% {
      opacity: 1;
      transform: translateX(0) translateY(0) scale(1);
      filter: blur(0);
    }
  }

  @keyframes heroVisualFloat {
    0% { opacity: 1; transform: translateY(8px) scale(1); }
    100% { opacity: 1; transform: translateY(-8px) scale(1.002); }
  }

  .hero {
    min-height: auto;
    padding-top: 76px;
    padding-bottom: 38px;
  }

  .hero .container {
    width: min(calc(100vw - 32px), 390px);
    max-width: calc(100vw - 32px);
    margin-inline: auto;
  }

  .hero-inner { gap: 22px; }

  .hero h1 {
    font-size: clamp(30px, 8.2vw, 36px);
    line-height: 1.08;
    margin-bottom: 14px;
  }

  .hero-sub {
    width: min(100%, 320px);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 18px;
  }

  .hero-actions {
    width: min(100%, 342px);
    gap: 10px;
    margin-bottom: 14px;
  }

  .hero-actions .btn,
  .btn--store {
    min-height: 44px;
    min-width: 0;
    padding: 10px 8px;
    gap: 6px;
    font-size: 12.5px;
  }

  .btn--store .btn-ic {
    width: 16px;
    height: 16px;
  }

  .btn--store .btn-tx { white-space: nowrap; }

  .hero-entries {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 342px);
    overflow: visible;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 4px;
  }

  .hero-entries::-webkit-scrollbar { display: none; }

  .hero-entry {
    min-width: 0;
    font-size: 12px;
    padding: 6px 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero-visual {
    width: min(100%, 340px);
    max-width: calc(100vw - 32px);
    margin: 20px auto 0;
    overflow: visible;
  }

  .device,
  .device-screen { max-width: 100%; }

  .device-screen {
    padding: 8px;
    border-radius: 18px;
  }

  .device-screen img { border-radius: 12px; }

  .hv-book {
    right: -10px;
    max-width: 34%;
    transform: rotate(5deg);
  }

  .hero-mascot {
    left: -4px;
    max-width: 120px;
  }

  .hero-chip {
    max-width: calc(100vw - 48px);
    white-space: nowrap;
  }

  .visual-glow { inset: 6% 4%; }

  .scroll-ind { display: none; }

  .section {
    padding-top: 48px;
    padding-bottom: 48px;
    background-size: auto;
  }

  .section + .section { margin-top: 0; }

  .section--mini {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .sec-head { margin-bottom: 24px; }

  .section-title {
    font-size: clamp(24px, 6.4vw, 30px);
    line-height: 1.18;
    letter-spacing: .01em;
  }

  .section-lead {
    font-size: 14px;
    line-height: 1.75;
    margin-top: 10px;
  }

  .eyebrow {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .profile-card {
    padding: 22px 18px;
    border-radius: 20px;
  }

  .profile-avatar { width: 118px; }

  .profile-bio {
    font-size: 13.5px;
    line-height: 1.75;
  }

  .profile-facts { gap: 7px; }

  .profile-links { gap: 10px; }

  .profile-link {
    padding: 9px 14px;
    border-radius: 12px;
  }

  .portal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .portal-card {
    display: grid;
    grid-template-columns: 46px 1fr;
    column-gap: 12px;
    row-gap: 4px;
    padding: 15px 16px;
    border-radius: 16px;
    align-items: center;
  }

  .portal-card .pc-ic {
    grid-row: 1 / span 3;
    width: 42px;
    height: 42px;
    margin: 0;
  }

  .portal-card h3 {
    font-size: 15.5px;
    line-height: 1.35;
    margin: 0;
  }

  .portal-card p {
    font-size: 12.5px;
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .portal-card .pc-link {
    font-size: 12.5px;
    margin-top: 2px;
  }

  .app-layout {
    gap: 20px;
    margin-bottom: 28px;
  }

  .depth-shot {
    margin: 0 auto;
    max-width: 330px;
  }

  .app-steps { gap: 10px; }

  .app-step {
    padding: 13px 14px;
    border-radius: 15px;
  }

  .as-tx h4 {
    font-size: 14.5px;
    margin-bottom: 4px;
  }

  .as-tx p {
    font-size: 12.8px;
    line-height: 1.55;
  }

  .app-features {
    gap: 12px;
    margin-bottom: 36px;
  }

  .app-system-head { margin: 22px auto 24px; }

  .learn-flow {
    gap: 8px;
    margin-bottom: 28px;
  }

  .lf-step {
    padding: 7px 11px;
    font-size: 12px;
  }

  .app-features .feature-spot,
  .feature-spot {
    gap: 16px;
    margin-bottom: 24px;
    padding: 14px 15px;
    border-radius: 16px;
  }

  .feature-spot h3 {
    font-size: 19px;
    margin-bottom: 8px;
  }

  .feature-spot p {
    font-size: 13px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .fs-stats {
    gap: 8px;
    margin-top: 12px;
  }

  .fs-stat {
    padding: 8px 12px;
    border-radius: 12px;
  }

  .app-features .feature-groups,
  .feature-groups {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .fgroup {
    padding: 14px 15px;
    border-radius: 16px;
  }

  .fgroup-head {
    margin-bottom: 12px;
    padding-bottom: 10px;
  }

  .fgroup-list { gap: 10px; }

  .fitem-tx p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .app-dist {
    padding: 22px 18px;
    border-radius: 20px;
  }

  .jpbook-grid,
  .enbook-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    max-width: none;
    margin-inline: 0;
  }

  .jpbook,
  .enbook {
    min-width: 0;
    padding: 12px;
    border-radius: 16px;
    background: var(--panel);
    border: 1px solid rgba(92, 142, 210, .16);
    box-shadow: 0 8px 24px rgba(31, 86, 184, .08);
  }

  .jpbook-cover {
    border-radius: 8px;
    box-shadow: 0 10px 22px -16px rgba(31,86,184,.4);
  }

  .jpbook-cover img,
  .enbook-cover img {
    width: 100%;
    max-height: 190px;
    object-fit: contain;
  }

  .jpbook-body {
    padding: 10px 0 0;
  }

  .jpbook-body h3,
  .enbook-body h3 {
    font-size: 13.5px;
    line-height: 1.45;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .jpbook-pub,
  .jpbook-date,
  .enbook-orig,
  .enbook-pub {
    font-size: 12px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .jpbook-isbn { display: none; }

  .enbook {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 10px;
    align-items: start;
  }

  .enbook-cover {
    width: 56px;
  }

  .enbook-ref {
    display: none;
  }

  .enbook-flag {
    font-size: 10px;
    margin-bottom: 6px;
    padding: 3px 8px;
  }

  .sns-grid {
    gap: 12px;
    max-width: none;
  }

  .sns-card {
    padding: 15px 16px;
    border-radius: 16px;
  }

  .sns-card p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .faq-list { gap: 10px; }

  .faq-item {
    border-radius: 14px;
  }

  .faq-q {
    padding: 14px 16px;
    font-size: 14px;
  }

  .faq-a-inner {
    padding: 0 16px 16px;
    font-size: 13px;
    line-height: 1.7;
  }

  .site-footer {
    padding-top: 36px;
    padding-bottom: 28px;
  }

  .footer-grid { gap: 20px; }

  .footer-bottom {
    margin-top: 28px;
    padding-top: 16px;
  }

  .card,
  .portal-card,
  .jpbook,
  .enbook,
  .sns-card,
  .faq-item,
  .fgroup,
  .feature-spot,
  .app-step {
    box-shadow: 0 8px 24px rgba(31, 86, 184, .08);
    border-color: rgba(92, 142, 210, .16);
  }
}

@media (max-width: 430px) {
  .hv-book { display: none; }

  .jpbook-grid,
  .enbook-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .jpbook,
  .enbook { padding: 10px; }

  .jpbook-cover img,
  .enbook-cover img { max-height: 170px; }
}

/* ====================================================================
   2026-06-26: ソフト内スクリーンショット群を一時非表示
   解除するにはこのブロック（コメントごと）を削除してください
   ==================================================================== */
.depth-shot { display: none !important; }
.app-layout { grid-template-columns: 1fr; }
.app-layout .app-steps { max-width: 660px; }
.feature-spot { display: none !important; }
