.popup {
  position: fixed;
  display: none;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 99999;
}

.popup_area {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.popup_bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
}

.popup_inner {
  position: relative;
  width: calc(670 / 750 * 100%);
  margin: auto;
  align-self: flex-start;
  padding: 5.5em 0;
}

.popup_close {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  top: 0;
  right: 0;
  width: 4.3em;
  height: 4.3em;
}

.popup_close::before, .popup_close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 40px;
  background: #c9c9c9;
}

.popup_close::before {
  transform: translate(-50%,-50%) rotate(45deg);
}
 
.popup_close::after {
  transform: translate(-50%,-50%) rotate(-45deg);
}

.entrance_ad .only_image img {
  max-width: 80vw;
  max-height: 70vh;
  width: auto;
  display: inline;
}
.entrance_ad .only_image {
  text-align: center;
}

@media screen and (min-width: 768px) {
  .popup_bg {
    cursor: pointer;
  }

  .popup_inner {
    width: calc(800 / 1600 * 100%);
    max-width: 640px;
  }

  .popup_close {
    cursor: pointer;
    transition: 0.3s ease;
  }

  .popup_close:hover {
    opacity: 0.7;
  }
}

