/* ========================================
   HERO 全体
======================================== */

.hero.hero-split {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 60px);
  margin-top: 60px;
  padding: 45px 3%;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-image: url("../img/back.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* 背景オーバーレイ */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ========================================
   パーティクル・オーバーレイ（全面）
======================================== */
.particles,
.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

/* ========================================
   パーティクル（流れる光の球）
======================================== */

.hero-split {
  position: relative;
  overflow: hidden;
}

.hero-split > .particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

/* 流れる球 */
.particle {
  position: absolute;
  bottom: -15px;
  display: block;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 5px rgba(255, 255, 255, 0.9),
    0 0 12px rgba(255, 220, 180, 0.8),
    0 0 20px rgba(255, 255, 255, 0.5);
  animation: particleFloat linear infinite;
  pointer-events: none;
}

/* 上に向かって流れる */
@keyframes particleFloat {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  50% {
    transform: translateY(-50vh) translateX(25px);
    opacity: 0.7;
  }
  90% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(-110vh) translateX(-20px);
    opacity: 0;
  }
}

/* メインコンテンツ */
.hero-split-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1700px;
  margin: 0 auto;

  display: grid;
  /* ✅ 左右の割合を逆に：テキスト(0.8fr) ｜ ポスター(1.2fr) */
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(30px, 4vw, 70px);
}


/* ========================================
   左：テキスト（HTML上の順序は変えずに表示順を制御）
======================================== */

.hero-split-left {
  width: 100%;
  min-width: 0;
}

.poster-area {
  width: 100%;
}

.poster-wrap {
  position: relative;
  width: 100%;
  background: #000000;
  overflow: hidden;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
}

/* ポスター共通 */
.poster-slide {
  display: none;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

.poster-slide.active {
  display: block;
}

.hero-poster,
.hero-poster_5 {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 光沢 */
.poster-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* コピーライト */
.copyright {
  position: absolute;
  bottom: 8px;
  right: 10px;
  z-index: 2;
  font-size: clamp(7px, 0.65vw, 10px);
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

/* ページネーション */
.poster-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.poster-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #eee;
  cursor: pointer;
  transition: 0.3s;
}

.poster-dots button.active {
  background: var(--red);
  transform: scale(1.3);
}


/* ========================================
   右：テキスト
======================================== */

.hero-split-right {
  width: 100%;
  min-width: 0;
  padding: 15px 0;
  color: #fff;
}

/* 日程 */
.hero-date {
  display: inline-block;
  margin-bottom: 25px;
  padding: 9px 0;
  color: #FFFFFF;
  font-size: clamp(0.75rem, 1vw, 0.9rem);
  font-weight: 700;
}

/* タイトル画像 */
.hero-title {
  width: 100%;
  max-width: 620px;
  margin: 0 auto 28px;
}

.hero-title img {
  display: block;
  width: 100%;
  height: auto;
}

/* 紹介文 */
.hero-sub {
  font-size: clamp(0.85rem, 1vw, 1rem);
  line-height: 2.2;
  color: #fff;
}


/* ========================================
   タブレット（〜1100px）
   ✅ 縦並び：テキスト上、ポスター下
      → grid-template-areas で順序を制御
======================================== */

@media (max-width: 1100px) {

  .hero.hero-split {
    padding: 35px 3%;
  }

  .hero-split-inner {
    grid-template-columns: 1fr;
    /* ✅ HTMLの並び順に関わらず表示順を指定 */
    grid-template-areas:
      "right"
      "left";
    gap: 30px;
  }

  /* ✅ テキストエリアを上に */
  .hero-split-right {
    grid-area: right;
  }

  /* ✅ ポスターエリアを下に */
  .hero-split-left {
    grid-area: left;
  }

  .hero-title {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
  }

  .hero-sub {
    font-size: 1rem;
    line-height: 2;
    text-align: center;
  }

}

/* ========================================
   スマートフォン（〜768px）
   ✅ 縦並び：テキスト上、ポスター下
======================================== */

@media (max-width: 768px) {

  .hero.hero-split {
    min-height: auto;
    margin-top: 55px;
    padding: 30px 18px 55px;
  }

  .hero-split-inner {
    display: flex;
    flex-direction: column;
    gap: 35px;
  }

  /* ✅ テキストを先に（上に）表示 */
  .hero-split-right {
    order: 1;
  }

  /* ✅ ポスターを後に（下に）表示 */
  .hero-split-left {
    order: 2;
    width: 100%;
  }

  .hero-poster,
  .hero-poster_5 {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .poster-slide {
    aspect-ratio: 16 / 9;
  }

  .poster-dots {
    margin-top: 15px;
  }

  .hero-split-right {
    width: 100%;
    padding: 0 3px;
  }

  .hero-date {
    margin-bottom: 18px;
    font-size: 0.75rem;
  }

  .hero-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    line-height: 1.6;
    margin-bottom: 22px;
  }

  .hero-sub {
    font-size: 0.88rem;
    line-height: 2;
  }

  .hero-sub br {
    display: none;
  }

}

/* ========================================
   小型スマートフォン（〜380px）
======================================== */

@media (max-width: 380px) {

  .hero.hero-split {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero-title {
    font-size: 1.4rem;
  }

  .hero-sub {
    font-size: 0.82rem;
  }

}