.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.modal.show {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #fff;
  padding: 20px;
  max-width: calc(100% - 160px);
  width: fit-content;
  min-width: 400px;
  margin: 10% auto;
  position: relative;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s ease;
}

.modal.show .modal-content {
  opacity: 1;
  transform: translateY(0);
}

.close-btn {
      position: absolute;
    top: 8px;
    right: 32px;
    font-size: 30px;
    font-weight: 100;
    cursor: pointer;
    color: #333;
    width: 30px;
    height: 30px;
    text-align: center;
}

/*****SP*****/
@media screen and (min-width: 1023px) {
.modal-content{
  padding: 80px;
}

}
/*****SP*****/
@media screen and (max-width: 1024px) {
.modal-content{
	max-width: 90%;
	min-width: 90%;
}
}