
html.modal-is-locked {
  overflow: hidden;
}

.modal,
[data-modal-id] {
  display: none;
}

.modal-overlay,
.modal-wrapper {
  backface-visibility: hidden;
}

.modal,
.modal-wrapper:after {
  vertical-align: middle;
}

.modal-overlay {
  position: fixed;
  z-index: 9999;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: none;
  background: rgba(0,0,0,0.8);
}

.modal-wrapper {
  position: fixed;
  z-index: 10000;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: none;
  overflow: auto;
  text-align: center;
  -webkit-overflow-scrolling: touch;
}

.modal-wrapper:after {
  display: inline-block;
  height: 100%;
  margin-left: -0.05em;
  content: "";
}

.modal {
  position: relative;
  outline: none;
  text-size-adjust: 100%;
  width: 90%;
  margin: 0 auto 10px;
  padding: 15px;
  background-color: #FFF;
  border-radius: 10px;
  max-width: 800px;
}

.modalSmall {
  width: auto;
}

.modalMedium {
    width: 500px!important;
}

.modalBig {
  max-width: 1200px!important;
}

.modal-is-initialized {
  display: inline-block;
}

.modal-bg.modal-is-opening,
.modal-bg.modal-is-opened {
  filter: blur(3px);
}

.modal-overlay.modal-is-opening,
.modal-overlay.modal-is-closing,
.modal.modal-is-opening,
.modal.modal-is-closing {
  animation-fill-mode: forwards;
}

.modal-overlay.modal-is-opening {
  animation: modal-overlay-opening-keyframes 0.3s;
}

.modal-overlay.modal-is-closing {
  animation: modal-overlay-closing-keyframes 0.3s;
}

.modal.modal-is-opening {
  animation: modal-opening-keyframes 0.3s;
}

.modal.modal-is-closing {
  animation: modal-closing-keyframes 0.3s;
}

.modalClose {
  animation: fadein 0.5s;
}

.modalClose {
  position: absolute;
  top: 5px;
  right: 10px;
  font-weight: 900;
  font-size: 3.6rem;
  cursor: pointer;
  transition: .2s linear;
  line-height: 1;
  color: #333;
}

.modalClose:hover {
  opacity: 0.6;
}
/****************************************
アニメーション
****************************************/
@keyframes modal-opening-keyframes {
 from {
 transform: scale(1.05);
 opacity: 0;
}
 to {
 transform: none;
 opacity: 1;
}
}
 @keyframes modal-closing-keyframes {
 from {
 transform: scale(1);
 opacity: 1;
}
 to {
 transform: scale(0.95);
 opacity: 0;
}
}
 @keyframes modal-overlay-opening-keyframes {
 from {
 opacity: 0;
}
 to {
 opacity: 1;
}
}
 @keyframes modal-overlay-closing-keyframes {
 from {
 opacity: 1;
}
 to {
 opacity: 0;
}
}
 @keyframes fadein {
 0% {
 opacity: 0;
}
 80% {
 opacity: 0;
}
 100% {
 opacity: 1;
}
}
 @keyframes fadeout {
 from {
 opacity: 1;
}
 to {
 opacity: 0;
}
}
