/* 重ねボタン */
.overlay01 {
    top: 32.25%;
    left: 0%;
    transition-delay: 0.2s;
}

.overlay02 {
    top: 37.15%;
    left: 0%;
    transition-delay: 0.7s;
}

.overlay03 {
    top: 42.1%;
    left: 0%;
    transition-delay: 1.2s;
}


/* モーダルウインドウ */
.popup {
    position: relative;
    padding: 50px 0;
}

/* モーダルボタン */
.popupBtn {
  border-radius: 15px;
  cursor: pointer;
  margin: 0 4.5%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  overflow: hidden;
  top:57.3%;
}
.popupBtn:hover{
  color: #fff;
}

.popupBtn:before {
  /*光るアニメーション用*/
  animation: shiny 3s ease-in-out infinite;
  background-color: #fff;
  content: " ";
  height: 100%;
  left: 0;
  opacity: 0;
  position: absolute;
  top: -180px;
  transform: rotate(45deg);
  width: 30px;
}

@keyframes shiny {
  0% {
    transform: scale(0) rotate(45deg);
    opacity: 0;
  }
  80% {
    transform: scale(0) rotate(45deg);
    opacity: 0.5;
  }
  81% {
    transform: scale(4) rotate(45deg);
    opacity: 1;
  }
  100% {
    transform: scale(50) rotate(45deg);
    opacity: 0;
  }
}

/* モーダルウインドウ */
.popup {
  background-color: rgba(68, 68, 68, .8);
  display: none; /* 初期非表示 */
  height: 100%;
  left: 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100000;
}
.popup-overlay {
  align-items: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
}
.popup-content {
  display: block;
  width: 28%;
  height: 90%;
  text-align: center;
  overflow-y: scroll;
  border-radius: 10px;
}
@media screen and (max-width: 767px) {
  .popup-content {
    width: 90%;
    height: 70%;
  }
}
.popup-close {
    position: relative;
    background-color: #222;
    border-radius: 50px;
    width: 3em;
    height: 3em;
    margin: -7% 0 -2% 27%;
    cursor: pointer;
}
@media screen and (max-width: 767px) {
  .popup-close {
    margin: -30% 0 -7% 83%;
  }
}
.popup-close::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%) rotate(45deg);
    background-color: #fff;
    border-radius: 50px;
    width: 2px;
    height: 20px;
}
.popup-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%) rotate(-45deg);
    background-color: #fff;
    border-radius: 50px;
    width: 2px;
    height: 20px;
}
.popup img {
    max-width: 100%;
}