/* Japanese language-pack typography and line-breaking contract. */
html[lang^="ja"] body {
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Noto Sans JP", system-ui, sans-serif;
  font-feature-settings: "palt" 1;
  line-break: strict;
  overflow-wrap: anywhere;
}

html[lang^="ja"] h1,
html[lang^="ja"] h2,
html[lang^="ja"] h3,
html[lang^="ja"] h4,
html[lang^="ja"] .nav-link,
html[lang^="ja"] .btn-primary,
html[lang^="ja"] .btn-secondary {
  font-family: "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", system-ui, sans-serif;
  letter-spacing: -0.025em;
  word-break: auto-phrase;
}

html[lang^="ja"] p,
html[lang^="ja"] li,
html[lang^="ja"] td,
html[lang^="ja"] .article-content {
  line-height: 1.85;
}

html[lang^="ja"] .nav-desktop.vaniv-global-desktop-nav {
  gap: 10px;
}

html[lang^="ja"] .vaniv-shell-dropdown-trigger,
html[lang^="ja"] .nav-desktop.vaniv-global-desktop-nav .nav-link {
  font-size: 0.88rem;
  white-space: nowrap;
}

/* The shared legacy runtime may append a fallback /blog/ link when it does not
   recognise the existing Japanese ブログ dropdown. Hide only that incorrect
   direct desktop-nav fallback; the real /ja/blog/ dropdown stays untouched. */
html[lang^="ja"] .vaniv-global-desktop-nav > a[href="/blog/"] {
  display: none !important;
}

@media (max-width: 1180px) and (min-width: 1025px) {
  html[lang^="ja"] .vaniv-shell-dropdown-trigger,
  html[lang^="ja"] .nav-desktop.vaniv-global-desktop-nav .nav-link {
    font-size: 0.8rem !important;
  }
}
