html {
  font-size: 62.5%;
}

main {
  margin-top: 100px;
}

@media all and (max-width: 767px) {
  html {
    font-size: 40%;
  }
  
  main {
    margin-top: 70px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  html {
    font-size: 50%;
  }
}


#gnb {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  background-color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
}

#gnb #gnbWrap>div {
  height: 100%;
}

.logo {
  width: 150px;
  display: block;
  height: auto;
  flex-shrink: 0;
}

.logo .img-container {
  width: 100%;
  height: 100%;
}

.logo .img-container img {
  width: 100%;
  height: auto;
}

#navigator ul li {
  height: 100%;
}

#navigator .nav-menu {
  height: 100%;
  font-size: 1.6rem;
  color: var(--color-black);
  cursor: default;
}

#navigator .nav-menu .nav-menu-child {
  display: flex;
  flex-direction: column;
  background-color: rgba(255, 255, 255, 0.9);
  position: absolute;
  top: 100px;
  left: 50%;
  transform: translate3d(-50%, 0, 0);
  width: 150%;
  height: fit-content;
  padding: 14px 22px;
  transition: transform 0s ease, opacity .4s ease-out, all .4s ease-out;

  & li {
    line-height: 2.5;
  }
}

#navigator .nav-menu .nav-menu-child._bt {
  width: 190%;
}

#navigator .nav-menu .nav-menu-child.hidden { 
  opacity: 0;
  visibility: hidden;
  z-index: -1;
  transform: translate3d(-50%, -15px, 0);
}

#navigator .nav-menu .nav-menu-child.active {
  opacity: 1;
  visibility: visible;
  z-index: 999;
}

#hamburger {
  position: absolute;
  padding: 0;
  top: 50%;
  transform: translateY(-43%);
  width: fit-content;
  height: fit-content;
  cursor: pointer;
}

.full-nav.hidden {
  height: 0;
  opacity: 0;
  visibility: hidden;
  z-index: -99;
}

.full-nav {
  width: 100%;
  height: 100svh;
  opacity: 1;
  visibility: visible;
  z-index: 999;
  position: fixed;
  top: 0;
  left: 0;
  background-color: #fff;
  display: flex;
  flex-direction: column;
}

.full-nav .full-nav-top {
  width: 100%;
  height: 100px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.full-nav .full-nav-item-wrap {
  display: flex;
}

.closeFullNavBtn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}

.full-nav-item {
  align-items: flex-start;
}

.full-nav-item:not(.full-nav-item:nth-last-of-type(1)) {

  @media screen and (max-width: 691px) {
    margin-right: 0;
  }
}

.full-nav-item li {
  font-size: 1.4rem;
  line-height: 28px;

  @media screen and (min-width: 692px) and (max-width: 1024px) {
  }
}

.full-nav-item._skin {
  height: 500px;
  flex-wrap: wrap;
}

.full-nav-item.full-nav-gnb {
  height: fit-content;
}

.full-nav-item.full-nav-gnb li {
  letter-spacing: -1px;
  font-size: 1.4rem;

  @media screen and (min-width: 692px) and (max-width: 1024px) {
  }
}

.full-nav-item.full-nav-gnb li::before,
.full-nav-item.full-nav-gnb li._hvChild p::before {
  content: url(../images/common/icon-square.svg);
  margin-right: 18px;
}

.full-nav-item.full-nav-gnb li._hvChild::before,
.full-nav-item.full-nav-gnb .haveChildMenu li::before {
  display: none;
}

.full-nav-item.full-nav-gnb .haveChildMenu li {
  padding-left: 1vw;
  line-height: 3;
}

.full-nav-item.full-nav-gnb .haveChildMenu li a {
  font-size: 15px;
}

.full-nav-item-title {
  line-height: 28px;
  font-size: 1.8rem;
  font-family: 'UDPMincho bold';
  margin-bottom: 7px;

  @media screen and (min-width: 692px) and (max-width: 1024px) {
    line-height: 1.7;
  }
}

#headFloat {
  position: absolute;
  gap: 10px;
}

#headFloat a {
  border-radius: 50px;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 3px 6px;
  height: 43.5px;
  width: 147px;
}

