/*
 * Decorations & Animations
 * くるま買取ケイヴィレッジ
 * SVGアニメーション、装飾、視覚効果
 */

/* ========================================
   背景装飾用SVGパターン
   ======================================== */

.bg-pattern-dots {
  background-image: radial-gradient(circle, rgba(37, 99, 235, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

.bg-pattern-grid {
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

.bg-pattern-waves {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath d='M0,50 Q300,10 600,50 T1200,50 L1200,120 L0,120 Z' fill='rgba(37,99,235,0.05)'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: bottom;
  background-size: 1200px 120px;
}

/* ========================================
   フローティングアニメーション
   ======================================== */

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

@keyframes float-slow {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) rotate(3deg);
  }
}

.float {
  animation: float 3s ease-in-out infinite;
}

.float-slow {
  animation: float-slow 6s ease-in-out infinite;
}

/* ========================================
   グラデーション装飾
   ======================================== */

.gradient-shimmer {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 200% 200%;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
  100% {
    background-position: 0% 0%;
  }
}

/* ========================================
   装飾的なSVGシェイプ
   ======================================== */

.deco-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  pointer-events: none;
}

.deco-circle--primary {
  background: radial-gradient(circle, var(--primary-color), transparent);
}

.deco-circle--secondary {
  background: radial-gradient(circle, var(--secondary-color), transparent);
}

/* ========================================
   パルスアニメーション（注目効果）
   ======================================== */

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

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* ========================================
   スライドインアニメーション
   ======================================== */

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-on-scroll {
  opacity: 0;
}

.animate-on-scroll.visible {
  animation: slideInUp 0.6s ease-out forwards;
}

/* ========================================
   グラスモーフィズム（ガラス効果）
   ======================================== */

.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========================================
   ネオモーフィズム（立体的な影）
   ======================================== */

.neomorph {
  background: #f0f0f0;
  box-shadow:
    8px 8px 16px rgba(0, 0, 0, 0.1),
    -8px -8px 16px rgba(255, 255, 255, 0.8);
  border-radius: var(--border-radius-lg);
}

.neomorph-inset {
  background: #f0f0f0;
  box-shadow:
    inset 8px 8px 16px rgba(0, 0, 0, 0.1),
    inset -8px -8px 16px rgba(255, 255, 255, 0.8);
  border-radius: var(--border-radius-lg);
}

/* ========================================
   グロー効果（発光）
   ======================================== */

.glow-primary {
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.5);
}

.glow-secondary {
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
}

@keyframes glow-pulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.4);
  }
  50% {
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.8);
  }
}

.glow-pulse {
  animation: glow-pulse 2s ease-in-out infinite;
}

/* ========================================
   装飾的な線・区切り
   ======================================== */

.divider-gradient {
  height: 4px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--primary-color) 50%,
    transparent 100%
  );
  margin: var(--spacing-lg) 0;
}

.divider-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: var(--spacing-lg) 0;
}

.divider-dots::before,
.divider-dots::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-color);
}

/* ========================================
   SVGアイコン装飾
   ======================================== */

.icon-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-badge::before {
  content: '';
  position: absolute;
  inset: -4px;
  background: var(--primary-light);
  border-radius: 50%;
  z-index: -1;
  opacity: 0.3;
  transform: scale(0.9);
  transition: all 0.3s ease;
}

.icon-badge:hover::before {
  transform: scale(1);
  opacity: 0.5;
}

/* ========================================
   波模様SVGアニメーション
   ======================================== */

@keyframes wave {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.wave-animation {
  animation: wave 20s linear infinite;
}

/* ========================================
   カード3D効果（ホバー時）
   ======================================== */

.card-3d {
  transition: all 0.3s ease;
  transform-style: preserve-3d;
}

.card-3d:hover {
  transform: translateY(-8px) rotateX(2deg);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(37, 99, 235, 0.1);
}

/* ========================================
   テキストグラデーション
   ======================================== */

.text-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-shine {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 50%,
    var(--primary-color) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shine 3s linear infinite;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

/* ========================================
   スピンアニメーション
   ======================================== */

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.spin-slow {
  animation: spin-slow 20s linear infinite;
}

/* ========================================
   バウンスアニメーション
   ======================================== */

@keyframes bounce-gentle {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.bounce-gentle {
  animation: bounce-gentle 2s ease-in-out infinite;
}
