/* html{
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
} */

header {
  width: 100vw;
  height: 104px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.34) 0%,
    rgba(0, 0, 0, 0) 100%
  );
}

.header-inner {
  width: 100%;
  padding: 32px 24px;
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 600;
}

h1.logo {
  width: 70px;
}

h1.logo a {
  display: block;
  width: 100%;
  height: 100%;
}

h1.logo img {
  width: 100%;
}

/* 기기 / 배경 색상 별 이미지 */
.logo-mobile {
  display: none;
}

.logo-color-mobile {
  display: none;
}

.logo-color-web {
  display: none;
}

.menu-btn {
  display: flex;
  width: 120px;
  margin-left: auto;
  color: #fff;
  background: transparent;
}

.menu-btn .trigger {
  width: 32px;
  height: 32px;
  margin-left: auto;
  position: relative;
}

.menu-btn .menu-txt {
  font-size: 20rem;
  font-weight: 500;
  padding: 2px 0;
}

.menu-btn .menu-txt span {
}

.menu-btn .menu-txt span:last-child {
  display: none;
}

.menu-btn .trigger span {
  display: inline-block;
  width: 32px;
  height: 3px;
  background-color: #fff;
  position: absolute;
  transition: all 0.3s;
}

.menu-btn .trigger span:nth-child(1) {
  top: 30%;
  left: 0;
}

.menu-btn .trigger span:nth-child(2) {
  top: 70%;
  left: 0;
}

.menu-btn.active .menu-txt span:first-child {
  display: none;
}

.menu-btn.active .menu-txt span:last-child {
  display: block;
}

.menu-btn.active .trigger span:nth-child(1) {
  top: 50%;
  transform: rotate(45deg);
}

.menu-btn.active .trigger span:nth-child(2) {
  top: 50%;
  transform: rotate(-45deg);
}

.gnb {
  position: absolute;
  top: 0;
  left: 100%;
  width: 100vw;
  height: 100vh;
  /* min-height: -webkit-fill-available; */
  padding: 104px 0px 80px 80px;
  background: url(/images/common/gnb-dna.png) no-repeat left center;
  background: radial-gradient(
    177.96% 100% at 100% 50%,
    #485cc1 1.96%,
    #0c2781 100%
  );
  background-size: contain;
  transition: all 1s;
  z-index: 500;
  opacity: 0;
}

.gnb-bg {
  width: 50%;
  height: 115%;
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
}

.gnb-bg img {
  width: 100%;
  height: 100%;
  position: absolute;
  right: 64px;
  object-fit: cover;
  object-position: right center;
  animation: upDown 3s 1s ease-in-out infinite;
}

@keyframes upDown {
  0% {
    transform: translateY(-11%);
  }

  50% {
    transform: translateY(-9%);
  }

  100% {
    transform: translateY(-11%);
  }
}

.gnb.active {
  left: 0;
  opacity: 1;
}

.gnb-inner {
  width: 100%;
  height: 100%;
  position: relative;
}

.gnb-con {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 50px;
  width: 50%;
  height: 100%;
  top: 0;
  right: 0;
  position: absolute;
}

.menu-con {
  width: 100%;
  height: 100%;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}

.menu {
  width: 100%;
  height: 80%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu li {
  font-size: 48rem;
  line-height: 56px;
  font-weight: 500;
}

.menu li a {
  width: 100%;
  display: block;
  text-align: left;
  color: #fff;
}

.menu li:last-child {
  margin-bottom: 0;
}

.link-menu {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
}

.link-menu .link-button {
  margin: 0 0 0 auto;
  display: flex;
  width: 250px;
  padding: 20px 80px 20px 40px;
  align-items: center;
  gap: 16px;
  border-radius: 100px 0px 0px 100px;
  background: #fff;

  & > img {
    height: 40px;

    &:last-child {
      height: 50px;
      aspect-ratio: 1/1;
    }
  }
}

.info {
  position: static;
  margin-right: 80px;
}

.info li {
  font-size: 16rem;
  color: #fff;
  text-align: right;
  margin-bottom: 4px;
}

.info li:last-child {
  margin-bottom: 0;
}

@media (max-width: 1179px) {
  .menu li a {
    font-size: 40rem;
    line-height: 40px;
  }
  .info li {
    font-size: 14rem;
    margin-bottom: 4px;
  }
}

@media (max-width: 1023px) {
  header .header-inner {
    padding: 24px;
  }

  .menu-con {
    height: 100%;
  }

  .gnb {
    padding-left: 0;
  }

  .gnb-bg {
    display: none;
  }

  header .gnb .menu li {
    width: 100%;
    text-align: center;
    font-size: 36rem;
    line-height: 40px;
  }

  .menu li a {
    text-align: center;
  }

  .info {
    width: 100%;
  }

  header .info li {
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    font-size: 12rem;
    line-height: 16px;
    margin-bottom: 4px;
  }

  .gnb-con {
    width: 100%;
    height: 100%;
    position: static;
  }
}

@media (max-width: 767px) {
  /* Header */
  header h1.logo {
    width: 70px;
  }

  header .logo-web {
    display: none;
  }

  header .logo-mobile {
    display: block;
  }

  header .menu-txt {
    display: none;
  }

  .gnb {
    /* 모바일에서 100vh 적용 시 하단부분 잘림 이슈 */
    /* 자바스크립트 구문 실행 전 --vh 를 1vh로 초기 설정 */
    height: calc(var(--vh, 1vh) * 100);
    align-items: flex-start;
    padding: 90px 0px 24px;
  }

  .gnb .menu {
    margin: auto;
    height: 100%;
    max-height: 400px;
    padding: 0;
    width: 209px;
    /* padding: 28px 0; */
  }

  .gnb .menu li a {
    font-size: 36rem;
  }

  .link-menu .link-button {
    width: 200px;
    padding: 12px 0px;
    justify-content: center;

    & > img {
      height: 32px;

      &:last-child {
        display: none;
      }
    }
  }
}
/* 다크모드에서 트리거 색상 흰색 유지 */
/* @media (prefers-color-scheme: dark) {
  .menu-btn .trigger span {
    background-color: #fff;
  }
} */
