/* 2month-bonus Section */
.month-bonus {
  height: 31.7rem;
  background: url("../../../img/month-bonus-background.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center;
  position: relative;
  overflow-x: clip;
  clip-path: inset(-5rem 0 0 0);
  padding: 5.5rem 0;
}

.month-bonus::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(
      circle at 20% 30%,
      rgba(255, 255, 255, 0.1) 0.125rem,
      transparent 0.125rem
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(255, 255, 255, 0.1) 0.125rem,
      transparent 0.125rem
    ),
    radial-gradient(
      circle at 40% 80%,
      rgba(255, 255, 255, 0.1) 0.125rem,
      transparent 0.125rem
    ),
    radial-gradient(
      circle at 90% 20%,
      rgba(255, 255, 255, 0.1) 0.125rem,
      transparent 0.125rem
    );
  background-size: 3.75rem 3.75rem, 5rem 5rem, 2.5rem 2.5rem, 6.25rem 6.25rem;
  background-position: 0 0, 1.875rem 1.875rem, 3.75rem 3.75rem,
    5.625rem 5.625rem;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.625rem);
  }
}

@keyframes glossMove {
  0% {
    transform: translateX(-100%) rotate(-30deg);
  }
  50% {
    transform: translateX(150%) rotate(-30deg);
  }
  100% {
    transform: translateX(150%) rotate(-30deg);
  }
}

.month-bonus__inner {
  margin: 0 auto;
  padding: 0 1.25rem;
  position: relative;
  z-index: 2;
}

.month-bonus__content {
  text-align: center;
  color: white;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.month-bonus__figure {
  position: absolute;
  right: 3.2rem;
  top: -10.7rem;
  transform: scaleX(-1);
  width: 50.6rem;
  height: auto;
  z-index: 3;
}

.month-bonus__figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.month-bonus__subtitle {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0;
}

.month-bonus__highlight {
  color: #ffe100;
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 1.5rem 1.5rem;
  position: relative;
  display: inline-block;
}

.month-bonus__highlight::before,
.month-bonus__highlight::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 6.3rem;
  height: 0.2rem;
  background: #ffe100;
}

.month-bonus__highlight::before {
  left: -7.2rem;
  transform: translateY(0.2rem) rotate(47deg);
}

.month-bonus__highlight::after {
  right: -4.7rem;
  transform: translateY(0.2rem) rotate(-47deg);
}

.month-bonus__cta {
  height: 7.8rem;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(to left, #f48c41, #fe6c03);
  color: #fff;
  font-size: 2.4rem;
  font-weight: 700;
  padding: 2rem 9.9rem;
  border-radius: 99.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 0.2rem solid #fff;
  z-index: 3;
}

.month-bonus__cta::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    -60deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.875) 12.5%,
    rgba(255, 255, 255, 0.75) 25%,
    rgba(255, 255, 255, 0.625) 37.5%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0.375) 62.5%,
    rgba(255, 255, 255, 0.25) 75%,
    rgba(255, 255, 255, 0.125) 87.5%,
    transparent 100%
  );
  transform: rotate(-30deg);
  animation: glossMove 2.5s ease-in-out infinite;
}

.month-bonus__cta:hover {
  background: #fff;
  color: #f48c41;
  border-color: #f48c41;
}

.month-bonus__cta:hover::before {
  animation: none;
  transform: translateX(-100%) rotate(-30deg);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .month-bonus {
    height: 34.3rem;
    background-image: url("../../../img/month-bonus-background-sp.png");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    padding: 7.4rem 0;
  }

  .month-bonus__content {
    gap: 0.5rem;
  }

  .month-bonus__subtitle {
    font-size: 2rem;
    margin-left: 0.9rem;
  }

  .month-bonus__highlight {
    font-size: 4rem;
    margin: 0 0 2.3rem 2.8rem;
  }

  .month-bonus__cta {
    width: 37rem;
    padding: 1.3rem 7.5rem;
  }

  .month-bonus__figure {
    display: none;
  }
}
