/* Hikari Link v1.0.248 | Final homepage FV typography and primary CTA only.
 * Keep v1.0.247 hero sizing, source photograph, gradient and visual placement.
 * The original H1 already consists of the two requested semantic spans:
 *   医院の想いを / 必要としている患者様へ
 */
@media (min-width: 1021px) {
  body.home #main-content > .hl-hero h1 {
    /* The longer second line needs less width than the old auto-wrap at 78px;
       make the smallest practical adjustment while keeping the serif family. */
    font-size: clamp(53px, 4.86vw, 69px);
    letter-spacing: -0.065em;
  }
  body.home #main-content.hl-main > .hl-hero h1 .hl-hero__line {
    display: block !important; /* override prior desktop inline reset */
    white-space: nowrap !important;
  }
}
/* The current desktop lead was already 16px. Increase it only slightly;
   limit the adjustment to the actual lead, not the handwritten label. */
@media (min-width: 761px) {
  body.home #main-content#main-content > .hl-hero p.hl-hero__lead {
    font-size: 16.5px !important;
    line-height: 1.75 !important;
  }
}
/* Preserve exact words, arrow SVG and URL. Increase the button's touch area;
   allow ~300px so the full Japanese CTA stays on one line at 15.5px. */
body.home #main-content > .hl-hero .hl-actions .hl-btn--primary {
  width: min(100%, 300px);
  min-height: 58px;
  padding: 13px 12px;
  gap: 9px;
  font-size: 15.5px !important;
  line-height: 1.35;
  white-space: nowrap;
  border-radius: 0 !important;
  box-sizing: border-box;
}
@media (max-width: 760px) {
  body.home #main-content#main-content > .hl-hero p.hl-hero__lead {
    font-size: 16px !important;
    line-height: 1.75 !important;
  }
  body.home #main-content > .hl-hero .hl-actions .hl-btn--primary {
    width: 100%;
    max-width: 320px;
    min-height: 56px;
    font-size: 15px !important;
    padding-inline: 10px;
  }
}
@media (max-width: 360px) {
  body.home #main-content > .hl-hero .hl-actions .hl-btn--primary {
    font-size: 14px !important;
    gap: 6px;
    padding-inline: 7px;
  }
}

/* v1.0.275: align only the homepage desktop FV CTA with its H1.
 * Keep the button size, color, square corners, and mobile alignment unchanged. */
@media (min-width: 901px) {
  body.home #main-content > .hl-hero .hl-actions .hl-btn--primary {
    margin-left: 0 !important;
    margin-right: auto !important;
  }
}
