/* JA release refinement 2026-11-04: scoped adaptation of verified German layout intent. */
/* Compact Japanese desktop navigation while keeping all translated text visible. */
@media (min-width: 1100px) {
  html[lang="ja"][data-site-language="ja"] body.dbc-global-nav-active.dbc-global-nav-active .dbc-desktop-mega--direct .dbc-desktop-mega__inner {
    grid-template-columns: minmax(280px, 330px) minmax(0, 1fr) !important;
    gap: 20px !important;
    align-items: start !important;
  }
  html[lang="ja"][data-site-language="ja"] body.dbc-global-nav-active.dbc-global-nav-active .dbc-desktop-mega--direct .dbc-desktop-mega__routes {
    grid-template-columns: repeat(var(--dbc-nav-route-count, 4), minmax(0, 1fr)) !important;
    grid-auto-rows: auto !important;
    gap: 10px !important;
  }
}
@media (min-width: 861px) and (max-width: 1099px) {
  html[lang="ja"][data-site-language="ja"] body.dbc-global-nav-active.dbc-global-nav-active .dbc-desktop-mega--direct .dbc-desktop-mega__inner {
    grid-template-columns: minmax(190px, 220px) minmax(0, 1fr) !important;
    gap: 18px !important;
  }
  html[lang="ja"][data-site-language="ja"] body.dbc-global-nav-active.dbc-global-nav-active .dbc-desktop-mega--direct .dbc-desktop-mega__routes {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-auto-rows: auto !important;
    gap: 10px !important;
  }
}
@media (min-width: 861px) {
  html[lang="ja"][data-site-language="ja"] body.dbc-global-nav-active.dbc-global-nav-active .dbc-desktop-mega--direct .dbc-desktop-route {
    grid-template-rows: 76px auto !important;
    min-height: 0 !important;
    height: auto !important;
  }
  html[lang="ja"][data-site-language="ja"] body.dbc-global-nav-active.dbc-global-nav-active .dbc-desktop-mega--direct .dbc-desktop-route__copy {
    min-height: 0 !important;
    height: auto !important;
    padding: 11px 12px !important;
  }
  html[lang="ja"][data-site-language="ja"] body.dbc-global-nav-active.dbc-global-nav-active .dbc-desktop-mega--direct .dbc-desktop-route__copy > strong,
  html[lang="ja"][data-site-language="ja"] body.dbc-global-nav-active.dbc-global-nav-active .dbc-desktop-mega--direct .dbc-desktop-route__copy > .dbc-desktop-route__desc {
    line-height: 1.4 !important;
    overflow: visible !important;
    -webkit-line-clamp: unset !important;
    max-height: none !important;
  }
  html[lang="ja"][data-site-language="ja"] body.dbc-global-nav-active.dbc-global-nav-active .dbc-desktop-mega--direct .dbc-desktop-route__copy > .dbc-desktop-route__desc {
    font-size: 12px !important;
    margin-top: 7px !important;
  }
}
@media (min-width: 861px) {
  html[lang="ja"][data-site-language="ja"] body:is(#ja-site-page,#ja-product-page,.dbc-home-page).dbc-global-nav-active .dbc-desktop-mega--direct .dbc-desktop-route__copy {
    min-height: 0 !important;
    padding: 11px 12px !important;
  }
  html[lang="ja"][data-site-language="ja"] body:is(#ja-site-page,#ja-product-page,.dbc-home-page).dbc-global-nav-active .dbc-desktop-mega--direct .dbc-desktop-mega__intro > p:not(.dbc-desktop-mega__eyebrow) {
    font-size: 12.5px !important;
    line-height: 1.45 !important;
  }
}
/* The two Observer cards use the taller image format of the reference menu. */
@media (min-width: 861px) {
  html[lang="ja"][data-site-language="ja"] body:is(#ja-site-page,#ja-product-page,.dbc-home-page).dbc-global-nav-active #dbc-desktop-mega-news .dbc-desktop-route {
    grid-template-rows: 106px auto !important;
    min-height: 0 !important;
    height: auto !important;
  }
  html[lang="ja"][data-site-language="ja"] body:is(#ja-site-page,#ja-product-page,.dbc-home-page).dbc-global-nav-active #dbc-desktop-mega-news .dbc-desktop-route__copy {
    min-height: 0 !important;
    padding: 11px 12px !important;
  }
}

