.gn-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  min-height: 12.1rem;
  background-color: rgba(16, 30, 42, 0.01);
  padding: 2.2rem;
  z-index: 9999;
  backdrop-filter: blur(0.1rem);
}

.gn-mobile-topbar {
  display: none;
}

.gn-topbar {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 clamp(1.6rem, 3vw, 4rem);
}

.logo {
  width: 12.3rem;
  height: inherit;
}

.logo img {
  width: 100%;
  height: 100%;
}

.nav-container {
  width: 55%;
}

nav {
  width: 100%;
  height: 100%;
  display: flex;
  padding-top: 2.4rem;
}

.gnb {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  list-style-type: none;
}

.gnb .gnb-item {
  width: 100%;
  min-width: 9rem;
  height: 100%;
  position: relative;
  text-align: center;
  padding-bottom: 3.6rem;
}

.gnb .gnb-item .gnb-item-name {
  position: relative;
  width: 100%;
  font-family: "Inter", sans-serif;
  color: var(--main-font-color);
  text-decoration: none;
  font-size: 1.4rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gnb .gnb-item:not(.aboutus) .gnb-item-name::after {
  position: absolute;
  content: "";
  width: 0.323rem;
  height: 0.323rem;
  left: 50%;
  top: calc(100% + 1.6rem);
  background: var(--main-font-color);
  transform: rotate(36.55deg);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.gnb:hover .gnb-item:not(.aboutus) .gnb-item-name::after {
  opacity: 1;
}

.gnb .aboutus .gnb-item-name {
  font-family: "Modern No. 20", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.5rem;
}

.gnb .aboutus .gnb-item-name::after {
  position: absolute;
  content: "";
  width: 0.323rem;
  height: 0.323rem;
  left: 50%;
  top: calc(100% + 1.6rem);
  background: var(--main-font-color);
  box-shadow: 0px 0px 12.2059px var(--main-font-color),
    0px 0px 6.97482px var(--main-font-color),
    0px 0px 4.06865px var(--main-font-color),
    0px 0px 2.03432px var(--main-font-color),
    0px 0px 0.581235px var(--main-font-color),
    0px 0px 0.290618px var(--main-font-color);
  transform: rotate(36.55deg);
}

.gnb .submenu {
  overflow: hidden;
  max-height: 0;
  flex-direction: column;
  list-style-type: none;
  text-align: center;
  transition: max-height 0.5s ease;
  transform: translateY(3.2rem);
}

.gnb:hover .submenu {
  max-height: 50rem;
}

.gnb .submenu li {
  position: relative;
  padding: 0.5rem;
}

.gnb .submenu li a {
  color: var(--main-font-color);
  text-decoration: none;
  font-family: "Inter", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.5rem;
  text-align: center;
}

.gnb .submenu li::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  content: "";
  width: 7.2rem;
  height: 0.05rem;
  border-bottom: 0.05rem solid rgba(193, 157, 107, 0.5);
}

.gnb .submenu li:last-child::after {
  content: "";
  border-bottom: none;
}

.header-lang.pc-only {
  display: block;
}

.header-etc {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-top: 2.4rem;
}

.sign {
  display: flex;
  gap: 1rem;
  color: var(--white);
}

.signBtn a {
  font-family: "Inter", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.5rem;
  text-align: right;
  color: var(--main-font-color);
  text-decoration: none;
}

.signupBtn {
  position: relative;
}

.signupBtn::before {
  content: "";
  position: absolute;
  left: -12.5%;
  top: 50%;
  transform: translateY(-50%);
  width: 0.1rem;
  height: 0.6rem;

  background-color: var(--main-font-color);
}

.header-lang {
  position: relative;
}

.active-lang.drop .lang-btn {
  display: flex;
}

.active-lang {
  font-family: "Modern No. 20", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.3rem;
  background-color: transparent;
  border: none;
  text-decoration: underline;
  color: var(--main-font-color);
  cursor: pointer;
  text-decoration: underline;
}

.lang-btn {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 1;
  transform: translateX(-50%);
  display: none;
  flex-direction: column;
  background-color: var(--background-color);
  cursor: pointer;
  border: 0.1rem solid var(--main-font-color);
}

.lang-btn button {
  font-family: "Modern No. 20", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.3rem;
  color: var(--main-font-color);
  background-color: var(--background-color);
  border: none;
  cursor: pointer;
  padding: 0.8rem 1rem;
}

.lang-btn button:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .gn-header {
    width: 100%;
    min-height: 4.8rem;
    padding: 1.6rem clamp(1.6rem, 3vw, 4rem);
  }

  .gn-mobile-topbar {
    width: 100%;
    display: flex;
    justify-content: space-between;
  }

  .gn-topbar {
    width: 35%;
    height: 100dvh;
    max-width: 15rem;
    min-width: 13.1rem;
    flex-direction: column;
    align-items: flex-end;
    background-color: rgba(16, 30, 42, 0.8);
    padding: 1.6rem 1.6rem 1.6rem 0;
    position: absolute;
    top: 0;
    right: 0;
    transform: translateX(100%);
    transition: transform 0.5s ease;
  }

  .gn-topbar.show {
    transform: translateX(0%);
    display: flex;
    z-index: 9999;
  }

  .menu {
    background-color: transparent;
    border: none;
    font-family: "Modern No. 20", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 2.4rem;
    line-height: 1.5rem;
    text-align: right;
    color: var(--main-font-color);
    position: relative;
    cursor: pointer;
  }

  .close {
    justify-content: flex-end;
    width: 100%;
    font-family: "Pretendard", sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.2rem;
    text-align: right;
    color: var(--main-font-color);
    padding: 1rem 0;
  }

  .nav-container {
    width: 100%;
  }

  nav {
    width: 100%;
    height: auto;
  }

  .gnb {
    width: 100%;
    flex-direction: column;
    gap: 1.6rem;
  }

  .gnb .submenu {
    margin: 1.6rem 0;
    max-height: 0;
    transform: translateY(1.6rem);
  }

  .gnb:hover .submenu {
    opacity: 1;
    max-height: 0;
  }

  .gnb-item.active .submenu {
    max-height: 10rem;
  }

  .gnb .submenu li a {
    text-align: right;
  }

  .gnb .gnb-item {
    min-width: auto;
    height: auto;
    padding: 0;
  }

  .gnb .gnb-item:not(.aboutus) .gnb-item-name::after {
    top: calc(100% + 2rem);
  }

  .gnb .gnb-item:not(:last-child) .gnb-item-name::after {
    opacity: 1;
    left: auto;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .gnb:hover .gnb-item:last-child .gnb-item-name::after {
    opacity: 0;
  }

  .gnb .aboutus .gnb-item-name::after .gnb .gnb-item a {
    font-style: normal;
    font-weight: 200;
    font-size: 1.4rem;
    line-height: 1.7rem;
    text-align: right;
    font-family: "Inter", sans-serif;
  }

  .gnb .gnb-item a {
    height: auto;
  }

  .gnb .gnb-item .gnb-item-name {
    justify-content: flex-end;
    height: auto;
    font-weight: 200;
    font-size: 1.4rem;
  }

  .gnb .aboutus .gnb-item-name {
    font-family: "Inter", sans-serif;
    font-style: normal;
    font-weight: 200;
    font-size: 1.4rem;
    line-height: 17px;
    text-align: right;
  }

  .gnb .aboutus .gnb-item-name::after {
    content: "";
    box-shadow: none;
  }

  .gnb .submenu li {
    display: flex;
    justify-content: flex-end;
    padding: 0.6rem 0;
  }

  .gnb .submenu li::after {
    transform: none;
    left: auto;
    right: 0;
    width: 70%;
  }

  .active-lang {
    margin-bottom: 0.8rem;
  }

  .lang-btn {
    top: calc(0% - 12rem);
  }

  .header-etc {
    margin-bottom: 0.5rem;
  }
}
