/* hero-photo — 写真1枚を幅いっぱいに使う、余白を活かしたメインイメージ
 * 白い帯・ボタン・スクロール表示なし。文字は写真の上に控えめに置く。
 * 可読性は写真の左側にだけ薄く掛ける暗めのグラデーションで確保する。 */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;500;600&display=swap');

.hero-photo {
  position: relative;
  width: 100%;
  min-height: min(78vh, 720px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-bg);
}

.hero-photo__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* 文字側(左)だけを薄く暗くする。写真全体は覆わない */
.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.82) 0%,
    rgba(255, 255, 255, 0.55) 38%,
    rgba(255, 255, 255, 0) 68%
  );
}

.hero-photo__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 6vw, 6rem);
  box-sizing: border-box;
  color: #014d8e;
  text-align: left;
}

.hero-photo__heading {
  font-family: 'Noto Serif JP', serif;
  font-weight: 500;
  /* 大きくしすぎない: 上限 2.75rem(44px) */
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  line-height: 1.5;
  letter-spacing: 0.08em;
  color: #014d8e;
  margin: 0 0 clamp(1.25rem, 2.4vw, 2rem);
}

.hero-photo__lead {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(0.9375rem, 1.3vw, 1.0625rem);
  line-height: 2;
  letter-spacing: 0.06em;
  color: #014d8e;
  margin: 0;
}

@media (max-width: 768px) {
  .hero-photo {
    min-height: min(68vh, 520px);
    align-items: flex-end;
  }
  .hero-photo::before {
    background: linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.85) 0%,
      rgba(255, 255, 255, 0.55) 55%,
      rgba(255, 255, 255, 0) 100%
    );
  }
  .hero-photo__inner {
    padding: 0 1.25rem 2.5rem;
  }
  .hero-photo__heading {
    font-size: clamp(1.5rem, 6.4vw, 2rem);
    line-height: 1.55;
  }
  .hero-photo__lead {
    font-size: 0.9375rem;
    line-height: 1.9;
  }
  /* PC用の改行はSPでは行を短く割りすぎるため、見出し側のみ維持 */
  .hero-photo__lead br { display: none; }
}
