/* ========================================
   HERO / TOP Section
   ======================================== */

.hero {
  position: relative;
  background-color: var(--clr-bg, #FFFFF6);
  overflow: hidden;
}

.hero__inner {
  max-width: var(--max-w, 1920px);
  margin-inline: auto;
  position: relative;
}

.hero__card {
  position: relative;
  width: 100%;
}

/* ── 背景画像エリア (PC) ── */
.hero__image {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 520px;
  background-image: url('../images/hero-bg.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  z-index: 0;
}

/* ── 上部白グラデーション ── */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 40px);
  pointer-events: none;
  z-index: 1;
}

/* ── 白タイトルカード (PC) ── */
.hero__badges {
  position: absolute;
  right: 5%;
  bottom: 8%;
  width: 42%;
  max-width: 600px;
  min-width: 320px;
  background-color: #ffffff;
  padding: 40px;
  border-radius: var(--radius-md, 20px);
  box-shadow: var(--shadow-md, 0 4px 20px rgba(0, 0, 0, 0.12));
  z-index: 2;
}

.hero__badges img {
  width: 100%;
  height: auto;
  display: block;
}

.hero__badges h1 {
  width: 100%;
  margin: 0 auto;
}


/* ========================================
   Responsive (1024px以下 / スマホ・画面幅縮小時)
   ======================================== */

@media (max-width: 1024px) {
  .hero {
    padding-top: 60px; /* 固定ヘッダー分の余白 */
  }

  /* PC用の画像要素は非表示にし、親コンテナに背景を直接セット */
  .hero__image {
    display: none;
  }

  .hero__card {
    background-image: url('../images/hero-bg.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    /* 人物の顔を見せるための上部余白 ＋ カード下の背景余白 */
    padding-top: clamp(180px, 45vw, 280px);
    padding-bottom: 40px;
    padding-inline: 20px;
    box-sizing: border-box;
  }

  /* 白カードの設定 */
  .hero__badges {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 520px;
    margin: 0 auto; /* 中央配置 */
    padding: 24px 20px;
    border-radius: var(--radius-md, 20px);
    box-shadow: var(--shadow-md, 0 4px 20px rgba(0, 0, 0, 0.12));
  }

  .hero__badges h1 {
    width: 100%;
    margin-bottom: 0;
  }
}