/* 道東一揆 2025 - Custom Styles */

:root {
  --rebellion-red: #DC2626;
  --rebellion-dark: #1F2937;
  --rebellion-gold: #F59E0B;
  --text-shadow-strong: 2px 2px 4px rgba(0, 0, 0, 0.8);
  --text-shadow-soft: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* スムーススクロール */
html {
  scroll-behavior: smooth;
}

/* 基本設定 */
body {
  background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
  background-attachment: fixed;
  line-height: 1.6;
}

/* カスタムスクロールバー */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1F2937;
}

::-webkit-scrollbar-thumb {
  background: var(--rebellion-red);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #B91C1C;
}

/* テキストアニメーション */
.text-glow {
  text-shadow: 0 0 10px var(--rebellion-red), 0 0 20px var(--rebellion-red), 0 0 30px var(--rebellion-red);
}

.text-fire {
  background: linear-gradient(45deg, #ff6b35, #f7931e, #ffcd3c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fireGlow 2s ease-in-out infinite alternate;
}

@keyframes fireGlow {
  from {
    filter: drop-shadow(0 0 5px #ff6b35);
  }
  to {
    filter: drop-shadow(0 0 15px #f7931e);
  }
}

/* 書道ロゴのスタイル */
.calligraphy-logo {
  /* 白い背景に赤いグロー効果 */
  background: white;
  border-radius: 10px;
  padding: 10px;
  animation: logoGlow 3s ease-in-out infinite alternate;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 10px rgba(220, 38, 38, 0.7));
}

.calligraphy-logo:hover {
  filter: drop-shadow(0 0 20px var(--rebellion-red)) drop-shadow(0 0 30px var(--rebellion-red));
  transform: scale(1.05);
}

@keyframes logoGlow {
  0% {
    filter: drop-shadow(0 0 5px rgba(220, 38, 38, 0.5));
  }
  50% {
    filter: drop-shadow(0 0 15px rgba(220, 38, 38, 0.8));
  }
  100% {
    filter: drop-shadow(0 0 25px rgba(220, 38, 38, 1));
  }
}

/* ナビゲーションロゴ */
.nav-logo {
  /* 白い背景を追加 */
  background: white;
  border-radius: 5px;
  padding: 5px;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 5px rgba(220, 38, 38, 0.5));
}

.nav-logo:hover {
  filter: drop-shadow(0 0 10px var(--rebellion-red));
  transform: scale(1.1);
}

/* ヒーローセクションのアニメーション */
.hero-title {
  animation: heroEntry 1.5s ease-out;
}

@keyframes heroEntry {
  0% {
    opacity: 0;
    transform: translateY(-50px) scale(0.8);
  }
  50% {
    opacity: 0.7;
    transform: translateY(10px) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* パルスアニメーション */
.pulse-red {
  animation: pulseRed 2s infinite;
}

@keyframes pulseRed {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
  }
}

/* ホバーエフェクト */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3);
}

/* グラデーション背景 */
.bg-rebellion-gradient {
  background: linear-gradient(135deg, var(--rebellion-red) 0%, var(--rebellion-dark) 100%);
}

