CSS
@charset "utf-8";
/* ===================================================
   index.html 専用スライドショー＆エフェクトCSS（4枚対応版）
   =================================================== */

/* ファーストビューをスライドショーのコンテナとして機能させる */
.hero-section {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 500px;
  overflow: hidden;
  background-color: #2c4a3e;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* スライド背景画像（クロスフェードアニメーション） */
.hero-bg-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: bgSlideAnimation 24s infinite;
  z-index: 1;
}

/* 4枚のスライド画像とタイミング設定 */
.hero-bg-slide:nth-child(1) {
  background-image: url('../images/index/DSC_0097.JPG');
  animation-delay: 0s;
}
.hero-bg-slide:nth-child(2) {
  background-image: url('../images/index/PICT0053.JPG');
  animation-delay: 6s;
}
.hero-bg-slide:nth-child(3) {
  background-image: url('../images/index/DSC_0118.JPG');
  animation-delay: 12s;
}
.hero-bg-slide:nth-child(4) {
  background-image: url('../images/index/20060122.JPG');
  animation-delay: 18s;
}

@keyframes bgSlideAnimation {
  0% { opacity: 0; transform: scale(1); }
  6% { opacity: 1; }
  25% { opacity: 1; transform: scale(1.05); }
  31% { opacity: 0; }
  100% { opacity: 0; }
}

/* オーバーレイとテキストの重なり順調整 */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.35);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #fff;
  width: 90%;
  max-width: 900px;
}

/* スマホ表示時の高さ調整 */
@media screen and (max-width: 768px) {
  .hero-section {
    height: 65vh;
  }
}