/* The proposition is the primary heading across all service heroes. */
:root {
  --site-service-h1-size: clamp(28px, 3.333333vw, 48px);
}

/* A small red-square kicker stays with its primary heading inside the panel. */
body[data-site-page] main [data-service-hero-kicker] {
  display: flex;
  align-items: baseline;
}
body[data-site-page] main .editorial-hero-panel :is(.hero-label,.hero-eyebrow)[data-service-hero-kicker] {
  gap: 10px;
  margin: 0 0 16px;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0;
}
/* Keep the red marker with the first line even when the label text wraps. */
body[data-site-page] main [data-service-hero-kicker] > .service-hero-label-text {
  flex:1;
  min-width:0;
}
body[data-site-page] main [data-service-hero-kicker]::before {
  content: "";
  display: block;
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin: 0;
  /* Center the square between the first baseline and the cap line. */
  transform: translateY(calc(4px - .35em));
  transform: translateY(calc(4px - .5cap));
  background: var(--accent, var(--ep-accent, #c60033));
}
@media (max-width: 767px) and (max-height: 600px) {
  body[data-site-page] main .editorial-hero-panel :is(.hero-label,.hero-eyebrow)[data-service-hero-kicker] {
    margin-bottom: 12px;
  }
}

@layer service-hero-titles {
  [data-service-hero-title] {
    font-family: var(--site-font-body, "Gen Interface JP", "Noto Sans JP", sans-serif) !important;
    font-size: var(--site-service-h1-size) !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    letter-spacing: 0 !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    text-wrap: pretty !important;
    width: auto !important;
    max-width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
  }

  [data-service-hero-title] :is(.jp-heading-phrase, .heading-band-content > span) {
    display: inline !important;
    margin-right: 0 !important;
  }

  .service-hero-message {
    font-family: var(--site-font-body, "Gen Interface JP", "Noto Sans JP", sans-serif) !important;
    font-size: clamp(26px, 2.222222vw, 32px) !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    letter-spacing: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    white-space: normal !important;
  }
}
