/* 🔶 幾何学的でスタイリッシュなローディングアニメーション */

.loading-geometric {
  width: 60px;
  height: 60px;
  position: relative;
  margin: 0 auto 1rem;
}

/* メイン回転要素 */
.loading-geometric::before {
  content: '';
  position: absolute;
  width: 60px;
  height: 60px;
  border: 3px solid transparent;
  border-top: 3px solid var(--primary-orange, #fd7e14);
  border-right: 3px solid rgba(253, 126, 20, 0.3);
  border-radius: 50%;
  animation: geometric-spin 1.2s linear infinite;
}

/* インナー幾何学形状 */
.loading-geometric::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  background: var(--primary-orange, #fd7e14);
  transform: translate(-50%, -50%) rotate(45deg);
  border-radius: 2px;
  animation: geometric-pulse 1.2s ease-in-out infinite alternate;
}

/* 外側の装飾リング */
.loading-geometric-ring {
  position: absolute;
  width: 80px;
  height: 80px;
  top: -10px;
  left: -10px;
  border: 1px solid rgba(253, 126, 20, 0.1);
  border-radius: 50%;
  animation: geometric-expand 2s ease-in-out infinite;
}

@keyframes geometric-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes geometric-pulse {
  0% { 
    transform: translate(-50%, -50%) rotate(45deg) scale(0.8);
    opacity: 0.7;
  }
  100% { 
    transform: translate(-50%, -50%) rotate(45deg) scale(1.2);
    opacity: 1;
  }
}

@keyframes geometric-expand {
  0%, 100% { 
    transform: scale(1);
    opacity: 0.2;
  }
  50% { 
    transform: scale(1.1);
    opacity: 0.4;
  }
}

/* 改良版ローディングオーバーレイ */
.loading-overlay-geometric {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  animation: fade-in-smooth 0.3s ease-out;
}

.loading-content-geometric {
  text-align: center;
  color: var(--primary-orange, #fd7e14);
  padding: 2rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 32px rgba(253, 126, 20, 0.08);
  border: 1px solid rgba(253, 126, 20, 0.1);
  position: relative;
}

.loading-text-geometric {
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0;
  opacity: 0.8;
  letter-spacing: 0.5px;
}

@keyframes fade-in-smooth {
  from { 
    opacity: 0; 
    transform: scale(0.95);
  }
  to { 
    opacity: 1; 
    transform: scale(1);
  }
}