.bg-gold-gradient {
  background: linear-gradient(135deg, var(--rebellion-gold) 0%, #D97706 100%);
}

/* ガラス効果 */
.glass-effect {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ネオンボーダー効果 */
.neon-border-red {
  border: 2px solid var(--rebellion-red);
  box-shadow: 
    0 0 5px var(--rebellion-red),
    inset 0 0 5px rgba(220, 38, 38, 0.2);
  animation: neonPulse 2s ease-in-out infinite alternate;
}

.neon-border-gold {
  border: 2px solid var(--rebellion-gold);
  box-shadow: 
    0 0 5px var(--rebellion-gold),
    inset 0 0 5px rgba(245, 158, 11, 0.2);
}

@keyframes neonPulse {
  from {
    box-shadow: 
      0 0 5px var(--rebellion-red),
      inset 0 0 5px rgba(220, 38, 38, 0.2);
  }
  to {
    box-shadow: 
      0 0 20px var(--rebellion-red),
      0 0 30px rgba(220, 38, 38, 0.5),
      inset 0 0 10px rgba(220, 38, 38, 0.4);
  }
}

/* タイポグラフィ */
.font-tech {
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.font-din {
  font-family: 'DIN Alternate', sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.font-hiragino {
  font-family: 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', 'Meiryo', 'メイリオ', sans-serif;
  font-weight: 600;
}

/* スポンサー金額の混合フォントスタイル */
.sponsor-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.125rem;
}

.sponsor-price .number {
  font-family: 'DIN Alternate', sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.sponsor-price .currency {
  font-family: 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', 'Meiryo', 'メイリオ', sans-serif;
  font-weight: 600;
  font-size: 0.85em; /* 数字より少し小さく */
}

.text-stroke {
  -webkit-text-stroke: 2px var(--rebellion-red);
  text-stroke: 2px var(--rebellion-red);
}

/* 全体的な文字サイズ向上（2pt増加） */
body {
  font-size: 18px; /* 16px + 2pt */
  line-height: 1.7;
}

/* 基本テキストサイズの向上（2pt増加） */
.text-enhanced {
  font-size: 1.25rem; /* 20px (18px + 2pt) */
  line-height: 1.6;
}

.text-enhanced-lg {
  font-size: 1.375rem; /* 22px (20px + 2pt) */
  line-height: 1.6;
}

.text-enhanced-xl {
  font-size: 1.5rem; /* 24px (22px + 2pt) */
  line-height: 1.5;
}

/* 見出しサイズの向上（2pt増加） */
h1 { font-size: 2.625rem !important; } /* 42px (40px + 2pt) */
h2 { font-size: 2.125rem !important; } /* 34px (32px + 2pt) */
h3 { font-size: 1.875rem !important; } /* 30px (28px + 2pt) */
h4 { font-size: 1.625rem !important; } /* 26px (24px + 2pt) */

/* Tailwindクラスのオーバーライド（2pt増加） */
.text-xs { font-size: 0.875rem !important; } /* 14px (12px + 2pt) */
.text-sm { font-size: 1rem !important; } /* 16px (14px + 2pt) */
.text-base { font-size: 1.125rem !important; } /* 18px (16px + 2pt) */
.text-lg { font-size: 1.25rem !important; } /* 20px (18px + 2pt) */
.text-xl { font-size: 1.375rem !important; } /* 22px (20px + 2pt) */
.text-2xl { font-size: 1.625rem !important; } /* 26px (24px + 2pt) */
.text-3xl { font-size: 2rem !important; } /* 32px (30px + 2pt) */
.text-4xl { font-size: 2.375rem !important; } /* 38px (36px + 2pt) */
.text-5xl { font-size: 3.125rem !important; } /* 50px (48px + 2pt) */
.text-6xl { font-size: 4rem !important; } /* 64px (60px + 2pt) */

/* ボタンスタイル */
.btn-rebellion {
  background: linear-gradient(45deg, var(--rebellion-red), #B91C1C);
  border: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-rebellion::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-rebellion:hover::before {
  left: 100%;
}

.btn-rebellion:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(220, 38, 38, 0.4);
}

/* カードエフェクト */
.card-3d {
  perspective: 1000px;
  transition: transform 0.3s ease;
}

.card-3d:hover {
  transform: rotateY(5deg) rotateX(5deg);
}

.card-inner {
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

/* パーティクル背景 */
.particles-bg {
  position: relative;
  overflow: hidden;
}

.particles-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 25% 25%, var(--rebellion-red) 2px, transparent 2px),
    radial-gradient(circle at 75% 75%, var(--rebellion-gold) 1px, transparent 1px);
  background-size: 100px 100px, 150px 150px;
  animation: particleFloat 20s linear infinite;
  opacity: 0.1;
}

@keyframes particleFloat {
  0% {
    transform: translateX(-100px) translateY(-100px);
  }
  100% {
    transform: translateX(100px) translateY(100px);
  }
}

/* セクション区切り線 */
.section-divider {
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    var(--rebellion-red) 20%, 
    var(--rebellion-gold) 50%, 
    var(--rebellion-red) 80%, 
    transparent
  );
  margin: 2rem 0;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) and (min-width: 769px) {
  /* タブレット用カウントダウン調整 */
  #countdown-container {
    bottom: 80px !important;
    right: 12px !important;
    padding: 0.5rem !important;
    font-size: 0.8rem;
    max-width: 280px;
  }
  
  /* タブレット用ヒーローセクション調整 */
  .container .pt-20 {
    padding-top: 6rem !important;
  }
  
  .countdown-item-small {
    padding: 0.5rem 0.25rem !important;
    min-width: 45px !important;
    border-radius: 6px;
  }
  
  .countdown-number-small {
    font-size: 1rem !important;
    line-height: 1.1;
  }
  
  .countdown-label-small {
    font-size: 0.6rem !important;
    margin-top: 0.125rem !important;
  }
  
  #countdown-container h3 {
    font-size: 0.75rem !important;
    margin-bottom: 0.375rem !important;
  }
  
  #countdown-display {
    gap: 0.375rem !important;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem !important;
  }
  
  .mobile-stack {
    flex-direction: column;
  }
  
  .mobile-full {
    width: 100%;
  }
  
  .mobile-text-center {
    text-align: center;
  }
  
  /* モバイル用ヒーローセクション調整 */
  .container .pt-20 {
    padding-top: 6rem !important;
  }
  
  /* モバイル用カウントダウン調整 */
  #countdown-container {
    bottom: 76px !important;
    right: 8px !important;
    padding: 0.375rem !important;
    font-size: 0.7rem;
    max-width: 240px;
  }
  
  .countdown-item-small {
    padding: 0.375rem 0.25rem !important;
    min-width: 40px !important;
    border-radius: 4px;
  }
  
  .countdown-number-small {
    font-size: 0.9rem !important;
    line-height: 1;
  }
  
  .countdown-label-small {
    font-size: 0.55rem !important;
    margin-top: 0.125rem !important;
  }
  
  #countdown-container h3 {
    font-size: 0.7rem !important;
    margin-bottom: 0.25rem !important;
  }
  
  #countdown-display {
    gap: 0.25rem !important;
  }
}

