.top {
  position: relative;
  aspect-ratio: 1 / 0.56;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  overflow: hidden;
}

.top-town {
  position: absolute;
  bottom: 0;
  width: 100%;
  aspect-ratio: 1 / 0.16;
  background-image: url(../img/top-town.png);
  background-repeat: repeat-x;
  background-position: 0 bottom;
  background-size: auto 100%;

  animation: town-scroll 40s linear infinite;
  will-change: background-position;
  transform: translateZ(0);
}

@keyframes town-scroll {
  from {
    background-position: 0 bottom;
  }

  to {
    background-position: 1000px bottom;
  }

}

@media (prefers-reduced-motion: reduce) {
  .top-town {
    animation: none;
  }
}

.top-logo {
  position: relative;
  width: 58%;
  text-align: center;
  z-index: 2;
}

.top-logo img {
  width: 100%;
  margin: 0 0 2rem;
}

.top-text {
  display: block;
  text-align: center;
  margin: 0 0 0.5rem;
}

.top-text p {
  display: inline-block;
  background-color: #d3483e;
  color: #fff;
  font-size: 1.8vw;
  font-weight: 900;
  padding: 0 0.5em;
  letter-spacing: 0.05em;
}

.top-text p span {
  display: inline-block;
  transform: rotate(15deg);
}

.top-text p span:first-child {
  padding: 0 0 0 0.2em;
}

.cloud-1,
.cloud-2,
.cloud-3,
.cloud-4,
.cloud-5 {
  position: absolute;
}

.balloon-1,
.balloon-2,
.balloon-3,
.balloon-4,
.balloon-5,
.balloon-6 {
  position: absolute;
  animation-name: up-down;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.cloud-1 {
  width: 10%;
  top: 20%;
  left: 5%;
}

.cloud-2 {
  width: 8%;
  top: 6%;
  left: 50%;
}

.cloud-3 {
  width: 10%;
  top: 24%;
  right: 18%;
}

.cloud-4 {
  width: 8%;
  bottom: 30%;
  left: 9%;
}

.cloud-5 {
  width: 8%;
  bottom: 32%;
  right: 16%;
}

.balloon-1 {
  width: 2%;
  top: 6%;
  left: 5%;
}

.balloon-2 {
  width: 2.3%;
  top: 6%;
  right: 10%;
}

.balloon-3 {
  width: 2%;
  bottom: 28%;
  right: 28%;
}

.balloon-4 {
  width: 2.3%;
  bottom: 30%;
  right: 3%;
}

.balloon-5 {
  width: 5%;
  top: 40%;
  left: 9%;
}

.balloon-6 {
  width: 6%;
  top: 30%;
  right: 8%;
}

.balloon-1 {
  animation-duration: 3.8s;
  animation-delay: 0s;
}

.balloon-2 {
  animation-duration: 3s;
  animation-delay: .5s;
}

.balloon-3 {
  animation-duration: 4.5s;
  animation-delay: 1s;
}

.balloon-4 {
  animation-duration: 5.2s;
  animation-delay: 1.5s;
}

.balloon-5 {
  animation-duration: 3s;
  animation-delay: .3s;
}

.balloon-6 {
  animation-duration: 4.7s;
  animation-delay: 1.2s;
}

@media screen and (min-width: 1px) and (max-width: 743px) {
  .top {
    aspect-ratio: 1 / 1.2;
  }

  .top-town {
    aspect-ratio: 1 / 0.4;
  }

  .top-logo {
    width: 86%;
  }

  .top-logo img {
    margin: 0 0 1rem;
  }

  .top-text {
    margin: 0 0 0.2rem;
  }

  .top-text p {
    font-size: 3.8vw;
    padding: 0 0.5em;
  }

  .cloud-1 {
    width: 20%;
    top: 14%;
    left: 20%;
  }

  .cloud-2 {
    width: 16%;
    top: 4%;
    left: 50%;
  }

  .cloud-3 {
    width: 16%;
    top: 16%;
    right: 18%;
  }

  .cloud-4 {
    width: 16%;
    bottom: 22%;
    left: 6%;
  }

  .cloud-5 {
    width: 16%;
    bottom: 40%;
    right: 12%;
  }

  .balloon-1 {
    width: 5%;
    top: 2%;
    left: 8%;
  }

  .balloon-2 {
    width: 5%;
    top: 1%;
    right: 14%;
  }

  .balloon-3 {
    width: 4%;
    bottom: 35%;
    right: 94%;
  }

  .balloon-4 {
    width: 5%;
    bottom: 40%;
    right: 3%;
  }

  .balloon-5 {
    width: 8%;
    top: 26%;
    left: 3%;
  }

  .balloon-6 {
    width: 12%;
    top: 14%;
    right: 4%;
  }

  .balloon-1 {
    animation-duration: 3.8s;
    animation-delay: 0s;
  }

  .balloon-2 {
    animation-duration: 3s;
    animation-delay: .5s;
  }

  .balloon-3 {
    animation-duration: 4.5s;
    animation-delay: 1s;
  }

  .balloon-4 {
    animation-duration: 5.2s;
    animation-delay: 1.5s;
  }

  .balloon-5 {
    animation-duration: 3s;
    animation-delay: .3s;
  }

  .balloon-6 {
    animation-duration: 4.7s;
    animation-delay: 1.2s;
  }
}

@media screen and (min-width: 744px) and (max-width: 1024px) {
  .top-logo {
    width: 60%;
  }

  .top-logo img {
    margin: 0 0 1.5rem;
  }


  .top-text p {
    font-size: 2.3vw;
  }
}

@media screen and (min-width: 1025px) {}