/* Japanese homepage: align the two modules and compact the release cards. */
@media (min-width: 1101px) {
  html[lang="ja"] body.dbc-home-page:is(#ja-site-page,#ja-product-page,.dbc-home-page) #main-content #collaboration .home7202-packaging-entries__inner {
    align-items: stretch !important;
  }
  html[lang="ja"] body.dbc-home-page:is(#ja-site-page,#ja-product-page,.dbc-home-page) #main-content #collaboration .bp7160-sample-card {
    align-self: stretch !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
  }
  html[lang="ja"] body.dbc-home-page:is(#ja-site-page,#ja-product-page,.dbc-home-page) #main-content #collaboration .bp7160-sample-card__foot {
    margin-top: auto !important;
  }
  html[lang="ja"] body.dbc-home-page:is(#ja-site-page,#ja-product-page,.dbc-home-page) #main-content #collaboration .bp7140-release-rail {
    align-self: stretch !important;
  }
  html[lang="ja"] body.dbc-home-page:is(#ja-site-page,#ja-product-page,.dbc-home-page) #main-content #collaboration .bp7140-release-rail__inner {
    height: 100% !important;
  }
  html[lang="ja"] body.dbc-home-page:is(#ja-site-page,#ja-product-page,.dbc-home-page) #main-content #collaboration [data-basf-dbc-release-grid] {
    grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
    min-height: 0 !important;
    gap: 8px !important;
  }
  html[lang="ja"] body.dbc-home-page:is(#ja-site-page,#ja-product-page,.dbc-home-page) #main-content #collaboration [data-basf-dbc-release-grid] > .bp7140-release-mini:not([data-home-release-featured]) {
    min-height: 0 !important;
    grid-template-columns: minmax(64px, 22%) minmax(0, 1fr) !important;
  }
  html[lang="ja"] body.dbc-home-page:is(#ja-site-page,#ja-product-page,.dbc-home-page) #main-content #collaboration [data-basf-dbc-release-grid] > .bp7140-release-mini:not([data-home-release-featured]) img {
    min-height: 0 !important;
  }
  html[lang="ja"] body.dbc-home-page:is(#ja-site-page,#ja-product-page,.dbc-home-page) #main-content #collaboration [data-basf-dbc-release-grid] > .bp7140-release-mini:not([data-home-release-featured]) .bp7140-release-mini__copy {
    padding: 7px 9px !important;
  }
  html[lang="ja"] body.dbc-home-page:is(#ja-site-page,#ja-product-page,.dbc-home-page) #main-content #collaboration [data-basf-dbc-release-grid] > .bp7140-release-mini:not([data-home-release-featured]) .bp7140-release-mini__copy > span {
    font-size: 9.5px !important;
    line-height: 1.25 !important;
    margin-bottom: 3px !important;
  }
  html[lang="ja"] body.dbc-home-page:is(#ja-site-page,#ja-product-page,.dbc-home-page) #main-content #collaboration [data-basf-dbc-release-grid] > .bp7140-release-mini:not([data-home-release-featured]) .bp7140-release-mini__copy strong {
    font-size: 11.5px !important;
    line-height: 1.3 !important;
    overflow: visible !important;
    -webkit-line-clamp: unset !important;
  }
  html[lang="ja"] body.dbc-home-page:is(#ja-site-page,#ja-product-page,.dbc-home-page) #main-content #collaboration [data-basf-dbc-release-grid] > [data-home-release-featured] {
    align-self: stretch !important;
    height: 100% !important;
  }
}

