/* ====================================================
   Hero v2 — テラフルロゴ × 背景画像スライドショー
   ==================================================== */

/* ====== カスタムプロパティ ====== */
:root {
  --hero-overlay: rgba(10, 22, 28, 0.62);
  --hero-overlay-top: rgba(0, 0, 0, 0.15);
  --hero-overlay-bottom: rgba(0, 25, 30, 0.82);
  --hero-text: #ffffff;
  --hero-accent: #00AEBB;
  --hero-accent-dark: #00808a;
  --hero-ink: #1a2326;
  --hero-ease: cubic-bezier(0.4, 0, 0.2, 1);
}


/* ====================================================
   Intro：通信起動シーケンス（JS駆動・約20秒）
   各stepはENをtypewriter→JPに切替→結果を1行ずつ追加→次のstepへ
   ==================================================== */
.hero-intro {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background:
    radial-gradient(circle at 50% 42%, #0e2a32 0%, #07181c 60%, #03090c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
  /* JSが最後に .is-done を付与して終了させる */
}
.hero-intro.is-done {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100vh);
  transition: opacity 0.3s ease, transform 0s linear 0.3s;
}

.hero-intro__inner {
  position: relative;
  width: min(720px, 92vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 0 24px;
  z-index: 1;
}

/* ---------- ロゴ ---------- */
.hero-intro__mark {
  width: clamp(120px, 14vw, 180px);
  height: auto;
  opacity: 0;
  transform: translateY(12px) scale(0.92);
  animation: heroIntroIn 0.9s var(--hero-ease) 0.15s forwards;
  filter:
    drop-shadow(0 0 24px rgba(0, 174, 187, 0.55))
    drop-shadow(0 0 8px rgba(110, 229, 236, 0.4));
}
@keyframes heroIntroIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- システム等幅フォントの共通変数 ---------- */
.hero-intro {
  --intro-mono: 'Share Tech Mono', 'JetBrains Mono', 'SF Mono', Menlo, Consolas, 'Noto Sans JP', monospace;
}

/* ---------- タイトル（最初に中央大きく出る） ---------- */
.hero-intro__title {
  font-family: var(--intro-mono);
  font-weight: 400;
  font-size: clamp(26px, 4.0vw, 42px);
  letter-spacing: 0.14em;
  color: #ffffff;
  text-align: center;
  min-height: 1.5em;
  opacity: 0;
  transition:
    font-size 0.5s var(--hero-ease),
    color 0.5s var(--hero-ease),
    letter-spacing 0.5s var(--hero-ease),
    opacity 0.4s var(--hero-ease);
  text-shadow: 0 0 24px rgba(0, 174, 187, 0.55);
}
.hero-intro__title.is-active { opacity: 1; }
.hero-intro__title.is-compact {
  font-size: clamp(13px, 1.4vw, 16px);
  letter-spacing: 0.08em;
  color: #6ee5ec;
  font-weight: 400;
  text-shadow: 0 0 10px rgba(0, 174, 187, 0.4);
}

/* ---------- ターミナルログ風（積み上がる行リスト） ---------- */
.hero-intro__log {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  font-family: var(--intro-mono);
}
.hero-intro__logline {
  display: flex;
  align-items: center;
  gap: 0.55em;
  flex-wrap: nowrap;
  white-space: nowrap;
  width: 100%;
  box-sizing: border-box;
  font-size: clamp(14px, 1.7vw, 18px);
  letter-spacing: 0.06em;
  color: #e8fcff;
  font-weight: 400;
  opacity: 0;
  transform: translateY(4px);
  animation: heroLogIn .35s var(--hero-ease) forwards;
  text-shadow: 0 0 14px rgba(0, 174, 187, 0.45);
}
@keyframes heroLogIn {
  to { opacity: 1; transform: translateY(0); }
}
.hero-intro__caret {
  color: var(--hero-accent);
  font-family: var(--intro-mono);
  font-weight: 400;
  font-size: 0.95em;
  flex-shrink: 0;
}
.hero-intro__type {
  white-space: nowrap;
  flex-shrink: 0;
}
.hero-intro__tail {
  margin-left: 0.6em;
  font-family: var(--intro-mono);
  font-size: 0.92em;
  letter-spacing: 0.04em;
  color: #6ee5ec;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity .3s var(--hero-ease), transform .3s var(--hero-ease);
  flex-shrink: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 0.2em;
  white-space: nowrap;
}
.hero-intro__tail.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ローディング：[██████░░░░] 50% 形式 */
.hero-intro__loadwrap {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-left: 0.6em;
  font-family: var(--intro-mono);
  font-size: 0.82em;
  letter-spacing: 0.02em;
  color: #6ee5ec;
  flex-shrink: 0;
}
.hero-intro__loadbar {
  color: var(--hero-accent);
  text-shadow: 0 0 8px rgba(0, 174, 187, 0.6);
}
.hero-intro__loadbar-blocks {
  white-space: nowrap;
}
.hero-intro__loadpct {
  min-width: 3.2em;
  text-align: right;
  font-weight: 500;
}

/* カウントアップ：数字を大きく */
.hero-intro__cu-label {
  font-family: var(--intro-mono);
  font-size: 0.78em;
  color: #b6efff;
  opacity: 0.85;
}
.hero-intro__cu-num {
  font-family: var(--intro-mono);
  font-weight: 700;
  font-size: 1.25em;
  color: #ffffff;
  letter-spacing: 0.02em;
  text-shadow: 0 0 16px rgba(0, 174, 187, 0.7);
  display: inline-block;
  min-width: 1.5em;
  text-align: right;
}
.hero-intro__cu-suffix {
  font-family: var(--intro-mono);
  font-size: 0.78em;
  color: #b6efff;
  margin-left: 0.18em;
  opacity: 0.85;
}
.hero-intro__cu-sep {
  color: rgba(110, 229, 236, 0.5);
  margin: 0 0.35em;
}

/* エラー演出 */
.hero-intro__tail.is-error {
  color: #ff8a8a;
  animation: heroErrorShake 0.35s var(--hero-ease);
}
.hero-intro__err-tag {
  font-family: var(--intro-mono);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ff6b6b;
  background: rgba(255, 80, 80, 0.18);
  border: 1px solid rgba(255, 80, 80, 0.45);
  padding: 1px 6px;
  border-radius: 3px;
  margin-right: 0.5em;
  text-shadow: 0 0 10px rgba(255, 100, 100, 0.7);
}
.hero-intro__err-msg {
  color: #ff8a8a;
  font-family: var(--intro-mono);
  text-shadow: 0 0 10px rgba(255, 100, 100, 0.5);
}
.hero-intro__loadbar.is-error {
  color: #ff8a8a;
  text-shadow: 0 0 8px rgba(255, 100, 100, 0.6);
  animation: heroErrorBlink 0.18s steps(2) 3;
}
@keyframes heroErrorShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}
@keyframes heroErrorBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.35; }
}

