.site-language {
  width: min(1160px, 90%);
  margin: 6px auto 0;
  display: flex;
  justify-content: flex-end;
  font: 500 .875rem/1.5 system-ui, sans-serif;
  color: #293b70;
}
.site-language ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-language a {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding-inline: 8px;
  border-radius: 4px;
  color: inherit;
}
.site-language a:hover, .site-language a[aria-current] { background: #f1e7d6; }
.site-language a[aria-current] { font-weight: 700; text-decoration: none; }
.site-language :focus-visible { outline: 2px solid #a45020; outline-offset: 1px; }
.mast > .site-language { width: auto; margin: 0; }
@media (min-width: 1051px) {
  .mast:has(> .site-language) { gap: 18px; }
  .mast:has(> .site-language) > nav { margin-inline-start: auto; }
}
@media (max-width: 1050px) {
  .mast:has(> .site-language) { flex-wrap: wrap; }
  .mast > .site-language { width: 100%; justify-content: center; padding-block: 4px; }
}
html:lang(en) body { font-family: system-ui, sans-serif; }
html:lang(en) :is(h1,h2,.visit h3) { font-family: Georgia, serif; }
html:lang(en) .note { font-family: Georgia, serif; }
html:lang(ja) body { font-family: "Yu Gothic", Meiryo, system-ui, sans-serif; }
html:lang(ja) :is(h1,h2,.visit h3) { font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; }
html:lang(ko) body { font-family: "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif; }
html:lang(ko) :is(h1,h2,.visit h3) { font-family: inherit; }
html:is(:lang(en), :lang(ja), :lang(ko)) .hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 4.1rem);
  letter-spacing: -.045em;
  line-height: 1.16;
}
.hero:is(:lang(en), :lang(ja), :lang(ko)) h1 span { white-space: nowrap; }
html:is(:lang(en), :lang(ja), :lang(ko)) .mast nav { flex-wrap: wrap; }
:lang(ko) :is(.hero-copy, .chapter, .end, .sound-layout, .book-layout) { word-break: keep-all; overflow-wrap: anywhere; }
body:has(.binding) .site-language { width: min(90%, 900px); }
@media (max-width: 760px) {
  .mast:not(:has(nav)) { flex-direction: row; align-items: center; }
  .mast nav { gap: 8px; }
  .mast .status { white-space: nowrap; }
  .hero .secondary { margin-inline-start: 0; padding: 4px 0; }
  .hero .button { margin-right: 12px; }
}
@media (max-width: 435px) {
  .mast nav { font-size: .78rem; column-gap: 6px; row-gap: 4px; }
  html:is(:lang(en), :lang(ja), :lang(ko)) .mast nav {
    display: grid;
    grid-template-columns: repeat(3, auto) max-content;
    align-items: center;
  }
  .mast nav a { line-height: 1.35; }
  .mast nav .status { padding: 4px 6px; }
}
@media print { .site-language { display: none; } }
