.header {
  /* 헤더 높이 */
  --header-height: 90px;

  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  color: #ffffff;

  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  height: var(--header-height);
}

/* header inner 크기 관리 */
.header__inner {
  max-width: 1500px;
  padding: 0 0px;
  margin: 0 auto;
}

/* @media (max-width: 1200px) {
  .header__inner {
    padding: 0 40px;
  }
}

@media (max-width: 992px) {
  .header__inner {
    padding: 0 30px;
  }
}

@media (max-width: 768px) {
  .header__inner {
    padding: 0 20px;
  }
}

@media (max-width: 480px) {
  .header__inner {
    padding: 0 15px;
  }
} */

/* (선택) 가로 길이 지정 */
/* 각각 설정은 html 순서대로 css 정렬 */
/* 단 네비게이션은 복잡하므로 최하단 작성 */
.header__logo {
  width: 400px;
}

.header__nav {
  flex: 1;
}

.header__btn__global {
  /**/
}

.header__btn__menu {
  width: 80px;
}

/* header__logo */
.header__logo {
  display: flex;
  padding-left: 70px;
}

.header__logo a {
  position: relative;
  z-index: 100;
}

.header__logo img {
  height: 45px;
}

/* header__btn__global */
.header__btn__global {
  position: relative;
  border: 1px solid #fff;
  border-radius: 10px;
  width: 50px;
  height: 26px;
  margin-top: 2px;
  transition: background-color .2s;
}

.header__btn__global__now {
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header__btn__global__list {
  position: absolute;
  left: -1px;
  top: 100%;
  opacity: 0;
  visibility: hidden;
  width: 50px;
  height: 0;
  background-color: #0f1b3d;
  text-align: center;
  border-radius: 0 0 10px 10px;
  transition: all .2s;
}

.header__btn__global__list li {
  padding: 2px 0;
}

.header__btn__global:hover {
  border-radius: 10px 10px 0 0;
  border: 1px solid #0f1b3d;
  background-color: #0f1b3d;
}

.header__btn__global:hover .header__btn__global__list {
  visibility: visible;
  opacity: 1;

  height: 48px;
}

/* header__btn__menu */
.header__btn__menu {
  display: flex;
  justify-content: start;
  align-items: center;
}

.header__btn__sitemap {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 16px;
  cursor: pointer;
  position: relative;
  z-index: 100;
}

.header__btn__sitemap .bar {
  display: block;
  width: 100%;
  height: 1px;
  background-color: #ffffff;
  transition: 0.3s ease;
  transform-origin: center center;
}

/* header__nav */
/* 대메뉴 */
.header__gnb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(40px, 7vw, 80px);
  height: var(--header-height);

  font-size: 1.125rem;
  font-weight: 500;

  transition: gap 1s;
}

/* 서브메뉴 */
.header__sub {
  position: absolute;
  top: 100%;
  left: 0;
  top: var(--header-height);
  width: 100%;
  height: 160px;
  background: #ffffff;
  border-top: 1px solid #eee;

  font-size: 1.125rem;
  font-weight: 400;
}

.header__sub__wrap {
  position: relative;
  width: 100%;
  height: 100%;
}

.header__sub__list {
  position: absolute;
  top: 0;
  height: 100%;
  text-align: center;
  padding-top: 16px;
}

.header__sub__list li {
  padding: 10px 0;
}

/* sitemap__wrap */
.sitemap__wrap {
  --color--smpoint: #ff593b;
  --color--smbg: #0a0a0a;

  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--color--smbg);
  color: #fff;
  z-index: 99;
  overflow-y: auto;
  overflow-x: hidden;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

.sitemap__box {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 8vw;
  box-sizing: border-box;
  overflow: hidden;
}

.sitemap__deco {
  position: absolute;
  left: -50px;
  bottom: -50px;
  width: 600px;
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}

