#before-after .before-after-panel > header h3 { white-space: nowrap; }
#before-after .comparison-notice-copy { container-type: inline-size; }
#before-after .before-after-points .comparison-notice-title {
  white-space: nowrap;
  font-size: min(var(--type-card-title), 11cqw);
}
@media (min-width: 1051px) and (max-width: 1100px) {
  #before-after .before-after-panel > header h3 { font-size: 30px; }
}
@media (max-width: 350px) {
  #before-after .before-after-panel > header h3 { font-size: clamp(19px, 6vw, 22.4px); }
}
@media (min-width: 1051px) {
  #before-after .before-after-panel .before-after-phone { bottom: 14px; }
}
@media (min-width: 768px) {
  #before-after .before-after-grid { grid-template-rows: auto 1fr; row-gap: 0; }
  #before-after .before-after-panel { display: grid; grid-template-rows: subgrid; grid-row: 1 / span 2; }
  #before-after .before-panel { grid-column: 1; }
  #before-after .after-panel { grid-column: 3; }
  #before-after .before-after-arrow { grid-column: 2; grid-row: 1 / span 2; }
  #before-after .before-phone-chat { padding-block: 12px; }
  #before-after .after-phone-content { padding: 8px 13px; }
  #before-after .after-phone-content > strong { margin-top: 6px; }
  #before-after .after-phone-content > small { margin: 4px 0 6px; }
  #before-after .after-phone-content > span:not(.after-phone-check) { margin-top: 4px; padding: 6px 5px; }
}
@media (max-width: 767px) {
  #before-after .after-phone-content { padding: 4px 5px; }
  #before-after .after-phone-content > strong { margin-top: 3px; }
  #before-after .after-phone-content > small { margin: 0 0 1px; }
  #before-after .after-phone-content > span:not(.after-phone-check) { margin-top: 2px; padding: 2px; }
}

/* iPhone wrapping follow-up: preserve copy and type sizes, remove rigid mobile rows. */
.fit-section .scene-strip > figure:first-child .industry-link-label { display: inline; font: inherit; color: inherit; margin: 0; }
@media (max-width: 767px) {
  #before-after-title .comparison-desktop-break { display: none; }
  #before-after-title { text-wrap: balance; }
  #before-after .before-after-heading > p { text-wrap: balance; }
  .fit-section .scene-strip > figure:first-child figcaption > small,
  .fit-section .scene-strip > figure:first-child figcaption > span { text-wrap: balance; }
  .fit-section .scene-strip > figure:first-child .industry-detail-link { display: inline-flex; align-items: center; max-width: 100%; gap: 5px; }
  .fit-section .scene-strip > figure:first-child .industry-link-label { min-width: 0; text-wrap: balance; }
  .fit-section .scene-strip > figure:first-child .industry-detail-link svg { flex: 0 0 12px; margin-left: 0; }
}

#before-after .comparison-word { font: inherit; color: inherit; letter-spacing: inherit; }
#before-after-title,
#before-after .before-after-heading > p { text-wrap: wrap; }
.fit-section .scene-strip > figure:first-child .industry-detail-link { text-decoration-skip-ink: none; }
.fit-section .industry-seitai-caption { container-type: inline-size; }
.fit-section .industry-seitai-link {
  white-space: nowrap;
  font-size: min(var(--type-small), calc((100cqw - 18px) / 19.2));
}
.fit-section .scene-strip > figure:first-child .industry-link-term { display: inline; font: inherit; color: inherit; margin: 0; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 767px) {
  #before-after .comparison-word,
  .fit-section .scene-strip > figure:first-child .industry-link-term { display: inline-block; }
}
