/* ボタン */
.open-btn {
  background-color: unset;
  padding: 0;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.close-btn {
  position: absolute;
  display: block;
  top: -30px;
  right: 0;
  /* font-size: 1.6rem; */
  background: transparent;
  border: none;
  /* cursor: pointer; */
  /* transition: transform 0.3s ease; */
  width: 25px;
  height: 25px;
  background: url(icon_close.svg) center center no-repeat;
  background-size: contain;
  z-index: 2;
}


/* モーダル背景 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background: rgba(26, 26, 26, 0.9);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  overflow-y: scroll;
}

/* モーダル表示状態 */
.modal.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

/* モーダルの中身*/
.modal-content {
  background: #fff;
  width: 80vw;
  max-width: 1000px;
  max-height: 85vh;
  margin: 15vh 0;
  padding: 1rem;
  border-radius: 10px;
  /* box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); */
  position: relative;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
  overflow-y: scroll;
}

/* アニメーション*/
.modal.active .modal-content {
  animation: fadeInScale 0.4s ease forwards;
  overflow: visible;
}

@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}