/* Pilih bahasa (ID · EN · 日本語) + penyesuaian huruf Jepang */
.header-right { display: flex; align-items: center; gap: .6rem; }
.lang-switch { position: relative; flex: none; }
.lang-btn {
  display: inline-flex; align-items: center; gap: .4rem; height: 40px; padding: 0 .85rem; border: 2px solid rgb(32 33 36 / .85);
  border-radius: 999px; background: #fff; color: #202124; font: 700 .85rem/1 inherit; cursor: pointer; letter-spacing: .02em;
}
.lang-btn:hover { background: #FFF4C7; }
.lang-btn:focus-visible { outline: 3px solid #1A73E8; outline-offset: 2px; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + .45rem); z-index: 90; min-width: 12rem; margin: 0; padding: .35rem; list-style: none;
  background: #fff; border-radius: 16px; box-shadow: 0 14px 34px -10px rgb(60 64 67 / .55), 0 0 0 1px rgb(32 33 36 / .08);
}
.lang-menu[hidden] { display: none; }
.lang-menu button {
  display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 46px; padding: 0 .9rem; border: 0; border-radius: 10px;
  background: transparent; color: #202124; font: 600 .95rem/1 inherit; text-align: left; cursor: pointer;
}
.lang-menu button:hover, .lang-menu button:focus-visible { background: #E8F0FE; outline: none; }
.lang-menu button[aria-checked="true"] { color: #1A73E8; font-weight: 800; }
.lang-menu button[aria-checked="true"]::after { content: "✓"; }

/* Tahan tampilan sebentar saat bahasa tersimpan bukan Indonesia, agar teks Indonesia tidak sempat terlihat */
html.i18n-pending body { opacity: 0; }
body { transition: opacity .18s ease; }

/* Huruf Jepang: daftar font sistem + jarak baris lebih lega + pemotongan baris yang wajar */
html[lang="ja"] body, html[lang="ja"] button, html[lang="ja"] input, html[lang="ja"] select, html[lang="ja"] textarea {
  font-family: "Plus Jakarta Sans", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Meiryo", "Noto Sans CJK JP", "Noto Sans JP", sans-serif;
}
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3, html[lang="ja"] .brand-text strong {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Meiryo", "Noto Sans CJK JP", "Noto Sans JP", sans-serif; letter-spacing: 0;
}
html[lang="ja"] body { line-height: 1.8; line-break: strict; overflow-wrap: anywhere; word-break: auto-phrase; }
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3 { line-height: 1.4; }
html[lang="en"] h1 { text-wrap: balance; }
@media (max-width: 1040px) { .lang-btn { height: 38px; padding: 0 .7rem; } }
