/* フローティングバナー（フルサイズ） */
.floating-banner {
  position: fixed;
  bottom: 0;
  right: 0;
  z-index: 2;
  animation: slideUpFadeIn 0.5s ease-out;
  max-width: 350px;
  width: 50%;
}

.floating-banner__container {
  position: relative;
}

.floating-banner__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  z-index: 10;
}

.floating-banner__close:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.floating-banner__content {
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.floating-banner__content:hover {
  opacity: 0.95;
}

.floating-banner__message {
  color: #fff;
  text-align: center;
}

.floating-banner__title {
  font-size: 14px;
  font-weight: bold;
  color: #ffd700;
}

.floating-banner__coupon-text {
  font-size: 16px;
  font-weight: bold;
  line-height: 1.4;
  color: #fff;
}

.floating-banner__image {
  width: 100%;
  height: auto;
  display: block;
}

/* フローティングバナー（最小化バージョン） */
.floating-banner-mini {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 2;
  animation: fadeIn 0.3s ease-out;
}

.floating-banner-mini__button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  padding: 5px 10px 8px;
  background: #1a1a1a;
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 60px;
}

.floating-banner-mini__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.floating-banner-mini__text {
  white-space: nowrap;
  line-height: 1.3;
  text-align: center;
}

.floating-banner-mini__text .coupon-available {
  color: #fff0d0;
}

.floating-banner-mini__text .coupon-amount {
  font-family: var(--font-HankenGrotesk);
}

/* コピー完了モーダル */
.floating-coupon-copy-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.floating-coupon-copy-modal__content {
  background-color: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 20px 40px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  animation: fadeInOut 2s ease-in-out;
}

.floating-coupon-copy-modal__text {
  margin: 0;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  line-height: 1.5;
}

/* アニメーション */
@keyframes slideUpFadeIn {
  from {
    opacity: 0;
    transform: translateY(100%);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }

  15% {
    opacity: 1;
    transform: translateY(0);
  }

  85% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* スマホ対応 */
@media (max-width: 768px) {
  .floating-banner {
    width: 65%;
  }

  .floating-banner__close {
    width: 28px;
    height: 28px;
    top: 4px;
    right: 4px;
  }

  .floating-banner__coupon-text {
    font-size: 13px;
  }

  .floating-banner__code {
    font-size: 11px;
  }

  .floating-banner__code strong {
    font-size: 12px;
  }

  .floating-banner__note {
    font-size: 10px;
  }

  .floating-banner-mini {
    bottom: 16px;
    left: 16px;
  }

  .floating-banner-mini__button {
    padding: 4px 0px 6px;
    font-size: 10px;
  }

  .floating-coupon-copy-modal__content {
    padding: 10px 20px;
  }

  .floating-coupon-copy-modal__text {
    font-size: 12px;
  }
}