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

.hero-v2 {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: visible; /* hidden→visible: Chrome が position:fixed 子をクリップして上端に白線が出る問題を解消 */
  display: flex;
  align-items: center;
}

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

/* 全画面スライドコンテナ — fixed でビューポート背面に固定（パララックス背景） */
.hv2-slides {
  position: fixed;
  inset: 0;
  z-index: -1;
}

/* クロスフェードに切り替え（既存の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;
}

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


/* テキストコンテンツ */
.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: 26px;
  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: 0 0.06em 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;
}

/* 背景: デスクトップは動画・画像を非表示、モバイルは逆 */
.hv2-bg-img { display: none; }

/* モバイル対応 */
@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); }

  /* 背景切り替え: 動画→画像 */
  .hv2-bg-video { display: none; }
  .hv2-bg-img   { display: block; }
}

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

/* 390px: iPhone SE2 / 小型スマホ */
@media (max-width: 390px) {
  .hv2-content       { padding: 0 20px; }
  .hv2-eyebrow-wrap  { margin-bottom: 16px; }
  .hv2-eyebrow       { font-size: 15px; letter-spacing: 2px; }
  .hv2-line-inner    { font-size: 28px; }
  .hv2-headline      { margin-bottom: 20px; }
  .hv2-sub           { font-size: 13px; letter-spacing: 1.5px; margin-bottom: 28px; }
  .hv2-note          { font-size: 11px; }
}

/* Vimeo背景動画（差し替え時に使用） */
.hero-vimeo-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-vimeo-iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;   /* 16:9 */
  min-height: 100vh;
  min-width: 177.78vh; /* 16:9 */
  transform: translate(-50%, -50%);
  border: none;
}

/* ===== Hero heading stroke/fill wave animation ===== */
.hv2-line-inner { position: relative; }

.hv2-mv-stroke,
.hv2-mv-fill {
  display: block;
  white-space: nowrap;
}

.hv2-mv-fill {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hv2-mv-stroke {
  -webkit-text-stroke: 0.025em rgba(255, 255, 255, 0.85);
  color: transparent;
}

.hv2-char-wrap {
  display: inline;
  opacity: 0;
  transition: opacity 0.35s ease;
}
