/* ボタン */
.open-btn {
  background-color: #f7d96b;
  color: #5b370d;
  padding: 0.8rem 1.5rem;
  font-size: 1.2rem;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.open-btn:hover {
  background-color: #dfbb36;
}

.modal-close {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 30px;
  right: 40px;
  width: 40px;
  height: 65px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.modal-close .fa-icon {
  margin-bottom: 5px;
  color: #00a38e;
  font-size: 4rem;
}

.modal-close .txt {
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  line-height: 1.4167;
}

@media only screen and (max-width: 768px) {
  .modal-close {
    top: 20px;
    right: 20px;
    width: 40px;
    height: 55px;
  }

  .modal-close .fa-icon {
    font-size: 3rem;
  }
}

/* モーダル背景 */
.modal-block {
  padding: 50px 10px;
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background: rgba(62, 128, 119, 0.6);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

@media only screen and (max-width: 768px) {
  .modal-block {
    padding: 30px 25px;
  }
}

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

/* モーダルの中身*/
.modal-content {
  padding: 120px 55px 30px 55px;
  border-radius: 50px;
  width: 100%;
  max-width: 1080px;
  max-height: 100%;
  text-align: center;
  position: relative;
  opacity: 0;
  transform: scale(0.8);
  overflow: auto;
  background: #fffef7;
  transition: all 0.3s ease;
}

@media only screen and (max-width: 768px) {
  .modal-content {
    padding: 100px 20px 40px 20px;
    border-radius: 20px;
  }
}

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

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