/* 2026-10-13: use ordinary wrapping along the available width. */
html:lang(ja) body :is(main, .r2-front-content) :is(p, li, dt, dd, blockquote, figcaption, td):not(:where(form *, nav *, .mobile-fixed-cta *, .header-responsive-drawer *)) {
  word-break: normal;
  overflow-wrap: break-word !important;
  text-wrap: wrap !important;
  line-break: strict;
}

/* Preserve confirmed short phrases in cards and diagnosis headings. */
html body :is(.case-card-title, .switch-diagnosis-c__console-title, .switch-diagnosis-c__check-text) .r2-wrap-unit {
  display: inline-block;
  max-width: 100%;
  white-space: normal;
  word-break: normal !important;
  overflow-wrap: anywhere;
}

/* A three-line diagnosis title must stay inside its own background band. */
@media (max-width: 360px) {
  html body .switch-diagnosis-c__console-bar {
    height: auto !important;
    min-height: 62px;
    padding-block: 12px;
    box-sizing: border-box;
  }
}

/* 2026-10-13: keep the comparison label inside the mobile scroll viewport. */
@media (max-width: 768px) {
  html body.subpage.switch-page .cmp-wrap .cmp-product-mark::before {
    top: 8px !important;
  }
}