#headFloat a img {
  width: 100%;
  object-fit: unset;
}

.department-fullMenu.hidden {
  opacity: 0;
  visibility: hidden;
  z-index: -1;
  transform: translate3d(0, -15px, 0);
}

.department-fullMenu {
  width: 100%;
  height: 600px;
  padding: 30px 0;
  position: fixed;
  top: 100px;
  left: 0;
  display: flex;
  flex-direction: column;
  background-color: rgba(255, 255, 255, 0.9);
  border-top: 1px solid #fff;
  opacity: 1;
  visibility: visible;
  z-index: 999;
  transition: transform 0s ease,
    opacity .4s ease-out,
    all .4s ease-out;
}

.department-fullMenu .inner {
  max-width: 1512px;
  margin: 0 auto;
  height: 100%;
}

.department-fullMenu .inner>h1,
.department-list>h1 {
  color: #AF9F8E;
  font-size: 1.4rem;
  margin-bottom: 14px;

  @media screen and (min-width: 692px) and (max-width: 1024px) {
  }
}

.department-list li,
.department-fullMenu li {
  line-height: 33px;
}

.department-fullMenu .department-fullMenu-nav-wrap {
  height: calc(100% - 30px);
}

.department-fullMenu .full-nav-item:nth-of-type(1) {
  height: 100%;
}

@media screen and (max-width: 690px) {
  .logo .img-container {
    width: 110px;
  }
}

