/* Japanese typography over the unmodified MAISI stylesheets. */
:root {
  --sans: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif CJK JP", serif;
}
html { line-break: strict; }
body { font-family: var(--sans); overflow-wrap: anywhere; }
h1,h2,h3,h4 { line-height: 1.4; letter-spacing: .01em; text-wrap: pretty; }
.hero h1,.page-hero h1,.draft-article > h1 { line-height: 1.35; letter-spacing: .01em; }
.draft-body { line-height: 1.95; }
.draft-body h2,.draft-body h3 { line-height: 1.5; }
.hero .lede { line-height: 1.8; }
.ja-banner { background: #eae5da; border-bottom: 1px solid #18231f30; font-size: 13px; line-height: 1.8; padding: 13px 0; }
.ja-banner a,.ja-credit a,.ja-application-notice a { color: #1d513c; text-decoration: underline; text-underline-offset: 3px; }
.ja-banner a { display: inline-block; }
.ja-keep { white-space: nowrap; }
.ja-credit { line-height: 1.85; }
.top-menu-items { flex-wrap: wrap; }
.wordmark { flex-shrink: 0; }
.wordmark > span:last-child { white-space: nowrap; line-height: 1.35; }
.nav-sub { flex-wrap: wrap; }
.ja-original-link { font-size: 12px; }
[class*="maisi-module"] { font-family: var(--sans); }
[class*="maisi-module"][class*="heroLede"] { line-height: 1.8; }
[class*="maisi-module"] h2,[class*="maisi-module"] h3,
[class*="maisi-module"][class*="applyPage"] h1 { line-height: 1.45; letter-spacing: .01em; }
[class*="maisi-module"][class*="prose"] { line-height: 1.95; }
[class*="maisi-module"][class*="sectionGrid"] > div:first-child > h2 { font-size: clamp(32px, 3vw, 42px); }
[class*="maisi-module"][class*="applyPage"] h1 { font-size: clamp(38px, 4vw, 56px); }
[class*="maisi-module"][class*="people"] p { line-height: 1.85; }
[class*="maisi-module"][class*="helpPanel"] { overflow-wrap: anywhere; }
[class*="maisi-module"][class*="helpPanel"] h3 { line-height: 1.5; }
.ja-application-notice { border-left: 3px solid #1d513c; background: #eae5da; padding: 18px 22px; margin: 28px 0; line-height: 1.9; }
.ja-application-notice a { display: inline-block; margin-top: 6px; }
[data-application-guide] input:disabled { opacity: 1; color: #48544d; cursor: not-allowed; }
[data-application-guide] button:disabled { opacity: .55; cursor: not-allowed; }
.katex { font-family: math; font-size: 1em; }
.display-math { overflow-x: auto; overflow-wrap: normal; }
.display-math math { white-space: nowrap; }
@media (max-width: 640px) {
  .header-top { flex-direction: column; align-items: flex-start; gap: 14px; }
  .header-menus { width: 100%; align-items: stretch; }
  .top-menu-items { justify-content: flex-start; gap: 4px; }
  .ja-banner { font-size: 11px; }
  .nav-sub { justify-content: flex-start; gap: 10px 18px; }
  .draft-article > h1 { font-size: clamp(30px, 8vw, 46px); }
  .page-hero h1 { font-size: clamp(38px, 10vw, 58px); }
  .hero h1 { font-size: clamp(36px, 10vw, 52px); }
  .research-directory-row h2 { line-height: 1.5; }
  [class*="maisi-module"] h2 { font-size: 36px; }
  [class*="maisi-module"][class*="applyPage"] h1 { font-size: 38px; }
}
