/* ===== HERO V2 : full-screen redesign ===== */

.hero-v2 {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* 背景パターンは非表示 */
.hero-v2 .hero-bg-layer { display: none; }

/* 全画面スライドコンテナ */
.hv2-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* クロスフェードに切り替え（既存のtransformスライドを上書き） */
.hero-v2 .hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: none !important;
  transition: opacity 1.4s ease !important;
  z-index: 1;
}
.hero-v2 .hero-slide.is-active {
  opacity: 1;
  z-index: 2;
  transform: none !important;
}
.hero-v2 .hero-slide.is-prev {
  opacity: 0;
  z-index: 1;
  transform: none !important;
  transition: opacity 0.9s ease !important;
}

/* 画像を全画面に + 常時ループでケンバーンズ */
.hero-v2 .hero-person-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  max-width: none;
  animation: hv2-zoom-loop 12s ease-in-out infinite;
}

/* スライドごとにタイミングをずらして切り替え時のジャンプを防ぐ */
.hero-v2 .hero-slide:nth-child(1) .hero-person-img { animation-delay:    0s; }
.hero-v2 .hero-slide:nth-child(2) .hero-person-img { animation-delay: -2.4s; }
.hero-v2 .hero-slide:nth-child(3) .hero-person-img { animation-delay: -4.8s; }
.hero-v2 .hero-slide:nth-child(4) .hero-person-img { animation-delay: -7.2s; }
.hero-v2 .hero-slide:nth-child(5) .hero-person-img { animation-delay: -9.6s; }

@keyframes hv2-zoom-loop {
  0%   { transform: scale(1.0);  }
  50%  { transform: scale(1.08); }
  100% { transform: scale(1.0);  }
}

/* 紺色オーバーレイ */
.hv2-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: rgba(5, 15, 60, 0.52);
}

/* 左端のアクセントバー（スライド切り替えに合わせて繰り返し描画） */
.hv2-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  z-index: 5;
}
.hv2-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #da2532;
  transform-origin: top center;
  transform: scaleY(0);
  animation: hv2-bar-draw 4s cubic-bezier(0.77, 0, 0.18, 1) infinite;
}
@keyframes hv2-bar-draw {
  0%    { transform: scaleY(0); opacity: 1; }
  28%   { transform: scaleY(1); opacity: 1; }
  88%   { transform: scaleY(1); opacity: 1; }
  88.1% { transform: scaleY(0); opacity: 0; }
  99.9% { transform: scaleY(0); opacity: 0; }
  100%  { transform: scaleY(0); opacity: 1; }
}

/* テキストコンテンツ */
.hv2-content {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 80px 0 88px;
}

/* 小見出し */
.hv2-eyebrow-wrap {
  display: block;
  overflow: hidden;
  margin-bottom: 28px;
}
.hv2-eyebrow {
  display: block;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 1);
  text-transform: uppercase;
  transform: translateY(110%);
  animation: hv2-clip-up 0.95s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.4s;
}

/* メインキャッチコピー */
.hv2-headline {
  margin: 0 0 40px;
  padding: 0;
}

/* クリップリビール用ラッパー */
.hv2-line {
  display: block;
  overflow: hidden;
  padding-bottom: 6px;
}

/* テキスト本体（下から上へスライドイン） */
.hv2-line-inner {
  display: block;
  font-size: clamp(42px, 5.6vw, 74px);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.04em;
  line-height: 1.2;
  transform: translateY(110%);
  animation: hv2-clip-up 0.95s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hv2-line:nth-child(1) .hv2-line-inner { animation-delay: 0.55s; }
.hv2-line:nth-child(2) .hv2-line-inner { animation-delay: 0.72s; }
.hv2-line:nth-child(3) .hv2-line-inner { animation-delay: 0.89s; }

@keyframes hv2-clip-up {
  from { transform: translateY(110%); }
  to   { transform: translateY(0); }
}

/* サブテキスト */
.hv2-sub {
  font-size: 22px;
  font-weight: 700;
  color: rgba(255, 255, 255, 1);
  letter-spacing: 3px;
  margin: 0 0 44px;
  opacity: 0;
  animation: hv2-fade-up 0.7s ease forwards;
  animation-delay: 1.05s;
}

/* CTAボタン */
.hv2-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: #da2532;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 18px 44px;
  text-decoration: none;
  transition: background 0.25s ease;
  opacity: 0;
  animation: hv2-fade-up 0.7s ease forwards;
  animation-delay: 1.2s;
}
.hv2-cta:hover {
  background: #b5111c;
}
.hv2-cta:hover svg {
  animation: hv2-arrow-loop 0.9s ease-in-out infinite;
}
@keyframes hv2-arrow-loop {
  0%   { transform: translateX(0);    opacity: 1; }
  55%  { transform: translateX(10px); opacity: 0; }
  56%  { transform: translateX(-6px); opacity: 0; }
  100% { transform: translateX(0);    opacity: 1; }
}

/* 注記テキスト */
.hv2-note {
  font-size: 18px;
  font-weight: 700;
  color: rgba(255, 255, 255, 1);
  letter-spacing: 2px;
  margin: 14px 0 0;
  opacity: 0;
  animation: hv2-fade-up 0.7s ease forwards;
  animation-delay: 1.3s;
}

/* スクロールインジケーター */
.hv2-scroll {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: hv2-fade-up 0.6s ease forwards;
  animation-delay: 1.7s;
}
.hv2-scroll-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.4);
}
.hv2-scroll-line {
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}
.hv2-scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.65);
  animation: hv2-scroll-drop 1.6s ease-in-out infinite;
  animation-delay: 2s;
}
@keyframes hv2-scroll-drop {
  0%   { top: -100%; }
  100% { top: 100%; }
}

@keyframes hv2-fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 手書き文字 */
.hv2-tegaki {
  position: absolute;
  bottom: 80px;
  right: 60px;
  width: clamp(280px, 30vw, 460px);
  height: auto;
  z-index: 4;
  opacity: 0;
  animation: hv2-fade-up 0.8s ease forwards;
  animation-delay: 1.4s;
}

/* モバイル対応 */
@media (max-width: 768px) {
  .hv2-content { padding: 0 28px; }
  .hv2-bar { display: none; }
  .hv2-cta { width: 100%; max-width: 360px; justify-content: center; }
  .hv2-tegaki { display: none; }
  .hv2-scroll { left: 28px; transform: translateX(0); }
}

@media (max-width: 450px) {
  .hv2-scroll { display: none; }
}
