@keyframes mv-deco-rotate-1 {
  0% {
    transform: rotate(-25deg) scale(5) translate3d(30%,-30%,0);
  }
  100% {
    transform: rotate(0) scale(1) translate3d(0,0,0);
  }
}
@keyframes mv-deco-rotate-2 {
  0% {
    transform: rotate(-25deg) scale(5) translate3d(-30%,-30%,0);
  }
  100% {
    transform: rotate(0) scale(1) translate3d(0,0,0);
  }
}
@keyframes mv-deco-rotate-3 {
  0% {
    transform: rotate(-25deg) scale(5) translate3d(-30%,30%,0);
  }
  100% {
    transform: rotate(0) scale(1) translate3d(0,0,0);
  }
}
@keyframes mv-deco-rotate-4 {
  0% {
    transform: rotate(-25deg) scale(5) translate3d(30%,30%,0);
  }
  100% {
    transform: rotate(0) scale(1) translate3d(0,0,0);
  }
}
@keyframes mv-deco-rotate-1-sp {
  0% {
    transform: rotate(-25deg) scale(10) translate3d(30%,-30%,0);
  }
  100% {
    transform: rotate(0) scale(1) translate3d(0,0,0);
  }
}
@keyframes mv-deco-rotate-2-sp {
  0% {
    transform: rotate(-25deg) scale(10) translate3d(-30%,-30%,0);
  }
  100% {
    transform: rotate(0) scale(1) translate3d(0,0,0);
  }
}
@keyframes mv-deco-rotate-3-sp {
  0% {
    transform: rotate(-25deg) scale(10) translate3d(-30%,30%,0);
  }
  100% {
    transform: rotate(0) scale(1) translate3d(0,0,0);
  }
}
@keyframes mv-deco-rotate-4-sp {
  0% {
    transform: rotate(-25deg) scale(10) translate3d(30%,30%,0);
  }
  100% {
    transform: rotate(0) scale(1) translate3d(0,0,0);
  }
}
@keyframes mv-text-rotate-in {
  0% {
    opacity: 0;
    transform: rotate(-5deg) scale(1) translateX(30%);
  }
  100% {
    opacity: 1;
    transform: rotate(-5deg) scale(1) translateX(0);
  }
}
/* 横に流れるテキスト */
@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}
.marquee {
  overflow: hidden;
  margin: -2.2rem 0;
  .marquee__wrapper {
    display: flex;
    animation: marquee-scroll 30s linear infinite;
    padding: .5rem 0;
    @media (width < 768px) {
      animation: marquee-scroll 10s linear infinite;
    }
    .marquee__text {
      flex-shrink: 0;
      white-space: nowrap;
      padding-right: 4rem;
      font-size: 2rem;
      font-weight: 700;
    }
  }
}
.marquee.right-top {
  transform: skewY(-3deg);
  background-color: #fff;
  .marquee__text {
    transform: skew(3deg);
  }
  .marquee__text:nth-child(even) {
    color: var(--primary-color);
  }
  .marquee__text:nth-child(odd) {
    color: var(--secondary-color);
  }
}
.marquee.left-top {
  transform: skewY(3deg);
  background-color: var(--primary-color);
  .marquee__text {
    transform: skew(-3deg);
  }
  .marquee__text:nth-child(even) {
    color: #fff;
  }
  .marquee__text:nth-child(odd) {
    color: var(--secondary-color);
  }
}

/* ローディング */
.top.is-loading {
  overflow: hidden;
}
.l-loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity .5s ease;
  img {
    width: 30rem;
    @media (width < 768px) {
      width: 50%;
    }
  }
}
.l-loading.is-hide {
  opacity: 0;
  pointer-events: none;
}

