/* CosLoom 0.8.142: shared language switcher plus Japanese-only typography polish. */

.nav-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-width: max-content;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
}

@media (min-width: 981px) {
  body.cosloom-lang-ja .site-nav.logo--primary {
    grid-template-columns: minmax(280px, 0.56fr) minmax(620px, 1.18fr) minmax(300px, 0.42fr);
    gap: clamp(10px, 1.3vw, 24px);
  }
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-height: 34px;
  padding: 0 7px;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  border-radius: 999px;
  color: inherit;
  font-family: var(--font-body, sans-serif);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  opacity: 0.76;
  white-space: nowrap;
  flex: 0 0 auto;
  min-width: max-content;
  overflow-wrap: normal;
  word-break: keep-all;
  writing-mode: horizontal-tb;
}

.language-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  color: inherit;
  opacity: 0.55;
  white-space: nowrap;
  flex: 0 0 auto;
  min-width: max-content;
  overflow-wrap: normal;
  word-break: keep-all;
  writing-mode: horizontal-tb;
  transition: background 180ms ease, color 180ms ease, opacity 180ms ease;
}

.language-switcher a[lang="ja"] {
  width: 58px;
  min-width: 58px;
}

.language-switcher a + a::before {
  content: "/";
  margin: 0 7px 0 0;
  color: currentColor;
  opacity: 0.35;
}

.language-switcher a[aria-current="true"] {
  background: color-mix(in srgb, currentColor 9%, transparent);
  opacity: 1;
}

.language-switcher a:hover,
.language-switcher a:focus-visible {
  opacity: 1;
}

.nav-actions .nav-quote {
  flex: 0 0 auto;
}

body.cosloom-lang-ja {
  --font-ja-sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --font-ja-serif: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-family: var(--font-ja-sans);
  word-break: normal;
  overflow-wrap: anywhere;
}

body.cosloom-lang-ja .brand__descriptor,
body.cosloom-lang-ja .section-label,
body.cosloom-lang-ja .project-card__content p,
body.cosloom-lang-ja .showroom-card__topline,
body.cosloom-lang-ja .filter-chip,
body.cosloom-lang-ja .nav-links,
body.cosloom-lang-ja .language-switcher {
  letter-spacing: 0.08em;
}

body.cosloom-lang-ja h1,
body.cosloom-lang-ja h2,
body.cosloom-lang-ja h3,
body.cosloom-lang-ja .brand__name,
body.cosloom-lang-ja .route-page-hero__content h1,
body.cosloom-lang-ja .concept-hero h1,
body.cosloom-lang-ja .site-footer__statement-copy h2 {
  font-family: var(--font-ja-serif);
  font-weight: 500;
  line-height: 1.08;
}

body.cosloom-lang-ja .concept-hero h1 {
  letter-spacing: 0;
}

body.cosloom-lang-ja .hero__subhead,
body.cosloom-lang-ja .editorial-section-copy,
body.cosloom-lang-ja .section-intro p,
body.cosloom-lang-ja .showroom-card__summary,
body.cosloom-lang-ja .quote-form,
body.cosloom-lang-ja .site-footer {
  line-height: 1.78;
}

body.cosloom-lang-ja .nav-quote,
body.cosloom-lang-ja .button {
  font-weight: 700;
  white-space: nowrap;
}

body.cosloom-lang-ja .site-nav.logo--primary .nav-links {
  gap: clamp(14px, 1.55vw, 26px);
  font-size: 0.72rem;
  letter-spacing: 0.055em;
  flex-wrap: nowrap;
}

body.cosloom-lang-ja .site-nav.logo--primary .nav-links a {
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}

body.cosloom-lang-ja .quote-form label,
body.cosloom-lang-ja .quote-form input,
body.cosloom-lang-ja .quote-form textarea,
body.cosloom-lang-ja .quote-form select {
  font-family: var(--font-ja-sans);
}

@media (max-width: 980px) {
  .nav-actions {
    gap: 8px;
  }

  .language-switcher {
    min-height: 32px;
    padding: 0 5px;
    font-size: 0.62rem;
    letter-spacing: 0.04em;
  }

  .language-switcher a {
    padding: 0 5px;
  }

  .language-switcher a + a::before {
    margin-right: 5px;
  }
}

@media (max-width: 620px) {
  .site-nav .nav-actions {
    align-self: center;
    gap: 6px;
  }

  .site-nav .language-switcher {
    min-height: 28px;
    padding-inline: 3px;
    font-size: 0.58rem;
  }

  body.cosloom-lang-ja .nav-quote {
    max-width: 36vw;
    padding-inline: 10px;
    font-size: 0.68rem;
    white-space: normal;
    text-align: center;
    line-height: 1.15;
  }
}