/* tailItems のチップ */
.hero-intro__chip {
  display: inline-block;
  font-family: var(--intro-mono);
  font-size: 0.78em;
  letter-spacing: 0.05em;
  color: #e8fcff;
  background: rgba(0, 174, 187, 0.18);
  border: 1px solid rgba(0, 174, 187, 0.5);
  padding: 2px 8px;
  margin: 0 4px;
  border-radius: 3px;
  animation: heroChipIn 0.3s var(--hero-ease);
}
@keyframes heroChipIn {
  from { opacity: 0; transform: translateY(4px) scale(0.92); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* [OK] タグ */
.hero-intro__ok {
  margin-left: auto;     /* 右端に押しやる */
  padding-left: 0.8em;
  font-family: var(--intro-mono);
  font-size: 0.78em;
  letter-spacing: 0.08em;
  color: #00AEBB;
  font-weight: 400;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity .25s var(--hero-ease), transform .25s var(--hero-ease);
  flex-shrink: 0;
}
.hero-intro__ok.is-in {
  opacity: 1;
  transform: scale(1);
}
/* ピコピコ点滅（最終行） */
.hero-intro__ok.is-blink {
  animation: heroOkBlink 0.42s steps(2) 5;
}
@keyframes heroOkBlink {
  0%, 49%   { opacity: 1; text-shadow: 0 0 14px rgba(0,174,187,0.9); }
  50%, 100% { opacity: 0.25; text-shadow: none; }
}

/* 最後の行を強調 */
.hero-intro__logline.is-big {
  font-size: clamp(16px, 2.0vw, 22px);
  font-family: var(--intro-mono);
  font-weight: 400;
  letter-spacing: 0.10em;
  margin-top: 14px;
  color: #ffffff;
  text-shadow: 0 0 18px rgba(0, 174, 187, 0.6);
}

/* WELCOME 直前のクリアリング：ロゴ・タイトル・ログをフェードアウト */
.hero-intro.is-clearing .hero-intro__mark,
.hero-intro.is-clearing .hero-intro__title,
.hero-intro.is-clearing .hero-intro__log {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .55s var(--hero-ease), transform .55s var(--hero-ease);
}

/* ---------- WELCOME：文字だけ中央に大きく ---------- */
.hero-intro__welcome {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s var(--hero-ease);
}
.hero-intro__welcome.is-active { opacity: 1; }
.hero-intro__welcome-txt {
  display: block;
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(48px, 7vw, 92px);
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #ffffff;
  white-space: nowrap;
  padding-left: 0.22em;
  text-shadow: 0 0 32px rgba(0,174,187,.65);
}

/* ====================================================
   切り替えトランジション：画面が白に染まる→幕割れ
   .is-flashing と .is-opening を JSが付与
   ==================================================== */
.hero-intro__flash {
  position: absolute;
  inset: 0;
  background: #ffffff;
  opacity: 0;
  z-index: 5;
  pointer-events: none;
  transition: opacity 0.6s ease-out;
}
.hero-intro.is-flashing .hero-intro__flash { opacity: 1; }

.hero-intro__curtain {
  position: absolute;
  left: 0; right: 0;
  height: 50%;
  background: #ffffff;
  z-index: 6;
  pointer-events: none;
  transition: transform 0.5s cubic-bezier(0.7,0,0.3,1);
}
/* 初期状態は画面外に退避（is-opening でアニメ後の最終位置と同じ）。
   .is-flashing で画面に被さり、.is-opening で再度退避する。 */
.hero-intro__curtain--top    { top: 0;    transform: translateY(-100%); }
.hero-intro__curtain--bottom { bottom: 0; transform: translateY(100%); }
.hero-intro.is-flashing .hero-intro__curtain--top    { transform: translateY(0); }
.hero-intro.is-flashing .hero-intro__curtain--bottom { transform: translateY(0); }
.hero-intro.is-opening .hero-intro__curtain--top     { transform: translateY(-100%); }
.hero-intro.is-opening .hero-intro__curtain--bottom  { transform: translateY(100%); }

/* ====== イントロ：スマホ対応 ====== */
@media (max-width: 720px) {
  .hero-intro__inner {
    width: 94vw;
    padding: 0 16px;
    gap: 20px;
  }
  .hero-intro__mark {
    width: clamp(88px, 22vw, 120px);
  }
  .hero-intro__title {
    font-size: clamp(20px, 5.5vw, 28px);
    letter-spacing: 0.1em;
    line-height: 1.4;
  }
  .hero-intro__title.is-compact {
    font-size: 12px;
    letter-spacing: 0.06em;
  }

  .hero-intro__log {
    max-width: 100%;
    gap: 8px;
  }
  .hero-intro__logline {
    flex-wrap: wrap;        /* スマホでは折り返し許可 */
    white-space: normal;
    font-size: 13px;
    letter-spacing: 0.04em;
    row-gap: 4px;
  }
  .hero-intro__type {
    white-space: normal;
  }
  .hero-intro__tail {
    width: 100%;            /* tail は別行に */
    margin-left: 1.2em;     /* › の幅ぶん下げる */
    font-size: 0.85em;
    white-space: normal;
    flex-wrap: wrap;
    row-gap: 4px;
  }
  .hero-intro__loadwrap {
    margin-left: auto;
    font-size: 0.78em;
    gap: 0.35em;
  }
  .hero-intro__loadbar-blocks {
    /* 10ブロックは長いので狭い画面では短縮表示にしない（CSSでは固定）。
       代わりに letter-spacing を詰める */
    letter-spacing: -0.05em;
  }
  .hero-intro__ok {
    margin-left: auto;
    font-size: 0.78em;
  }
  .hero-intro__cu-num {
    font-size: 1.15em;
  }
  .hero-intro__chip {
    font-size: 0.78em;
    padding: 1px 6px;
    margin: 0 2px;
  }
  .hero-intro__logline.is-big {
    font-size: 15px;
    letter-spacing: 0.06em;
    margin-top: 8px;
  }
  .hero-intro__welcome-txt {
    font-size: clamp(40px, 11vw, 64px);
    letter-spacing: 0.16em;
  }
  /* エラータグ */
  .hero-intro__err-tag {
    font-size: 0.78em;
    padding: 1px 4px;
  }
  .hero-intro__err-msg {
    font-size: 0.85em;
  }
}

/* もっと狭い画面（〜400px）でさらに調整 */
@media (max-width: 400px) {
  .hero-intro__logline {
    font-size: 12px;
  }
  .hero-intro__loadbar-blocks {
    /* 10ブロック→6ブロック相当の幅にしたい場合は letter-spacing でさらに詰める */
    letter-spacing: -0.1em;
    font-size: 0.92em;
  }
  .hero-intro__cu-num {
    font-size: 1.1em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-intro__mark,
  .hero-intro__bar { animation-duration: 0.3s; animation-delay: 0s; }
  .hero-intro__bar-fill { animation: heroIntroFill 1s linear 0s forwards; }
  .hero-intro__cursor { animation: none; }
}

/* ====== Hero 本体 ====== */
.hero.hero--v2 {
  position: relative;
  height: calc(100vh - 70px);
  min-height: 640px;
  overflow: hidden;
  padding: 0;
  background: #0a1518;
  color: var(--hero-text);
  isolation: isolate;
  display: flex;
  align-items: stretch;
  border-bottom: none;
}

/* ====== スライドコピー切替 ====== */
/* hero-copy はCTA/dotsを下に流す。 slide-copy は上半分に absolute で重ねる */
.hero-copy { position: relative; padding-top: clamp(280px, 36vh, 380px); }
.hero-slide-copy { top: 80px; }

.hero-slide-copy {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  max-width: 820px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 1.0s ease, transform 1.0s ease;
  pointer-events: none;
}
.hero-slide-copy.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.hero-slide-copy .hero-h1 { margin: 0 0 28px; }
.hero-slide-copy .hero-lead { margin: 0; }
/* スライドコピー内では body.hero-ready 由来の遅延フェードを無効化
   （切り替えるたびに再発火して文字が遅れて出る、を防ぐ） */
.hero-slide-copy .hero-h1__inner {
  transform: none !important;
  opacity: 1 !important;
  transition: none !important;
}
.hero-slide-copy .hero-lead__line {
  clip-path: none !important;
  transition: none !important;
}

/* インジケータ */
.hero-slide-dots {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  align-items: center;
}
.hero-slide-dot {
  width: 32px;
  height: 3px;
  border-radius: 2px;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, width 0.3s;
}
.hero-slide-dot.is-active {
  background: var(--hero-accent);
  width: 48px;
}
.hero-slide-dot:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.55);
}
.hero.hero--v2 .container {
  display: none;
}

/* ====== 背景画像スライド ====== */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.0s ease;
}
.hero-bg__slide.is-active {
  opacity: 1;
}
.hero-bg__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.08);
  animation: heroBgZoom 16s ease-in-out infinite alternate;
  filter: saturate(0.85) brightness(0.92);
}
@keyframes heroBgZoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1.22); }
}
.hero-bg__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--hero-overlay-top) 0%, transparent 30%, var(--hero-overlay-bottom) 100%),
    var(--hero-overlay);
  pointer-events: none;
}
.hero-bg__grain {
  display: none;
}

