/* Japanese local review pages. These rules do not change production. */
html[lang="ja"] body {
  font-family: "Yu Gothic", "Meiryo", system-ui, sans-serif;
  overflow-wrap: anywhere;
}
html[lang="ja"] h1,
html[lang="ja"] h2,
html[lang="ja"] h3,
html[lang="ja"] .display,
html[lang="ja"] .hero-title {
  font-family: "Yu Mincho", "Yu Gothic", "Meiryo", serif;
  line-height: 1.45;
  text-wrap: balance;
  word-break: normal;
}
#ja-public-draft {
  position: relative;
  z-index: 9999;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 18px;
  box-sizing: border-box;
  width: 100%;
  padding: 9px 20px;
  border-bottom: 1px solid rgba(224, 155, 119, .32);
  background: #151415;
  color: #f3ece6;
  font: 500 13px/1.55 "Yu Gothic", "Meiryo", sans-serif;
}
#ja-public-draft a { color: #f2a183; text-underline-offset: 3px; }
#ja-public-draft strong { color: #fff; }
html[lang="ja"] button,
html[lang="ja"] input,
html[lang="ja"] select,
html[lang="ja"] textarea { font-family: inherit; }
html[lang="ja"] img { max-width: 100%; height: auto; }
html[lang="ja"] [inert] { pointer-events: none; }
html[lang="ja"] .tmf-cookie-panel,
html[lang="ja"] #tmf-cookie-panel,
html[lang="ja"] #tmf-cookie-settings { display: none !important; }
@media (max-width: 520px) {
  #ja-public-draft { padding: 9px 14px; }
  html[lang="ja"] h1 { font-size: clamp(29px, 10vw, 44px); }
}

/* Source designs use a few decorative elements wider than their container. */
html[lang="ja"], html[lang="ja"] body { max-width: 100%; overflow-x: hidden; }
html[lang="ja"] main *, html[lang="ja"] header *, html[lang="ja"] footer * { min-width: 0; }

/* The criterion pages rely on production JavaScript to collapse this navigation. */
@media (max-width: 760px) {
  html[lang="ja"] .tmf-header-toggle { display: inline-flex !important; }
  html[lang="ja"] .tmf-header-links,
  html[lang="ja"] #tmf-header-session { display: none !important; }
  html[lang="ja"] body.tmf-menu-open .tmf-header-links,
  html[lang="ja"] body.tmf-menu-open #tmf-header-session { display: flex !important; }
  #ja-public-draft { display: block; }
  #ja-public-draft > span { display: block; margin-bottom: 3px; }
}
