/* ==========================================================================
   TOPページ FV(グローブアニメーション)
   無地の白の上に、緑のドット地球儀(薄い経緯線つき)と緑の見出し。
   方眼・網点・グレインなどの背景テクスチャは置かない(2026-09-24 先方指示で削除)。
   地球儀側の配色は assets/js/globe.js の CFG を参照。
   (元は src/globe_fv.html のダーク面。2026-09-03 に白ベースへ変更)
   ========================================================================== */

.fv-hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background-color: #fff;
  color: var(--text);
}

.fv-hero__globe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  z-index: 1;
}

.fv-hero__globe.dragging {
  cursor: grabbing;
}

/* ---------- コピー ---------- */
.fv-hero__copy {
  position: relative;
  z-index: 5;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* 左余白は共通の --gut(190px)より詰めて、ロゴ寄りに置く。
     上の余白 80px で、上下中央から 40px 下げる(2026-09-29 先方指示。ヘッダーが紺になり FV の上端を覆うため。
     スマホは下寄せなので効かない) */
  padding: 80px var(--gut-r) 0 min(9vw, 120px);
  pointer-events: none;
  max-width: 790px;
}

.fv-hero__title {
  display: flex;
  flex-direction: column;
  margin-bottom: 30px;
}

.fv-hero__lead-line {
  font-size: clamp(28px, 3.1vw, 45px);
  letter-spacing: 0.1em;
  line-height: 1;
  color: var(--text);
  margin-bottom: 22px;
  display: flex;
  align-items: baseline;
}

/* 大小の字で線の太さをそろえる: 同じウェイトだと 1.5 倍の漢字の線が太く見えるので、
   小さいかなを 2 段重く (700 / 900。実測の線幅は漢字が約 1.15 倍で、小さい字が詰まって見える分と釣り合う) */
.fv-hero__lead-line b {
  font-size: 1.5em;
  font-weight: 700;
}

.fv-hero__lead-line small {
  font-size: 1em;
  font-weight: 900;
  margin: 0 0.12em;
}

/* 「世界の市場へ。」: 中緑の一行見出し
   (ネオン緑 --green は白地の大文字でも 3:1 に届かないため、--green-mid を上限とする) */
.fv-hero__hero-ko {
  display: block;
  /* コピー領域(max-width 860px - 左右余白)より文字列のほうが長いので、箱を文字幅に合わせる。
     箱からはみ出した部分は下のワイプ用マスクで隠れてしまうため */
  width: max-content;
  font-size: min(7vw, 103px);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.15;
  white-space: nowrap;
  color: var(--green-mid);
  /* 左から右へ流れるワイプ表示:
     グラデーションマスク(黒40%→透明55%)を右から左へスライドさせ、
     柔らかい境界が左→右に走って文字全体を現す */
  -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent 55%);
  mask-image: linear-gradient(90deg, #000 40%, transparent 55%);
  -webkit-mask-size: 250% 100%;
  mask-size: 250% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: 100% 0;
  mask-position: 100% 0;
  animation: fv-ko-wipe 1.2s cubic-bezier(0.5, 0.1, 0.3, 1) 0.65s forwards;
}

@keyframes fv-ko-wipe {
  to {
    -webkit-mask-position: 0% 0;
    mask-position: 0% 0;
  }
}

.fv-hero__lead {
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 2;
  letter-spacing: 0.08em;
  color: var(--text);
  max-width: 30em;
  text-wrap: pretty; /* 最終行に 1〜2 文字だけ残るのを避ける */
}

/* ---------- スクロールインジケーター ---------- */
/* 中央寄せは left/right: 0 で行う(transform の translateX(-50%) は .reveal のアニメーションの transform に上書きされ、
   幅の半分だけ右にずれていた。2026-09-28) */
.fv-hero__cue {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}

.fv-hero__cue-txt {
  font-family: var(--font-en);
  font-size: 10.5px;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.fv-hero__cue-line {
  width: 1px;
  height: 56px;
  overflow: hidden;
  position: relative;
  background: var(--hair-light);
}

.fv-hero__cue-line::after {
  content: "";
  position: absolute;
  left: 0;
  top: -100%;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--green-mid));
  animation: fv-scrollcue 2.2s cubic-bezier(0.6, 0.1, 0.3, 0.9) infinite;
}

@keyframes fv-scrollcue {
  0% { top: -100%; }
  55%, 100% { top: 100%; }
}

/* ---------- 出現アニメーション ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: fv-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.reveal.d1 { animation-delay: 0.15s; }
.reveal.d2 { animation-delay: 0.35s; }
.reveal.d3 { animation-delay: 0.55s; }
.reveal.d4 { animation-delay: 0.75s; }

@keyframes fv-rise {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- レスポンシブ / モーション配慮 ---------- */
@media (max-width: 760px) {
  .fv-hero__copy {
    justify-content: flex-end;
    /* 2026-09-29: 18vh → 24vh (コピーを少し上に) */
    padding-bottom: 24vh;
    max-width: none;
  }

  /* 「世界の市場へ。」(7 文字)が 390px 幅でも右端で切れない大きさ */
  .fv-hero__hero-ko {
    font-size: 11.5vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fv-hero__cue-line::after {
    animation: none;
    top: 0;
  }

  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .fv-hero__hero-ko {
    animation: none;
    -webkit-mask-image: none;
    mask-image: none;
  }
}
