/* Blog 50% read popup banner */
.blogPopup {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px 16px;
  position: fixed;
  z-index: 10000;
}

.blogPopup[hidden] {
  display: none !important;
}

.blogPopup__overlay {
  background: rgba(17, 34, 68, 0.55);
  inset: 0;
  position: absolute;
}

.blogPopup__dialog {
  animation: blogPopupIn 0.35s ease;
  max-height: calc(100vh - 48px);
  max-width: min(724px, calc(100vw - 32px));
  overflow: visible;
  position: relative;
  width: 100%;
  z-index: 1;
}

.blogPopup__close {
  align-items: center;
  background: #fff;
  border: 1px solid #d0d7e2;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(17, 34, 68, 0.15);
  cursor: pointer;
  display: flex;
  height: 36px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: -10px;
  top: -10px;
  width: 36px;
  z-index: 2;
}

.blogPopup__close:hover {
  background: #f5f8fc;
}

.blogPopup__closeIcon,
.blogPopup__closeIcon::before,
.blogPopup__closeIcon::after {
  display: block;
}

.blogPopup__closeIcon {
  height: 16px;
  position: relative;
  width: 16px;
}

.blogPopup__closeIcon::before,
.blogPopup__closeIcon::after {
  background: #1b3a6b;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  top: 50%;
  width: 100%;
}

.blogPopup__closeIcon::before {
  transform: translateY(-50%) rotate(45deg);
}

.blogPopup__closeIcon::after {
  transform: translateY(-50%) rotate(-45deg);
}

.blogPopup__media {
  line-height: 0;
  position: relative;
}

.blogPopup__img {
  border-radius: 25px;
  display: block;
  height: auto;
  max-height: calc(100vh - 48px);
  object-fit: contain;
  width: 100%;
}

.blogPopup__hotspot {
  color: transparent;
  font-size: 0;
  position: absolute;
  z-index: 1;
}

/* PC: 横並び3ボタン */
.blogPopup__hotspot--contact {
  height: 85px;
  left: 6%;
  top: 75.5%;
  width: 28%;
}

.blogPopup__hotspot--line {
  height: 85px;
  left: 36%;
  top: 75.5%;
  width: 28%;
}

.blogPopup__hotspot--booking {
  height: 85px;
  left: 66%;
  top: 75.5%;
  width: 28%;
}

html.is-blogPopupOpen {
  overflow: hidden;
}

@keyframes blogPopupIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media screen and (max-width: 767px) {
  .blogPopup {
    padding: 16px 12px;
  }

  .blogPopup__dialog {
    max-width: min(360px, calc(100vw - 24px));
  }

  .blogPopup__close {
    height: 32px;
    right: -6px;
    top: -6px;
    width: 32px;
  }

  .blogPopup__img {
    border-radius: 0;
    max-height: calc(100vh - 32px);
  }

  /* SP: 縦並び3ボタン */
  .blogPopup__hotspot--contact {
    height: 8.5%;
    left: 9%;
    top: 66%;
    width: 82%;
  }

  .blogPopup__hotspot--line {
    height: 8.5%;
    left: 9%;
    top: 75.5%;
    width: 82%;
  }

  .blogPopup__hotspot--booking {
    height: 8.5%;
    left: 9%;
    top: 85%;
    width: 82%;
  }
}
