html[lang="en"] [data-lang="ja"] { display: none !important; }
html:not([lang="en"]) [data-lang="en"] { display: none !important; }

.lang-item button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: #fff;
  font-family: 'EB Garamond', serif;
  font-size: 19px;
  letter-spacing: 0.05em;
}
.lang-item button:hover { opacity: 0.7; }

.lang-banner {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  margin: 0;
  padding: 10px 16px;
  text-align: center;
  font-size: 14px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
}
html[lang="en"] .lang-banner { display: block; }
@media screen and (max-width: 767px) {
  .lang-banner { top: auto; bottom: 0; }
}
.header-nav-sp .lang-item button { color: #101010; font-family: 'Josefin Sans', system-ui, sans-serif; font-weight: 300; font-size: 16px; letter-spacing: 0.15em; }

.lang-fixed {
  display: none;
  position: fixed;
  top: 22px;
  right: 40px;
  z-index: 1001;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: #fff;
  font-family: 'Josefin Sans', system-ui, sans-serif;
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.15em;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.55);
}
.lang-fixed:hover { opacity: 0.7; }
.lang-fixed { display: block; }
/* PC: the button sits over the white content panel, so give it a dark backing to stay readable */
@media screen and (min-width: 768px) {
  .lang-fixed {
    top: 18px;
    right: 28px;
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 999px;
    text-shadow: none;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
  }
  /* PC: copyright moved from bottom-right (over the panel text) to bottom-left, under the side menu */
  footer .copyrights.pc-img { left: 50px; right: auto; }
}
@media screen and (max-width: 767px) {
  .lang-fixed {
    top: 16px;
    left: 16px;
    right: auto;
    padding: 6px 12px;
    font-size: 13px;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 999px;
    text-shadow: none;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
  }
}