/* Fill both BIOTEN and DBC business-card image areas without letterboxing. */
html[lang="ja"] body.dbc-home-page:is(#ja-site-page,#ja-product-page,.dbc-home-page) #main-content #platform :is(.v704-route,.v704-brand-card) .v709-card-media > img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
@media (min-width: 1101px) {
  html[lang="ja"] body.dbc-home-page:is(#ja-site-page,#ja-product-page,.dbc-home-page) #main-content #collaboration .bp7160-sample-card__products {
    flex: 1 1 auto !important;
    align-content: space-evenly !important;
  }
}
/* Keep the BIOTEN brand name intact when the tile heading wraps. */
html[lang="ja"] body.dbc-home-page:is(#ja-site-page,#ja-product-page,.dbc-home-page) #main-content #platform .v704-route--packaging .v704-route__copy h3 {
  hyphens: manual !important;
}


@media (min-width: 1041px) {
  html[lang="ja"] body#ja-site-page#ja-site-page#ja-site-page main#main-content#main-content#main-content .bp7140-home-hero > .bp7160-sample-card {
    align-self: stretch !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
  }
  html[lang="ja"] body#ja-site-page#ja-site-page#ja-site-page main#main-content#main-content#main-content .bp7140-home-hero > .bp7160-sample-card .bp7160-sample-card__foot {
    margin-top: auto !important;
  }
}


/* Stack the three sample routes and place the materials guide below them. */
html[lang="ja"] body#ja-site-page#ja-site-page main#main-content#main-content .bp7160-sample-card #packaging-material-dock {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  gap: 18px !important;
  align-content: stretch !important;
  flex: 1 1 auto !important;
  width: 100% !important;
}
html[lang="ja"] body#ja-site-page#ja-site-page main#main-content#main-content .bp7160-sample-card #packaging-sample-choices {
  grid-column: 1 !important;
  grid-row: 1 !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: repeat(3, minmax(76px, 1fr)) !important;
  gap: 8px !important;
  width: 100% !important;
}
html[lang="ja"] body#ja-site-page#ja-site-page main#main-content#main-content .bp7160-sample-card #packaging-sample-choices .bp7160-sample-card__product {
  min-height: 76px !important;
  padding: 12px 14px !important;
  border: 1px solid rgba(45, 101, 86, .15) !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, .55) !important;
}
html[lang="ja"] body#ja-site-page#ja-site-page main#main-content#main-content .bp7160-sample-card #materials-guide {
  grid-column: 1 !important;
  grid-row: 2 !important;
  padding: 0 !important;
  border: 0 !important;
  width: 100% !important;
}
html[lang="ja"] body#ja-site-page#ja-site-page main#main-content#main-content .bp7160-sample-card #materials-guide .dbc-material-guide-teaser__link {
  display: block !important;
  height: auto !important;
}
html[lang="ja"] body#ja-site-page#ja-site-page main#main-content#main-content .bp7160-sample-card #materials-guide .dbc-material-guide-teaser__image {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: 27 / 10 !important;
  object-fit: cover !important;
}
html[lang="ja"] body#ja-site-page#ja-site-page main#main-content#main-content .bp7160-sample-card #materials-guide .dbc-material-guide-teaser__copy {
  padding-top: 10px !important;
}


@media (min-width: 661px) {
 html[lang="ja"] body.dbc-home-page #platform .v704-brand-card {height:100%!important;}
}
html[lang="ja"] body.dbc-home-page #platform .v704-brand-card img {
 display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;
}
html[lang="ja"] body.dbc-home-page #platform .v704-brand-card .v704-brand-card__image,
html[lang="ja"] body.dbc-home-page #platform .v704-brand-card picture {
 display:block!important;width:100%!important;height:100%!important;
}
html[lang="ja"] body.dbc-home-page #platform .v704-brand-card__copy h3 {
 white-space:normal!important;overflow:visible!important;max-height:none!important;-webkit-line-clamp:unset!important;
}

