/* ==========================================================================
   Sticky Banner - 画面右下固定バナー
   ========================================================================== */

.sticky-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  max-width: 320px;
  width: 320px;
  animation: stickyBannerSlideIn 0.4s ease-out;
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
}

.sticky-banner.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(20px);
}

@keyframes stickyBannerSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 閉じるボタン */
.sticky-banner__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: none;
  background: rgba(0, 0, 0, 0.4);
  color: #FFFFFF;
  font-size: 18px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: background 0.2s;
}

.sticky-banner__close:hover {
  background: rgba(0, 0, 0, 0.6);
}

/* バナー画像 */
.sticky-banner__image {
  width: 100%;
  line-height: 0;
}

.sticky-banner__image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ボタン */
.sticky-banner__button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 20px;
  background: #E51F1F;
  color: #FFFFFF;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: opacity 0.2s;
  box-sizing: border-box;
}

.sticky-banner__button:hover {
  opacity: 0.85;
  color: #FFFFFF;
}

.sticky-banner__button-arrow {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .sticky-banner {
    bottom: 16px;
    right: 16px;
    max-width: 280px;
    width: 280px;
  }

  .sticky-banner__image {
    display: none;
  }

  .sticky-banner__close {
    display: none;
  }

  .sticky-banner__button {
    font-size: 14px;
    padding: 14px 16px;
  }
}

@media (max-width: 480px) {
  .sticky-banner {
    bottom: 12px;
    right: 12px;
    left: 12px;
    max-width: none;
    width: auto;
  }
}
