/* 冒頭をコンパクトにまとめ、見出しと横長写真の上端を揃える。 */
.hero.hero--compact {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  grid-template-areas: "heading heading" "copy photo";
  column-gap: clamp(28px, 4vw, 56px);
  row-gap: 24px;
  align-items: start;
  min-height: 0;
  padding-block: 24px 28px;
}

.hero--compact .hero-heading { grid-area: heading; min-width: 0; }
.hero--compact .hero-heading .eyebrow { font-size: .875rem; }
.hero--compact h1 {
  font-size: clamp(2rem, 4.3vw, 3.6rem);
  line-height: 1.4;
  letter-spacing: .025em;
  margin: 10px 0 0;
}
.hero--compact h1 span { display: inline-block; }
.hero--compact .hero-copy { grid-area: copy; min-width: 0; }
.hero--compact .hero-lead {
  font-size: clamp(1.18rem, 1.8vw, 1.4rem);
  line-height: 1.65;
  letter-spacing: .025em;
}
.hero--compact .hero-description {
  max-width: 35em;
  margin-top: 12px;
  font-size: 1rem;
  line-height: 1.9;
}
.hero--compact .button-row {
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 20px;
}
.hero--compact .button {
  min-height: 48px;
  padding: 11px 20px;
  gap: 30px;
  font-size: .94rem;
}
.hero--compact .text-link {
  min-height: 44px;
  gap: 14px;
  font-size: .94rem;
}
.hero--compact .hero-footnote {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-top: 18px;
  font-size: .875rem;
  line-height: 1.8;
}

.hero--compact .hero-visual,
.hero--compact .hero-visual.has-photo {
  grid-area: photo;
  width: 100%;
  aspect-ratio: 711 / 349;
  min-height: 0;
  max-height: none;
  align-self: start;
  border-radius: 4px;
  margin: 0 0 28px;
}
.hero--compact .hero-visual > img { object-fit: contain; }
.hero--compact .hero-visual.has-photo {
  display: flex;
  flex-direction: column;
  aspect-ratio: auto;
  margin-bottom: 0;
  background: none;
}
.hero--compact .hero-visual.has-photo > img {
  position: static;
  width: 100%;
  height: auto;
  order: 0;
}
.hero--compact .hero-caption {
  top: calc(100% + 8px);
  font-size: .8125rem;
  line-height: 1.7;
  letter-spacing: .025em;
}
.hero--compact .hero-visual.has-photo .hero-caption {
  position: static;
  order: 1;
  margin-top: 8px;
  text-align: right;
}
.hero--compact + .introduction { padding-top: 48px; }

@media (min-width: 761px) {
  .hero.hero--compact {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    grid-template-areas: "eyebrow eyebrow" "heading photo" "copy photo";
    row-gap: 10px;
  }
  .hero--compact .hero-heading { display: contents; }
  .hero--compact .hero-heading .eyebrow { grid-area: eyebrow; }
  .hero--compact h1 {
    grid-area: heading;
    min-width: 0;
    margin: 0;
    font-size: clamp(1.65rem, 3.2vw, 2.9rem);
    line-height: 1.25;
  }
  .hero--compact .hero-copy { margin-top: 10px; }
}

@media (max-width: 760px) {
  .hero.hero--compact {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "heading" "copy" "photo";
    row-gap: 22px;
    padding-block: 20px 24px;
  }
  .hero--compact h1 { font-size: clamp(1.9rem, 5.8vw, 2.5rem); }
  .hero--compact .hero-lead { font-size: 1.2rem; }
  .hero--compact .button-row { column-gap: 20px; }
  .hero--compact .hero-footnote { margin-top: 14px; }
  .hero--compact + .introduction { padding-top: 32px; }
}

@media print {
  .hero.hero--compact { padding-block: 20px; }
}
