.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 99;
  background: var(--primary-color);
  color: #ffffff;
}

.header.header__bg__white {
  background: #fff;
  color: #000000;
}

.header.header__bg__white.on_hover {
  background: var(--primary-color);
  color: #fff;
}

.header .layout__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.header__logo img {
  height: 46px;
}

.header__bg__white .header__logo img {
  content: url('/1x/common/logo-b.png');
}

.header.on_hover .header__logo img {
  content: url('/1x/common/logo-w.png') !important;
}

.header__lang {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.header__lang > li {
  position: relative;
}

.header__lang > li > a {
  color: inherit;
  display: block;
  padding: 0.5rem 1rem;
}

.header__lang > li:hover > a {
  background: var(--point-color);
  color: #fff;
}

.header__lang .header__lang_sub {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 100%;
  transform: translateX(-50%);
  background: #fff;
  display: none;
  z-index: 999;
}

.header__lang .header__lang_sub li a {
  display: block;
  padding: 0.5rem 1rem;
  color: #000;
  white-space: nowrap;
}

.header__lang .header__lang_sub li a:hover {
  background: var(--point-color);
  color: #fff;
}

.header__lang > li:hover .header__lang_sub {
  display: block;
}

/* header__gnb */

.header__gnb {
  display: flex;
  align-items: center;
  gap: 100px;
  font-size: 1.25rem;
  font-weight: 600;
}

.header__gnb_menu {
  display: flex;
  gap: 100px;
  position: relative;
}

.header.header__bg__white.on_hover .header__gnb_menu a:hover {
  color: var(--point-color);
}

.header__gnb_sub {
  position: absolute;
  top: 80px;
  display: none;
}

.header__gnb_sub li {
  margin-bottom: 1rem;
  font-weight: 400;
}

.header__gnb_user {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header__gnb_user_btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 12px;
  height: 11px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  transform: translateY(-1px);
}

.header__gnb_user_btn .bar {
  display: block;
  height: 1px;
  width: 100%;
  background-color: #fff;
}

.header__gnb_user_btn .bar:nth-child(2) {
  transform: translateX(2px);
}

.header.header__bg__white .header__gnb_user_btn .bar {
  background-color: #000000;
}

.header.header__bg__white.on_hover .header__gnb_user_btn .bar {
  background-color: var(--point-color);
}


/* 서브 메뉴 열릴 때 */
.header.on_hover {
  background: var(--primary-color);
}

.header.on_hover .header__gnb_user_btn .bar {
  background-color: var(--point-color);
}

.header.on_hover .header__gnb,
.header.on_hover .header__gnb_user_btn {
  color: #fff;
}

.header__sub__bg {
  width: 100%;
  height: 240px;
  background: var(--primary-color);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  display: none;
}


.header__gnb_menu a {
  color: inherit;
  transition: 0.3s;
}

/* hover 시 색상 유지 (JS에서 .on_hover 붙음) */
.header.on_hover .header__gnb_menu a:hover,
.header.on_hover .header__gnb_menu .header__gnb_sub a:hover {
  color: var(--point-color);
}


.header__gnb_menu > li:hover > a {
  color: var(--point-color);
}

/* ===== Responsive ===== */

/* 1440px ↓ */
@media (max-width: 1440px) {
  .header__gnb {
    gap: 80px;
    font-size: 1.125rem;
  }

  .header__gnb_menu {
    gap: 80px;
  }
}

/* 1280px ↓ */
@media (max-width: 1280px) {
  .header .layout__header {
    height: 72px;
  }

  .header__logo img {
    height: 40px;
  }

  .header__gnb {
    gap: 60px;
    font-size: 1.05rem;
  }

  .header__gnb_menu {
    gap: 60px;
  }

  /* 드롭다운 위치 보정 */
  .header__gnb_sub {
    top: 72px;
  }
}

/* 1024px ↓ */
@media (max-width: 1024px) {
  .header .layout__header {
    padding: 0 16px;
  }

  .header__logo img {
    height: 38px;
  }

  .header__gnb {
    gap: 40px;
    font-size: 1rem;
  }

  .header__gnb_menu {
    gap: 40px;
  }

  .header__gnb_sub {
    top: 72px;
  }
}

/* 768px ↓ : 모바일 전환 — 언어/햄버거는 유지, GNB는 접기 */
@media (max-width: 768px) {
  .header .layout__header {
    height: 64px;
  }

  .header__logo img {
    height: 34px;
  }

  /* GNB 접기 */
  .header__gnb_menu {
    display: none;
  }

  .header__sub__bg {
    display: none;
  }

  /* 언어 드롭다운(ENG/KOR)은 계속 보이게 */
  .header__lang > li > a {
    padding: .5rem .75rem;
  }

  .header__lang .header__lang_sub li a {
    padding: .5rem .75rem;
  }
}

/* 390px ↓ : 초소형 기기 */
@media (max-width: 390px) {
  .header .layout__header {
    height: 56px;
  }

  .header__logo img {
    height: 30px;
  }

  .header__lang > li > a {
    padding: .4rem .6rem;
  }

  .header__gnb_user {
    gap: .75rem;
  }
}

/* ===== Drawer Base ===== */
body.no-scroll {
  overflow: hidden;
}

.gnb-drawer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.gnb-drawer.is_open {
  display: block;
}

.gnb-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .4);
  opacity: 0;
  transition: opacity .2s ease;
}

.gnb-drawer.is_open .gnb-drawer__overlay {
  opacity: 1;
}

.gnb-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 360px;
  max-width: 86%;
  background: #0f1216;
  color: #fff;
  transform: translateX(100%);
  transition: transform .25s ease;
  display: flex;
  flex-direction: column;
}

.gnb-drawer.is_open .gnb-drawer__panel {
  transform: translateX(0);
}

.gnb-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.gnb-drawer__logo img {
  height: 26px;
  display: block;
}

.gnb-drawer__close {
  background: none;
  border: 0;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.gnb-drawer__nav {
  overflow: auto;
  padding: 8px 12px 24px;
}

.gnb-drawer__menu,
.gnb-drawer__menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gnb-drawer__item {
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.gnb-drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 8px;
  gap: 8px;
  background: none;
  border: 0;
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.gnb-drawer__link > span {
  flex: 1 1 auto;
}

.gnb-drawer__caret {
  font-size: 12px;
  opacity: .8;
}

.gnb-drawer__submenu {
  display: none;
  padding: 0 8px 12px 8px;
}

.gnb-drawer__submenu a {
  display: block;
  padding: 10px 6px;
  color: #d7d7d7;
  text-decoration: none;
}

.gnb-drawer__submenu a:hover {
  color: #fff;
}

.gnb-drawer__item.is_open .gnb-drawer__submenu {
  display: block;
}

.gnb-drawer__item.has_no_sub .gnb-drawer__caret {
  display: none;
}

.gnb-drawer__lang {
  display: flex;
  gap: 8px;
  margin: 18px 8px 0;
}

.gnb-drawer__lang a {
  display: inline-block;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
}


/* 데스크톱에서도 원하면 사용 가능 */
@media (min-width:1025px) {
  .gnb-drawer__panel {
    width: 420px;
  }
}