.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  padding: 30px 50px 0;
  color: var(--text);
  background: transparent;
  transform: translateY(0);
  transition: background .28s var(--ease), box-shadow .28s var(--ease), color .28s var(--ease), height .28s var(--ease), padding .28s var(--ease), transform .32s var(--ease);
  will-change: transform;
}

.site-header.is-scrolled {
  height: 86px;
  padding-top: 2px;
  background: rgba(255,255,255,.96);
  box-shadow: inset 0 -1px 0 var(--line);
  backdrop-filter: blur(14px);
}

.site-header.is-hidden {
  transform: translateY(calc(-100% - 8px));
  pointer-events: none;
}

body.is-menu-open .site-header {
  transform: translateY(0);
  pointer-events: auto;
}

.site-header__inner {
  display: grid;
  grid-template-columns: 159px minmax(0, 790px) auto;
  align-items: end;
  justify-content: space-between;
  gap: 44px;
  width: 100%;
  height: 80px;
}

.site-logo {
  display: inline-flex;
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
  width: 159px;
  height: 80px;
}

.site-logo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/sub/shared/nsbs-shared-logo-nsbs-figma.png") no-repeat center / contain;
  pointer-events: none;
}

.footer-logo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/sub/shared/nsbs-shared-logo-nsbs-figma.png") no-repeat center / contain;
  pointer-events: none;
  left: -30px;
}

body:is(.about-page, .technology-page, .news-page, .certifications-page) .site-header:not(.is-scrolled) {
  color: #fff;
}

body:is(.about-page, .technology-page, .news-page, .certifications-page) .site-header:not(.is-scrolled) .site-logo {
  width: 159px;
  justify-self: start;
}

body:is(.about-page, .technology-page, .news-page, .certifications-page) .site-header:not(.is-scrolled) .site-logo::before {
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: url("../img/sub/shared/nsbs-shared-logo-nsbs-header-white-figma.png") no-repeat center / contain;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  padding-bottom: 20px;
  font-size: 18px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}

.site-nav__item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

.site-nav__item::after {
  content: "";
  position: absolute;
  left: -18px;
  right: -18px;
  top: 100%;
  height: 18px;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.site-nav__panel {
  position: absolute;
  left: 50%;
  top: calc(100% + 14px);
  z-index: 70;
  display: grid;
  justify-items: center;
  width: max-content;
  min-width: 180px;
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 8px;
  background: rgba(255, 255, 255, .98);
  color: #222;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .12);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}

.site-nav__item:hover .site-nav__panel,
.site-nav__item:focus-within .site-nav__panel {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.site-nav__submenu-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 6px;
  color: #333;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
  transition: background .18s var(--ease), color .18s var(--ease);
}

.site-nav__submenu-link:hover,
.site-nav__submenu-link:focus-visible {
  background: rgba(255, 106, 0, .1);
  color: var(--primary);
}

.site-nav__submenu-link.is-disabled {
  color: #aaa;
  cursor: default;
}

.site-nav__submenu-link em {
  color: #999;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}

.site-actions {
  display: flex;
  align-items: center;
  gap: 36px;
  padding-bottom: 15px;
}

.lang-switcher {
  position: relative;
  display: inline-block;
  z-index: 30;
}

.lang-switcher__trigger,
.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--primary, #ff6a00);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  box-shadow: none;
}

.lang-switcher__current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: auto;
  font-weight: 500;
  text-transform: uppercase;
}

.lang-switcher__menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 70px;
  padding: 18px 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .18);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease);
}

.lang-switcher.is-open .lang-switcher__menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.lang-switcher__option {
  display: block;
  width: 100%;
  min-height: 32px;
  padding: 4px 0;
  background: transparent;
  color: #a9a9ae;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
}

