.festival-finale {
  padding: 32px 0 40px;
  border-block: 1px solid rgba(22, 142, 172, .2);
  background: linear-gradient(115deg, #fff4f8, #f0fbfd 58%, #fffdf4);
}

.festival-finale__panel {
  overflow: hidden;
  border: 1px solid rgba(220, 79, 137, .26);
  border-radius: 24px 8px 24px 8px;
  background: #fff url("assets/fin-background.png") center / cover no-repeat;
  box-shadow: 7px 8px 0 rgba(220, 79, 137, .14), 0 12px 28px rgba(22, 142, 172, .08);
}

.festival-finale__viewport {
  overflow: hidden;
  border-bottom: 1px solid rgba(220, 79, 137, .18);
  background: rgba(255, 255, 255, .42);
  backdrop-filter: blur(2px);
}

.festival-finale__marquee {
  display: flex;
  width: max-content;
  animation: festival-finale-flow 78s linear infinite;
}

.festival-finale__track {
  display: flex;
  flex: none;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
}

.festival-finale__track img {
  display: block;
  flex: none;
  width: auto;
  max-width: 84vw;
  height: 330px;
  border: 1px solid rgba(22, 142, 172, .16);
  border-radius: 4px;
  background: #fff;
  object-fit: contain;
}

.festival-finale__message {
  position: relative;
  overflow: hidden;
  padding: 26px 30px 30px;
  color: #4b6572;
  text-align: center;
  background: linear-gradient(125deg, rgba(255, 247, 250, .72), rgba(242, 251, 253, .7) 58%, rgba(255, 250, 241, .72));
}

.festival-finale__message h2 {
  margin: 0 0 16px;
  color: var(--teal-dark);
  font-family: var(--serif);
  font-size: 1.65rem;
  line-height: 1.35;
}

.festival-finale__message p {
  margin: 0 0 8px;
  line-height: 1.8;
}

.festival-finale__thanks,
.festival-finale__wish {
  color: #476b82;
  font-family: "Hiragino Maru Gothic ProN", "Hiragino Maru Gothic Pro", "Yu Gothic", sans-serif;
  font-weight: 600;
}

.festival-finale__wish {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.95;
}

.festival-finale__highlight {
  color: var(--rose);
  font-size: 1.28em;
  font-weight: 800;
}

.festival-finale__highlight--teal {
  color: var(--teal-dark);
}

.festival-finale__mobile-break {
  display: none;
}

.festival-finale__message .festival-finale__signature {
  margin: 18px 0 0;
  color: var(--rose);
  font-weight: 700;
}

@keyframes festival-finale-flow {
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 760px) {
  .festival-finale {
    padding: 22px 0 30px;
  }

  .festival-finale__track {
    gap: 10px;
    padding: 10px;
  }

  .festival-finale__track img {
    height: 230px;
  }

  .festival-finale__message {
    padding: 22px 16px 24px;
  }

  .festival-finale__message h2 {
    font-size: 1.3rem;
  }

  .festival-finale__thanks {
    font-size: clamp(.75rem, 3.5vw, .95rem);
    white-space: nowrap;
  }

  .festival-finale__wish {
    font-size: clamp(1rem, 4.4vw, 1.2rem);
    white-space: nowrap;
  }

  .festival-finale__mobile-break {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .festival-finale__viewport {
    overflow-x: auto;
  }

  .festival-finale__marquee {
    width: max-content;
    animation: none;
  }

  .festival-finale__track--duplicate {
    display: none;
  }
}