/* ========================================
   最終CTAセクション全体
======================================== */

.mobile-cta-section {
  display: none;
  width: 100%;
  min-height: 100vh;
  padding: 3rem 1.5rem;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  overflow-y: auto;
  background: #000;
}

.mobile-cta-section.active {
  display: flex;
}

/* ========================================
   背景動画レイヤー
======================================== */

.mobile-cta-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

/* ========================================
   オーバーレイレイヤー
======================================== */

.mobile-cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

/* ========================================
   CTAコンテンツレイヤー
======================================== */

.mobile-cta-content {
  width: 100%;
  max-width: 600px;
  position: relative;
  z-index: 3;
}

/* ========================================
   CTAメインヘッドライン
======================================== */

.mobile-cta-content h2 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2.5rem;
  line-height: 1.4;
  color: #2C3E50;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ========================================
   CTAボックス - ガラスモーフィズムデザイン
======================================== */

.mobile-cta-box {
  /* ガラスモーフィズム効果 */
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  
  /* ボーダー */
  border: 1px solid rgba(255, 255, 255, 0.25);
  
  /* パディング & 形状 */
  border-radius: 20px;
  padding: 2.5rem 2rem;
  
  /* シャドウ */
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
  
  /* ポジション */
  position: relative;
  z-index: 3;
  overflow: hidden;
}

/* ガラスモーフィズム背景イメージ */
.mobile-cta-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  pointer-events: none;
}

/* ========================================
   CTAボックス内テキスト
======================================== */

.mobile-cta-box h3 {
  font-size: 1.3rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1.5rem;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
}

/* ========================================
   CTAリスト
======================================== */

.mobile-cta-list {
  list-style: none;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.mobile-cta-list li {
  padding: 0.8rem 0;
  font-size: 0.95rem;
  line-height: 1.6;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.mobile-cta-list li:last-child {
  border-bottom: none;
}

/* ========================================
   CTAボタン
======================================== */

.mobile-cta-button {
  display: block;
  width: 100%;
  padding: 1.2rem;
  margin-top: 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #3498DB 0%, #2980B9 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* ボタンホバーエフェクト */
.mobile-cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.mobile-cta-button:hover::before {
  left: 100%;
}

/* ボタンホバー状態 */
.mobile-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(52, 152, 219, 0.6);
  background: linear-gradient(135deg, #5DADE2 0%, #3498DB 100%);
}

.mobile-cta-button:active {
  transform: translateY(0);
}

/* ========================================
   レスポンシブ調整
======================================== */

@media (max-width: 600px) {
  .mobile-cta-section {
    padding: 2rem 1.5rem;
  }

  .mobile-cta-content {
    max-width: 100%;
  }

  .mobile-cta-content h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }

  .mobile-cta-box {
    padding: 1.5rem 1.2rem;
  }

  .mobile-cta-box h3 {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
  }

  .mobile-cta-list li {
    padding: 0.6rem 0;
    font-size: 0.9rem;
  }

  .mobile-cta-button {
    padding: 1rem;
    font-size: 1rem;
    margin-top: 1.5rem;
  }
}

@media (max-width: 375px) {
  .mobile-cta-section {
    padding: 1.5rem 1rem;
    justify-content: flex-start;
    padding-top: 3rem;
  }

  .mobile-cta-content {
    max-width: 100%;
  }

  .mobile-cta-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
  }

  .mobile-cta-box {
    padding: 1.2rem 1rem;
    border-radius: 15px;
  }

  .mobile-cta-box h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

  .mobile-cta-list li {
    padding: 0.5rem 0;
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .mobile-cta-button {
    padding: 0.9rem;
    font-size: 0.95rem;
    margin-top: 1.2rem;
    border-radius: 25px;
  }
}

/* ========================================
   ランドスケープ対応
======================================== */

@media (orientation: landscape) and (max-height: 600px) {
  .mobile-cta-section {
    padding: 1.5rem;
    justify-content: flex-start;
    overflow-y: auto;
  }

  .mobile-cta-content h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }

  .mobile-cta-box {
    padding: 1.2rem;
  }

  .mobile-cta-box h3 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
  }

  .mobile-cta-list li {
    padding: 0.4rem 0;
    font-size: 0.8rem;
  }

  .mobile-cta-button {
    padding: 0.8rem;
    font-size: 0.9rem;
    margin-top: 1rem;
  }
}

/* ========================================
   パフォーマンス最適化
======================================== */

.mobile-cta-section {
  will-change: opacity;
  backface-visibility: hidden;
  perspective: 1000px;
}

.mobile-cta-bg-video {
  will-change: transform;
  backface-visibility: hidden;
}

.mobile-cta-button {
  will-change: transform, box-shadow;
  backface-visibility: hidden;
}

/* ========================================
   フロートボタン表示制御
======================================== */

/* 最終CTAページではフロートボタンも通常通り表示 */
.mobile-cta-section.active ~ .float-button {
  opacity: 1;
  pointer-events: auto;
}

/* ========================================
   アクセシビリティ
======================================== */

@media (prefers-reduced-motion: reduce) {
  .mobile-cta-button {
    transition: none !important;
  }

  .mobile-cta-button:hover {
    transform: none !important;
  }

  .mobile-cta-button::before {
    animation: none !important;
  }
}

/* ========================================
   ダークモード対応
======================================== */

@media (prefers-color-scheme: dark) {
  .mobile-cta-box {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
  }
}