/* ====== 左上：大きなテラフルロゴ ====== */
.hero-brand {
  position: absolute;
  top: clamp(20px, 2.5vw, 36px);
  left: clamp(32px, 6vw, 72px);
  z-index: 3;
  opacity: 0;
  transform: translateY(-12px);
  animation: heroBrandIn 1.2s var(--hero-ease) 2.1s forwards;
}
.hero-brand__logo {
  width: clamp(120px, 13vw, 180px);
  height: auto;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.25));
}
@keyframes heroBrandIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ====== 中央〜下：キャッチコピー ====== */
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(32px, 6vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(120px, 16vh, 180px);
  padding-top: clamp(60px, 8vh, 100px);
}
.hero.hero--v2 .hero-copy {
  max-width: 820px;
  opacity: 1;
  transform: none;
  transition: none;
}

/* h1 — メインコピー：階層トップ。負トラッキングで間延びを抑える */
.hero-h1 {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: clamp(34px, 5.2vw, 64px);
  line-height: 1.28;
  letter-spacing: -0.03em;
  color: var(--hero-text);
  margin: 0 0 28px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
  text-wrap: balance;
}
.hero-h1__line {
  display: block;
  overflow: hidden;
}
.hero-h1__inner {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 1.0s var(--hero-ease), opacity 1.0s var(--hero-ease);
}
.hero-h1__line:nth-child(1) .hero-h1__inner { transition-delay: 2.5s; }
.hero-h1__line:nth-child(2) .hero-h1__inner { transition-delay: 2.75s; }
.hero-h1__line:nth-child(3) .hero-h1__inner { transition-delay: 3.0s; }
.hero-h1__line--accent .hero-h1__inner {
  color: var(--hero-accent);
}
body.hero-ready .hero-h1__inner {
  transform: translateY(0);
  opacity: 1;
}

