:root {
  --matsuri-ink: #24463d;
  --matsuri-indigo: #315f79;
  --matsuri-vermilion: #c75d4c;
  --matsuri-coral: #e78a72;
  --matsuri-gold: #c89b46;
  --matsuri-paper: #fbf5e7;
  --matsuri-paper-deep: #f1e5cd;
  --matsuri-green: #6f8f72;
}

html,
body.festival-page,
body.festival-page #wrapper {
  max-width: 100%;
  overflow-x: clip;
  overflow-y: visible;
}

.festival-page,
#main.festival-lp {
  color: var(--matsuri-ink);
  background-color: var(--matsuri-paper);
  background-image:
    repeating-linear-gradient(7deg, rgba(95, 78, 47, .022) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(96deg, rgba(255, 255, 255, .26) 0 2px, transparent 2px 11px);
}

/* Five-second moving kamishibai opening. */
.festival-opening {
  color: var(--matsuri-ink);
  background: var(--matsuri-paper);
}

.festival-opening__kamishibai {
  position: absolute;
  inset: 0;
  opacity: 1;
  transform: none;
  transition: none;
}

.festival-opening.is-running .festival-opening__kamishibai {
  opacity: 1;
  transform: none;
}

.festival-opening__movie {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(1.04) saturate(.98);
}

