/* v41 typesetting pass: Japanese lines break only between phrases. The phrase breaks are written
   into the HTML (BudouX <wbr>; zero-width spaces in data-detail), so Chrome and Safari behave the same.
   Strict kinsoku; text-wrap: pretty avoids one-character last lines where supported.
   Live status texts (inserted by JS) keep normal breaking so they can never overflow. */
p, h1, h2, h3, h4, li, dd, dt, figcaption, small, label, blockquote, .likes-detail,
.hero h1, .section-heading h2, .about h2, .likes-heading h2, .contact h2,
.work-title, .text-card-body h3, .all-works-link h3 {
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: strict;
  text-wrap: pretty;
}
[role="status"], [aria-live], .form-status, output {
  word-break: normal;
  overflow-wrap: anywhere;
}
/* headings that already balance keep it */
.contact h2 { text-wrap: balance; }
/* very narrow phones (<=360px): keep 「お問い合わせ」 on one line */
@media (max-width: 360px) {
  .contact h2 { font-size: 40px; }
}
