/* ============================================
   Home Page (Landing Page)
   Created: 2025-10-13
   Purpose: ランディングページのスタイル（デザイントークン活用）
   ============================================ */

/* ============================================
   Hero Section
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,197.3C1248,203,1344,149,1392,122.7L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
  background-size: cover;
}

.hero-content {
  text-align: center;
  color: var(--color-white);
  z-index: 1;
  padding: var(--space-6);
  max-width: 900px;
}

.hero-title {
  font-size: var(--font-size-6xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-5);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-6);
  opacity: 0.95;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: var(--space-5);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.4s both;
}

/* Hero button style - 標準ボタンシステムを拡張 */
.hero-button-style {
  background: var(--color-white);
  color: var(--color-secondary);
  border-color: transparent;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-2xl);
}

.hero-button-style:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.hero-button-outline-style {
  background: transparent;
  color: var(--color-white);
  border: var(--border-width-2) solid var(--color-white);
  border-radius: var(--radius-full);
}

.hero-button-outline-style:hover:not(:disabled) {
  background: var(--color-white);
  color: var(--color-secondary);
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   Features Section
   ============================================ */

.features {
  padding: var(--space-12) var(--space-6);
  background: var(--color-white);
}

.section-title {
  text-align: center;
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-4);
  color: var(--color-primary);
}

.section-subtitle {
  text-align: center;
  font-size: var(--font-size-xl);
  color: var(--text-secondary);
  margin-bottom: var(--space-10);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-8);
  max-width: var(--container-xl);
  margin: 0 auto;
}

/* Note: .feature-cardはhome/index.html.erb専用のスタイルです
   - hover効果あり（transform, box-shadow）
   - padding: var(--space-6)
   - border-radius: var(--radius-xl)
   - pages/about.html.erbで使用される.feature-cardとは異なるスタイルです */
.feature-card {
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  background: var(--color-gray-50);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  text-align: center;
}

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

.feature-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
}

.feature-card-link:hover {
  text-decoration: none;
  color: inherit;
}

.feature-icon {
  font-size: var(--font-size-5xl);
  margin-bottom: var(--space-4);
}

.feature-title {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-4);
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
}

.feature-description {
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
}

/* ============================================
   CTA Section
   ============================================ */

.cta {
  padding: var(--space-12) var(--space-6);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: var(--color-white);
  text-align: center;
}

.cta-title {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-5);
}

.cta-description {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-6);
  opacity: 0.95;
}

.cta-buttons {
  display: flex;
  gap: var(--space-5);
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background: var(--color-gray-900);
  color: var(--color-white);
  padding: var(--space-8) var(--space-6);
  text-align: center;
}

.footer-content {
  max-width: var(--container-xl);
  margin: 0 auto;
}

.footer-links {
  display: flex;
  gap: var(--space-6);
  justify-content: center;
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.footer-link {
  color: var(--color-gray-400);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-white);
}

.footer-copyright {
  color: #666;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
  .hero-title {
    font-size: var(--font-size-4xl);
  }

  .hero-subtitle {
    font-size: var(--font-size-xl);
  }

  .section-title {
    font-size: var(--font-size-3xl);
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 60px;
  }

  .hero-content {
    padding: var(--space-4);
  }

  .hero-title {
    font-size: var(--font-size-3xl);
  }

  .hero-subtitle {
    font-size: var(--font-size-lg);
  }

  .hero-buttons {
    flex-direction: column;
    gap: var(--space-3);
  }

  .hero-button {
    padding: var(--space-3) var(--space-6);
    font-size: var(--font-size-base);
  }
}

