/* ===================================
   ヒーローセクション CSS
   だいほう合同会社 T031実装
=================================== */

/* ヒーローセクション基本設定 */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, 
    var(--primary-color) 0%, 
    var(--secondary-color) 50%, 
    #1e40af 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: 80px; /* ヘッダー固定分のオフセット */
}

/* 背景パターン */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 50px 50px, 80px 80px;
  animation: float 20s ease-in-out infinite;
}

/* ヒーローコンテナ */
.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  position: relative;
  z-index: 2;
}

/* ヒーローコンテンツ */
.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-3xl);
  align-items: center;
  min-height: 60vh;
}

/* ヒーローテキスト部分 */
.hero-text {
  color: white;
  animation: slideInLeft 1s ease-out;
}

.hero-title {
  font-family: system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-xl);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-title-main {
  display: block;
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: var(--spacing-sm);
  background: linear-gradient(45deg, #ffffff, #f0f8ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title-sub {
  display: block;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: #fbbf24;
  font-weight: 600;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
  margin-bottom: var(--spacing-2xl);
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ヒーローボタン */
.hero-buttons {
  display: flex;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
}

.hero-btn-primary {
  background: linear-gradient(45deg, #ef4444, #dc2626);
  border: none;
  color: white;
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  box-shadow: 
    0 4px 15px rgba(239, 68, 68, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  transform: translateY(0);
}

.hero-btn-primary:hover {
  background: linear-gradient(45deg, #dc2626, #b91c1c);
  transform: translateY(-2px);
  box-shadow: 
    0 8px 25px rgba(239, 68, 68, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  color: white;
}

.hero-btn-outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: white;
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.hero-btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  color: white;
  transform: translateY(-2px);
}

/* ヒーロービジュアル部分 */
.hero-visual {
  position: relative;
  animation: slideInRight 1s ease-out 0.3s both;
}

.hero-image-container {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: var(--spacing-lg);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  opacity: 0.9;
}

/* 画像が存在しない場合のプレースホルダー */
.hero-image-container::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: linear-gradient(45deg, #60a5fa, #3b82f6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-container::after {
  content: '🚀';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  z-index: 1;
}

/* ヒーロー特徴アイコン */
.hero-features {
  display: flex;
  justify-content: space-around;
  margin-top: var(--spacing-xl);
  padding: var(--spacing-lg);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md);
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 2rem;
  color: #fbbf24;
  margin-bottom: var(--spacing-xs);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.feature-text {
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
}

/* スクロール指示 */
.scroll-indicator {
  position: absolute;
  bottom: var(--spacing-xl);
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  animation: bounce 2s infinite;
}

.scroll-text {
  display: block;
  font-size: 0.9rem;
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
}

.scroll-arrow {
  font-size: 1.2rem;
}

/* 統計情報セクション */
.stats-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: var(--spacing-3xl) 0;
  position: relative;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-2xl);
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.stat-item {
  text-align: center;
  padding: var(--spacing-xl);
  background: white;
  border-radius: 15px;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(0, 0, 0, 0.05);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
  font-family: system-ui, sans-serif;
}

.stat-label {
  font-size: 1rem;
  color: var(--gray-600);
  font-weight: 500;
}

/* アニメーション定義 */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* レスポンシブ対応 */
@media (max-width: 991px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
    text-align: center;
  }
  
  .hero-text {
    order: 1;
  }
  
  .hero-visual {
    order: 2;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .hero-section {
    padding-top: 70px;
    min-height: 90vh;
  }
  
  .hero-container {
    padding: 0 var(--spacing-md);
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-btn-primary,
  .hero-btn-outline {
    width: 100%;
    max-width: 280px;
  }
  
  .hero-features {
    flex-direction: column;
    gap: var(--spacing-lg);
  }
  
  .stats-container {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .stat-item {
    padding: var(--spacing-lg);
  }
}

@media (max-width: 575px) {
  .hero-title-main {
    font-size: 2rem;
  }
  
  .hero-title-sub {
    font-size: 1.5rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
  .stats-section {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  }
  
  .stat-item {
    background: #374151;
    color: white;
  }
  
  .stat-label {
    color: #d1d5db;
  }
}

/* スクロールボタン */
.btn-scroll {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 12px 16px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-scroll:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.btn-scroll:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

/* サービスリンク */
.service-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

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

.service-link .feature-item {
  cursor: pointer;
}

.service-link:hover .feature-item {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* 印刷時の対応 */
@media print {
  .hero-section {
    background: white !important;
    color: black !important;
    min-height: auto;
  }

  .hero-section::before {
    display: none;
  }

  .scroll-indicator,
  .btn-scroll {
    display: none;
  }
}
