/* BEGIN r299_phrase_flow.css */
/* R299: allow line breaks at complete Japanese phrases, not before isolated particles. */
.r299-unit { display:inline-block; max-width:100%; white-space:nowrap; vertical-align:baseline; }
@media (max-width:767px) {
  body.r207-home .r266-example-question { line-height:1.7; }
  body.r207-home .r255-bridge-note { text-wrap:pretty; }
  body.la-subpage .s97-feature-description,
  body.la-subpage .ct97-choices-heading p { text-wrap:pretty; }
}

/* END r299_phrase_flow.css */
/* BEGIN r300_motion_accessibility.css */
/* R300: keep a single readable statement when animations are disabled. */
@media (prefers-reduced-motion: reduce) {
  body.la-subpage .r222-kinetic-words > span { opacity: 0 !important; visibility: hidden !important; }
  body.la-subpage .r222-kinetic-words > span:first-child { opacity: 1 !important; visibility: visible !important; }
}

/* R406 | Short landscape screens: the subpage menu must scroll inside the viewport. */
@media (orientation:landscape) and (max-height:650px) and (max-width:1023px) {
  .site-header .main-nav.is-open {
    max-height:calc(100vh - 90px);
    max-height:calc(100dvh - 90px);
    overflow-y:auto;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
  }
}

/* R408: reserve the final cinema scene height before deferred JS mounts it.
   Removing the temporary margin when the real section is adjacent prevents
   the abrupt content jump, without modifying photos, copy or animation.
   On no-JS browsers, each subpage has a <noscript> no-gap fallback. */
@media (max-width:767px){
  body.la-subpage .r204-scene-ribbon[data-r204-ribbon]:not(:has(+ .r205-cinema)){margin-bottom:145svh;}
  body.r97-contact .r204-scene-ribbon[data-r204-ribbon]:not(:has(+ .r205-cinema)){margin-bottom:115svh;}
  body.la-subpage .r204-scene-ribbon[data-r204-ribbon]:not(.r222-upgraded){height:104px!important;min-height:104px!important;}
}
@media (max-width:767px) and (prefers-reduced-motion:reduce){
  body.la-subpage .r204-scene-ribbon[data-r204-ribbon]:not(:has(+ .r205-cinema)){margin-bottom:max(540px,100svh);}
  body.r97-contact .r204-scene-ribbon[data-r204-ribbon]:not(:has(+ .r205-cinema)){margin-bottom:clamp(540px,75svh,690px);}
}

/* END r300_motion_accessibility.css */
/* BEGIN r303_contact_heading_integrity.css */
/* R303: the legacy descendant :last-child selector gave nested Japanese word
   spans an unintended 18vw left indent. Apply the offset to the line only. */
body.r97-contact .ct97-opening h1 > span span {
  padding-left: 0 !important;
  color: inherit !important;
}
body.r97-contact .ct97-opening h1 > span:last-child {
  padding-left: clamp(0px, 8vw, 120px);
}
@media (max-width: 700px) {
  body.r97-contact .ct97-opening h1 > span:last-child {
    padding-left: 0;
  }
}

/* END r303_contact_heading_integrity.css */
/* BEGIN r305_mobile_crosspage_readability.css */
/* R305: readable explanatory copy on phones, preserve original visuals and layouts. */
@media (max-width: 767px) {
 body.r207-home .r255-bridge-note,
 body.r207-home .r266-example-answer,
 body.r207-home .r207-company-desc {
  font-size: 14px;
  line-height: 1.82;
  letter-spacing: .005em;
 }
 body.r97-company .co97-data dd {
  font-size: 14px;
  line-height: 1.75;
  letter-spacing: .005em;
 }
 body.r97-contact .ct97-choices-heading p {
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: .005em;
 }
}

/* Long addresses and service names get the full available phone width. */
@media (max-width: 414px) {
 body.r97-company .co97-data > .r305-wide-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
 }
 body.r97-company .co97-data > .r305-wide-row dt,
 body.r97-company .co97-data > .r305-wide-row dd {
  grid-column: 1;
  min-width: 0;
  width: 100%;
  max-width: 100%;
 }
 body.r97-company .co97-data > .r305-wide-row .co97-business-list li {
  white-space: normal !important;
  overflow-wrap: break-word;
 }
}

/* END r305_mobile_crosspage_readability.css */
/* BEGIN r306_mobile_editorial_typography.css */
/* R306: phone reading comfort for substantive Japanese text; preserve editorial labels. */
@media (max-width: 767px) {
  body.r207-home .r255-bridge-intro,
  body.r207-home .r266-examples-head > p {
    font-size: 14px;
    line-height: 1.82;
  }
  body.r207-home .r255-phase-links a,
  body.r207-home .r266-example-links a {
    font-size: 14px;
    line-height: 1.6;
  }
  body.r207-home .r266-examples-note {
    font-size: 12px;
    line-height: 1.75;
  }
  body.la-subpage main p.r243-typeset:not(.s97-num):not(.s97-note):not(.c97-case-num):not(.c97-legal):not(.a97-legal-note):not(.f97-overline):not(.rp97-overline):not(.rp97-legal):not(.contact-eyebrow) {
    font-size: 14px;
    line-height: 1.8;
  }
  body.r97-recruit main .rp97-status-aside p.r243-typeset,
  body.r97-faq main .f97-opening-side p.r243-typeset {
    font-size: 10px;
  }
  body.r97-cases main .c97-case-process li,
  body.r97-company main .co97-business-list li {
    font-size: 14px;
    line-height: 1.7;
  }
  body.r97-services main .s97-note,
  body.r97-cases main .c97-legal,
  body.r97-approach main .a97-legal-note,
  body.r97-faq main .f97-legal p,
  body.r97-recruit main .rp97-legal,
  body.r97-recruit main .rp97-employment-note p,
  body.r97-recruit main .rp97-form-note p {
    font-size: 12px;
    line-height: 1.75;
  }
}

/* R324: remove the obsolete lower kinetic panel on phones.
   The old mobile stage obscured that panel behind the full-height left
   pane, leaving a large, visually empty band after the page title.
   Preserve desktop's two-column stage and the page title/arrow. */
@media (max-width: 767px) {
  body.la-subpage .r204-scene-ribbon.r222-upgraded {
    height: 104px !important;
    min-height: 104px !important;
  }
  body.la-subpage .r204-scene-ribbon.r222-upgraded .r222-kinetic-right {
    display: none !important;
  }
}


/* END r306_mobile_editorial_typography.css */
