/* ============================================
   かずもん Landing Page — わくわく edition
   Characters float, tilt, and peek from edges
   ============================================ */

:root{
  --bg:#FFFFFF;
  --bg-soft:#FAFAF7;
  --text:#2C2C2A;
  --text-mid:#444441;
  --text-dim:#5F5E5A;
  --text-light:#6F6D64;
  --border:#E0DED0;
  --border-light:#F1EFE8;
  --orange:#C24E27;
  --blue:#4DB4E8;
  --purple:#B97FE8;
  --red:#E84D5C;
  --green:#3B6D11;
  --green-bg:#EAF3DE;
  --sans:'Noto Sans JP','Hiragino Sans','Yu Gothic',sans-serif;
  --wrap:1080px;
  --gutter:24px;
}

*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth;font-size:16px}
body{
  font-family:var(--sans);background:var(--bg);color:var(--text);
  line-height:1.7;-webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{max-width:100%;height:auto;display:block}
a{text-decoration:none;color:inherit}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 var(--gutter)}

.skip-link{
  position:absolute;top:-100%;left:16px;background:var(--text);color:#FFF;
  padding:8px 16px;border-radius:999px;z-index:100;font-size:14px;
}
.skip-link:focus{top:16px}

/* Focus & active states */
a:focus-visible,
button:focus-visible{outline:2px solid var(--orange);outline-offset:2px;border-radius:4px}
.btn-badge:focus-visible,.nav-cta:focus-visible{outline-offset:3px;border-radius:14px}
.btn-badge:active{transform:scale(.97)}
.btn-outline:active{transform:scale(.97)}
.nav-cta:active{opacity:.8}

@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition-duration:.01ms!important}
  .fade{opacity:1;transform:none}
}


/* ============================================
   FLOATING ANIMATIONS
   ============================================ */
@keyframes float-a{
  0%,100%{transform:translateY(0) rotate(var(--r,0deg))}
  50%{transform:translateY(-14px) rotate(var(--r,0deg))}
}
@keyframes float-b{
  0%,100%{transform:translateY(0) rotate(var(--r,0deg))}
  50%{transform:translateY(-10px) rotate(calc(var(--r,0deg) + 4deg))}
}
@keyframes float-c{
  0%,100%{transform:translateY(0) rotate(var(--r,0deg)) scale(1)}
  50%{transform:translateY(-8px) rotate(calc(var(--r,0deg) - 3deg)) scale(1.03)}
}
@keyframes pulse{
  0%,100%{transform:translateX(-50%) scale(1)}
  50%{transform:translateX(-50%) scale(1.08)}
}

.float-main{animation:float-a 4s ease-in-out infinite}
.float-slow{animation:float-b 5s ease-in-out infinite}
.float-med{animation:float-c 3.5s ease-in-out infinite}
.float-fast{animation:float-b 2.8s ease-in-out infinite}


/* ============================================
   SECTION COMMON
   ============================================ */
.section-head{text-align:center;margin-bottom:28px}
.section-label{
  display:block;font-size:11px;color:var(--text-light);
  letter-spacing:.15em;margin-bottom:6px;text-transform:uppercase;
}
.section-head h2{font-size:18px;font-weight:500}
.accent-orange{color:var(--orange)}


/* ============================================
   NAV
   ============================================ */
