/* ============================================================
   Music World — Premium Layer
   既存の style.css / effects.css の上に重ねる演出レイヤー。
   このファイルと js/premium.js を外せば旧デザインに戻ります。
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,400;1,500&display=swap');

:root {
  --plum: #3d1a2e;
  --wine: #5a2140;
  --rose: #e7799f;
  --blush: #ffd9e6;
  --font-italic: 'Cormorant Garamond', 'Cinzel', serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --header-h: 64px;
}

/* ── Base polish ── */
html { -webkit-tap-highlight-color: transparent; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, .hm-lead, .hm-cta__lead, .hm-intro__tagline, .hm-kingdom__desc, .section-title, .hero-tagline { word-break: auto-phrase; text-wrap: pretty; }
::selection { background: rgba(231,121,159,0.28); color: var(--plum); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #fff5f8; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--rose), var(--gold));
  border: 3px solid #fff5f8; border-radius: 10px;
}

/* ── Page transitions (View Transitions API: 対応ブラウザのみ) ── */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: pm-vt-out 0.35s var(--ease-out) both; }
::view-transition-new(root) { animation: pm-vt-in 0.55s var(--ease-out) both; }
@keyframes pm-vt-out { to { opacity: 0; filter: blur(6px); transform: scale(0.985); } }
@keyframes pm-vt-in  { from { opacity: 0; filter: blur(8px); transform: scale(1.015); } }
header { view-transition-name: pm-header; }
.bgm-player { view-transition-name: pm-bgm; }

/* ── 旧ローダー（毎ページ表示）は非表示。初回のみ premium の幕を使用 ── */
#fx-load-overlay { display: none !important; }

/* ============================================================
   Curtain intro（セッション初回のみ）
   ============================================================ */
.pm-curtain {
  position: fixed; inset: 0; z-index: 300000;
  display: grid; place-items: center;
  pointer-events: none;
}
.pm-curtain__panel {
  position: absolute; top: 0; bottom: 0; width: 50.5%;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,0.10) 0 2px, transparent 2px 46px),
    linear-gradient(90deg, #6e2445, #a33b66 30%, #c8517f 50%, #a33b66 70%, #6e2445);
  box-shadow: inset 0 -30px 60px rgba(0,0,0,0.25);
  transition: transform 1.25s cubic-bezier(0.7, 0, 0.2, 1);
}
.pm-curtain__panel::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 22px;
  background:
    radial-gradient(circle at 11px 0, var(--gold-light) 0 5px, transparent 6px) 0 6px / 22px 22px repeat-x,
    linear-gradient(var(--gold), var(--gold-dark));
  background-size: 22px 22px, 100% 6px;
  background-repeat: repeat-x, no-repeat;
}
.pm-curtain__panel--l { left: 0; transform-origin: left; }
.pm-curtain__panel--r { right: 0; transform-origin: right; }
.pm-curtain__center {
  position: relative; z-index: 2; text-align: center;
  transition: opacity 0.6s ease, transform 0.9s var(--ease-out);
}
.pm-curtain__logo {
  width: min(520px, 76vw); height: auto; margin: 0 auto;
  filter: drop-shadow(0 0 30px rgba(255,220,140,0.55));
  animation: pm-logo-breathe 2.2s ease-in-out infinite alternate;
}
.pm-curtain__staff {
  width: min(320px, 60vw); height: 22px; margin: 1.2rem auto 0;
  background: repeating-linear-gradient(180deg, rgba(255,231,170,0.7) 0 1px, transparent 1px 5px);
  -webkit-mask: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
          mask: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  position: relative; overflow: hidden;
}
.pm-curtain__staff::after {
  content: '♪'; position: absolute; top: -6px; left: -10%;
  color: #ffe9b0; font-size: 18px; text-shadow: 0 0 10px #ffd36e;
  animation: pm-staff-run 1.4s ease-in-out infinite;
}
@keyframes pm-staff-run { to { left: 105%; } }
@keyframes pm-logo-breathe { to { filter: drop-shadow(0 0 50px rgba(255,220,140,0.9)); transform: scale(1.02); } }
.pm-curtain.is-open .pm-curtain__panel--l { transform: translateX(-102%) skewX(-4deg); }
.pm-curtain.is-open .pm-curtain__panel--r { transform: translateX(102%) skewX(4deg); }
.pm-curtain.is-open .pm-curtain__center { opacity: 0; transform: scale(1.25); }

/* ============================================================
   Scroll progress（金の五線）
   ============================================================ */
.pm-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1002;
  pointer-events: none;
}
.pm-progress__bar {
  height: 100%; width: 100%;
  transform-origin: left; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--rose), var(--gold-light), var(--gold));
  box-shadow: 0 0 10px rgba(201,162,39,0.6);
}

/* ============================================================
   Header
   ============================================================ */
header {
  transition: transform 0.5s var(--ease-out), background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease !important;
}
.nav-inner { min-height: var(--header-h); }
.nav-logo { display: flex; align-items: center; gap: 0.7rem; }
.nav-logo a.pm-logo-link { display: flex; align-items: center; gap: 0.7rem; color: inherit; }
.pm-nav-emblem {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #fff, #ffe3ee 60%, #f6c9da);
  border: 1px solid rgba(201,162,39,0.55);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.7), 0 4px 14px rgba(180,90,140,0.2);
  color: var(--gold-dark); font-size: 1.2rem; line-height: 1;
  transition: transform 0.6s var(--ease-spring);
}
.pm-nav-emblem img { width: 100%; height: 100%; object-fit: cover; }
.nav-logo:hover .pm-nav-emblem { transform: rotate(-14deg) scale(1.08); }

