/* AI夜会・AI茶会 カスタムスタイル */

:root {
  --color-primary: #1e3a5f;
  --color-secondary: #8b4513;
  --color-accent: #d4a373;
  --color-night: #2c3e50;
  --color-tea: #8b7355;
  --color-gradient-1: #667eea;
  --color-gradient-2: #764ba2;
  --color-gradient-3: #f093fb;
  --color-gradient-4: #4facfe;
}

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'メイリオ', sans-serif;
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
}

/* ヘッダー */
.header-gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
}

.header-gradient::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.header-gradient::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite reverse;
}

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

/* セクション背景の装飾 */
section {
  position: relative;
}

section.py-16.bg-white::before,
section.py-16.bg-gray-50::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* イベントカード */
.event-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 4px solid transparent;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.event-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.event-card:hover::before {
  opacity: 1;
}

.event-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.25);
}

.event-card.night {
  border-left-color: #667eea;
}

.event-card.tea {
  border-left-color: #f093fb;
}

/* イベントタイプバッジ */
.badge-night {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  position: relative;
  overflow: hidden;
}

.badge-night::before {
  content: '✨';
  position: absolute;
  top: 50%;
  left: -20px;
  transform: translateY(-50%);
  font-size: 12px;
  animation: sparkle 3s ease-in-out infinite;
}

.badge-tea {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  box-shadow: 0 4px 15px rgba(240, 147, 251, 0.4);
  position: relative;
  overflow: hidden;
}

.badge-tea::before {
  content: '🌸';
  position: absolute;
  top: 50%;
  left: -20px;
  transform: translateY(-50%);
  font-size: 12px;
  animation: sparkle 3s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% {
    left: -20px;
    opacity: 0;
  }
  50% {
    left: 110%;
    opacity: 1;
  }
}

/* エリアバッジ */
.bg-orange-100 {
  background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%) !important;
  box-shadow: 0 2px 8px rgba(251, 146, 60, 0.3);
}

.bg-green-100 {
  background: linear-gradient(135deg, #bbf7d0 0%, #86efac 100%) !important;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.bg-blue-100 {
  background: linear-gradient(135deg, #dbeafe 0%, #93c5fd 100%) !important;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* ボタン */
.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary::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, height 0.6s;
}

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

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.btn-secondary {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(240, 147, 251, 0.4);
}

.btn-secondary::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, height 0.6s;
}

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

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(240, 147, 251, 0.5);
}

/* フォーム */
.form-input {
  transition: all 0.3s ease;
  border: 2px solid #e2e8f0;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.form-input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
  outline: none;
  background: #ffffff;
}

/* ローディング */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* アラート */
.alert {
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  animation: slideIn 0.4s ease-out;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-success {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #065f46;
  border-left: 5px solid #10b981;
}

.alert-error {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #991b1b;
  border-left: 5px solid #ef4444;
}

.alert-info {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1e40af;
  border-left: 5px solid #3b82f6;
}

/* 和モダンなデザイン要素 */
.section-title {
  position: relative;
  padding-bottom: 1rem;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #f093fb 100%);
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

/* アイコン装飾 */
.fas, .far {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* カードの情報ボックス */
.bg-gray-50 {
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%) !important;
}

.bg-blue-50 {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
}

.bg-green-50 {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%) !important;
}

.bg-yellow-50 {
  background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%) !important;
}

.bg-purple-50 {
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%) !important;
}

/* フッター */
footer {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

/* エリアヘッダーの装飾 */
.bg-orange-100.text-orange-700 {
  animation: pulse 2s ease-in-out infinite;
}

.bg-green-100.text-green-700 {
  animation: pulse 2s ease-in-out infinite 0.3s;
}

.bg-blue-100.text-blue-700 {
  animation: pulse 2s ease-in-out infinite 0.6s;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
  }
}

/* 数字バッジ（イベントの流れ） */
.bg-green-600 {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* ホバーエフェクト全般 */
a, button {
  transition: all 0.3s ease;
}

/* スクロールバーカスタマイズ */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* レスポンシブ */
@media (max-width: 768px) {
  .event-card {
    margin-bottom: 1rem;
  }
  
  .header-gradient::before,
  .header-gradient::after {
    width: 300px;
    height: 300px;
  }
}

/* パーティクル効果（背景装飾） */
@keyframes twinkle {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* 浮遊するアイコン装飾 */
.floating-icon {
  animation: floating 3s ease-in-out infinite;
}

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

/* フェードインアニメーション */
.animate-fade-in {
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-15px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
