/* フローティングバナー（テキスト帯） */
.floating-banner {
  position: fixed;
  right: 32px;
  bottom: 0;
  z-index: 2;
  width: 360px;
  max-width: calc(100vw - 32px);
  animation: slideUpFadeIn 0.5s ease-out;
}

.floating-banner__container {
  position: relative;
  min-height: 77px;
  background-color: #378057;
  border-radius: 5px;
  box-sizing: border-box;
}

.floating-banner__close {
  position: absolute;
  top: 17px;
  right: 18px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.floating-banner__close:hover {
  opacity: 0.8;
}

.floating-banner__link {
  display: block;
  box-sizing: border-box;
  min-height: 77px;
  padding: 18px 48px 16px 29px;
  color: #fff;
  text-decoration: none;
}

.floating-banner__link.c-onlyPc {
  display: block;

  @media (max-width: 768px) {
    display: none;
  }
}

.floating-banner__link.c-onlySp {
  display: none;

  @media (max-width: 768px) {
    display: block;
  }
}

.floating-banner__link:hover {
  opacity: 0.95;
  color: #fff;
}

.floating-banner__lead {
  margin: 0;
  color: #fff;
  font-family: var(--font-NotoSansJP), "Noto Sans JP", sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 1.5px;
  line-height: 1.2;
}

.floating-banner__price {
  font-family: var(--font-HankenGrotesk), "Hanken Grotesk", sans-serif;
  font-weight: 500;
}

.floating-banner__cta {
  margin: 4px 0 0;
  color: #fff;
  font-family: var(--font-NotoSansJP), "Noto Sans JP", sans-serif;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 1.5px;
  line-height: 1.2;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* フローティングバナー（最小化バージョン） */
.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 {
    right: 0;
    left: 0;
    width: 100%;
    max-width: none;
  }

  .floating-banner__container {
    border-radius: 5px 5px 0 0;
  }

  .floating-banner__link {
    padding: 18px 48px 16px 29px;
  }

  .floating-banner__close {
    top: 17px;
    right: 18px;
  }

  .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;
  }
}
