@charset "utf-8";

#openModal1,
#openModal2,
#openModal3,
#openModal4 {
  cursor: pointer;
  transition: all 0.3s;
}

/* .modal-container {
    display: flex;
    gap: 30px;
    max-width: 1080px;
    margin: 0 auto;
} */

/* モーダルCSS */
.modalArea,
.modalArea2,
.modalArea3,
.modalArea4 {
  display: none;
  position: fixed;
  z-index: 10;
  /*サイトによってここの数値は調整 */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.modalBg {
  width: 100%;
  height: 100%;
  background-color: rgba(30, 30, 30, 0.9);
}

.modalWrapper,
.modalWrapper2,
.modalWrapper3,
.modalWrapper4 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 1000px;
  padding: 30px;
  background-color: #fff;
  border-radius: 10px;
}

@media (max-width: 768px) {
  .modalWrapper {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 1000px;
    padding: 15px;
    background-color: #fff;
    border-radius: 10px;
  }

  .modalWrapper2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 1000px;
    padding: 15px;
    background-color: #fff;
    border-radius: 10px;
  }

  .modalWrapper3 {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 1000px;
    padding: 15px;
    background-color: #fff;
    border-radius: 10px;
  }

  .modalWrapper4 {
    position: absolute;
    top: 90%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 1000px;
    padding: 15px;
    background-color: #fff;
    border-radius: 10px;
  }
}

.modal_content {
  animation: modal 1s linear;
}

@keyframes modal {
  from {
    transform: scale(0.5) rotateX(-270deg);
    transition: 0.5s;
  }

  to {
    transform: scale(1) rotateX(0deg);
  }
}

.closeModal {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  cursor: pointer;
}

/* modal 中身 */
.modal_content {
  display: flex;
  /* これを入れないとデフォルトで画像が伸びる↓ */
  align-items: start;
}

.modal_content img {
  width: 300px;
  aspect-ratio: 1/1;
  margin-right: 20px;
}

.modal_content dl {
  margin-top: 20px;
}

.modal_content dt {
  font-weight: 700;
  font-size: 18px;
}

.modal_content .each-info {
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .modal_content {
    flex-direction: column;
  }

  .modal_content img {
    width: 100%;
  }

  .modalBg {
    /* width: 100%; */
    height: 120%;
    /* background-color: rgba(30, 30, 30, 0.9); */
  }
}
