/* 30周年オープニング（top-b のみ・初回のみ）2026-11-26
   html.mm-splash-on のときだけ表示。本体ページはその下で通常どおり描画される。 */
.mm-splash { display: none; }
.mm-splash-on .mm-splash {
  --mm-ink: #0b1020; --mm-g: linear-gradient(120deg, #4f46e5, #8b5cf6 55%, #06b6d4);
  position: fixed; inset: 0; z-index: 2147483000;
  display: grid; place-content: center; justify-items: center; gap: 14px;
  background: #fff; font-family: "Inter", system-ui, "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
  animation: mm-splash-out .6s ease 2.3s forwards;
}
.mm-splash.is-done { animation: mm-splash-out .3s ease forwards !important; }
@keyframes mm-splash-out { to { opacity: 0; visibility: hidden; transform: scale(1.04); } }
.mm-splash__mark { display: flex; align-items: flex-start; line-height: .85; }
.mm-splash__num { display: flex; font-weight: 900; font-size: clamp(120px, 28vw, 300px); letter-spacing: -.06em; padding-right: .08em; background: var(--mm-g); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mm-splash__num span { display: inline-block; transform: translateY(40%); opacity: 0; animation: mm-splash-up .7s cubic-bezier(.2, .8, .2, 1) forwards; }
.mm-splash__num .d0 { animation-delay: .12s; }
.mm-splash__th { font-weight: 800; font-size: clamp(36px, 7vw, 76px); color: var(--mm-ink); margin-left: 6px; opacity: 0; animation: mm-splash-up .5s ease .45s forwards; }
@keyframes mm-splash-up { to { transform: none; opacity: 1; } }
.mm-splash__years { margin: 0; display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: .12em; color: #4a5268; opacity: 0; animation: mm-splash-fade .5s ease .8s forwards; }
.mm-splash__years i { display: block; width: 0; height: 2px; background: var(--mm-g); animation: mm-splash-line .9s cubic-bezier(.6, 0, .2, 1) .9s forwards; }
@keyframes mm-splash-line { to { width: min(40vw, 240px); } }
.mm-splash__name { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .2em; color: #8b93a7; opacity: 0; animation: mm-splash-fade .5s ease 1.2s forwards; }
@keyframes mm-splash-fade { to { opacity: 1; } }
.mm-splash__skip { position: fixed; right: 20px; bottom: 20px; border: 1px solid #eceef4; background: #fff; color: #333; border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 13px; cursor: pointer; }
.mm-splash__skip:focus-visible { outline: 3px solid #8b5cf6; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .mm-splash-on .mm-splash { display: none; } }

/* 2026-11-26: hold every splash animation until the web fonts are ready (.is-ready set by splash.js) */
.mm-splash:not(.is-ready), .mm-splash:not(.is-ready) * { animation-play-state: paused !important; }

/* 2026-11-26: iPhone Safari fix — background-clip:text on the parent hides animated child spans.
   The gradient is painted on each digit instead (each digit shows its half of the same gradient). */
.mm-splash__num { background: none !important; -webkit-background-clip: border-box !important; background-clip: border-box !important; color: #6323bc; }
.mm-splash__num span { background: var(--mm-g); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.mm-splash__num .d3 { background-position: 0 0; }
.mm-splash__num .d0 { background-position: 100% 0; }

/* glyph right edge was clipped by negative letter-spacing: give each digit room for its gradient */
.mm-splash__num span { padding-right: .1em; margin-right: -.1em; letter-spacing: 0; }
.mm-splash__num { letter-spacing: -.04em; padding-right: .14em; }
.mm-splash__num span { padding-left: .08em; margin-left: -.08em; }
.mm-splash__num { padding-left: .1em; }

/* 2026-11-26: "th" sits on the baseline of 30 (bottom), not raised */
.mm-splash__mark { align-items: baseline !important; }
.mm-splash__th { margin-left: 4px; }

/* 2026-11-26: splash for every browser
   1) "reduce motion" users (Windows: animations off / iPhone: reduce motion) now see a STATIC splash that fades out (was hidden).
   2) Fail-safe: if splash.js never runs (blocked / error), the white splash disappears after 3s instead of covering the page. */
@keyframes mm-splash-failsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.mm-splash-on .mm-splash:not(.is-ready) { animation: mm-splash-failsafe .3s ease 3s forwards !important; animation-play-state: running !important; }

/* 2026-11-26: full splash animation for everyone, including "reduce motion" settings (user decision) */
@media (prefers-reduced-motion: reduce) { .mm-splash-on .mm-splash { display: grid !important; } }
