/* ===== 言語切替（i18n）===== */
.lang-switcher { position: relative; flex: 0 0 auto; margin-left: 12px; font-family: inherit; }
.lang-switcher__toggle {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(18, 22, 40, 0.55); color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 999px;
  padding: 7px 12px; font-size: 13px; line-height: 1; cursor: pointer;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); transition: background 0.15s ease;
}
.lang-switcher__toggle:hover { background: rgba(18, 22, 40, 0.78); }
.lang-switcher__current { font-weight: 500; white-space: nowrap; }
.lang-switcher__menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 180px;
  list-style: none; margin: 0; padding: 6px;
  background: #14182a; border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px; box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s; z-index: 1200;
}
.lang-switcher.is-open .lang-switcher__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-switcher__item { display: block; padding: 9px 12px; border-radius: 8px; color: #e7ecff; text-decoration: none; font-size: 14px; white-space: nowrap; }
.lang-switcher__item:hover { background: rgba(255, 255, 255, 0.10); }
.lang-switcher__item[aria-current="true"] { background: rgba(95, 240, 231, 0.22); color: #fff; font-weight: 500; }

/* スイッチャー追加でナビ項目が文字途中で折り返さないように */
.primary-nav > ul a { white-space: nowrap; }

@media (max-width: 860px) {
  .lang-switcher { margin-left: auto; margin-right: 6px; }
  .lang-switcher__current { display: none; }
  .lang-switcher__toggle { padding: 8px; }
}
