/* ========================================
   固定フッターボタン (無料トライアルお申し込み)
======================================== */

/* 固定フッターボタンコンテナ */
.fixed-footer-button {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #7f8c8d;
  padding: 10px 20px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ボタン本体 */
.fixed-footer-button .cta-button {
  display: block;
  width: auto;
  max-width: 400px;
  margin: 0 auto;
  padding: 12px 50px;
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  background: linear-gradient(135deg, 
    #87CEEB 0%, #6BB6EA 25%, #5DADE2 50%, #6BB6EA 75%, #87CEEB 100%
  );
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.fixed-footer-button .cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.3), 
    transparent
  );
  transition: left 0.5s ease;
}

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

.fixed-footer-button .cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(93, 173, 226, 0.4);
  filter: brightness(1.1);
}

.fixed-footer-button .cta-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* ボタンテキストのスタイル */
.fixed-footer-button .cta-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.fixed-footer-button .cta-icon {
  font-size: 18px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* ボディにパディングを追加（固定ボタンでコンテンツが隠れないように） */
body.has-fixed-footer-button {
  padding-bottom: 60px;
}

/* タブレット対応 */
@media (max-width: 768px) {
  .fixed-footer-button {
    /* padding: 4px 10px; */
  }
  
  .fixed-footer-button .cta-button {
    padding: 10px 40px;
    font-size: 14px;
    max-width: 350px;
    width: auto;
  }
  
  .fixed-footer-button .cta-icon {
    font-size: 16px;
  }
  
  body.has-fixed-footer-button {
    padding-bottom: 54px;
  }
}

/* スマートフォン対応 */
@media (max-width: 480px) {
  .fixed-footer-button {
    padding: 9px 60px;
  }
  
  .fixed-footer-button .cta-button {
    padding: 9px 30px;
    font-size: 13px;
    max-width: 300px;
    width: auto;
  }
  
  .fixed-footer-button .cta-icon {
    font-size: 14px;
  }
  
  body.has-fixed-footer-button {
    padding-bottom: 50px;
  }
}

/* 印刷時は非表示 */
@media print {
  .fixed-footer-button {
    display: none;
  }
  
  body.has-fixed-footer-button {
    padding-bottom: 0;
  }
}