.top {
  .mv {
    background-color: #EA6099;
    overflow: hidden;
    position: relative;
    .image {
      width: 100%;
    }
    .text {
      opacity: 0;
      color: #fff;
      font-size: 5rem;
      font-weight: bold;
      line-height: 1.4em;
      position: absolute;
      bottom: 6%;
      left: 5%;
      z-index: 10;
      transform: rotate(-7deg);
      transform-origin: bottom left;
      text-shadow: .3rem .3rem 0 rgba(0,0,0,.2);
      @media (width < 768px) {
        font-size: 3.2rem;
      }
    }
    .deco {
      width: 100%;
      height: 100%;
      position: absolute;
      top: 0;
      left: 0;
      img {
        position:absolute;
      }
    }
    .deco1 {
      z-index: 4;
      img:nth-child(1) {
        width: 60%;
        top: 0;
        left: 0;
        @media (width < 768px) {
          height: 10%;
        }
      }
      img:nth-child(2) {
        width: 10%;
        top: 0;
        right: 0;
        @media (width < 768px) {
          width: 10%;
        }
      }
      img:nth-child(3) {
        width: 42%;
        bottom: 0;
        right: 0;
        @media (width < 768px) {
          width: 30%;
        }
      }
      img:nth-child(4) {
        width: 40%;
        bottom: 0;
        left: 0;
      }
    }
    .deco2 {
      z-index: 3;
      img {
        animation-delay: .1s !important;
      }
      img:nth-child(1) {
        width: 10%;
        top: 0;
        left: 0;
        @media (width < 768px) {
          width: 14%;
        }
      }
      img:nth-child(2) {
        width: 30%;
        top: 0;
        right: 0;
      }
      img:nth-child(3) {
        width: 8%;
        bottom: 0;
        right: 0;
        @media (width < 768px) {
          width: 12%;
        }
      }
      img:nth-child(4) {
        width: 58%;
        bottom: 0;
        left: 23%;
      }
    }
    .deco3 {
      z-index: 2;
      img {
        animation-delay: .2s !important;
      }
      img:nth-child(1) {
        width: 25%;
        top: 0;
        left: 0;
      }
      img:nth-child(2) {
        width: 50%;
        top: 0;
        right: 0;
        @media (width < 768px) {
          width: 65%;
          height: 10%;
        }
      }
      img:nth-child(3) {
        width: 42%;
        bottom: 0;
        right: 0;
      }
      img:nth-child(4) {
        width: 20%;
        bottom: 0;
        left: 0;
      }
    }
    .splide__track {
      overflow: inherit !important;
    }
    .splide__slide {
      padding-bottom: 6%;
      .image {
        position: relative;
        z-index: 1;
      }
    }
    .splide__slide.is-active {
      .deco {
        @media (768px <= width) {
          img:nth-child(1) {
            animation: mv-deco-rotate-4 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
          }
          img:nth-child(2) {
            animation: mv-deco-rotate-3 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
          }
          img:nth-child(3) {
            animation: mv-deco-rotate-2 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
          }
          img:nth-child(4) {
            animation: mv-deco-rotate-1 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
          }
        }
        @media (width < 768px) {
          img:nth-child(1) {
            animation: mv-deco-rotate-4-sp 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
          }
          img:nth-child(2) {
            animation: mv-deco-rotate-3-sp 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
          }
          img:nth-child(3) {
            animation: mv-deco-rotate-2-sp 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
          }
          img:nth-child(4) {
            animation: mv-deco-rotate-1-sp 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
          }
        }
      }
      .text {
        animation: mv-text-rotate-in 1s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
        animation-delay: .7s;
      }
    }
  }
  .about-area {
    background: var(--primary-color) url(../../img/top/about-bg.png) no-repeat top 17rem left -16vw;
    background-size: 66vw;
    color: #fff;
    .flex-block {
      display: flex;
      @media (768px <= width) {
        align-items: center;
        gap: 8rem;
        .left-block {
          width: calc(50% - 3rem);
        }
        .right-block {
          width: calc(50% - 3rem);
        }
      }
      @media (width < 768px) {
        flex-direction: column;
        .left-block,.right-block {
          display: contents;
        }
        .splide {
          order: 2;
          margin-top: 4rem;
        }
        .title-box {
          order: 1;
        }
        .text {
          order: 3;
        }
      }
    }
  }
  .activity-area {
    .activity-wrap {
      border-radius: 2.4rem;
      overflow: hidden;
      color: #fff;
      @media (768px <= width) {
        display: flex;
      }
      >div {
        padding: 8rem 6rem;
        @media (768px <= width) {
          width: 50%;
        }
        @media (width < 768px) {
          padding: 3rem 1rem;
        }
      }
      .activity-block {
        background-color: var(--primary-color);
      }
      .studio-block {
        background-color: var(--secondary-color);
      }
    }
  }
  .voice-area {
    @media (width < 768px) {
      padding-bottom: 8rem;
    }
  }
  .kids-area {
    .inner {
      display: flex;
      @media (768px <= width) {
        gap: 8rem;
      }
      @media (width < 768px) {
        flex-direction: column;
        .image-box {
          order: 2;
          margin-top: 4rem;
        }
        .title-box {
          order: 1;
        }
        .text {
          order: 3;
        }
      }
    }
    .left-block,.right-block {
      @media (768px <= width) {
        width: calc(50% - 4rem);
      }
      @media (width < 768px) {
        display: contents;
      }
    }
    .text {
      @media (768px <= width) {
        margin-top: 4rem;
      }
    }
  }
}
