/* トップ MV：WINTERフェア2026 バナー（元の .mainvisual は動画用に高さ固定・クリック無効なので、--banner で上書きする） */
.mainvisual.mainvisual--banner {
  height: auto;
  overflow: hidden;
  pointer-events: auto;
}
.mainvisual--banner .mainvisual-image a {
  display: block;
}
@media screen and (max-width: 768px) {
  .mainvisual.mainvisual--banner {
    height: auto;
  }
}

/* ---- WINTERフェア MV（v6：表示速度の最適化） ---- */
.mainvisual--banner .wmv-link { display: block; outline: none; }
.wmv { position: relative; width: 100%; overflow: hidden; contain: layout paint; container-type: inline-size; transition: transform .15s ease; }
.wmv--sp { display: none; }
.wmv-pcwrap { position: relative; overflow: hidden; }
.wmv-pcwrap picture { display: contents; }
/* 右上の帯：MV の右上に付ける別の部品。大きさは MV と同じ倍率（画面幅に比例）。一条の .mainvisual-image img { width: 100% } に勝つよう詳細度を上げる */
.wmv-pcwrap { container-type: inline-size; }
.mainvisual--banner .wmv-pcwrap img.wmv-band { position: absolute; top: 0; right: 0; left: auto; height: auto; max-width: none; display: block; pointer-events: none;
  width: calc(100cqw * var(--w) / 1440); }
@media screen and (max-width: 768px) {
  .wmv-pcwrap { display: none; }
  .wmv--sp { display: block; }
}
/* 位置と幅は整数の単位（--x/--y/--w、ステージ幅 --W 分割）。表示時の px はステージ幅に比例 */
.wmv .wmv-p { position: absolute; height: auto; max-width: none; display: block; pointer-events: none; user-select: none;
  left: calc(100cqw * var(--x) / var(--W)); top: calc(100cqw * var(--y) / var(--W)); width: calc(100cqw * var(--w) / var(--W)); }
.wmv picture { display: contents; }
.wmv .wmv-bg { position: relative; }
.wmv-hl { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; transition: opacity .35s ease; }
/* ホバーでレイヤーが切り替わると、MV の最下行（高さが小数）に下の地の青緑が透けて線に見える。地の下端（雪の地面の下で見えない所）を切り、後ろに雪の色を敷く（2026-11-18 ko） */
.wmv { background-color: #e4f0f7; }
.wmv .wmv-bg { clip-path: inset(0 0 3% 0); }
/* 結晶：ゆっくり揺れて少し回る */
.wmv-fl { animation: wmv-fl var(--t, 12s) ease-in-out var(--d, 0s) infinite alternate; }
@keyframes wmv-fl {
  from { transform: translate3d(0, calc(100cqw * -3 / var(--W)), 0) rotate(calc(var(--r, 6deg) * -1)); }
  to   { transform: translate3d(0, calc(100cqw * 3 / var(--W)), 0) rotate(var(--r, 6deg)); }
}
/* オーナメント：ひもの上（ステージの上端）を支点に。開いたら上から降りて、少し跳ねて揺れながら止まる（動きは JS・transform だけ） */
.wmv-orn { transform-origin: 50% 0; }
.wmv-drop .wmv-orn { transform: translate3d(0, -110%, 0); }
/* ✦：ときどきキラッ */
.wmv-spk { animation: wmv-spk var(--t, 6s) ease-in-out var(--d, 0s) infinite; opacity: .55; }
@keyframes wmv-spk {
  0%, 62%, 100% { transform: scale(.72) rotate(0deg); opacity: .55; }
  76% { transform: scale(1.18) rotate(18deg); opacity: 1; }
}
/* 画面外では止める */
.wmv-off .wmv-fl, .wmv-off .wmv-spk, .wmv-off .wmv-btn-arrow { animation-play-state: paused; }

/* 「詳しくはこちら」（PC）：ホバー／フォーカスで 赤に・少し大きく・光が横切る・▶ が右へ（transform と opacity だけ） */
.wmv-btn { position: absolute; display: block; pointer-events: none; transition: transform .45s cubic-bezier(.2, .8, .2, 1.2);
  left: calc(100cqw * var(--x) / var(--W)); top: calc(100cqw * var(--y) / var(--W));
  width: calc(100cqw * var(--w) / var(--W)); height: calc(100cqw * var(--h) / var(--W));
  transform-origin: calc(100cqw * var(--ox) / var(--W)) calc(100cqw * var(--oy) / var(--W)); }
.wmv-btn-red { opacity: 0; transition: opacity .3s ease; }
.wmv-btn-shine { position: absolute; inset: 0; overflow: hidden;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.wmv-btn-shine::before { content: ""; position: absolute; top: -10%; bottom: -10%; left: 0; width: 40%;
  background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.55) 50%, rgba(255,255,255,0) 100%);
  transform: translateX(-150%) skewX(-18deg); opacity: 0; }
