/* LEGACIA — Hero Section styles */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  background: #05070d;
}

body {
  font-family: "Hiragino Sans", "Yu Gothic", "Helvetica Neue", Arial, sans-serif;
}

.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  display: block;
}

/* 非常に控えめな暗いオーバーレイ。上部(空・文字周辺)のみ僅かに沈め、
   道路・車がある下部〜右側はほぼ影響しない。 */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(4, 10, 20, 0.38) 0%,
    rgba(4, 10, 20, 0.16) 30%,
    rgba(4, 10, 20, 0) 55%
  );
  pointer-events: none;
}

.hero-text {
  position: relative;
  z-index: 2;
  padding: 9vh 8vw 0 8vw;
  max-width: 640px;
  opacity: 0;
  animation: heroFadeIn 1.6s ease-out forwards;
}

.hero-title {
  display: block;
  line-height: 0;
  opacity: 0;
  transform: translateY(8px);
  animation: titleReveal 1.1s ease-out 0.6s forwards;
}

/* Official LEGACIA wordmark, cropped from the black-background Official Logo
   master (LEGACIA_LOGO_HORIZONTAL_BLACK_v004.png) — logotype only, symbol mark
   excluded. Provisional: replace with a standalone Official logotype asset
   when Illustrator-remastered Logo Type / Mark are produced. */
.hero-logotype {
  display: block;
  height: clamp(28px, 4.4vw, 60px);
  width: auto;
}

.hero-copy {
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 300;
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  line-height: 1.9;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(8px);
  animation: copyReveal 1.1s ease-out 1.3s forwards;
}

@keyframes heroFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

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

@media (prefers-reduced-motion: reduce) {
  .hero-text, .hero-title, .hero-copy {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* モバイル: Blurred Fill方式。同じHero画像を(1)背面に拡大+ぼかしでフル表示、
   (2)前面に16:9原本を構図そのまま縦中央配置。画像の内容(道路・車・星・稜線)を
   一切失わず、画面全体を自然に使う。 */
@media (max-width: 768px) {
  .hero {
    min-height: 100vh;
  }

  .hero-media {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .hero-media::before {
    content: "";
    position: absolute;
    inset: -6%;
    background-image: url("../Images/Hero/LEGACIA_Hero_Image_Candidate_v1.0.png");
    background-size: cover;
    background-position: center 45%;
    filter: blur(26px) brightness(0.55) saturate(0.9);
    transform: scale(1.06);
    z-index: 0;
  }

  .hero-media img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    object-fit: initial;
  }

  .hero-text {
    position: absolute;
    top: 0;
    left: 0;
    padding: 5vw 7vw 0 7vw;
  }

  .hero-copy {
    margin-top: 20px;
    line-height: 1.7;
  }
}
