@charset "utf-8";
/* ==========================================================================
   Site-wide language switcher (base.html header). Posts to Django's
   built-in set_language view — no page-specific JS, works everywhere
   base.html is used.
   ========================================================================== */

.i18n-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 16px;
  padding: 3px;
  border-radius: 999px;
  background-color: rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

.i18n-switch-btn {
  appearance: none;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #6b6570;
  padding: 5px 10px;
  border-radius: 999px;
  transition: background-color .2s ease, color .2s ease;
  white-space: nowrap;
}

.i18n-switch-btn:hover {
  background-color: rgba(0, 0, 0, 0.08);
  color: #1c1a1f;
}

.i18n-switch-btn.is-active {
  background-color: #1c1a1f;
  color: #fff;
}

@media screen and (max-width: 768px) {
  .i18n-switch {
    margin-left: 8px;
    gap: 2px;
  }
  .i18n-switch-btn {
    font-size: 10px;
    padding: 4px 7px;
  }
}

@media screen and (max-width: 480px) {
  .i18n-switch {
    order: 5;
    margin-left: 0;
  }
}