html[lang="ja"] .ja-release-language .tri-language-options a[aria-disabled="true"] {opacity:.55;cursor:default;}
html[lang="ja"] .ja-release-language .tri-language-options a {display:flex;align-items:center;gap:.5rem;justify-content:space-between;}
html[lang="ja"] .ja-release-language-pending {display:block;padding:.55rem .75rem;line-height:1.5;white-space:normal;}

/* JP has research/evidence cards while historical product records stay qualified. */
html[lang="ja"] body#ja-site-page#ja-site-page main#main-content#main-content .bp7140-home-hero > .bp7140-release-rail [data-bp7151-home-release-grid] {
 display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important;
}
html[lang="ja"] body#ja-site-page#ja-site-page main#main-content#main-content .bp7140-home-hero > .bp7140-release-rail [data-bp7151-home-release-grid] > .bp7140-release-mini {min-height:130px!important;grid-template-columns:minmax(90px,27%) minmax(0,1fr)!important;}
html[lang="ja"] body#ja-site-page#ja-site-page main#main-content#main-content .bp7140-home-hero > .bp7140-release-rail [data-bp7151-home-release-grid] > .bp7140-release-mini > img {height:100%!important;min-height:130px!important;object-fit:cover!important;}
@media(min-width:1041px){
 html[lang="ja"] body#ja-site-page#ja-site-page main#main-content#main-content .bp7140-home-hero > .bp7140-release-rail {display:flex!important;flex-direction:column!important;align-self:stretch!important;}
 html[lang="ja"] body#ja-site-page#ja-site-page main#main-content#main-content .bp7140-home-hero > .bp7140-release-rail .bp7140-release-rail__inner {flex:1 1 auto!important;display:flex!important;flex-direction:column!important;height:100%!important;}
 html[lang="ja"] body#ja-site-page#ja-site-page main#main-content#main-content .bp7140-home-hero > .bp7140-release-rail [data-bp7151-home-release-grid] {flex:1 1 auto!important;grid-template-rows:repeat(3,minmax(130px,1fr))!important;}
}

/* Keep decoded lazy images out of intrinsic grid-row sizing. */
html[lang="ja"] body#ja-site-page#ja-site-page main#main-content#main-content .bp7140-home-hero > .bp7140-release-rail [data-bp7151-home-release-grid] > .bp7140-release-mini {
 position:relative!important;overflow:hidden!important;grid-row:auto!important;grid-column:auto!important;
}
html[lang="ja"] body#ja-site-page#ja-site-page main#main-content#main-content .bp7140-home-hero > .bp7140-release-rail [data-bp7151-home-release-grid] > .bp7140-release-mini > img {
 position:absolute!important;inset:0 auto 0 0!important;width:max(90px,27%)!important;height:100%!important;min-height:0!important;max-height:none!important;object-fit:cover!important;
}
html[lang="ja"] body#ja-site-page#ja-site-page main#main-content#main-content .bp7140-home-hero > .bp7140-release-rail [data-bp7151-home-release-grid] > .bp7140-release-mini > .bp7140-release-mini__copy {
 grid-column:2!important;grid-row:1!important;align-self:center!important;
}
@media(max-width:1040px){
 html[lang="ja"] body#ja-site-page#ja-site-page main#main-content#main-content .bp7140-home-hero > .bp7140-release-rail [data-bp7151-home-release-grid] {grid-template-rows:none!important;grid-auto-rows:minmax(160px,auto)!important;}
 html[lang="ja"] body#ja-site-page#ja-site-page main#main-content#main-content .bp7140-home-hero > .bp7140-release-rail [data-bp7151-home-release-grid] > .bp7140-release-mini {min-height:160px!important;}
}

/* Reset the inherited horizontal release carousel before stacking three cards. */
html[lang="ja"] body#ja-site-page#ja-site-page#ja-site-page main#main-content#main-content#main-content .bp7140-home-hero > .bp7140-release-rail [data-bp7151-home-release-grid] {
 grid-auto-flow:row!important;grid-auto-columns:auto!important;grid-template-columns:minmax(0,1fr)!important;width:100%!important;min-width:0!important;max-width:100%!important;overflow:visible!important;
}
html[lang="ja"] body#ja-site-page#ja-site-page#ja-site-page main#main-content#main-content#main-content .bp7140-home-hero > .bp7140-release-rail [data-bp7151-home-release-grid] > .bp7140-release-mini {display:grid!important;width:auto!important;min-width:0!important;max-width:100%!important;}