.lang-switcher__option:hover,
.lang-switcher__option:focus-visible,
.lang-switcher__option.is-active {
  color: var(--primary, #ff6a00);
}

body[data-lang="en"] :is(.site-nav__link, .site-nav__summary, .site-nav__submenu-link, .subnav__item span, .sitemap-link, .footer-nav a, .btn-pill),
body[data-lang="ja"] :is(.site-nav__link, .site-nav__summary, .site-nav__submenu-link, .subnav__item span, .sitemap-link, .footer-nav a, .btn-pill),
body[data-lang="de"] :is(.site-nav__link, .site-nav__summary, .site-nav__submenu-link, .subnav__item span, .sitemap-link, .footer-nav a, .btn-pill) {
  white-space: normal;
  overflow-wrap: anywhere;
}

body[data-lang="en"] .site-nav__submenu-link,
body[data-lang="ja"] .site-nav__submenu-link,
body[data-lang="de"] .site-nav__submenu-link {
  white-space: nowrap;
  overflow-wrap: normal;
}

body[data-lang="en"] .subnav__group,
body[data-lang="ja"] .subnav__group,
body[data-lang="de"] .subnav__group {
  min-width: max-content;
}

body[data-lang="en"] .subnav__item,
body[data-lang="ja"] .subnav__item,
body[data-lang="de"] .subnav__item {
  width: max-content;
  min-width: 250px;
}

body[data-lang="en"] .subnav__item span,
body[data-lang="ja"] .subnav__item span,
body[data-lang="de"] .subnav__item span,
body[data-lang="en"] .subnav__link,
body[data-lang="ja"] .subnav__link,
body[data-lang="de"] .subnav__link {
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
  overflow-wrap: normal;
}

body[data-lang="en"] .subnav__panel,
body[data-lang="ja"] .subnav__panel,
body[data-lang="de"] .subnav__panel {
  width: max-content;
  min-width: 100%;
  /* max-width: none 이었으나, 이 규칙이 기본 .subnav__panel 의
     max-width: calc(100vw - 32px) 보다 우선순위가 높아 상한을 없애버렸다.
     번역 문구가 길면 패널이 무제한으로 커져 화면 밖으로 넘친다.
     내용에 맞춰 늘어나되 뷰포트 안에서 멈추도록 상한을 되살린다. */
  max-width: min(calc(100vw - 32px), 560px);
}

body[data-lang="ja"] :is(.chatbot__chip, .chatbot__bubble, .chatbot__action),
body[data-lang="de"] :is(.chatbot__chip, .chatbot__bubble, .chatbot__action) {
  word-break: normal;
  overflow-wrap: anywhere;
}

body[data-lang="en"] :is(.product-tab, .product-card__category, .product-card__name, .product-card__description, .product-direct-view__copy, .detail-hero__category, .detail-hero__title, .detail-hero__description, .feature-card__title, .feature-card__description, .detail-info__title, .detail-info__group, .spec-cell, .compare-card, .compare-table, .cert-tab, .cert-section__title, .cert-card__title, .download-tab, .download-card__title, .download-request-modal, .nsbs-resource-tab, .nsbs-download-card__title, .nsbs-exhibition-card__meta, .nsbs-news-card__title, .nsbs-news-card__excerpt, .tab-button, .tab-panel, .tab-tags span, .quality-row, .year-block li, .era-label h2),
body[data-lang="ja"] :is(.product-tab, .product-card__category, .product-card__name, .product-card__description, .product-direct-view__copy, .detail-hero__category, .detail-hero__title, .detail-hero__description, .feature-card__title, .feature-card__description, .detail-info__title, .detail-info__group, .spec-cell, .compare-card, .compare-table, .cert-tab, .cert-section__title, .cert-card__title, .download-tab, .download-card__title, .download-request-modal, .nsbs-resource-tab, .nsbs-download-card__title, .nsbs-exhibition-card__meta, .nsbs-news-card__title, .nsbs-news-card__excerpt, .tab-button, .tab-panel, .tab-tags span, .quality-row, .year-block li, .era-label h2),
body[data-lang="de"] :is(.product-tab, .product-card__category, .product-card__name, .product-card__description, .product-direct-view__copy, .detail-hero__category, .detail-hero__title, .detail-hero__description, .feature-card__title, .feature-card__description, .detail-info__title, .detail-info__group, .spec-cell, .compare-card, .compare-table, .cert-tab, .cert-section__title, .cert-card__title, .download-tab, .download-card__title, .download-request-modal, .nsbs-resource-tab, .nsbs-download-card__title, .nsbs-exhibition-card__meta, .nsbs-news-card__title, .nsbs-news-card__excerpt, .tab-button, .tab-panel, .tab-tags span, .quality-row, .year-block li, .era-label h2) {
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: currentColor;
}

.menu-toggle i { font-size: 28px; line-height: 1; }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  grid-template-rows: 130px 1fr;
  padding: 0;
  overflow-y: auto;
  background: #fff;
  color: var(--text);
  pointer-events: none;
  transform: translateY(-110%);
  transition: transform .38s var(--ease);
}

