/* Only the existing cocktail-photo area changes. Its dimensions/transform stay in styles.css. */
/* Let vertical gestures reach the page at either edge of this optional inner scroller. */
.hero__photo.is-special > picture { filter: brightness(.22); }
.hero__photo [data-publishing-slot="featured"] { position: absolute; inset: 0; }
.featured-event { display: grid; grid-template-rows: minmax(160px,1fr) auto; align-items: center; gap: 12px; width: 100%; height: 100%; padding: 18px var(--page-gutter) max(80px,calc(env(safe-area-inset-bottom) + 64px)); overflow-y: auto; overscroll-behavior-y: auto; color: #fff; background: linear-gradient(135deg,rgb(0 0 0 / 30%),rgb(0 0 0 / 65%)); }
.featured-event__flyer { display: grid; grid-template: minmax(0,1fr) / minmax(0,1fr); place-items: center; min-width: 0; min-height: 0; width: 100%; height: 100%; justify-self: center; }
.hero__photo .featured-event__image { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; aspect-ratio: 4 / 5; object-fit: contain; object-position: center; }
.featured-event__info { min-width: 0; width: 100%; text-align: center; }
.featured-event__label { margin: 0 0 6px; font-size: 12px; letter-spacing: .12em; }
.featured-event h2 { margin: 0 0 8px; font-size: clamp(20px,5vw,34px); line-height: 1.2; overflow-wrap: anywhere; }
.featured-event__date { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; margin: 0 0 8px; font-size: 14px; line-height: 1.5; }
.featured-event__djs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; margin: 0 0 12px; padding: 0; list-style: none; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.featured-event__djs a { text-decoration: none; }
.featured-event__more { display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 44px; padding: 8px 16px; border: 1px solid rgb(255 255 255 / 70%); font-size: 13px; font-weight: 800; text-decoration: none; }
.featured-event a { color: #fff; }
.featured-event a:hover { text-decoration: underline; text-underline-offset: 4px; }
.featured-event a:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }
@media (max-width: 767px) {
 /* Alpha over black matches brightness(.22) without filtering a viewport-sized image. */
 .hero__photo.is-special { background: #000; }
 .hero__photo.is-special > picture { filter: none; opacity: .22; }
 /* Avoid a nested touch scroller unless the content actually needs one. */
 .hero--animated .featured-event { overflow-y: visible; }
 .hero--animated .featured-event.is-overflowing { overflow-y: auto; }
}
@media (min-width: 768px) {
 .featured-event { grid-template-columns: minmax(0,1fr) minmax(0,1fr); grid-template-rows: minmax(0,1fr); gap: clamp(24px,4vw,64px); padding-block: 32px max(80px,calc(env(safe-area-inset-bottom) + 64px)); }
 .featured-event__info { max-width: 620px; text-align: left; }
 .featured-event__date,.featured-event__djs { justify-content: flex-start; }
 .featured-event h2 { font-size: clamp(26px,3vw,46px); }
 .featured-event__djs { font-size: 16px; }
}
/* SPECIAL EVENT video: full-bleed across the whole SPECIAL EVENT area (edge to edge), behind the text.
   The flyer image stays in flow (visibility only), so the grid, spacing, text position and scroll
   motion are exactly those of the image version; only the visual layer changes. */
.featured-event.is-video-active { position: relative; isolation: isolate; }
.featured-event__video { position: absolute; z-index: -2; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--featured-video-position, 50% 50%); background: #000; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .4s ease, visibility 0s linear .4s; }
.featured-event.is-video-active .featured-event__video { opacity: 1; visibility: visible; transition: opacity .4s ease, visibility 0s; }
/* While loading without a chosen poster, the video box shows plain black (never the event image) until the first frame. */
.featured-event.is-video-active .featured-event__image { visibility: hidden; }
/* Keeps the white text readable on any footage (same tone as the image version, plus a soft text-side shade). */
.featured-event.is-video-active::before { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: var(--featured-video-overlay, linear-gradient(180deg, rgb(0 0 0 / 0%) 35%, rgb(0 0 0 / 60%) 100%), linear-gradient(135deg, rgb(0 0 0 / 15%), rgb(0 0 0 / 40%))); }
.featured-event__video::-webkit-media-controls { display: none !important; }
.featured-event__video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
@media (min-width: 768px) {
 .featured-event.is-video-active::before { background: var(--featured-video-overlay, linear-gradient(90deg, rgb(0 0 0 / 0%) 35%, rgb(0 0 0 / 60%) 100%), linear-gradient(135deg, rgb(0 0 0 / 15%), rgb(0 0 0 / 40%))); }
}
@media (prefers-reduced-motion: reduce) { .featured-event__video { transition: none; } }
/* SPECIAL EVENT 動画のみ掲載: no event text. It starts as a black screen while the video loads (an optional poster
   shows instead when set) and the footage fades in when it plays. If the video cannot play here (no source for this
   width, error, reduced motion, Save-Data, autoplay blocked, no JavaScript) the item is hidden and the normal TOP photo shows. */
.featured-event--video-only { position: relative; isolation: isolate; display: block; padding: 0; overflow: hidden; background: #000; }
.featured-event--video-only.is-video-unavailable, .featured-event--video-only.is-video-blocked { visibility: hidden; }
@media (scripting: none) { .featured-event--video-only { display: none; } }
.hero--animated .featured-event--video-only { overflow: hidden; }
.featured-event--video-only .featured-event__flyer { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.featured-event--video-only .featured-event__video { background: #000; }
.featured-event--video-only:not(.has-poster):not(.is-video-playing) .featured-event__video { opacity: 0; }
.featured-event--video-only.is-video-active::before { content: none; }
.featured-event--video-only a.featured-event__flyer:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
