/* Enhanced Styles for 光回線比較ガイド - Modern Design */

/* CSS Variables for Modern Color Scheme */
:root {
  /* Primary Colors - Blue to Orange Gradient */
  --primary-blue: #1e40af;
  --primary-orange: #ea580c;
  --gradient-primary: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #ea580c 100%);
  --gradient-secondary: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
  
  /* Enhanced Color Palette */
  --bg: #fafbfc;
  --card: #ffffff;
  --brand: #1e40af;
  --brand-2: #ea580c;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  
  /* Enhanced Shadows */
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Border Radius */
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  
  /* Typography */
  --font-primary: 'Noto Sans JP', system-ui, -apple-system, sans-serif;
  --font-heading: 'Noto Sans JP', system-ui, -apple-system, sans-serif;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-primary);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Enhanced Header */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.3s ease;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-lg);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-menu a:hover {
  color: var(--primary-blue);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

/* Enhanced Hero Section */
.hero {
  background: var(--gradient-primary);
  color: white;
  padding: 4rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.1"><circle cx="36" cy="12" r="2"/><circle cx="12" cy="36" r="2"/><circle cx="48" cy="48" r="2"/></g></svg>');
  animation: float 20s infinite linear;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Enhanced CTA Buttons */
.cta-button, .cta-large {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gradient-secondary);
  color: white;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
}

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

.cta-button:hover, .cta-large:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  background: linear-gradient(135deg, #0284c7 0%, #0891b2 100%);
}

.cta-button:hover::before, .cta-large:hover::before {
  left: 100%;
}

.cta-primary {
  background: var(--gradient-primary);
  font-size: 1.1rem;
  padding: 1.2rem 2.5rem;
}

.cta-cashback {
  background: linear-gradient(135deg, #dc2626 0%, #ea580c 100%);
  animation: pulse 2s infinite;
}

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

/* Enhanced Comparison Table */
.comparison-section {
  padding: 4rem 0;
  background: var(--card);
}

.table-container {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: white;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.comparison-table th {
  background: var(--gradient-primary);
  color: white;
  padding: 1.2rem 1rem;
  text-align: left;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 10;
}

.comparison-table td {
  padding: 1.2rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.comparison-table tbody tr:hover {
  background: rgba(59, 130, 246, 0.05);
  transition: background 0.3s ease;
}

.provider-highlight {
  background: rgba(59, 130, 246, 0.1) !important;
  border-left: 4px solid var(--primary-blue);
}

/* Speed Visualization */
.speed-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.speed-meter {
  width: 60px;
  height: 30px;
  background: var(--line);
  border-radius: 15px;
  position: relative;
  overflow: hidden;
}

.speed-fill {
  height: 100%;
  border-radius: 15px;
  transition: width 1s ease;
}

.speed-1gbps .speed-fill {
  width: 50%;
  background: linear-gradient(90deg, #10b981, #059669);
}

.speed-2gbps .speed-fill {
  width: 100%;
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

.speed-text {
  font-weight: 600;
  color: var(--ink);
}

/* Price Highlight */
.price-highlight {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-blue);
}

.price-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* Trust Signals */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 0;
  background: rgba(59, 130, 246, 0.05);
  margin: 2rem 0;
  border-radius: var(--radius);
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: white;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  font-weight: 500;
}

.trust-badge i {
  color: var(--success);
}

/* User Stories Section */
.user-stories {
  padding: 4rem 0;
  background: var(--bg);
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.story-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  position: relative;
  transition: transform 0.3s ease;
}

.story-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.story-card::before {
  content: '"';
  font-size: 4rem;
  color: var(--primary-blue);
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  opacity: 0.3;
}

.story-content {
  margin-top: 1rem;
  font-style: italic;
  color: var(--muted);
  line-height: 1.7;
}

.story-author {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
}

.author-info h4 {
  color: var(--ink);
  font-weight: 600;
}

.author-info p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Social Media Integration */
.social-share {
  display: flex;
  gap: 1rem;
  justify-content: center;
  padding: 2rem 0;
}

.social-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: all 0.3s ease;
}

.social-twitter {
  background: #1da1f2;
}

.social-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Enhanced Cards */
.card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-blue);
}

.card-header {
  margin-bottom: 1.5rem;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

/* FAQ Section */
.faq-item {
  background: white;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-question {
  background: none;
  border: none;
  width: 100%;
  padding: 1.5rem;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: rgba(59, 130, 246, 0.05);
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-answer.active {
  padding: 1.5rem;
  max-height: 300px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .nav-menu {
    display: none;
  }
  
  .comparison-table {
    font-size: 0.85rem;
  }
  
  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem 0.5rem;
  }
  
  .stories-grid {
    grid-template-columns: 1fr;
  }
  
  .trust-badges {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-button, .cta-large {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  .hero {
    padding: 2rem 0 3rem;
  }
  
  .card {
    padding: 1.5rem;
  }
}

/* Performance Optimizations */
.lazy-load {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lazy-load.loaded {
  opacity: 1;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for keyboard navigation */
.cta-button:focus,
.nav-menu a:focus,
.faq-question:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}