.festival-opening__paper-grain {
  position: absolute;
  inset: 0;
  opacity: .14;
  background-image:
    repeating-linear-gradient(11deg, rgba(72, 58, 35, .18) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(101deg, rgba(255, 255, 255, .3) 0 2px, transparent 2px 12px);
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.festival-opening__paper-curtain {
  position: absolute;
  z-index: 4;
  top: 0;
  bottom: 0;
  width: 54%;
  background-color: #f8efdd;
  background-image:
    repeating-linear-gradient(5deg, rgba(85, 68, 39, .035) 0 1px, transparent 1px 9px),
    repeating-linear-gradient(95deg, rgba(255, 255, 255, .42) 0 2px, transparent 2px 13px);
  box-shadow: 0 0 40px rgba(76, 58, 34, .14);
}

.festival-opening__paper-curtain--left {
  left: 0;
  clip-path: polygon(0 0, 100% 0, 94% 16%, 100% 33%, 95% 49%, 100% 67%, 94% 84%, 100% 100%, 0 100%);
}

.festival-opening__paper-curtain--right {
  right: 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 6% 84%, 0 67%, 5% 49%, 0 33%, 6% 16%);
}

.festival-opening.is-running .festival-opening__paper-curtain--left {
  animation: matsuri-paper-open-left 1.65s .15s cubic-bezier(.2, .74, .18, 1) both;
}

.festival-opening.is-running .festival-opening__paper-curtain--right {
  animation: matsuri-paper-open-right 1.65s .15s cubic-bezier(.2, .74, .18, 1) both;
}

.festival-opening__lanterns {
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
}

.festival-opening__lanterns i,
.festival-kamishibai-stage__lanterns i {
  position: absolute;
  display: block;
  width: 68px;
  height: 68px;
  background: url("/theme/common/img/hfg/festival-illustration/freeillust-classic-matsuri-lantern-yellow.png") center / contain no-repeat;
  filter: drop-shadow(0 7px 8px rgba(73, 48, 31, .2));
}

.festival-opening__lanterns i::before,
.festival-kamishibai-stage__lanterns i::before {
  display: none;
}

/* Commercial-use lanterns from freeillust-classic.com. */
.festival-opening__lanterns i:nth-child(even),
.festival-kamishibai-stage__lanterns i:nth-child(even) {
  background-image: url("/theme/common/img/hfg/festival-illustration/freeillust-classic-matsuri-lantern-red.png");
}

.festival-opening__lanterns i:nth-child(1) { left: 7%; top: 11%; }
.festival-opening__lanterns i:nth-child(2) { left: 21%; top: 7%; animation-delay: -.8s; }
.festival-opening__lanterns i:nth-child(3) { right: 44%; top: 5%; animation-delay: -1.6s; }
.festival-opening__lanterns i:nth-child(4) { right: 29%; top: 9%; animation-delay: -2.2s; }
.festival-opening__lanterns i:nth-child(5) { right: 16%; top: 5%; animation-delay: -2.8s; }
.festival-opening__lanterns i:nth-child(6) { right: 5%; top: 12%; animation-delay: -3.3s; }

.festival-opening__iris {
  display: none;
}

.festival-opening__copy {
  position: absolute;
  z-index: 7;
  left: 5.5%;
  top: 9.5%;
  width: min(620px, 47vw);
  padding: clamp(22px, 2.2vw, 34px) clamp(24px, 2.6vw, 42px);
  color: var(--matsuri-ink);
  text-align: left;
  text-shadow: none;
  border: 1px solid rgba(79, 65, 42, .32);
  background-color: rgba(255, 251, 241, .96);
  background-image:
    repeating-linear-gradient(7deg, rgba(86, 70, 43, .025) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(97deg, rgba(255, 255, 255, .38) 0 2px, transparent 2px 12px);
  box-shadow: 11px 11px 0 rgba(49, 95, 121, .2), 0 14px 38px rgba(64, 46, 26, .16);
  clip-path: polygon(0 2%, 99% 0, 100% 97%, 2% 100%);
  backdrop-filter: blur(5px);
}

.festival-opening.is-running .festival-opening__copy {
  transition-delay: 1.35s;
}

.festival-opening__copy > p:first-child,
.festival-opening__jp {
  color: var(--matsuri-ink);
}

.festival-opening__copy > p:first-child {
  margin-bottom: 14px;
}

.festival-opening__title {
  color: var(--matsuri-ink);
  font-size: clamp(54px, 6.2vw, 102px);
  line-height: .84;
}

.festival-opening__title strong {
  color: var(--matsuri-vermilion);
}

.festival-opening__jp {
  width: fit-content;
  margin-top: 22px;
  padding: 7px 0 0;
  border-top: 1px solid rgba(36, 70, 61, .24);
  background: transparent;
  box-shadow: none;
}

.festival-opening__skip {
  z-index: 8;
  color: var(--matsuri-ink);
  border-color: rgba(36, 70, 61, .46);
  background: rgba(251, 245, 231, .86);
  backdrop-filter: blur(6px);
}

/* Bright paper-illustration hero. */
.festival-hero {
  min-height: 760px;
  height: 100svh;
  padding: 168px 6.5% 78px;
  color: var(--matsuri-ink);
  background: var(--matsuri-paper);
}

.festival-kamishibai-stage,
.festival-kamishibai-stage picture {
  position: absolute;
  inset: 0;
}

.festival-kamishibai-stage picture {
  margin: 0;
}

.festival-kamishibai-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(1.035) saturate(.98) contrast(1.01);
  transform: scale(1.015);
  animation: matsuri-kamishibai-drift 17s ease-in-out infinite alternate;
}

.festival-kamishibai-stage__grain {
  position: absolute;
  inset: 0;
  opacity: .08;
  background-image: repeating-linear-gradient(9deg, rgba(66, 53, 35, .19) 0 1px, transparent 1px 9px);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.festival-kamishibai-stage__lanterns {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
}

.festival-kamishibai-stage__lanterns i:nth-child(1) { left: 8%; top: 8%; }
.festival-kamishibai-stage__lanterns i:nth-child(2) { left: 24%; top: 4%; animation-delay: -1s; }
.festival-kamishibai-stage__lanterns i:nth-child(3) { right: 46%; top: 3%; animation-delay: -1.8s; }
.festival-kamishibai-stage__lanterns i:nth-child(4) { right: 23%; top: 7%; animation-delay: -2.7s; }
.festival-kamishibai-stage__lanterns i:nth-child(5) { right: 8%; top: 3%; animation-delay: -3.3s; }

.festival-hero__shade {
  display: block;
  background: rgba(255, 249, 235, .08);
}

.festival-hero__shade::after {
  opacity: .05;
  background: repeating-linear-gradient(8deg, rgba(81, 65, 42, .24) 0 1px, transparent 1px 9px);
  mix-blend-mode: multiply;
}

.festival-hero__type {
  left: 4.5%;
  top: 18%;
  color: rgba(199, 93, 76, .09);
  font-size: clamp(92px, 12vw, 190px);
}

.festival-hero__copy {
  width: min(610px, 44vw);
  padding: clamp(22px, 2.4vw, 38px) clamp(24px, 2.8vw, 44px);
  color: var(--matsuri-ink);
  text-shadow: none;
  border: 1px solid rgba(79, 65, 42, .32);
  background-color: rgba(255, 251, 241, .96);
  background-image:
    repeating-linear-gradient(7deg, rgba(86, 70, 43, .025) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(97deg, rgba(255, 255, 255, .38) 0 2px, transparent 2px 12px);
  box-shadow: 11px 11px 0 rgba(49, 95, 121, .2), 0 14px 38px rgba(64, 46, 26, .16);
  clip-path: polygon(0 2%, 99% 0, 100% 97%, 2% 100%);
  backdrop-filter: blur(5px);
}

.festival-kicker {
  color: var(--matsuri-indigo);
}

.festival-kicker::before {
  background: var(--matsuri-vermilion);
}

.festival-hero__copy h1 {
  color: var(--matsuri-ink);
  font-size: clamp(54px, 5.4vw, 78px);
}

.festival-hero__copy h1 strong {
  color: var(--matsuri-vermilion);
}

.festival-hero__copy h1 strong::after {
  height: 5px;
  background: var(--matsuri-gold);
}

.festival-hero__copy > p:last-child {
  max-width: 560px;
  color: var(--matsuri-ink);
}

.festival-hero__note {
  color: var(--matsuri-ink);
  border-left: 0;
  background: rgba(251, 245, 231, .94);
  box-shadow: 9px 9px 0 rgba(49, 95, 121, .2);
  clip-path: polygon(0 4%, 97% 0, 100% 92%, 4% 100%);
  backdrop-filter: blur(4px);
}

.festival-hero__note span {
  color: var(--matsuri-vermilion);
}

.festival-scroll {
  color: var(--matsuri-ink);
}

.festival-scroll i {
  background: var(--matsuri-ink);
}

/* Paper tabs and section rhythm. */
.festival-anchor {
  position: relative;
  z-index: 5;
  gap: 10px;
  max-width: 960px;
  padding: 20px 18px;
  border: 0;
  background: transparent;
}

.festival-anchor a {
  min-height: 70px;
  border: 2px solid rgba(36, 70, 61, .2);
  color: var(--matsuri-ink);
  background: #fffaf0;
  box-shadow: 5px 5px 0 rgba(49, 95, 121, .15);
  clip-path: polygon(1% 5%, 98% 0, 100% 94%, 3% 100%);
}

.festival-anchor a:nth-child(2) {
  background: #e6eef0;
  transform: translateY(4px) rotate(-.45deg);
}

.festival-anchor a:nth-child(3) {
  background: #f8dfd5;
  transform: rotate(.5deg);
}

.festival-anchor a:hover,
.festival-anchor a:focus-visible {
  color: #fff;
  background: var(--matsuri-indigo);
}

.festival-anchor span {
  color: var(--matsuri-vermilion);
}

.festival-ticker {
  color: #fffaf0;
  background: var(--matsuri-indigo);
  border-block: 4px double rgba(255, 250, 240, .72);
}

.festival-concept,
.festival-instagram,
.festival-orbit {
  background-color: var(--matsuri-paper);
  background-image:
    repeating-linear-gradient(8deg, rgba(97, 73, 39, .024) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(98deg, rgba(255, 255, 255, .34) 0 2px, transparent 2px 12px);
}

.festival-concept {
  padding-top: 130px;
}

.festival-concept::before {
  top: 30px;
  right: 7%;
  width: 54px;
  height: 70px;
  border: 3px solid rgba(70, 48, 33, .7);
  border-radius: 46% 46% 40% 40%;
  background: #ed9a72;
  box-shadow: inset 0 0 0 8px rgba(255, 247, 218, .18);
}

.festival-concept::after {
  position: absolute;
  top: 0;
  right: calc(7% + 26px);
  width: 1px;
  height: 44px;
  background: rgba(70, 48, 33, .52);
  content: "";
}

.festival-section-head p span {
  border-radius: 2px;
  background: var(--matsuri-vermilion);
  transform: rotate(-4deg);
}

.festival-section-head h2,
.festival-concept__lead,
.festival-sound__copy h2,
.festival-instagram__copy h2,
.festival-finale h2 {
  color: var(--matsuri-ink);
}

.festival-concept .festival-section-head h2 {
  font-size: 38px;
}

.festival-concept__lead {
  font-size: 20px !important;
  text-wrap: balance;
}

.festival-instagram__lead {
  max-width: 650px;
  font-size: 15px;
}

.festival-sound__copy {
  padding-inline: 9%;
}

.festival-sound__copy h2 {
  font-size: 34px;
}

.festival-sound__copy > p:last-child {
  font-size: 14.5px;
}

.festival-concept__copy p,
.festival-instagram__lead,
.festival-sound__copy > p:last-child {
  color: #435d55;
}

.festival-concept__lead {
  color: var(--matsuri-indigo);
}

.festival-concept__photo {
  width: min(970px, 88%);
  padding: 15px 15px 52px;
  background: #fffdf7;
  box-shadow: 16px 18px 0 rgba(199, 93, 76, .13), 0 20px 50px rgba(73, 56, 34, .14);
  transform: rotate(-.8deg);
}

.festival-concept__photo::before {
  top: -18px;
  right: 20%;
  width: 122px;
  height: 32px;
  border: 0;
  background: rgba(213, 177, 103, .62);
  transform: rotate(3deg);
}

.festival-concept__photo::after {
  display: none;
}

.festival-concept__photo figcaption {
  right: 24px;
  bottom: 17px;
  color: var(--matsuri-ink);
  background: transparent;
}

/* The report becomes a sequence of bright paper panels instead of a dark block. */
.festival-story {
  color: var(--matsuri-ink);
  background-color: var(--matsuri-paper-deep);
  background-image:
    repeating-linear-gradient(6deg, rgba(94, 69, 37, .03) 0 1px, transparent 1px 9px),
    repeating-linear-gradient(96deg, rgba(255, 255, 255, .34) 0 2px, transparent 2px 14px);
}

.festival-story__visual {
  margin: 34px 0 34px 34px;
  height: calc(100vh - 68px);
  min-height: 640px;
  padding: 18px 18px 60px;
  overflow: visible;
  background: #fffdf8;
  box-shadow: 18px 18px 0 rgba(49, 95, 121, .2);
  transform: rotate(-.35deg);
}

.festival-story__visual::after {
  inset: 18px 18px 60px;
  border: 0;
  outline: 2px solid rgba(36, 70, 61, .16);
}

.festival-story__visual::before {
  display: none;
}

.festival-story__visual figure {
  inset: 18px 18px 60px;
}

.festival-story__counter {
  left: 36px;
  bottom: 10px;
  color: var(--matsuri-indigo);
}

.festival-story__chapters {
  padding-inline: 9%;
}

.festival-section-head--story h2,
.festival-chapter h3 {
  color: var(--matsuri-ink);
}

.festival-section-head--story p span {
  color: #fff;
  background: var(--matsuri-vermilion);
}

.festival-chapter {
  position: relative;
  opacity: .48;
}

.festival-chapter::before {
  position: absolute;
  left: -34px;
  top: 50%;
  width: 17px;
  height: 17px;
  border: 3px solid var(--matsuri-paper-deep);
  border-radius: 50%;
  background: var(--matsuri-coral);
  box-shadow: 0 0 0 2px var(--matsuri-coral);
  content: "";
}

.festival-chapter.is-active {
  opacity: 1;
}

.festival-chapter > span {
  color: var(--matsuri-vermilion);
}

.festival-chapter p {
  color: #435d55;
}

.festival-story__progress {
  background: rgba(49, 95, 121, .16);
}

.festival-story__progress i {
  background: var(--matsuri-vermilion);
}

.festival-instagram {
  color: var(--matsuri-ink);
}

.festival-instagram::after {
  border-color: rgba(199, 93, 76, .18);
  box-shadow: 0 0 0 7vw rgba(199, 93, 76, .045), 0 0 0 14vw rgba(49, 95, 121, .035);
}

.festival-instagram__embed {
  border: 8px solid #fffdf7;
  box-shadow: 13px 15px 0 rgba(49, 95, 121, .18), 0 26px 54px rgba(67, 49, 28, .12);
  transform: rotate(1deg);
}

.festival-instagram__label {
  background: var(--matsuri-indigo);
}

.festival-sound {
  position: relative;
  color: var(--matsuri-ink);
  background: #e3ece7;
  border-block: 12px solid var(--matsuri-paper);
}

.festival-sound::before {
  position: absolute;
  z-index: 3;
  right: 7%;
  top: 54px;
  padding: 10px 18px;
  color: #fff;
  background: var(--matsuri-indigo);
  box-shadow: 7px 7px 0 rgba(199, 93, 76, .28);
  content: "DJ BOOTH";
  font: 800 12px/1.2 Jost, sans-serif;
  transform: rotate(2deg);
}

.festival-sound__media {
  margin: 40px 0 40px 40px;
  min-height: 620px;
  padding: 16px 16px 58px;
  background: #fffdf7;
  box-shadow: 17px 18px 0 rgba(199, 93, 76, .16);
  transform: rotate(-.6deg);
}

.festival-sound__media::after {
  inset: 16px 16px 58px;
  border: 0;
  outline: 2px solid rgba(36, 70, 61, .14);
}

.festival-sound__copy > p:first-child {
  color: var(--matsuri-vermilion);
}

.festival-orbit {
  background-color: #f8f0df;
}

.festival-orbit::before,
.festival-orbit::after {
  height: 8px;
  background: var(--matsuri-vermilion);
}

.festival-orbit::after {
  background: var(--matsuri-indigo);
}

.festival-orbit__center {
  border-color: #fffdf7;
  border-radius: 48% 52% 46% 54%;
  box-shadow: 13px 16px 0 rgba(199, 93, 76, .14), 0 20px 46px rgba(56, 46, 30, .15);
}

.festival-orbit__center::after {
  background: rgba(36, 70, 61, .24);
}

.festival-orbit__ring figure > div {
  border-color: #fffdf7;
  box-shadow: 8px 10px 0 rgba(49, 95, 121, .12), 0 12px 28px rgba(62, 48, 28, .12);
}

.festival-orbit__ring figcaption {
  background: var(--matsuri-indigo);
}

.festival-finale {
  min-height: 720px;
  color: var(--matsuri-ink);
  background: var(--matsuri-paper) url("/theme/common/img/hfg/festival-illustration/garden-matsuri-kamishibai-pc-v3.webp") center 44% / cover no-repeat;
}

.festival-finale::before {
  background: rgba(251, 245, 231, .78);
}

.festival-finale__inner > p:first-child {
  color: var(--matsuri-vermilion);
}

.festival-finale__inner > p:nth-of-type(2) {
  color: #3f5b52;
}

.festival-actions a {
  border: 2px solid var(--matsuri-ink);
  color: #fff;
  background: var(--matsuri-indigo);
  box-shadow: 7px 7px 0 rgba(199, 93, 76, .22);
}

.festival-actions a:last-child {
  color: var(--matsuri-ink);
  background: rgba(255, 253, 247, .88);
}

.festival-enhanced [data-festival-reveal] {
  transform: translateY(32px) rotate(.4deg);
}

.festival-enhanced [data-festival-reveal].is-visible {
  transform: none;
}

@keyframes matsuri-paper-open-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-106%); }
}

@keyframes matsuri-paper-open-right {
  0% { transform: translateX(0); }
  100% { transform: translateX(106%); }
}

@keyframes matsuri-kamishibai-drift {
  from { transform: scale(1.015) translate3d(-.3%, 0, 0); }
  to { transform: scale(1.045) translate3d(.5%, -.4%, 0); }
}

@media (max-width: 767px) {
  .festival-opening__movie {
    object-position: 53% center;
  }

  .festival-opening__paper-curtain {
    width: 58%;
  }

  .festival-opening__lanterns i:nth-child(1),
  .festival-opening__lanterns i:nth-child(2),
  .festival-opening__lanterns i:nth-child(6) {
    display: none;
  }

  .festival-opening__copy {
    left: 20px;
    right: 20px;
    top: auto;
    bottom: 92px;
    width: auto;
    padding: 20px 22px 22px;
    box-shadow: 7px 7px 0 rgba(49, 95, 121, .2), 0 10px 28px rgba(64, 46, 26, .14);
  }

  .festival-opening__copy > p:first-child {
    font-size: 10px;
  }

  .festival-opening__title {
    font-size: clamp(44px, 15vw, 68px);
  }

  .festival-opening__jp {
    max-width: calc(100vw - 48px);
    font-size: 12px;
    line-height: 1.65;
  }

  .festival-hero {
    min-height: 760px;
    height: 100svh;
    padding: 150px 20px 94px;
    align-items: flex-end;
  }

  .festival-kamishibai-stage img {
    object-position: 51% center;
  }

  .festival-kamishibai-stage__lanterns i {
    width: 48px;
    height: 48px;
  }

  .festival-kamishibai-stage__lanterns i:nth-child(1),
  .festival-kamishibai-stage__lanterns i:nth-child(5) {
    display: none;
  }

  .festival-hero__shade {
    background: linear-gradient(180deg, rgba(251, 245, 231, .08) 0%, rgba(251, 245, 231, .05) 46%, rgba(251, 245, 231, .86) 72%, rgba(251, 245, 231, .98) 100%);
  }

  .festival-hero__type {
    display: none;
  }

  .festival-hero__copy {
    width: 100%;
    max-width: 355px;
    padding: 20px 20px 22px;
    color: var(--matsuri-ink);
    text-shadow: none;
    box-shadow: 7px 7px 0 rgba(49, 95, 121, .2), 0 10px 28px rgba(64, 46, 26, .14);
  }

  .festival-kicker {
    margin-bottom: 14px;
    font-size: 9px;
  }

  .festival-hero__copy h1 {
    font-size: clamp(39px, 12vw, 55px);
    line-height: 1.27;
  }

  .festival-hero__copy > p:last-child {
    margin-top: 16px;
    font-size: 13px;
    line-height: 1.75;
  }

  .festival-hero__note {
    display: none;
  }

  .festival-scroll {
    bottom: 18px;
  }

  .festival-anchor {
    gap: 5px;
    padding: 14px 10px 18px;
  }

  .festival-anchor a {
    min-height: 58px;
    gap: 5px;
    font-size: 10px;
    box-shadow: 3px 4px 0 rgba(49, 95, 121, .13);
  }

  .festival-concept {
    padding-top: 92px;
  }

  .festival-concept::before,
  .festival-concept::after {
    right: 24px;
  }

  .festival-concept::after {
    right: 50px;
  }

  .festival-concept__photo {
    width: 100%;
    padding: 8px 8px 36px;
    box-shadow: 9px 10px 0 rgba(199, 93, 76, .13);
  }

  .festival-story__inner {
    display: block;
  }

  .festival-story__visual {
    position: relative;
    top: auto;
    width: calc(100% - 34px);
    height: 64vh;
    min-height: 460px;
    margin: 24px 17px 0;
    padding: 10px 10px 46px;
    box-shadow: 9px 10px 0 rgba(49, 95, 121, .18);
  }

  .festival-story__visual::after,
  .festival-story__visual figure {
    inset: 10px 10px 46px;
  }

  .festival-story__counter {
    left: 22px;
    bottom: 4px;
  }

  .festival-story__chapters {
    padding: 0 22px 70px;
  }

  .festival-section-head--story {
    min-height: auto;
    padding: 90px 0 42px;
  }

  .festival-chapter {
    min-height: auto;
    padding: 42px 0;
    opacity: 1;
  }

  .festival-chapter::before {
    left: -16px;
    top: 51px;
    width: 10px;
    height: 10px;
  }

  .festival-sound {
    display: block;
    padding-top: 22px;
  }

  .festival-sound::before {
    right: 22px;
    top: 24px;
  }

  .festival-sound__media {
    min-height: 410px;
    margin: 24px 17px 0;
    padding: 10px 10px 42px;
    box-shadow: 9px 10px 0 rgba(199, 93, 76, .15);
  }

  .festival-sound__media::after {
    inset: 10px 10px 42px;
  }

  .festival-instagram__embed {
    transform: none;
  }

  .festival-finale {
    min-height: 660px;
    background-position: 51% center;
  }

  .festival-finale::before {
    background: rgba(251, 245, 231, .87);
  }
}

@media (prefers-reduced-motion: reduce) {
  .festival-opening__movie {
    display: none;
  }

  .festival-opening__kamishibai {
    background: url("/theme/common/img/hfg/festival-illustration/garden-matsuri-kamishibai-pc-v3.webp") center / cover no-repeat;
  }

  .festival-opening__paper-curtain,
  .festival-opening__lanterns i,
  .festival-kamishibai-stage img,
  .festival-kamishibai-stage__lanterns i {
    animation: none !important;
  }

  .festival-opening__paper-curtain {
    display: none;
  }
}

/* Keep the two-line Japanese headings balanced on tablet and mobile. */
@media (max-width: 1100px) {
  .festival-concept .festival-section-head h2 {
    font-size: 28px;
  }

  #festival-ribbon-reel-title {
    font-size: 32px;
  }

  .festival-sound__copy h2 {
    font-size: 25px;
  }
}

@media (min-width: 1101px) and (max-width: 1279px) {
  .festival-sound__copy h2 {
    font-size: 28px;
  }
}

@media (max-width: 767px) {
  .festival-section-head--center h2,
  .festival-finale h2 {
    font-size: 26px;
  }
}

/* Keep the authored phrase lines intact without letting them outgrow a column. */
#main .festival-instagram__copy h2 .hfg-no-orphan,
#main .festival-section-head--center h2 .hfg-no-orphan,
#main .festival-finale h2 .hfg-no-orphan {
  display: inline-block !important;
  white-space: nowrap !important;
}

#festival-ribbon-reel-title {
  font-size: clamp(38px, 3.9vw, 56px);
}

#main .festival-concept__copy p,
#main .festival-sound__copy > p,
#main .festival-instagram__lead,
#main .festival-finale__inner > p:nth-of-type(2) {
  text-wrap: balance;
}

@media (max-width: 1100px) {
  #festival-ribbon-reel-title {
    font-size: 32px;
  }
}