body.is-menu-open { overflow: hidden; }
body.is-menu-open .mobile-menu {
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 130px;
  padding: 0 58px;
  border-bottom: 1px solid #ddd;
}

.mobile-menu .site-logo {
  width: 159px;
  height: 80px;
}

.mobile-menu__actions {
  display: flex;
  align-items: center;
  gap: 36px;
}

.mobile-menu__close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #111;
  font-size: 25px;
  line-height: 1;
}

.mobile-menu__nav {
  display: block;
  width: min(1600px, calc(100% - 320px));
  margin: 0 auto;
  padding: 109px 0 40px;
  font-size: inherit;
  font-weight: 500;
  letter-spacing: 0;
}

.sitemap-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 34px 0 35px;
  border-bottom: 1px solid #d2d2d2;
}

.sitemap-section:first-child {
  padding-top: 0;
}

.sitemap-section h2 {
  width: 100%;
  min-width: 190px;
  margin: 0;
  color: #222;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
}

.sitemap-section h2 a,
.sitemap-section h2 span,
.sitemap-section__toggle {
  color: inherit;
}

.sitemap-section__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-height: 44px;
  padding: 0;
  text-align: left;
}

.sitemap-section__chevron {
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1;
  transition: transform .22s var(--ease);
}

.sitemap-section.is-open .sitemap-section__chevron {
  transform: rotate(180deg);
}

.sitemap-links {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 10px;
  width: 100%;
}

.sitemap-links[hidden] {
  display: none;
}

.sitemap-link {
  display: inline-flex;
  align-items: center;
  width: 100%;
  min-height: 34px;
  color: #666;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.35;
  transition: color .18s var(--ease);
}

.sitemap-link:hover,
.sitemap-link:focus-visible {
  color: var(--primary);
}

.sitemap-link.is-disabled {
  color: #666;
  cursor: default;
}

