:root {
  /* 헤더높이 */
  --header-height: 100px;
  --header-height-t: 80px;
  --header-height-m: 60px;

  /* 컬러세팅 */
  --gnb-font-color: var(--color-text);
  --gnb-bg-color: rgb(255 255 255 / 90%);

  --gnb-clean-font-color: #fff;
  --gnb-clean-bg-color: linear-gradient(
    to top,
    transparent 0%,
    rgb(0 0 0 / 30%) 100%
  );
  --clean-header-padding: 0;

  --side-gnb-font-color: #111;
  --side-gnb-bg-color: #fff;

  /* 로고사이즈 */
  --gnb-logo-size: 225px;
  --gnb-logo-size-t: 180px;
  --gnb-logo-size-m: 180px;
}

@keyframes gnb-effect {
  0% {
    transform: translate3d(0, 20px, 0);
  }

  100% {
    transform: translate3d(0, 0, 0);
  }
}

body.fixed {
  overflow: hidden;
}

#header {
  position: fixed;
  top: 0;
  background-color: var(--gnb-bg-color);
  color: var(--gnb-font-color);
  box-shadow: 0 0 10px rgb(0 0 0 / 5%);
  width: 100%;
  z-index: 999;
  transition: 0.5s all;
}

#header[mode="clean"] {
  background: var(--gnb-clean-bg-color);
  color: var(--gnb-clean-font-color);
  box-shadow: none;
}

#header.down {
  transform: translateY(-100%);
}

#header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(var(--container-scale) * 1%);
  margin: 0 auto;
  height: var(--header-height);
}

#header .logo {
  font-size: 0;
}

#header .logo img {
  width: var(--gnb-logo-size);
  min-width: var(--gnb-logo-size);
  max-width: var(--gnb-logo-size);
  display: block;
}

#header[mode="clean"] .logo img {
  width: calc(var(--gnb-logo-size) + 30px);
}

#header .header-gnb {
  display: flex;
  align-items: center;
  flex: 1;
}

#header .header-gnb .gnb {
  width: 100%;
}

#header .header-gnb .gnb .menu-depth0 {
  display: flex;
  justify-content: flex-end;
  margin: 0 min(4vw, 85px);
}

#header .header-gnb .gnb .item_depth0 > a {
  font-size: 20px;
  font-weight: 500;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 4vw;
  padding: 0 min(3.4vw, 65px);
  box-sizing: content-box;
}

#header .header-gnb .gnb .item_depth0 > a.active {
  font-weight: 700;
  color: var(--color-primary);
}

#header .header-gnb .gnb .menu-depth1 {
  position: absolute;
  background-color: #fff;
  border-top: 1px solid #eee;
  width: 100%;
  top: var(--header-height);
  left: 0;
  z-index: 1000;
  overflow: hidden;
  box-shadow: 10px 5px 5px rgb(0 0 0 / 4%);
}

#header .header-gnb .gnb .menu-depth1 .menu-depth1-content {
  display: grid;
  grid-template-columns: 500px 1fr;
  height: 360px;
}

#header .header-gnb .gnb .menu-depth1-content .menu-depth1-title {
  width: 100%;
  height: inherit;
  background-color: #ff7800;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#header .header-gnb .gnb .menu-depth1-content .menu-depth1-title:after {
  content: "";
  background: linear-gradient(45deg, #ff7800, #e51412);
  background-image: url(/assets/images/public/gnb_title_bg.jpg);
  background-size: cover;
  background-position: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#header .header-gnb .gnb .menu-depth1-content .menu-depth1-title p {
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
  color: #fff;

  position: relative;
  z-index: 1;
}

#header .header-gnb .gnb .menu-depth1-content > ul {
  padding: 50px 100px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

#header .header-gnb .gnb .menu-depth1-content > ul > li {
  max-width: 180px;
}

#header .header-gnb .gnb .item_depth1 > a {
  font-size: 18px;
  font-weight: 500;
  color: var(--gnb-font-color);
  margin-bottom: 12px;
}

#header .header-gnb .gnb .item_depth1 > a:hover {
  color: var(--color-primary);
}

#header .header-gnb .gnb .item_depth2 ~ .item_depth2 {
  margin-top: 8px;
}

#header .header-gnb .gnb .item_depth2 > a {
  font-size: 16px;
  font-weight: 400;
  color: var(--color-mute);
}

#header .extend-nav ul {
  display: flex;
  align-items: center;
  column-gap: 3.125vw;
}

#header .extend-nav ul li {
  font-size: 15px;
}

