/* プレビュー共通: 切り替えスイッチ・ヒーローの初期状態・スクロールで出てくる動き */
.mx-switch { position: fixed; left: 50%; bottom: 16px; translate: -50% 0; z-index: 100; display: flex; gap: 2px; padding: 4px;
  max-width: calc(100vw - 24px); overflow-x: auto; scrollbar-width: none;
  border-radius: 999px; background: rgba(10,15,28,.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px -8px rgba(0,0,0,.45); font: 600 13px/1 system-ui, -apple-system, "Hiragino Sans", sans-serif; }
.mx-switch::-webkit-scrollbar { display: none; }
.mx-switch button { flex: none; border: 0; border-radius: 999px; padding: 10px 14px; background: transparent; color: rgba(255,255,255,.7); font: inherit; cursor: pointer; white-space: nowrap; }
.mx-switch button:hover { color: #fff; }
.mx-switch button[aria-pressed="true"] { background: #fff; color: #0a0f1c; }

.mx-hero, .mx-marquee { display: none; }

@keyframes mx-eq { from { transform: scaleY(.15); } to { transform: scaleY(1); } }
@keyframes mx-pulse { 70% { box-shadow: 0 0 0 10px rgba(255,74,61,0); } 100% { box-shadow: 0 0 0 0 rgba(255,74,61,0); } }

:is(.m, .ed, .pop, .soft, .night) .mx-reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
:is(.m, .ed, .pop, .soft, .night) .mx-reveal.mx-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html:not(.classic) *, html:not(.classic) *::before, html:not(.classic) *::after { animation: none !important; transition: none !important; }
  .mx-reveal { opacity: 1 !important; transform: none !important; }
}

/* 周波数の「MHz」(2026-11-11 すべての周波数に MHz を付ける) */
.mx-bigfreq small { font-size: .28em; letter-spacing: 0; margin-left: .08em; }
.ed .mx-bigfreq small { font-size: inherit; letter-spacing: inherit; margin-left: 0; }
.pop .mx-bigfreq small { display: block; font-size: .32em; margin: 0; text-align: center; }
/* エディトリアルはスマホで3列に並ぶので、MHz まで入るよう文字を小さめにする */
@media (max-width: 600px) { html.ed .mx-freqs span b { font-size: clamp(1rem, 5vw, 1.6rem); } }
/* エディトリアルの小さいスマホ(〜360px): 見出しを1行6字に収め、右上の「VOL. 77.9MHz」は左の文字と重なるので出さない */
@media (max-width: 360px) { html.ed .mx-title { font-size: 12.5vw; } html.ed .mx-bigfreq { display: none; } }
/* やわらか・ナイトも小さいスマホで見出しが「良い音楽 / を、」と割れるので、1行6字に収める */
@media (max-width: 360px) { html.soft .mx-title, html.night .mx-title { font-size: 10.5vw; } }
