/* 未来を切り開く１歩を共に セクション */
.cheer-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cheer-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
  animation: float 8s ease-in-out infinite;
}

.cheer-section::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
  animation: float-reverse 10s ease-in-out infinite;
}

.cheer-content {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
}

.cheer-inner {
  max-width: 80%;
  margin: 0 auto;
  padding: 60px 40px;
}

.cheer-title {
  font-size: 3rem;
  font-weight: 900;
  color: white;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.cheer-subtitle {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 40px;
  font-weight: 500;
  line-height: 1.6;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease-out 0.2s, transform 0.8s ease-out 0.2s;
}

.cheer-accent-line {
  width: 80px;
  height: 4px;
  background: rgba(255, 255, 255, 0.7);
  margin: 0 auto 40px;
  border-radius: 2px;
  opacity: 1;
  transform: scaleX(1);
  transition: opacity 0.8s ease-out 0.3s, transform 0.8s ease-out 0.3s;
}

.cheer-cta {
  margin-top: 40px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease-out 0.4s, transform 0.8s ease-out 0.4s;
}

/* スクロール時のアニメーション表示 */
.cheer-section.animate .cheer-title,
.cheer-section.animate .cheer-subtitle,
.cheer-section.animate .cheer-accent-line,
.cheer-section.animate .cheer-cta {
  opacity: 1;
  transform: translateY(0);
}

.cheer-section.animate .cheer-accent-line {
  transform: scaleX(1);
}

.btn-cheer-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 40px;
  background: white;
  color: var(--primary-red);
  font-size: 1.3rem;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(230, 0, 18, 0.4);
}

.btn-cheer-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.btn-cheer-primary:active {
  transform: translateY(-2px);
}

.btn-cheer-primary.p1 {
  background: linear-gradient(135deg, #e60012, #ff3333);
  color: white;
  width: fit-content;
}

.btn-cheer-primary.p1:hover {
  transform: translateY(-4px);
}

/* アニメーション */
@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-30px);
  }
}

@keyframes float-reverse {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(30px);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scaleX(0);
  }

  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

/* モバイル対応 */
@media (max-width: 768px) {
  .cheer-section {
    min-height: 400px;
    padding: 40px 20px;
  }

  .cheer-inner {
    padding: 40px 20px;
  }

  .cheer-title {
    font-size: 2rem;
    margin-bottom: 20px;
  }

  .cheer-subtitle {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .btn-cheer-primary {
    padding: 14px 32px;
    font-size: 1rem;
    font-size: 0.7rem;
  }

  .btn-cheer-primary.p1 {
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
  }

  .cheer-section::before {
    width: 400px;
    height: 400px;
    top: -40%;
    right: -20%;
  }

  .cheer-section::after {
    width: 300px;
    height: 300px;
    bottom: -20%;
    left: -15%;
  }
}

@media (max-width: 480px) {
  .cheer-section {
    min-height: 350px;
    padding: 30px 15px;
  }

  .cheer-inner {
    padding: 30px 15px;
  }

  .cheer-title {
    font-size: 1.5rem;
    margin-bottom: 16px;
  }

  .cheer-subtitle {
    font-size: 0.95rem;
    margin-bottom: 24px;
  }

  .btn-cheer-primary {
    padding: 12px 12px;
    font-size: 1rem;
    gap: 8px;
  }

  .btn-cheer-primary.p1 {
    margin-left: 0;
    margin-right: auto;
    display: flex;
    justify-content: center;
  }

  .btn-cheer-primary.p2 {
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
  }
}