/* ==========================================
   株式会社ホート(HAUT) - プレミアムデザインエンハンスメント
   次世代UI/UXデザインシステム
   ========================================== */

/* ========== グラデーションアニメーション背景 ========== */
@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero-fullscreen .hero-overlay {
  background: linear-gradient(135deg, 
    rgba(0, 188, 212, 0.92) 0%,
    rgba(0, 172, 193, 0.88) 25%,
    rgba(38, 198, 218, 0.90) 50%,
    rgba(0, 188, 212, 0.92) 75%,
    rgba(0, 172, 193, 0.88) 100%
  );
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite;
}

/* ヒーローコンテンツのテキストは白のまま */
.hero-content .hero-title,
.hero-content .hero-subtitle {
  color: var(--white) !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
  background-clip: unset !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ========== ガラスモーフィズム カード復活 ========== */
.card {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(10px) saturate(150%) !important;
  border: 2px solid rgba(255, 255, 255, 0.8) !important;
  box-shadow: 
    0 12px 40px 0 rgba(0, 0, 0, 0.15),
    0 4px 12px 0 rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 1) !important;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 188, 212, 0.1),
    transparent
  );
  transition: left 0.6s ease;
  z-index: 1;
}

.card:hover::before {
  left: 100%;
}

.card:hover {
  transform: translateY(-12px) scale(1.02) !important;
  box-shadow: 
    0 24px 70px 0 rgba(0, 188, 212, 0.3),
    0 12px 30px 0 rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 0 0 2px rgba(0, 188, 212, 0.4) !important;
  border-color: rgba(0, 188, 212, 0.6) !important;
  background: rgba(255, 255, 255, 1) !important;
}

/* ========== 画像ホバーエフェクト（軽量化） ========== */
.card-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(0, 188, 212, 0) 0%, 
    rgba(0, 188, 212, 0.15) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.card:hover .card-image::after {
  opacity: 1;
}

/* ========== グロウエフェクト ボタン ========== */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  box-shadow: 
    0 4px 15px rgba(0, 188, 212, 0.4),
    0 0 0 0 rgba(0, 188, 212, 0.6);
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 
      0 4px 15px rgba(0, 188, 212, 0.4),
      0 0 0 0 rgba(0, 188, 212, 0.6);
  }
  50% {
    box-shadow: 
      0 4px 25px rgba(0, 188, 212, 0.6),
      0 0 0 8px rgba(0, 188, 212, 0);
  }
}

.btn-primary:hover {
  box-shadow: 
    0 6px 30px rgba(0, 188, 212, 0.6),
    0 0 40px rgba(38, 198, 218, 0.4);
  transform: translateY(-2px) scale(1.05);
}

/* ========== タイポグラフィ強化 ========== */
.hero-title {
  letter-spacing: -0.03em;
  font-weight: 900;
}

.section-title span {
  background: linear-gradient(135deg, #00BCD4 0%, #26C6DA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  display: inline-block;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

/* ========== セクション背景パターン ========== */
.section {
  position: relative;
  overflow: hidden;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(0, 188, 212, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(38, 198, 218, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.section > * {
  position: relative;
  z-index: 1;
}

/* グラデーション背景セクションのタイトルは濃い色に */
.section[style*="gradient"] .section-title,
.section[style*="gradient"] .section-title span {
  color: #1a1a1a !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
  background-clip: unset !important;
  font-weight: 800 !important;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
}

.section[style*="gradient"] .section-subtitle {
  color: #424242 !important;
  font-weight: 600 !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* グラデーション背景のカードはより強いガラスモーフィズム */
.section[style*="gradient"] .card {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(10px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(10px) saturate(150%) !important;
  box-shadow: 
    0 16px 50px 0 rgba(0, 0, 0, 0.2),
    0 6px 16px 0 rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 1) !important;
  border: 2px solid rgba(255, 255, 255, 1) !important;
}

.section[style*="gradient"] .card:hover {
  background: rgba(255, 255, 255, 1) !important;
  box-shadow: 
    0 24px 70px 0 rgba(0, 188, 212, 0.3),
    0 12px 30px 0 rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 0 0 2px rgba(0, 188, 212, 0.4) !important;
  border-color: rgba(0, 188, 212, 0.6) !important;
}

/* カードタイトルと説明文のコントラスト強化 */
.section[style*="gradient"] .card-title {
  color: #1a1a1a !important;
  font-weight: 700 !important;
}

.section[style*="gradient"] .card-description {
  color: #424242 !important;
  font-weight: 500 !important;
}

/* ========== ヘッダーガラス効果強化 ========== */
.header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* ========== ナビゲーションマイクロインタラクション ========== */
.nav-link {
  position: relative;
  display: inline-block;
}

.nav-link::after {
  background: linear-gradient(90deg, #00BCD4 0%, #26C6DA 100%);
  height: 3px;
  box-shadow: 0 2px 8px rgba(0, 188, 212, 0.4);
}

.nav-link:hover {
  transform: translateY(-2px);
}

.header.scrolled .nav-link:hover {
  color: var(--primary-turquoise);
}

.header:not(.scrolled) .nav-link:hover {
  color: var(--primary-dark);
}

/* ========== スクロールインジケーター強化 ========== */
.hero-scroll-icon {
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 
    0 4px 20px rgba(0, 188, 212, 0.3),
    0 0 0 8px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.1);
}

/* ========== フッターグラデーション ========== */
.footer {
  background: linear-gradient(135deg, #0a1f2e 0%, #1a3a4a 50%, #0a1f2e 100%);
  background-size: 200% 200%;
  animation: gradientShift 20s ease infinite;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(0, 188, 212, 0.5) 50%, 
    transparent 100%
  );
}

/* ========== カードタイトル - コントラスト強化 ========== */
.card-title {
  color: var(--text-primary) !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
  background-clip: unset !important;
  font-weight: 700;
}

.card-description {
  color: var(--text-secondary) !important;
  font-weight: 500;
}

/* ========== セクション区切り線アニメーション ========== */
.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #00BCD4 0%, #26C6DA 100%);
  margin: 1rem auto 0;
  border-radius: 2px;
  box-shadow: 0 2px 10px rgba(0, 188, 212, 0.4);
  animation: expandLine 2s ease-in-out infinite;
}

@keyframes expandLine {
  0%, 100% {
    width: 80px;
    opacity: 1;
  }
  50% {
    width: 120px;
    opacity: 0.7;
  }
}

/* ========== フォーカス時のインタラクション ========== */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary-turquoise);
  box-shadow: 
    0 0 0 4px rgba(0, 188, 212, 0.15),
    0 4px 20px rgba(0, 188, 212, 0.2);
  transform: scale(1.01);
  transition: all 0.3s ease;
}

/* ========== ローディングロゴ強化 ========== */
.loading-logo {
  filter: none;
}

/* ========== パフォーマンス最適化 ========== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