.wmv-btn-arrow { transition: transform .3s ease; }
.wmv-link:focus-visible .wmv-btn { transform: scale(calc(107 / 100)); }
@media (hover: hover) { .wmv-link:hover .wmv-btn { transform: scale(calc(107 / 100)); } }   /* タッチではタップ後にホバーが残り赤のままになるので、マウスの時だけ（2026-11-19 ko） */
.wmv-link:focus-visible .wmv-btn-red { opacity: 1; }
@media (hover: hover) { .wmv-link:hover .wmv-btn-red { opacity: 1; } }   /* タッチではタップ後にホバーが残り赤のままになるので、マウスの時だけ（2026-11-19 ko） */
.wmv-link:focus-visible .wmv-btn-shine::before { animation: wmv-shine .9s ease-out .05s 1 both; }
@media (hover: hover) { .wmv-link:hover .wmv-btn-shine::before { animation: wmv-shine .9s ease-out .05s 1 both; } }   /* タッチではタップ後にホバーが残り赤のままになるので、マウスの時だけ（2026-11-19 ko） */
@keyframes wmv-shine {
  0% { transform: translateX(-150%) skewX(-18deg); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translateX(330%) skewX(-18deg); opacity: 0; }
}
.wmv-link:focus-visible .wmv-btn-arrow { animation: wmv-arrow .9s ease-in-out .1s infinite; }
@media (hover: hover) { .wmv-link:hover .wmv-btn-arrow { animation: wmv-arrow .9s ease-in-out .1s infinite; } }   /* タッチではタップ後にホバーが残り赤のままになるので、マウスの時だけ（2026-11-19 ko） */
@keyframes wmv-arrow { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(calc(100cqw * 7 / var(--W))); } }
.wmv-link:focus-visible .wmv-hl { opacity: .05; }
@media (hover: hover) { .wmv-link:hover .wmv-hl { opacity: .05; } }   /* タッチではタップ後にホバーが残り赤のままになるので、マウスの時だけ（2026-11-19 ko） */
.wmv-link:focus-visible .wmv { box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 6px rgb(216, 53, 31); }
/* タッチ：押した瞬間だけ少し沈む */
.wmv-link:active .wmv { transform: translateY(2px); }
.wmv-link:active .wmv-hl { background: #000; opacity: .06; transition: none; }

/* 注釈（C 案）：特典ごとに番号でつなぐ。PC は特典の3列（左端 218・661・970／1440）の下、SP は ※1→※2 の順。数値は整数 */
.wmv-mark { position: absolute; left: calc(100cqw * var(--x) / var(--W)); top: calc(100cqw * var(--y) / var(--W));
  font-family: YakuHanJP, "Noto Sans JP", sans-serif; font-size: 12px; line-height: 12px; font-weight: 700; letter-spacing: 0; color: #009c99; pointer-events: none; }
.wmv--sp .wmv-mark { font-size: 10px; line-height: 10px; }
.wmv-notes { margin: 0; background: #e4f0f7 url(/img/mv_winter_2026/notes_snow.webp) repeat 0 0 / 512px 160px; color: #3e3f3f;
  font-family: YakuHanJP, "Noto Sans JP", sans-serif; font-size: 12px; line-height: 18px; letter-spacing: 0; font-weight: 400; text-align: left; }
/* 流し込み：特典の並び（左端 218・右端 1233／1440）の幅で続けて並べる。枠は MV と同じく画面幅いっぱい */
.wmv-notes-box { container-type: inline-size; }
.wmv-notes-in { margin: 0; padding: 4px calc(100cqw * 207 / 1440) 24px calc(100cqw * 218 / 1440); word-break: auto-phrase; text-wrap: pretty; }   /* 上は MV の下の雪の地がそのまま余白になるので詰める（2026-11-18 ko） */
/* ホバー時に MV に重ねる白（.wmv-hl）を注釈にも重ねる。重ねないと境目が線に見える（2026-11-18 ko） */
.wmv-notes { position: relative; }
.wmv-notes::after { content: ""; position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.wmv-link:focus-visible + .wmv-notes::after { opacity: .05; }
@media (hover: hover) { .wmv-link:hover + .wmv-notes::after { opacity: .05; } }   /* タッチではタップ後にホバーが残り赤のままになるので、マウスの時だけ（2026-11-19 ko） */
.wmv-link:active + .wmv-notes::after { background: #000; opacity: .06; transition: none; }
.wmv-note { margin-right: 12px; }
.wmv-note:last-child { margin-right: 0; }
.wmv-notes-n { font-weight: 700; color: #009c99; margin-right: 4px; }
@media screen and (max-width: 768px) {
  .wmv-notes { font-size: 10px; line-height: 15px; background-size: 256px 80px; }
  .wmv-notes-in { padding: 8px 12px 16px; }   /* 上を詰める（2026-11-18 ko） */
  .wmv-note { margin-right: 10px; }
  .wmv-notes-n { margin-right: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  .wmv-fl, .wmv-spk { animation: none; }
  .wmv-drop .wmv-orn { transform: none; }
  .wmv-spk { opacity: 1; transform: none; }
  .wmv-btn, .wmv-btn-arrow, .wmv, .wmv-hl, .wmv-notes::after { transition: none; }
  .wmv-link:hover .wmv-btn, .wmv-link:focus-visible .wmv-btn { transform: none; }
  .wmv-link:hover .wmv-btn-shine::before, .wmv-link:focus-visible .wmv-btn-shine::before,
  .wmv-link:hover .wmv-btn-arrow, .wmv-link:focus-visible .wmv-btn-arrow { animation: none; }
  .wmv-link:active .wmv { transform: none; }
}