/* 애니메이션 */
@keyframes fadeUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media screen and (max-width: 767px) {
  #gnb,
  .full-nav .full-nav-top {
    height: 70px;
  }

  #gnb>div {
    margin-left: 30px;
  }

  #hamburger {
    right: 30px;
  }

  #hamburger svg {
    width: 18px;
    height: 18px;
  }

  .full-nav .full-nav-top {
    flex-shrink: 0;
  }

  .closeFullNavBtn {
    padding: 0;
    right: 30px;
  }

  .mobileShowListBtn {
    position: relative;
    display: flex;
    flex-shrink: 0;
    width: 100%;
    height: 59px;
    padding: 0;
    font-family: 'UDPMincho regular';
    font-size: 14px;
    color: var(--color-black);
    background-color: var(--color-beige100);

    &::after {
      content: '+';
      position: absolute;
      right: 5vw;
      top: 48%;
      transform: translateY(-50%);
      font-size: 20px;
    }
  }

  .full-nav .full-nav-item-wrap {
    overflow-y: scroll;
    padding: 0 30px;
  }

  .mobileShowListBtn.active::after {
    content: '-';
  }

  .full-nav-item li {
    width: 100%;
    padding-left: 3vw;
    line-height: 4;
    font-size: 2rem;
  }
  
  .full-nav-item.full-nav-gnb li._hvChild h1,
  .full-nav-item li.full-nav-gnb-menu{
    font-size: 13px !important;
  }
  
  .full-nav-item.full-nav-gnb li._hvChild h1,
  .full-nav-item li.full-nav-gnb-menu {
    border-bottom: 1px solid #ececec;
  }

  .full-nav .department-list {
    flex-direction: column;
    background-color: var(--color-beige100);
    transition: max-height 0.3s ease;
  }
  
  .full-nav .department-list.hidden {
    max-height: 0;
    overflow: hidden;
  }
  
  .department-list>h1 {
    display: none;
  }
  
  .full-nav .department-list .full-nav-item {
    padding: 0 15px;
  }
  
  .full-nav .department-list .full-nav-item._skin {
    height: fit-content;
  }

  .full-nav .department-list .full-nav-item li {
    border-bottom: 1px solid #ffffff66;
  }

  .full-nav .department-list .full-nav-item a {
    width: 100%;
  }

  .full-nav-item-title {
    font-size: 14px;
    width: 100%;
    text-align: center;
    line-height: 3;
    border-top: 1px solid #ffffff66;
    border-bottom: 2px solid #ffffff66;
  }

  .full-nav .department-list .full-nav-item:nth-of-type(1) .full-nav-item-title {
    border-top: 2px solid #ffffff66;
  }

  .full-nav .full-nav-item-wrap {
    flex-direction: column;
    padding-bottom: 80px !important;
  }
  
  .full-nav-item .haveChildMenu {
    display: flex;
    flex-direction: column;
  }

  .full-nav-item.full-nav-gnb li._hvChild {
    padding-left: 0;

    & h1 {
      padding-left: 3vw;
    }
    
    & h1::after {
      content: '-';
      position: absolute;
      right: 3vw;
      top: 48%;
      transform: translateY(-50%);
    }
  }
  
  .full-nav-item.full-nav-gnb li._hvChild.close {
    & h1 {
      border-bottom: none;
    }

    & h1::after {
      content: '+';
    }
    
    & ul {
      display: none;
    }
  }
  
  .full-nav-item h1,
  .full-nav-item.full-nav-gnb li {
    justify-content: flex-start;
    line-height: 4;
    position: relative;
  }
  
  .full-nav-item .haveChildMenu li:nth-last-of-type(1) {
    border-bottom: none;
  }

  .full-nav-item.full-nav-gnb .haveChildMenu li {
    padding-left: 4.5vw;
    line-height: 4.3;
  }

  .full-nav-item.full-nav-gnb li::before {
    content: '→';
    position: absolute;
    right: 3vw;
    margin-right: 0;
  }
  
  .full-nav-item.full-nav-gnb li.top::before {
    display: none;
  }

  .full-nav-item.full-nav-gnb .haveChildMenu li a {
    width: 100%;
    font-size: 12px;
  }

  #headFloat {
    display: none;
  }

  .sns-container {
    gap: 1.5vw;
    margin-top: 4.5vw;
  }
  
  @media screen and (max-width: 766px) {
    .sns-container .sns-list {
      display: grid;
      grid-template-columns: repeat(2, minmax(0px, 1fr));
      gap: 1.5vw;
    }
  }

  .sns-container a {
    width: 100%;
    height: 40px;
    border-radius: 4px;
    display: flex;
    justify-content: center;
  }

  .sns-container .ig,
  .sns-container .yt {
    border-radius: 4px;
  }
  
    .sns-container .ig {
    background: rgb(249, 206, 52);
    background: linear-gradient(90deg, #f9ce34 0%, rgba(238, 42, 123, 1) 50%, rgba(98, 40, 215, 1) 100%);
    gap: 2px;
    color: #fff;
  
    & svg {
      width: 20px;
      margin-right: 0.4rem;
    }
  }
  
  .sns-container .yt {
    background-color: #f00;

    & a {
      /* font-size: 10px; */
      color: #fff;
      gap: 2px;
    }
  }

  .sns-container .call,
  .sns-container .web {
    background-color: #363535;
  }

  .sns-container .line {
    background-color: #379E26;
    flex-shrink: 0;
  }

  .sns-container a span {
    color: #fff;
    font-family: 'UDPMincho bold';
  }

  .sns-container .line img,
  .sns-container .web img {
    width: 24px;
    margin-right: 2px;
  }
}

/* 미디어쿼리 */
@media screen and (min-width: 691px) and (max-width: 767px) {
  .full-nav .full-nav-item-wrap {
    overflow-y: scroll;
    padding: 0 30px;
  }
}

@media screen and (min-width: 768px) {
  #gnb {
    height: 100px;
  }

  #headFloat {
    top: 115px;
    /* width: 311px; */
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  #hamburger {
    right: -34px;
  }

  #navigator>ul {
    display: grid;
  }

  #navigator .nav-menu {
    /* width: 137.47px; */
    transition: all 0.4s;
  }
  
  #navigator .nav-menu>a{
    width: 100%;
    height: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all .4s;
  }

  #navigator .nav-menu > a:hover,
  #navigator .nav-menu .nav-menu-child a:hover,
  .full-nav-item a:hover,
  .full-nav-gnb-menu a:hover {
    font-family: 'UDPMincho bold';
  }

  .full-nav .full-nav-item-wrap {
    padding: 0 12.76vw;
    height: calc(100% - 100px);
  }

  .full-nav-item.full-nav-gnb {
    gap: 1vw;
    width: 14.75vw;
    border-right: 3px solid var(--color-black);
    margin-right: 3.2vw;
  }

  .full-nav-item h1:hover {
    font-family: 'UDPMincho bold';
  }

  .closeFullNavBtn {
    right: 5vw;
  }

  .department-fullMenu-nav-wrap,
  .department-list>div {
    display: grid;
    grid-template-columns: 19rem 17rem 19rem 37rem;
  }
  
  .full-nav-gnb-menu ._hvChild p,
  .full-nav-item.full-nav-gnb li {
    font-size: 1.8rem;
  }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
  .department-list>div {
    display: grid;
    grid-template-columns: 14rem 12rem 16rem 29rem;
  }

  .full-nav-item.full-nav-gnb .haveChildMenu li a {
    font-size: 12px;
  }
}

