/* トップページ: アプリの画面ギャラリー、公式テーマソング、ミニプレイヤー */

@media (max-width: 1240px) and (min-width: 721px) { .nav a[href="#how"], .nav a[href="#faq"], .nav a[href="#movie"] { display: none; } }
@media (max-width: 940px) and (min-width: 721px) { .nav a[href="#creators"] { display: none; } }

/* 使い方: 画面の切り替え */
#howScreen { transition: opacity .18s ease, transform .18s ease; }
#howScreen.swap { opacity: 0; transform: scale(.97); }

/* ---------- アプリの画面 ---------- */
.screens-sec { padding-block: clamp(70px, 9vw, 130px) clamp(50px, 7vw, 100px); }
.screens-sec h2 { font-family: var(--font-pop); font-weight: 900; font-size: clamp(34px, 5.4vw, 72px); line-height: 1.12; letter-spacing: -.03em; margin: 10px 0 0; }
.screens-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px 40px; margin-bottom: clamp(30px, 4vw, 50px); }
.screens-head p { max-width: 26em; margin: 0; color: var(--muted); }
.screens-scroller { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-block: 20px 40px; }
.screens-scroller::-webkit-scrollbar { display: none; }
.screens-scroller:focus-visible { outline-offset: -3px; }
.screens { list-style: none; margin: 0; display: flex; gap: clamp(16px, 2.2vw, 30px); width: max-content;
  padding-inline: max(clamp(20px, 4vw, 56px), calc((100vw - var(--wrap)) / 2 + clamp(20px, 4vw, 56px))); }
.shot { scroll-snap-align: center; width: clamp(210px, 19vw, 250px); display: grid; gap: 16px; }
.shot:nth-child(even) { margin-top: clamp(24px, 4vw, 60px); }
.device.sm { width: 100%; border-radius: 42px; padding: 9px; }
.device.sm img { border-radius: 34px; box-shadow: 0 0 0 4px #15121c; }
.device.sm::before { top: 20%; }
.shot p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.6; }
.shot p b { display: block; color: var(--ink); font-size: 16px; font-weight: 900; }
.anim .shot.reveal:nth-child(2) { --d: .08s; } .anim .shot.reveal:nth-child(3) { --d: .16s; }
.anim .shot.reveal:nth-child(4) { --d: .24s; } .anim .shot.reveal:nth-child(5) { --d: .32s; }
.wip-note { margin: 0; font-size: 12px; color: var(--muted); }

/* ---------- 公式テーマソング ---------- */
.song-sec { padding-block: clamp(90px, 11vw, 160px) 0; }
.song-card { position: relative; overflow: hidden; border-radius: clamp(32px, 4vw, 56px); padding: clamp(30px, 5vw, 70px);
  background: linear-gradient(135deg, #2b2140 0%, #45307a 55%, #8a3f84 100%); color: #fff;
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 70px); align-items: center;
  box-shadow: 0 40px 80px -40px rgba(43,33,64,.7); }
@media (max-width: 860px) { .song-card { grid-template-columns: 1fr; justify-items: center; text-align: center; } }
.song-bub { position: absolute; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.45), rgba(255,255,255,.08) 55%, transparent 70%); border: 1.5px solid rgba(255,255,255,.14); pointer-events: none; }
.song-bub.b1 { width: 260px; height: 260px; right: -70px; top: -90px; }
.song-bub.b2 { width: 90px; height: 90px; right: 6%; bottom: -30px; }
.song-bub.b3 { width: 160px; height: 160px; left: -50px; bottom: -60px; }

