@charset "UTF-8";
/* PAGE TOP with the official character (inc/pagetop.php; loaded only where the character shows). The button keeps
   common.css .pagetop a (fixed, right 20 / bottom 250, SP right 10 / bottom 145, above the ticket banner); this file
   swaps the snowman image for the character and the live label. */

@font-face {
  font-family: "PageTop Rounded";
  src: url(../fonts/pagetop-rounded-bold.woff2) format("woff2");
  font-weight: bold;
  font-display: swap;
}

.pagetop--character a {
  height: auto;
  text-indent: 0;
  text-align: center;
  text-decoration: none;
  background: none;
}
.pagetop--character img {
  display: block;
  width: 100%;
  height: auto;
}
/* The glove red (#BF2F20 in the style guide). The white edge keeps it readable on the navy page and on photos. */
.pagetop__label {
  display: block;
  margin-top: 2px;
  color: #bf2f20;
  font-family: "PageTop Rounded", "Hiragino Maru Gothic ProN", sans-serif;
  font-size: 15px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-shadow: 0 0 2px #fff, 0 0 2px #fff, 0 0 2px #fff, 0 0 2px #fff;
}

@media (hover: hover) {
  .pagetop--character img {
    transition: transform 0.2s;
  }
  .pagetop--character a:hover img {
    transform: translateY(-5px);
  }
}

/* Click: the character crouches and takes off like the rocket in the client's reference, leaving a puff behind,
   while style.js scrolls the page up. pagetop.js takes the class off again. */
.pagetop--character a::after {
  position: absolute;
  left: 50%;
  bottom: 14px;
  width: 70%;
  height: 34%;
  margin-left: -35%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 25% 60%, #fff 0 22%, transparent 23%),
    radial-gradient(circle at 50% 45%, #fff 0 28%, transparent 29%),
    radial-gradient(circle at 75% 60%, #fff 0 22%, transparent 23%);
  opacity: 0;
  pointer-events: none;
  content: "";
}
.pagetop--character.is-launching img {
  animation: pagetop-launch 1s cubic-bezier(0.55, 0, 0.75, 0) forwards;
}
.pagetop--character.is-launching .pagetop__label {
  opacity: 0;
  transition: opacity 0.2s;
}
.pagetop--character.is-launching a::after {
  animation: pagetop-puff 0.8s ease-out forwards;
}
@keyframes pagetop-launch {
  0% { transform: translateY(0); }
  15% { transform: translateY(6px) scale(1.06, 0.92); }
  100% { transform: translateY(-110vh); }
}
@keyframes pagetop-puff {
  0% { opacity: 0; transform: scale(0.4); }
  20% { opacity: 0.95; }
  100% { opacity: 0; transform: scale(1.5) translateY(10px); }
}

@media (max-width: 678px) {
  .pagetop--character a {
    width: 60px;
    height: auto;
  }
  .pagetop__label {
    font-size: 10px;
    letter-spacing: 0.02em;
  }
  .pagetop--character a::after {
    bottom: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pagetop--character.is-launching img,
  .pagetop--character.is-launching a::after {
    animation: none;
  }
}