/* lead — サブコピー：h1の45%程度に落として階層を作る。明朝・中字 */
.hero-lead {
  font-family: 'Noto Serif JP', serif;
  font-weight: 500;
  font-size: clamp(15px, 1.55vw, 22px);
  line-height: 1.85;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 36px;
  max-width: 640px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
  text-wrap: pretty;
}
.hero-lead__line {
  display: block;
  overflow: hidden;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.4s var(--hero-ease);
}
.hero-lead__line:nth-child(1) { transition-delay: 3.4s; }
.hero-lead__line:nth-child(2) { transition-delay: 3.6s; }
.hero-lead__line:nth-child(3) { transition-delay: 3.8s; }
body.hero-ready .hero-lead__line {
  clip-path: inset(0 0% 0 0);
}

/* CTA */
.hero-cta-row {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s var(--hero-ease) 4.1s, transform 0.8s var(--hero-ease) 4.1s;
}
body.hero-ready .hero-cta-row {
  opacity: 1;
  transform: translateY(0);
}
.hero-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 32px;
  background: var(--hero-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 8px 24px rgba(0, 174, 187, 0.32);
}
.hero-cta-primary:hover {
  background: var(--hero-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 174, 187, 0.45);
}
.hero-cta-arrow {
  font-family: serif;
  font-size: 18px;
  line-height: 1;
  transform: translateX(0);
  transition: transform 0.25s ease;
}
.hero-cta-primary:hover .hero-cta-arrow {
  transform: translateX(4px);
}
.hero-cta-secondary {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  transition: color 0.25s, border-color 0.25s;
}
.hero-cta-secondary:hover {
  color: #fff;
  border-color: var(--hero-accent);
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ====== FV下部：スクロール誘導（細い縦線＋英字＋次セクション名） ====== */
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: clamp(28px, 4.5vh, 56px);
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.78);
  opacity: 0;
  transition: opacity 1.0s var(--hero-ease) 4.4s, color 0.3s ease;
}
body.hero-ready .hero-scroll { opacity: 1; }
.hero-scroll:hover { color: var(--hero-accent); }
.hero-scroll__label {
  font-family: 'JetBrains Mono', 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.32em;
  font-weight: 500;
  text-indent: 0.32em;
}
.hero-scroll__line {
  display: block;
  width: 1px;
  height: 56px;
  background: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.05) 100%);
  position: relative;
  overflow: hidden;
}
.hero-scroll__line::after {
  content: '';
  position: absolute;
  left: 0;
  top: -40%;
  width: 100%;
  height: 40%;
  background: linear-gradient(180deg, transparent 0%, var(--hero-accent) 100%);
  animation: heroScrollLine 2.4s var(--hero-ease) infinite;
}
@keyframes heroScrollLine {
  0%   { transform: translateY(0); opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: translateY(360%); opacity: 0; }
}
.hero-scroll__next {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  font-weight: 500;
  white-space: nowrap;
}

