@charset "UTF-8";

@layer foundation, layout, component, project, utility;

/* Declaration order: local tokens; position; layout; size; spacing; overflow; decoration; typography; motion; interaction.
   Preserve the relative order of related shorthand/longhand declarations. */

@layer foundation {
  :root {
    /* Shared palette: reuse these colors instead of adding similar section-specific colors. */
    --color-access: #e8e8ff;
    --color-backdrop: #50305e33;
    --color-badge: #8ee0fd;
    --color-day1-line: #ffd4e6;
    --color-day1-soft: #fff2f8;
    --color-day1-text: #b72965;
    --color-day2-line: #cdebf8;
    --color-day2-soft: #f1fbff;
    --color-day3: #b47cdb;
    --color-day3-line: #e8d5f6;
    --color-day3-soft: #faf4ff;
    --color-day3-text: #8651ae;
    --color-hero-bottom: #cde5ff;
    --color-hero-glow: #ffffff55;
    --color-hero-top: #f9e1fc;
    --color-intro-bottom: #afeafa;
    --color-lilac: #ebb3fb;
    --color-link: #007fae;
    --color-menu-backdrop: #50305e99;
    --color-pink: #ff5099;
    --color-placeholder: #d9d9d9;
    --color-placeholder-text: #999;
    --color-primary: #00aff0;
    --color-surface: #fff;
    --color-text: #50305e;
    --color-tile-line: #ffffff66;
    --color-timetable: #e0f6ff;
    --color-transparent: transparent;

    /* Font family */
    --font-family-base: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
    --font-family-display: "Dela Gothic One", var(--font-family-base);

    /* Font size */
    --font-size-9: 9px;
    --font-size-10: 10px;
    --font-size-11: 11px;
    --font-size-12: 12px;
    --font-size-13: 13px;
    --font-size-14: 14px;
    --font-size-15: 15px;
    --font-size-16: 16px;
    --font-size-17: 17px;
    --font-size-18: 18px;
    --font-size-20: 20px;
    --font-size-22: 22px;
    --font-size-23: 23px;
    --font-size-24: 24px;
    --font-size-27: 27px;
    --font-size-28: 28px;
    --font-size-36: 36px;
    --font-size-40: 40px;

    /* Typography */
    --font-weight-bold: 700;
    --font-weight-medium: 500;
    --font-weight-regular: 400;
    --letter-spacing-display: .02em;
    --line-height-1: 1;
    --line-height-11: 1.1;
    --line-height-12: 1.2;
    --line-height-13: 1.3;
    --line-height-14: 1.4;
    --line-height-15: 1.5;
    --line-height-16: 1.6;
    --line-height-17: 1.7;
    --line-height-18: 1.8;
    --line-height-19: 1.9;
    --line-height-2: 2;

    /* Spacing */
    --space-2: 2px;
    --space-3: 3px;
    --space-4: 4px;
    --space-5: 5px;
    --space-6: 6px;
    --space-7: 7px;
    --space-8: 8px;
    --space-9: 9px;
    --space-10: 10px;
    --space-12: 12px;
    --space-13: 13px;
    --space-14: 14px;
    --space-15: 15px;
    --space-16: 16px;
    --space-18: 18px;
    --space-20: 20px;
    --space-22: 22px;
    --space-23: 23px;
    --space-24: 24px;
    --space-25: 25px;
    --space-26: 26px;
    --space-28: 28px;
    --space-30: 30px;
    --space-32: 32px;
    --space-35: 35px;
    --space-36: 36px;
    --space-38: 38px;
    --space-40: 40px;
    --space-45: 45px;
    --space-50: 50px;
    --space-60: 60px;
    --space-64: 64px;
    --space-65: 65px;
    --space-70: 70px;
    --space-86: 86px;
    --space-105: 105px;

    /* Border and shadow */
    --radius-2: 2px;
    --radius-8: 8px;
    --radius-12: 12px;
    --radius-20: 20px;
    --radius-circle: 50%;
    --radius-booth: 48px;
    --shadow-offset-2-2: 2px 2px 0;
    --shadow-offset-2-3: 2px 3px 0;
    --shadow-offset-3-3: 3px 3px 0;
    --shadow-offset-3-4: 3px 4px 0;
    --shadow-offset-4-4: 4px 4px 0;
    --shadow-offset-5-5: 5px 5px 0;
    --shadow-offset-7-7: 7px 7px 0;
    --shadow-offset-10-10: 10px 10px 0;

    /* Stacking order */
    --z-index-content: 2;
    --z-index-decoration: 1;
    --z-index-navigation: 20;
    --z-index-skip-link: 30;

    /* Motion */
    --duration-base: .2s;
    --duration-navigation: .25s;
    --duration-reveal: .8s;
    --duration-hero-entrance: 1s;
    --easing-reveal: cubic-bezier(.22, .68, .3, 1);

    /* Background */
    --dotted-gradient-edge: color-mix(in srgb, var(--color-badge) 45%, transparent);
    --dotted-gradient-overlay: linear-gradient(to right, var(--dotted-gradient-edge), var(--color-transparent) 12%, var(--color-transparent) 88%, var(--dotted-gradient-edge));
    /* Inline the wave so its mask also works in local file previews. */
    --image-wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='40' viewBox='0 0 240 40'%3E%3Cpath d='M0 12C60 12 60 40 120 40S180 12 240 12v28H0Z' fill='white'/%3E%3C/svg%3E");
    --tile-size: 30px;

    /* Layout and section spacing */
    --access-space: 130px;
    --booth-heading-gap: 20px;
    --booth-gap: clamp(32px, 3vw, 48px);
    --booth-content-padding: clamp(24px, 2.5vw, 40px);
    --container-gutter: 100px;
    --container-width: 1400px;
    --container-width-narrow: 1200px;
    --day-heading-gap: 40px;
    --guests-start: 100px;
    --heading-gap: 60px;
    --hero-catch-gap: 32px;
    --intro-heading-gap: 36px;
    --lead-after: 50px;
    --lead-overlap: 30px;
    --mc-list-gap: 30px;
    --nav-height: 68px;
    --notice-end: 90px;
    --section-end: 120px;
    --section-start: 112px;
    --timetable-end: 120px;
    --timetable-start: 128px;
  }

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

  html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-height) + 24px);
  }

  body {
    margin: 0;
    overflow-wrap: anywhere;
    background: var(--color-surface);
    color: var(--color-text);
    font-family: var(--font-family-base);
    font-size: var(--font-size-16);
    font-weight: var(--font-weight-medium);
    font-synthesis: none;
    line-height: var(--line-height-19);
  }

  h1, h2, h3, h4, p, figure, dl, dd {
    margin: 0;
  }

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

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

  button {
    /* Reset and inherit the complete font on native controls. */
    font: inherit;
  }

  button, summary, a {
    -webkit-tap-highlight-color: var(--color-transparent);
  }

  button, summary {
    touch-action: manipulation;
  }

  button:focus-visible, summary:focus-visible, a:focus-visible, [tabindex="0"]:focus-visible {
    outline: 3px solid var(--color-text);
    outline-offset: 6px;
  }

  @media (max-width: 1100px) {
    :root {
      --tile-size: 24px;
      --nav-height: 62px;
      --container-gutter: 70px;
      --section-start: 85px;
      --section-end: 85px;
      --guests-start: 85px;
      --timetable-start: 85px;
      --timetable-end: 85px;
      --access-space: 85px;
      --notice-end: 85px;
      --heading-gap: 45px;
      --lead-overlap: 20px;
    }

  }

  @media (max-width: 767px) {
    :root {
      --tile-size: 20px;
      --nav-height: 68px;
      --container-gutter: 40px;
      --section-start: 65px;
      --section-end: 65px;
      --guests-start: 65px;
      --timetable-start: 75px;
      --timetable-end: 75px;
      --access-space: 75px;
      --notice-end: 65px;
      --heading-gap: 32px;
      --lead-overlap: 10px;
      --lead-after: 30px;
      --day-heading-gap: 24px;
      --intro-heading-gap: 24px;
      --hero-catch-gap: 20px;
      --mc-list-gap: 18px;
      --booth-heading-gap: 15px;
      --radius-booth: 32px;
    }

    body {
      font-size: var(--font-size-14);
    }

    .is-menu-open {
      overflow: hidden;
    }

  }

  @media (prefers-reduced-motion: reduce) {
    html {
      scroll-behavior: auto;
    }

  }

}