#header .extend-nav ul li .gnb-icon {
  --icon-size: 23px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  width: var(--icon-size);
  height: var(--icon-size);
  display: block;
  font-size: 0;
  flex: 1 0 auto;
}

#header[mode="clean"] .extend-nav ul li .gnb-icon {
  filter: invert(1);
}

#header .extend-nav ul li .gnb-icon.account {
  background-image: url(/assets/images/icons/icon_account.svg);
}

#header .gnb-toggle {
  z-index: 1000;
  cursor: pointer;
}

#header .gnb-toggle .toggle-bar {
  --toggle-size: 24px;
  --bar-height: 2px;
  position: relative;
  width: var(--toggle-size);
  height: var(--toggle-size);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: calc((var(--toggle-size) - var(--bar-height) * 3) / 3);
  transition-duration: 0.5s;
}

#header .gnb-toggle .toggle-bar .bars {
  width: 100%;
  height: var(--bar-height);
  background-color: var(--gnb-font-color);
  border-radius: 10px;
}

#header[mode="clean"] .gnb-toggle .toggle-bar .bars {
  background-color: #fff;
}

#header .gnb-toggle .toggle-bar .bars#bar2 {
  transition-duration: 0.8s;
  width: 90%;
}

#header .gnb-toggle .toggle-bar .bars#bar3 {
  width: 60%;
}

#header .gnb-toggle.active .toggle-bar .bars {
  position: absolute;
  transition-duration: 0.5s;
  background-color: var(--side-gnb-font-color);
}

#header .gnb-toggle.active .toggle-bar .bars#bar1 {
  width: 100%;
  transform: rotate(45deg);
  transition-duration: 0.5s;
}

#header .gnb-toggle.active .toggle-bar .bars#bar2 {
  transform: scaleX(0);
  transition-duration: 0.5s;
}

#header .gnb-toggle.active .toggle-bar .bars#bar3 {
  width: 100%;
  transform: rotate(-45deg);
  transition-duration: 0.5s;
}

#header .gnb-toggle.active .toggle-bar {
  transition-duration: 0.5s;
  transform: rotate(180deg);
  z-index: 2;
}

#header #sideNav.active {
  position: fixed;
  top: 0;
  width: 100vw;
  height: 100vh;
  transition: 0.5s all;
}

#header #sideNav .side-gnb {
  transform: translateX(100%);
  transition: 0.5s all;
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-color: var(--side-gnb-bg-color);
  z-index: 1000;
}

#header #sideNav.active .side-gnb {
  transform: translateX(0);
}

#header #sideNav .side-gnb .side-top .inr {
  height: 100%;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(var(--container-scale) * 1%);
  max-width: var(--container-width);
  margin: 0 auto;
}

#header #sideNav .side-gnb .side-logo img {
  width: var(--gnb-logo-size);
  display: block;
}

#header #sideNav .side-gnb .gnb {
  width: 100%;
}

#header #sideNav .gnb .menu-depth0 {
  padding: 80px 0;
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  overflow-y: auto;
  height: calc(100vh - var(--header-height));
  scrollbar-width: none;
}

#header #sideNav .gnb .menu-depth0::-webkit-scrollbar {
  display: none;
}

#header #sideNav .gnb .item_depth0 {
  display: flex;
  gap: 0 3.5vw;
}

#header #sideNav .gnb .item_depth0 ~ .item_depth0 {
  margin-top: 35px;
}

#header #sideNav .gnb .item_depth0 > a {
  display: block;
  width: 20%;
  color: var(--side-gnb-font-color);
  font-size: 46px;
  font-weight: 600;
}

#header #sideNav .gnb .item_depth0 > a.active {
  color: var(--color-primary);
  font-weight: 700;
}

#header #sideNav .gnb .menu-depth1 {
  grid-auto-flow: column;
  grid-template-rows: repeat(7, auto);
  flex: 1;
  max-width: 800px;
  display: none;
}

#header #sideNav .gnb nav .item_depth1 > a {
  font-size: 26px;
  font-weight: 600;
  color: #999;
  padding: 15px 0;
}

#header #sideNav .gnb nav .item_depth1 > a:hover,
#header #sideNav .gnb nav .item_depth1 > a.active {
  font-weight: 700;
  color: var(--color-primary);
}

#header .nav-background {
  transition: 0.5s all;
  position: fixed;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  opacity: 0;
  z-index: 0;
  display: none;
}

#header .nav-background.active {
  opacity: 1;
  z-index: 20;
  display: block;
}

#header .gnb a {
  display: block;
  transition: all 0.35s;
}

#header .gnb .menu-depth1 {
  display: none;
}

