@charset "utf-8";

/* ===============================
  기본 display
=============================== */
.pc-only {
  display: block;
}

.mo-only {
  display: none;
}

body {
  margin-top: 110px;
}

/* ===============================
  헤더
=============================== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 101;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid rgba(17, 17, 17, 0.08);
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.04);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

#header.scroll_on {
  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.08);
}

#header .header_inner {
  max-width: 1400px;
  height: 108px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

/* ===============================
  로고
=============================== */
#header .logo {
  flex: 0 0 auto;
  margin: 0;
}

#header .logo a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

#header .logo img {
  display: block;
  width: auto;
  height: 50px;
  max-width: 260px;
}

#header .logo_text {
  display: block;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  color: #9a876f;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

/* ===============================
  GNB
=============================== */
#header .gnb {
  flex: 1 1 auto;
}

#header .gnb>ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 58px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#header .gnb ul li.depth01 {
  position: relative;
}

#header .gnb ul li.depth01>a {
  display: block;
  text-decoration: none;
}

#header .gnb ul li.depth01>a>span {
  position: relative;
  display: block;
  font-size: 18px;
  font-weight: 500;
  line-height: 108px;
  color: #111;
  letter-spacing: -0.04em;
  white-space: nowrap;
  transition: color 0.25s ease;
}

#header .gnb ul li.depth01>a>span::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 30px;
  width: 0;
  height: 2px;
  background: #64b0e2;
  transform: translateX(-50%);
  transition: width 0.25s ease;
}

#header .gnb ul li.depth01:hover>a>span,
#header .gnb ul li.depth01.active>a>span {
  color: #64b0e2;
}

#header .gnb ul li.depth01:hover>a>span::after,
#header .gnb ul li.depth01.active>a>span::after {
  width: 100%;
}

/* ===============================
  LNB
=============================== */
#header .gnb .depth02 {
  position: absolute;
  top: 100%;
  left: 50%;
  min-width: 190px;
  margin: 0;
  padding: 14px 0;
  list-style: none;
  border: 1px solid rgba(20, 61, 130, 0.12);
  background: #fff;
  box-shadow: 0 18px 38px rgba(17, 17, 17, 0.1);
  transform: translateX(-50%) translateY(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

#header .gnb .depth02::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 50%;
  width: 12px;
  height: 12px;
  border-top: 1px solid rgba(20, 61, 130, 0.12);
  border-left: 1px solid rgba(20, 61, 130, 0.12);
  background: #fff;
  transform: translateX(-50%) rotate(45deg);
}

#header .gnb .depth02 li a {
  display: block;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  color: #555;
  letter-spacing: -0.035em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease;
}

#header .gnb .depth02 li a:hover {
  font-weight: 600;
  color: #64b0e2;
}

#header .gnb ul li.depth01:hover .depth02 {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ===============================
  모바일 헤더
=============================== */
#header .all_gnb {
  flex: 0 0 auto;
}

#header .hamburger {
  position: relative;
  display: block;
  width: 26px;
  height: 20px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

#header .hamburger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #111;
  border-radius: 999px;
  transition: 0.25s;
}

#header .hamburger span.berger1 {
  top: 0;
}

#header .hamburger span.berger2,
#header .hamburger span.berger3 {
  top: 9px;
}

#header .hamburger span.berger4 {
  top: 18px;
  width: 65%;
  left: auto;
  right: 0;
}

#header .hamburger.open span.berger1,
#header .hamburger.open span.berger4 {
  width: 0;
  left: 50%;
}

#header .hamburger.open span.berger2 {
  transform: rotate(45deg);
}

#header .hamburger.open span.berger3 {
  transform: rotate(-45deg);
}

/* ===============================
  모바일 메뉴
=============================== */
.all_nav {
  position: fixed;
  top: 78px;
  left: 0;
  width: 100%;
  height: calc(100vh - 78px);
  height: calc(100svh - 78px);
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  opacity: 0;
  visibility: hidden;
  overflow-y: auto;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.all_nav.open {
  opacity: 1;
  visibility: visible;
}

.all_nav .nav-inner {
  padding: 28px 24px 44px;
}

.m-nav-allmenu-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-inner .m-gnb-allmenu-depth1 {
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.nav-inner .m-gnb-allmenu-depth1>a {
  position: relative;
  display: block;
  padding: 20px 38px 20px 0;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.35;
  color: #111;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.nav-inner .m-gnb-allmenu-depth1>a::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 5px;
  width: 10px;
  height: 10px;
  border-right: 2px solid #999;
  border-bottom: 2px solid #999;
  transform: translateY(-60%) rotate(45deg);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.nav-inner .m-gnb-allmenu-depth1.on>a {
  color: #9a876f;
}

.nav-inner .m-gnb-allmenu-depth1.on>a::after {
  border-color: #9a876f;
  transform: translateY(-20%) rotate(-135deg);
}

.nav-inner .m-gnb-allmenu-depth1.no_child>a::after {
  display: none;
}

.nav-inner .m-gnb-allmenu-depth2 {
  display: none;
  margin: 0;
  padding: 0 0 16px;
  list-style: none;
}

.nav-inner .m-gnb-allmenu-depth2>li>a {
  display: block;
  padding: 8px 0 8px 2px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
  color: #666;
  letter-spacing: -0.035em;
  text-decoration: none;
}

/* ===============================
  반응형
=============================== */
@media screen and (max-width: 1199px) {
  body {
    margin-top: 68px;
  }

  .pc-only {
    display: none;
  }

  .mo-only {
    display: block;
  }

  #header .header_inner {
    height: 78px;
    padding: 0 24px;
    gap: 20px;
  }

  #header .logo img {
    height: 42px;
    max-width: 220px;
  }

  #header .logo_text {
    font-size: 24px;
  }
}

@media screen and (max-width: 767px) {
  #header .header_inner {
    height: 68px;
    padding: 0 16px;
  }

  #header .logo img {
    height: 36px;
    max-width: 180px;
  }

  #header .logo_text {
    font-size: 21px;
  }

  .all_nav {
    top: 68px;
    height: calc(100vh - 68px);
    height: calc(100svh - 68px);
  }

  .all_nav .nav-inner {
    padding: 22px 16px 34px;
  }

  .nav-inner .m-gnb-allmenu-depth1>a {
    padding: 18px 34px 18px 0;
    font-size: 17px;
  }

  .nav-inner .m-gnb-allmenu-depth2 {
    padding-bottom: 12px;
  }

  .nav-inner .m-gnb-allmenu-depth2>li>a {
    padding: 7px 0 7px 2px;
    font-size: 14px;
  }
}