@layer layout {
  /* Container */
  .l-container {
    position: relative;
    z-index: var(--z-index-content);
    width: min(var(--container-width), calc(100% - var(--container-gutter)));
    margin-inline: auto;
  }

  /* Container Narrow */
  .l-container--narrow {
    max-width: var(--container-width-narrow);
  }

  /* Section */
  .l-section {
    padding-block: var(--section-start) var(--section-end);
  }

  /* Hero Container */
  .l-hero-container {
    position: relative;
    z-index: var(--z-index-content);
    width: min(1440px, calc(100% - 100px));
    margin-inline: auto;
  }

  @media (max-width: 1100px) {
    .l-hero-container {
      width: calc(100% - 64px);
    }

  }

  @media (max-width: 767px) {
    .l-hero-container {
      width: calc(100% - 28px);
    }

  }

}

@layer component {
  /* Display Text */
  .c-display-text {
    font-family: var(--font-family-display);
    font-weight: var(--font-weight-regular);
    font-synthesis: none;
    letter-spacing: var(--letter-spacing-display);
    line-height: var(--line-height-15);
    /* Inherit the surrounding surface color to keep the thin stroke unobtrusive. */
    -webkit-text-stroke: .012em var(--display-stroke-color, var(--color-surface));
  }

  /* Day Theme */
  .c-day-theme {
    --day-color: var(--color-pink);
    --day-ink: var(--color-day1-text);
    --day-soft: var(--color-day1-soft);
    --day-line: var(--color-day1-line);
  }

  /* Day Theme Day */
  .c-day-theme--day2 {
    --day-color: var(--color-primary);
    --day-ink: var(--color-link);
    --day-soft: var(--color-day2-soft);
    --day-line: var(--color-day2-line);
  }

  .c-day-theme--day3 {
    --day-color: var(--color-day3);
    --day-ink: var(--color-day3-text);
    --day-soft: var(--color-day3-soft);
    --day-line: var(--color-day3-line);
  }

  /* Section Title */
  .c-section-title {
    color: var(--color-primary);
    text-align: center;
    font-size: clamp(30px, 3.65vw, 60px);
    line-height: var(--line-height-12);
    text-shadow: var(--shadow-offset-3-4) var(--color-lilac);
  }

  /* Section Lead */
  .c-section-lead {
    margin-block-start: calc(var(--heading-gap) - var(--lead-overlap));
    text-align: center;
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-20);
  }

  /* Section Note */
  .c-section-note {
    margin-block-start: var(--space-36);
    font-size: var(--font-size-14);
    text-align: center;
  }

  /* Tile Background */
  .c-tile-background {
    background-image: linear-gradient(to right, var(--color-tile-line) 1px, var(--color-transparent) 1px), linear-gradient(to bottom, var(--color-tile-line) 1px, var(--color-transparent) 1px);
    background-size: var(--tile-size) var(--tile-size);
  }

  /* Skip Link */
  .c-skip-link {
    position: fixed;
    z-index: var(--z-index-skip-link);
    top: 10px;
    left: 12px;
    padding: var(--space-8) var(--space-20);
    background: var(--color-surface);
    border: 2px solid var(--color-primary);
    transform: translateY(-160%);
  }

  .c-skip-link:focus {
    transform: translateY(0);
  }

  /* Site Nav */
  .c-site-nav {
    position: sticky;
    top: 0;
    z-index: var(--z-index-navigation);
    background: var(--color-surface);
  }

  :where(.is-ready) .c-site-nav {
    position: fixed;
    inset: 0 0 auto;
    visibility: hidden;
    transform: translateY(-100%);
    transition: transform var(--duration-navigation) ease, visibility var(--duration-navigation);
  }

  .c-site-nav.is-visible {
    visibility: visible;
    transform: translateY(0);
  }

  .c-site-nav__links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(var(--space-24), 3vw, var(--space-60));
    min-height: var(--nav-height);
    padding: var(--space-10) var(--space-24);
  }

  .c-site-nav__link {
    font-size: clamp(15px, 1.3vw, 24px);
    color: var(--color-primary);
    transition: color var(--duration-base);
  }

  .c-site-nav__link:hover {
    color: var(--color-pink);
  }

  .c-site-nav__toggle, .c-site-nav__backdrop {
    display: none;
  }

  /* Wave Edge Bottom */
  .c-wave-edge--bottom::after, .c-wave-edge--top::before {
    position: absolute;
    z-index: var(--z-index-content);
    left: 0;
    display: block;
    width: 100%;
    height: 40px;
    background-color: var(--color-surface);
    mask: var(--image-wave) repeat-x bottom / 240px 40px;
    content: "";
    pointer-events: none;
  }

  /* Match the adjacent dotted surface along the entire wave. */
  .p-introduction::after, .p-timetable::before, .p-timetable::after, .p-access::before {
    background-image: var(--dotted-gradient-overlay);
  }

  .c-wave-edge--bottom::after {
    bottom: -1px;
  }

  /* Wave Edge Top */
  .c-wave-edge--top::before {
    top: -1px;
    transform: rotate(180deg);
  }

  /* Dotted Background */
  .c-dotted-background {
    position: relative;
    background-image: radial-gradient(circle, var(--color-badge) 1.6px, var(--color-transparent) 1.8px), radial-gradient(circle, var(--color-badge) 1.6px, var(--color-transparent) 1.8px);
    background-size: 14px 14px;
    background-repeat: repeat;
  }

  .c-dotted-background::before {
    position: absolute;
    inset: 0;
    content: "";
    /* Tint the dots blue at both edges and keep the center white. */
    background: var(--dotted-gradient-overlay), linear-gradient(to right, var(--color-transparent), var(--color-surface) 10%, var(--color-surface) 90%, var(--color-transparent));
    pointer-events: none;
  }

  /* Map Link */
  .c-map-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-30);
    width: fit-content;
    margin: var(--space-36) auto 0;
    padding: var(--space-13) var(--space-30);
    background: var(--color-primary);
    box-shadow: var(--shadow-offset-4-4) var(--color-lilac);
    color: var(--color-surface);
    font-weight: var(--font-weight-bold);
    transition: background var(--duration-base);
  }

  .c-map-link:hover {
    background: var(--color-link);
  }

  .c-map-link__icon {
    font-size: var(--font-size-22);
    line-height: var(--line-height-1);
  }

  /* Back To Top */
  .c-back-to-top {
    position: fixed;
    z-index: var(--z-index-content);
    right: 35px;
    bottom: calc(35px + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    background: var(--color-surface);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-circle);
    color: var(--color-link);
    line-height: var(--line-height-12);
  }

  .c-back-to-top__icon {
    display: block;
    width: var(--space-16);
    height: var(--space-16);
    border-block-start: 2px solid currentColor;
    border-inline-start: 2px solid currentColor;
    transform: translateY(25%) rotate(45deg);
  }

  /* Wave Edge */
  .c-wave-edge {
    position: relative;
  }

  /* Responsive and input-specific overrides, grouped by condition. */
  @media (min-width: 768px) {
    .c-site-nav {
      box-shadow: 0 4px 12px -6px var(--color-backdrop);
    }

    .c-site-nav__link[aria-current="location"] {
      color: var(--color-pink);
    }
  }

  @media (max-width: 1100px) {
    .c-section-lead {
      font-size: var(--font-size-17);
    }
  }

  @media (max-width: 767px) {
    .c-section-title {
      font-size: clamp(29px, 6.8vw, 39px);
      text-shadow: var(--shadow-offset-2-3) var(--color-lilac);
    }

    .c-section-lead {
      font-size: var(--font-size-14);
    }

    .c-section-note {
      margin-block-start: var(--space-25);
      font-size: var(--font-size-11);
      text-align: start;
    }

    .c-site-nav__links {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 0;
      padding: var(--space-6) var(--space-8);
    }

    .c-site-nav__link {
      display: flex;
      justify-content: center;
      align-items: center;
      min-height: 36px;
      padding: var(--space-5) var(--space-2);
      text-align: center;
      font-size: clamp(11px, 3.1vw, 15px);
    }

    .c-site-nav__link:where(:nth-child(odd)) {
      border-inline-end: 1px solid var(--color-day2-line);
    }

    :where(.is-ready) .c-site-nav {
      height: 0;
      background: var(--color-transparent);
      border: 0;
      transition: none;
      pointer-events: none;
    }

    :where(.is-ready) .c-site-nav__toggle {
      position: absolute;
      z-index: var(--z-index-content);
      top: 12px;
      right: 12px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: var(--space-6);
      width: 56px;
      height: 56px;
      padding: var(--space-8);
      border: 2px solid var(--color-primary);
      border-radius: var(--radius-circle);
      background: var(--color-surface);
      box-shadow: var(--shadow-offset-3-3) var(--color-lilac);
      color: var(--color-link);
      cursor: pointer;
      pointer-events: auto;
    }

    .c-site-nav__icon {
      position: relative;
      display: block;
      width: 24px;
      height: 18px;
    }

    .c-site-nav__line {
      position: absolute;
      left: 0;
      width: 24px;
      height: 2px;
      background: currentColor;
      border-radius: var(--radius-2);
      transition: transform var(--duration-base), opacity var(--duration-base);
    }

    .c-site-nav__line--first {
      top: 0;
    }

    .c-site-nav__line--middle {
      top: 8px;
    }

    .c-site-nav__line--last {
      top: 16px;
    }

    .c-site-nav__label {
      font-size: var(--font-size-9);
      line-height: var(--line-height-1);
      font-weight: var(--font-weight-bold);
      letter-spacing: .04em;
    }

    :where(.c-site-nav__toggle[aria-expanded="true"]) .c-site-nav__line--first {
      transform: translateY(8px) rotate(45deg);
    }

    :where(.c-site-nav__toggle[aria-expanded="true"]) .c-site-nav__line--middle {
      opacity: 0;
    }

    :where(.c-site-nav__toggle[aria-expanded="true"]) .c-site-nav__line--last {
      transform: translateY(-8px) rotate(-45deg);
    }

    :where(.is-ready) .c-site-nav__links {
      position: absolute;
      z-index: var(--z-index-decoration);
      top: 82px;
      left: 12px;
      right: 12px;
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 0;
      min-height: 0;
      max-height: calc(100dvh - 106px);
      padding: var(--space-10) var(--space-22);
      overflow-y: auto;
      border: 2px solid var(--color-lilac);
      border-radius: var(--radius-12);
      background: var(--color-surface);
      box-shadow: var(--shadow-offset-4-4) var(--color-lilac);
      pointer-events: auto;
    }

    :where(.is-ready) .c-site-nav__link {
      justify-content: space-between;
      min-height: 60px;
      padding: var(--space-16) var(--space-4);
      border-inline-end: 0;
      font-size: var(--font-size-18);
    }

    :where(.is-ready) .c-site-nav__link:not(:first-child) {
      border-block-start: 1px solid var(--color-day2-line);
    }

    :where(.is-ready) .c-site-nav__link::after {
      display: block;
      flex-shrink: 0;
      width: var(--space-10);
      height: var(--space-10);
      margin-inline-start: var(--space-12);
      border-block-start: 2px solid currentColor;
      border-inline-end: 2px solid currentColor;
      content: "";
      color: var(--color-pink);
      transform: rotate(45deg);
    }

    :where(.is-ready) .c-site-nav__backdrop:not([hidden]) {
      position: fixed;
      inset: 0;
      display: block;
      width: 100%;
      height: 100dvh;
      padding: 0;
      border: 0;
      background: var(--color-menu-backdrop);
      cursor: pointer;
      pointer-events: auto;
    }

    .c-wave-edge--bottom::after, .c-wave-edge--top::before {
      height: 24px;
      background-image: none;
      mask-size: 144px 24px;
    }

    .c-dotted-background {
      background-image: none;
    }

    .c-dotted-background::before {
      content: none;
    }

    .c-map-link {
      gap: var(--space-12);
      padding: var(--space-12) var(--space-13);
      margin-block-start: var(--space-25);
      font-size: var(--font-size-11);
    }

    .c-back-to-top {
      right: 15px;
      bottom: calc(20px + env(safe-area-inset-bottom, 0px));
      width: 42px;
      height: 42px;
    }

    .c-back-to-top__icon {
      width: var(--space-12);
      height: var(--space-12);
    }
  }

}

