@charset "UTF-8";

/*
 * Shared Japanese wrapping contract.
 *
 * The BudouX wrapper supplies semantic break opportunities consistently in
 * Blink and WebKit. CSS then balances only those safe opportunities on narrow
 * screens and falls back to normal wrapping if JavaScript is unavailable.
 */
.site-shell--static-v2 #page-header :is(h1, h2),
.site-shell--static-v2 #page-content-v2 :is(h1, h2, h3, h4),
.site-shell--static-v2 #page-content-v2 :is(
  .static-v2__btn,
  .static-v2__chip-label,
  .static-v2__related-label,
  .top-v2-quickpaths__item strong,
  .top-v2-trust__item strong,
  .top-v2-onayami__list--symptoms strong,
  .top-v2-services__item span,
  .top-v2-feature__btn,
  .top-v2-visitguide__faq-item summary
) {
  line-break: strict;
  overflow-wrap: break-word;
  text-wrap: wrap;
  text-wrap: pretty;
  word-break: normal;
}

.site-shell--static-v2 .japanese-wrap-v2 {
  max-width: 100%;
  min-width: 0;
  overflow-wrap: break-word !important;
}

.site-shell--static-v2 #page-header :is(h1, h2) > .japanese-wrap-v2 {
  display: block;
  width: 100%;
}

@media screen and (max-width: 767px) {
  .site-shell--static-v2 #page-header :is(h1, h2),
  .site-shell--static-v2 #page-content-v2 :is(h1, h2, h3, h4),
  .site-shell--static-v2 #page-content-v2 :is(
    .static-v2__btn,
    .static-v2__chip-label,
    .static-v2__related-label,
    .top-v2-quickpaths__item strong,
    .top-v2-trust__item strong,
    .top-v2-onayami__list--symptoms strong,
    .top-v2-services__item span,
    .top-v2-feature__btn,
    .top-v2-visitguide__faq-item summary
  ) {
    text-wrap: balance;
  }
}