/* ====== Responsive ====== */
@media (max-width: 720px) {
  .hero-brand {
    top: 24px;
    left: 24px;
  }
  .hero-brand__logo {
    width: 140px;
  }
  .hero-inner {
    padding: 110px 24px 140px;
  }
  .hero-copy {
    padding-top: clamp(180px, 28vh, 240px);
  }
  .hero-h1 {
    font-size: clamp(28px, 8.4vw, 42px);
    line-height: 1.32;
    letter-spacing: -0.025em;
    margin-bottom: 20px;
  }
  .hero-lead {
    font-size: 13px;
    line-height: 1.85;
    letter-spacing: 0.03em;
    margin-bottom: 28px;
  }
  .hero-scroll {
    bottom: 24px;
    gap: 10px;
  }
  .hero-scroll__line {
    height: 40px;
  }
  .hero-scroll__label {
    font-size: 9px;
    letter-spacing: 0.28em;
  }
  .hero-scroll__next {
    font-size: 11px;
    letter-spacing: 0.1em;
  }
}

/* ====================================================
   TOP — 強み3カード
   ==================================================== */
.top-strength {
  padding: clamp(72px, 9vw, 110px) 0;
  background:
    linear-gradient(180deg, #ffffff 0%, #f5fcfc 100%);
}
.top-strength__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 44px;
}
.top-strength__card {
  background: #fff;
  border: 1px solid rgba(0, 174, 187, 0.18);
  border-radius: 8px;
  padding: clamp(28px, 3.5vw, 40px) clamp(24px, 3vw, 32px) clamp(32px, 4vw, 44px);
  position: relative;
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.top-strength__card:hover {
  border-color: var(--hero-accent);
  box-shadow: 0 12px 36px rgba(0, 174, 187, 0.10);
  transform: translateY(-3px);
}
.top-strength__num {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: 42px;
  color: var(--hero-accent-dark);
  line-height: 1;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}
.top-strength__title {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: 19px;
  line-height: 1.5;
  color: var(--hero-ink);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.top-strength__desc {
  font-size: 13.5px;
  line-height: 2.0;
  color: rgba(26, 35, 38, 0.7);
}
@media (max-width: 720px) {
  .top-strength__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ====== reduced motion 対応 ====== */
@media (prefers-reduced-motion: reduce) {
  .hero-intro,
  .hero-intro__mark,
  .hero-intro__label,
  .hero-brand,
  .hero-h1__inner,
  .hero-lead__line,
  .hero-cta-row,
  .hero-scroll,
  .hero-bg__slide img {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    visibility: visible !important;
  }
  .hero-intro {
    display: none;
  }
}