@charset "utf-8";

/* ===============================
   ヘッダ全体
=============================== */
.hero-header {
    position: relative;
    width: 100%;
    height: 900px;
    overflow: hidden;
}
/* ===============================
   背景画像
=============================== */
.bg-wrapper {
    position: absolute;
    inset: 0;
}

.bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 38%;
}
/* ===============================
   ロゴ3点 背後の半透明オーバーレイ
=============================== */
.logo-group::before {
  content: "";
  position: absolute;
  top: -60px;        /* 上下の余白を広くして余裕を持たせる */
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;        /* 横幅をやや狭く（PC） */
  background: rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  z-index: -1;
  backdrop-filter: blur(5px);
}

.logo-group {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 35px;
  z-index: 4;
  isolation: isolate; /* オーバーレイを安定表示 */
}

/* ===============================
   アニメーション画像
=============================== */
.anim-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.anim {
  position: absolute;
  width: 1050px;
  height: auto;
}

/* 左下（train.png） */
.anim2 {
  width: 900px;   /* train */  
  bottom: -90px;   /* 30px → -20px（少し下げる） */
  left: -40px;     /* 少し右へ */
  animation: floatLeft 6s infinite ease-in-out;
}

/* 右上（bird.png） */
.anim3 {
  width: 1000px;   /* bird */  
  top: -90px;      /* -50px → -90px（少し上へ） */
  right: -10px;    /* 少し内側へ */
  animation: floatRight 6s infinite ease-in-out;
}

@keyframes floatLeft {
  0% { transform: translate(0, 0); }
  50% { transform: translate(15px, -10px); }
  100% { transform: translate(0, 0); }
}

@keyframes floatRight {
  0% { transform: translate(0, 0); }
  50% { transform: translate(-15px, 10px); }
  100% { transform: translate(0, 0); }
}

/* ===============================
   ロゴ3点
=============================== */
.logo-item {
  width: 48%;
  max-width: 670px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* 中央ロゴ（logo-description.png）だけ大きく */
.logo-item.description {
  width: 78%;
  max-width: 760px;
}

/* ===============================
   スマホ対応
=============================== */
@media screen and (max-width: 768px) {

  .hero-header {
    min-height: 720px;
  }

  /* ロゴ位置を少し下げる */
  .logo-group {
    position: absolute;
    top: 37%;              /* 画面のちょうど中央へ */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 55%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  /* ロゴサイズを大きく */
  .logo-item {
    width: 95%;
    max-width: none;
  }
  
  .logo-item.description {
    width: 140%; /* より大きく */
    max-width: none;
    display: block;
    margin: 0 50px; /* 中央寄せ確実に */
    align-items: center;  
  }

  /* アニメーション画像を大きく */
  
/* スマホ版 */
.anim2 {
    position: absolute;
    width: 102%;
    left: 3%;          /* -1% → 3%（少し右へ） */
    bottom: 31%;       /* 40% → 42%（少し上へ） */
    animation: floatLeft 6s infinite ease-in-out;
}

.anim3 {
    position: absolute;
    width: 106%;
    right: -8%;
    top: -20px;         /* -8px → 10px（少し下へ） */
    animation: floatRight 6s infinite ease-in-out;
}
  /* 半透明オーバーレイを拡大・高さを補う */
  .logo-group::before {
    top: -37px;     /* 上の余白を拡大 */
    bottom: -40px;  /* 下の余白を拡大 */
    width: 160%;     /* 幅も広げて囲む */
    background: rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    backdrop-filter: blur(6px);
  }
}
