/* Ainy's public discovery surfaces share brand roles, with Web reading sizes. */
:root {
  --web-radius: 12px;
  --web-heading-size: 24px;
  --web-body-size: 16px;
  --web-metadata-size: 13px;
  --web-space-section: 32px;
  --web-state: var(--catalog-orange, var(--orange));
  --web-state-soft: color-mix(in srgb, var(--web-state) 10%, var(--web-page));
  --web-navigation: var(--catalog-pink, var(--pink));
  --web-icon-cue: var(--catalog-cyan, var(--cyan));
}
.web-header { position: sticky; top: 0; z-index: 20; background: var(--web-page); border-bottom: 1px solid var(--web-border); }
.web-header-inner { width: min(calc(100% - 48px), var(--web-content)); margin-inline: auto; min-height: 76px; display: flex; align-items: center; gap: 40px; }
.web-brand { display: inline-flex; align-items: center; min-height: 44px; flex: 0 0 auto; text-decoration: none; }
.web-header-search { flex: 0 1 650px; min-width: 0; margin: 0; }
.web-header .ainy-search-field { border-radius: 8px; padding: 0 0 0 16px; --search-placeholder: var(--web-secondary); }
.web-header .ainy-search-submit { flex-basis: 76px; width: 76px; height: 48px; border-radius: 0; }
.web-header .ainy-search-submit::before { inset: -1px -1px -1px 0; border-radius: 0 8px 8px 0; }
.web-header .ainy-search-submit span { position: relative; font: inherit; font-size: 14px; font-weight: 500; }
.web-header .catalog-suggestions { inset-inline: 0; }
.portal-home { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; width: min(calc(100% - 48px), var(--web-content)); margin: 28px auto 64px; font-size: var(--web-body-size); line-height: 1.6; }
.portal-intro { grid-column: 1 / -1; min-width: 0; margin-bottom: var(--web-space-section); }
.portal-finder { position: relative; min-width: 0; }
.portal-finder-heading { min-height: 44px; display: flex; align-items: center; padding-right: 180px; }
.portal-finder h2 { margin: 0; font-size: var(--web-heading-size); font-weight: 700; }
.portal-finder-options > summary { position: absolute; top: 0; right: 0; min-height: 44px; display: inline-flex; align-items: center; gap: 12px; padding: 0 12px; list-style: none; cursor: pointer; font-size: 14px; color: var(--web-blue); }
.portal-finder-options > summary::-webkit-details-marker { display: none; }
.portal-finder-options[open] > summary > span { transform: rotate(180deg); }
.portal-finder-form { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(240px, 2fr) auto; gap: 16px; align-items: end; padding: 20px; margin-top: 12px; border-radius: var(--web-radius); border: 1px solid var(--web-border); background: var(--web-soft); }
.portal-area-field, .portal-date-fields { min-width: 0; font-size: 13px; font-weight: 500; }
.portal-date-fields { margin: 0; padding: 0; border: 0; }
.portal-date-fields legend { padding: 0; margin-bottom: 6px; }
.portal-area-field select { display: block; margin-top: 6px; width: 100%; }
.portal-date-fields > div { display: flex; align-items: center; gap: 8px; min-width: 0; }
.portal-finder-form :is(input[type="date"], select) { min-width: 0; width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--web-border); border-radius: 6px; background: var(--web-page); color: var(--web-text); font: 400 14px/1.5 "Noto Sans JP Web", sans-serif; }
.portal-finder-form input[type="date"] { flex: 1; }
.portal-finder-form button { min-height: 44px; padding: 8px 20px; border: 0; border-radius: 6px; color: var(--web-page); background: var(--web-blue); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.portal-region-shortcuts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.portal-region-shortcuts a { display: inline-flex; justify-content: space-between; align-items: center; min-height: 72px; gap: 10px; padding: 0 14px; border: 1px solid var(--web-border); border-radius: 8px; color: var(--web-text); text-decoration: none; font-size: 14px; font-weight: 500; }
.portal-region-shortcuts a::after { margin-left: auto; content: "›"; color: var(--web-secondary); }
.portal-region-shortcuts a:hover { background: var(--interaction-hover); }
.portal-section { grid-column: 1 / -1; min-width: 0; margin-bottom: var(--web-space-section); }
.portal-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin-bottom: 14px; }
.portal-section-heading h2 { margin: 0; font-size: var(--web-heading-size); line-height: 1.45; font-weight: 700; letter-spacing: -.015em; }
.portal-section-heading > a { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; color: var(--web-navigation); text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; }
.portal-section-heading a:hover { text-decoration: underline; text-underline-offset: 4px; }
.portal-event-list, .portal-setlist-grid, .portal-venue-grid { padding: 0; margin: 0; list-style: none; }
.portal-event-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.portal-event-card { border: 1px solid var(--web-border); border-radius: var(--web-radius); background: var(--web-page); overflow: hidden; }
.portal-event-card > a { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; min-height: 132px; height: 100%; padding: 16px; align-items: start; text-decoration: none; }
.portal-event-card > a:hover { background: var(--interaction-hover); }
.portal-event-card time { display: flex; flex-direction: column; align-items: center; padding: 4px 0; line-height: 1.2; font-variant-numeric: tabular-nums; }
.portal-event-year { color: var(--web-secondary); font-size: 11px; margin-bottom: 4px; }
.portal-event-month, .portal-event-weekday { font-size: 12px; font-weight: 500; }
.portal-event-day { font-size: 28px; font-weight: 700; margin-block: 3px 6px; color: var(--web-state); }
.portal-event-copy { display: flex; flex-direction: column; align-items: start; min-width: 0; gap: 4px; }
.portal-event-title { font-size: 16px; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; line-height: 1.55; }