/* Screenshot feedback 2026-11-04: readable Japanese hero and visible research content. */
html[lang="ja"] body#ja-site-page#ja-site-page main#main-content .bp7140-home-hero__content {
 width:min(840px,100%)!important;max-width:840px!important;
}
html[lang="ja"] body#ja-site-page#ja-site-page main#main-content #bp7140-home-title {
 width:100%!important;max-width:none!important;font-size:clamp(36px,4.1vw,60px)!important;
 line-height:1.22!important;letter-spacing:-.035em!important;word-break:normal!important;
 overflow-wrap:normal!important;line-break:strict!important;text-wrap:initial!important;
}
html[lang="ja"] #bp7140-home-title > .ja-packaging-title__line {display:block!important;}
html[lang="ja"] #bp7140-home-title .ja-packaging-title__word {display:inline!important;white-space:nowrap!important;}
@media(max-width:660px){
 html[lang="ja"] body#ja-site-page#ja-site-page main#main-content #bp7140-home-title {font-size:clamp(21px,6.25vw,34px)!important;line-height:1.3!important;letter-spacing:-.025em!important;}
}
@media(min-width:861px){
 html[lang="ja"][data-site-language="ja"] body#ja-site-page.dbc-global-nav-active #dbc-desktop-mega-developer .dbc-desktop-mega__inner {row-gap:10px!important;}
}
/* Essential content must remain readable independently of either animation controller. */
html[lang="ja"] body#ja-site-page.bioten-platform-v580 main#main-content .btp580-reveal,
html[lang="ja"] body#ja-site-page main#main-content [data-v780-reveal] {
 opacity:1!important;visibility:visible!important;transform:none!important;transition:none!important;
}

@media(min-width:1101px){
 html[lang="ja"] body#ja-site-page#ja-site-page main#main-content .bp7140-home-hero__content {width:840px!important;max-width:840px!important;}
}

html[lang="ja"] body#ja-site-page#ja-site-page main#main-content .bp7140-home-hero__content > .bp7140-home-hero__copy {
 width:100%!important;max-width:none!important;
}

@media(max-width:860px){
 html[lang="ja"] body#ja-site-page#ja-site-page main#main-content .bp7140-home-hero__content {width:calc(100% - 28px)!important;max-width:none!important;margin-inline:auto!important;justify-self:center!important;}
}

@media(max-width:360px){
 html[lang="ja"] body#ja-site-page#ja-site-page main#main-content #bp7140-home-title {font-size:clamp(20px,6.25vw,22.5px)!important;}
}

/* Center the complete Japanese packaging introduction requested in screenshot review. */
html[lang="ja"] body#ja-site-page#ja-site-page main#main-content .bp7140-home-hero__content {
 grid-column:1 / -1!important;grid-row:1!important;justify-self:center!important;margin-inline:auto!important;
}
html[lang="ja"] body#ja-site-page#ja-site-page main#main-content .bp7140-home-hero__content > .bp7140-home-hero__copy {
 text-align:center!important;
}
html[lang="ja"] body#ja-site-page#ja-site-page main#main-content .bp7140-home-hero__copy :is(#bp7140-home-title,.bp7140-lead) {text-align:center!important;}
html[lang="ja"] body#ja-site-page#ja-site-page main#main-content .bp7140-home-hero__copy .bp7140-eyebrow {justify-content:center!important;text-align:center!important;}
html[lang="ja"] body#ja-site-page#ja-site-page main#main-content .bp7140-home-hero__copy .bp7318-brand-hero {margin-inline:auto!important;}
html[lang="ja"] body#ja-site-page#ja-site-page main#main-content .bp7140-home-hero__copy .bp7140-lead {margin-inline:auto!important;max-width:760px!important;}
html[lang="ja"] body#ja-site-page#ja-site-page main#main-content .bp7140-home-hero__copy .bp7318-hero-actions {justify-content:center!important;margin-inline:auto!important;}