/* トップページ：ヒーロー上では透明ヘッダー */
body.page-top header:not(.scrolled) {
  background: linear-gradient(to bottom, rgba(40,10,28,0.45), rgba(40,10,28,0)) !important;
  border-bottom-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none;
}
body.page-top header:not(.scrolled) .nav-logo,
body.page-top header:not(.scrolled) .nav-logo span,
body.page-top header:not(.scrolled) nav ul li a,
body.page-top header:not(.scrolled) .lang-btn { color: #fff7fb; text-shadow: 0 1px 8px rgba(0,0,0,0.35); }
body.page-top header:not(.scrolled) .lang-btn { border-color: rgba(255,255,255,0.4); }
body.page-top header:not(.scrolled) .hamburger span { background: #fff; }

/* nav: スライドするインジケーター */
nav ul { position: relative; align-items: center; }
nav ul li a { border: none !important; background: none !important; border-radius: 999px !important; padding: 0.45rem 0.7rem !important; }
nav ul li a::after { display: none !important; }
.pm-nav-indicator {
  position: absolute; top: 50%; left: 0; height: 32px; width: 0;
  transform: translate(var(--x, 0), -50%);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(252,228,236,0.9));
  border: 1px solid rgba(201,162,39,0.45);
  box-shadow: 0 4px 16px rgba(180,90,140,0.14), inset 0 1px 0 #fff;
  transition: transform 0.45s var(--ease-out), width 0.45s var(--ease-out), opacity 0.3s ease;
  opacity: 0; pointer-events: none; z-index: -1;
}
nav ul li a.active { color: var(--gold-dark) !important; }
body.page-top header:not(.scrolled) nav ul li a.active,
body.page-top header:not(.scrolled) nav ul:hover li a:hover { color: var(--plum) !important; text-shadow: none; }

/* 支援する：ゴールドのCTA */
nav ul li a.nav-support {
  position: relative; isolation: isolate;
  color: #fff !important; font-weight: 600;
  background: linear-gradient(135deg, var(--rose), #d4567f 45%, var(--gold) 120%) !important;
  box-shadow: 0 4px 16px rgba(212,86,127,0.35), inset 0 1px 0 rgba(255,255,255,0.4);
  margin: 0 0.3rem; padding: 0.45rem 1rem !important; text-shadow: none !important;
  overflow: hidden;
}
nav ul li a.nav-support::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.55) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: pm-sheen 3.6s ease-in-out infinite;
}
nav ul li a.nav-support:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(212,86,127,0.45); }
nav ul li a.nav-supporters {
  border: 1px solid rgba(201,162,39,0.6) !important;
  color: var(--gold-dark) !important;
}
body.page-top header:not(.scrolled) nav ul li a.nav-supporters { color: #ffe9b0 !important; border-color: rgba(255,233,176,0.7) !important; }
@keyframes pm-sheen { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }

.lang-btn { border-radius: 999px !important; }

/* ── Mobile / tablet nav：フルスクリーンメニュー ── */
@media (max-width: 1240px) {
  .hamburger { display: block !important; position: relative; z-index: 3; width: 44px; height: 44px; padding: 10px !important; }
  .hamburger span { transition: transform 0.45s var(--ease-out), opacity 0.3s ease, background 0.3s; transform-origin: center; }
  body.pm-nav-open .hamburger span { background: var(--gold-dark) !important; }
  body.pm-nav-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.pm-nav-open .hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  body.pm-nav-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-inner { flex-wrap: nowrap !important; }
  .nav-logo { flex: 1; min-width: 0; }
  nav {
    position: absolute !important; top: 100%; left: 0; right: 0;
    width: auto !important; height: calc(100dvh - 100%);
    max-height: none !important; overflow-y: auto !important;
    background:
      radial-gradient(circle at 80% 10%, rgba(244,143,177,0.25), transparent 50%),
      radial-gradient(circle at 10% 90%, rgba(201,162,39,0.18), transparent 50%),
      linear-gradient(160deg, #fff7fa, #fdeef4 60%, #f6e9fb);
    opacity: 0; visibility: hidden;
    clip-path: circle(0% at calc(100% - 40px) 0);
    transition: clip-path 0.7s var(--ease-out), opacity 0.3s ease, visibility 0s linear 0.7s;
    padding: 1.5rem 1.5rem 7rem;
  }
  nav.open {
    opacity: 1; visibility: visible;
    clip-path: circle(150% at calc(100% - 40px) 0);
    transition: clip-path 0.8s var(--ease-out), opacity 0.2s ease, visibility 0s;
  }
  nav ul { flex-direction: column !important; align-items: stretch !important; gap: 0.2rem; padding: 0 !important; }
  nav ul li { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.6s var(--ease-out); }
  nav.open ul li { opacity: 1; transform: none; }
  nav.open ul li:nth-child(1) { transition-delay: 0.10s; } nav.open ul li:nth-child(2) { transition-delay: 0.14s; }
  nav.open ul li:nth-child(3) { transition-delay: 0.18s; } nav.open ul li:nth-child(4) { transition-delay: 0.22s; }
  nav.open ul li:nth-child(5) { transition-delay: 0.26s; } nav.open ul li:nth-child(6) { transition-delay: 0.30s; }
  nav.open ul li:nth-child(7) { transition-delay: 0.34s; } nav.open ul li:nth-child(8) { transition-delay: 0.38s; }
  nav.open ul li:nth-child(9) { transition-delay: 0.42s; } nav.open ul li:nth-child(10) { transition-delay: 0.46s; }
  nav ul li a {
    font-size: 1.05rem !important; letter-spacing: 0.14em !important;
    padding: 0.95rem 1rem !important; color: var(--plum) !important; text-shadow: none !important;
    border-bottom: 1px solid rgba(201,162,39,0.18) !important; border-radius: 0 !important;
    display: flex !important; justify-content: space-between; align-items: center;
  }
  nav ul li a:not(.nav-support):not(.nav-supporters)::before { content: '♪'; order: 2; color: var(--gold); opacity: 0.5; transition: transform 0.3s var(--ease-spring); }
  nav ul li a:hover::before, nav ul li a.active::before { transform: scale(1.4) rotate(-12deg); opacity: 1; }
  nav ul li a.active { color: var(--gold-dark) !important; }
  nav ul li a.nav-support { margin: 0.8rem 0 0.3rem; border-radius: 999px !important; justify-content: center; border: none !important; color: #fff !important; }
  nav ul li a.nav-supporters { justify-content: center; border-radius: 999px !important; margin-top: 0.3rem; }
  .pm-nav-indicator { display: none; }
  body.pm-nav-open { overflow: hidden; }
  body.pm-nav-open header { background: #fff7fa !important; backdrop-filter: none !important; }
  body.pm-nav-open header .nav-logo, body.pm-nav-open header .nav-logo span, body.pm-nav-open header .lang-btn { color: var(--text-mid) !important; text-shadow: none !important; }
  .lang-switcher { order: 2; }
  .hamburger { order: 3; }
  .nav-logo { order: 1; }
  body.pm-nav-open .bgm-player, body.pm-nav-open .bgm-restore, body.pm-nav-open .pm-totop { opacity: 0 !important; pointer-events: none !important; }
}
@media (max-width: 560px) {
  .nav-logo > span:not(.pm-nav-emblem), .nav-logo a.pm-logo-link > span:not(.pm-nav-emblem) { font-size: 0.72rem; }
  .lang-btn { padding: 0.2rem 0.45rem !important; font-size: 0.6rem !important; }
  .pm-nav-emblem { width: 32px; height: 32px; font-size: 1rem; }
}
@media (max-width: 400px) {
  .nav-logo span[data-i18n="nav-logo-sub"] { display: none !important; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  border-radius: 999px !important;
  border: 1px solid transparent !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,240,246,0.92)) padding-box,
    linear-gradient(135deg, var(--gold-light), var(--rose) 50%, var(--gold)) border-box !important;
  color: var(--gold-dark);
  padding: 0.95rem 2.4rem;
  letter-spacing: 0.18em;
  box-shadow: 0 6px 22px rgba(180,90,140,0.14), inset 0 1px 0 #fff;
  translate: var(--mag-x, 0) var(--mag-y, 0);
  transition: translate 0.35s var(--ease-out), transform 0.35s var(--ease-out), box-shadow 0.35s ease, color 0.3s ease !important;
}
.btn::before { background: linear-gradient(135deg, #d4567f, var(--rose) 40%, var(--gold) 110%) !important; border-radius: inherit; }
.btn:hover { color: #fff !important; }
.btn span { display: inline-flex; align-items: center; gap: 0.6em; }

/* ============================================================
   Cards：カーソル追従のスポットライト枠
   ============================================================ */
.card { border-radius: 18px !important; }
.card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(231,121,159,0.9), rgba(201,162,39,0.55) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.4s ease;
}
.card:hover::after { opacity: 1; }

/* ============================================================
   Page hero（下層ページ）
   ============================================================ */
.page-hero {
  padding: calc(var(--header-h) + 6rem) 2rem 5rem !important;
  overflow: hidden; isolation: isolate;
  background:
    radial-gradient(ellipse 60% 70% at 50% 40%, rgba(255,255,255,0.9), transparent 70%),
    radial-gradient(circle at 15% 20%, rgba(244,143,177,0.22), transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(232,213,245,0.5), transparent 45%);
}
.page-hero::before {
  content: attr(data-watermark);
  position: absolute; left: 50%; top: 54%; transform: translate(-50%, -50%);
  z-index: -1; white-space: nowrap; pointer-events: none;
  font-family: var(--font-title); font-weight: 900;
  font-size: clamp(4rem, 16vw, 13rem); letter-spacing: 0.04em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(201,162,39,0.22);
  opacity: 0; animation: pm-watermark 1.8s var(--ease-out) 0.2s forwards;
}
@keyframes pm-watermark { from { opacity: 0; letter-spacing: 0.3em; } to { opacity: 1; letter-spacing: 0.04em; } }
.page-hero .subtitle {
  font-family: var(--font-italic) !important; font-style: italic; text-transform: none !important;
  font-size: clamp(1rem, 2vw, 1.25rem) !important; letter-spacing: 0.12em !important;
  color: var(--rose) !important; margin-bottom: 0.4rem;
  animation: pm-rise 1s var(--ease-out) both;
}
.page-hero h1 {
  animation: pm-title-in 1.3s var(--ease-out) 0.1s both, gradient-shift 5s linear infinite !important;
  font-size: clamp(2.2rem, 5.5vw, 4rem) !important;
}
@keyframes pm-title-in {
  from { opacity: 0; transform: translateY(24px); filter: blur(10px); clip-path: inset(0 0 100% 0); }
  to   { opacity: 1; transform: none; filter: blur(0); clip-path: inset(-20% -10% -20% -10%); }
}
@keyframes pm-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.pm-flourish { display: block; width: min(280px, 60vw); height: 28px; margin: 1rem auto 0; overflow: visible; }
.pm-flourish path { fill: none; stroke: url(#pm-gold-grad); stroke-width: 1.2; stroke-linecap: round;
  stroke-dasharray: 400; stroke-dashoffset: 400; animation: pm-draw 1.8s var(--ease-out) 0.6s forwards; }
.pm-flourish .pm-flourish__gem { fill: var(--gold); stroke: none; opacity: 0; transform-origin: center; transform-box: fill-box;
  animation: pm-gem 0.8s var(--ease-spring) 1.4s forwards; }
@keyframes pm-draw { to { stroke-dashoffset: 0; } }
@keyframes pm-gem { from { opacity: 0; transform: scale(0) rotate(-90deg); } to { opacity: 1; transform: scale(1) rotate(0); } }

/* ============================================================
   Section titles
   ============================================================ */
.section-subtitle {
  font-family: var(--font-italic) !important; font-style: italic;
  text-transform: none !important; letter-spacing: 0.1em !important;
  font-size: 1.05rem !important; color: var(--rose) !important;
  display: flex; align-items: center; justify-content: center; gap: 1rem;
}
.section-subtitle::before, .section-subtitle::after {
  content: ''; height: 1px; width: 60px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.section-subtitle::after { background: linear-gradient(270deg, transparent, var(--gold)); }

/* ============================================================
   Reveal（スクロール出現）
   ============================================================ */
.fade-in {
  opacity: 0; transform: translateY(36px) scale(0.985); filter: blur(6px);
  transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-out), filter 0.9s ease !important;
  transition-delay: calc(var(--i, 0) * 90ms) !important;
}
.fade-in.visible { opacity: 1; transform: none; filter: none; }
.card.fade-in.visible { transition: opacity 0.9s var(--ease-out), transform 0.35s var(--ease-out), filter 0.9s ease, box-shadow 0.3s ease !important; transition-delay: calc(var(--i, 0) * 90ms), 0s, calc(var(--i, 0) * 90ms), 0s !important; }
.pm-reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); transition-delay: calc(var(--i, 0) * 100ms); }
.pm-reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   Ticker（アナウンス帯を無限スクロールに）
   ============================================================ */
.pm-ticker-src { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pm-ticker {
  position: relative; overflow: hidden; z-index: 2;
  background: linear-gradient(90deg, var(--plum), var(--wine) 50%, var(--plum));
  border-top: 1px solid rgba(232,201,106,0.5); border-bottom: 1px solid rgba(232,201,106,0.5);
  padding: 0.9rem 0;
  -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.pm-ticker__track { display: flex; width: max-content; animation: pm-marquee 38s linear infinite; }
.pm-ticker:hover .pm-ticker__track { animation-play-state: paused; }
.pm-ticker__item {
  flex-shrink: 0; padding: 0 2.5rem; white-space: nowrap;
  font-family: var(--font-heading); font-size: 0.85rem; letter-spacing: 0.22em;
  background: linear-gradient(90deg, #e8c96a, #fff1c8, #e8c96a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@keyframes pm-marquee { to { transform: translateX(-50%); } }

/* ============================================================
   Footer
   ============================================================ */
footer {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(231,121,159,0.25), transparent 60%),
    linear-gradient(180deg, var(--wine), var(--plum)) !important;
  border-top: none !important;
  padding: 5.5rem 2rem 7rem !important;
  color: #f6dbe7;
}
footer::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}
footer .footer-logo {
  font-size: clamp(1.6rem, 4vw, 2.6rem) !important; letter-spacing: 0.06em;
  background: linear-gradient(135deg, #e8c96a, #fff3cf 50%, #c9a227);
  -webkit-background-clip: text; background-clip: text; color: transparent !important;
}
footer .footer-logo-sub { color: #e7b7cb !important; font-size: 0.8rem !important; }
footer p { color: rgba(246,219,231,0.6) !important; }
.footer-links { gap: 0.4rem 1.8rem !important; margin: 2rem auto !important; max-width: 980px; }
.footer-links a { color: #f6dbe7 !important; position: relative; padding: 0.2rem 0; }
.footer-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--gold-light); transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.footer-links a:hover { color: #ffe9b0 !important; }
.footer-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.footer-links a.footer-support { color: #ffb7cf !important; }
.footer-links a.footer-supporters { color: #ffe9b0 !important; }
.pm-footer-staff {
  position: absolute; left: 0; right: 0; top: 2.2rem; height: 40px; z-index: -1; opacity: 0.35;
  background: repeating-linear-gradient(180deg, rgba(232,201,106,0.6) 0 1px, transparent 1px 9px);
  -webkit-mask: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
          mask: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}
.pm-footer-staff span {
  position: absolute; top: 0; color: var(--gold-light); font-size: 22px; line-height: 1;
  animation: pm-staff-notes 22s linear infinite;
}
@keyframes pm-staff-notes { from { transform: translateX(-10vw); } to { transform: translateX(110vw); } }

/* Back to top */
.pm-totop {
  position: fixed; left: 1.5rem; bottom: 1.5rem; z-index: 1990;
  width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(8px);
  box-shadow: 0 6px 22px rgba(180,90,140,0.2);
  display: grid; place-items: center;
  opacity: 0; transform: translateY(20px) scale(0.8); pointer-events: none;
  transition: opacity 0.4s ease, transform 0.5s var(--ease-spring);
}
.pm-totop.is-on { opacity: 1; transform: none; pointer-events: auto; }
.pm-totop svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.pm-totop circle { fill: none; stroke-width: 2; }
.pm-totop .pm-totop__track { stroke: rgba(201,162,39,0.18); }
.pm-totop .pm-totop__ring { stroke: url(#pm-gold-grad); stroke-linecap: round; stroke-dasharray: 145; stroke-dashoffset: calc(145 - 145 * var(--p, 0)); }
.pm-totop__icon { color: var(--gold-dark); font-size: 1.1rem; transition: transform 0.4s var(--ease-spring); }
.pm-totop:hover .pm-totop__icon { transform: translateY(-4px); }
@media (max-width: 600px) { .pm-totop { left: 0.8rem; bottom: 0.8rem; width: 44px; height: 44px; } }

/* ============================================================
   Click burst & cursor sparkle
   ============================================================ */
.pm-burst {
  position: fixed; z-index: 2147483640; pointer-events: none;
  font-size: var(--s, 16px); line-height: 1; color: var(--c, var(--gold));
  text-shadow: 0 0 8px currentColor;
  transform: translate(-50%, -50%);
  animation: pm-burst 0.9s var(--ease-out) forwards;
}
@keyframes pm-burst {
  0%   { opacity: 1; transform: translate(-50%, -50%) scale(0.3) rotate(0); }
  70%  { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1) rotate(var(--r)); }
}
.pm-burst-ring {
  position: fixed; z-index: 2147483639; pointer-events: none;
  width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid var(--rose); transform: translate(-50%, -50%);
  animation: pm-ring 0.6s var(--ease-out) forwards;
}
@keyframes pm-ring { to { width: 80px; height: 80px; opacity: 0; border-width: 1px; } }
.cursor-trail {
  border-radius: 0 !important;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  box-shadow: none !important;
}
.cursor-ring { border-color: rgba(231,121,159,0.6) !important; mix-blend-mode: multiply; }
body.has-custom-cursor .cursor-ring.on-interactive {
  width: 56px !important; height: 56px !important;
  background: rgba(244,143,177,0.12); border-color: var(--gold) !important;
}

/* Ambient stardust canvas */
.pm-stardust { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* ============================================================
   BGM player polish
   ============================================================ */
.bgm-player {
  border-radius: 20px !important;
  border: 1px solid transparent !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.96), rgba(255,238,245,0.95)) padding-box,
    linear-gradient(135deg, var(--gold-light), var(--rose), var(--gold)) border-box !important;
  box-shadow: 0 14px 40px rgba(120,40,80,0.18), 0 0 0 4px rgba(255,255,255,0.35) !important;
}
.bgm-btn { transition: transform 0.3s var(--ease-spring), background 0.2s ease, box-shadow 0.2s ease !important; }
.bgm-btn:hover { transform: scale(1.12); }
.bgm-play-btn { width: 34px !important; height: 34px !important; background: linear-gradient(135deg, var(--rose), var(--gold)) !important; color: #fff !important; border: none !important; }
.pm-eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; margin-left: 0.4rem; vertical-align: middle; }
.pm-eq i { width: 2px; height: 30%; background: var(--gold); border-radius: 2px; }
body.pm-bgm-playing .pm-eq i { animation: pm-eq 0.9s ease-in-out infinite alternate; }
.pm-eq i:nth-child(2) { animation-delay: -0.3s !important; } .pm-eq i:nth-child(3) { animation-delay: -0.6s !important; } .pm-eq i:nth-child(4) { animation-delay: -0.15s !important; }
@keyframes pm-eq { from { height: 20%; } to { height: 100%; } }
@media (max-width: 600px) {
  .bgm-player { min-width: 0 !important; width: min(300px, calc(100vw - 5rem)); right: 0.6rem !important; bottom: 0.6rem !important; }
  .bgm-vol-wrap { display: none !important; }
  .bgm-inner { padding: 0.55rem 0.8rem 0.5rem !important; gap: 0.35rem !important; }
}

/* ============================================================
   Characters page：ホログラムカード
   ============================================================ */
.char-icon {
  border-radius: 18px !important; position: relative; overflow: hidden;
  transition: transform 0.5s var(--ease-out), box-shadow 0.4s ease !important;
}
.char-icon::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background:
    linear-gradient(115deg, transparent 20%, rgba(255,255,255,0.65) var(--hp, 45%), transparent calc(var(--hp, 45%) + 18%)),
    conic-gradient(from 90deg at var(--mx, 50%) var(--my, 50%), rgba(255,170,210,0.35), rgba(170,220,255,0.35), rgba(255,240,170,0.35), rgba(210,170,255,0.35), rgba(255,170,210,0.35));
  mix-blend-mode: soft-light; opacity: 0; transition: opacity 0.4s ease;
}
.char-icon:hover::after { opacity: 1; }
.char-icon:hover { box-shadow: 0 20px 44px rgba(180,90,140,0.25), 0 0 0 1px rgba(201,162,39,0.5) !important; }
.char-avatar { transition: transform 0.6s var(--ease-spring) !important; }
.char-icon:hover .char-avatar { transform: scale(1.12) rotate(-4deg); }

.characters-grid { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 1.2rem !important; }
.characters-grid .char-icon { flex: 0 0 172px; padding: 1.6rem 0.9rem 1.3rem !important; background: linear-gradient(170deg, #fff, #fff3f7 70%, #fde9f1) !important; }
.characters-grid .char-avatar { width: 104px !important; height: 104px !important; border-width: 3px !important; box-shadow: 0 0 0 4px #fff, 0 8px 24px rgba(180,90,140,0.18) !important; }
.char-name { word-break: auto-phrase; letter-spacing: 0.06em !important; font-size: 0.86rem !important; }
@media (max-width: 600px) {
  .characters-grid .char-icon { flex: 0 0 calc(50% - 0.6rem); }
  .characters-grid .char-avatar { width: 88px !important; height: 88px !important; }
}

.char-popup { border-radius: 22px !important; overflow-x: hidden !important; overflow-y: auto !important; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; box-shadow: 0 30px 80px rgba(90,33,64,0.3), 0 0 0 1px rgba(201,162,39,0.35) !important; }
/* ポップアップ表示中は背景ページをスクロールさせない */
html:has(.char-popup.show), html:has(.detail-lightbox.open) { overflow: hidden; }
.opening-modal__content, .bgm-consent-dialog { border-radius: 24px !important; }
.bgm-consent-yes, .bgm-consent-no, .opening-modal__btn { border-radius: 999px !important; }

/* ============================================================
   HOME — Hero
   ============================================================ */
.hm-hero {
  background: none !important;
  min-height: 100svh !important;
  justify-content: center !important; gap: clamp(2rem, 5vh, 4rem);
  padding: calc(var(--header-h) + 2rem) 1.5rem 7rem !important;
  isolation: isolate;
}
.hm-hero > * { position: relative; z-index: 2; }
.hm-hero > .hm-hero__bg, .hm-hero > .hm-hero__rays, .hm-hero > .hm-hero__veil, .hm-hero > .hm-hero__sparkles { position: absolute; z-index: 0; }
.hm-hero__bg {
  inset: -4%;
  background: url('../images/background/hero-background-main.webp') center top / cover no-repeat;
  transform: translate3d(var(--px, 0), calc(var(--py, 0px) + var(--sy, 0px)), 0) scale(calc(1.06 + var(--sz, 0)));
  will-change: transform;
  animation: pm-hero-zoom 2.6s var(--ease-out) both;
}
@keyframes pm-hero-zoom { from { filter: blur(14px) brightness(1.3) saturate(0.6); scale: 1.12; } to { filter: none; scale: 1; } }
.hm-hero::before { z-index: 1 !important; background: linear-gradient(to bottom, rgba(40,10,28,0.35) 0%, transparent 28%, transparent 55%, rgba(40,10,28,0.55) 100%) !important; }
.hm-hero__veil { inset: auto 0 0 0; height: 30%; z-index: 1 !important; background: linear-gradient(to bottom, transparent, rgba(255,245,248,0.0) 40%, #fff5f8 100%); }
.hm-hero__rays {
  inset: -30% -10% 20% -10%; z-index: 1 !important; pointer-events: none;
  background: repeating-conic-gradient(from 0deg at 50% 0%, rgba(255,236,190,0.0) 0deg 6deg, rgba(255,236,190,0.16) 8deg, rgba(255,236,190,0.0) 11deg 17deg);
  -webkit-mask: radial-gradient(ellipse 70% 80% at 50% 0%, #000 20%, transparent 70%);
          mask: radial-gradient(ellipse 70% 80% at 50% 0%, #000 20%, transparent 70%);
  mix-blend-mode: screen;
  animation: pm-rays 26s linear infinite, pm-fade-in 3s ease 0.8s both;
}
@keyframes pm-rays { from { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } to { transform: rotate(-6deg); } }
@keyframes pm-fade-in { from { opacity: 0; } to { opacity: 1; } }
.hm-hero__sparkles { inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1 !important; }

.hm-logo-wrap {
  position: relative; display: block; width: min(900px, 86vw); margin: 0 auto;
  transform: translate3d(calc(var(--px, 0px) * -0.6), calc(var(--py, 0px) * -0.6), 0);
  animation: pm-float 7s ease-in-out 2.4s infinite;
}
@keyframes pm-float { 50% { translate: 0 -10px; } }
.hm-logo-wrap .hero-title-logo { width: 100% !important; }
.hm-logo-shine {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.95) 48%, rgba(255,240,200,0.9) 52%, transparent 65%);
  background-size: 300% 100%; background-position: 150% 0;
  -webkit-mask: url('../images/logos/title-logo.webp') center / 100% 100% no-repeat;
          mask: url('../images/logos/title-logo.webp') center / 100% 100% no-repeat;
  mix-blend-mode: overlay;
  animation: pm-logo-shine 6s ease-in-out 2.2s infinite;
}
@keyframes pm-logo-shine { 0% { background-position: 150% 0; } 35%, 100% { background-position: -150% 0; } }

.hm-hero .hero-buttons { gap: 1rem !important; }
.hm-hero .btn-hero {
  background: linear-gradient(rgba(61,26,46,0.42), rgba(61,26,46,0.42)) padding-box, linear-gradient(135deg, rgba(255,233,176,0.9), rgba(255,183,207,0.9)) border-box !important;
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  color: #fff !important; text-shadow: 0 1px 6px rgba(0,0,0,0.35);
  min-width: 210px; text-align: center;
}
.hm-hero .btn-hero.hm-btn-main {
  background: linear-gradient(135deg, #d4567f, var(--rose) 45%, var(--gold) 120%) padding-box, linear-gradient(135deg, #ffe9b0, #fff) border-box !important;
  box-shadow: 0 10px 34px rgba(212,86,127,0.45);
}

.hm-scroll {
  position: absolute !important; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: #fff; font-family: var(--font-heading); font-size: 0.65rem; letter-spacing: 0.4em;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
.hm-scroll:hover { color: #ffe9b0; }
.hm-scroll i { width: 1px; height: 46px; background: rgba(255,255,255,0.35); position: relative; overflow: hidden; }
.hm-scroll i::after { content: ''; position: absolute; left: 0; top: -50%; width: 100%; height: 50%; background: #fff; animation: pm-scroll-line 2s var(--ease-out) infinite; }
@keyframes pm-scroll-line { to { top: 110%; } }

@media (orientation: portrait) and (max-width: 768px) {
  .hm-hero { min-height: calc(115vw + 10.5rem) !important; justify-content: space-between !important; padding-bottom: 2.5rem !important; }
  .hm-hero__bg { background-size: 220% auto; background-position: 64% top; inset: 0; background-color: #1b0d16; }
  .hm-hero::before { background: linear-gradient(to bottom, rgba(20,5,15,0.4) 0%, transparent 18%, transparent 62%, rgba(20,5,15,0.85) 82%, #1b0d16 100%) !important; }
  .hm-hero__veil { display: none; }
  .hm-hero .btn-hero { min-width: 0; flex: 1 1 40%; padding: 0.85rem 1rem !important; letter-spacing: 0.1em !important; font-size: 0.78rem !important; }
  .hm-hero .btn-hero.hm-btn-main { flex-basis: 100%; }
  .hm-scroll { display: none !important; }
}

/* ============================================================
   HOME — Section scaffold
   ============================================================ */
.hm-section { position: relative; padding: clamp(5rem, 10vw, 8rem) 1.5rem; }
.hm-wrap { max-width: 1240px; margin: 0 auto; position: relative; }
.hm-eyebrow {
  display: inline-flex; align-items: center; gap: 0.8rem;
  font-family: var(--font-heading); font-size: 0.72rem; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--rose);
}
.hm-eyebrow::before { content: ''; width: 36px; height: 1px; background: currentColor; }
.hm-h2 {
  font-family: var(--font-body); font-weight: 700;
  font-size: clamp(1.7rem, 3.8vw, 3rem); line-height: 1.35; letter-spacing: 0.06em;
  color: var(--plum); margin: 0.8rem 0 1.2rem;
}
.hm-h2 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold) 40%, var(--rose));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hm-lead { color: var(--text-mid); font-size: clamp(0.92rem, 1.4vw, 1.05rem); line-height: 2.1; max-width: 640px; }
.hm-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.hm-head--center { text-align: center; }
.hm-head--center .hm-lead { margin: 0 auto; }
.hm-head--center .hm-eyebrow::after { content: ''; width: 36px; height: 1px; background: currentColor; }

/* Intro / pillars */
.hm-intro { background: linear-gradient(180deg, #fff5f8 0%, #fffdf7 100%); overflow: hidden; }
.hm-intro::before {
  content: '♪'; position: absolute; right: -2vw; top: 2rem; z-index: 0;
  font-size: clamp(14rem, 32vw, 30rem); line-height: 1; color: rgba(231,121,159,0.06);
  font-family: serif; transform: rotate(12deg);
}
.hm-intro__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.hm-intro__tagline {
  margin-top: 2rem; padding-left: 1.4rem; border-left: 2px solid; border-image: linear-gradient(var(--rose), var(--gold)) 1;
  font-style: italic; color: var(--text-mid); line-height: 2.1; font-size: clamp(0.92rem, 1.4vw, 1.05rem);
}
.hm-pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.hm-pillar {
  position: relative; padding: 2rem 1.8rem 1.8rem; border-radius: 22px;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(201,162,39,0.25);
  box-shadow: 0 10px 40px rgba(180,90,140,0.08);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s ease, background 0.5s ease;
  overflow: hidden; isolation: isolate;
}
.hm-pillar:nth-child(even) { transform: translateY(2.5rem); }
.hm-pillar.pm-reveal:nth-child(even) { transform: translateY(calc(2.5rem + 40px)); }
.hm-pillar.pm-reveal.is-in:nth-child(even) { transform: translateY(2.5rem); }
.hm-pillar:hover { box-shadow: 0 24px 60px rgba(180,90,140,0.18); background: #fff; }
.hm-pillar::before {
  content: attr(data-num); position: absolute; right: 1rem; top: 0.4rem; z-index: -1;
  font-family: var(--font-title); font-size: 4.2rem; font-weight: 900; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(201,162,39,0.35);
  transition: transform 0.6s var(--ease-out), -webkit-text-stroke-color 0.4s;
}
.hm-pillar:hover::before { transform: translateY(-4px) scale(1.08); -webkit-text-stroke-color: rgba(231,121,159,0.6); }
.hm-pillar__icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 1.2rem;
  background: linear-gradient(135deg, #fff, #ffe6ef); border: 1px solid rgba(201,162,39,0.35);
  color: var(--gold-dark); transition: transform 0.6s var(--ease-spring), background 0.4s;
}
.hm-pillar__icon svg { width: 26px; height: 26px; }
.hm-pillar:hover .hm-pillar__icon { transform: rotate(-10deg) scale(1.1); background: linear-gradient(135deg, var(--rose), var(--gold)); color: #fff; }
.hm-pillar h3 { font-size: 1.08rem; color: var(--plum); letter-spacing: 0.08em; margin-bottom: 0.6rem; }
.hm-pillar p { font-size: 0.86rem; color: var(--text-mid); line-height: 1.95; }
.hm-stats { display: flex; gap: clamp(1.5rem, 4vw, 3rem); margin-top: 2.5rem; flex-wrap: wrap; }
.hm-stat b {
  display: block; font-family: var(--font-title); font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-light) 50%, var(--rose));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hm-stat span { font-family: var(--font-heading); font-size: 0.68rem; letter-spacing: 0.3em; color: var(--text-pale); text-transform: uppercase; }
@media (max-width: 900px) {
  .hm-intro__grid { grid-template-columns: 1fr; }
  .hm-pillar:nth-child(even), .hm-pillar.pm-reveal.is-in:nth-child(even) { transform: none; }
  .hm-pillar.pm-reveal:nth-child(even) { transform: translateY(40px); }
}
@media (max-width: 560px) { .hm-pillars { grid-template-columns: 1fr; } }

/* Kingdoms accordion */
.hm-kingdoms { background: linear-gradient(180deg, #fffdf7, #fdeef4 60%, #f7ecfa); }
.hm-kingdoms__list { display: flex; gap: 0.8rem; height: clamp(440px, 62vh, 620px); }
.hm-kingdom {
  --kc: var(--rose);
  position: relative; flex: 1; min-width: 0; border-radius: 26px; overflow: hidden; isolation: isolate;
  cursor: pointer; color: #fff; text-decoration: none;
  transition: flex 0.9s var(--ease-out), box-shadow 0.5s ease, transform 0.5s var(--ease-out);
  box-shadow: 0 14px 40px rgba(60,20,45,0.18);
}
.hm-kingdom.is-active { flex: 3.6; box-shadow: 0 30px 70px rgba(60,20,45,0.3); }
.hm-kingdom img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease-out), filter 0.8s ease; filter: saturate(0.85) brightness(0.9); }
.hm-kingdom.is-active img { transform: scale(1.06); filter: none; }
.hm-kingdom::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, transparent 30%, rgba(30,8,22,0.85) 100%), linear-gradient(0deg, color-mix(in srgb, var(--kc) 35%, transparent), transparent 60%);
}
.hm-kingdom::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  border: 1px solid rgba(255,255,255,0.35); box-shadow: inset 0 0 0 6px rgba(255,255,255,0.0);
  transition: box-shadow 0.6s ease;
}
.hm-kingdom.is-active::after { box-shadow: inset 0 0 0 6px rgba(255,255,255,0.12); }
.hm-kingdom__num {
  position: absolute; top: 1.4rem; left: 1.4rem; font-family: var(--font-title); font-size: 0.9rem; letter-spacing: 0.2em;
  padding: 0.3rem 0.8rem; border-radius: 999px; background: rgba(255,255,255,0.18); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.35);
}
.hm-kingdom__vert {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  writing-mode: vertical-rl; font-size: 1.15rem; font-weight: 700; letter-spacing: 0.3em; white-space: nowrap;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5); transition: opacity 0.4s ease;
}
.hm-kingdom.is-active .hm-kingdom__vert { opacity: 0; }
.hm-kingdom__body {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2rem; max-width: 560px;
  opacity: 0; transform: translateY(24px); transition: opacity 0.5s ease, transform 0.8s var(--ease-out);
  pointer-events: none;
}
.hm-kingdom.is-active .hm-kingdom__body { opacity: 1; transform: none; transition-delay: 0.3s; }
.hm-kingdom__sub { font-family: var(--font-italic); font-style: italic; font-size: 1.05rem; color: color-mix(in srgb, var(--kc) 55%, #fff); letter-spacing: 0.06em; }
.hm-kingdom__name { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; letter-spacing: 0.1em; margin: 0.2rem 0 0.6rem; text-shadow: 0 2px 16px rgba(0,0,0,0.4); }
.hm-kingdom__desc { font-size: 0.9rem; line-height: 1.9; color: rgba(255,255,255,0.9); }
.hm-kingdom__more { display: inline-flex; gap: 0.5rem; align-items: center; margin-top: 1rem; font-family: var(--font-heading); font-size: 0.72rem; letter-spacing: 0.25em; color: #ffe9b0; }
.hm-kingdom--gengaku { --kc: #ff8fb8; } .hm-kingdom--kangaku { --kc: #f2c14e; } .hm-kingdom--dagaku { --kc: #6cc7f0; } .hm-kingdom--kenban { --kc: #b48cf0; }
@media (max-width: 860px) {
  .hm-kingdoms__list { flex-direction: column; height: auto; }
  .hm-kingdom { flex: none !important; height: 120px; transition: height 0.8s var(--ease-out), box-shadow 0.5s ease; }
  .hm-kingdom.is-active { height: 420px; }
  .hm-kingdom__vert { writing-mode: horizontal-tb; left: 1.4rem; bottom: 1.2rem; transform: none; font-size: 1.25rem; }
  .hm-kingdom__num { top: 1rem; left: auto; right: 1rem; }
  .hm-kingdom__body { padding: 1.5rem; }
}

/* Cast showcase */
.hm-cast { background: linear-gradient(180deg, #f7ecfa, #fff5f8); overflow: hidden; }
.hm-cast__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.hm-cast__nav { display: flex; gap: 0.6rem; }
.hm-round-btn {
  width: 54px; height: 54px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(201,162,39,0.5); background: rgba(255,255,255,0.8); color: var(--gold-dark);
  font-size: 1.1rem; display: grid; place-items: center;
  transition: transform 0.4s var(--ease-spring), background 0.3s, color 0.3s;
}
.hm-round-btn:hover { background: linear-gradient(135deg, var(--rose), var(--gold)); color: #fff; transform: scale(1.08); border-color: transparent; }
.hm-cast__track {
  position: relative; overflow: hidden; padding: 1rem 0 3rem;
  cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.hm-cast__track:focus-visible { outline-offset: -4px; }
.hm-cast__track.is-drag { cursor: grabbing; }
.hm-cast__track.is-drag .hm-cast__card { transition: box-shadow 0.5s ease; }
.hm-cast__rail { display: flex; gap: 1.4rem; width: max-content; will-change: transform; }
.hm-cast__card {
  flex: 0 0 clamp(240px, 28vw, 360px);
  position: relative; border-radius: 26px; overflow: hidden; isolation: isolate;
  aspect-ratio: 3 / 4; color: #fff; text-decoration: none;
  box-shadow: 0 18px 48px rgba(90,33,64,0.22);
  transform: perspective(1000px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg));
  transition: transform 0.6s var(--ease-out), box-shadow 0.5s ease;
}
.hm-cast__card:hover { box-shadow: 0 30px 70px rgba(90,33,64,0.32); color: #fff; }
.hm-cast__card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  object-position: var(--pos, 50%) 50%; transition: transform 1.2s var(--ease-out);
  -webkit-user-drag: none; user-select: none;
}
.hm-cast__card:hover img { transform: scale(1.08); }
.hm-cast__card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 45%, rgba(40,10,28,0.88)); }
.hm-cast__card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.7) 45%, transparent 60%);
  background-size: 250% 100%; background-position: 120% 0; transition: background-position 0.9s var(--ease-out);
}
.hm-cast__card:hover::after { background-position: -20% 0; }
.hm-cast__info { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem; }
.hm-cast__role { font-size: 0.72rem; letter-spacing: 0.18em; color: #ffd0e0; display: block; margin-bottom: 0.2rem; }
.hm-cast__name { font-size: 1.35rem; font-weight: 700; letter-spacing: 0.08em; text-shadow: 0 2px 12px rgba(0,0,0,0.45); }
.hm-cast__badge {
  position: absolute; top: 1.2rem; right: 1.2rem; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.1rem; color: var(--plum);
  background: rgba(255,255,255,0.85); backdrop-filter: blur(6px);
  transition: transform 0.6s var(--ease-spring);
}
.hm-cast__card:hover .hm-cast__badge { transform: rotate(360deg) scale(1.1); }
.hm-cast__card--more {
  display: grid; place-items: center; text-align: center; color: var(--plum);
  background: linear-gradient(135deg, #fff, #ffe6ef 60%, #f2e2fb); border: 1px dashed rgba(201,162,39,0.6);
  box-shadow: none;
}
.hm-cast__card--more::before { display: none; }
.hm-cast__card--more:hover { color: var(--gold-dark); }
.hm-cast__more-inner b { display: block; font-family: var(--font-title); font-size: 3rem; line-height: 1; margin-bottom: 0.6rem; background: linear-gradient(135deg, var(--gold), var(--rose)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Explore tiles */
.hm-explore { background: #fff5f8; }
.hm-tiles { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 220px; gap: 1rem; }
.hm-tile {
  position: relative; border-radius: 24px; overflow: hidden; isolation: isolate; color: #fff; text-decoration: none;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem;
  box-shadow: 0 12px 34px rgba(90,33,64,0.15);
}
.hm-tile:nth-child(1) { grid-column: span 3; grid-row: span 2; }
.hm-tile:nth-child(2) { grid-column: span 3; }
.hm-tile:nth-child(3), .hm-tile:nth-child(4) { grid-column: span 3; grid-column: span 3; }
.hm-tile:nth-child(3) { grid-column: 4 / span 3; }
.hm-tile:nth-child(4), .hm-tile:nth-child(5), .hm-tile:nth-child(6) { grid-column: span 2; }
.hm-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease-out), filter 0.6s ease; }
.hm-tile::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(40,10,28,0) 35%, rgba(40,10,28,0.82)); transition: background 0.5s ease; }
.hm-tile:hover img { transform: scale(1.08); }
.hm-tile:hover { color: #fff; }
.hm-tile__en { font-family: var(--font-italic); font-style: italic; font-size: 1rem; color: #ffd0e0; }
.hm-tile__ja { font-size: clamp(1.15rem, 2vw, 1.6rem); font-weight: 700; letter-spacing: 0.12em; }
.hm-tile__sub { font-size: 0.78rem; color: rgba(255,255,255,0.8); letter-spacing: 0.06em; }
.hm-tile__arrow {
  position: absolute; top: 1.2rem; right: 1.2rem; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,0.2); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.4); transition: transform 0.5s var(--ease-spring), background 0.3s;
}
.hm-tile:hover .hm-tile__arrow { transform: rotate(-45deg) scale(1.1); background: linear-gradient(135deg, var(--rose), var(--gold)); border-color: transparent; }
@media (max-width: 900px) {
  .hm-tiles { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; }
  .hm-tile:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .hm-tile:nth-child(1) { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 560px) {
  .hm-tiles { grid-template-columns: 1fr; grid-auto-rows: 170px; }
  .hm-tile:nth-child(n) { grid-column: auto; }
}

/* CTA */
.hm-cta { padding-top: 0; background: #fff5f8; }
.hm-cta__box {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 36px; text-align: center;
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.5rem, 5vw, 4rem);
  background:
    radial-gradient(circle at 20% 20%, rgba(255,183,207,0.45), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(232,201,106,0.35), transparent 45%),
    linear-gradient(135deg, var(--wine), var(--plum));
  color: #fff;
  box-shadow: 0 30px 80px rgba(90,33,64,0.35);
}
.hm-cta__box::before {
  content: ''; position: absolute; inset: -50%; z-index: -1;
  background: conic-gradient(from 0deg, transparent, rgba(255,233,176,0.18), transparent 30%, rgba(255,183,207,0.18), transparent 60%);
  animation: pm-spin 18s linear infinite;
}
@keyframes pm-spin { to { transform: rotate(360deg); } }
.hm-cta__box .hm-eyebrow { color: #ffd0e0; }
.hm-cta__box .hm-eyebrow::after { content: ''; width: 36px; height: 1px; background: currentColor; }
.hm-cta__title { font-size: clamp(1.7rem, 4.4vw, 3.2rem); font-weight: 700; letter-spacing: 0.08em; line-height: 1.4; margin: 1rem 0; }
.hm-cta__title em { font-style: normal; background: linear-gradient(135deg, #ffe9b0, #fff, #ffd0e0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hm-cta__lead { color: rgba(255,255,255,0.82); max-width: 560px; margin: 0 auto 2.2rem; line-height: 2; font-size: 0.95rem; }
.hm-cta__btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hm-cta .btn.hm-btn-ghost { background: linear-gradient(#4f1d39, #4f1d39) padding-box, linear-gradient(135deg, #ffe9b0, #ffb7cf) border-box !important; color: #fff; }
.hm-cta .btn.hm-btn-gold { background: linear-gradient(135deg, #ffe9b0, var(--gold-light) 50%, var(--gold)) padding-box, linear-gradient(135deg, #fff, #ffe9b0) border-box !important; color: var(--plum); }
.hm-cta .btn.hm-btn-gold:hover { color: #fff !important; }
.hm-cta__notes span { position: absolute; color: rgba(255,233,176,0.5); font-size: var(--fs, 2rem); animation: pm-bob var(--d, 6s) ease-in-out infinite alternate; pointer-events: none; z-index: -1; }
@keyframes pm-bob { from { transform: translateY(0) rotate(-10deg); } to { transform: translateY(-24px) rotate(10deg); } }

body.page-top footer { margin-top: 0 !important; }
/* ホームでは旧装飾の固定背景を淡色に */
body.page-top .stars-bg { background: var(--gradient-bg) !important; }

/* ============================================================
   GAME（game.html）— MUSIC WORLD RPG 近日公開ページ
   ============================================================ */
/* ナビ：ゲームに NEW バッジ */
nav ul li a.nav-game { position: relative; }
nav ul li a.nav-game::before {
  content: 'NEW'; position: absolute; top: -7px; right: -4px;
  font-family: var(--font-heading); font-size: 0.5rem; font-weight: 700; letter-spacing: 0.08em;
  padding: 1px 5px; border-radius: 999px; line-height: 1.4;
  color: #fff; background: linear-gradient(135deg, #d4567f, var(--gold));
  box-shadow: 0 2px 8px rgba(212,86,127,0.4);
  animation: gm-badge 2.4s ease-in-out infinite;
}
@keyframes gm-badge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@media (max-width: 1240px) {
  nav ul li a.nav-game::before { position: static; order: 3; margin-left: auto; margin-right: 0.6rem; font-size: 0.6rem; opacity: 1; transform: none; animation: none; }
}

/* Hero */
.gm-hero {
  position: relative; min-height: 100svh; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: calc(var(--header-h) + 2rem) 1.25rem 6rem; color: #fff;
}
.gm-hero__bg {
  position: absolute; inset: -4%; z-index: -3;
  background: url('../images/game/title-bg-wide.webp') center / cover no-repeat;
  animation: gm-ken 40s ease-in-out infinite alternate;
}
@keyframes gm-ken { from { transform: scale(1.02); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
.gm-hero__veil {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(90% 60% at 50% 30%, rgba(255,240,250,0.15), transparent 70%),
    linear-gradient(180deg, rgba(42,20,48,0.25) 0%, transparent 30%, rgba(60,22,52,0.45) 65%, rgba(36,14,40,0.88) 100%);
}
.gm-hero__sparkles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.gm-hero__inner { display: flex; flex-direction: column; align-items: center; gap: clamp(0.6rem, 1.6vh, 1.1rem); max-width: 860px; }
.gm-new {
  font-family: var(--font-heading); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.45em;
  padding: 0.45rem 1rem 0.45rem 1.45rem; border-radius: 999px;
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,233,176,0.7);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #ffe9b0;
  animation: pm-rise 1s var(--ease-out) both;
}
.gm-logo { position: relative; width: min(640px, 86vw); line-height: 0; margin: 0; animation: gm-logo-in 1.6s var(--ease-out) 0.15s both; }
.gm-logo img { width: 100%; height: auto; filter: drop-shadow(0 8px 26px rgba(120,30,80,0.5)); }
.gm-logo__shine {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: overlay;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.95) 48%, rgba(255,240,200,0.9) 52%, transparent 65%);
  background-size: 300% 100%; background-position: 150% 0;
  -webkit-mask: url('../images/game/logo-rpg.webp') center / 100% 100% no-repeat;
          mask: url('../images/game/logo-rpg.webp') center / 100% 100% no-repeat;
  animation: pm-logo-shine 5.5s ease-in-out 1.8s infinite;
}
@keyframes gm-logo-in { from { opacity: 0; transform: translateY(20px) scale(0.94); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
.gm-sub {
  font-weight: 900; font-size: clamp(1.4rem, 4vw, 2.3rem); letter-spacing: 0.16em;
  text-shadow: 0 2px 14px rgba(110,30,80,0.7), 0 0 2px rgba(110,30,80,0.7);
  animation: pm-rise 1.1s var(--ease-out) 0.5s both;
}
.gm-tag {
  font-size: clamp(0.85rem, 1.8vw, 1rem); letter-spacing: 0.24em;
  text-shadow: 0 1px 8px rgba(80,20,60,0.75); animation: pm-rise 1.1s var(--ease-out) 0.7s both;
}
.gm-tag::before, .gm-tag::after { content: '✦'; margin: 0 0.7em; color: #ffe08a; font-size: 0.8em; }
.gm-soon {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.2rem;
  margin-top: 0.6rem; padding: 0.9rem 2.6rem; border-radius: 18px; isolation: isolate; overflow: hidden;
  background: linear-gradient(135deg, rgba(61,26,46,0.7), rgba(90,33,64,0.6));
  border: 1px solid rgba(255,233,176,0.65);
  box-shadow: 0 10px 40px rgba(40,10,30,0.45), inset 0 1px 0 rgba(255,255,255,0.15);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: pm-rise 1.1s var(--ease-out) 0.9s both;
}
.gm-soon::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,233,176,0.35) 50%, transparent 70%);
  transform: translateX(-120%); animation: pm-sheen 3.4s ease-in-out 2s infinite;
}
.gm-soon__en {
  font-family: var(--font-title); font-weight: 900; font-size: clamp(1.5rem, 4.6vw, 2.6rem); letter-spacing: 0.12em; line-height: 1.1;
  background: linear-gradient(180deg, #fff 0%, #ffe9b0 55%, #e8b84a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.gm-soon__ja { font-size: 0.85rem; letter-spacing: 0.5em; padding-left: 0.5em; color: #ffd0e0; }
.gm-hero__btns { display: flex; gap: 0.9rem; flex-wrap: wrap; justify-content: center; margin-top: 0.8rem; animation: pm-rise 1.1s var(--ease-out) 1.1s both; }
.gm-hero .btn-hero {
  background: linear-gradient(rgba(61,26,46,0.45), rgba(61,26,46,0.45)) padding-box, linear-gradient(135deg, rgba(255,233,176,0.9), rgba(255,183,207,0.9)) border-box !important;
  backdrop-filter: blur(12px); color: #fff !important; min-width: 190px;
}
.gm-hero .btn-hero.hm-btn-main {
  background: linear-gradient(135deg, #d4567f, var(--rose) 45%, var(--gold) 120%) padding-box, linear-gradient(135deg, #ffe9b0, #fff) border-box !important;
  box-shadow: 0 10px 34px rgba(212,86,127,0.45);
}
@media (max-aspect-ratio: 1/1) {
  .gm-hero__bg { background-image: url('../images/game/title-bg-tall.webp'); }
}

/* About */
.gm-about { background: linear-gradient(180deg, #fff5f8, #fffdf7); overflow: hidden; }
.gm-about__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.gm-spec { margin-top: 2rem; display: grid; gap: 0; border-top: 1px solid rgba(201,162,39,0.3); }
.gm-spec > div { display: grid; grid-template-columns: 9em 1fr; gap: 1rem; padding: 0.9rem 0.2rem; border-bottom: 1px solid rgba(201,162,39,0.3); }
.gm-spec dt { font-family: var(--font-heading); font-size: 0.78rem; letter-spacing: 0.12em; color: var(--rose); padding-top: 0.15rem; }
.gm-spec dd { color: var(--plum); font-weight: 600; line-height: 1.7; }
.gm-spec dd span { font-weight: 400; font-size: 0.85rem; color: var(--text-mid); }
.gm-about__art { position: relative; aspect-ratio: 1 / 0.92; }
.gm-about__art img {
  position: absolute; width: 74%; border-radius: 20px; border: 4px solid #fff;
  box-shadow: 0 24px 60px rgba(90,33,64,0.25); transition: transform 0.8s var(--ease-out);
}
.gm-about__art img:nth-child(1) { top: 0; left: 0; transform: rotate(-4deg); z-index: 1; }
.gm-about__art img:nth-child(2) { top: 28%; right: 0; transform: rotate(3deg); z-index: 2; }
.gm-about__art img:nth-child(3) { bottom: 0; left: 8%; transform: rotate(-1.5deg); z-index: 3; }
.gm-about__art:hover img:nth-child(1) { transform: rotate(-7deg) translate(-12px, -8px); }
.gm-about__art:hover img:nth-child(2) { transform: rotate(6deg) translate(12px, -6px); }
.gm-about__art:hover img:nth-child(3) { transform: rotate(0deg) translateY(10px); }
@media (max-width: 860px) {
  .gm-about__grid { grid-template-columns: 1fr; }
  .gm-about__art { max-width: 520px; width: 100%; margin: 0 auto; }
}
@media (max-width: 480px) { .gm-spec > div { grid-template-columns: 1fr; gap: 0.2rem; } }

/* Features */
.gm-features { background: linear-gradient(180deg, #fffdf7, #fdeef4); }
.gm-feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.gm-feats .hm-pillar:nth-child(even) { transform: none; }
.gm-feats .hm-pillar.pm-reveal:nth-child(even) { transform: translateY(40px); }
.gm-feats .hm-pillar.pm-reveal.is-in:nth-child(even) { transform: none; }
@media (max-width: 1000px) { .gm-feats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gm-feats { grid-template-columns: 1fr; } }

/* Stages */
.gm-stages { background: linear-gradient(180deg, #fdeef4, #f7ecfa); }
.gm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gm-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 0.15rem;
  padding: 0.75rem 0.9rem; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; isolation: isolate;
  color: #fff; text-decoration: none; box-shadow: 0 12px 32px rgba(90,33,64,0.18);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s ease;
}
.gm-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.1s var(--ease-out), filter 0.6s ease; }
.gm-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(40,10,28,0) 40%, rgba(40,10,28,0.82)); }
.gm-card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.75) 45%, transparent 60%);
  background-size: 250% 100%; background-position: 120% 0; transition: background-position 0.9s var(--ease-out);
}
.gm-card:hover { transform: translateY(-6px); box-shadow: 0 22px 50px rgba(90,33,64,0.3); color: #fff; }
.gm-card:hover img { transform: scale(1.08); }
.gm-card:hover::after { background-position: -20% 0; }
.gm-card__no {
  font-family: var(--font-heading); font-weight: 700;
  font-size: 0.66rem; letter-spacing: 0.24em; color: #ffe9b0;
}
.gm-card__name { font-size: clamp(0.88rem, 1.4vw, 1.02rem); letter-spacing: 0.08em; text-shadow: 0 2px 10px rgba(0,0,0,0.5); line-height: 1.4; }
.gm-card--secret img { filter: blur(10px) brightness(0.7) saturate(1.2); transform: scale(1.15); }
.gm-card--secret:hover img { filter: blur(6px) brightness(0.85) saturate(1.3); transform: scale(1.2); }
.gm-card--secret .gm-card__name { letter-spacing: 0.4em; }
.gm-card__lock {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -70%); font-size: 1.8rem;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5)); animation: gm-badge 2.4s ease-in-out infinite;
}
@media (max-width: 1000px) { .gm-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .gm-grid { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; } .gm-card { border-radius: 14px; padding: 0.55rem 0.65rem; } .gm-card__no { font-size: 0.56rem; } .gm-card__name { font-size: 0.82rem; } }

/* How to play */
.gm-howto { background: #fff5f8; }
.gm-ctrl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.gm-ctrl__box {
  padding: 1.8rem 1.6rem; border-radius: 22px; background: #fff;
  border: 1px solid rgba(201,162,39,0.28); box-shadow: 0 10px 34px rgba(180,90,140,0.08);
}
.gm-ctrl__box h3 { font-family: var(--font-heading); color: var(--gold-dark); letter-spacing: 0.16em; font-size: 0.95rem; margin-bottom: 1rem; }
.gm-ctrl__box ul { list-style: none; display: grid; gap: 0.75rem; }
.gm-ctrl__box li { display: flex; align-items: center; flex-wrap: wrap; gap: 0.35rem; font-size: 0.86rem; color: var(--text-mid); line-height: 1.6; }
.gm-ctrl__box li span { margin-left: 0.4rem; }
.gm-ctrl kbd {
  font-family: var(--font-heading); font-size: 0.72rem; font-weight: 700; color: var(--plum);
  min-width: 2em; padding: 0.25rem 0.55rem; border-radius: 8px; text-align: center;
  background: linear-gradient(180deg, #fff, #fbe9f0); border: 1px solid rgba(201,162,39,0.45);
  box-shadow: 0 2px 0 rgba(201,162,39,0.45);
}
@media (max-width: 900px) { .gm-ctrl { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }

/* Coming soon toast（ステージカードを押したとき） */
.gm-toast {
  position: fixed; left: 50%; bottom: 7rem; z-index: 4000; transform: translate(-50%, 20px);
  padding: 0.8rem 1.5rem; border-radius: 999px; color: #fff; font-size: 0.9rem; letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--wine), var(--plum)); border: 1px solid rgba(255,233,176,0.6);
  box-shadow: 0 14px 40px rgba(60,20,45,0.35); opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease, transform 0.5s var(--ease-spring);
}
.gm-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* トップページ：ゲーム告知バナー */
.hm-game { padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: 0; background: #fff5f8; }
.hm-game__box {
  position: relative; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 2rem;
  border-radius: 32px; overflow: hidden; isolation: isolate; color: #fff; text-decoration: none;
  padding: clamp(2rem, 5vw, 3.5rem); min-height: 340px;
  box-shadow: 0 30px 80px rgba(90,33,64,0.3);
}
.hm-game__box:hover { color: #fff; }
.hm-game__bg { position: absolute; inset: 0; z-index: -2; background: url('../images/game/title-bg-wide.webp') center / cover no-repeat; transition: transform 1.4s var(--ease-out); }
.hm-game__box:hover .hm-game__bg { transform: scale(1.05); }
.hm-game__box::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(42,16,40,0.85) 0%, rgba(60,22,52,0.55) 50%, rgba(60,22,52,0.1) 100%); }
.hm-game__logo { width: min(420px, 100%); height: auto; filter: drop-shadow(0 6px 20px rgba(80,20,60,0.5)); }
.hm-game__text .gm-new { display: inline-block; margin-bottom: 1rem; animation: none; }
.hm-game__title { font-size: clamp(1.4rem, 3.2vw, 2.2rem); font-weight: 900; letter-spacing: 0.12em; margin: 0.6rem 0 0.4rem; text-shadow: 0 2px 12px rgba(0,0,0,0.4); }
.hm-game__soon { font-family: var(--font-title); font-weight: 900; letter-spacing: 0.12em; font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  background: linear-gradient(180deg, #fff, #ffe9b0 55%, #e8b84a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hm-game__more { display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 1.4rem; font-family: var(--font-heading); letter-spacing: 0.2em; font-size: 0.78rem; color: #ffe9b0; }
.hm-game__more i { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-style: normal; background: linear-gradient(135deg, var(--rose), var(--gold)); color: #fff; transition: transform 0.5s var(--ease-spring); }
.hm-game__box:hover .hm-game__more i { transform: translateX(6px) rotate(-10deg); }
@media (max-width: 760px) {
  .hm-game__box { grid-template-columns: 1fr; text-align: center; min-height: 0; }
  .hm-game__box::before { background: linear-gradient(180deg, rgba(42,16,40,0.35), rgba(42,16,40,0.85)); }
  .hm-game__logo { margin: 0 auto; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .fade-in, .pm-reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
  .pm-stardust, .hm-hero__sparkles, .pm-curtain { display: none !important; }
}

/* ▶ 体験版をあそぶ（2026-11-13） */
.gm-play{display:inline-flex;flex-direction:column;align-items:center;gap:.15em;margin:1.4rem auto 0;padding:1rem 2.6rem;border-radius:999px;text-decoration:none;color:#fff;
  background:linear-gradient(180deg,#ff8ac4,#d4568f);box-shadow:0 6px 26px rgba(255,120,190,.55),inset 0 1px 0 rgba(255,255,255,.45);font-weight:800;font-size:1.25rem;letter-spacing:.08em;transition:transform .15s,box-shadow .15s}
.gm-play:hover{transform:translateY(-2px) scale(1.03);box-shadow:0 10px 34px rgba(255,120,190,.7)}
.gm-play__main{display:inline-flex;align-items:center;gap:.4em}.gm-play__icon{font-size:.85em}
.gm-play small{font-size:.72rem;font-weight:600;letter-spacing:.04em;opacity:.92}
.gm-hero__inner .gm-play{display:flex;width:max-content;max-width:calc(100vw - 32px)}
