@charset "UTF-8";

/*******************************
 一元管理ポップアップバナー
********************************/
/* ポップアップバナーの基本スタイル */
#popup-banner {
  position: fixed;
  bottom: 20px;
  right: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 2px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.7s ease;
  z-index: 9999;
  background-color: #fff;
  max-width: 320px;
  width: 90%;
  --popup-offset: 150%;
  transform: translateY(var(--popup-offset));
}

/* ワイドモニター */
@media (min-width: 1920px) {
  #popup-banner {
    right: calc((100vw - 1440px) / 2 - 16px);
  }
}

#popup-banner.show {
  --popup-offset: 0%;
}

#popup-banner.show.is-footer-near {
  --popup-offset: 150%;
}

#popup-banner .popup-bnr-link {
  display: block;
  transition: all 0.25s ease;
}

#popup-banner .popup-bnr-link:hover {
  box-shadow: 0 0 0 4px rgba(148, 212, 227, 0.4), 0 10px 25px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}

#popup-banner .popup-bnr-img {
  width: 100%;
  height: auto;
  display: block;
}

#popup-banner .close-btn {
  position: absolute;
  height: 29px;
  width: 29px;
  top: -12px;
  right: -12px;
  cursor: pointer;
  color: #ffffff;
  font-family: Arial, sans-serif;
  font-weight: bold;
  font-size: 20px;
  border-radius: 50%;
  background-color: rgba(10, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
}

/* フッター接近時 */
#popup-banner.is-footer-near {
  bottom: 120px; /* フッター高さに合わせて調整 */
}

@media screen and (max-width: 768px) {
  #popup-banner {
    bottom: 81px;
  }
}
