/* purette — 多言語（言語切り替え・言語ごとの文字） */

/* 中国語・韓国語は、その言語の字形があるフォントを先に使う */
html:lang(zh-Hans) { --font-ja: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif; }
html:lang(zh-Hant) { --font-ja: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif; }
html:lang(ko)      { --font-ja: "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif; }

/* ヘッダーの並び：ロゴ … メニュー ／ 言語 */
.global-nav { margin-left: auto; }

.lang-switch { position: relative; flex: none; }
.lang-switch summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 14px 0 11px; border-radius: 999px;
  background: #fff; box-shadow: var(--shadow); color: var(--ink);
  font-family: var(--font-en); font-weight: 600; font-size: .9rem; letter-spacing: .03em;
  user-select: none;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary svg { width: 18px; height: 18px; color: var(--pink); }
.lang-switch summary::after {
  content: ""; width: 7px; height: 7px; margin-left: 2px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg); opacity: .6;
  transition: transform .2s ease;
}
.lang-switch[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.lang-switch summary:hover { color: var(--pink); }

.lang-switch__list {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60;
  min-width: 168px; margin: 0; padding: 8px; list-style: none;
  background: #fff; border-radius: 18px; box-shadow: 0 16px 40px -14px rgba(123, 74, 170, .45);
  animation: langIn .18s ease;
}
@keyframes langIn { from { opacity: 0; transform: translateY(-4px); } }
.lang-switch__list a {
  display: block; padding: 9px 14px; border-radius: 12px;
  color: var(--ink); text-decoration: none; font-size: .95rem; line-height: 1.3;
  font-family: "Zen Maru Gothic", "PingFang SC", "Apple SD Gothic Neo", sans-serif;
}
.lang-switch__list a:hover { background: #FFF0F7; color: var(--pink); }
.lang-switch__list a[aria-current="true"] { background: linear-gradient(100deg, #FFE1EE, #EFE4FF); font-weight: 700; }

/* ライブ欄：詳細は日本語のままである旨 */
.live-lang-note { margin: 14px 4px 0; font-size: .82rem; color: var(--ink-soft); text-align: center; }

@media (max-width: 860px) {
  .lang-switch { order: 1; margin-left: auto; z-index: 3; }
  .nav-toggle { order: 2; }
  .site-header__inner { gap: 10px; }
}
@media (max-width: 720px) {
  .lang-switch summary { height: 40px; padding: 0 12px 0 10px; font-size: .85rem; }
}

/* Road to Zepp の「いまここ」を各言語で */
html:lang(en) .zepp__road li.is-now .zepp__step::after { content: " Now"; }
html:lang(zh-Hans) .zepp__road li.is-now .zepp__step::after { content: " 当前"; }
html:lang(zh-Hant) .zepp__road li.is-now .zepp__step::after { content: " 目前"; }
html:lang(ko) .zepp__road li.is-now .zepp__step::after { content: " 지금 여기"; }
html:lang(es) .zepp__road li.is-now .zepp__step::after { content: " Ahora"; }
html:lang(fr) .zepp__road li.is-now .zepp__step::after { content: " En cours"; }