@layer project {
  /* Hero */
  .p-hero {
    position: relative;
    padding: var(--space-64) 0 var(--space-40);
    overflow: hidden;
    overflow-anchor: none;
    background-color: var(--color-hero-bottom);
    background-image: linear-gradient(to right, var(--color-tile-line) 1px, var(--color-transparent) 1px), linear-gradient(to bottom, var(--color-tile-line) 1px, var(--color-transparent) 1px), linear-gradient(var(--color-hero-top), var(--color-hero-bottom));
    background-size: var(--tile-size) var(--tile-size), var(--tile-size) var(--tile-size), 100% 100%;
  }

  .p-hero__visual {
    line-height: 0;
  }

  .p-hero__image {
    width: 100%;
    border-radius: var(--radius-20);
  }

  .p-hero__lead {
    position: relative;
    display: grid;
    grid-template-areas: ". catch free" ". information .";
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    row-gap: var(--hero-catch-gap);
    margin-block-start: var(--space-38);
  }

  .p-hero__free {
    --display-stroke-color: var(--color-pink);
    --hero-free-rotation: 10deg;
    position: absolute;
    top: 50%;
    left: var(--space-20);
    grid-area: free;
    justify-self: center;
    display: grid;
    place-items: center;
    width: min(clamp(90px, 11vw, 160px), calc(100% - var(--space-20)));
    aspect-ratio: 1;
    border-radius: var(--radius-circle);
    background: var(--color-pink);
    color: var(--color-surface);
    font-size: clamp(20px, 2.6vw, 44px);
    line-height: var(--line-height-11);
    text-align: center;
    rotate: var(--hero-free-rotation);
    translate: 0 -50%;
  }

  .p-hero__free::before {
    position: absolute;
    inset: calc(-1 * var(--space-7));
    border: 2px solid var(--color-pink);
    border-radius: inherit;
    content: "";
    pointer-events: none;
  }

  .p-hero__catch {
    --display-stroke-color: color-mix(in srgb, var(--color-hero-top) 25%, var(--color-hero-bottom));
    grid-area: catch;
    text-align: center;
    color: var(--color-pink);
    font-size: clamp(40px, 3.35vw, 64px);
    line-height: var(--line-height-12);
  }

  .p-hero__information {
    grid-area: information;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: var(--space-14);
    color: var(--color-surface);
  }

  .p-hero__information-label {
    --display-stroke-color: var(--color-primary);
    width: fit-content;
    padding: 0 var(--space-22) var(--space-3);
    background: var(--color-primary);
    box-shadow: var(--shadow-offset-5-5) var(--color-lilac);
    line-height: var(--line-height-15);
  }

  .p-hero__date {
    font-size: clamp(40px, 3.25vw, 54px);
    line-height: var(--line-height-12);
  }

  .p-hero__weekday {
    font-size: .54em;
  }

  .p-hero__venue {
    font-size: clamp(26px, 2.4vw, 40px);
  }

  /* Background Decoration */
  .p-background-decoration {
    position: fixed;
    inset: 0;
    z-index: var(--z-index-decoration);
    overflow: hidden;
    pointer-events: none;
    user-select: none;
  }

  .p-background-decoration__image {
    position: absolute;
    display: none;
  }

  @keyframes background-decoration-float {
    0%, 100% {
      translate: 0 0;
    }

    50% {
      translate: 0 -14px;
    }
  }

  .p-background-decoration::before {
    position: absolute;
    top: -60px;
    left: 0;
    width: 340px;
    height: 340px;
    border-radius: var(--radius-circle);
    background: var(--color-hero-glow);
    content: "";
  }

  .p-background-decoration__image--foam {
    left: -14px;
    top: 52%;
    max-width: 64px;
    transform: rotate(-20deg);
  }

  .p-background-decoration__image--bubble {
    left: clamp(8px, calc((100vw - 1440px) / 2 - 72px), 168px);
    top: 27%;
    max-width: 32px;
    transform: rotate(15deg);
  }

  .p-background-decoration__image--cloud {
    right: clamp(8px, calc((100vw - 1440px) / 2 - 144px), 120px);
    top: 11%;
    max-width: 96px;
    transform: rotate(-12deg);
  }

  .p-background-decoration__image--steam {
    right: -20px;
    top: 42%;
    max-width: 112px;
    transform: rotate(16deg);
  }

  .p-background-decoration__image--duck {
    left: clamp(8px, calc((100vw - 1440px) / 2 - 168px), 112px);
    bottom: 18%;
    max-width: 128px;
    transform: rotate(-9deg);
  }

  .p-background-decoration__image--lantern {
    right: clamp(8px, calc((100vw - 1440px) / 2 - 200px), 96px);
    bottom: 7%;
    max-width: 144px;
    transform: rotate(12deg);
  }

  /* Introduction */
  .p-introduction {
    position: relative;
    padding: var(--space-40) 0 var(--space-70);
    background-color: var(--color-intro-bottom);
    background-image: linear-gradient(to right, var(--color-tile-line) 1px, var(--color-transparent) 1px), linear-gradient(to bottom, var(--color-tile-line) 1px, var(--color-transparent) 1px), linear-gradient(var(--color-hero-bottom), var(--color-intro-bottom));
    background-size: var(--tile-size) var(--tile-size), var(--tile-size) var(--tile-size), 100% 100%;
  }

  .p-introduction__card {
    position: relative;
    z-index: var(--z-index-content);
    width: min(1200px, calc(100% - 160px));
    margin: 0 auto;
    padding: var(--space-86) var(--space-45) var(--space-105);
    background: var(--color-surface);
    box-shadow: var(--shadow-offset-10-10) var(--color-lilac);
    text-align: center;
  }

  .p-introduction__badge {
    position: absolute;
    width: 100px;
    height: 100px;
  }

  .p-introduction__badge--top-start {
    left: 0;
    top: 0;
    transform: translate(-50%, -50%);
  }

  .p-introduction__badge--top-end {
    right: 0;
    top: 0;
    transform: translate(50%, -50%);
  }

  .p-introduction__badge--bottom-start {
    left: 0;
    bottom: 0;
    transform: translate(-50%, 50%);
  }

  .p-introduction__badge--bottom-end {
    right: 0;
    bottom: 0;
    transform: translate(50%, 50%);
  }

  .p-introduction__heading {
    color: var(--color-pink);
    font-size: clamp(24px, 2vw, 40px);
    line-height: var(--line-height-13);
  }

  .p-introduction__copy {
    margin-block-start: var(--intro-heading-gap);
    font-size: var(--font-size-18);
    line-height: var(--line-height-2);
    font-weight: var(--font-weight-medium);
  }

  .p-introduction__closing {
    margin-block-start: var(--space-26);
    font-size: var(--font-size-23);
    font-weight: var(--font-weight-bold);
  }

  .p-introduction__marquee {
    position: relative;
    z-index: var(--z-index-content);
    margin-block-start: clamp(72px, 6vw, 112px);
    overflow: hidden;
    pointer-events: none;
    user-select: none;
  }

  .p-introduction__marquee-track {
    display: flex;
    width: max-content;
    animation: p-introduction-marquee 140s linear infinite;
  }

  .p-introduction__marquee-group {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: var(--space-64);
    padding-inline-end: var(--space-64);
  }

  .p-introduction__marquee-logo {
    flex-shrink: 0;
    width: clamp(860px, 100vw, 2000px);
    max-width: none;
    height: auto;
    opacity: .3;
  }

  @keyframes p-introduction-marquee {
    from {
      transform: translateX(0);
    }
    to {
      transform: translateX(-50%);
    }
  }

  /* Opaque sections cover the fixed decorations outside the grid backgrounds. */
  .p-guests, .p-booths, .p-notice {
    position: relative;
    z-index: var(--z-index-content);
    background-color: var(--color-surface);
  }

  /* Guests */
  .p-guests {
    padding-block-start: var(--guests-start);
  }

  .p-guests__day-heading {
    --display-stroke-color: var(--day-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .25em;
    min-height: 1.5em;
    /* Offset the font's low visual center while keeping both text sizes aligned. */
    padding: .1em .25em .2em;
    background: var(--day-color);
    box-shadow: var(--shadow-offset-5-5) var(--color-badge);
    border-radius: var(--radius-12);
    text-align: center;
    color: var(--color-surface);
    font-size: var(--font-size-40);
    line-height: var(--line-height-1);
  }

  .p-guests__day-label {
    font-size: .58em;
    transform: translateY(.12em);
  }

  .p-guests__day-heading--day2 {
    box-shadow: var(--shadow-offset-5-5) var(--color-lilac);
  }

  .p-guests__day:first-of-type {
    margin-block-start: var(--heading-gap);
  }

  .p-guests__day + .p-guests__day {
    margin-block-start: 100px;
  }

  .p-guests__list {
    --guest-gap: var(--space-40);
    --guest-columns: 3;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--guest-gap);
    margin-block-start: var(--day-heading-gap);
  }

  .p-guests__list > .p-guest {
    flex: 0 0 calc((100% - (var(--guest-columns) - 1) * var(--guest-gap)) / var(--guest-columns));
    min-width: 0;
  }

  .p-guests__list--duo {
    --guest-columns: 2;
    max-width: 920px;
    margin-inline: auto;
  }

  /* Guest */
  .p-guest__photo {
    position: relative;
    aspect-ratio: 3 / 2;
    background: var(--color-placeholder);
  }

  .p-guest__photo::before, .p-guest__photo::after {
    position: absolute;
    border-style: solid;
    border-color: var(--day-color);
    content: "";
    pointer-events: none;
  }

  .p-guest__photo::before {
    inset: -10px 6px 6px -10px;
    border-width: 2px 0 0 2px;
  }

  .p-guest__photo::after {
    inset: 6px -10px -10px 6px;
    border-width: 0 2px 2px 0;
    border-color: var(--color-badge);
  }

  :where(.c-day-theme--day2) .p-guest__photo::after {
    border-color: var(--color-lilac);
  }

  .p-guest__placeholder {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    color: var(--color-placeholder-text);
    font-family: var(--font-family-base);
    font-size: var(--font-size-13);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-15);
    letter-spacing: .15em;
    text-align: center;
    transform: translateY(-50%);
  }

  .p-guest__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .p-guest__name {
    padding-block-start: var(--space-18);
    text-align: center;
    font-size: var(--font-size-23);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-16);
  }

  .p-guest__role {
    display: block;
    width: fit-content;
    margin-inline: auto;
    margin-block-end: var(--space-8);
    padding: var(--space-2) var(--space-12);
    border: 1px solid var(--color-day3-line);
    border-radius: var(--radius-20);
    background: var(--color-day3-soft);
    color: var(--color-day3-text);
    font-size: var(--font-size-13);
    line-height: var(--line-height-15);
  }

  /* Guests */
  .p-guests__mc-heading {
    display: flex;
    align-items: center;
    gap: var(--space-28);
    margin-block-start: var(--space-40);
    color: var(--color-primary);
    font-size: var(--font-size-36);
  }

  .p-guests__mc-heading::before, .p-guests__mc-heading::after {
    flex: 1;
    height: 1px;
    background: var(--color-lilac);
    content: "";
  }

  .p-guests__mc-list {
    --mc-gap: var(--space-40);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--mc-gap);
    max-width: 880px;
    margin-inline: auto;
    margin-block-start: var(--mc-list-gap);
  }

  /* Guest */
  .p-guest__photo--mc {
    aspect-ratio: 1;
  }

  .p-guest__photo--mc::before, .p-guest__photo--mc::after {
    content: none;
  }

  /* Guests */
  .p-guests__announcement {
    padding: var(--space-40) var(--space-16);
    margin-block-start: var(--day-heading-gap);
    background: var(--color-day3-soft);
    border-block: 1px solid var(--color-day3-line);
    text-align: center;
    font-size: var(--font-size-20);
    font-weight: var(--font-weight-bold);
  }

  /* Timetable */
  .p-timetable {
    --display-stroke-color: var(--color-timetable);
    position: relative;
    padding-block: var(--timetable-start) var(--timetable-end);
    background-color: var(--color-timetable);
  }

  .p-timetable__tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-24);
    align-items: start;
    margin-block-start: var(--space-32);
  }

  .p-timetable__tab {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-8);
    padding: var(--space-20) var(--space-12);
    border: 2px solid var(--day-color);
    border-radius: var(--radius-20);
    background: var(--color-surface);
    color: var(--day-ink);
    line-height: var(--line-height-12);
    font-weight: var(--font-weight-bold);
    transition: background var(--duration-base), color var(--duration-base), transform var(--duration-base);
    cursor: pointer;
  }

  .p-timetable__tab::after {
    position: absolute;
    inset-block-end: -8px;
    inset-inline-start: calc(50% - 7px);
    width: 14px;
    height: 14px;
    background: var(--day-color);
    content: "";
    transform: rotate(45deg) scale(0);
    transition: transform var(--duration-base);
  }

  .p-timetable__tab:hover {
    background: var(--day-soft);
  }

  .p-timetable__tab[aria-selected="true"] {
    background: var(--day-color);
    color: var(--color-surface);
    transform: translateY(-4px);
  }

  .p-timetable__tab[aria-selected="true"]::after {
    transform: rotate(45deg) scale(1);
  }

  .p-timetable__tab-date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-8);
    font-family: var(--font-family-display);
    font-weight: var(--font-weight-regular);
    font-synthesis: none;
    letter-spacing: var(--letter-spacing-display);
    font-size: clamp(22px, 2.4vw, 38px);
  }

  .p-timetable__weekday {
    font-family: var(--font-family-base);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-15);
  }

  .p-timetable__tab-day {
    display: block;
    padding: var(--space-4) var(--space-16);
    border-radius: var(--radius-20);
    background: var(--day-soft);
    color: var(--day-ink);
    font-size: var(--font-size-14);
    letter-spacing: .08em;
  }

  :where(.p-timetable__tab[aria-selected="true"]) .p-timetable__tab-day {
    background: var(--color-surface);
  }

  .p-timetable__help {
    margin-block-start: var(--space-16);
    font-size: var(--font-size-16);
    text-align: center;
  }

  .p-timetable__help-icon {
    font-size: var(--font-size-18);
    color: var(--color-pink);
  }

  .p-timetable__panel {
    --display-stroke-color: var(--color-surface);
    padding: var(--space-28) var(--space-50) var(--space-50);
    margin-block-start: var(--space-32);
    background: var(--color-surface);
    box-shadow: var(--shadow-offset-7-7) var(--day-line);
    border-radius: var(--radius-12);
  }

  :where(.p-timetable__panel) + .p-timetable__panel {
    margin-block-start: var(--space-40);
  }

  :where(.is-ready) .p-timetable__panel {
    margin-block-start: var(--space-32);
  }

  .p-timetable__intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-12);
    text-align: center;
  }

  .p-timetable__theme {
    font-size: clamp(28px, 2.6vw, 42px);
    line-height: var(--line-height-12);
    color: var(--day-color);
  }

  .p-timetable__tagline {
    color: var(--color-text);
    font-family: var(--font-family-base);
    font-size: var(--font-size-18);
    line-height: var(--line-height-17);
    font-weight: var(--font-weight-bold);
  }

  .p-timetable__events {
    margin-block-start: var(--space-24);
    border-block-start: 1px solid var(--day-color);
  }

  /* Stage Event */
  .p-stage-event {
    border-block-end: 1px solid var(--day-line);
  }

  .p-stage-event__summary {
    display: grid;
    grid-template-columns: 170px 110px minmax(0, 1fr) 30px;
    align-items: center;
    gap: var(--space-24);
    padding: var(--space-26) var(--space-14);
    list-style: none;
    transition: background var(--duration-base);
    cursor: pointer;
  }

  .p-stage-event__summary::-webkit-details-marker {
    display: none;
  }

  .p-stage-event__summary::marker {
    content: "";
  }

  .p-stage-event--static > .p-stage-event__summary {
    grid-template-columns: 170px 110px minmax(0, 1fr);
    cursor: default;
  }

  .p-stage-event--static .p-stage-event__toggle {
    display: none;
  }

  .p-stage-event__time {
    grid-column: 1;
    grid-row: 1;
    font-size: var(--font-size-20);
    font-weight: var(--font-weight-bold);
    color: var(--day-ink);
    font-variant-numeric: tabular-nums;
    line-height: var(--line-height-16);
  }

  .p-stage-event__time-note {
    display: block;
    font-size: var(--font-size-13);
  }

  .p-stage-event__title {
    grid-column: 3;
    grid-row: 1;
    font-size: var(--font-size-20);
    line-height: var(--line-height-17);
    font-weight: var(--font-weight-bold);
  }

  .p-stage-event__title--categorized {
    display: contents;
  }

  .p-stage-event__category-slot {
    display: contents;
  }

  .p-stage-event__name {
    grid-column: 3;
    grid-row: 1;
  }

  .p-stage-event__category {
    display: block;
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    padding: 0 var(--space-12);
    background: var(--day-line);
    border: 1px solid var(--day-line);
    border-radius: var(--radius-2);
    text-align: center;
    white-space: nowrap;
    font-size: var(--font-size-12);
    color: var(--day-ink);
  }

  .p-stage-event__subtitle {
    display: inline;
    margin-inline-start: var(--space-8);
    font-size: .8em;
    font-weight: var(--font-weight-medium);
  }

  .p-stage-event__toggle {
    position: relative;
    grid-column: 4;
    grid-row: 1;
    width: 28px;
    height: 28px;
    border: 1px solid var(--day-color);
    border-radius: var(--radius-circle);
  }

  .p-stage-event__toggle::before, .p-stage-event__toggle::after {
    position: absolute;
    left: 7px;
    top: 12px;
    width: 12px;
    height: 2px;
    background: var(--day-color);
    content: "";
    transition: transform var(--duration-base);
  }

  .p-stage-event__toggle::after {
    transform: rotate(90deg);
  }

  :where(.p-stage-event[open]) .p-stage-event__toggle::after {
    transform: rotate(0);
  }

  .p-stage-event__body {
    padding: var(--space-4) 68px var(--space-28) 342px;
    font-size: var(--font-size-16);
    line-height: var(--line-height-19);
  }

  .p-stage-event__credits {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: var(--space-8) var(--space-12);
    margin-block-start: var(--space-16);
  }

  .p-stage-event__credits-label {
    width: fit-content;
    padding: var(--space-2) var(--space-8);
    border: 1px solid currentColor;
    border-radius: var(--radius-2);
    color: var(--color-day3-text);
    font-size: var(--font-size-14);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-17);
    white-space: nowrap;
  }

  .p-stage-event__credits-names {
    min-width: 0;
    font-size: var(--font-size-16);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-19);
  }

  /* Booths */
  .p-booths__preparation {
    display: grid;
    justify-items: center;
    gap: var(--space-20);
    max-width: 1000px;
    padding: clamp(32px, 4vw, 60px) var(--space-20);
    margin-inline: auto;
    margin-block-start: var(--lead-after);
    text-align: center;
  }

  .p-booths__preparation-title {
    --display-stroke-color: var(--color-surface);
    padding: .25em 1em;
    border: 2px solid currentColor;
    color: var(--color-link);
    font-size: clamp(21px, 2.7vw, 36px);
    line-height: var(--line-height-16);
  }

  .p-booths__preparation-text {
    font-size: var(--font-size-18);
    line-height: var(--line-height-18);
  }

  .p-booths__list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: var(--booth-gap);
    max-width: 1000px;
    margin-inline: auto;
    margin-block-start: var(--lead-after);
  }

  /* Booth */
  .p-booth {
    --booth-surface: var(--color-day2-soft);
    --booth-ink: var(--color-link);
    --booth-corners: var(--radius-booth) var(--radius-12);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-24);
    min-width: 0;
    padding: var(--booth-content-padding);
    background: var(--booth-surface);
    border: 2px solid var(--color-lilac);
    border-radius: var(--booth-corners);
    box-shadow: var(--shadow-offset-7-7) var(--color-badge);
  }

  .p-booth--photo {
    --booth-surface: var(--color-day1-soft);
    --booth-ink: var(--color-day1-text);
  }

  .p-booth--skincare, .p-booth--towel {
    --booth-surface: var(--color-day3-soft);
    --booth-ink: var(--color-day3-text);
  }

  .p-booth--towel, .p-booth--photo {
    --booth-corners: var(--radius-12) var(--radius-booth);
  }

  .p-booth__visual {
    position: relative;
    width: 100%;
    max-width: 640px;
    min-width: 0;
    margin-inline: auto;
    overflow: hidden;
    border-radius: var(--radius-8);
    background: var(--color-surface);
  }

  /* Omit the visual or its image for a text-only card, without an empty slot. */
  .p-booth__visual:not(:has(img[src]:not([src=""]))) {
    display: none;
  }

  .p-booth__image {
    display: block;
    width: 100%;
    height: auto;
  }

  .p-booth__content {
    min-width: 0;
    width: 100%;
  }

  .p-booth__header {
    display: flex;
    align-items: center;
    gap: var(--space-16);
  }

  .p-booth__category {
    display: inline-block;
    padding: var(--space-6) var(--space-12);
    background: var(--color-surface);
    border: 2px solid var(--color-lilac);
    border-radius: var(--radius-20);
    box-shadow: var(--shadow-offset-3-3) var(--color-badge);
    color: var(--booth-ink);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-13);
    line-height: var(--line-height-15);
    letter-spacing: .04em;
  }

  .p-booth__title {
    margin-block-start: var(--space-20);
    font-family: var(--font-family-base);
    font-size: clamp(23px, 2vw, 30px);
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    line-height: 1.45;
    letter-spacing: .02em;
    text-shadow: var(--shadow-offset-2-2) var(--color-surface);
  }

  .p-booth__text {
    margin-block-start: var(--space-14);
  }

  .p-booth__title + .p-booth__text {
    margin-block-start: var(--booth-heading-gap);
  }

  .p-booth__facts {
    display: grid;
    gap: var(--space-8);
    margin-block-start: var(--space-20);
    padding-block-start: var(--space-16);
    border-block-start: 2px solid var(--color-surface);
  }

  .p-booth__fact {
    display: grid;
    grid-template-columns: 65px minmax(0, 1fr);
    align-items: baseline;
    gap: var(--space-16);
  }

  .p-booth__fact-label {
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-13);
  }

  .p-booth__fact-value {
    font-weight: var(--font-weight-medium);
  }

  .p-booth__fact-value--price {
    color: var(--booth-ink);
    font-size: var(--font-size-22);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-15);
  }

  .p-booth__note {
    font-size: var(--font-size-13);
  }

  .p-booth__company {
    font-size: var(--font-size-13);
  }

  .p-booth__highlight {
    font-size: var(--font-size-22);
    font-weight: var(--font-weight-bold);
    color: var(--booth-ink);
  }

  /* Access */
  .p-access {
    --display-stroke-color: var(--color-access);
    position: relative;
    padding-block: var(--access-space);
    background-color: var(--color-access);
  }

  .p-access__card {
    --display-stroke-color: var(--color-surface);
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--space-50) var(--space-65) var(--space-60);
    margin-block-start: var(--heading-gap);
    background: var(--color-surface);
    box-shadow: var(--shadow-offset-7-7) var(--color-lilac);
    border-radius: var(--radius-12);
  }

  .p-access__row {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: var(--space-24);
    padding: var(--space-23) 0;
  }

  .p-access__row + .p-access__row {
    border-block-start: 1px solid var(--color-day2-line);
  }

  .p-access__label {
    color: var(--color-link);
    font-weight: var(--font-weight-bold);
  }

  .p-access__value {
    font-weight: var(--font-weight-bold);
  }

  .p-access__sponsors {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-24);
    min-width: 0;
  }

  .p-access__sponsor-link {
    display: block;
    width: 200px;
    max-width: 100%;
    transition: opacity var(--duration-base);
  }

  .p-access__sponsor-link:focus-visible {
    opacity: .7;
  }

  .p-access__sponsors--general .p-access__sponsor-link {
    width: 160px;
  }

  .p-access__sponsors--general .p-access__sponsor-link img {
    width: 100%;
    height: 80px;
    object-fit: contain;
  }

  .p-access__list {
    margin: 0;
    padding-inline-start: 1.2em;
    list-style: disc;
    line-height: var(--line-height-16);
  }

  .p-access__item + .p-access__item {
    margin-block-start: var(--space-8);
  }

  .p-access__map-link {
    max-width: 100%;
    margin-block-start: var(--space-20);
    margin-inline: 0;
  }

  /* Notice */
  .p-notice {
    padding-block-end: var(--notice-end);
  }

  .p-notice__card {
    padding: var(--space-32) var(--space-40);
    margin-block-start: var(--heading-gap);
    background: var(--color-surface);
  }

  .p-notice__heading {
    font-family: var(--font-family-base);
    font-size: var(--font-size-18);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-15);
    text-align: start;
  }

  .p-notice__list {
    padding-inline-start: 1.4em;
    margin: 0;
    margin-block-start: var(--space-12);
  }

  .p-notice__item + .p-notice__item {
    margin-block-start: var(--space-4);
  }

  /* Responsive and input-specific overrides, grouped by condition. */
  @media (hover: hover) and (pointer: fine) {
    summary.p-stage-event__summary:hover {
      background: var(--day-soft);
    }

    .p-access__sponsor-link:hover {
      opacity: .7;
    }
  }

  @media (min-width: 768px) {
    .p-guests__list--featured {
      display: grid;
      grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .p-guests__list--featured > .p-guest:not(.p-guest--featured) {
      grid-row: 2;
      grid-column: 2 / span 2;
    }

    .p-guests__list--featured > .p-guest:not(.p-guest--featured) + .p-guest:not(.p-guest--featured) {
      grid-column: 4 / span 2;
    }

    .p-guests__list--featured > .p-guest--featured {
      grid-column: 1 / -1;
      grid-row: 1;
      justify-self: center;
      width: calc((100% - 2 * var(--guest-gap)) / 3 * 1.3);
    }

    .p-guests__mc-list:has(> :nth-child(2):last-child) {
      grid-template-columns: repeat(2, minmax(0, calc((100% - var(--mc-gap) * 2) / 3)));
      justify-content: center;
    }
  }

  @media (min-width: 1024px) {
    .p-booths__list {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      max-width: 1200px;
    }

    .p-booth {
      grid-column: 1 / -1;
      display: grid;
      grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
      align-items: center;
      gap: var(--space-32);
    }

    .p-booth:nth-child(even) {
      grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    }

    .p-booth:nth-child(even) > .p-booth__visual {
      grid-column: 2;
      grid-row: 1;
    }

    .p-booth:nth-child(even) > .p-booth__content {
      grid-column: 1;
      grid-row: 1;
    }

    .p-booth--skincare, .p-booth--photo {
      grid-column: auto;
      display: flex;
      flex-direction: column;
      align-items: stretch;
      align-self: stretch;
    }

    :is(.p-booth--skincare, .p-booth--photo) .p-booth__image {
      aspect-ratio: 4 / 3;
      object-fit: contain;
    }

    .p-booth:not(:has(> .p-booth__visual img[src]:not([src=""]))) > .p-booth__content,
    .p-booth:has(> .p-booth__visual[hidden]) > .p-booth__content {
      grid-column: 1 / -1;
    }
  }

  @media (min-width: 1600px) {
    .p-hero__information {
      gap: var(--space-16);
    }
  }

  @media (min-width: 1720px) {
    .p-background-decoration__image {
      display: block;
      width: calc((100vw - 1440px) / 2 - 44px);
      opacity: .6;
    }
  }

  @media (min-width: 1720px) and (prefers-reduced-motion: no-preference) {
    .p-background-decoration__image {
      animation: background-decoration-float 6s ease-in-out infinite;
    }

    .p-background-decoration__image--bubble, .p-background-decoration__image--duck {
      animation-duration: 8s;
      animation-delay: -3s;
    }

    .p-background-decoration__image--cloud, .p-background-decoration__image--lantern {
      animation-duration: 10s;
      animation-delay: -5s;
    }
  }

  @media (max-width: 1100px) {
    .p-hero {
      padding-block-start: var(--space-40);
    }

    .p-hero__lead {
      margin-block-start: var(--space-30);
    }

    .p-introduction__card {
      width: calc(100% - 140px);
      padding: var(--space-65) var(--space-35) var(--space-70);
    }

    .p-introduction__copy {
      font-size: var(--font-size-15);
    }

    .p-introduction__closing {
      font-size: var(--font-size-20);
    }

    .p-introduction__badge {
      width: 78px;
      height: 78px;
    }

    .p-guests__list {
      --guest-gap: var(--space-28);
    }

    .p-guest__name {
      font-size: var(--font-size-18);
    }

    .p-guests__mc-list {
      --mc-gap: var(--space-28);
      max-width: 640px;
    }

    .p-timetable__panel {
      padding: var(--space-28) var(--space-30) var(--space-35);
    }

    .p-stage-event__summary {
      grid-template-columns: 140px 104px minmax(0, 1fr) 28px;
      gap: var(--space-18);
      padding-inline: var(--space-8);
    }

    .p-stage-event--static > .p-stage-event__summary {
      grid-template-columns: 140px 104px minmax(0, 1fr);
    }

    .p-stage-event__time {
      font-size: var(--font-size-17);
    }

    .p-stage-event__title {
      font-size: var(--font-size-18);
    }

    .p-stage-event__body {
      padding-inline-start: 288px;
      padding-inline-end: 52px;
      font-size: var(--font-size-15);
    }
  }

  @media (max-width: 1023px) {
    .p-booth__header {
      justify-content: center;
    }

    .p-booth__title, .p-booth__category {
      text-align: center;
    }
  }

  @media (max-width: 767px) {
    .p-hero {
      padding: var(--space-24) 0 var(--space-24);
    }

    .p-hero__image {
      border-radius: var(--radius-8);
    }

    .p-background-decoration::before {
      top: -70px;
      left: -40px;
      width: 180px;
      height: 180px;
    }

    .p-hero__lead {
      grid-template-areas: "catch" "information" "free";
      grid-template-columns: minmax(0, 1fr);
      gap: var(--space-24);
      margin-block-start: var(--space-24);
    }

    .p-hero__free {
      --hero-free-rotation: 0deg;
      position: relative;
      top: auto;
      left: auto;
      width: 80px;
      font-size: var(--font-size-20);
      translate: none;
    }

    .p-hero__free::before {
      inset: calc(-1 * var(--space-5));
      border-width: 1px;
    }

    .p-hero__catch {
      font-size: clamp(21px, 5.65vw, 40px);
      line-height: var(--line-height-12);
    }

    .p-hero__information {
      gap: var(--space-12);
    }

    .p-hero__information-label {
      padding: var(--space-3) var(--space-9) var(--space-5);
      box-shadow: var(--shadow-offset-3-3) var(--color-lilac);
    }

    .p-hero__date {
      font-size: clamp(23px, 6.2vw, 40px);
    }

    .p-hero__venue {
      font-size: clamp(15px, 4.1vw, 26px);
    }

    .p-introduction {
      padding: var(--space-24) 0 var(--space-40);
    }

    .p-introduction__card {
      width: calc(100% - 64px);
      padding: 44px var(--space-20);
      box-shadow: var(--shadow-offset-5-5) var(--color-lilac);
    }

    .p-introduction__badge {
      width: 48px;
      height: 48px;
    }

    .p-introduction__heading {
      font-size: clamp(18px, 4.15vw, 26px);
      line-height: var(--line-height-13);
    }

    .p-introduction__copy {
      font-size: var(--font-size-13);
      text-align: start;
    }

    .p-introduction__paragraph + .p-introduction__paragraph {
      margin-block-start: var(--space-14);
    }

    .p-introduction__closing {
      margin-block-start: var(--space-24);
      font-size: var(--font-size-15);
      line-height: var(--line-height-18);
    }

    .p-guests__day-heading {
      min-height: 48px;
      box-shadow: var(--shadow-offset-3-3) var(--color-badge);
      font-size: var(--font-size-24);
    }

    .p-guests__day-heading--day2 {
      box-shadow: var(--shadow-offset-3-3) var(--color-lilac);
    }

    .p-guests__list {
      --guest-columns: 1;
      gap: var(--space-20) var(--space-14);
    }

    .p-guest__name {
      padding-block-start: var(--space-12);
      font-size: var(--font-size-18);
    }

    .p-guest__photo::before {
      inset: -5px 4px 4px -5px;
      border-width: 1px 0 0 1px;
    }

    .p-guest__photo::after {
      inset: 4px -5px -5px 4px;
      border-width: 0 1px 1px 0;
    }

    .p-guest__placeholder {
      font-size: var(--font-size-9);
      letter-spacing: .08em;
    }

    .p-guests__mc-heading {
      gap: var(--space-16);
      margin-block-start: var(--space-32);
      font-size: var(--font-size-24);
    }

    .p-guests__mc-list {
      --mc-gap: var(--space-12);
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .p-guest__name--mc {
      font-size: var(--font-size-15);
    }

    .p-guest__role {
      font-size: var(--font-size-11);
    }

    .p-guest__placeholder--mc {
      font-size: 7px;
      letter-spacing: 0;
    }

    .p-guests__day + .p-guests__day {
      margin-block-start: var(--space-50);
    }

    .p-guests__announcement {
      padding-block: var(--space-25);
      font-size: var(--font-size-13);
    }

    .p-timetable__tabs {
      gap: var(--space-8);
      margin-block-start: var(--space-24);
    }

    .p-timetable__tab {
      gap: var(--space-8);
      padding: var(--space-12) var(--space-4);
      border-radius: var(--radius-12);
    }

    .p-timetable__tab-date {
      flex-direction: column;
      gap: var(--space-4);
      font-size: clamp(19px, 5vw, 30px);
    }

    .p-timetable__weekday {
      font-size: var(--font-size-11);
    }

    .p-timetable__tab-day {
      padding-inline: var(--space-12);
      font-size: var(--font-size-12);
    }

    .p-timetable__help {
      font-size: var(--font-size-12);
    }

    .p-timetable__panel {
      margin-block-start: var(--space-24);
      padding: var(--space-24) var(--space-15) var(--space-20);
      box-shadow: var(--shadow-offset-4-4) var(--day-line);
    }

    .p-timetable__intro {
      gap: var(--space-8);
    }

    .p-timetable__tagline {
      font-size: var(--font-size-15);
    }

    .p-timetable__events {
      margin-block-start: var(--space-20);
    }

    .p-stage-event__summary {
      grid-template-columns: minmax(0, 1fr) 24px;
      gap: var(--space-7) var(--space-12);
      padding: var(--space-18) var(--space-4);
    }

    .p-stage-event--static > .p-stage-event__summary {
      grid-template-columns: minmax(0, 1fr);
    }

    .p-stage-event__time {
      grid-column: 1;
      font-size: var(--font-size-14);
    }

    .p-stage-event__time-note {
      display: inline;
      font-size: var(--font-size-11);
    }

    .p-stage-event__title {
      grid-column: 1;
      grid-row: 2;
      font-size: var(--font-size-14);
    }

    .p-stage-event__toggle {
      grid-column: 2;
      grid-row: 1 / 3;
      width: 24px;
      height: 24px;
    }

    .p-stage-event__toggle::before, .p-stage-event__toggle::after {
      top: 10px;
      left: 5px;
    }

    .p-stage-event__category {
      width: 8em;
      padding-inline: var(--space-8);
      font-size: var(--font-size-10);
    }

    .p-stage-event__body {
      padding: 0 var(--space-12) var(--space-20);
      font-size: var(--font-size-13);
    }

    .p-stage-event__credits {
      grid-template-columns: minmax(0, 1fr);
    }

    .p-stage-event__credits-label {
      font-size: var(--font-size-13);
    }

    .p-stage-event__credits-names {
      font-size: var(--font-size-14);
    }

    .p-booths__preparation-text {
      font-size: var(--font-size-16);
    }

    .p-booth__category {
      font-size: var(--font-size-12);
    }

    .p-booth__title {
      font-size: clamp(18px, 6.4vw, 20px);
    }

    .p-booth__facts {
      margin-block-start: var(--space-15);
    }

    .p-booth__fact {
      grid-template-columns: 56px minmax(0, 1fr);
      gap: var(--space-12);
      font-size: var(--font-size-14);
    }

    .p-booth__fact-value--price {
      font-size: var(--font-size-18);
    }

    .p-booth__highlight {
      font-size: var(--font-size-20);
    }

    .p-booth__note, .p-booth__company {
      font-size: var(--font-size-11);
    }

    .p-access__card {
      padding: var(--space-30) var(--space-20);
      box-shadow: var(--shadow-offset-4-4) var(--color-lilac);
    }

    .p-access__row {
      grid-template-columns: 72px minmax(0, 1fr);
      gap: var(--space-12);
      padding-block: var(--space-18);
      font-size: var(--font-size-13);
    }

    .p-access__sponsors--general {
      flex-direction: column;
      align-items: flex-start;
      gap: var(--space-12);
    }

    .p-access__sponsors--general .p-access__sponsor-link img {
      width: auto;
      max-width: 100%;
      height: auto;
      max-height: 64px;
    }

    .p-notice__card {
      padding: var(--space-24) 0;
    }

    .p-notice__heading {
      font-size: var(--font-size-16);
    }

    .p-stage-event__title--categorized {
      display: block;
    }

    .p-stage-event__category-slot {
      display: block;
    }

    .p-stage-event__name {
      display: block;
      margin-block-start: var(--space-4);
    }
  }

  @media (max-width: 374px) {
    .p-hero__venue {
      font-size: clamp(11px, 3.6vw, 26px);
      white-space: nowrap;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .p-introduction__marquee-track {
      animation: none;
    }
  }

}

@layer utility {
  /* Progressive enhancement: content stays visible without JavaScript. */
  @media (prefers-reduced-motion: no-preference) {
    .has-hero-entrance {
      opacity: 0;
    }

    .has-hero-entrance.is-hero-entering {
      animation: hero-entrance-in var(--duration-hero-entrance) ease-out both;
    }

    .has-hero-entrance.is-hero-entering .p-hero__visual {
      animation: hero-visual-pop var(--duration-hero-entrance) var(--easing-reveal) both;
    }

    .has-hero-entrance.is-hero-entering .p-hero__lead {
      animation: hero-lead-in var(--duration-hero-entrance) ease-out both;
    }

    .has-hero-entrance.is-hero-entering .p-hero__free {
      animation: hero-badge-swing var(--duration-hero-entrance) ease-out both;
    }

    .has-pop-reveal.is-reveal-pending {
      opacity: 0;
    }

    .has-pop-reveal.is-revealing {
      animation: content-pop-in var(--duration-reveal) var(--easing-reveal) both;
    }

    .p-introduction__card.has-pop-reveal.is-revealing {
      animation-name: content-fade-in;
    }

    .p-stage-event[open] > .p-stage-event__body {
      animation: event-body-in var(--duration-navigation) ease-out;
    }

    @keyframes hero-entrance-in {
      from {
        opacity: 0;
      }
      25%, 100% {
        opacity: 1;
      }
    }

    @keyframes hero-visual-pop {
      0% {
        opacity: 0;
        transform: translateY(-24px) scale(.9) rotate(-1.5deg);
      }
      60% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(.5deg);
      }
      80% {
        transform: translateY(0) scale(.99) rotate(-.2deg);
      }
      100% {
        opacity: 1;
        transform: none;
      }
    }

    @keyframes hero-lead-in {
      0%, 15% {
        opacity: 0;
        translate: 0 var(--space-16);
      }
      100% {
        opacity: 1;
        translate: 0 0;
      }
    }

    @keyframes hero-badge-swing {
      0%, 15% {
        rotate: calc(var(--hero-free-rotation) - 14deg);
      }
      55% {
        rotate: calc(var(--hero-free-rotation) + 8deg);
      }
      78% {
        rotate: calc(var(--hero-free-rotation) - 4deg);
      }
      100% {
        rotate: var(--hero-free-rotation);
      }
    }

    @keyframes content-fade-in {
      from {
        opacity: 0;
        translate: 0 var(--space-40);
      }
      to {
        opacity: 1;
        translate: 0 0;
      }
    }

    @keyframes content-pop-in {
      0% {
        opacity: 0;
        translate: 0 var(--space-40);
      }
      70% {
        opacity: 1;
        translate: 0 -4px;
      }
      100% {
        opacity: 1;
        translate: 0 0;
      }
    }

    @keyframes event-body-in {
      from {
        opacity: 0;
        translate: 0 var(--space-6);
      }
      to {
        opacity: 1;
        translate: 0 0;
      }
    }
  }

  /* Add is-dummy to an image wrapper; remove data-preview for publication.
     The preview-only dark background and Arial label are intentionally independent of the site theme. */
  .is-dummy {
    position: relative;
  }

  :where(body[data-preview="true"]) .is-dummy::after {
    position: absolute;
    z-index: var(--z-index-content);
    inset: auto;
    left: 50%;
    top: 50%;
    width: max-content;
    max-width: calc(100% - 8px);
    height: auto;
    padding: clamp(8px, 1vw, 14px) clamp(10px, 1.3vw, 20px);
    border: 1px solid var(--color-placeholder-text);
    border-radius: 0;
    background: #222e;
    content: "ダミー\A制作確認用";
    color: var(--color-surface);
    font-family: Arial, "Noto Sans JP", sans-serif;
    font-size: clamp(16px, 2vw, 32px);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-15);
    letter-spacing: 0;
    text-align: center;
    white-space: pre-line;
    transform: translate(-50%, -50%);
    pointer-events: none;
  }

  :where(body[data-preview="true"]) .is-dummy > .p-guest__placeholder {
    display: none;
  }

  :where(body[data-preview="true"]) .p-guest__photo--mc.is-dummy::after {
    padding: 6px;
    font-size: clamp(12px, 1.6vw, 26px);
  }

  :where([hidden]) {
    display: none;
  }

  /* Mobile Only */
  .u-mobile-only {
    display: none;
  }

  /* Visually Hidden */
  .u-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    white-space: nowrap;
  }

  @media (max-width: 767px) {
    .u-mobile-only {
      display: initial;
    }

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

    .u-mobile-break {
      display: block;
    }

  }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      transition: none;
    }

  }

}