.subnav {
  /* 패널 폭을 바와 맞출 때 이 값을 그대로 쓴다(아래 768 구간 참고). */
  --subnav-pad-x: 30px;
  position: fixed;
  left: 50px;
  right: 50px;
  top: 126px;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 30px;
  height: 80px;
  padding: 20px var(--subnav-pad-x);
  border-radius: 10px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  backdrop-filter: blur(10px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}

.subnav--dark {
  background: rgba(51, 51, 51, .5);
  color: #fff;
}

.subnav--glass {
  background: rgba(248, 248, 248, .2);
  color: #fff;
}

.subnav--light {
  background: #f8f8f8;
  color: #333;
}

/* 제품비교 페이지는 목록에서 빼서 기본값(#f8f8f8)을 쓰게 한다. */
body:is(.products-page, .product-detail-page, .downloads-page, .exhibitions-page) .subnav--light {
  background: #fff;
}

body.about-subnav-hidden .subnav,
body.subnav-hidden .subnav {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
}

.subnav__home,
.subnav__item {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.subnav__home {
  justify-content: center;
  min-width: 44px;
}

.subnav__home i {
  font-size: 30px;
  line-height: 1;
}

.subnav__group {
  position: relative;
  min-width: 0;
}

.subnav__group::after {
  content: "";
  position: absolute;
  z-index: 75;
  left: -8px;
  right: -8px;
  top: 100%;
  height: 24px;
}

.subnav__item {
  justify-content: space-between;
  gap: 18px;
  width: 250px;
  padding: 0;
  text-align: left;
}

.subnav__item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subnav__chevron {
  width: auto;
  height: auto;
  flex: 0 0 auto;
  font-size: 16px;
  line-height: 1;
  transition: transform .2s var(--ease);
}

.subnav__panel {
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 20px;
  z-index: 76;
  display: grid;
  min-width: 250px;
  max-width: calc(100vw - 32px);
  max-height: min(420px, calc(100vh - 230px));
  overflow-y: auto;
  padding: 10px;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 8px;
  background: rgba(255, 255, 255, .98);
  color: #222;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}

.subnav__group:last-of-type .subnav__panel {
  right: 0;
  left: auto;
}

.subnav--dark .subnav__panel {
  /* border-color: rgba(255, 255, 255, .12); */
  /* background: rgba(0, 0, 0, .6); */
  /* color: #fff; */
}

.subnav--glass .subnav__panel {
  border-color: rgba(255, 255, 255, .18);
  /* background: rgba(248, 248, 248, .2); */
  /* color: #fff; */
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.subnav--light .subnav__panel {
  background: #f8f8f8;
}

body:is(.products-page, .product-detail-page, .product-compare-page, .downloads-page, .exhibitions-page) .subnav--light .subnav__panel {
  background: #fff;
}

/* 열림 상태는 JS 가 붙이는 is-open 하나로만 제어한다.
   - :focus-within : 클릭 후 버튼에 포커스가 남아 패널이 계속 열려 있었다.
   - :hover        : 터치 기기는 탭한 요소에 hover 가 남는다(sticky hover).
                     그래서 is-open 을 떼도 패널이 그대로 보여 토글이 안 먹었다.
   hover 는 마우스가 있는 환경에서만 적용한다. */
.subnav__group.is-open .subnav__panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.subnav__group.is-open .subnav__chevron {
  transform: rotate(180deg);
}

@media (hover: hover) and (pointer: fine) {
  .subnav__group:hover .subnav__panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .subnav__group:hover .subnav__chevron {
    transform: rotate(180deg);
  }
}

.subnav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 6px;
  color: #333;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.15;
  text-align: left;
  transition: background .18s var(--ease), color .18s var(--ease);
}

/* .subnav--dark .subnav__link {
  color: #fff;
} */
/* 
.subnav--glass .subnav__link {
  color: #fff;
} */

.subnav__link:hover,
.subnav__link:focus-visible {
  background: rgba(255, 106, 0, .1);
  color: var(--primary);
}

.subnav__link.is-active {
  background: rgba(255, 106, 0, 1);
  color: #fff;
}

.subnav__link.is-active:hover,
.subnav__link.is-active:focus-visible {
  background: rgba(255, 106, 0, 1);
  color: #fff;
}

.subnav__link.is-disabled {
  color: #aaa;
  cursor: default;
}

.subnav__link.is-disabled:hover {
  background: transparent;
  color: #aaa;
}

.subnav__link em {
  color: #999;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.subnav__divider {
  width: 1px;
  height: 40px;
}

.subnav--dark .subnav__divider {
  background: rgba(255,255,255,.65);
}

.subnav--glass .subnav__divider {
  background: rgba(255,255,255,.65);
}

.subnav--light .subnav__divider {
  background: rgba(51,51,51,.2);
}

.site-footer {
  position: relative;
  min-height: 555px;
  color: var(--text-soft);
  background: #fff;
}

.footer-inner {
  position: relative;
  display: grid;
  /* 오른쪽 칸의 하한이 680px 이면 1200px 안팎(패딩 200 + 갭 64 포함 1064px 필요)에서
     그리드가 컨테이너보다 넓어져 가로로 넘쳤다. 하한을 풀어 줄어들 수 있게 한다. */
  grid-template-columns: minmax(320px, 1fr) minmax(0, 903px);
  gap: 64px;
  min-height: 555px;
  padding: 80px 100px 76px;
}

.footer-left {
  position: relative;
  min-height: 399px;
}

.footer-watermark {
  margin: 0;
  color: #dedede;
  font-size: 60px;
  font-weight: 500;
  line-height: 67px;
  letter-spacing: -0.04em;
}

.footer-logo {
  display: inline-flex;
  position: absolute;
  left: 0;
  bottom: 0;
  overflow: visible;
  width: 229px;
  height: 98.5px;
}

.footer-right {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 399px;
}

.footer-nav {
  display: flex;
  gap: 40px;
  margin-bottom: 0;
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
}

.footer-meta {
  position: absolute;
  left: 0;
  bottom: 0;
}

.footer-privacy,
.footer-info,
.footer-copy {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
}

.footer-privacy { display: inline-block; margin-bottom: 33px; font-weight: 400; }
.footer-info + .footer-info { margin-top: 6px; }
.footer-copy { margin-top: 8px; }
.sep { padding: 0 7px; font-size: 15px; }

.footer-top {
  position: absolute;
  right: 100px;
  bottom: 85px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: #000;
  color: #fff;
  font-size: 24px;
}

@media (max-width: 1600px) {
  .site-header { padding-inline: 5%; }
  .site-header__inner { grid-template-columns: 159px minmax(0, 700px) auto; gap: 30px; }
  .site-logo { width: 159px; }
  .site-nav { gap: 34px; font-size: 18px; }
  .site-nav__panel { min-width: 180px; }
  .site-actions { gap: 34px; }
  .mobile-menu__top { padding-inline: 5%; }
  .mobile-menu__nav {
    width: 90%;
    padding-top: 96px;
  }
  .sitemap-links { gap: 18px 58px; }
  .footer-inner { padding-inline: 5%; }
  .footer-top { right: 5%; }
}

@media (max-width: 1280px) {
  .site-nav {
        gap: 20px;
        font-size: 16px;
  }
  .footer-nav {
    gap: 30px;
    font-size: 16px;
}
}

@media (max-width: 1024px) {
  .site-header {
    height: 70px;
    padding: 13px var(--gutter) 0;
  }

  .site-header.is-scrolled {
    height: 70px;
    padding-top: 13px;
  }
  .site-header__inner {
    display: flex;
    height: 44px;
    align-items: center;
    gap: 14px;
  }
  .site-logo {
    width: 112px;
    height: 44px;
    min-height: 44px;
  }
  body:is(.about-page, .technology-page, .news-page, .certifications-page) .site-header:not(.is-scrolled) .site-logo {
    width: 112px;
  }
  .site-nav { display: none; }
  .site-actions { margin-left: auto; gap: 14px; padding-bottom: 0; }
  .lang-switcher__trigger,
  .lang-toggle {
    min-width: 70px;
    height: 40px;
    padding: 0 14px;
    font-size: 18px;
  }
  .lang-switcher__current {
    min-width: 0;
    height: auto;
  }
  .lang-switcher__menu {
    top: calc(100% + 10px);
    width: 70px;
    padding: 16px 0;
    border-radius: 17px;
  }
  .lang-switcher__option {
    min-height: 31px;
    font-size: 16px;
  }
  .menu-toggle { width: 44px; height: 44px; }
  .menu-toggle i { font-size: 28px; }
  .mobile-menu {
    grid-template-rows: 70px 1fr;
  }
  .mobile-menu__top {
    min-height: 70px;
    padding-inline: var(--gutter);
  }
  .mobile-menu .site-logo {
    width: 112px;
    height: 44px;
  }
  .mobile-menu__actions {
    gap: 14px;
  }
  .mobile-menu__close {
    width: 44px;
    height: 44px;
    font-size: 25px;
  }
  .mobile-menu__nav {
    width: 100%;
    padding: 42px var(--gutter) 70px;
  }
  .sitemap-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 28px 0;
  }
  .sitemap-section h2 {
    min-width: 0;
    font-size: 28px;
  }
  .sitemap-links {
    gap: 10px 28px;
  }
  .sitemap-link {
    min-height: 30px;
    font-size: 18px;
  }
  .subnav {
    left: var(--gutter);
    right: var(--gutter);
    top: 92px;
    height: auto;
    gap: 16px;
    row-gap: 10px;
    flex-wrap: wrap;
    --subnav-pad-x: 20px;
    padding: 20px var(--subnav-pad-x);
    overflow: visible;
    font-size: 15px;
  }
  .subnav__item {
    /* 고정 폭이라 좁은 화면에서 줄어들지 못해 넘쳤다. 남는 폭을 나눠 갖게 한다. */
    flex: 1 1 118px;
    width: auto;
    min-width: 0;
    min-height: auto;
  }
  .subnav__panel {
    min-width: min(250px, calc(100vw - 32px));
  }
  .subnav__divider {
    height: 24px;
  }
  .subnav__home, .subnav__item {
    min-height: auto;
}
}

@media (max-width: 768px) {
  .subnav {
    justify-content: center;
  }

  .subnav__home,
  .subnav > .subnav__divider,
  .subnav__group[data-subnav-level="section"] {
    display: none;
  }

  .subnav__group[data-subnav-level="current"] {
    flex: 1 1 auto;
    width: 100%;
  }

  .subnav__group[data-subnav-level="current"] .subnav__item {
    width: 100%;
  }

  /* 패널 폭을 .subnav 바와 정확히 맞춘다.
     이 그룹은 바의 content box 폭이라, 좌우 패딩만큼 밖으로 넓혀야 바와 같아진다. */
  .subnav__group[data-subnav-level="current"] .subnav__panel {
    left: calc(var(--subnav-pad-x) * -1);
    right: calc(var(--subnav-pad-x) * -1);
    width: auto;
    min-width: 0;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .subnav {
    gap: 10px;
    /* padding-inline: 12px; */
  }

  .subnav__item {
    width: clamp(108px, 31vw, 140px);
    gap: 10px;
  }
}

@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 46px;
  }
  .footer-logo {
    position: relative;
    margin-top: 64px;
  }
  .footer-left,
  .footer-right {
    min-height: auto;
    display: flex;
    flex-direction: column-reverse;
  }
  .footer-meta {
    position: relative;
    margin-top: 0px;
  }
  .footer-nav {
    flex-wrap: wrap;
    gap: 18px 30px;
    margin-bottom: 20px;
  }
  .footer-info {
    max-width: 100%;
    white-space: normal;
  }
  .footer-watermark {
    font-size: 50px;
    line-height: 55px;
}
    .footer-logo {
        margin-top: 30px;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .site-footer {
    min-height: auto;
}

  .sitemap-section {
    padding: 24px 0;
  }

  .sitemap-section h2 {
    font-size: 26px;
  }

  /* 1024px 구간에 min-width:70px/height:40px/font-size:18px 가 지정돼 있다.
     미디어쿼리는 우선순위를 올려주지 않으므로, 이 블록이 소스 순서상
     뒤에 있어야 덮어쓸 수 있다. */
  .lang-switcher__trigger,
  .lang-toggle {
    min-width: 50px;
    height: 30px;
    padding: 0 14px;
    font-size: 15px;
  }

  .footer-inner {
    display: block;
    min-height: auto;
    padding: 60px var(--gutter) 60px;
  }
  .footer-watermark {
    font-size: 30px;
    line-height: 50px;
  }
  .footer-logo {
    width: 170px;
    height: 74px;
    margin: 20px 0 0;
  }
  .footer-meta {
    margin-top: 0;
  }
  .footer-nav {
    display: none;
  }
  .footer-privacy,
  .footer-info,
  .footer-copy {
    font-size: 14px;
    line-height: 1.7;
    white-space: normal;
  }
  .footer-privacy {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-bottom: 20px;
  }
  .footer-top {
    right: var(--gutter);
    bottom: 42px;
    width: 48px;
    height: 48px;
  }
}

.chatbot {
  --chatbot-size: 80px;
  --chatbot-edge-right: 49px;
  --chatbot-edge-bottom: 40px;
  --chatbot-clear-bottom: 168px;
  --chatbot-current-bottom: var(--chatbot-edge-bottom);
  --chatbot-ease: var(--ease, cubic-bezier(.2, .7, .2, 1));
  --chatbot-primary: var(--primary, #ff6a00);
  --chatbot-font: var(--font-ko, "Pretendard", "Noto Sans", "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  position: fixed;
  right: calc(var(--chatbot-edge-right) + env(safe-area-inset-right, 0px));
  bottom: calc(var(--chatbot-current-bottom) + env(safe-area-inset-bottom, 0px));
  z-index: 100020;
  opacity: 1;
  isolation: isolate;
  transition: bottom .28s var(--chatbot-ease), opacity .2s var(--chatbot-ease), transform .25s var(--chatbot-ease);
}

.chatbot.is-footer-raised {
  --chatbot-current-bottom: var(--chatbot-clear-bottom);
}

body.is-menu-open .chatbot {
  opacity: 0;
  pointer-events: none;
}

.chatbot__toggle {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--chatbot-size);
  height: var(--chatbot-size);
  padding: 0;
  border-radius: 50%;
  color: var(--chatbot-primary);
  box-shadow: 0 0px 20px rgba(17, 17, 17, .14);
  transition: transform .25s var(--chatbot-ease), box-shadow .25s var(--chatbot-ease);
}

.chatbot__toggle:hover {
  box-shadow: 0 0px 20px rgba(17, 17, 17, .14);
  transform: translateY(-2px);
}

.chatbot__icon {
  position: absolute;
  inset: 0;
  width: var(--chatbot-size);
  height: var(--chatbot-size);
  opacity: 1;
  transform: scale(1) rotate(0deg);
  transition: opacity .24s var(--chatbot-ease), transform .28s var(--chatbot-ease);
  will-change: opacity, transform;
}

.chatbot__icon--close {
  opacity: 0;
  transform: scale(.82) rotate(-12deg);
}

.chatbot.is-open .chatbot__icon--open {
  opacity: 0;
  transform: scale(.82) rotate(12deg);
}

.chatbot.is-open .chatbot__icon--close {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.chatbot__panel {
  position: absolute;
  right: 0;
  bottom: calc(var(--chatbot-size) + 20px);
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 450px;
  height: min(600px, calc(100svh - var(--chatbot-current-bottom) - var(--chatbot-size) - 44px));
  max-height: calc(100svh - var(--chatbot-current-bottom) - var(--chatbot-size) - 44px);
  padding: 30px;
  border-radius: 20px;
  background: #eeeeee;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(.98);
  transition: opacity .28s var(--chatbot-ease), transform .28s var(--chatbot-ease);
}

.chatbot.is-open .chatbot__panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.chatbot__head {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 0 0 auto;
}

.chatbot__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: #fff;
}

.chatbot__brand span {
  display: block;
  width: 52px;
  height: 54px;
  background: url("../img/main/nsbs-chatbot-brand-logo.svg") no-repeat center / contain;
}

.chatbot__head p {
  margin: 0;
  color: #222;
  font-family: var(--chatbot-font);
  font-size: 20px;
  line-height: 30px;
  font-weight: 700;
  white-space: nowrap;
}

.chatbot__body {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  gap: 5px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
  scrollbar-width: thin;
}

.chatbot__row {
  display: flex;
  width: 100%;
}

.chatbot__row--bot { justify-content: flex-start; }
.chatbot__row--user { justify-content: flex-end; margin: 25px 0; }
.chatbot__row--spaced { margin-top: 20px; }

.chatbot__chip,
.chatbot__bubble,
.chatbot__action {
  font-family: var(--chatbot-font);
}

.chatbot__chip {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 15px 20px;
  border-radius: 0 15px 15px 15px;
  background: #fff;
  color: #222;
  font-size: 16px;
  line-height: 16px;
  text-align: left;
  white-space: normal;
}

button.chatbot__chip {
  max-width: 100%;
}

button.chatbot__chip:hover,
button.chatbot__chip:focus-visible {
  outline: none;
  color: var(--chatbot-primary);
}

button.chatbot__chip:disabled {
  cursor: default;
}

button.chatbot__chip:disabled:hover {
  color: #222;
}

.chatbot__chip--user {
  justify-content: flex-end;
  border-radius: 15px 0 15px 15px;
  background: var(--chatbot-primary);
  color: #fff;
}

.chatbot__bubble {
  max-width: 352px;
  padding: 15px 20px;
  border-radius: 0 15px 15px 15px;
  background: #fff;
  color: #222;
  font-size: 16px;
  line-height: 24px;
}

.chatbot__bubble p {
  margin: 0 0 10px;
}

.chatbot__bubble ul {
  margin: 0;
  padding-left: 18px;
}

.chatbot__bubble li + li {
  margin-top: 6px;
}

.chatbot__typing {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 46px;
  padding: 15px 18px;
  border-radius: 0 15px 15px 15px;
  background: #fff;
}

.chatbot__typing span {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--chatbot-primary);
  opacity: .35;
  animation: chatbotTyping 1s infinite ease-in-out;
}

.chatbot__typing span:nth-child(2) {
  animation-delay: .14s;
}

.chatbot__typing span:nth-child(3) {
  animation-delay: .28s;
}

@keyframes chatbotTyping {
  0%, 80%, 100% {
    opacity: .35;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-4px);
  }
}

.chatbot__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.chatbot__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 9px 14px;
  border: 1px solid var(--chatbot-primary);
  border-radius: 999px;
  background: #fff;
  color: var(--chatbot-primary);
  font-size: 14px;
  line-height: 14px;
  font-weight: 500;
}

