/* ==========================
   ヒーローセクション - スライダー（ホームページのみ）
   ========================== */

/* ホームページのみヒーローセクションを表示 */
body:not(.home) .hero-section {
  display: none;
}

.hero-section {
  position: relative;
  width: 100%;
  height: 100vh; /* PC: 全画面 */
  overflow: hidden;
  z-index: 1;
}

.hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1); /* オーバーレイ */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 0 20px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 2px rgba(0, 0, 0);
  animation: slideInUp 1s ease-out;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 1;
  text-shadow: 1px 1px 1px rgba(0, 0, 0);
  animation: slideInUp 1s ease-out 0.3s both;
  background-color: rgba(18, 60, 93, 0.5);
  border-radius: 1rem;
  padding: 1.5rem;
}

.hero-btn {
  display: inline-block;
  padding: 15px 40px;
  background: #0073e6;
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-shadow: none;
  animation: slideInUp 1s ease-out 0.6s both;
}

.hero-btn:hover {
  background: #005bb5;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 115, 230, 0.3);
}

/* ナビゲーションドット */
.hero-nav {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-dot.active {
  background: white;
  transform: scale(1.2);
}

/* 矢印ナビゲーション */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 10px 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border-radius: 50%;
  z-index: 10;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%) scale(1.1);
}

.hero-prev {
  left: 20px;
}

.hero-next {
  right: 20px;
}

/* アニメーション */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .hero-section {
    height: 70vh; /* スマホ: 上半分 */
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
  }

  .hero-btn {
    padding: 14px 32px;
    font-size: 1rem;
  }

  .hero-arrow {
    font-size: 1.5rem;
    padding: 8px 12px;
  }

  .hero-prev {
    left: 10px;
  }

  .hero-next {
    right: 10px;
  }

  .hero-nav {
    bottom: 20px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-content {
    padding: 0 15px;
  }
}
