.modal {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 10;
  overflow-y: scroll;
}

.modal_bg {
  background-color: rgba(0, 0, 0, 0.8);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.modal_content {
  padding: 0 0 80px;
  position: absolute;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
}

@media only screen and (max-width: 767px) {
  .modal_content {
    width: 100%;
    top: 60px;
  }
}

.js-modal-op,
.js-modal-ed,
.js-modal-ost {
  opacity: 0;
  z-index: -1;
  pointer-events: none;
  -webkit-transition: all 0.3s cubic-bezier(0, 0.55, 0.45, 1);
  transition: all 0.3s cubic-bezier(0, 0.55, 0.45, 1);
}

.js-modal-op.-active,
.js-modal-ed.-active,
.js-modal-ost.-active {
  opacity: 1;
  z-index: 20;
  pointer-events: auto;
}

.m-wb-modal__close-btn {
  cursor: pointer;
}



/*****************************************************************/
.is-op-end .top_modal {
  opacity: 1;
  pointer-events: auto;
}

.is-op-skip .top_modal {
  opacity: 1;
  pointer-events: auto;
}

.is-op-skip .top_modal {
  opacity: 0;
  display: none;
}

.top_modal.modal_close {
  opacity: 0 !important;
  pointer-events: none;
}

.top_modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 100;
  color: #fff;
  pointer-events: none;
  overflow-y: scroll;
  -webkit-transition: all 0.3s cubic-bezier(0, 0.55, 0.45, 1) 0s;
  transition: all 0.3s cubic-bezier(0, 0.55, 0.45, 1) 0s;
}

.top_modal_bg {
  background-color: rgba(0, 0, 0, 0.8);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  cursor: pointer;
}

.top_modal_close {
  cursor: pointer;
  position: fixed !important;
  width: 70px !important;
  height: 70px !important;
  top: 0 !important;
  right: 0 !important;
  z-index: 21;
  -webkit-transition: 0s 0.5s;
  transition: 0s 0.5s;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

@media only screen and (max-width: 767px) {
  .top_modal_close {
    width: 50px !important;
    height: 50px !important;
    top: 0 !important;
    right: 0 !important;
  }
}

.top_modal_close::before, .top_modal_close::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 55% !important;
  height: 4px !important;
  background-color: #ffffff !important;
  -webkit-transform-origin: center !important;
          transform-origin: center !important;
  -webkit-transform: translateY(-50%) !important;
          transform: translateY(-50%) !important;
  -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition: -webkit-transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), -webkit-transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media only screen and (max-width: 767px) {
  .top_modal_close::before, .top_modal_close::after {
    height: 2px !important;
  }
}

.top_modal_close::before {
  -webkit-transform: translate(-50%, -50%) rotate(45deg) !important;
          transform: translate(-50%, -50%) rotate(45deg) !important;
}

.top_modal_close::after {
  -webkit-transform: translate(-50%, -50%) rotate(-45deg) !important;
          transform: translate(-50%, -50%) rotate(-45deg) !important;
}

@media only screen and (min-width: 768px) {
  .top_modal_close:hover {
    -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition: -webkit-transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), -webkit-transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
}

.top_modal .contents {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  max-width: 1000px;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
}

@media only screen and (max-width: 767px) {
  .top_modal .contents {
    width: 90%;
  }
}

.top_modal .contents .movie {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}

.top_modal .contents .movie iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}