/* R298: responsive layout and semantic readability; isolated to home solution section */
@media (max-width: 767px) {
  body.r207-home .r255-bridge {
    box-sizing: border-box;
    width: calc(100vw - 20px);
    max-width: none;
    margin-left: calc(50% - 50vw + 10px);
    margin-right: 0;
    padding: clamp(24px, 6vw, 30px) clamp(12px, 4vw, 18px) 30px;
    border-radius: 23px;
  }
  body.r207-home .r255-bridge-head { margin-bottom: 24px; }
  body.r207-home .r255-bridge #r255-bridge-title {
    font-size: clamp(27px, 7.4vw, 34px);
    line-height: 1.28;
    letter-spacing: -.035em;
  }
  body.r207-home .r255-bridge-intro {
    max-width: none;
    font-size: clamp(13px, 3.55vw, 15px);
    line-height: 1.85;
    text-wrap: pretty;
    word-break: normal;
  }
  body.r207-home .r255-phase-grid { gap: 12px; }
  body.r207-home .r255-phase { min-width: 0; padding: 20px 18px 21px; }
  body.r207-home .r255-phase strong { font-size: clamp(25px, 6.8vw, 28px); }
  body.r207-home .r255-phase-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  body.r207-home .r255-phase-links a {
    display: block;
    font-size: clamp(12px, 3.3vw, 13px);
    line-height: 1.65;
    white-space: normal;
  }
  body.r207-home .r255-bridge-note { line-height: 1.85; text-wrap: pretty; }
  body.r207-home .r266-examples {
    box-sizing: border-box;
    width: 100%;
    padding: clamp(18px, 5vw, 23px) 10px 19px;
    border-radius: 17px;
  }
  body.r207-home .r266-examples-head { padding: 0 4px; }
  body.r207-home .r266-examples h4 {
    font-size: clamp(23px, 6.4vw, 29px);
    line-height: 1.3;
    letter-spacing: -.025em;
  }
  body.r207-home .r266-examples-grid { gap: 11px; }
  body.r207-home .r266-example-card {
    box-sizing: border-box;
    min-width: 0;
    padding: 18px 14px;
  }
  body.r207-home .r266-example-question {
    font-size: clamp(15px, 4.05vw, 17px);
    line-height: 1.65;
    text-wrap: pretty;
    word-break: normal;
  }
  body.r207-home .r266-example-answer {
    font-size: clamp(12.5px, 3.4vw, 13.5px);
    line-height: 1.85;
    text-wrap: pretty;
    word-break: normal;
  }
  body.r207-home .r266-example-links {
    gap: 8px;
    flex-wrap: wrap;
  }
  body.r207-home .r266-example-links a {
    display: inline-block;
    max-width: 100%;
    line-height: 1.65;
  }
  body.r207-home .r266-examples-note { padding: 0 4px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  body.r207-home .r255-phase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  body.r207-home .r255-phase-grid .r255-phase:last-child {
    grid-column: 1 / -1;
  }
  body.r207-home .r255-phase {
    padding: 24px 23px;
  }
  body.r207-home .r255-phase-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }
}

@media (max-width:767px) { body.r207-home .r298-sense-unit { display: inline-block; white-space: nowrap; max-width: 100%; } body.r207-home .r255-bridge { scroll-margin-top: 86px; } }

/* Keep complete Japanese phrase groups together on desktop as well. */
body.r207-home .r266-example-answer .r298-sense-unit { display:inline-block; white-space:nowrap; max-width:100%; }
