.ep-languages {
  display: flex;
  align-items: center;
  flex: none;
  gap: 2px;
}
.ep-languages a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding-inline: 8px;
  border-bottom: 2px solid transparent;
  color: #b7c5da;
  font-size: .91rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.ep-languages a[lang="ko"] { font-family: Freesentation, "Malgun Gothic", sans-serif; }
.ep-languages img { width: 21px; height: auto; border-radius: 2px; box-shadow: 0 0 0 1px #a3b4d044; }
.ep-languages a[lang="ja"] { font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif; }
.ep-languages a { border-radius: 2px 2px 0 0; }
.ep-languages a:hover { background: #142039; }
.ep-languages a[aria-current="true"] { background: #17233b; }
html:lang(ja) {
  --font-body: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, "Noto Sans CJK JP", system-ui, sans-serif;
  --font-en: "Barlow Condensed", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}
html:lang(ja) :is(body, .mice-secondary, .ep-case-header h1) { word-break: normal; line-break: strict; }
html:lang(ja) :is(h1,h2,h3,.stage-title-ko,.ep-case-next strong) { letter-spacing: -.02em; }
html:lang(ja) .stage-title-en { font: 700 clamp(2rem,5.5vw,6rem)/1.18 var(--font-body); letter-spacing: -.035em; }
html:lang(ja) .stage-film-label { width: 7em; font-family: var(--font-body); letter-spacing: .04em; }
html:lang(ja) .ep-brand { font-family: Freesentation, sans-serif; }
html:lang(ja) .chest-story-intro { word-break: normal; }
@media (max-width: 799px) {
  html:lang(ja) .chest-story-header { grid-template-columns: minmax(0, 1fr); }
}
.stage-nav { flex-wrap: wrap; }
.stage-nav .stage-inquiry-link { color: white; text-decoration-color: #92b6ff; }
.sec-contact-head .ep-inline-link { margin-block-start: 1em; }
.ep-languages a[lang|="zh"] { font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif; }
.ep-languages a[lang="en"] { font-family: var(--font-en); font-size: 1.05rem; }
.ep-languages a:hover, .ep-languages a:focus-visible { color: #fff; }
.ep-languages a[aria-current="true"] { color: #fff; border-bottom-color: #7da6ff; }

html:lang(zh) {
  --font-body: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", system-ui, sans-serif;
  --font-en: "Barlow Condensed", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}
html:is(:lang(en), :lang(zh)) :is(body, .mice-secondary, .ep-case-header h1) { word-break: normal; }
html:lang(zh) body { line-break: strict; }
html:lang(zh) :is(h1, h2, h3, .stage-title-ko, .ep-case-next strong) { letter-spacing: -.015em; }
html:lang(zh) .stage-title-en { font-family: var(--font-body); font-size: clamp(2.45rem,6.2vw,6.7rem); line-height: 1.14; letter-spacing: -.035em; }
html:lang(zh) .ep-brand { font-family: Freesentation, sans-serif; }
html:lang(en) .ep-case-header h1 { font-family: var(--font-en); font-weight: 700; letter-spacing: -.025em; }
html:lang(en) .stage-selection-all { flex: none; white-space: nowrap; }
html:lang(en) .sec-mast > div { min-width: 0; }
html:lang(en) .sec-mast h1 { font-family: var(--font-en); font-weight: 700; letter-spacing: -.025em; }
html:is(:lang(en), :lang(zh)) .ep-nav-contact { min-width: 0; }

@media (min-width: 1001px) {
  .ep-head-inner { gap: clamp(12px,1.65vw,32px); }
  .ep-head .ep-nav { gap: clamp(14px,2vw,38px); }
}
@media (max-width: 1000px) {
  .ep-head-inner {
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    grid-template-rows: 66px auto;
    height: auto;
    column-gap: clamp(12px,2.4vw,24px);
    row-gap: 0;
  }
  .ep-head .ep-brand { grid-column: 1; grid-row: 1; }
  .ep-head .ep-nav { grid-column: 2; grid-row: 1; }
  .ep-head .ep-nav-contact { grid-column: 3; grid-row: 1; }
  .ep-languages {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-end;
    border-top: 1px solid #25334b;
  }
  .ep-languages a { min-height: 44px; }
}
@media (max-width: 640px) {
  .ep-head-inner {
    grid-template-columns: minmax(0,1fr) auto auto;
    grid-template-rows: 62px auto;
    column-gap: 12px;
  }
  .ep-head .ep-nav-contact { grid-column: 2; margin-inline: 0; }
  .ep-head .ep-mobile-nav { grid-column: 3; grid-row: 1; }
  .ep-languages { justify-content: space-between; gap: 0; }
  .ep-languages a { padding-inline: clamp(2px,1vw,6px); gap: 4px; }
  .ep-languages img { width: 19px; }
  html:lang(ja) .stage-selection-tabs { grid-template-columns: repeat(3,minmax(0,1fr)); }
  html:lang(ja) .stage-selection-tabs button { font-size: 1rem; white-space: normal; }
  html:lang(ja) .about-index .sec-inner { flex-wrap: wrap; }
  html:lang(ja) .sec-mast h1 { font-size: clamp(2rem,8.3vw,3.3rem); }
  html:lang(en) .stage-nav { flex-wrap: wrap; gap: 0 20px; }
  html:lang(en) .sec-mast h1 { font-size: clamp(2rem,8.3vw,3.3rem); }
  html:lang(en) .about-index .sec-inner { flex-wrap: wrap; }
  html:lang(en) .stage-selection-tabs { grid-template-columns: repeat(3, minmax(0,1fr)); }
  html:lang(en) .stage-selection-tabs button { font-size: 1rem; }
}
@media (max-width: 350px) {
  .ep-head-inner { column-gap: 8px; }
}
@media (max-width: 380px) {
  html:lang(ja) .ep-mobile-nav summary { width: 40px; justify-content: center; }
  html:lang(ja) .ep-mobile-nav summary span { display: none; }
  html:lang(ja) .ep-nav-contact { padding-inline: 10px; }
}
