@charset "utf-8";

/* ===============================
   ヘッダ全体
=============================== */
.hero-header {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 900px;
  overflow: hidden;
}

/* ===============================
   背景画像
=============================== */
.bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.bg-img {
  width: 100%;
  height: auto;
  min-height: 900px;
  object-fit: cover;
}

/* ===============================
   ロゴ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: 1150px;
  height: auto;
}

/* 左下 */
.anim2 {
  bottom: 30px;
  left: -40px;
  animation: floatLeft 6s infinite ease-in-out;
}

/* 右上 */
.anim3 {
  top: -50px;
  right: -30px;
  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: 43%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 0 auto;
}

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

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

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

  /* ロゴ位置を少し下げる */
  .logo-group {
    position: absolute;
    top: 41.7%;              /* 画面のちょうど中央へ */
    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;  
  }

  /* アニメーション画像を大きく */
  .anim {
    width: 98%;
  }

  .anim2 {
    left: 1%;
    bottom: 0%;
  }

  .anim3 {
    right: -5%;
    top: 0%;
  }

  /* 半透明オーバーレイを拡大・高さを補う */
  .logo-group::before {
    top: -37px;     /* 上の余白を拡大 */
    bottom: -40px;  /* 下の余白を拡大 */
    width: 160%;     /* 幅も広げて囲む */
    background: rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    backdrop-filter: blur(6px);
  }
}
