/* 体験デモ（営業資料のQRから開くスマホ用ページ） */
html,body{margin:0;height:100%;background:#0E2A63}
body{-webkit-tap-highlight-color:transparent;-webkit-font-smoothing:antialiased}
button{font-family:inherit;cursor:pointer}
.app{position:relative;width:100%;max-width:480px;height:100vh;height:100dvh;margin:0 auto;overflow:hidden;font-family:'Zen Maru Gothic','Hiragino Maru Gothic ProN',sans-serif;background:#F3F5FA;color:#14213D}
.scr{position:absolute;inset:0;display:flex;flex-direction:column;overflow-y:auto;animation:scrIn .45s cubic-bezier(.2,.8,.2,1) both}
@keyframes scrIn{from{opacity:0;transform:translateX(24px)}to{opacity:1;transform:none}}
.pop{animation:pop .5s cubic-bezier(.2,1.4,.4,1) both}
@keyframes pop{from{opacity:0;transform:scale(.6)}to{opacity:1;transform:scale(1)}}
.rise{animation:rise .5s ease-out both}
@keyframes rise{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
.chip{min-height:44px;padding:10px 16px;border-radius:999px;font-size:15px;font-weight:700;display:inline-flex;align-items:center;gap:6px;transition:all .15s}
.chip:active{transform:scale(.96)}
.star{width:52px;height:52px;border:0;background:transparent;padding:0;transition:transform .15s}
.star:active{transform:scale(1.25)}
.cta{min-height:56px;border:0;border-radius:16px;font-size:17px;font-weight:900;width:100%;transition:transform .1s}
.cta:active{transform:scale(.97)}
.cta:disabled{opacity:.35}
.dot{width:10px;height:10px;border-radius:50%;background:#1F4FB8;animation:dot 1s infinite ease-in-out}
@keyframes dot{0%,80%,100%{transform:translateY(0);opacity:.35}40%{transform:translateY(-8px);opacity:1}}
.caret{display:inline-block;width:2px;height:18px;background:#1F4FB8;vertical-align:-3px;margin-left:2px;animation:blink .8s steps(1) infinite}
@keyframes blink{50%{opacity:0}}
.spark{animation:spark 1.6s ease-in-out infinite}
@keyframes spark{0%,100%{transform:scale(1) rotate(0)}50%{transform:scale(1.15) rotate(12deg)}}

/* ガチャ */
.machine-wrap{display:flex;justify-content:center;width:100%}
.machine{position:relative;width:390px;height:400px;flex-shrink:0;transform-origin:top center}
@media (max-width:389px){.machine{transform:scale(.86);margin:0 -28px -56px}}
@media (max-height:700px){.machine{transform:scale(.78);margin:0 -43px -88px}}
.globe{position:absolute;left:85px;top:0;width:220px;height:220px;border-radius:50%;background:rgba(255,255,255,.6);border:6px solid #fff;box-sizing:border-box;box-shadow:0 10px 30px rgba(14,42,99,.18);overflow:hidden}
.cap{position:absolute;width:50px;height:50px;border-radius:50%;box-sizing:border-box;border:3px solid rgba(20,33,61,.12)}
.spin .cap{animation:tumble .32s ease-in-out infinite alternate}
@keyframes tumble{from{transform:translate(-6px,4px) rotate(-25deg)}to{transform:translate(6px,-10px) rotate(30deg)}}
.shine{position:absolute;left:30px;top:22px;width:46px;height:22px;border-radius:50%;background:rgba(255,255,255,.85);transform:rotate(-30deg)}
.mbody{position:absolute;left:65px;top:196px;width:260px;height:190px;background:#E5322D;border-radius:30px 30px 22px 22px;box-shadow:inset 0 -10px 0 rgba(0,0,0,.15),0 14px 28px rgba(229,50,45,.3)}
.spin .mbody{animation:rumble .12s linear infinite}
@keyframes rumble{0%{transform:translateX(0)}25%{transform:translateX(-2px)}75%{transform:translateX(2px)}}
.knob{position:absolute;left:98px;top:30px;width:64px;height:64px;border-radius:50%;background:#fff;border:5px solid #0E2A63;box-sizing:border-box}
.knob:after{content:"";position:absolute;left:21px;top:3px;width:12px;height:48px;border-radius:6px;background:#0E2A63}
.spin .knob{animation:knob 1.4s cubic-bezier(.5,0,.3,1) both}
@keyframes knob{to{transform:rotate(720deg)}}
.chute{position:absolute;left:95px;bottom:20px;width:70px;height:52px;background:#5A1210;border-radius:14px 14px 8px 8px}
.dropcap{position:absolute;left:165px;top:322px;width:60px;height:60px;animation:drop .9s cubic-bezier(.3,1.6,.5,1) both}
@keyframes drop{0%{opacity:0;transform:translateY(-40px) scale(.5)}40%{opacity:1}100%{transform:translateY(0) scale(1)}}
.half{position:absolute;left:0;width:60px;height:30px;box-sizing:border-box;border:3px solid rgba(20,33,61,.15)}
.htop{top:0;border-radius:30px 30px 0 0}
.hbot{top:30px;border-radius:0 0 30px 30px;background:#fff}
.opening .htop{animation:flyTop .7s ease-out forwards}
.opening .hbot{animation:flyBot .7s ease-out forwards}
@keyframes flyTop{to{transform:translate(-40px,-90px) rotate(-40deg);opacity:0}}
@keyframes flyBot{to{transform:translate(40px,50px) rotate(30deg);opacity:0}}
.burst{position:absolute;left:30px;top:30px;width:10px;height:10px;margin:-5px 0 0 -5px;border-radius:50%;background:radial-gradient(circle,#FFF6C8 0%,#FFC928 45%,rgba(255,201,40,0) 70%);animation:burst .7s ease-out forwards}
@keyframes burst{to{transform:scale(60);opacity:0}}

/* 当選・オーバーレイ */
.reveal{position:absolute;inset:0;background:rgba(14,42,99,.82);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px;overflow:hidden;animation:fadeIn .3s both;z-index:5}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
.rays{position:absolute;left:50%;top:42%;width:900px;height:900px;margin:-450px 0 0 -450px;background:repeating-conic-gradient(rgba(255,201,40,.22) 0 10deg,rgba(255,201,40,0) 10deg 20deg);border-radius:50%;animation:rot 14s linear infinite}
@keyframes rot{to{transform:rotate(360deg)}}
.ticket{position:relative;width:300px;background:#fff;border-radius:20px;box-shadow:0 20px 50px rgba(0,0,0,.35);animation:ticket .7s cubic-bezier(.2,1.5,.4,1) .1s both}
@keyframes ticket{from{opacity:0;transform:scale(.2) rotate(-12deg)}to{opacity:1;transform:none}}
.notch{position:absolute;top:112px;width:24px;height:24px;border-radius:50%;background:#2B3F72}
.conf{position:absolute;top:-20px;width:9px;height:14px;border-radius:2px;animation-name:fall;animation-timing-function:linear;animation-iteration-count:infinite}
@keyframes fall{from{transform:translateY(0) rotate(0)}to{transform:translateY(110vh) rotate(720deg)}}

/* LINE */
.addok{animation:pop .4s cubic-bezier(.2,1.5,.4,1) both}
.bubble{animation:bubble .45s cubic-bezier(.2,1.2,.4,1) both;transform-origin:left top}
@keyframes bubble{from{opacity:0;transform:scale(.7)}to{opacity:1;transform:none}}
.stamp{position:absolute;right:14px;top:14px;width:96px;height:96px;border-radius:50%;border:5px solid #D3241F;color:#D3241F;display:flex;align-items:center;justify-content:center;font-size:22px;font-weight:900;transform:rotate(-14deg);background:rgba(255,255,255,.75);animation:stamp .45s cubic-bezier(.3,1.6,.5,1) both}
@keyframes stamp{from{opacity:0;transform:scale(2.6) rotate(-14deg)}to{opacity:1;transform:scale(1) rotate(-14deg)}}
.check{stroke-dasharray:40;stroke-dashoffset:40;animation:draw .5s .15s ease-out forwards}
@keyframes draw{to{stroke-dashoffset:0}}
.spinner{width:44px;height:44px;border-radius:50%;border:4px solid #D5DCEA;border-top-color:#1F4FB8;animation:rot .8s linear infinite}

@media (max-width:360px){.app h1{font-size:24px!important}.app h2{font-size:22px!important}.app p{font-size:14px!important}}
/* 次に押すボタン：枠が点滅して外側に光が広がる（黄色のボタンは紺の枠。.sub は控えめなボタンなので光らせない） */
button.cta:not(:disabled):not(.sub){--edge:#FFC928;--halo:255,201,40;--base:0 0 0 0 transparent;animation:ring 1.4s ease-out infinite}
button.cta.rise:not(:disabled):not(.sub){animation:rise .5s ease-out both,ring 1.4s ease-out .5s infinite}
button.cta.on-yellow:not(:disabled):not(.sub){--edge:#0E2A63}
@keyframes ring{
  0%{box-shadow:var(--base),inset 0 0 0 3px var(--edge),0 0 0 0 rgba(var(--halo),.75)}
  50%{box-shadow:var(--base),inset 0 0 0 3px rgba(0,0,0,0),0 0 0 12px rgba(var(--halo),0)}
  100%{box-shadow:var(--base),inset 0 0 0 3px var(--edge),0 0 0 12px rgba(var(--halo),0)}
}

@media (prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important}}
