@charset "utf-8"; 

.hide {
  display: none;
}

.btn-area .button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 12.5rem;
/*  magrin: 0; */
  padding: 1.5rem 3.125rem;
  background-color: #1F1F1F;
  border: none;
  border-radius: 0.3125rem;
  box-shadow: 0 12px 24px 0 rgba(0, 0, 0, 0.2);
  color: white;
  text-transform: uppercase;
  overflow: hidden;
  border-radius: 1.8rem;
  width: 21.6rem;
  height: 5.6rem;
  font-size: 1.3rem;
  opacity: 1;
}
.btn-area .button:before {
  position: absolute;
  content: "";
  bottom: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: #A0A0A0;
}
.btn-area .button:hover {
	opacity: 1;
	background-color: #1F1F1F;
}
.btn-area .button span {
  position: absolute;
  line-height: 0;
}
.button span i {
  transform-origin: center center;
}
.btn-area .button span:nth-of-type(1) {
  top: 50%;
  transform: translateY(-50%);
}
.btn-area .button span:nth-of-type(2) {
  top: 100%;
  transform: translateY(0%);
  font-size: 24px;
}
.btn-area .button span:nth-of-type(3) {
  display: none;
}

.btn-area .active {
  background-color: #A0A0A0;
}
.btn-area .active:before {
  width: 100%;
  transition: width 3s linear;
}
.btn-area .active span:nth-of-type(1) {
/*
  top: -100%;
  transform: translateY(-50%);
*/
}
.btn-area .active span:nth-of-type(2) {
  top: 50%;
  transform: translateY(-50%);
}
.btn-area .active span:nth-of-type(2) i {
  animation: loading 500ms linear infinite;
}
.btn-area .active span:nth-of-type(3) {
  display: none;
}

.btn-area .finished {
  background-color: #1F1F1F;
}
.btn-area .finished .submit {
  
}
.btn-area .finished .loading {
  display: none;
}
.btn-area .finished .check {
  display: block !important;
  font-size: 24px;
  animation: scale 0.5s linear;
}
.btn-area .finished .check i {
  transform-origin: center center;
}

@keyframes loading {
  100% {
    transform: rotate(360deg);
  }
}
@keyframes scale {
  0% {
    transform: scale(10);
  }
  50% {
    transform: scale(0.2);
  }
  70% {
    transform: scale(1.2);
  }
  90% {
    transform: scale(0.7);
  }
  100% {
    transform: scale(1);
  }
}

@media screen and (max-width: 767px) {
  .btn-area .button {
    height: 10.6666666667vw;
    font-size: 3.7333333333vw;
    border-radius: 3.2vw;
    width: 40rem;
  }
  .btn-area .button span {
/*    font-weight: bold; */
  }
}

.button_sp {
  display: none !important;
}

@media screen and (max-width: 767px) {
  .button_pc {
    display: none !important;
  }
  
  .button_sp {
    display: flex !important;
  }
}