.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border, #d4dce8);
  border-radius: 0.5rem;
  overflow: hidden;
}

.lang-switch [data-lang-switch] {
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.65rem;
  border: none;
  background: var(--surface, #fff);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted, #5a6478);
  cursor: pointer;
}

.lang-switch [data-lang-switch] + [data-lang-switch] {
  border-left: 1px solid var(--border, #d4dce8);
}

.lang-switch [data-lang-switch].is-active,
.lang-switch [data-lang-switch][aria-current="true"] {
  background: var(--fg, #1a2332);
  color: #fff;
}

.lang-switch [data-lang-switch]:focus-visible {
  outline: 2px solid var(--accent, #3d5a80);
  outline-offset: 2px;
}

/* EN address: plain English line + administrative-unit place row (ja order) */
html[lang="en"] .access-places {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.65rem 1.5rem;
  margin: 0.85rem 0 0;
  padding: 0;
}

html[lang="ja"] .access-places {
  display: none;
}

html[lang="en"] .place-unit {
  display: inline-block;
  text-align: center;
  line-height: 1.35;
}

html[lang="en"] .place-unit ruby {
  ruby-position: under;
  -webkit-ruby-position: after;
}

html[lang="en"] .place-unit ruby > rb,
html[lang="en"] .place-unit ruby {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

html[lang="en"] .place-unit rt {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted, #5a6478);
  white-space: nowrap;
  letter-spacing: 0.01em;
}
