/* モーダルウインドウ */
.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 {
  width: 85%;
  text-align: center;
}
.popup-close {
    position: relative;
    background-color: #222;
    border-radius: 50px;
    width: 3em;
    height: 3em;
    margin: -10% 0 -10% 80%;
    cursor: pointer;
}
.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%;
}

/* アンカーリンク */
.anchor {
  border-radius: 15px;
  margin: 0 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.anchor:hover{
  color: #fff;
}

.anchor: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;
  }
}
