/* ===== 言語切替（i18n）===== */
.lang-switcher { position: relative; flex: 0 0 auto; margin-left: 14px; font-family: inherit; }
.lang-switcher__toggle {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, 0.12); color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 8px;
  padding: 7px 11px; font-size: 13px; line-height: 1; cursor: pointer;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); transition: background 0.15s ease;
}
.lang-switcher__toggle:hover { background: rgba(255, 255, 255, 0.22); }
.lang-switcher__current { font-weight: 500; white-space: nowrap; }
.lang-switcher__menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 190px;
  list-style: none; margin: 0; padding: 6px;
  background: #0e1430; border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px; 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: 7px;
  color: #dfe6ff; 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(120, 150, 255, 0.28); color: #fff; font-weight: 500; }
/* スイッチャーを足してもナビ項目が文字途中で折り返さないように（本番との差分対策） */
.site-nav__link,
.site-nav__cta { white-space: nowrap; }
.site-nav { flex-shrink: 0; }
.lang-switcher { margin-left: 10px; }
/* デスクトップはアイコン＋短い言語名のみ（幅を最小化）。詳細名はメニュー内に表示 */
.lang-switcher__current { font-size: 12px; max-width: 5.5em; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 768px) {
  .lang-switcher { margin-left: auto; margin-right: 8px; order: 2; }
  .lang-switcher__current { display: none; }
  .lang-switcher__toggle { padding: 8px; }
}
