/* Blue×Gold Color Scheme for Point Site Comparison */
:root {
  /* Primary Colors */
  --color-primary: #1A73E8;
  --color-primary-dark: #1557B0;
  --color-primary-light: #4A90E2;

  /* Accent Colors */
  --color-gold: #F7C948;
  --color-gold-dark: #D4AA38;
  --color-gold-light: #FFD966;

  /* Background */
  --color-bg: #F8FAFC;
  --color-bg-white: #FFFFFF;

  /* Text */
  --color-text: #1C1C1C;
  --color-text-secondary: #6B7280;

  /* Status Colors */
  --color-record-high: #F7C948;
  /* Gold for record high */
  --color-increase: #EF4444;
  /* Red for increase */
  --color-decrease: #6B7280;
  /* Gray for decrease */
}

/* Custom utility classes */
.text-primary {
  color: var(--color-primary) !important;
}

.text-gold {
  color: var(--color-gold) !important;
}

.bg-primary {
  background-color: var(--color-primary) !important;
}

.bg-gold {
  background-color: var(--color-gold) !important;
}

.border-primary {
  border-color: var(--color-primary) !important;
}

.border-gold {
  border-color: var(--color-gold) !important;
}

/* Override Tailwind indigo with our blue */
.text-indigo-600,
.text-indigo-500 {
  color: var(--color-primary) !important;
}

.bg-indigo-600,
.bg-indigo-500 {
  background-color: var(--color-primary) !important;
}

.bg-indigo-900 {
  background-color: var(--color-primary-dark) !important;
}

.border-indigo-600,
.border-indigo-500 {
  border-color: var(--color-primary) !important;
}

.border-t-indigo-600 {
  border-top-color: var(--color-primary) !important;
}

.border-indigo-200 {
  border-color: var(--color-primary-light) !important;
}

.hover\:text-indigo-600:hover {
  color: var(--color-primary) !important;
}

.hover\:border-indigo-100:hover {
  border-color: rgba(26, 115, 232, 0.2) !important;
}

.group-hover\:text-indigo-600:hover {
  color: var(--color-primary) !important;
}

.bg-indigo-50 {
  background-color: rgba(26, 115, 232, 0.1) !important;
}

/* Record High Badge */
.record-high-badge {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
  color: #1C1C1C;
  font-weight: bold;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  animation: pulse-gold 2s infinite;
}

@keyframes pulse-gold {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(247, 201, 72, 0.4);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(247, 201, 72, 0);
  }
}

/* Hero Card Styling */
.hero-card {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 20px 40px rgba(26, 115, 232, 0.3);
}

