.frame-type-frptemplate_hero {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

main.content-wrap:has(> .frame-type-frptemplate_hero:first-child) {
  margin-top: 0;
}

.hero {
  position: relative;
  height: clamp(280px, 41vh, 430px);
  overflow: hidden;
}

.hero-small {
  height: 440px;
}

.hero-large {
  height: calc(100vh - 104px);
  min-height: 640px;
}

.hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.hero-content {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  color: var(--white);
  text-align: left;
  hyphens: none;
}

.hero-title {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  color: var(--white);
}

.hero-text {
  max-width: 640px;
  margin: 14px 0 0;
  font-size: 1.35rem;
  line-height: 1.45;
}

.hero-button {
  margin-top: 28px;
  padding: 14px 28px;
  background: var(--white);
  color: var(--primary);
}

@media (max-width: 640px) {
  .hero {
    height: clamp(210px, 35vh, 280px);
  }

  .hero-small {
    height: 300px;
  }

  .hero-large {
    height: calc(100vh - 68px);
    min-height: 480px;
  }

  .hero-content {
    padding: 0 20px;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-text {
    font-size: 1.05rem;
  }

  .hero-button {
    margin-top: 20px;
    padding: 12px 22px;
  }
}