.nav{
  padding:12px 0;background:var(--bg);
  border-bottom:1px solid var(--border-light);
  position:sticky;top:0;z-index:50;
}
.nav-in{
  max-width:var(--wrap);margin:0 auto;padding:0 var(--gutter);
  display:flex;align-items:center;justify-content:space-between;
}
.nav-logo{display:flex;align-items:center;gap:10px}
.nav-logo-icon{width:36px;height:36px;object-fit:contain}
.nav-logo-name{display:flex;flex-direction:column;line-height:1.2}
.nav-logo-text{font-size:18px;font-weight:700;letter-spacing:.02em}
.nav-logo-sub{font-size:10px;color:var(--text-dim);letter-spacing:.02em}
.nav-right{display:flex;align-items:center;gap:20px}
.nav-links{display:flex;gap:20px;list-style:none}
.nav-links a{font-size:13px;color:var(--text-mid);transition:color .2s;display:inline-flex;align-items:center;min-height:44px;padding:0 4px}
.nav-links a:hover{color:var(--text)}
.nav-cta{
  background:var(--text);color:#FFF;padding:10px 16px;
  border-radius:999px;font-size:12px;font-weight:500;transition:background .2s;min-height:44px;display:inline-flex;align-items:center;
}
.nav-cta:hover{background:#444}


/* ============================================
   HERO
   ============================================ */
.hero{
  padding:48px 0 24px;
  background:linear-gradient(180deg,#FFE9C7 0%,#FFD4D4 100%);
  overflow:hidden;
}
.hero-grid{
  display:grid;grid-template-columns:1.1fr 1fr;gap:24px;align-items:center;
}
.hero-badge{
  display:inline-block;background:#FFF;color:var(--orange);
  font-size:11px;font-weight:500;padding:6px 14px;border-radius:999px;
  margin-bottom:14px;
}
.hero h1{
  font-size:clamp(1.8rem,3.5vw,2.4rem);font-weight:500;
  line-height:1.25;margin-bottom:14px;word-break:keep-all;
}
.hero-sub{font-size:14px;color:var(--text-mid);line-height:1.7;margin-bottom:18px}
.hero-buttons{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.hero-trust{display:flex;gap:14px;font-size:12px;font-weight:500;color:var(--text)}

/* Hero visual — character arena */
.hero-visual{
  position:relative;min-height:360px;
  display:flex;align-items:center;justify-content:center;
}
.char{position:absolute;object-fit:contain;filter:drop-shadow(0 6px 16px rgba(0,0,0,.12));pointer-events:none}

/* Main Kazumon — big, center */
.char-main{
  width:220px;z-index:3;--r:0deg;
  position:relative;
}

/* Pink demon — medium, top-left, tilted */
.char-demon{
  width:110px;left:0;top:20px;--r:-12deg;z-index:2;
}

/* Yellow enemy — small, bottom-right, cheeky */
.char-yellow{
  width:90px;right:0;bottom:20px;--r:10deg;z-index:2;
}

/* Ghost — small, peeking top-right */
.char-ghost{
  width:80px;right:10px;top:-10px;--r:8deg;z-index:1;opacity:.85;
}

/* Combo badge — floating above center */
.combo-badge{
  position:absolute;left:50%;top:0;
  transform:translateX(-50%);
  background:linear-gradient(90deg,#FFC107,#FFA000);
  color:var(--text);padding:5px 16px;border-radius:999px;
  font-size:12px;font-weight:700;letter-spacing:.02em;
  z-index:10;white-space:nowrap;
  animation:pulse 2s ease-in-out infinite;
}


/* ============================================
   BUTTONS
   ============================================ */
.btn-badge{display:inline-block;transition:opacity .2s}
.btn-badge:hover{opacity:.8}
.btn-badge img{display:block}
.btn-outline{
  background:#FFF;color:var(--text);padding:11px 18px;border-radius:12px;
  font-size:13px;font-weight:500;border:1px solid var(--text-light);
  display:inline-flex;align-items:center;transition:border-color .2s;
}
.btn-outline:hover{border-color:var(--text-dim)}


/* ============================================
   PEEK CHARACTERS (between sections)
   ============================================ */
.peek{
  position:absolute;object-fit:contain;z-index:5;
  filter:drop-shadow(0 4px 12px rgba(0,0,0,.1));
  pointer-events:none;
}
.peek-left{
  width:70px;left:-10px;top:50%;transform:translateY(-50%) rotate(-10deg);
  --r:-10deg;
}
.peek-right-top{
  width:80px;right:-10px;top:24px;--r:12deg;
}


/* ============================================
   GAMEPLAY
   ============================================ */
.gameplay{padding:40px 0 32px;background:var(--bg-soft);position:relative;overflow:visible}
.gameplay-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.gameplay-card{background:#FFF;border-radius:14px;padding:14px;border:1px solid var(--border)}
.gameplay-card h3{font-size:13px;font-weight:500;margin-bottom:4px}
.gameplay-card p{font-size:11px;color:var(--text-dim);line-height:1.5}

.gameplay-screen{
  border-radius:10px;margin-bottom:10px;overflow:hidden;
  background:var(--bg-soft);
}
.gameplay-screen img{
  width:100%;height:auto;display:block;
}


/* ============================================
   PARENTS
   ============================================ */
.parents{padding:40px 0}
.parents-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.parent-card{background:var(--bg-soft);padding:16px;border-radius:12px}
.parent-card-head{display:flex;align-items:center;gap:8px;margin-bottom:6px;font-size:14px;font-weight:500}
.check-icon{
  width:28px;height:28px;background:var(--green-bg);border-radius:8px;
  display:inline-flex;align-items:center;justify-content:center;
  font-size:14px;color:var(--green);flex-shrink:0;
}
.parent-card p{font-size:12px;color:var(--text-dim);line-height:1.6}


/* ============================================
   CHALLENGE
   ============================================ */
.challenge{
  padding:40px 0;position:relative;overflow:visible;
  background:linear-gradient(135deg,#FFF4E0 0%,#FFE0E0 100%);
}
.challenge-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:center}
.challenge-badge{
  display:inline-block;background:var(--orange);color:#FFF;
  padding:4px 12px;border-radius:999px;font-size:11px;font-weight:500;margin-bottom:12px;
}
.challenge h2{font-size:clamp(1.2rem,2.5vw,1.4rem);font-weight:500;line-height:1.4;margin-bottom:12px;word-break:keep-all}
.challenge p{font-size:13px;color:var(--text-mid);line-height:1.8;margin-bottom:16px}
.challenge-price{background:#FFF;padding:12px 16px;border-radius:10px}
.challenge-price-label{font-size:11px;color:var(--text-light);display:block}
.challenge-price-value{font-size:14px;font-weight:500;display:block}

.challenge-visual{background:#FFF;padding:18px;border-radius:14px;border:1px solid var(--border)}
.progress-grid{display:flex;gap:4px;flex-wrap:wrap;margin:8px 0 12px}
.day{
  width:22px;height:22px;border-radius:4px;
  display:flex;align-items:center;justify-content:center;font-size:9px;color:#FFF;
}
.day.done{background:#97C459}
.day.current{background:#EF9F27;font-size:10px}
.day.future{background:var(--border-light)}
.progress-labels{display:flex;justify-content:space-between;font-size:10px;color:var(--text-light);margin-bottom:10px}
.progress-result{background:var(--bg-soft);padding:10px;border-radius:8px;font-size:11px;color:var(--text-dim);line-height:1.5}
.progress-result strong{color:var(--orange)}


/* ============================================
   PRICING COMPARISON
   ============================================ */
.pricing{padding:40px 0;background:var(--bg)}
.pricing-grid{
  display:flex;align-items:center;justify-content:center;gap:16px;
  max-width:540px;margin:0 auto;
}
.pricing-card{
  flex:1;padding:20px 24px;border-radius:14px;text-align:center;
}
.pricing-other{
  background:var(--bg-soft);border:1px solid var(--border);
}
.pricing-kazumon{
  background:linear-gradient(135deg,#FFF4E0 0%,#FFE9C7 100%);
  border:2px solid var(--orange);
}
.pricing-label{font-size:12px;color:var(--text-dim);margin-bottom:6px;font-weight:500}
.pricing-price{font-size:22px;font-weight:700;margin-bottom:6px;word-break:keep-all}
.pricing-kazumon .pricing-price{color:var(--orange)}
.pricing-note{font-size:11px;color:var(--text-light);line-height:1.5}
.pricing-arrow{
  font-size:20px;color:var(--text-light);flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
  width:32px;height:32px;
}


/* ============================================
   VOICES
   ============================================ */
.voices{padding:40px 0}
.voices-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.voice-card{padding:16px;border-radius:12px}
.voice-orange{background:#FFF4E0}
.voice-blue{background:#E6F1FB}
.voice-pink{background:#FAECE7}
.voice-stars{font-size:14px;color:#F5A623;display:block;margin-bottom:6px;letter-spacing:.05em}
.voice-title{font-size:13px;font-weight:500;margin-bottom:4px}
.voice-text{font-size:12px;line-height:1.7;margin-bottom:8px;color:var(--text-mid)}
.voice-attr{font-size:11px;color:var(--text-light)}
.voices-source{text-align:center;font-size:10px;color:var(--text-light);margin-top:12px}


/* ============================================
   ABOUT
   ============================================ */
.about{padding:40px 0;background:var(--bg-soft)}
.about-body{max-width:560px;margin:0 auto;text-align:center}
.about-body p{font-size:13px;color:var(--text-mid);line-height:1.8;margin-bottom:12px}
.about-info{
  margin-top:20px;background:#FFF;border-radius:12px;
  padding:16px 20px;border:1px solid var(--border);
  text-align:left;
}
.about-row{
  display:flex;gap:16px;padding:8px 0;
  border-bottom:1px solid var(--border-light);
}
.about-row:last-child{border-bottom:none}
.about-row dt{font-size:12px;color:var(--text-light);min-width:72px;flex-shrink:0}
.about-row dd{font-size:12px;color:var(--text)}


/* ============================================
   CTA FINAL
   ============================================ */
.cta-final{
  padding:56px 0 48px;
  background:linear-gradient(180deg,#FFE9C7 0%,#FFD4D4 100%);
  text-align:center;position:relative;overflow:hidden;
}
.cta-chars{
  display:flex;justify-content:center;align-items:flex-end;
  gap:0;margin-bottom:10px;position:relative;height:120px;
}
.cta-char{object-fit:contain;filter:drop-shadow(0 4px 12px rgba(0,0,0,.1));pointer-events:none}
.cta-char-l{width:70px;--r:-15deg;position:absolute;left:calc(50% - 130px);bottom:0}
.cta-char-c{width:110px;--r:0deg;position:absolute;left:50%;bottom:0;transform:translateX(-50%);z-index:2}
.cta-char-r{width:65px;--r:12deg;position:absolute;right:calc(50% - 120px);bottom:0}

.cta-final h2{font-size:22px;font-weight:500;margin-bottom:8px}
.cta-sub{font-size:13px;color:var(--text-mid);margin-bottom:18px}
.cta-note{margin-top:12px;font-size:11px;color:var(--text-dim)}


/* ============================================
   FOOTER
   ============================================ */
footer{padding:16px 0;background:#2C2C2A}
.foot-in{display:flex;justify-content:space-between;align-items:center}
.foot-left{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.foot-left span,.foot-left a{font-size:10px;color:#B4B2A9}
.foot-left a{transition:color .2s}
.foot-left a:hover{color:#FFF}
.foot-dot{color:#555}


/* ============================================
   FADE
   ============================================ */
.fade{opacity:0;transform:translateY(16px);transition:opacity .6s ease,transform .6s ease}
.fade.in{opacity:1;transform:translateY(0)}


/* ============================================
   RESPONSIVE
   ============================================ */
@media(max-width:900px){
  .gameplay-grid{grid-template-columns:1fr 1fr}
  .gameplay-card:last-child{grid-column:1/-1;max-width:50%;margin:0 auto}
  .voices-grid{grid-template-columns:1fr 1fr}
  .voice-card:last-child{grid-column:1/-1;max-width:50%;margin:0 auto}
  .peek{display:none}
}

@media(max-width:640px){
  :root{--gutter:20px}

  .nav-links{display:none}
  .nav-logo-sub{display:none}

  .hero{padding:32px 0 16px}
  .hero-grid{grid-template-columns:1fr;text-align:center}
  .hero h1{font-size:clamp(1.4rem,6vw,1.8rem)}
  .hero-buttons{justify-content:center}
  .hero-trust{justify-content:center}

  .hero-visual{min-height:240px}
  .char-main{width:160px}
  .char-demon{width:70px;left:-10px;top:10px}
  .char-yellow{width:60px;right:-5px;bottom:10px}
  .char-ghost{width:55px;right:5px;top:-5px}
  .combo-badge{font-size:10px;padding:4px 12px}

  .gameplay-grid{grid-template-columns:1fr}
  .gameplay-card:last-child{max-width:100%}

  .parents-grid{grid-template-columns:1fr}

  .challenge-grid{grid-template-columns:1fr}

  .pricing-grid{flex-direction:column;gap:8px}
  .pricing-arrow{transform:rotate(0)}

  .voices-grid{grid-template-columns:1fr}
  .voice-card:last-child{max-width:100%}

  .cta-char-l{left:calc(50% - 100px);width:55px}
  .cta-char-c{width:85px}
  .cta-char-r{right:calc(50% - 90px);width:50px}
  .cta-chars{height:90px}

  .foot-in{flex-direction:column;gap:8px;text-align:center}
  .foot-left{justify-content:center}
}
