.arrow {
  position: relative;
  width: 30px;
  height: 30px;
  cursor: pointer;
  /*   border:solid 1px white; */
  transition: 0.5s;
  overflow: hidden;
  rotate: 180deg;
}

.arrow:after {
  position: absolute;
  display: block;
  content: "";
  color: rgb(0, 0, 0);
  width: 20px;
  height: 15px;
  /*   border:solid 1px;  */
  top: -1px;
  border-bottom: solid 2px;
  transform: translatex(4px);
}

.arrow:before {
  position: absolute;
  display: block;
  content: "";
  color: rgb(0, 0, 0);
  width: 8px;
  height: 8px;
  /*   border:solid 1px;  */
  border-top: solid 2px;
  border-left: solid 2px;
  top: 50%;
  left: 2px;
  transform-origin: 0% 0%;
  transform: rotatez(-45deg);

}

a:hover .arrow:before {
  animation: aniArrow01 cubic-bezier(0, 0.6, 1, 0.4) infinite 1s;
}

a:hover .arrow:after {
  animation: aniArrow02 cubic-bezier(0, 0.6, 1, 0.4) infinite 1s;
}


@keyframes aniArrow01 {
  0% {
    transform: rotatez(-45deg) translateY(30px) translateX(30px);
  }

  100% {
    transform: rotatez(-45deg) translateY(-35px) translateX(-35px);
  }
}


@keyframes aniArrow02 {
  0% {
    transform: translateX(45px);
  }

  100% {
    transform: translateX(-44px);
  }
}

.btn_EC {
  color: #000;
  fill: currentColor;
  transform-origin: center;
  aspect-ratio: 1/1;
  animation: mymove 8s infinite;
  border-radius: 300px;
  font-family: "source-han-sans-japanese", sans-serif !important;
  font-weight: 500;
  font-size: 1.5rem !important;
  transform: rotate(-40deg);
}
.btn_EC_bg{
  background-image: url(../image/btn_EC2.png);
  background-size: cover;
  aspect-ratio: 1/1;
  padding: 0 0;
  width: 10rem;
}
@keyframes mymove {
  50% {
    transform: rotate(40deg);
  }
}

@media only screen and (max-width: 1023px) {
  .btn_EC_bg {
    width: 7rem;
  }
}

.btn_EC2 {
  transform-origin: center;
  aspect-ratio: 1/1;
  animation: mymove2 6s infinite;
  border-radius: 300px;
  transform: rotate(0deg);
  background: none;
  border: none;
  width: -webkit-fill-available;
  height: -webkit-fill-available;
  padding: 0 0 !important;
}

.btn_EC_bg2 a{
  aspect-ratio: 1/1; 
  width: -webkit-fill-available;
  height: -webkit-fill-available;
}

.btn_EC_bg2{
  background-image: url(../image/btn2_EC2.png);
  background-size: cover;
  aspect-ratio: 1/1;
  padding: 0 0;
  width: 8rem;
  height: 8rem;
}
@keyframes mymove2 {
  0% {
    transform: rotate(0deg);
  }
  20% {
    transform: rotate(30deg);
  }
  33% {
    transform: rotate(-420deg);
  }
  35% {
    transform: rotate(-420deg);
  }
  45% {
    transform: rotate(-330deg);
  }
  53% {
    transform: rotate(-375deg);
  }
  65% {
    transform: rotate(-352deg);
  }
  75% {
    transform: rotate(-360deg);
  }
  100% {
    transform: rotate(-360deg);
  }
}

@media only screen and (max-width: 1023px) {
  .btn_EC_bg2 {
    width: 7rem;
    height: 7rem;
  }
}