/* JA packaging knowledge entry: fit the five desktop labels without clipping. */
@media (min-width: 1081px) {
  html[lang="ja"] body.platform-localized-page
    .site-header[data-dbc-navigation-only] .dbc-desktop-nav {
    display: flex !important;
    width: max-content !important;
    min-width: 0 !important;
    max-width: 100% !important;
    grid-template-columns: none !important;
    gap: clamp(.125rem, .7vw, .75rem) !important;
    justify-self: center !important;
    overflow: visible !important;
  }

  html[lang="ja"] body.platform-localized-page
    .site-header[data-dbc-navigation-only] .dbc-desktop-nav__link {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: max-content !important;
    max-width: none !important;
    padding: 0 clamp(.55rem, .85vw, .8rem) !important;
    overflow: visible !important;
    font-size: clamp(.75rem, 1.02vw, .8125rem) !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }

  html[lang="ja"] body.platform-localized-page
    .site-header[data-dbc-navigation-only] .dbc-desktop-nav__link > span {
    display: block !important;
    min-width: max-content !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
  }
}

@media (min-width: 861px) and (max-width: 1080px) {
  html[lang="ja"] body.platform-localized-page
    .site-header[data-dbc-navigation-only] .dbc-desktop-nav {
    display: none !important;
  }

  html[lang="ja"] body.platform-localized-page
    .site-header[data-dbc-navigation-only] .dbc-nav-trigger {
    display: inline-flex !important;
  }
}