/* プリローダー */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--rebellion-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loader {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(220, 38, 38, 0.3);
  border-top: 3px solid var(--rebellion-red);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* カウントダウン */
.countdown-item {
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid var(--rebellion-red);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  min-width: 80px;
}

.countdown-number {
  font-size: 2rem;
  font-weight: bold;
  color: var(--rebellion-gold);
  text-shadow: var(--text-shadow-strong);
}

.countdown-label {
  font-size: 0.8rem;
  color: #ccc;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* カウントダウン（小さいサイズ） */
.countdown-item-small {
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--rebellion-red);
  border-radius: 8px;
  padding: 0.75rem 0.5rem;
  text-align: center;
  min-width: 60px;
}

/* カウントダウンコンテナ */
#countdown-container {
  transition: opacity 0.3s ease-in-out;
}

.countdown-number-small {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--rebellion-gold);
  text-shadow: var(--text-shadow-strong);
  line-height: 1;
}

.countdown-label-small {
  font-size: 0.7rem;
  color: #ccc;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

/* フローティングアクション */
.floating-action {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  background: var(--rebellion-red);
  color: white;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
  transition: all 0.3s ease;
}

.floating-action:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.6);
}

/* スクロールプログレス */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--rebellion-red), var(--rebellion-gold));
  z-index: 9999;
  transition: width 0.1s ease;
}

/* タイムライン */
.timeline-item {
  position: relative;
  padding-left: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  background: var(--rebellion-red);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.3);
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1.5rem;
  width: 2px;
  height: calc(100% - 1rem);
  background: linear-gradient(180deg, var(--rebellion-red), transparent);
}

.timeline-item:last-child::after {
  display: none;
}

/* アーティスト画像エフェクト */
.artist-card {
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

/* HIBIKI & HONOKA専用の画像調整 */
.hibiki-honoka-image {
  object-fit: cover;
  object-position: center 25% !important; /* 2人の顔がバランス良く見えるように */
  transform: none; /* スケール効果を解除 */
  transition: transform 0.4s ease;
  height: 14rem !important; /* h-56に合わせてより高くして縦幅を確保 */
}

/* タブレット以上でHIBIKI & HONOKAの画像をさらに大きく */
@media (min-width: 768px) {
  .hibiki-honoka-image {
    height: 16rem !important; /* md:h-64に合わせて更に大きく */
  }
}

.artist-card:hover .hibiki-honoka-image {
  transform: none; /* ホバー時もスケール効果なし */
  filter: none; /* フィルターを解除 */
}

.artist-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, var(--rebellion-red), var(--rebellion-gold));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.artist-card:hover::before {
  opacity: 0.1;
}

.artist-image {
  transition: transform 0.4s ease;
  filter: none; /* フィルターを完全に解除 */
}

.artist-card:hover .artist-image {
  transform: scale(1.05);
  filter: none; /* ホバー時もフィルターなし */
}

.artist-info {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.8));
}

/* 音波エフェクト */
.soundwave {
  display: flex;
  align-items: center;
  gap: 2px;
}

.soundwave-bar {
  width: 4px;
  background: var(--rebellion-gold);
  border-radius: 2px;
  animation: soundwave 1.5s ease-in-out infinite;
}

.soundwave-bar:nth-child(1) { height: 20px; animation-delay: 0s; }
.soundwave-bar:nth-child(2) { height: 30px; animation-delay: 0.1s; }
.soundwave-bar:nth-child(3) { height: 40px; animation-delay: 0.2s; }
.soundwave-bar:nth-child(4) { height: 25px; animation-delay: 0.3s; }
.soundwave-bar:nth-child(5) { height: 35px; animation-delay: 0.4s; }

@keyframes soundwave {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.3); }
}

/* エラー・成功メッセージ */
.alert-success {
  background: linear-gradient(135deg, #10B981, #059669);
  border-left: 4px solid #047857;
}

.alert-error {
  background: linear-gradient(135deg, var(--rebellion-red), #B91C1C);
  border-left: 4px solid #991B1B;
}

.alert-warning {
  background: linear-gradient(135deg, var(--rebellion-gold), #D97706);
  border-left: 4px solid #B45309;
}

/* スピンローダー（小） */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* ツールチップ */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 200px;
  background-color: var(--rebellion-dark);
  color: white;
  text-align: center;
  border-radius: 6px;
  padding: 8px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -100px;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 0.8rem;
  border: 1px solid var(--rebellion-red);
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: var(--rebellion-red) transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}