/* 制作実績のカードの動画（音なし・見えている間だけ再生）。.work img と同じ見た目にそろえる */
.work video { display: block; width: 100%; height: auto; object-fit: cover; border-radius: 16px; background: var(--line); box-shadow: 0 0 0 1px rgb(14 17 22 / .06); }
.works-rail.is-h .work video { aspect-ratio: 16 / 9; }
.works-rail.is-v .work video { aspect-ratio: 9 / 16; }
@media (max-width: 640px) { .work video { border-radius: 12px; } }

/* タップで大きく見られる動画 */
.mv-zoomable { cursor: zoom-in; -webkit-tap-highlight-color: transparent; }
.mv-zoomable:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
.mv-badge { position: absolute; z-index: 4; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgb(14 17 22 / .62); color: #fff; font-size: 17px; pointer-events: none; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); box-shadow: 0 0 0 1px rgb(255 255 255 / .18); }

/* 全画面の黒い面 */
.mv-lb { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; height: 100vh; height: 100dvh; padding: calc(env(safe-area-inset-top, 0px) + 64px) env(safe-area-inset-right, 0px) calc(env(safe-area-inset-bottom, 0px) + 20px) env(safe-area-inset-left, 0px); background: #000; overscroll-behavior: contain; }
.mv-lb[hidden] { display: none; }
.mv-lb-stage { width: 100%; height: 100%; display: grid; place-items: center; }
.mv-lb-stage video { display: block; width: 100%; height: 100%; max-height: 100%; object-fit: contain; background: #000; }
.mv-lb-close { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 12px); right: calc(env(safe-area-inset-right, 0px) + 14px); z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .16); color: #fff; font-size: 22px; cursor: pointer; }
.mv-lb-close:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) { .mv-lb:not([hidden]) { animation: mvFade 260ms ease-out; } }
@keyframes mvFade { from { opacity: 0; } to { opacity: 1; } }