@media (min-width: 1024px) and (max-width: 1336px) {
  .department-list>div {
    display: grid;
    grid-template-columns: 17rem 13rem 19rem 38rem;
  }
  
  .full-nav-item.full-nav-gnb {
    width: 14rem;
    margin-right: 3rem;
  }
}

@media screen and (min-width: 692px) and (max-width: 1330px) {
  .full-nav-item.full-nav-gnb {
    width: 21rem;
    margin-right: 0;
  }

  .full-nav-item:nth-of-type(4) {
    margin-right: 0 !important;
  }
}

@media screen and (min-width: 692px) and (max-width: 1024px) {
  #footer .full-nav-gnb-menu.btn-wrap a {
    width: 88% !important;
    height: fit-content !important;
  }
}

@media screen and (min-width: 691px) and (max-width: 767px) {

  #headFloat,
  .headFloat.line {
    right: 4.5vw;
  }

  #headFloat a,
  .headFloat.line {
    width: fit-content;
    height: 36.86px;
  }
}

@media screen and (min-width: 691px) and (max-width: 1330px) {
  .full-nav .department-list {
    height: fit-content;
  }
}

@media screen and (min-width: 768px) and (max-width: 1330px) {
  .full-nav .full-nav-item-wrap {
    padding: 0;
    margin: 0 auto;
    width: 90%;
    justify-content: space-between;
  }
}

@media screen and (min-width: 1024px) {
  .mobileShowListBtn {
    display: none;
  }
}

@media screen and (min-width:1025px) and (max-width: 1330px) {
  .full-nav-item.full-nav-gnb li {
    font-size: 1.1666em;
  }

  .full-nav-item-title {
    font-size: 1.333em;
  }

  .full-nav-item.full-nav-gnb {
    width: 17em;
  }
}

@media screen and (max-width: 1330px) {
  #navigator {
    display: none;
  }

  #gnb>div {
    margin-left: 30px;
    width: calc(100% - 60px);
  }

  #headFloat,
  #hamburger,
  #closeFullNavBtn,
  .headFloat.line {
    right: 30px !important;
  }
}

@media screen and (min-width: 1331px) and (max-width: 1669px) {
  #gnb>div {
    width: 90%;
  }
  
  #navigator ul {
    grid-template-columns: 12rem 12rem 12rem 18rem 18rem 13rem 12rem 12rem;
  }
}

@media screen and (min-width: 1670px) {
  #navigator ul {
    grid-template-columns: 14rem 14rem 14rem 20rem 20rem 15rem 14rem 14rem;
  }
}


@media screen and (min-width: 1331px) {
  #navigator {
    display: block;
    height: 100%;
  }

  #navigator ul,
  #navigator ul li {
    height: 100%;
  }

  #gnb>div {
    width: 162rem;
    max-width: 1620px;
    margin: 0 auto;
    height: 100%;
    position: relative;
  }

  .full-nav .full-nav-top {
    max-width: 1920px;
  }

  .full-nav .full-nav-top,
  .full-nav .full-nav-item-wrap {
    margin: 0 auto;
  }

  .full-nav .full-nav-item-wrap {
    max-width: 1620px;
    padding: 0;
  }

  #headFloat,
  .headFloat.line {
    right: 7.813vw;
  }
}

@media screen and (min-width: 1921px) {
  .full-nav-item.full-nav-gnb {
    gap: 38.4px;
    width: 277px;
    margin-right: 84px;
  }
  
  .full-nav-item.full-nav-gnb .haveChildMenu li {
    padding-left: 20px;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-100%);
  }
}