#header .gnb .item_depth1 > a.active {
  font-weight: 700;
  color: var(--color-primary);
}

#header #searchMusic.search-input {
  --input-border: #e5e5e5;
  --input-border-radius: 50px;
  --input-padding: 0 45px;
  --input-font-size: 16px;
  --input-height: 50px;
  --input-background-color: transparent;
  --placeholder-font-size: var(--input-font-size);
  --placeholder-color: #aaa;
  position: relative;
  width: 300px;
}

#header[mode="clean"] #searchMusic.search-input {
  --input-border: #fff;
  --placeholder-color: #fff;
}

#header #searchMusic.search-input:before {
  right: unset;
  left: 20px;
}

#header[mode="clean"] #searchMusic.search-input:before {
  filter: invert(1) brightness(1);
}

#header[mode="clean"] #searchMusic.search-input .search-value {
  color: #fff;
}

#header #searchMusic.search-input .search-reset {
  right: 20px;
}

/* Desktop ( 1024px ~)*/
@media all and (min-width: 1024px) {
  #header[mode="clean"],
  #header[mode="clean"] #sideNav .side-gnb .side-top {
    padding-top: var(--clean-header-padding);
  }
}

@media all and (max-width: 1599px) {
  #header .header-gnb .gnb .menu-depth0 {
    margin: 0 3vw;
  }
  #header .header-gnb .gnb .item_depth0 > a {
    padding: 0 2.5vw;
  }
}

/* Laptop ( 1024px ~ 1440px)*/
@media all and (min-width: 1024px) and (max-width: 1440px) {
  #header {
    --container-scale: 95;
  }

  #header .header-gnb .gnb .menu-depth0 {
    display: none;
  }

  #header .header-gnb .gnb .item_depth0 > a {
    font-size: 17px;
    min-width: 3.4em;
  }

  #header .extend-nav ul li a {
    font-size: 14px;
  }

  #header #sideNav .gnb .item_depth0 > a {
    font-size: 40px;
  }

  #header #sideNav .gnb nav .item_depth1 > a {
    font-size: 24px;
  }
}

/* Tablet ( 768px ~ 1023px)*/
@media all and (min-width: 768px) and (max-width: 1023px) {
  :root {
    --header-height: var(--header-height-t);
    --gnb-logo-size: var(--gnb-logo-size-t);
  }

  #header .header-gnb {
    display: none;
  }

  #header #sideNav .gnb .menu-depth0 {
    padding: 60px 0;
  }

  #header #sideNav .gnb .item_depth0 {
    display: block;
  }

  #header #sideNav .gnb .item_depth0 > a {
    width: 100%;
    font-size: 38px;
  }

  #header #sideNav .gnb .menu-depth1 {
    max-width: 500px;
    margin: 0 auto;
    margin-top: 20px;
  }

  #header #sideNav .gnb nav .item_depth1 > a {
    font-size: 22px;
    padding: 12px 0;
  }

  #header #sideNav .gnb .item_depth0 > a,
  #header #sideNav .gnb nav .item_depth1 > a {
    text-align: center;
  }
}
@media all and (max-width: 1023px) {
  #header .gnb a {
    text-align: center;
    color: #999999;
  }
  .menu-depth1-title {
    display: none;
  }
  #header #sideNav .gnb nav .item_depth1 > a {
    color: #333333;
  }
}

/* Mobile ( ~ 767px)*/
@media all and (max-width: 768px) {
  :root {
    --header-height: var(--header-height-m);
    --gnb-logo-size: var(--gnb-logo-size-m);
  }
  #header.down {
    transform: none;
  }

  #header .header-gnb {
    display: none;
  }

  #header #sideNav .gnb .menu-depth0 {
    padding: 45px 0 80px;
  }

  #header #sideNav .gnb .item_depth0 {
    display: block;
  }

  #header #sideNav .gnb .item_depth0 ~ .item_depth0 {
    margin-top: 25px;
  }

  #header #sideNav .gnb .item_depth0 > a {
    width: 100%;
    font-size: 26px;
  }

  #header #sideNav .gnb .menu-depth1 {
    margin-top: 20px;
    grid-template-columns: repeat(1, 1fr);
    grid-template-rows: unset;
    grid-auto-flow: unset;
  }

  #header #sideNav .gnb nav .item_depth1 > a {
    font-size: 18px;
  }

  #header #sideNav .gnb .item_depth0 > a,
  #header #sideNav .gnb nav .item_depth1 > a {
    text-align: center;
  }

  #searchMusic {
    display: none;
  }
}
