.event-detail-page { color: #1a1a1a; background: #fff; }
.event-detail-page [hidden] { display: none !important; }
.event-detail-page__header { position: relative; height: 100px; }
.event-detail { width: min(100% - 2 * var(--page-gutter), 1160px); margin-inline: auto; padding-bottom: max(112px, calc(env(safe-area-inset-bottom) + 96px)); }
.event-detail__back { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; margin-bottom: 12px; color: inherit; font-size: 14px; line-height: 1.5; text-decoration: none; }
.event-detail__back > span { font-size: 27px; line-height: 1; }
.event-detail__back:hover { text-decoration: underline; text-underline-offset: 4px; }
.event-detail__heading time { display: block; font-size: 14px; line-height: 1.5; }
.event-detail__heading h1 { margin: 8px 0 22px; font-size: clamp(28px,8vw,36px); font-weight: 700; line-height: 1.15; letter-spacing: -.03em; overflow-wrap: anywhere; }
.event-detail__status { font-size: 14px; line-height: 1.7; color: #777; }
.event-gallery { position: relative; min-width: 0; margin-bottom: 28px; }
.event-gallery__track { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 12px; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.event-gallery__track::-webkit-scrollbar { display: none; }
.event-gallery__track--multiple { grid-auto-columns: calc(100% - 28px); cursor: grab; }
.event-gallery__track--dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.event-gallery__slide { position: relative; min-width: 0; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 28px; background: #d9d9d9; scroll-snap-align: start; }
.event-gallery__slide img { display: block; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
.event-gallery__controls { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 12px; font-size: 12px; }
.event-gallery__controls button { min-width: 44px; min-height: 44px; border: 1px solid #aaa; background: #fff; color: #1a1a1a; font: inherit; font-size: 20px; cursor: pointer; }
.event-gallery__controls [data-gallery-index] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.event-gallery__controls button:disabled { opacity: .35; cursor: default; }
.event-detail__section-title { margin: 0 0 14px; font-size: clamp(17px,4.8vw,23px); font-weight: 400; line-height: 1.3; }
.event-information { margin: 0; border-top: 1px solid #aaa; }
.event-information > div { display: grid; grid-template-columns: 40% minmax(0,1fr); gap: 8px; padding-block: 17px; border-bottom: 1px solid #aaa; }
.event-information > div > dt { font-size: 14px; line-height: 1.6; }
.event-information > div > dd { min-width: 0; margin: 0; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.event-information__djs { margin: 0; padding: 0; list-style: none; }
.event-information__djs li + li { margin-top: 3px; }
.event-information__djs a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.event-information__prices { margin: 0; }
.event-information__prices > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 8px; }
.event-information__prices dd { margin: 0; }
.event-information__price-note { margin: 10px 0 0; font-size: 12px; line-height: 1.6; color: #777; }
.event-vip { margin-top: 32px; }
.event-vip .event-detail__section-title { font-size: 16px; }
.event-detail__cta { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 60px; padding: 14px 10px; border: 1px solid #202020; background: #202020; color: #fff; font-size: 14px; line-height: 1.5; text-align: center; text-decoration: none; }
.event-detail__cta:hover { background: #444; }
.event-detail__cta--back { margin-top: 22px; background: #fff; color: #1a1a1a; }
.event-detail__cta--back:hover { background: #eee; }
.event-detail :is(a,button,[tabindex]):focus-visible { outline: 2px solid #1a1a1a; outline-offset: 3px; }
.event-gallery__track:focus-visible { outline-offset: -3px; }
@media(min-width:1024px) {
 .event-detail-page__header { height: 144px; }
 .event-detail__heading h1 { margin-bottom: 32px; font-size: 42px; }
 .event-detail__layout { display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); gap: 56px; align-items: start; }
 /* The gallery spans both columns. Slide widths still match the original left column. */
 .event-gallery { grid-column: 1 / -1; grid-row: 1; z-index: 0; margin: 0; }
 .event-gallery__track--multiple {
  grid-template-columns: repeat(var(--event-slide-count), calc(47.5% - 54.6px)) calc(52.5% + 42.6px);
  grid-auto-columns: auto;
 }
 /* The empty trailing column lets the final photograph reach the left position. */
 .event-gallery__track--multiple::after { content: ""; }
 .event-detail__information { grid-column: 2; grid-row: 1; position: relative; z-index: 1; box-sizing: border-box; width: 100%; min-width: 0; padding: 24px; background: rgba(255,255,255,.9); }
 .event-information > div > dd { font-size: 16px; }
}

/* Only the caption link captures clicks over the DJ photo. */
.event-gallery__slide--dj::after { content: ""; position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(transparent, rgba(0,0,0,.8)); pointer-events: none; }
.event-gallery__caption { position: absolute; z-index: 1; inset: auto 18px 16px; pointer-events: none; }
.event-gallery__caption a, .event-gallery__caption a:visited { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; min-height: 44px; color: #fff; font-size: 18px; font-weight: 800; line-height: 1.25; text-decoration: none; pointer-events: auto; }
.event-gallery__caption a > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.event-gallery__caption a > span:last-child { flex-shrink: 0; }
.event-gallery__caption a:hover { text-decoration: underline; text-underline-offset: 4px; }
.event-detail .event-gallery__caption a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media(min-width:1024px) {
 .event-gallery__controls { position: absolute; inset: 0 calc(52.5% + 54.6px) 0 0; justify-content: space-between; margin: 0; padding-inline: 12px; pointer-events: none; }
 .event-gallery__controls button { color: #fff; border-color: rgba(255,255,255,.6); background: rgba(0,0,0,.5); pointer-events: auto; }
}

/* 写真未登録時も、右端に次の画像枠の見切れを表示する。操作対象にはしない。 */
.event-gallery__track:not(.event-gallery__track--multiple) {
 grid-auto-columns: calc(100% - 28px);
 overflow-x: hidden;
}
.event-gallery__track:not(.event-gallery__track--multiple)::after {
 content: "";
 display: block;
 aspect-ratio: 4 / 5;
 border-radius: 28px;
 background: #d9d9d9;
 pointer-events: none;
}

@media(min-width:1024px) {
 .event-gallery__track:not(.event-gallery__track--multiple) { grid-auto-columns: calc(47.5% - 54.6px); }
 .event-gallery__track:not(.event-gallery__track--multiple)::after { content: none; }
}

@media(max-width:1023px) {
 .event-gallery { margin-right: calc(-1 * var(--page-gutter)); margin-bottom: 20px; }
 .event-gallery__controls { display: none; }
 .event-detail__information { background: #fff; }
 .event-detail__section-title { margin-bottom: 10px; }
 .event-information > div { padding-block: 10px; }
 .event-information > div > dt, .event-information > div > dd { line-height: 1.5; }
 .event-information__djs li + li { margin-top: 0; }
 .event-information__djs a { display: inline-block; min-height: 32px; padding-block: 5px; }
 .event-vip { margin-top: 20px; }
 .event-vip .event-detail__section-title { margin-bottom: 8px; }
 .event-detail__cta { min-height: 48px; padding-block: 10px; }
 .event-detail__cta--back { margin-top: 12px; }
}

@media(min-width:1200px) {
 .event-detail__information { padding-inline: 32px; }
}
/* 貸切イベントの本文（TOP掲載の貸切のみ表示）。 */
.event-about { margin-top: 32px; }
.event-about .event-detail__section-title { font-size: 16px; }
.event-about__body { font-size: 14px; line-height: 1.9; overflow-wrap: anywhere; }
.event-about__body > :first-child { margin-top: 0; }
.event-about__body > :last-child { margin-bottom: 0; }
.event-about__body :is(img,video,iframe) { display: block; max-width: 100%; height: auto; }

/* PRICE: standard time-band prices (inc/rates.php). Full row width so three columns fit on phones. */
.rate-table__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.event-information > .event-information__rate { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.event-information__rate-label { margin: 0 0 8px; font-size: 13px; line-height: 1.5; }
.event-information__rate-label span { margin-right: 8px; font-weight: 700; letter-spacing: .06em; }
.event-detail .rate-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
.event-detail .rate-table th, .event-detail .rate-table td { padding: 8px 6px; text-align: left; white-space: nowrap; }
.event-detail .rate-table thead th { padding-block: 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; color: #777; }
.event-detail .rate-table thead th:first-child { width: 36%; }
.event-detail .rate-table tbody > tr > * { border-top: 1px solid #ddd; font-weight: 400; }
.event-detail .rate-table__price { font-size: 16px; font-weight: 700; }
.event-detail .rate-table__yen { margin-right: 1px; font-size: .8em; }
.event-detail .rate-table__drinks { margin-left: 6px; font-size: 13px; }
.event-detail .rate-table__note { margin: 6px 0 0; color: #777; font-size: 11px; }
@media (min-width: 1024px) {
  .event-information > .event-information__rate { grid-template-columns: 40% minmax(0, 1fr); }
}
