@import url("https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400;500&family=Fjalla+One&family=Noto+Sans+JP:wght@400;500;600;700;800&display=swap");

:root {
  --pink: #df007d;
  --blue: #43baeb;
  --purple: #842184;
  --red: #e60011;
  --green: #39ca2f;
  --aqua: #55beb8;
  --lime: #96cb00;
  --yellow: #ffee00;
  --ink: #050505;
  --content: 1300px;
  --page-gutter: clamp(20px, 7.3vw, 140px);
  --font-body: "Noto Sans JP", sans-serif;
  --font-display: "Fjalla One", sans-serif;
  --font-serif: "EB Garamond", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  display: none;
}

html.is-menu-open,
html.is-menu-open body {
  overflow: hidden;
}

body {
  isolation: isolate;
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

.site-grid-background {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-color: #fff;
  background-image: url("../img/decor/grid.png");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: auto max(1080px, 100vh);
  pointer-events: none;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.site-header {
  position: fixed;
  z-index: 20;
  top: 37px;
  left: 0;
  width: 100%;
}

.site-header__inner {
  position: relative;
  width: 100%;
}

.site-nav {
  display: grid;
  width: 1415px;
  grid-template-columns: repeat(6, 190px);
  gap: 55px;
  margin-left: calc(50% - 707px);
}

.site-nav__link {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-direction: column;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
}

.site-nav__jp {
  width: 100%;
  min-height: 33px;
  padding: 4px 6px 5px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
}

.site-nav__en {
  padding-top: 5px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
}

.site-nav__link--home .site-nav__jp {
  background: var(--pink);
}

.site-nav__link--home .site-nav__en {
  color: var(--pink);
}

.site-nav__link--guidance .site-nav__jp {
  background: var(--blue);
}

.site-nav__link--guidance .site-nav__en {
  color: var(--blue);
}

.site-nav__link--event .site-nav__jp {
  background: var(--purple);
}

.site-nav__link--event .site-nav__en {
  color: var(--purple);
}

.site-nav__link--schedule .site-nav__jp {
  background: var(--red);
}

.site-nav__link--schedule .site-nav__en {
  color: var(--red);
}

.site-nav__link--map .site-nav__jp {
  background: var(--green);
}

.site-nav__link--map .site-nav__en {
  color: var(--green);
}

.site-nav__link--archives .site-nav__jp {
  background: var(--aqua);
}

.site-nav__link--archives .site-nav__en {
  color: var(--aqua);
}

.site-nav__link:hover .site-nav__jp,
.site-nav__link:focus-visible .site-nav__jp,
.site-nav__link.is-current .site-nav__jp {
  filter: brightness(0.92);
}

.header-socials {
  position: absolute;
  top: -13px;
  right: 32px;
  display: flex;
  gap: 6px;
}

.header-social,
.footer-social {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid #fff;
  border-radius: 50%;
  background: #000;
  box-shadow: 0 3px 8px rgb(0 0 0 / 30%);
}

.header-social img,
.footer-social img {
  height: auto;
}

.social-icon--instagram img {
  width: 19px;
}

.social-icon--x img {
  width: 16px;
}

.social-icon--youtube img {
  width: 20px;
}

.menu-button {
  display: none;
}

/* Shared hero */
.hero-grid {
  position: relative;
  z-index: 1;
  height: 1080px;
  overflow: hidden;
}

.top-hero::before,
.page-hero::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  pointer-events: none;
}

.top-hero::before {
  background: url("../img/decor/top-irodori.png") center top / auto 1080px no-repeat;
}

.top-hero.has-irodori-layers::before {
  opacity: 0;
}

.top-hero.is-irodori-loading::before {
  opacity: 0;
}

.irodori-stage {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.irodori-stage > svg {
  position: absolute;
  top: 0;
  left: 50%;
  display: block;
  width: auto;
  max-width: none;
  height: 100%;
  isolation: isolate;
  transform: translateX(-50%);
}

.irodori-word,
.irodori-object,
.irodori-mover__track {
  transform-box: fill-box;
  transform-origin: center;
}

.irodori-mover__track {
  pointer-events: none;
}

@keyframes irodori-hover-echo {
  0% {
    opacity: 0;
    filter: hue-rotate(var(--irodori-echo-hue-start)) saturate(1.2);
    transform: translate(0, 0) rotate(0deg) scale(0.96);
  }

  12% {
    opacity: 0.8;
    filter: hue-rotate(var(--irodori-echo-hue)) saturate(1.42)
      brightness(1.05);
    transform: translate(
        var(--irodori-echo-mid-x),
        var(--irodori-echo-mid-y)
      )
      rotate(var(--irodori-echo-mid-rotate))
      scale(var(--irodori-echo-mid-scale));
  }

  58% {
    opacity: 0.55;
  }

  100% {
    opacity: 0;
    filter: hue-rotate(var(--irodori-echo-hue)) saturate(1.5)
      brightness(1.08);
    transform: translate(var(--irodori-echo-x), var(--irodori-echo-y))
      rotate(var(--irodori-echo-rotate)) scale(var(--irodori-echo-scale));
  }
}

.irodori-mover__source,
.irodori-word__echo {
  transform-box: fill-box;
  transform-origin: center;
}

.irodori-word__echo {
  pointer-events: none;
  mix-blend-mode: multiply;
  will-change: transform, opacity, filter;
  animation: irodori-hover-echo var(--irodori-echo-duration, 460ms)
    cubic-bezier(0.16, 0.8, 0.3, 1) both;
}

@media (hover: hover) and (pointer: fine) {
  .irodori-word > .irodori-mover__track {
    pointer-events: visiblePainted;
  }

}

.irodori-loader {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.top-hero.is-irodori-loading .irodori-loader {
  opacity: 1;
}

.top-hero.is-irodori-intro .irodori-loader {
  animation: irodori-loader-out 0.55s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.irodori-loader__label {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.18em;
  line-height: 1;
}

.irodori-loader__palette {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 18px;
}

.irodori-loader__palette i {
  display: block;
  width: 5px;
  height: 13px;
  border-radius: 999px;
  animation: irodori-loader-pulse 0.72s ease-in-out infinite alternate;
  transform-origin: center;
}

.irodori-loader__palette i:nth-child(1) {
  background: var(--red);
  animation-delay: -0.56s;
}

.irodori-loader__palette i:nth-child(2) {
  background: #ff7a00;
  animation-delay: -0.4s;
}

.irodori-loader__palette i:nth-child(3) {
  background: var(--yellow);
  animation-delay: -0.24s;
}

.irodori-loader__palette i:nth-child(4) {
  background: var(--green);
  animation-delay: -0.08s;
}

.irodori-loader__palette i:nth-child(5) {
  background: var(--blue);
  animation-delay: -0.64s;
}

.irodori-loader__palette i:nth-child(6) {
  background: var(--purple);
  animation-delay: -0.48s;
}

.irodori-loader__palette i:nth-child(7) {
  background: var(--pink);
  animation-delay: -0.32s;
}

.top-hero.is-irodori-loading .hero-brand,
.top-hero.is-irodori-loading .top-hero__mark,
.top-hero.is-irodori-loading .festival-date {
  opacity: 0;
}

.top-hero.is-irodori-intro .hero-brand {
  animation: irodori-brand-in 0.7s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.top-hero.is-irodori-intro .top-hero__mark {
  animation: irodori-mark-in 0.88s 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.top-hero.is-irodori-intro .festival-date {
  animation: irodori-date-in 0.76s 0.48s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes irodori-loader-pulse {
  from {
    transform: scaleY(0.42);
  }
  to {
    transform: scaleY(1);
  }
}

@keyframes irodori-loader-out {
  from {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -56%) scale(0.96);
  }
}

@keyframes irodori-brand-in {
  from {
    opacity: 0;
    transform: translate(-50%, 8px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes irodori-mark-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(14px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes irodori-date-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.page-hero::before {
  background: url("../img/decor/page-hero-words.png") center -55px / 1920px 1080px
    no-repeat;
}

.hero-brand {
  position: absolute;
  z-index: 2;
  top: 134px;
  left: 50%;
  font-family: var(--font-display);
  margin: 0;
  letter-spacing: 0.1em;
  text-align: center;
  transform: translateX(-50%);
}

.hero-brand__main {
  display: block;
  font-size: 38px;
  font-weight: 400;
  line-height: 1.25;
}

.hero-brand__sub {
  display: block;
  font-size: 27px;
  font-weight: 400;
  line-height: 1.2;
}

.top-hero__mark {
  position: absolute;
  z-index: 2;
  top: 254px;
  left: calc(50% - 50px);
  width: 649px;
  transform: translateX(-50%);
}

.festival-date {
  position: absolute;
  z-index: 3;
  top: 833px;
  left: 50%;
  width: 820px;
  text-align: center;
  transform: translateX(-50%);
}

.festival-date__year {
  display: block;
  margin-bottom: -12px;
  font-family: var(--font-display);
  font-size: 53px;
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1;
  transform: translateY(-8px);
}

.festival-date__days {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 36px;
  font-family: var(--font-display);
}

.festival-date__day {
  display: flex;
  align-items: baseline;
}

.festival-date__number {
  display: inline-flex;
  align-items: baseline;
  font-size: 136px;
  font-weight: 400;
  line-height: 1;
}

.festival-date__weekday {
  margin-left: 4px;
  font-family: var(--font-display);
  font-size: 35px;
  font-weight: 400;
}

.festival-date__note {
  margin: 12px 0 0;
  font-size: 22px;
  letter-spacing: 0.04em;
}

.page-hero__brand {
  top: 172px;
  color: #666;
  letter-spacing: 0.09em;
}

.page-hero__brand .hero-brand__main {
  font-size: 13px;
  letter-spacing: 0.1em;
}

.page-hero__brand .hero-brand__sub {
  margin-top: 11px;
  font-size: 10px;
  letter-spacing: 0.1em;
}

.page-hero__mark {
  position: absolute;
  z-index: 2;
  top: 215px;
  left: 50%;
  width: 365px;
  transform: translateX(-50%);
}

.page-title {
  position: absolute;
  z-index: 2;
  top: 627px;
  left: 50%;
  width: 100%;
  margin: 0;
  font-family: var(--font-display);
  font-size: 106px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
  transform: translateX(-50%);
}

body[data-page="guidance"] .page-title,
body[data-page="map"] .page-title {
  left: calc(50% - 7.5px);
}

.page-title__jp {
  display: block;
  margin-top: 13px;
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.254em;
  line-height: 38px;
}

/* Shared headings and buttons */
.section-heading {
  margin: 0;
  font-family: var(--font-display);
  font-size: 106px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
}

.section-heading__jp {
  display: block;
  margin-top: 13px;
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.254em;
  line-height: 38px;
}

.black-button {
  display: grid;
  width: min(280px, 100%);
  min-height: 56px;
  place-items: center;
  border: 0;
  background: #000;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  line-height: 32px;
  text-align: center;
  transition: opacity 0.2s ease;
}

.black-button:hover,
.black-button:focus-visible {
  opacity: 0.76;
}

.home-return {
  margin: 80px auto 120px;
}

/* Top page */
.top-outline {
  position: relative;
  min-height: 1080px;
  background: url("../img/decor/outline.png") center / 1920px 1080px no-repeat;
}

.top-outline .section-heading {
  position: absolute;
  top: 110px;
  left: 50%;
  transform: translateX(-50%);
}

.top-outline__mark {
  position: absolute;
  top: 338px;
  left: calc(50% - 552px);
  width: 465px;
}

.top-outline__copy {
  position: absolute;
  top: 463px;
  left: 50%;
  width: 650px;
  font-size: 20px;
  font-weight: 500;
  line-height: 2;
  overflow-wrap: anywhere;
}

.top-outline__copy p {
  margin: 0 0 34px;
}

.top-outline__copy .credit {
  font-weight: 600;
  text-align: right;
}

.top-event {
  position: relative;
  padding-bottom: 249.390625px;
  background: url("../img/decor/event-home.png") center top / 1920px 1080px no-repeat;
}

.top-event .section-heading {
  padding-top: 82px;
}

.top-event .filter-tabs {
  margin-top: 93px;
}

.filter-tabs {
  display: grid;
  width: 544px;
  grid-template-columns: repeat(3, 1fr);
  margin: 65px auto 62px;
}

.filter-tab {
  min-height: 46px;
  padding: 7px 18px;
  border: 0;
  background: #aaa;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.filter-tab + .filter-tab {
  border-left: 2px solid #fff;
}

.filter-tab.is-active,
.filter-tab:focus-visible {
  background: #000;
}

@media (hover: hover) and (pointer: fine) {
  .filter-tab:hover {
    background: #000;
  }
}

.event-card-grid {
  display: grid;
  width: min(1000px, calc(100% - 48px));
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 0 auto;
}

.event-card {
  min-width: 0;
  overflow: hidden;
  background: var(--lime);
  color: #fff;
}

.top-event .event-card {
  background: rgb(149 214 0 / 82%);
}

.event-card__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 408 / 305;
}

.event-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.event-card__link:focus-visible .event-card__image {
  transform: scale(1.05);
}

@media (hover: hover) and (pointer: fine) {
  .event-card:hover .event-card__image {
    transform: scale(1.05);
  }
}

.event-card__title {
  min-height: 80px;
  margin: 0;
  padding: 18px 24px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
}

.top-event .event-card-grid {
  width: 1000px;
}

.top-event .event-card__title {
  min-height: 98px;
  padding: 16px;
  font-size: 18px;
}

.top-event .event-card__image--paint {
  object-position: 61% center;
}

.top-event .event-card__image--lunchbox {
  object-position: 68% center;
}

.top-event__more {
  margin: 70px auto 0;
}

.time-schedule {
  position: relative;
  padding: 127px 0 83px;
  background: url("../img/decor/time-schedule.png") center top / 1920px 1080px
    repeat-y;
}

.time-schedule .section-heading {
  margin-bottom: 47px;
}

.schedule-days {
  display: grid;
  width: 1558px;
  max-width: calc(100% - 80px);
  grid-template-columns: repeat(2, 776px);
  gap: 6px;
  margin: 0 auto 13px;
}

.schedule-day {
  position: relative;
  display: flex;
  min-height: 111px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: url("../img/decor/schedule-day.png") center / cover no-repeat;
  color: #fff;
  cursor: pointer;
  font-family: var(--font-display);
}

.schedule-day:focus-visible {
  z-index: 2;
  outline: 4px solid #000;
  outline-offset: 3px;
}

.schedule-day.is-muted::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: rgb(229 229 229 / 80%);
  content: "";
  transition: opacity 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .schedule-day.is-muted:hover::before {
    opacity: 0;
  }
}

.schedule-day.is-muted:focus-visible::before {
  opacity: 0;
}

.schedule-day > * {
  position: relative;
  z-index: 1;
}

.schedule-day__year {
  margin-right: 6px;
  font-size: 39px;
  line-height: 1;
}

.schedule-day__date {
  font-size: 79px;
  line-height: 1;
}

.schedule-day__weekday {
  margin-left: 6px;
  font-family: var(--font-body);
  font-size: 31px;
  font-weight: 500;
  line-height: 1;
}

.schedule-table {
  width: 1558px;
  max-width: calc(100% - 80px);
  margin: 0 auto;
  padding: 0;
  background: transparent;
}

.schedule-row {
  position: relative;
  display: grid;
  grid-template-columns: 251.5px 1269px;
  padding: 36.5px 37.5px 42.5px 0;
  background: #fff;
}

.schedule-row + .schedule-row {
  margin-top: 7px;
  border-top: 0;
}

.schedule-row--compact {
  padding-bottom: 44.5px;
}

.schedule-time {
  padding: 5px 10px 0;
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 400;
  line-height: 65px;
  text-align: left;
}

.schedule-events {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.schedule-item {
  align-self: start;
  min-height: 214px;
  padding: 20px 24px 14px;
  background: var(--item-color, #08a8e4);
  color: #fff;
  font-weight: 700;
}

.schedule-item--pink {
  --item-color: #eb97ad;
}

.schedule-item--mint {
  --item-color: #82c89f;
}

.schedule-item--lavender {
  --item-color: #a486bb;
}

.schedule-item--red {
  --item-color: #ed0014;
}

.schedule-item--green {
  --item-color: #18ad39;
}

.schedule-item--blue {
  --item-color: #00a0e9;
}

.schedule-item--rose {
  --item-color: #f2a1b6;
}

.schedule-item--soft-green {
  --item-color: #87c9a2;
}

.schedule-item--lavender-deep {
  --item-color: #a487bd;
}

.schedule-item--red-deep {
  --item-color: #e60011;
}

.schedule-item--sky {
  --item-color: #08a8e4;
}

.schedule-item__title {
  margin: 0 0 2px;
  font-size: 22px;
  font-weight: 700;
  line-height: 32px;
}

.schedule-item__place,
.schedule-item__detail {
  margin: 0;
  font-size: 17px;
  font-weight: 400;
  line-height: 25px;
}

.schedule-item__detail {
  margin-top: 12px;
  padding-top: 9px;
  border-top: 1px solid #fff;
}

.schedule-map {
  margin: 79px auto 0;
}

.archives {
  position: relative;
  padding: 120px 0 56.609375px;
  overflow: hidden;
  background: url("../img/decor/archives.png") center top / 1920px 1860px
    no-repeat;
}

.archives-grid {
  display: grid;
  width: 880px;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 60px auto 0;
}

.archive-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: #ddd;
}

.archive-card > img {
  width: 100%;
  height: 100%;
  filter: grayscale(1);
  object-fit: cover;
  transition: filter 0.32s ease;
}

.archive-card::after {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 18%);
  content: "";
  transition: opacity 0.32s ease;
}

.archive-card:not(.archive-card--current):focus-visible > img {
  filter: none;
}

.archive-card:not(.archive-card--current):focus-visible::after {
  opacity: 0;
}

.archive-card:not(.archive-card--current):focus-visible .archive-year {
  color: #fff;
  mix-blend-mode: normal;
}

.archive-card:not(.archive-card--current):focus-visible .archive-more {
  border-color: #fff;
  background: transparent;
  color: #fff;
}

@media (hover: hover) and (pointer: fine) {
  .archive-card:not(.archive-card--current):hover > img {
    filter: none;
  }

  .archive-card:not(.archive-card--current):hover::after {
    opacity: 0;
  }

  .archive-card:not(.archive-card--current):hover .archive-year {
    color: #fff;
    mix-blend-mode: normal;
  }

  .archive-card:not(.archive-card--current):hover .archive-more {
    border-color: #fff;
    background: transparent;
    color: #fff;
  }
}

.archive-card--current {
  background: #30f1b1;
  overflow: visible;
}

.archive-card--current::after {
  display: none;
}

.archive-card--current > img {
  position: absolute;
  top: -25.4%;
  left: -39%;
  width: 133.2%;
  max-width: none;
  height: auto;
  filter: none;
}

.archive-current-copy {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 20px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1.15;
  text-align: right;
}

.archive-current-copy small {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
}

.archive-year {
  position: absolute;
  z-index: 2;
  top: 9px;
  right: 6px;
  color: #111;
  font-family: var(--font-display);
  font-size: 62px;
  letter-spacing: 0;
  line-height: 1;
  writing-mode: vertical-rl;
}

.archive-more {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid transparent;
  background: #000;
  color: #fff;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 18px;
  text-align: center;
  transform: translate(-50%, -50%);
  transition:
    border-color 0.32s ease,
    background-color 0.32s ease;
}

.archive-more::before {
  display: block;
  margin-bottom: -8px;
  content: "+";
  font-size: 24px;
}

.archives-note {
  margin: 30px 0 0;
  font-size: 18px;
  letter-spacing: 0.08em;
  line-height: 29px;
  text-align: center;
}

/* Individual label scenes */
.top-outline,
.top-event,
.time-schedule,
.archives {
  isolation: isolate;
}

.event-page-main.has-label-scene,
.archives-page-main.has-label-scene,
.detail-page-main--event.has-label-scene,
.detail-page-main--archives.has-label-scene {
  isolation: isolate;
  background-image: none;
}

:is(
  .coupon-section,
  .event-page-main,
  .archives-page-main,
  .detail-page-main--event,
  .detail-page-main--archives
).has-label-scene::before,
:is(
  .coupon-section,
  .event-page-main,
  .archives-page-main,
  .detail-page-main--event,
  .detail-page-main--archives
).has-label-scene::after {
  background-image: none;
  content: none;
}

.section-labels {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.section-labels--viewport {
  right: auto;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
}

.coupon-section > .section-labels--viewport {
  overflow-x: clip;
  overflow-y: visible;
  clip-path: inset(-340px 0 0);
}

.top-outline.has-label-scene,
.top-event.has-label-scene,
.time-schedule.has-label-scene,
.archives.has-label-scene {
  background-image: none;
}

.has-paste-labels > :not(.section-labels) {
  transition: opacity 0.3s ease;
}

.has-paste-labels.is-label-content-pending > :not(.section-labels) {
  opacity: 0;
}

.section-labels--paste .section-label,
.section-labels--static .section-label {
  position: absolute;
  display: block;
  width: var(--label-width);
  max-width: none;
  height: auto;
  transform-origin: center;
}

.section-labels--paste .section-label {
  opacity: 0;
  transform:
    translate3d(var(--label-enter-x), var(--label-enter-y), 0)
    rotate(calc(var(--label-rotation) + var(--label-enter-rotation)))
    scale(0.78);
  transition:
    opacity 0.1s linear var(--label-delay),
    transform 0.36s cubic-bezier(0.2, 1.35, 0.35, 1) var(--label-delay);
  will-change: transform, opacity;
}

.section-labels--static .section-label {
  opacity: 1;
  transform: rotate(var(--label-rotation));
}

.is-label-scene-visible .section-labels--paste .section-label {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(var(--label-rotation)) scale(1);
}

.section-label-row {
  position: absolute;
  right: 0;
  left: 0;
  overflow: hidden;
}

.section-label-track {
  display: flex;
  width: max-content;
  animation: section-label-ticker var(--label-duration) linear
    var(--label-phase) infinite;
  animation-play-state: paused;
  will-change: transform;
}

.is-label-scene-visible .section-label-track {
  animation-play-state: running;
}

.section-label-group {
  display: flex;
  flex: none;
  gap: 14px;
  padding-right: 14px;
}

.section-label-group .section-label {
  display: block;
  flex: none;
  width: auto;
  max-width: none;
  height: 115px;
}

@keyframes section-label-ticker {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .has-paste-labels > :not(.section-labels) {
    transition: none;
  }

  .section-labels--paste .section-label,
  .is-label-scene-visible .section-labels--paste .section-label {
    opacity: 1;
    transform: rotate(var(--label-rotation));
    transition: none;
  }

  .section-label-track,
  .is-label-scene-visible .section-label-track {
    animation-play-state: paused;
  }
}

/* Lower-page panel */
.page-main {
  position: relative;
  z-index: 2;
  margin-top: -225px;
}

.content-panel {
  width: min(var(--content), calc(100% - 64px));
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 0 9px rgb(0 0 0 / 18%);
}

.panel-heading {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 115px;
  place-items: center;
  margin: 0;
  background: none;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.235em;
  line-height: 45px;
}

.panel-heading::before {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../img/decor/panel-heading-fvl2.png") center top / auto 115px
    no-repeat;
  content: "";
  pointer-events: none;
}

.panel-heading__text {
  position: relative;
  z-index: 1;
  text-align: center;
}

.panel-section {
  position: relative;
  padding: 70px 150px;
}

.panel-section + .panel-heading {
  margin-top: 25px;
}

.guidance-panel > .panel-section--overview {
  padding-top: 42px;
  padding-bottom: 44px;
}

.guidance-panel > .attention-block--health {
  padding-top: 27px;
  padding-bottom: 223.453125px;
}

.guidance-panel > .panel-heading--transport {
  margin-top: 129px;
  transform: translateY(-6px);
}

.overview-table {
  display: grid;
  width: 650px;
  max-width: 100%;
  grid-template-columns: 120px 1fr;
  gap: 34px 30px;
  margin: 0 auto;
  font-size: 20px;
}

.overview-table dt {
  font-weight: 700;
  letter-spacing: 0.25em;
}

.overview-table dd {
  margin: 0;
  font-weight: 500;
}

.attention-block {
  padding-top: 110px;
  background: url("../img/decor/attention.png") center 73px / 1300px 732px
    no-repeat;
}

.attention-block::before {
  position: absolute;
  z-index: 0;
  left: 50%;
  width: 800px;
  background: #fff;
  content: "";
  transform: translateX(-50%);
}

.attention-block > * {
  position: relative;
  z-index: 1;
}

.guidance-panel > .attention-block--health::before {
  top: 246px;
  bottom: 191px;
}

.guidance-panel > .attention-block--transport {
  padding-top: 49px;
  padding-bottom: 160.953125px;
  background-position: center 59px;
}

.guidance-panel > .attention-block--transport::before {
  top: 199px;
  bottom: 127px;
}

.attention-title {
  display: grid;
  width: 259px;
  min-height: 67px;
  max-width: 100%;
  place-items: center;
  margin: 0 auto 35px;
  padding: 0 5px;
  background: var(--yellow);
  font-family: var(--font-display);
  font-size: 50px;
  font-weight: 400;
  line-height: 1;
}

.attention-lead {
  margin: 0 auto 45px;
  font-size: 26px;
  font-weight: 800;
  line-height: 45px;
  text-align: center;
}

.attention-list {
  width: 650px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.guidance-panel .attention-list {
  width: 610px;
}

.guidance-panel .attention-list li {
  font-size: 18px;
}

.attention-list li {
  position: relative;
  padding-left: 32px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.9;
}

.attention-list li + li {
  margin-top: 20px;
}

.attention-list .attention-list__item--line-28 {
  line-height: 28px;
}

.attention-list .attention-list__item--line-32 {
  line-height: 32px;
}

.attention-list .attention-list__item--line-35 {
  line-height: 35px;
}

.attention-list .attention-list__item--gap-tight {
  margin-top: 11px;
}

.attention-list .attention-list__item--gap-wide {
  margin-top: 25px;
}

.attention-list li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #aaa;
  content: "";
}

.transport-icons {
  width: 520px;
  aspect-ratio: 513 / 96;
  margin: 28px auto 0;
}

.shuttle {
  padding-top: 69px;
  padding-bottom: 60.990625px;
  text-align: center;
}

.shuttle__eyebrow {
  margin: 0 0 -5px;
  font-size: 18px;
  font-weight: 700;
  line-height: 45px;
}

.shuttle h3 {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 800;
  line-height: 45px;
}

.shuttle__copy {
  margin: 0 0 29px;
  font-size: 17px;
  font-weight: 500;
  line-height: 28px;
}

.shuttle__button {
  margin: 0 auto 81px;
}

.shuttle-days {
  display: grid;
  width: 720px;
  max-width: 100%;
  grid-template-columns: repeat(2, 1fr);
  gap: 90px;
  margin: 0 auto 58px;
}

.shuttle-day {
  font-family: var(--font-display);
  line-height: 1;
}

.shuttle-day small {
  display: block;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 45px;
}

.shuttle-day__date {
  display: flex;
  align-items: baseline;
  justify-content: center;
  font-size: 88px;
}

.festival-date__slash,
.shuttle-day__date-slash {
  align-self: center;
  font-size: 66.6667%;
  line-height: 1;
}

.shuttle-day__weekday {
  font-size: 22px;
}

.shuttle-day__time {
  display: block;
  margin-top: 15px;
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 700;
}

.guidance-notes {
  width: 730px;
  max-width: 100%;
  margin: 0 auto;
  font-size: 17px;
  font-weight: 500;
  line-height: 36px;
  text-align: left;
}

.guidance-notes strong {
  color: #f00;
  font-weight: 700;
}

.guidance-notes p {
  margin: 0;
}

.guidance-notes p + p {
  margin-top: 24px;
}

.coupon-section {
  position: relative;
  padding: 41px 150px 89.203125px;
  text-align: center;
}

.coupon-section::before {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 50%;
  width: 100vw;
  height: 1408px;
  background: url("../img/decor/coupon.png") center -292.71875px / 1920px 1408px no-repeat;
  content: "";
  pointer-events: none;
  transform: translateX(-50%);
}

.guidance-panel {
  background-color: #fff;
}

.guidance-panel + .home-return {
  margin: 90.765625px auto 147px;
}

.coupon-ribbon {
  position: relative;
  z-index: 2;
  width: 606px;
  margin: -3px auto -28px;
}

.coupon-placeholder {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  margin: 0 auto 42px;
}

.coupon-placeholder img {
  display: block;
  width: 100%;
  height: auto;
}

.coupon-section h3 {
  margin: 0 0 25px;
  font-size: 28px;
  font-weight: 700;
  line-height: 45px;
}

.coupon-options {
  display: grid;
  width: 750px;
  max-width: 100%;
  grid-template-columns: repeat(2, 1fr);
  gap: 38px;
  margin: 0 auto 35px;
}

.coupon-option {
  min-height: 181px;
  padding: 18px 20px;
  border: 1px solid #aaa;
  font-size: 24px;
  font-weight: 600;
  line-height: 36px;
  text-align: left;
}

.coupon-option__title {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #aaa;
  font-size: 24px;
  line-height: 45px;
}

.coupon-option__title img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.coupon-option__detail {
  display: block;
  text-align: center;
}

.coupon-copy {
  width: 758px;
  max-width: 100%;
  margin: 0 auto;
  font-size: 17px;
  font-weight: 500;
  line-height: 28px;
  text-align: left;
}

/* Event page */
.event-page-main {
  position: relative;
  z-index: 2;
  margin-top: -315px;
  padding: 86px 0 26px;
  background-image:
    url("../img/decor/event-page.png"),
    url("../img/decor/event-page.png");
  background-position:
    center top,
    center 1836px;
  background-repeat: no-repeat;
  background-size: 1920px 1860px;
}

.event-page-main .filter-tabs {
  width: 536px;
  grid-template-columns: repeat(3, 177px);
  column-gap: 2.5px;
  margin: 0 auto 84px;
}

.event-page-main .filter-tab {
  display: grid;
  min-height: 45px;
  padding: 7px 12px;
  border-left: 0;
  font-size: 20px;
  line-height: 30px;
  overflow-wrap: anywhere;
  place-items: center;
}

.event-page-main .event-card-grid {
  width: 1300px;
  grid-template-columns: repeat(3, 408px);
  gap: 38px;
}

.event-page-main .event-card {
  background: #96cb00;
}

.event-page-main .event-card__media {
  aspect-ratio: 408 / 304;
}

.event-page-main .event-card__title {
  min-height: 101px;
  padding: 22px 24px 15px;
  font-size: 20px;
  line-height: 32px;
}

.event-page-main .home-return {
  margin-top: 141px;
}

/* Access map */
.map-panel {
  padding-bottom: 36.234375px;
}

.map-layouts {
  display: grid;
  width: 730px;
  max-width: 100%;
  grid-template-columns: repeat(2, 333px);
  gap: 64px;
  margin: 13px auto 169px;
}

.map-layouts img {
  width: 100%;
  aspect-ratio: 564 / 730;
}

.minor-heading {
  width: max-content;
  margin: 0 auto 40px;
  padding: 0 43.5px 13px;
  border-bottom: 1px solid #555;
  font-size: 28px;
  font-weight: 800;
  line-height: 45px;
}

.campus-map {
  width: 1010px;
  max-width: calc(100% + 10px);
  aspect-ratio: 812 / 579;
  margin: 0 0 125px -5px;
}

.map-attention {
  position: relative;
  z-index: 0;
  width: calc(100% + 300px);
  margin-left: -150px;
  padding-top: 55px;
  background: url("../img/decor/attention.png") center 20px / 100% 732px
    no-repeat;
}

.map-attention::before {
  position: absolute;
  z-index: 0;
  top: 159px;
  left: 50%;
  width: 800px;
  bottom: 243px;
  background: #fff;
  content: "";
  transform: translateX(-50%);
}

.map-attention > * {
  position: relative;
  z-index: 1;
}

.map-attention .attention-lead {
  margin-bottom: -2px;
}

.map-attention .attention-list {
  width: 610px;
}

.map-attention .attention-list li {
  font-size: 18px;
}

.map-attention .transport-icons {
  width: 513px;
  margin-top: 45px;
}

.map-attention .black-button {
  margin: 224px auto 0;
}

.home-return--map {
  margin: 104px auto 147px;
}

/* Footer */
.site-footer {
  position: relative;
  overflow: hidden;
  background: url("../img/decor/footer.png") center top / cover no-repeat;
  color: #fff;
}

.site-footer__shade {
  position: absolute;
  inset: 0;
  background: rgb(25 27 24 / 89%);
}

.site-footer__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 64px 24px 27.625px;
}

.footer-nav {
  display: flex;
  width: 949px;
  max-width: 100%;
  justify-content: space-between;
  gap: 0;
  margin-bottom: 150px;
}

.footer-nav .site-nav__link {
  flex: 0 0 auto;
}

.footer-nav .site-nav__jp {
  min-height: auto;
  padding: 0;
  background: transparent;
  font-size: 17px;
  font-weight: 500;
}

.footer-nav .site-nav__en {
  padding-top: 2px;
  color: #fff;
  font-family: var(--font-serif);
  font-size: 14px;
}

.university-logo {
  display: block;
  width: 425px;
  max-width: 78%;
  aspect-ratio: 425 / 60.13;
  margin-bottom: 24px;
}

.university-logo img {
  width: 100%;
  height: 100%;
}

.footer-socials {
  display: flex;
  gap: 20px;
  margin-bottom: 48px;
}

.footer-social {
  width: 52px;
  height: 52px;
}

.site-footer small {
  font-family: var(--font-serif);
  font-size: 12px;
  line-height: 36px;
}

body:not([data-page="home"]) .site-footer__inner {
  padding-bottom: 30.234375px;
}

@media (min-width: 1101px) {
  .overview-table dt,
  .overview-table dd {
    white-space: nowrap;
  }

  .guidance-panel > .attention-block--health .attention-title {
    transform: translate(-2.5px, 8px);
  }

  .guidance-panel > .attention-block--transport .attention-title {
    transform: translate(-2.5px, -4.453125px);
  }

  .guidance-panel > .attention-block--health .attention-lead {
    margin-bottom: 70px;
  }

  .guidance-panel > .attention-block--transport .attention-lead {
    margin-bottom: 49px;
  }

  .coupon-options {
    transform: translateX(-6.5px);
  }

  .map-attention .attention-title {
    transform: translate(-2.5px, 0.234375px);
  }

  .map-attention {
    padding-top: 4.6px;
  }

  .map-attention .attention-lead {
    margin-bottom: 52px;
  }

  .map-attention .transport-icons {
    margin-top: 23px;
  }
}

/* Responsive behavior follows the previous site because XD contains PC artboards only. */
@media (max-width: 1700px) {
  .site-header__inner {
    width: calc(100% - 40px);
    margin: 0 auto;
  }

  .site-nav {
    width: calc(100% - 190px);
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
    margin-left: 0;
  }

  .site-nav__jp {
    font-size: 14px;
  }

  .site-nav__en {
    font-size: 12px;
  }

  .header-social {
    width: 44px;
    height: 44px;
  }
}

@media (min-width: 768px) and (max-width: 1598px) {
  .festival-date {
    width: calc(100% - 64px);
  }

  .top-outline {
    display: grid;
    min-height: 0;
    grid-template-areas:
      "heading heading"
      "mark copy";
    grid-template-columns: minmax(260px, 465px) minmax(0, 650px);
    align-items: center;
    justify-content: center;
    gap: 70px clamp(40px, 6vw, 100px);
    padding: 90px 48px 110px;
    background-size: auto 1080px;
  }

  .top-outline .section-heading {
    position: static;
    grid-area: heading;
    transform: none;
  }

  .top-outline__mark {
    position: static;
    width: min(465px, 100%);
    grid-area: mark;
  }

  .top-outline__copy {
    position: static;
    width: 100%;
    grid-area: copy;
    overflow-wrap: anywhere;
  }

  .top-event .event-card-grid {
    width: min(1000px, calc(100% - 64px));
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .schedule-days {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .schedule-row {
    grid-template-columns: clamp(150px, 16vw, 251.5px) minmax(0, 1fr);
  }

  .schedule-events {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .schedule-item {
    min-width: 0;
    padding-right: clamp(12px, 1.5vw, 24px);
    padding-left: clamp(12px, 1.5vw, 24px);
  }

  .schedule-item__title {
    font-size: clamp(17px, 1.4vw, 22px);
  }

  .schedule-item__place,
  .schedule-item__detail {
    font-size: clamp(13px, 1.05vw, 17px);
  }

  .event-page-main .event-card-grid {
    width: calc(100% - 64px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 2vw, 38px);
  }

  .archives-grid {
    width: min(880px, calc(100% - 64px));
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .attention-block::before {
    max-width: calc(100% - 80px);
  }
}

@media (min-width: 768px) and (max-width: 820px) {
  .archive-year {
    font-size: 46px;
  }
}

@media (max-width: 1200px) {
  .schedule-row {
    grid-template-columns: 150px 1fr;
  }

  .schedule-events {
    gap: 14px;
  }
}

@media (min-width: 768px) and (max-width: 1100px) {
  .site-header__inner {
    width: calc(100% - 24px);
  }

  .site-nav {
    width: calc(100% - 140px);
    gap: 6px;
  }

  .site-nav__jp {
    font-size: clamp(10px, 1.2vw, 13px);
  }

  .site-nav__en {
    padding-top: 3px;
    font-size: 9px;
  }

  .header-socials {
    right: 0;
    gap: 5px;
  }

  .header-social {
    width: 36px;
    height: 36px;
  }

  .header-social img {
    height: auto;
  }

  .time-schedule {
    padding-bottom: 110px;
  }

  .schedule-row {
    grid-template-columns: 1fr;
    padding: 25px;
  }

  .schedule-time {
    margin-bottom: 25px;
    font-size: 48px;
    text-align: left;
  }

  .schedule-events {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .map-panel .panel-section {
    --map-section-gutter: clamp(32px, calc(35.54vw - 241px), 150px);

    padding-right: var(--map-section-gutter);
    padding-left: var(--map-section-gutter);
  }

  .map-layouts {
    width: min(730px, 100%);
    grid-template-columns: repeat(2, minmax(0, 333px));
    justify-content: center;
    gap: clamp(8px, calc(16.87vw - 121.6px), 64px);
    margin-bottom: clamp(70px, calc(29.82vw - 159px), 169px);
  }

  .campus-map {
    width: 100%;
    max-width: 100%;
    margin-bottom: clamp(90px, calc(10.54vw + 9px), 125px);
    margin-left: 0;
  }

  .map-attention {
    width: calc(100% + var(--map-section-gutter) + var(--map-section-gutter));
    margin-left: calc(0px - var(--map-section-gutter));
    padding-top: clamp(4.6px, calc(171.6px - 15.18vw), 55px);
    background-size: 100% auto;
  }

  .map-attention::before {
    max-width: calc(100% - 80px);
  }

  .map-attention .attention-lead {
    margin-bottom: clamp(32px, calc(6.02vw - 14.2px), 52px);
  }

  .map-attention .attention-list {
    width: min(610px, calc(100% - 128px));
  }

  .map-attention .transport-icons {
    width: min(513px, calc(100% - 128px));
    margin-top: clamp(23px, calc(95.93px - 6.63vw), 45px);
  }

  .map-attention .attention-list li br {
    display: none;
  }

  .desktop-only-break {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 900px) {
  .event-page-main .event-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .coupon-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .desktop-only-break {
    display: none;
  }

  .site-header {
    position: fixed;
    top: 0;
    pointer-events: none;
  }

  .menu-button {
    position: absolute;
    z-index: 3;
    top: 16px;
    right: 16px;
    display: grid;
    width: 54px;
    height: 54px;
    padding: 13px;
    place-content: center;
    gap: 6px;
    border: 1px solid #fff;
    border-radius: 50%;
    background: #000;
    box-shadow: 0 3px 8px rgb(0 0 0 / 30%);
    pointer-events: auto;
  }

  .menu-button span {
    display: block;
    width: 25px;
    height: 2px;
    background: #fff;
    transition:
      transform 0.25s,
      opacity 0.25s;
  }

  .menu-button[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-button[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .site-header__inner {
    position: fixed;
    inset: 0;
    display: flex;
    width: 100%;
    align-items: center;
    flex-direction: column;
    justify-content: flex-start;
    gap: 30px;
    padding: 90px 0 40px;
    overflow-y: auto;
    background: #018acb;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
    transition:
      opacity 0.2s,
      transform 0.2s;
  }

  .site-header__inner.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav {
    display: grid;
    width: min(430px, calc(100% - 60px));
    flex: 0 0 auto;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .site-nav__jp {
    min-height: 38px;
    padding-top: 7px;
    font-size: 16px;
  }

  .site-nav__en {
    padding-top: 2px;
  }

  .header-socials {
    position: static;
    top: auto;
    right: auto;
    padding: 0;
  }

  .hero-grid {
    height: 760px;
  }

  .site-grid-background {
    background-size: auto max(760px, 100vh);
  }

  .top-hero::before,
  .page-hero::before {
    background-size: auto 760px;
  }

  .page-hero::before {
    background-position: center -39px;
  }

  .hero-brand {
    top: 80px;
    width: 90%;
  }

  .hero-brand__main {
    font-size: clamp(18px, 5vw, 27px);
  }

  .hero-brand__sub {
    font-size: clamp(13px, 3.8vw, 18px);
  }

  .top-hero__mark {
    top: 145px;
    left: 50%;
    width: min(520px, 88vw);
  }

  .festival-date {
    top: 515px;
    width: 96%;
  }

  .festival-date__year {
    margin-bottom: 4px;
    font-size: 31px;
    transform: none;
  }

  .festival-date__days {
    gap: 20px;
  }

  .festival-date__number {
    font-size: clamp(52px, 11.5vw, 88px);
    line-height: 1;
    transform: none;
  }

  .festival-date__weekday {
    font-size: 14px;
  }

  .festival-date__note {
    margin-top: 16px;
    padding: 0 12px;
    font-size: clamp(12px, 3.2vw, 13px);
    line-height: 1.7;
  }

  .page-hero__brand {
    top: 80px;
  }

  .page-hero__brand .hero-brand__main {
    font-size: 13px;
  }

  .page-hero__brand .hero-brand__sub {
    font-size: 10px;
  }

  .page-hero__mark {
    top: 145px;
    width: 250px;
  }

  .page-title {
    top: 485px;
    left: 50%;
    font-size: clamp(62px, 15vw, 90px);
  }

  .page-title__jp,
  .section-heading__jp {
    margin-top: 20px;
    font-size: clamp(15px, 4.2vw, 18px);
    line-height: 1.55;
  }

  .section-heading {
    font-size: clamp(64px, 14vw, 92px);
  }

  .section-heading__jp {
    margin-top: 16px;
  }

  .top-outline {
    min-height: 0;
    padding: 70px 24px 90px;
    background-size: auto 920px;
  }

  .top-outline .section-heading {
    position: static;
    transform: none;
  }

  .top-outline__mark {
    position: static;
    width: min(420px, 82vw);
    margin: 80px auto 15px;
  }

  .top-outline__copy {
    position: static;
    width: min(620px, 100%);
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.9;
  }

  .top-event {
    padding: 0 0 100px;
    background-size: auto 1080px;
    background-repeat: repeat-y;
  }

  .top-event .section-heading {
    padding-top: 75px;
  }

  .filter-tabs {
    width: min(540px, calc(100% - 40px));
    margin: 42px auto 48px;
  }

  .top-event .event-card-grid,
  .event-card-grid {
    width: min(520px, calc(100% - 40px));
    grid-template-columns: 1fr;
  }

  .top-event__more {
    margin-top: 50px;
  }

  .time-schedule {
    padding: 90px 0;
    background-size: auto 820px;
  }

  .section-label-group {
    gap: 10px;
    padding-right: 10px;
  }

  .section-label-group .section-label {
    height: 87px;
  }

  .schedule-days {
    max-width: calc(100% - 30px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .schedule-day {
    min-height: 85px;
  }

  .schedule-day__date {
    font-size: clamp(46px, 13vw, 54px);
  }

  .schedule-day__year {
    font-size: clamp(17px, 5.2vw, 22px);
  }

  .schedule-day__weekday {
    font-size: clamp(13px, 4vw, 16px);
  }

  .schedule-table {
    max-width: calc(100% - 30px);
  }

  .schedule-row {
    grid-template-columns: 1fr;
    padding: 25px;
  }

  .schedule-time {
    margin-bottom: 25px;
    font-size: clamp(40px, 11vw, 48px);
    line-height: 1;
    text-align: left;
  }

  .schedule-events {
    grid-template-columns: 1fr;
  }

  .schedule-item {
    min-height: 0;
    padding: 18px 20px;
  }

  .schedule-item__title {
    font-size: clamp(18px, 5vw, 20px);
    line-height: 1.5;
  }

  .schedule-item__place,
  .schedule-item__detail {
    font-size: clamp(15px, 4vw, 16px);
    line-height: 1.65;
  }

  .archives {
    padding: 90px 0;
    background-size: auto 1860px;
    background-repeat: repeat-y;
  }

  .archives-grid {
    width: min(600px, calc(100% - 40px));
    grid-template-columns: repeat(2, 1fr);
  }

  .page-main {
    margin-top: -100px;
  }

  .content-panel {
    width: calc(100% - 32px);
  }

  .panel-heading {
    min-height: 120px;
    padding: 22px 24px;
    font-size: clamp(21px, 5.8vw, 26px);
    line-height: 1.55;
  }

  .panel-section {
    padding: 55px 32px;
  }

  .attention-block {
    background-size: 850px auto;
  }

  .guidance-panel > .attention-block--health {
    padding-top: 52px;
    padding-bottom: 128px;
  }

  .guidance-panel > .attention-block--health::before {
    top: 122px;
    bottom: 96px;
  }

  .guidance-panel > .panel-heading--transport {
    margin-top: 25px;
  }

  .guidance-panel > .attention-block--transport {
    padding-top: 110px;
    padding-bottom: 55px;
  }

  .guidance-panel > .attention-block--transport::before {
    top: 175px;
    bottom: 21px;
  }

  .attention-block::before {
    width: calc(100% - 48px);
  }

  .attention-title {
    font-size: clamp(34px, 11vw, 42px);
    overflow-wrap: anywhere;
  }

  .attention-lead {
    margin-bottom: 32px;
    font-size: clamp(17px, 4.6vw, 18px);
    line-height: 1.8;
  }

  .overview-table {
    font-size: clamp(16px, 4.3vw, 18px);
    line-height: 1.85;
  }

  .guidance-panel .attention-list li,
  .map-attention .attention-list li {
    font-size: 16px;
    line-height: 1.9;
  }

  .shuttle__eyebrow {
    font-size: 15px;
    line-height: 1.7;
  }

  .minor-heading,
  .shuttle h3,
  .coupon-section h3 {
    font-size: clamp(21px, 5.8vw, 24px);
    line-height: 1.55;
  }

  .shuttle__copy,
  .guidance-notes,
  .coupon-copy {
    font-size: 16px;
    line-height: 1.85;
  }

  .shuttle-day small {
    font-size: 14px;
    line-height: 1.6;
  }

  .shuttle-day__date {
    font-size: clamp(64px, 21vw, 84px);
  }

  .shuttle-day__weekday {
    font-size: clamp(16px, 4.6vw, 20px);
  }

  .shuttle-day__time {
    font-size: clamp(20px, 5.4vw, 23px);
  }

  .coupon-option {
    min-height: 0;
    font-size: clamp(17px, 4.6vw, 19px);
    line-height: 1.6;
  }

  .coupon-option__title {
    font-size: clamp(18px, 5vw, 20px);
    line-height: 1.55;
  }

  .coupon-section::before {
    background-size: auto 1200px;
  }

  .event-page-main {
    margin-top: -120px;
    padding: 55px 0 120px;
    background-size: auto 1540px;
  }

  .event-page-main .filter-tabs {
    width: min(536px, calc(100% - 32px));
    grid-template-columns: repeat(3, 1fr);
    column-gap: 2px;
    margin-bottom: 42px;
  }

  .event-page-main .filter-tab {
    min-height: 44px;
    padding: 8px 6px;
    font-size: clamp(13px, 3.8vw, 15px);
    letter-spacing: 0.04em;
    line-height: 1.35;
  }

  .event-page-main .event-card-grid {
    width: calc(100% - 32px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .event-page-main .event-card__media {
    aspect-ratio: 408 / 304;
  }

  .event-page-main .event-card__title {
    min-height: 0;
    padding: 14px 12px 16px;
    font-size: clamp(14px, 3.8vw, 15px);
    line-height: 1.6;
  }

  .event-page-main .home-return {
    margin-top: 70px;
  }

  .map-panel {
    padding-bottom: 0;
  }

  .map-layouts {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 70px;
  }

  .campus-map {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 90px;
  }

  .map-attention {
    width: calc(100% + 64px);
    margin-left: -32px;
    background-size: 850px auto;
  }

  .map-attention::before {
    top: 145px;
    width: calc(100% - 48px);
  }

  .map-attention .attention-list {
    width: min(610px, calc(100% - 64px));
  }

  .map-attention .attention-lead {
    width: min(610px, calc(100% - 48px));
    margin-bottom: 32px;
  }

  .map-attention .attention-list li br {
    display: none;
  }

  .map-attention .transport-icons {
    width: min(513px, calc(100% - 70px));
  }

  .map-attention .black-button {
    margin-top: 100px;
  }

  .time-schedule .section-heading {
    font-size: clamp(54px, 14vw, 82px);
  }

  .footer-nav {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 60px;
  }

  .site-footer__inner {
    padding: 64px 24px 24px;
  }

  body:not([data-page="home"]) .site-footer__inner {
    padding-bottom: 24px;
  }

  .footer-socials {
    margin-bottom: 34px;
  }
}

@media (max-width: 600px) {
  .hero-grid {
    height: 690px;
  }

  .irodori-stage > svg > .irodori-word:not(:nth-of-type(3n)) {
    display: none;
  }

  .site-grid-background {
    background-size: auto max(690px, 100vh);
  }

  .top-hero::before,
  .page-hero::before {
    background-size: auto 690px;
  }

  .page-hero::before {
    background-position: center clamp(60px, calc(24vw - 35px), 80px);
    background-size: auto clamp(347px, 96vw, 460px);
  }

  .top-hero__mark {
    top: 155px;
  }

  .festival-date {
    top: 500px;
  }

  .festival-date__days {
    gap: clamp(8px, 2.5vw, 15px);
  }

  .festival-date__number {
    font-size: clamp(46px, 13vw, 68px);
  }

  .irodori-loader {
    gap: 10px;
  }

  .irodori-loader__label {
    font-size: 14px;
  }

  .irodori-loader__palette {
    gap: 3px;
  }

  .irodori-loader__palette i {
    width: 4px;
    height: 11px;
  }

  .page-hero__mark {
    top: 150px;
    width: 220px;
  }

  .page-title {
    top: 470px;
  }

  .filter-tab {
    padding: 7px 5px;
    font-size: 14px;
  }

  .top-outline__mark {
    margin-top: 55px;
  }

  .archives-grid {
    grid-template-columns: 1fr;
  }

  .overview-table {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .overview-table dd {
    margin-bottom: 18px;
  }

  .attention-block {
    padding-top: 85px;
  }

  .guidance-panel > .attention-block--health,
  .guidance-panel > .attention-block--transport {
    padding-top: 85px;
  }

  .guidance-panel > .attention-block--health::before {
    top: 155px;
  }

  .attention-lead br {
    display: none;
  }

  .shuttle-days {
    grid-template-columns: 1fr;
  }

  .shuttle-days {
    gap: 50px;
  }

  .coupon-ribbon {
    margin-bottom: -16px;
  }

  .coupon-placeholder {
    max-width: 360px;
  }

  .coupon-option {
    padding-right: 16px;
    padding-left: 16px;
  }

  .coupon-option__title {
    gap: 10px;
  }

  .coupon-option__title img {
    width: 44px;
    height: 44px;
  }

  .minor-heading {
    padding-right: 15px;
    padding-left: 15px;
    font-size: clamp(21px, 5.8vw, 24px);
  }

  .footer-nav {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .filter-tab,
  .event-card__image,
  .schedule-day.is-muted::before,
  .archive-card > img,
  .archive-card::after,
  .archive-more {
    transition: none;
  }

  .top-hero.is-irodori-intro .irodori-loader,
  .top-hero.is-irodori-intro .hero-brand,
  .top-hero.is-irodori-intro .top-hero__mark,
  .top-hero.is-irodori-intro .festival-date,
  .irodori-loader__palette i {
    animation: none;
  }

  .top-hero.is-irodori-intro .irodori-loader {
    opacity: 0;
  }

  .top-hero.is-irodori-intro .hero-brand,
  .top-hero.is-irodori-intro .top-hero__mark,
  .top-hero.is-irodori-intro .festival-date {
    opacity: 1;
  }

  .irodori-word__echo {
    animation: none;
    display: none;
  }

}

/* WordPress dynamic content wrappers. */
.event-card__link,
a.schedule-item {
  display: block;
  color: inherit;
  text-decoration: none;
}

.filter-tab {
  text-decoration: none;
}

.event-pagination {
  margin: 64px auto 0;
}

.event-pagination .page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding: 0;
  list-style: none;
}

.event-pagination a,
.event-pagination .current {
  display: grid;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  color: #111;
  text-decoration: none;
  border: 1px solid #111;
  place-items: center;
}

.event-pagination .current {
  color: #fff;
  background: #111;
}

/* Event and archive detail templates. */
.detail-page-main,
.archives-page-main {
  position: relative;
  z-index: 2;
  isolation: isolate;
}

.detail-page-main--event {
  margin-top: -315px;
  padding-top: 87px;
  padding-bottom: 147px;
  background: url("../img/decor/event-page.png") center top / 1920px 1860px
    no-repeat;
}

.detail-page-main--event::before,
.detail-page-main--archives::before {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  background-position: center top;
  background-repeat: repeat-y;
  background-size: 1920px 1860px;
  content: "";
  pointer-events: none;
}

.detail-page-main--event::before {
  top: 1832px;
  background-image: url("../img/decor/event-page.png");
}

.detail-page-main--archives {
  margin-top: -346px;
  padding-top: 118px;
  padding-bottom: 147px;
  background: url("../img/decor/archives-page.png") center top / 1920px 1860px
    no-repeat;
}

.detail-page-main--archives::before {
  top: 1804px;
  background-image: url("../img/decor/archives-page.png");
}

.event-detail__content {
  width: 910px;
  max-width: calc(100% - 120px);
  margin: 0 auto;
  padding: 89px 0 116px;
}

.event-detail__image {
  width: 100%;
  aspect-ratio: 910 / 679;
  object-fit: cover;
  object-position: center;
}

.event-detail__image--paint {
  object-position: 61.46% 26.67%;
}

.event-detail__meta {
  margin: 17px 0 0;
}

.event-detail__meta-row {
  display: grid;
  min-width: 0;
  grid-template-columns: 183px minmax(0, 1fr);
  align-items: center;
  padding: 25px 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 32px;
}

.event-detail__meta-row:not(:last-child) {
  box-shadow: inset 0 -1px #b7b7b7;
}

.event-detail__meta dt {
  font-weight: 700;
  letter-spacing: 0.1em;
}

.event-detail__meta dd {
  min-width: 0;
  margin: 0;
}

.event-detail__body {
  margin: 62px 0 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 36px;
}

.event-detail__body > :first-child {
  margin-top: 0;
}

.event-detail__body > :last-child {
  margin-bottom: 0;
}

.detail-pagination {
  display: flex;
  width: 780px;
  max-width: 100%;
  align-items: center;
  justify-content: space-between;
  margin: 120px auto 0;
}

.detail-pagination__link {
  display: flex;
  align-items: center;
  gap: 13px;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 400;
  line-height: 42px;
}

.detail-pagination__link img {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
}

.detail-pagination__link--next img {
  transform: rotate(180deg);
}

.detail-return {
  margin-right: auto;
  margin-bottom: 147px;
  margin-left: auto;
}

.detail-return--event {
  margin-top: 104px;
  margin-bottom: 0;
}

.detail-return--archives {
  margin-top: 112px;
  margin-bottom: 0;
}

.archive-detail__content {
  width: 921px;
  max-width: calc(100% - 120px);
  margin: 0 auto;
  padding: 98px 0 101px;
  text-align: center;
}

.archive-detail__theme-label {
  display: grid;
  width: 259px;
  min-height: 67px;
  place-items: center;
  margin: 0 auto 37px;
  background: var(--purple);
  color: #fff;
  font-family: var(--font-display);
  font-size: 50px;
  font-weight: 400;
  line-height: 1;
}

.archive-detail__theme {
  margin: 0 0 97px;
  font-size: 36px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 69px;
}

.archive-detail__gallery-title {
  width: 283px;
  margin: 0 auto 37px;
  border-bottom: 1px solid #707070;
  font-size: 28px;
  font-weight: 800;
  line-height: 45px;
}

.archive-gallery {
  display: grid;
  width: 921px;
  max-width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 22.5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.archive-gallery__item,
.archive-gallery__placeholder {
  aspect-ratio: 292 / 202;
  background: rgb(181 181 181 / 17%);
}

.archive-gallery__item {
  overflow: hidden;
}

.archive-gallery__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.archive-detail__report {
  margin: -52px auto 70px;
}

/* Archive index added in the revised XD. */
.archives-page-main {
  margin-top: -346px;
  padding: 109px 0 144px;
  overflow: hidden;
  background: url("../img/decor/archives-page.png") center top / 1920px 1860px
    repeat-y;
}

.archives-grid--page {
  margin-top: 0;
}

.archives-grid--page .archive-card--current {
  border: 2px solid #fff;
  background: #32ffa6;
}

.archives-grid--page .archive-card:not(.archive-card--current) > img {
  position: absolute;
  top: var(--archive-image-top, 0);
  left: var(--archive-image-left, 0);
  width: var(--archive-image-width, 100%);
  max-width: none;
  height: auto;
  filter: grayscale(1);
}

.archives-grid--page .archive-card:not(.archive-card--current)::after {
  inset: 2px;
  background: rgb(255 255 255 / 20%);
  mix-blend-mode: color;
}

.archives-grid--page .archive-card--2025,
.archives-grid--page .archive-card--2024 {
  --archive-image-top: 0;
  --archive-image-left: -51.429%;
  --archive-image-width: 205.357%;
}

.archives-grid--page .archive-card--2023 {
  --archive-image-top: -28.571%;
  --archive-image-left: -47.143%;
  --archive-image-width: 194.286%;
}

.archives-grid--page .archive-card--2022 {
  --archive-image-top: -0.156%;
  --archive-image-left: -23.811%;
  --archive-image-width: 140.218%;
}

.archives-grid--page .archive-card--2021 {
  --archive-image-top: -0.023%;
  --archive-image-left: -28.401%;
  --archive-image-width: 156.803%;
}

.archives-grid--page .archive-card--2020 {
  --archive-image-top: -21.339%;
  --archive-image-left: -49.541%;
  --archive-image-width: 180.119%;
}

.archives-grid--page .archive-card--2018 {
  --archive-image-top: 0.079%;
  --archive-image-left: -3.571%;
  --archive-image-width: 169.084%;
}

.archives-grid--page .archive-card--2017 {
  --archive-image-top: -0.025%;
  --archive-image-left: -23.299%;
  --archive-image-width: 146.319%;
}

.archives-grid--page .archive-year {
  color: #a2a2a2;
  mix-blend-mode: difference;
}

.archives-grid--page .archive-more {
  width: 60px;
  height: 60px;
}

.archives-grid--page .archive-card.archive-card--featured > img,
.archives-grid--page .archive-card:hover > img,
.archives-grid--page .archive-card:focus-visible > img {
  filter: none;
}

.archives-grid--page .archive-card.archive-card--featured::after,
.archives-grid--page .archive-card:hover::after,
.archives-grid--page .archive-card:focus-visible::after {
  opacity: 0;
}

.archives-grid--page .archive-card.archive-card--featured .archive-more,
.archives-grid--page .archive-card:hover .archive-more,
.archives-grid--page .archive-card:focus-visible .archive-more {
  border: 1px solid #fff;
  background: transparent;
}

@media (max-width: 767px) {
  .detail-page-main--event,
  .detail-page-main--archives,
  .archives-page-main {
    margin-top: -120px;
    padding-top: 55px;
    background-position: center top;
    background-repeat: repeat-y;
    background-size: auto 1540px;
  }

  .detail-page-main--event {
    padding-bottom: 120px;
    background-image: url("../img/decor/event-page.png");
  }

  .detail-page-main--archives {
    padding-bottom: 120px;
    background-image: url("../img/decor/archives-page.png");
  }

  .detail-page-main--event::before,
  .detail-page-main--archives::before {
    content: none;
  }

  .event-detail__content,
  .archive-detail__content {
    width: calc(100% - 64px);
    max-width: none;
  }

  .event-detail__content {
    padding-top: 45px;
    padding-bottom: 70px;
  }

  .event-detail__meta {
    margin-top: 24px;
  }

  .event-detail__meta-row {
    grid-template-columns: 90px minmax(0, 1fr);
    padding: 18px 0;
    font-size: 16px;
    line-height: 1.75;
  }

  .event-detail__body {
    margin-top: 40px;
    font-size: 16px;
    line-height: 1.9;
  }

  .detail-pagination {
    margin-top: 60px;
  }

  .detail-pagination__link {
    gap: 9px;
    font-size: clamp(24px, 7vw, 28px);
    line-height: 1.35;
  }

  .detail-pagination__link img {
    width: 34px;
    height: 34px;
  }

  .detail-return--event,
  .detail-return--archives {
    margin-top: 70px;
  }

  .archive-detail__content {
    padding-top: 50px;
    padding-bottom: 70px;
  }

  .archive-detail__theme-label {
    width: min(220px, 100%);
    min-height: 60px;
    margin-bottom: 25px;
    font-size: clamp(36px, 10vw, 42px);
  }

  .archive-detail__theme {
    margin-bottom: 60px;
    font-size: clamp(24px, 7vw, 30px);
    line-height: 1.55;
  }

  .archive-detail__report {
    margin: -25px auto 50px;
  }

  .archive-detail__gallery-title {
    width: min(283px, 100%);
    margin-bottom: 28px;
    font-size: clamp(21px, 5.8vw, 24px);
    line-height: 1.55;
  }

  .archive-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .archives-page-main {
    padding: 55px 0 100px;
  }
}

@media (max-width: 600px) {
  .event-detail__meta-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .event-detail__meta dt {
    letter-spacing: 0.18em;
  }
}
 
@media (min-width: 1921px) {
  .page-hero {
    --edge-art-image: url("../img/decor/page-hero-words.png");
    --edge-art-height: 1080px;
    --edge-art-offset-y: -55px;
    --edge-art-repeat: no-repeat;
    --edge-art-z: 0;
  }

  .coupon-section {
    --edge-art-image: url("../img/decor/coupon.png");
    --edge-art-height: 1408px;
    --edge-art-offset-y: -292.71875px;
    --edge-art-repeat: no-repeat;
    --edge-art-layer-height: 1408px;
    --edge-art-layer-bottom: auto;
    --edge-art-left: calc(50% - 50vw);
    --edge-art-right: calc(50% - 50vw);
  }

  .event-page-main,
  .detail-page-main--event {
    --edge-art-image: url("../img/decor/event-page.png");
    --edge-art-height: 1860px;
    --edge-art-repeat: repeat-y;
  }

  .event-page-main {
    --edge-art-continuation-y: 1836px;
    --edge-art-continuation-repeat: no-repeat;
  }

  .detail-page-main--event {
    --edge-art-continuation-y: 1832px;
    --edge-art-continuation-repeat: repeat-y;
  }

  .detail-page-main--archives,
  .archives-page-main {
    --edge-art-image: url("../img/decor/archives-page.png");
    --edge-art-height: 1860px;
    --edge-art-repeat: repeat-y;
  }

  .detail-page-main--archives {
    --edge-art-continuation-y: 1804px;
    --edge-art-continuation-repeat: repeat-y;
  }

  .event-page-main,
  .detail-page-main--event,
  .detail-page-main--archives,
  .archives-page-main {
    isolation: isolate;
    background-image: none;
  }

  :is(
    .page-hero,
    .coupon-section,
    .event-page-main,
    .detail-page-main--event,
    .detail-page-main--archives,
    .archives-page-main
  )::before,
  :is(
    .page-hero,
    .coupon-section,
    .event-page-main,
    .detail-page-main--event,
    .detail-page-main--archives,
    .archives-page-main
  )::after {
    position: absolute;
    z-index: var(--edge-art-z, -1);
    top: 0;
    bottom: var(--edge-art-layer-bottom, 0);
    width: 960px;
    height: var(--edge-art-layer-height, auto);
    background-color: transparent;
    background-image: var(--edge-art-image);
    background-repeat: var(--edge-art-repeat, no-repeat);
    background-size: 1920px var(--edge-art-height);
    content: "";
    pointer-events: none;
    transform: none;
  }

  :is(
    .page-hero,
    .coupon-section,
    .event-page-main,
    .detail-page-main--event,
    .detail-page-main--archives,
    .archives-page-main
  )::before {
    right: auto;
    left: var(--edge-art-left, 0);
    background-position: left var(--edge-art-offset-y, top);
  }

  :is(
    .page-hero,
    .coupon-section,
    .event-page-main,
    .detail-page-main--event,
    .detail-page-main--archives,
    .archives-page-main
  )::after {
    right: var(--edge-art-right, 0);
    left: auto;
    background-position: right var(--edge-art-offset-y, top);
  }

  :is(
    .event-page-main,
    .detail-page-main--event,
    .detail-page-main--archives
  )::before,
  :is(
    .event-page-main,
    .detail-page-main--event,
    .detail-page-main--archives
  )::after {
    box-sizing: border-box;
    padding-top: var(--edge-art-continuation-y);
    background-image: var(--edge-art-image), var(--edge-art-image);
    background-repeat: no-repeat, var(--edge-art-continuation-repeat);
    background-size:
      1920px var(--edge-art-height),
      1920px var(--edge-art-height);
    background-origin: border-box, content-box;
    background-clip: border-box, content-box;
  }

  :is(
    .event-page-main,
    .detail-page-main--event,
    .detail-page-main--archives
  )::before {
    background-position: left top, left top;
  }

  :is(
    .event-page-main,
    .detail-page-main--event,
    .detail-page-main--archives
  )::after {
    background-position: right top, right top;
  }
}
