/*===========================================================
modal window

★モジュール一覧を参照
============================================================*/

.modal-box {
  position: fixed;
  width: 80%;
  max-width: 500px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(51, 51, 51, 0.4);
  z-index: 9999;
  padding: 30px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: all .5s ease;
  overflow: hidden;
}

.modal-box.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(10px);
  transition: all .5s ease;
}

.modal-overlay {
  background: rgba(0,0,0,.8);
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all .5s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-head + .modal-content {
  margin-top: 30px;
}

.modal-close {
  position: absolute;
  right: 25px;
  top: 25px;
  width: 25px;
  height: 25px;
  opacity: 0.3;
  cursor: pointer;
}

.modal-close:hover {
  opacity: 1;
}
.modal-close:before, .modal-close:after {
  position: absolute;
  left: 11px;
  content: ' ';
  height: 23px;
  width: 2px;
  background-color: #333;
}
.modal-close:before {
  transform: rotate(45deg);
}
.modal-close:after {
  transform: rotate(-45deg);
}

@media screen and (max-width: 768px) {
  .modal-box {
    padding: 15px;
    width: 90%;
  }
  .modal-head + .modal-content {
    margin-top: 20px;
  }
  .modal-close {
    right: 15px;
    top: 15px;
    width: 15px;
    height: 15px;
  }
  .modal-close:before, .modal-close:after {
    left: 6px;
    height: 16px;
    width: 2px;
  }
  .modal-area .num-tel {
    font-size: 26px;
  }
}