.portal-event-artists, .portal-setlist-artists { font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.portal-event-artists { color: var(--web-text); font-weight: 400; }
.portal-setlist-artists a { display: inline-flex; align-items: center; min-height: 44px; color: var(--web-blue); text-decoration: none; }
.portal-setlist-artists a:hover { text-decoration: underline; }
.portal-event-venue { display: flex; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--web-secondary); overflow-wrap: anywhere; margin-top: 4px; }
.portal-event-venue small { font-size: 12px; }
.portal-event-status { color: var(--web-state); font-size: 12px; font-weight: 500; }
.portal-venue-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.portal-venue-card { min-width: 0; border: 1px solid var(--web-border); border-radius: var(--web-radius); overflow: hidden; background: var(--web-page); }
.portal-venue-main { display: block; text-decoration: none; }
.portal-venue-main:hover .portal-venue-copy { background: var(--interaction-hover); }
.portal-venue-map { display: flex; align-items: center; justify-content: center; height: 200px; padding: 12px; background: var(--web-soft); }
.portal-venue-map img { width: 100%; height: 100%; object-fit: contain; }
.portal-venue-copy { display: grid; gap: 4px; padding: 12px 14px 8px; }
.portal-venue-copy strong { font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.portal-venue-copy small { color: var(--web-secondary); font-size: 13px; }
.portal-seat-preview { display: flex; gap: 10px; align-items: center; padding: 4px 14px 12px; color: var(--web-text); }
.portal-seat-preview img { width: 120px; height: 80px; max-width: 160px; max-height: 160px; object-fit: contain; border-radius: 6px; background: var(--web-soft); flex: 0 0 auto; }
.portal-seat-preview > span { min-width: 0; display: grid; gap: 6px; }
.portal-seat-preview strong { font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.portal-seat-preview small { color: var(--web-blue); font-size: 12px; }
.portal-setlist-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.portal-setlist-card { display: flex; flex-direction: column; min-width: 0; padding: 12px 20px 0; border: 1px solid var(--web-border); border-radius: var(--web-radius); background: var(--web-page); }
.portal-setlist-artists { min-height: 44px; }
.portal-setlist-link { display: flex; flex: 1; flex-direction: column; text-decoration: none; }
.portal-setlist-title { margin: 0; font-size: 16px; line-height: 1.55; font-weight: 700; overflow-wrap: anywhere; }
.portal-setlist-link:hover .portal-setlist-title { text-decoration: underline; text-underline-offset: 3px; }
.portal-setlist-footer { display: flex; justify-content: space-between; gap: 12px; padding: 16px 0; margin-top: auto; color: var(--web-secondary); font-size: 13px; }
.portal-song-preview { padding: 12px 0 12px 24px; margin: 0; font-size: 14px; line-height: 1.8; }
.portal-song-preview li { padding-left: 4px; overflow-wrap: anywhere; }
.portal-song-preview li::marker { color: var(--web-secondary); font-variant-numeric: tabular-nums; }
.portal-empty, .portal-load-error { margin: 16px 0; color: var(--web-secondary); font-size: 14px; }
.portal-load-error button { min-height: 44px; border: 0; padding: 8px 12px; color: var(--web-blue); background: transparent; font: inherit; text-decoration: underline; cursor: pointer; }
.portal-feed-fallback { min-height: 220px; }
.portal-home #public-home-rankings { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-bottom: var(--web-space-section); }
.portal-home #public-home-rankings:has(.home-ranking-section:only-child) { grid-template-columns: 1fr; }
.portal-home .home-ranking-section { padding: 0; }
.portal-home .home-ranking-section h2 { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; font-size: var(--web-heading-size); font-weight: 700; }
.portal-home .home-ranking-section ol { border: 1px solid var(--web-border); border-radius: var(--web-radius); padding: 0 20px; background: var(--web-page); }
.portal-home .home-ranking-row > a { min-height: 76px; gap: 16px; padding: 12px 0; }
.portal-home .home-ranking-row > a:hover { background: var(--interaction-hover); }
.portal-home .home-ranking-mark { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 8px; background: var(--web-soft); font-size: 16px; font-weight: 500; color: var(--web-secondary); }
.portal-home .home-ranking-copy { padding: 0; font-size: 16px; }
.portal-home .home-ranking-copy strong { font-weight: 500; }
.portal-home .home-ranking-copy small { font-size: 13px; }
.portal-feed, .portal-feed-primary { display: contents; }
.portal-feed-fallback, .portal-load-error { grid-column: 1 / -1; }
.portal-banner-area { grid-column: 1 / -1; position: relative; min-width: 0; margin-bottom: var(--web-space-section); }
.portal-banner-track { display: flex; position: relative; overflow-x: auto; gap: 20px; scroll-snap-type: x mandatory; padding: 3px; margin: -3px; list-style: none; scrollbar-width: none; }
.portal-banner-track::-webkit-scrollbar { display: none; }
.portal-banner-card { flex: 0 0 440px; min-width: 0; scroll-snap-align: start; }
.portal-banner-track:not(:has(.portal-banner-card:nth-child(2))) { justify-content: center; }
@media (min-width: 768px) {
  .portal-banner-card:only-child { flex-basis: 360px; }
  .portal-banner-area:has(.portal-banner-card:only-child) { margin-bottom: 24px; }
}
.portal-banner-controls button { display: grid; place-items: center; position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border: 1px solid var(--web-border); border-radius: 50%; background: var(--web-page); color: var(--web-text); cursor: pointer; box-shadow: 0 2px 8px color-mix(in srgb, var(--web-text) 12%, transparent); }
.portal-banner-controls button[data-banner-step="-1"] { left: -22px; }
.portal-banner-controls button[data-banner-step="1"] { right: -22px; }
.portal-banner-controls button:disabled { visibility: hidden; }
.portal-banner-controls svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.portal-home :is(.public-home-diagnosis, .portal-banner-content) { display: block; width: 100%; margin: 0; border-radius: 8px; overflow: hidden; }
.portal-home :is(.public-home-diagnosis, .portal-banner-content) img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: contain; }
.portal-home .public-home-diagnosis-fallback { min-height: 140px; padding: 20px; }
.portal-directory { grid-column: 1 / -1; padding-top: 4px; }
.portal-regions > summary { display: flex; align-items: center; min-height: 44px; font-size: 18px; font-weight: 700; cursor: pointer; gap: 12px; list-style: none; }
.portal-regions > summary::after { content: "⌄"; font-size: 16px; margin-left: auto; }
.portal-regions[open] > summary::after { transform: rotate(180deg); }
.portal-region-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 32px; padding: 20px 0 0; }
.portal-region-group h3 { margin: 0 0 8px; font-size: 13px; color: var(--web-secondary); font-weight: 500; }
.portal-region-group ul { display: flex; flex-wrap: wrap; column-gap: 16px; padding: 0; margin: 0; list-style: none; }
.portal-region-group a { display: inline-flex; align-items: center; min-height: 44px; color: var(--web-text); text-decoration: none; font-size: 13px; }
.portal-region-group a:hover { text-decoration: underline; text-underline-offset: 3px; }
.public-home-route .catalog-footer-inner { width: min(calc(100% - 48px), var(--web-content)); }
.catalog-footer nav a { min-height: 44px; }
.catalog-route .catalog-filter-nav a { border-radius: 0; }
.catalog-route .catalog-section-heading h2 { font-size: var(--web-heading-size); font-weight: 700; }
.catalog-route .catalog-section-heading h2::before { display: none; }
.catalog-route .catalog-section-heading { padding-bottom: 12px; margin-bottom: 0; border-bottom: 1px solid var(--web-border); }
.catalog-route .catalog-section-heading + :is(.catalog-link-list, .catalog-date-list, ul) { border-top: 0; }
.catalog-route .catalog-link-list strong { font-weight: 500; }
.catalog-route .catalog-metadata, .catalog-route .catalog-credit-list { font-size: 13px; }
.catalog-route .catalog-performance-surface, .catalog-route .catalog-desktop-filters form { border-radius: var(--web-radius); }
.catalog-route .catalog-entity-hero { border-radius: var(--web-radius); min-height: 148px; }
.catalog-route .catalog-search-toolbar { padding-top: 20px; }
@media (min-width: 1100px) {
  .catalog-route .catalog-main, .catalog-route .catalog-main h1, .catalog-route .catalog-main h2 { scroll-margin-top: 100px; }
  .catalog-desktop-filters, .catalog-aside-inner { top: 92px; }
  .catalog-aside-inner { max-height: calc(100dvh - 112px); }
}
@media (min-width: 980px) { .portal-venue-card:nth-child(4) { display: none; } }
@media (max-width: 1199px) { .portal-finder-form { grid-template-columns: 1fr; } }
@media (max-width: 1099px) { .web-header { position: static; } .web-header-inner { gap: 24px; } .catalog-route .catalog-main { padding-top: 16px; } }
@media (max-width: 979px) {
  .portal-region-shortcuts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .portal-event-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-event-list > li:nth-child(n+3) { display: none; }
  .portal-venue-grid { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
  .portal-venue-card { flex: 0 0 300px; scroll-snap-align: start; }
  .portal-region-groups { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .web-header-inner { flex-wrap: wrap; gap: 0 20px; padding: 6px 0 12px; }
  .web-header-search { order: 3; flex: 1 0 100%; margin-top: 4px; }
  .portal-home { margin-top: 12px; display: block; }
  .portal-intro { margin-bottom: 24px; }
  .portal-banner-area { margin-bottom: 24px; }
  .portal-banner-track { gap: 12px; }
  .portal-banner-card { flex-basis: 100%; }
  .portal-banner-track:has(.portal-banner-card:nth-child(2)) .portal-banner-card { flex-basis: calc(100% - 32px); }
  .portal-banner-controls { display: none; }
  .portal-finder-heading { padding-right: 152px; }
  .portal-finder h2, .portal-section-heading h2, .portal-home .home-ranking-section h2 { font-size: 20px; }
  .portal-finder-options > summary { font-size: 13px; padding-right: 0; gap: 8px; }
  .portal-region-shortcuts { display: flex; overflow-x: auto; gap: 8px; margin-top: 8px; padding-bottom: 2px; }
  .portal-region-shortcuts a { flex: 0 0 146px; padding-inline: 12px; min-height: 60px; gap: 8px; font-size: 13px; }
  .portal-finder-form { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
  .portal-finder-form button { justify-self: stretch; }
  .portal-home { --web-space-section: 24px; }
  .portal-section-heading { margin-bottom: 8px; }
  .portal-section-heading > a { gap: 4px; }
  .portal-event-list { grid-template-columns: 1fr; gap: 0; }
  .portal-event-card { border: 0; border-bottom: 1px solid var(--web-border); border-radius: 0; }
  .portal-event-card > a { min-height: 92px; padding: 10px 0; gap: 12px; }
  .portal-event-title { font-size: 16px; }
  .portal-event-copy { gap: 2px; }
  .portal-event-day { font-size: 24px; }
  .portal-venue-grid { margin-right: -24px; padding-right: 24px; }
  .portal-venue-card { flex-basis: 292px; }
  .portal-venue-map { height: 180px; padding: 12px; }
  .portal-venue-copy { padding: 12px 14px 8px; }
  .portal-seat-preview { padding: 4px 14px 12px; gap: 10px; }
  .portal-seat-preview img { width: 120px; height: 80px; }
  .portal-setlist-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-right: -24px; padding: 3px 24px 12px 3px; margin-left: -3px; }
  .portal-setlist-card { flex: 0 0 min(300px, calc(100vw - 64px)); scroll-snap-align: start; }
  .portal-home .home-ranking-section ol { padding-inline: 16px; }
  .portal-home .home-ranking-row > a { min-height: 68px; }
  .portal-banner-area { padding: 0; background: transparent; }
  .portal-home #public-home-rankings { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 479px) {
  .web-header-inner, .portal-home, .public-home-route .catalog-footer-inner { width: calc(100% - 32px); }
  .portal-venue-grid, .portal-setlist-grid { margin-right: -16px; padding-right: 16px; }
  .portal-venue-card { flex-basis: min(292px, calc(100vw - 48px)); }
  .portal-region-groups { grid-template-columns: 1fr 1fr; gap: 20px; }
  .portal-finder-form input[type="date"] { padding-inline: 8px; }
}
@media (forced-colors: active) {
  .portal-event-card, .portal-venue-card, .portal-finder-form, .portal-region-shortcuts a, .portal-finder-form :is(input, select) { border-color: CanvasText; }
  .portal-finder-form button { border: 1px solid ButtonText; }
}
.portal-ranking-all { font-size: 14px; font-weight: 500; color: var(--web-navigation); text-decoration: none; }
.portal-home .home-ranking-section h2 .portal-ranking-all { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }

.portal-prefecture-icon { flex: 0 0 40px; width: 40px; height: 40px; color: var(--web-blue); }
.portal-region-group a { gap: 8px; padding-inline: 8px; border-radius: 6px; }
.portal-region-group .portal-prefecture-icon { width: 28px; height: 28px; flex-basis: 28px; }
@media (max-width: 767px) { .portal-region-shortcuts .portal-prefecture-icon { width: 32px; height: 32px; flex-basis: 32px; } }
/* Decorative cues distinguish music, dates and seats without competing with facts. */
.portal-finder h2, .portal-section-heading h2, .portal-home .home-ranking-section h2 > span { display: flex; align-items: center; gap: 10px; }
.portal-section-icon { flex: 0 0 24px; width: 24px; height: 24px; color: var(--web-icon-cue); }

.portal-event-card time { padding: 8px 2px; border-radius: 8px; background: var(--web-state-soft); border-top: 3px solid var(--web-state); }
.portal-seat-section { padding: 20px 24px 24px; border-radius: 16px; background: color-mix(in srgb, var(--web-blue) 4%, var(--web-page)); }
.portal-seat-section .portal-venue-map { background: var(--web-page); border-top: 1px solid var(--web-border); }

@media (max-width: 767px) {
  .portal-finder h2 { gap: 6px; }
  .portal-section-icon { width: 24px; height: 24px; flex-basis: 24px; }
  .portal-section-heading h2 { gap: 8px; }
  .portal-seat-section { margin-inline: -24px; padding: 16px 24px 20px; border-radius: 0; }
  .portal-event-card time { padding: 6px 2px; border-top-width: 2px; }
}
@media (max-width: 479px) { .portal-seat-section { margin-inline: -16px; padding-inline: 16px; } }

.portal-venue-map { --portal-map-height: 176px; }
.portal-map-frame { position: relative; display: block; width: min(100%, calc(var(--portal-map-height) * var(--map-ratio))); aspect-ratio: var(--map-ratio); }
.portal-map-frame > img { width: 100%; height: 100%; object-fit: contain; }
.portal-map-pin { position: absolute; display: grid; place-items: center; width: 26px; height: 26px; border: 2px solid var(--web-page); border-radius: 50%; color: var(--web-page); background: var(--pink); transform: translate(-50%, -50%); }
.portal-seat-preview small { display: flex; align-items: center; gap: 4px; color: var(--web-secondary); }
.portal-seat-preview small svg { color: var(--pink); flex: 0 0 16px; }
@media (max-width: 767px) { .portal-venue-map { --portal-map-height: 156px; } }

.portal-artist-list { display: flex; flex-wrap: wrap; gap: 12px; padding: 0; margin: 0; list-style: none; }
.portal-artist-list a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border: 1px solid var(--web-border); border-radius: 24px; font-size: 15px; font-weight: 500; text-decoration: none; background: var(--web-page); }
.portal-artist-list a:hover { background: var(--interaction-hover); }
@media (max-width: 767px) { .portal-artist-list { gap: 8px; } .portal-artist-list a { min-height: 44px; padding-inline: 16px; font-size: 14px; } }
.portal-home #public-home-rankings { align-self: start; align-content: start; }
.portal-home .home-ranking-section h2 .portal-ranking-all { color: var(--web-navigation); font-size: 14px; font-weight: 500; white-space: nowrap; }
@media (max-width: 479px) {
  .portal-home .home-ranking-section h2 { gap: 8px; }
}

.portal-banner-fallback { display: grid; place-items: center; aspect-ratio: 1200 / 630; padding: 20px; background: var(--web-soft); color: var(--web-text); font-weight: 500; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .portal-home :is(a, button, summary), .catalog-main :is(a, button, summary) { transition: background-color 140ms ease; }
}