/* Public copy remains readable when legacy reveal controllers are unavailable. */
html[lang="ja"] main :is(.v520-reveal,.dev740-reveal,.fx-r,[data-v35-reveal],[data-fs7301-reveal]) {
 opacity:1!important;visibility:visible!important;transform:none!important;
}
html[lang="ja"] main :is(.application-card.v35-app-card,.dynamics-card,.atlas-segment,.bt-step,.v35-sector-head,.home-section-head,.v35-sector-tiles>li) {
 opacity:1!important;visibility:visible!important;
}
/* Avoid adding the shared grid's vertical gutters to the hero's own gutters. */
html[lang="ja"] main .bp7140-hero--with-media {
 min-height:0!important;padding-block:clamp(48px,5vw,76px)!important;
}
html[lang="ja"] main .bp7140-hero--with-media > .bp7140-hero__grid {
 padding-block:0!important;
}
html[lang="ja"] body.bioten-platform-v580 main .btp580-section {
 padding-block:clamp(44px,4.1vw,64px)!important;
}
html[lang="ja"] main #entry .v245-direction {
 min-height:0!important;padding:clamp(24px,2.6vw,38px)!important;
}
html[lang="ja"] main :is(h1,h2,h3,h4) {line-break:strict;word-break:normal;hyphens:manual;}

/* The evidence ladder animates its links separately from its list items. */
html[lang="ja"] main :is(.bt-step-link,.bt-step-cta) {
 opacity:1!important;visibility:visible!important;transform:none!important;
}
/* Template-level specificity is required against the existing page overrides. */
html[lang="ja"] body#ja-site-page#ja-site-page main#main-content#main-content :is(.v520-section,.btp580-section,.bp7140-section) {
 padding-block:clamp(44px,4.1vw,64px)!important;
}
html[lang="ja"] body#ja-site-page#ja-site-page main#main-content#main-content .pgeo-feature--embedded {padding-block:40px!important;}
html[lang="ja"] body#ja-site-page#ja-site-page main#main-content#main-content :is(.v520-detail-card,.v520-dev-input,.bp7140-card.bp7150-card-indexed) {min-height:200px!important;}
html[lang="ja"] body#ja-site-page#ja-site-page main#main-content#main-content :is(.v520-dev-variable-board,.v520-dev-workbench__statement) {min-height:0!important;}

html[lang="ja"] main .bt-mini-state {opacity:1!important;visibility:visible!important;transform:none!important;}

/* These source limitations must remain readable on compact screens. */
html[lang="ja"] main .directory-note {display:block!important;visibility:visible!important;opacity:1!important;}
html[lang="ja"] body#ja-site-page#ja-site-page main#main-content#main-content .bp7160-sample-card__foot > span {display:block!important;visibility:visible!important;opacity:1!important;}
html[lang="ja"] main .ja-title-word {display:inline!important;white-space:nowrap!important;}
html[lang="ja"] main .ja-title-word--fit {font-size:.9em!important;}

/* Keep the selected workbench panel and scientific labels readable without scripts. */
html[lang="ja"] body#ja-site-page#ja-site-page main#main-content#main-content :is(.dev740-workbench__panel[aria-hidden="false"],.btf716-hero-index__item) {
 opacity:1!important;visibility:visible!important;transform:none!important;
}

/* Keep the error identifier on one line in its narrow desktop column. */
html[lang="ja"] main .error-panel .error-code {white-space:nowrap!important;font-size:clamp(80px,9vw,132px)!important;}

/* The hero already sits inside the 1180px shell: do not subtract its viewport gutter again. */
@media(min-width:1245px){
 html[lang="ja"] body#ja-site-page#ja-site-page main#main-content#main-content .knowledge-suite-hero:not(:has(.v280-knowledge-map))::after {right:32px!important;}
}