/* 2026-10-28: KV image replaced with accessible blue display text; maintenance notice */
@layer project {
  .p-hero__visual--text {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: .02em; padding: clamp(24px, 4vw, 65px) 12px clamp(12px, 2vw, 30px);
    color: #05a8ec; text-align: center; line-height: 1.15;
    --display-stroke-color: #d8f4ff;
    text-shadow: 3px 4px 0 #fff, -2px -2px 0 #fff;
  }
  .p-hero__year { font-size: clamp(30px, 4.8vw, 76px); letter-spacing: .09em; }
  .p-hero__festival { font-size: clamp(44px, 7.8vw, 120px); letter-spacing: .015em; }
  .p-introduction__maintenance {
    margin: clamp(28px, 4vw, 52px) auto 0; padding: clamp(18px, 3vw, 34px) 16px;
    max-width: 720px; border: 3px solid #40ccef; border-radius: 16px;
    background: #eafaff; text-align: center;
  }
  .p-introduction__maintenance-title { color: #ff4299; font-size: clamp(22px, 2.6vw, 36px); line-height: 1.4; }
  .p-introduction__maintenance-description { margin-top: 12px; color: #50345e; font-size: clamp(13px, 1.35vw, 17px); font-weight: 700; line-height: 1.9; }
}

/* Maintenance mode: keep the introduction and its scrolling logo;
   hide all subsequent LP sections and navigation. Remove this block to restore. */
/*
body > .c-site-nav,
main > .p-introduction ~ section,
.c-back-to-top {
  display: none !important;
}
*/
