/* Let Japanese headings and prose reflow without changing forms or data tables. */
.wp-theme-nh-hokuto-theme :where(.hero, .wrap, .narrow, .page-hero, .cta-band, #hk-top)
  :is(h1, h2, h3, h4, p, .news-row > p, summary.qa-q) {
  line-break: strict;
  word-break: auto-phrase;
  overflow-wrap: anywhere;
}

.wp-theme-nh-hokuto-theme :where(.wrap, .narrow, .page-hero, .cta-band, #hk-top)
  :is(h1, h2, h3, h4, .news-row > p, summary.qa-q) {
  text-wrap: balance;
}

.wp-theme-nh-hokuto-theme :where(.hero, .wrap, .narrow, .cta-band, #hk-top) p {
  text-wrap: pretty;
}

.hero .nh-hero-sentence {
  display: block;
  text-wrap: balance;
}

.nh-keep-phrase {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .wp-theme-nh-hokuto-theme .hero .hero-lead {
    font-size: 18px;
    letter-spacing: 0.02em;
  }

  .hero .nh-home-detail {
    text-wrap: balance;
  }

  .nh-home-kind {
    display: block;
  }

  .wp-theme-nh-hokuto-theme .message .body > h2 > br,
  .wp-theme-nh-hokuto-theme .nh-contact-break,
  #hk-top#hk-top .benefit h3 > br {
    display: none;
  }
}

@media (max-width: 359px) {
  .recruit-gallery-sec .sec-head.wm::before {
    content: none;
  }
}
