/* ================================================================
   TENGEN V7: Type System / Red Seal Language Menu / Japanese First
   Adjusts design controls only. Page content and structure stay V6.
   Web fonts load from Google Fonts when online. Local fallback works.
   ================================================================ */
:root {
  --serif: "Noto Serif TC", "Noto Serif CJK TC", "Songti TC", "PMingLiU", serif;
}
html[lang="ja"] {
  --serif: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif CJK JP", serif;
}
html[lang="zh-Hant"] {
  --serif: "Noto Serif TC", "Noto Serif CJK TC", "Songti TC", serif;
}
html[lang="en"] {
  --serif: "Cormorant Garamond", "Baskerville", Georgia, "Times New Roman", serif;
}
/* Relaxed display type; retain the original sizes and long-page rhythm. */
.hero h1, .ct-hero h1, .display-heading, .vision-inner h2,
.ab-hero h1, .ab-display, .ct-ending h2,
.modal-article h2, .modal-article-content h3 { font-family: var(--serif); font-synthesis: none; }
html[lang="ja"] .hero h1, html[lang="ja"] .ct-hero h1,
html[lang="ja"] .display-heading {letter-spacing: .035em;}
html[lang="zh-Hant"] .hero h1, html[lang="zh-Hant"] .ct-hero h1,
html[lang="zh-Hant"] .display-heading {letter-spacing: .025em;}
html[lang="en"] .hero h1, html[lang="en"] .ct-hero h1 {letter-spacing: .012em;line-height: 1.15;}
html[lang="en"] .display-heading {line-height: 1.33;letter-spacing: .01em;}
/* Give the corporate navigation breathing room and push language to right. */
.site-header .header-inner {
  width: min(calc(100% - 2 * clamp(24px, 4.5vw, 84px)), 1370px);
  max-width: none;
  gap: 22px;
}
.desktop-nav {gap: clamp(19px, 2.3vw, 37px);}
.header-inner > .language-switcher {
  margin-left: clamp(34px, 3.5vw, 60px);
  padding-left: clamp(16px, 1.7vw, 25px);
  border-left: 1px solid #d8d2c9;
  flex: 0 0 auto;
}
.language-switcher {
  gap: 2px;
  font: 500 12px/1.5 var(--sans);
  letter-spacing: .018em;
  color: #a39b92;
  white-space: nowrap;
  flex-wrap: nowrap;
}
.language-switcher > span[aria-hidden="true"] {
  color: #bcb4aa;
  font-size: 11px;
  margin-inline: 1px;
  user-select: none;
}
/* Vermilion ink-stamp interaction: red ink, white lettering, squared edge. */
.language-switcher a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  min-height: 43px;
  padding: 0 10px;
  border-radius: 2px;
  border: 1px solid transparent;
  color: #625e58;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none !important;
  text-underline-offset: initial;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.language-switcher a[aria-current="true"] {
  color: var(--red);
  border-color: rgba(183,25,32,.27);
  font-weight: 700;
  text-decoration: none;
}
.language-switcher a:hover,
.language-switcher a[aria-current="true"]:hover {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
}
.language-switcher a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
.mobile-switcher {
  border-top: 1px solid #ded8d1;
  padding: 26px 0 10px;
  margin: 26px 0 0;
  justify-content: flex-start;
  gap: 8px;
  font-size: 14px;
}
.mobile-switcher a {min-height: 46px;padding-inline: 14px;}
@media (max-width: 1220px) and (min-width: 981px) {
  .site-header .header-inner {gap: 15px;}
  .brand img {width: clamp(168px, 15.5vw, 196px);}
  .nav-link {font-size: 12px;letter-spacing: .025em;}
  .desktop-nav {gap: clamp(12px, 1.35vw, 21px);}
  .header-inner > .language-switcher {margin-left: 17px;padding-left: 13px;}
  .header-inner > .language-switcher a {padding-inline: 6px;min-height: 40px;font-size: 11px;}
}
@media (max-width: 980px) {
  .site-header .header-inner {width: calc(100% - 2 * var(--gutter));gap: 14px;}
  .header-inner > .language-switcher {margin-left: auto;margin-right: 10px;padding-left: 0;border-left: 0;gap: 2px;font-size: 12px;}
  .header-inner > .language-switcher a {min-height: 42px;font-size: 11px;padding: 0 8px;}
  .menu-toggle {margin-left: 0;flex: 0 0 auto;}
}
@media (max-width: 650px) {
  /* Keep a readable logo and touch targets: language choices move into menu. */
  .header-inner > .language-switcher {display:none;}
  .mobile-switcher {display:flex;}
  .menu-toggle {margin-left:auto;}
}
@media (prefers-reduced-motion: reduce) {
  .language-switcher a {transition:none;}
}