.song-disc-wrap { position: relative; width: min(320px, 70vw); aspect-ratio: 1; justify-self: center; }
.song-disc { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle, #fff7fb 0 30%, transparent 30.5%),
              repeating-radial-gradient(circle, #1b1426 0 2px, #261c35 2px 5px);
  box-shadow: 0 0 0 6px rgba(255,255,255,.08), 0 30px 60px -20px rgba(0,0,0,.6);
  animation: discspin 9s linear infinite; animation-play-state: paused; }
.song-disc::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 30deg, transparent 0 20%, rgba(255,255,255,.14) 25%, transparent 32% 70%, rgba(255,255,255,.1) 75%, transparent 82%); }
.song-label { position: relative; z-index: 1; width: 38%; aspect-ratio: 1; border-radius: 50%; background: var(--pop); display: grid; place-content: center; text-align: center;
  font-family: var(--font-logo); font-weight: 700; font-size: clamp(15px, 1.6vw, 20px); color: #fff; line-height: 1.1; box-shadow: inset 0 0 0 4px rgba(255,255,255,.35); }
.song-label small { font-family: var(--font-num); font-size: 7px; letter-spacing: .18em; font-weight: 800; opacity: .9; margin-top: 3px; }
.song-label small, .song-label { pointer-events: none; }
.song-mascot { position: absolute; z-index: 2; width: 52%; height: auto; left: -10%; bottom: -8%; rotate: -8deg; filter: drop-shadow(0 16px 20px rgba(0,0,0,.45)); animation: bob 4.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .song-mascot { animation: none; } }
@keyframes discspin { to { rotate: 360deg; } }
.is-playing .song-disc { animation-play-state: running; }
.song-eq { position: absolute; right: -6px; bottom: 6%; display: flex; align-items: end; gap: 4px; height: 44px; padding: 8px 10px; border-radius: 14px; background: var(--lemon); box-shadow: 0 14px 24px -12px rgba(0,0,0,.5); rotate: 6deg; }
.song-eq i { width: 5px; height: 30%; border-radius: 3px; background: var(--ink); }
.is-playing .song-eq i { animation: eq 0.9s ease-in-out infinite alternate; }
.song-eq i:nth-child(2) { animation-delay: -.3s !important; } .song-eq i:nth-child(3) { animation-delay: -.6s !important; }
.song-eq i:nth-child(4) { animation-delay: -.15s !important; } .song-eq i:nth-child(5) { animation-delay: -.45s !important; }
@keyframes eq { from { height: 20%; } to { height: 100%; } }

.song-info { position: relative; z-index: 1; min-width: 0; width: 100%; }
.song-info .kicker { color: var(--lemon); }
.song-info h2 { font-family: var(--font-pop); font-weight: 900; font-size: clamp(36px, 5vw, 68px); line-height: 1.1; letter-spacing: -.03em; margin: 10px 0 8px;
  background: linear-gradient(90deg, #ff9ecb, #ffd23f, #9fe7ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.song-artist { margin: 0; font-family: var(--font-num); font-weight: 600; font-size: 14px; letter-spacing: .14em; opacity: .75; }
.song-artist b { font-weight: 900; font-size: 18px; letter-spacing: .08em; opacity: 1; color: #fff; margin-left: 6px; }
.song-lead { margin: 16px 0 26px; max-width: 30em; opacity: .85; font-size: clamp(14px, 1.3vw, 16px); }
@media (max-width: 860px) { .song-lead { margin-inline: auto; } }

.song-controls { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 14px; align-items: center; }
@media (max-width: 520px) { .song-controls { grid-template-columns: auto auto; justify-content: center; } .song-progress { grid-column: 1 / -1; } }
.song-play { width: 72px; height: 72px; border-radius: 50%; border: 0; background: var(--pop); color: #fff; display: grid; place-items: center;
  box-shadow: 0 16px 30px -12px rgba(255,95,162,.9); transition: transform .2s var(--ease-back, ease); }
.song-play:hover { transform: scale(1.06); } .song-play:active { transform: scale(.94); }
.song-play svg { width: 30px; height: 30px; fill: currentColor; }
.song-stop { height: 48px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08); color: #fff;
  display: inline-flex; align-items: center; gap: 8px; padding: 0 18px; font-weight: 800; font-size: 14px; }
.song-stop:hover { background: rgba(255,255,255,.16); }
.song-stop svg { width: 18px; height: 18px; fill: currentColor; }
.song-progress { min-width: 0; }
.song-progress input { width: 100%; height: 6px; margin: 0; appearance: none; -webkit-appearance: none; border-radius: 3px; cursor: pointer;
  background: linear-gradient(90deg, var(--lemon) 0 var(--p, 0%), rgba(255,255,255,.22) var(--p, 0%)); }
.song-progress input::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.song-progress input::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: #fff; }
.song-time { display: flex; justify-content: space-between; margin-top: 6px; font-family: var(--font-num); font-weight: 600; font-size: 12px; opacity: .7; font-variant-numeric: tabular-nums; }

/* 再生・一時停止アイコンの切り替え（親に is-playing が付いたら一時停止アイコン） */
.i-pause { display: none; }
.is-playing .i-play { display: none; } .is-playing .i-pause { display: block; }

/* ---------- ミニプレイヤー ---------- */
.mini-player { position: fixed; z-index: 25; left: max(16px, env(safe-area-inset-left, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 999px; overflow: hidden;
  background: rgba(43,33,64,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: #fff;
  box-shadow: 0 18px 40px -16px rgba(43,33,64,.8); transition: transform .5s var(--ease-back, ease), opacity .4s ease; }
.mini-player.away { transform: translateY(140%); opacity: 0; pointer-events: none; }
.mp-toggle { display: flex; align-items: center; gap: 10px; border: 0; background: none; color: inherit; padding: 0 10px 0 0; text-align: left; }
.mp-disc { width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: radial-gradient(circle, #fff7fb 0 34%, transparent 35%), repeating-radial-gradient(circle, #1b1426 0 2px, #2f2342 2px 4px);
  animation: discspin 6s linear infinite; animation-play-state: paused; }
.mp-disc img { width: 62%; height: auto; }
.is-playing .mp-disc { animation-play-state: running; }
.mp-text { display: grid; line-height: 1.3; min-width: 0; }
.mp-text b { font-size: 13px; font-weight: 900; white-space: nowrap; }
.mp-text small { font-family: var(--font-num); font-size: 11px; font-weight: 700; opacity: .7; letter-spacing: .06em; }
.mp-hint { display: none; }
.mini-player[data-state="idle"] .mp-hint { display: inline; color: var(--lemon); }
.mini-player[data-state="idle"] .mp-artist::before { content: " ・ "; }
.mp-icon { width: 34px; height: 34px; border-radius: 50%; background: var(--pop); display: grid; place-items: center; flex: none; margin-left: 4px; }
.mp-icon svg { width: 16px; height: 16px; fill: #fff; }
.mini-player[data-state="idle"] .mp-icon { animation: mppulse 2s ease-in-out infinite; }
@keyframes mppulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,95,162,.6); } 60% { box-shadow: 0 0 0 9px rgba(255,95,162,0); } }
.mp-stop { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; flex: none; margin-right: 2px; }
.mp-stop svg { width: 14px; height: 14px; fill: currentColor; }
.mp-stop:hover { background: rgba(255,255,255,.22); }
.mini-player[data-state="idle"] .mp-stop { display: none; }
.mp-bar { position: absolute; left: 22px; right: 22px; bottom: 2px; height: 2px; border-radius: 1px; background: rgba(255,255,255,.14); overflow: hidden; }
.mp-bar i { display: block; height: 100%; width: 100%; background: var(--lemon); transform-origin: 0 50%; transform: scaleX(0); }
@media (max-width: 380px) { .mp-text b { font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { .song-disc, .mp-disc, .is-playing .song-eq i, .mp-icon { animation: none !important; } }
.site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
.mini-player { border: 1px solid rgba(255,255,255,.12); }
.site-footer .credit { display: block; margin-bottom: 4px; opacity: .8; }

/* アプリの画面: 縦スクロールで横に流す（動きを使える環境だけ。使えない環境は指で横にスクロール） */
.anim .screens-sec { padding-block: 0; }
.anim .ssticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden;
  padding-top: 64px; }
.anim .screens-scroller { overflow: visible; scroll-snap-type: none; }
.anim .screens { will-change: transform; }
.anim .shot { scroll-snap-align: none; transition: transform .2s linear; }
.anim .shot.reveal { opacity: 1; transform: none; }
@media (max-width: 900px) {
  .screens-head { margin-bottom: 18px; }
  .screens-head p { font-size: 14px; }
  .shot { width: clamp(150px, 44vw, 200px); gap: 10px; }
  .shot:nth-child(even) { margin-top: 18px; }
  .shot p { font-size: 12px; } .shot p b { font-size: 14px; }
  .device.sm { border-radius: 30px; padding: 7px; } .device.sm img { border-radius: 24px; box-shadow: 0 0 0 3px #15121c; }
}
@media (max-height: 760px) and (max-width: 900px) { .anim .screens-head p { display: none; } }

/* ---------- 紹介動画 ---------- */
.movie-sec { padding-block: clamp(80px, 10vw, 150px) clamp(30px, 4vw, 60px); }
.movie-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
@media (max-width: 900px) { .movie-grid { grid-template-columns: 1fr; } .movie-stage { order: -1; } }
.movie-text h2 { font-family: var(--font-pop); font-weight: 900; font-size: clamp(34px, 5.4vw, 72px); line-height: 1.12; letter-spacing: -.03em; margin: 10px 0 0; }
.movie-text > p { color: var(--muted); font-size: clamp(15px, 1.4vw, 18px); max-width: 28em; margin: 22px 0 0; }
.movie-text .movie-hint { font-size: 13px; margin: 10px 0 26px; }
.movie-stage { position: relative; display: grid; justify-items: center; }
.movie-stage .blob { position: absolute; border-radius: 50%; filter: blur(4px); z-index: 0; }
.movie-frame { position: relative; z-index: 1; width: min(360px, 78vw); border-radius: 32px; overflow: hidden; line-height: 0;
  box-shadow: 0 0 0 6px #fff, 0 50px 90px -40px rgba(138,107,255,.75), 0 24px 40px -24px rgba(43,33,64,.45); }
.movie-frame video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; background: #f6e9ff; cursor: pointer; }
/* 画面に入ると、下から回りながら大きくなって、角から広がるように現れる */
.anim .movie-frame { opacity: 0; transform: translateY(90px) scale(.82) rotate(-6deg); clip-path: inset(14% 14% 14% 14% round 60px); }
.anim .movie-frame.in { opacity: 1; transform: none; clip-path: inset(0 0 0 0 round 32px);
  transition: opacity .7s ease, transform 1.3s var(--ease-back, cubic-bezier(.34,1.56,.64,1)), clip-path 1.1s cubic-bezier(.16,1,.3,1); }
.anim .movie-frame.from-top:not(.in) { transform: translateY(-90px) scale(.82) rotate(6deg); }
.movie-sound { position: absolute; right: 14px; bottom: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px;
  padding: 9px 14px 9px 11px; background: rgba(43,33,64,.78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; font-weight: 800; font-size: 13px;
  box-shadow: 0 10px 20px -10px rgba(0,0,0,.5); }
.movie-sound svg { width: 20px; height: 20px; fill: currentColor; }
.movie-sound .i-sound { display: none; }
.movie-sound[aria-pressed="true"] { background: var(--pop); }
.movie-sound[aria-pressed="true"] .i-sound { display: block; } .movie-sound[aria-pressed="true"] .i-muted { display: none; }
.floater.f4 { top: 6%; left: -4%; animation-duration: 5s; } .floater.f4 .sticker { background: var(--grape); color: #fff; font-size: 14px; rotate: -8deg; }
@media (max-width: 520px) { .floater.f4 { left: 0; } }
.anim .movie-sec .sticker { opacity: 1; scale: 1; }
