/* ===== フローティングポップアップ ===== */
.floating-popup {
  position: fixed;
  bottom: 120px;
  right: 70px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease-in-out, visibility .3s ease-in-out;
}
.floating-popup.is-visible {
  opacity: 1;
  visibility: visible;
}

.floating-popup__link {
  display: block;
  max-width: 300px;
  border: 3px solid #0072bc;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 104, 183, 0.25), 0 16px 34px -4px rgba(0, 16, 14, 0.15);
  background-color: #fff;
  text-decoration: none;
  transition: opacity .3s ease-in-out;
}
.floating-popup__link:hover {
  opacity: .8;
}

.floating-popup__badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  /* background: linear-gradient(90deg, #ff5f7e 0%, #ff8c5a 100%); */
  background: #0072bc;
  background: ;
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 0.12em;
  padding: 5px 14px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0, 114, 188, 0.45);
}

.floating-popup__badge-rays {
  display: flex;
  align-items: center;
  gap: 3px;
}

.floating-popup__badge-rays i {
  display: block;
  width: 2px;
  height: 13px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 1px;
}

.floating-popup__badge-rays--right {
  margin-left: -4px;
}

.floating-popup__badge-rays--left i {
  transform: rotate(-35deg);
}

.floating-popup__badge-rays--right i {
  transform: rotate(35deg);
}

.floating-popup__img {
  width: 100%;
  height: auto;
  display: block;
}

.floating-popup__close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  font-size: 20px;
  line-height: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s ease-in-out, background-color .3s ease-in-out;
  padding: 0;
}
.floating-popup__close:hover {
  background-color: #e9e9e9;
  transform: rotate(180deg);
}
.floating-popup__close svg {
  width: 14px;
  height: 14px;
}

/* ===== 動画モーダル ===== */
.video-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999999;
}
.video-modal.is-open {
  display: flex;
}

.video-modal__content {
  position: relative;
  width: min(90vw, 960px);
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

.video-modal__content iframe {
  width: 100%;
  height: 100%;
}

.video-modal__close {
  position: absolute;
  top: 0;
  right: 0;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #fff;
  font-size: 24px;
  line-height: 36px;
  cursor: pointer;
  padding: 0;
}

/* ===== SP対応 ===== */

@media screen and (max-width: 765px) {
    .hp_video iframe {
        height: auto;
        min-height: 400px;
    }

  .floating-popup__link {
    max-width: 220px;
  }
  .floating-popup__link,
  .floating-popup__close {
    transition: none;
  }

  .floating-popup {
    right:24px;
  }

  .floating-popup__badge {
    font-size:13px;
  }
}

/* @media only screen and (max-width: 600px) {


} */