/* Price highlight */
.price-highlight {
  color: var(--color-gold);
  font-weight: 900;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Comparison card */
.comparison-card {
  background: white;
  border-radius: 16px;
  border: 1px solid #E5E7EB;
  transition: all 0.3s ease;
}

.comparison-card:hover {
  box-shadow: 0 10px 30px rgba(26, 115, 232, 0.15);
  border-color: var(--color-primary);
  transform: translateY(-4px);
}

/* Best deal indicator */
.best-deal {
  background: var(--color-gold);
  color: #1C1C1C;
}

/* Animations */
.animate-fade-in-up {
  animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sparkline placeholder */
.sparkline {
  height: 40px;
  background: linear-gradient(90deg, transparent, var(--color-gold), var(--color-primary));
  opacity: 0.3;
  border-radius: 4px;
}

/* CTA Button Styles - Mobile Optimized */
.btn-gold {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: white !important;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 12px;
  text-align: center;
  display: block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
  transform: translateY(-2px);
}

.btn-cta {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white !important;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 12px;
  text-align: center;
  display: block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.btn-cta:hover {
  box-shadow: 0 6px 20px rgba(26, 115, 232, 0.4);
  transform: translateY(-2px);
}

/* 2位との差 - 強調バッジ */
.difference-badge {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  color: #B91C1C;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  border: 2px solid #FBBF24;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
  animation: pulse-difference 2s infinite;
}

@keyframes pulse-difference {

  0%,
  100% {
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
  }

  50% {
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.5);
  }
}

/* 価格表示 - 大きな数字 */
.price-xl {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}

.price-gold {
  color: var(--color-gold-dark);
}

/* Content Divider */
.content-divider {
  background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
  border-radius: 16px;
  padding: 20px;
  margin: 24px 0;
  border: 1px solid #C7D2FE;
}

/* Shop Rate - Bold Numbers */
.shop-rate {
  font-size: 1.5rem;
  font-weight: 900;
  color: #111827;
  letter-spacing: -0.02em;
}

.shop-rate-percent {
  font-size: 0.875rem;
  font-weight: 700;
  color: #6B7280;
}

/* ========== UI/UX IMPROVEMENTS ========== */

/* Sticky Sidebar - PC Only */
@media (min-width: 1024px) {
  .sidebar-sticky {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }

  .sidebar-sticky::-webkit-scrollbar {
    width: 4px;
  }

  .sidebar-sticky::-webkit-scrollbar-thumb {
    background: #E5E7EB;
    border-radius: 4px;
  }
}

/* Enhanced Shop Rate - Bold Numbers */
.shop-rate-enhanced {
  font-size: 2rem;
  font-weight: 900;
  color: #111827;
  letter-spacing: -0.03em;
  line-height: 1;
}

.shop-rate-unit {
  font-size: 0.75em;
  font-weight: 600;
  color: #6B7280;
  margin-left: 2px;
}

/* CTA Button - High Impact (Mobile First) */
.btn-cta-primary {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: white !important;
  font-weight: 700;
  padding: 16px 24px;
  border-radius: 14px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-cta-primary:hover {
  background: linear-gradient(135deg, #1D4ED8 0%, #1E40AF 100%);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
  transform: translateY(-2px);
}

.btn-cta-primary:active {
  transform: translateY(0);
}

/* CTA Button - Orange Variant */
.btn-cta-orange {
  background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
  color: white !important;
  font-weight: 700;
  padding: 14px 20px;
  border-radius: 12px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);
}

.btn-cta-orange:hover {
  background: linear-gradient(135deg, #EA580C 0%, #C2410C 100%);
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.45);
  transform: translateY(-2px);
}

/* Enhanced Difference Badge - Highly Visible */
.difference-badge-enhanced {
  background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
  color: #DC2626;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 10px 16px;
  border-radius: 10px;
  border: 2px solid #FCA5A5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.15);
  animation: subtle-pulse 2.5s infinite;
}

@keyframes subtle-pulse {

  0%,
  100% {
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.15);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.25);
    transform: scale(1.02);
  }
}

/* Table Action Button */
.btn-table-action {
  background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
  color: white !important;
  font-weight: 600;
  font-size: 0.75rem;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-table-action:hover {
  background: linear-gradient(135deg, #EA580C 0%, #C2410C 100%);
  transform: scale(1.05);
}

/* Grid Layout Helpers */
@media (min-width: 1280px) {
  .grid-4-cols-xl {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

/* Content Break / Interrupter */
.content-break {
  background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
  border: 1px solid #BAE6FD;
  border-radius: 16px;
  padding: 24px;
  margin: 32px 0;
  text-align: center;
}

.content-break-title {
  font-weight: 700;
  color: #0369A1;
  font-size: 0.875rem;
  margin-bottom: 12px;
}

/* Category Chips (Horizontal Scroll) */
.category-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0;
  -webkit-overflow-scrolling: touch;
}

.category-chip {
  flex-shrink: 0;
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-chip:hover {
  background: #F3F4F6;
  border-color: #D1D5DB;
}

.category-chip.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

/* =====================================================
   PC Hover Effects (UX向上)
   ===================================================== */

/* カード全体のホバーエフェクト - ふわっと浮く */
.card,
.deal-card,
[class*="rounded-2xl"][class*="shadow"] {
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.card:hover,
.deal-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

/* 主要ショップカードのホバー */
.shop-card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shop-card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ボタンのホバーエフェクト - 色が明るくなる */
.btn-hover-brighten {
  transition: filter 0.2s ease, transform 0.15s ease;
}

.btn-hover-brighten:hover {
  filter: brightness(1.1);
}

.btn-hover-brighten:active {
  transform: scale(0.97);
}

/* CTAボタンの強化ホバー */
.btn-cta-primary:hover,
a[class*="bg-gradient"]:hover {
  filter: brightness(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* インタラクティブ要素のカーソル */
.cursor-pointer,
.card,
[onclick] {
  cursor: pointer;
}

/* クリック時のフィードバック */
.active-scale:active {
  transform: scale(0.97) !important;
  transition: transform 0.1s ease;
}

/* =====================================================
   差額バッジ（2位との差を強調）
   ===================================================== */
.difference-badge-enhanced {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(26, 115, 232, 0.15), rgba(26, 115, 232, 0.05));
  color: var(--color-primary-dark);
  border: 1px solid rgba(26, 115, 232, 0.3);
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.1);
}

.difference-badge-enhanced strong {
  color: #dc2626;
  /* 金額部分は赤で強調 */
  font-size: 15px;
}

/* =====================================================
   テーブルヘッダー固定（Sticky Header）
   ===================================================== */
.table-header-sticky {
  position: sticky;
  top: 80px;
  /* メインヘッダーの高さ分オフセット */
  z-index: 10;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* モバイルではヘッダーが小さいため調整 */
@media (max-width: 768px) {
  .table-header-sticky {
    top: 60px;
  }
}

/* =====================================================
   カテゴリーカードのホバーエフェクト強化
   ===================================================== */
/* アイコンの拡大・回転 */
.category-card .category-icon {
  transition: transform 0.3s ease;
}

.category-card:hover .category-icon {
  transform: scale(1.15) rotate(6deg);
}

/* 「一覧を見る→」テキストの右移動 */
.category-card .view-link {
  transition: transform 0.3s ease, color 0.3s ease;
}

.category-card:hover .view-link {
  transform: translateX(4px);
  color: var(--color-primary);
}

/* 矢印アイコンのアニメーション */
.category-card .arrow-icon {
  transition: transform 0.3s ease;
}

.category-card:hover .arrow-icon {
  transform: translateX(6px);
}

/* =====================================================
   テーブルアクションボタン
   ===================================================== */
.btn-table-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, rgba(26, 115, 232, 0.1), rgba(26, 115, 232, 0.05));
  color: var(--color-primary);
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 12px;
  border: 1px solid rgba(26, 115, 232, 0.2);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-table-action:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
  border-color: var(--color-primary);
}

.btn-table-action:active {
  transform: translateY(0);
}

/* =====================================================
   フッターデザイン強化
   ===================================================== */
.footer-enhanced {
  background: linear-gradient(180deg, #f8fafc, #ffffff);
  border-top: 1px solid #e5e7eb;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.footer-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--color-primary), #4f46e5);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}