.sitemap {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.sitemap__list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 80px 40px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.sitemap__list > li {
  position: relative;
  counter-increment: sitemap-counter;
}

.sitemap__list > li::before {
  content: "0" counter(sitemap-counter);
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  color: var(--color--smpoint);
  margin-bottom: 25px;
  letter-spacing: 0.2em;
  font-weight: 600;
}

.sitemap__list > li > a {
  display: inline-block;
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: -0.02em;
  margin-bottom: 35px;
  transition: all 0.3s ease;
}

.sitemap__list > li > a::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: var(--color--smpoint);
  margin-top: 12px;
  transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.sitemap__list > li:hover > a {
  color: var(--color--smpoint);
}

.sitemap__list > li:hover > a::after {
  width: 100%;
}

.sitemap__sublist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sitemap__sublist li {
  margin-bottom: 16px;
}

.sitemap__sublist li a {
  font-size: 1.1rem;
  color: #aaa;
  text-decoration: none;
  font-weight: 400;
  transition: all 0.3s;
  display: inline-block;
}

.sitemap__sublist li a:hover {
  color: #fff;
  padding-left: 10px;
}

/* =========================
   1600
========================= */
@media (max-width:1600px) {

  .sitemap__box {
    padding: 80px 6vw;
  }

}

/* =========================
   1440
========================= */
@media (max-width:1440px) {

  .sitemap__list {
    grid-template-columns: repeat(4, 1fr);
    gap: 70px 30px;
  }

  .sitemap__deco {
    width: 500px;
  }

}

/* =========================
   1024
========================= */
@media (max-width:1024px) {

  .sitemap__box {
    padding: 80px 5vw;
  }

  .sitemap__list {
    grid-template-columns: repeat(3, 1fr);
    gap: 60px 30px;
  }

  .sitemap__list > li > a {
    font-size: 1.6rem;
  }

  .sitemap__sublist li a {
    font-size: 1rem;
  }

  .sitemap__deco {
    width: 420px;
    left: -80px;
  }

}

/* =========================
   768
========================= */
@media (max-width:768px) {

  .sitemap__box {
    align-items: flex-start;
    padding: 120px 6vw 80px;
  }

  .sitemap__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 50px 25px;
  }

  .sitemap__list > li::before {
    margin-bottom: 18px;
  }

  .sitemap__list > li > a {
    font-size: 1.5rem;
    margin-bottom: 25px;
  }

  .sitemap__sublist li {
    margin-bottom: 12px;
  }

  .sitemap__deco {
    width: 320px;
    left: -120px;
    bottom: -120px;
  }

}

/* =========================
   480
========================= */
@media (max-width:480px) {

  .sitemap__box {
    padding: 90px 24px 60px;
  }

  .sitemap__list {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* 숫자 제거 */
  .sitemap__list > li::before {
    display: none;
  }

  .sitemap__list > li > a {
    font-size: 1.35rem;
    margin-bottom: 14px;
  }

  .sitemap__sublist li {
    margin-bottom: 8px;
  }

  .sitemap__sublist li a {
    font-size: 0.9rem;
  }

  .sitemap__deco {
    width: 180px;
    left: -70px;
    bottom: -70px;
    opacity: 0.05;
  }

}

/* *****************************************

              *** Active ***
    hover, scroll 에 따른 header 변경 요소

****************************************** */

/* .header.hovered,
.header.scrolled {
  color: #000000;
  background-color: #ffffff;
} */

/* .header.hovered .header__gnb,
.header.scrolled .header__gnb,
.header.hovered .header__btn,
.header.scrolled .header__btn {
  color: #000;
} */

.header.hovered .header__gnb {
  gap: clamp(40px, 7vw, 100px);
}

.header.hovered .header__sub,
.header.scrolled .header__sub {
  color: #000;
}

/* .header.hovered .header__btn__sitemap .bar,
.header.scrolled .header__btn__sitemap .bar {
  background-color: #000000;
} */

/* active 시 (열릴 때) */
.header__btn__sitemap.active .bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.header__btn__sitemap.active .bar:nth-child(2) {
  opacity: 0;
}

.header__btn__sitemap.active .bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* active면 색상 변경 */
.header__btn__sitemap.active .bar {
  background-color: #ffffff !important;
}

/* *****************************************

              *** media ***
        브레이크 포인트 반응형 제어   

****************************************** */

/* *****************************************

              *** media ***
        브레이크 포인트 반응형 제어   

****************************************** */

@media (max-width: 1600px) {

  .header__logo {
    width: 320px;
  }

  .header__logo {
    padding-left: 40px;
  }

}

@media (max-width: 1440px) {

  .header__gnb {
    gap: clamp(30px, 5vw, 60px);
    font-size: 1rem;
  }

  .header__logo img {
    height: 32px;
  }

}

@media (max-width: 1024px) {

  /* GNB 숨김 */
  .header__nav {
    display: none;
  }

  /* 로고 영역 축소 */
  .header__logo {
    width: auto;
    padding-left: 30px;
  }

  /* 글로벌 버튼 위치 유지 */
  .header__btn__global {
    margin-left: auto;
  }

}

@media (max-width: 768px) {

  .header {
    --header-height: 70px;
  }

  .header__logo {
    padding-left: 20px;
  }

  .header__logo img {
    height: 28px;
  }

  .header__btn__menu {
    width: 60px;
  }

}

@media (max-width: 480px) {

  .header {
    --header-height: 60px;
  }

  .header__logo {
    padding-left: 16px;
  }

  .header__logo img {
    height: 24px;
  }

  .header__btn__menu {
    width: 50px;
  }

}