button.chatbot__action {
  margin-top: 10px;
}

.chatbot__action:disabled {
  cursor: default;
  opacity: .55;
}

.chatbot__bubble--followup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.chatbot__bubble--followup p {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .chatbot {
    --chatbot-size: 64px;
    --chatbot-edge-right: var(--gutter, 6%);
    --chatbot-edge-bottom: 24px;
    --chatbot-clear-bottom: 176px;
  }

  /* 패널은 뷰포트에 고정한다.
     absolute 로 두면 컨테이닝 블록이 .chatbot(= 토글 64px)이라
     width/left/right 의 %(--gutter) 가 64px 기준으로 계산돼 패널이 찌그러진다.
     .chatbot 은 이미 position: fixed 라 좌표만 뷰포트 기준으로 다시 써 주면 된다. */
  .chatbot__panel {
    position: fixed;
    left: auto;
    right: var(--gutter, 6%);
    bottom: calc(var(--chatbot-current-bottom) + var(--chatbot-size) + 18px + env(safe-area-inset-bottom, 0px));
    width: min(450px, calc(100vw - (var(--gutter, 6%) * 2)));
    height: min(600px, calc(100svh - var(--chatbot-current-bottom) - var(--chatbot-size) - 40px));
    max-height: calc(100svh - var(--chatbot-current-bottom) - var(--chatbot-size) - 40px);
    padding: 22px;
    /* 푸터에서 챗봇이 위로 올라갈 때(is-footer-raised) 패널도 같이 부드럽게 따라 올라간다. */
    transition: opacity .28s var(--chatbot-ease), transform .28s var(--chatbot-ease), bottom .28s var(--chatbot-ease);
  }

  .chatbot__brand {
    flex-basis: 64px;
    width: 64px;
    height: 64px;
    border-radius: 16px;
  }

  .chatbot__brand span {
    width: 42px;
    height: 44px;
  }

  .chatbot__head {
    gap: 14px;
  }

  .chatbot__head p {
    font-size: 17px;
    line-height: 25px;
    /* 기본값이 nowrap 이라 좁은 폭에서 인사말이 패널 밖으로 삐져나간다. */
    white-space: normal;
  }

  .chatbot__chip,
  .chatbot__bubble {
    font-size: 15px;
    line-height: 22px;
  }
}

@media (max-width: 480px) {
  .chatbot {
    --chatbot-clear-bottom: 320px;
  }

  .chatbot__panel {
    left: var(--gutter, 6%);
    right: var(--gutter, 6%);
    width: auto;
    gap: 20px;
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chatbot,
  .chatbot__panel,
  .chatbot__toggle {
    transition: none;
  }
}
