/* Shared Japanese page/section titles. Preserve all existing sizes and spacing. */
body.hidamari.kd-refined main :is(h1,h2):not(.kd-fv-final *) {
  font-family: var(--mincho, "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif) !important;
  font-weight: 600 !important;
}
/* Kurashow Design only: readable line wrapping. */
body.hidamari.kd-refined main :is(h1,h2,h3):not(.kd-fv-final *) {
  word-break: auto-phrase;
  line-break: strict;
  text-wrap: balance;
}
body.hidamari.kd-refined main :is(p.wp-block-paragraph,.field-help,.kd-privacy-note):not(.kd-fv-final *) {
  line-break: strict;
  text-wrap: pretty;
}
body.hidamari.kd-refined .flow p,
body.hidamari.kd-refined .reason p:not(.reason-tag),
body.hidamari.kd-refined .profile-message p {
  text-wrap: balance;
}
@media (max-width: 767px) {
  body.hidamari.kd-refined:has(.profile-message-copy) .cta h2 {
    font-size: clamp(24px, 6.4vw, 28px);
  }
  body.hidamari.kd-refined .price-list > .kd-li:last-child {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
  }
  body.hidamari.kd-refined .price-list > .kd-li:last-child > .price {
    justify-self: start;
  }
  body.hidamari.kd-refined .kd-dd p {
    overflow-wrap: normal;
    word-break: auto-phrase;
    text-wrap: balance;
  }
}

/* Balance short descriptions; leave prices and form options untouched. */
body.hidamari.kd-refined main :is(.flow,.profile-message-copy,.plans-intro,.plan-guide) p.wp-block-paragraph,
body.hidamari.kd-refined main :is(p.page-head-lead,p.other-lead,p.svc-for,.field-help) {
  text-wrap: balance;
  word-break: auto-phrase;
}
body.hidamari.kd-refined main .price-list .price { white-space: nowrap !important; }
body.hidamari.kd-refined main .price-list > .kd-li > .wp-block-group { min-width: 0; }
body.hidamari.kd-refined main .price-list > .kd-li:last-child p:not(.price) { text-wrap: balance; }
body.hidamari.kd-refined main .kd-text-chunk { display: inline-block; max-width: 100%; }
