@charset "utf-8";

/* ===============================
  기본 display
=============================== */
body {
  margin: 150px 0 0;
  padding: 0;
}

.pc-only {
  display: block;
}

.mo-only {
  display: none;
}

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

#header.scroll_on {
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.06);
}

#header.header_hide {
  transform: translateY(-58px);
}

#header.header_hide .header_top {
  opacity: 0;
}

/* ===============================
  공통 - 로고
=============================== */
#header .logo {
  margin: 0;
  font-size: 0;
}

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

#header .logo img {
  display: block;
  width: auto;
  max-width: 100%;
}

#header .logo_text {
  display: block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #9f8543;
}

#header .logo_img_color {
  opacity: 1;
}

#header .logo_img_white {
  display: none;
}

/* ===============================
  상단 영역
=============================== */
#header .header_top {
  position: relative;
  border-bottom: 1px solid rgba(17, 17, 17, 0.05);
  transition: opacity 0.35s ease;
  padding: 20px 0;
}

#header .header_top_inner {
  max-width: 1440px;
  height: 58px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#header .header_top .logo img {
  height: 38px;
  max-width: 260px;
}

/* ===============================
  하단 메뉴
=============================== */
#header .header_bottom {
  position: relative;
  z-index: 2;
  background: #fff;
}

#header .header_bottom_inner {
  max-width: 1440px;
  height: 50px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  transition: max-width 0.35s ease, padding 0.35s ease, justify-content 0.35s ease;
}

#header .bottom_logo {
  flex: 0 0 auto;
  opacity: 0;
  visibility: hidden;
  width: 0;
  transform: translateX(-12px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
}

#header .bottom_logo a {
  display: inline-flex;
  align-items: center;
}

#header .bottom_logo img {
  display: block;
  width: auto;
  height: 30px;
  max-width: 180px;
}

#header .gnb {
  flex: 0 1 auto;
  transition: margin 0.35s ease, width 0.35s ease;
}

#header .gnb>ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 64px;
  margin: 0;
  padding: 0;
  list-style: none;
  transition: gap 0.35s ease, justify-content 0.35s ease;
}

#header.header_hide .header_bottom_inner {
  max-width: none;
  padding: 0 60px;
  justify-content: space-between;
}

#header.header_hide .bottom_logo {
  opacity: 1;
  visibility: visible;
  width: 100%;
  max-width: 180px;
  transform: translateX(0);
}

#header.header_hide .gnb {
  margin-left: auto;
}

#header.header_hide .gnb>ul {
  justify-content: flex-end;
  gap: 48px;
}

#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: 50px;
  color: #222;
  white-space: nowrap;
  letter-spacing: -0.04em;
}

#header .gnb ul li.depth01>a>span::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 9px;
  width: 0;
  height: 2px;
  background: #9f8543;
  transition: width 0.3s ease;
}

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

/* ===============================
  2depth
=============================== */
#header .gnb .depth02 {
  position: absolute;
  top: 100%;
  left: 50%;
  min-width: 190px;
  margin: 0;
  padding: 12px 0;
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: #fff;
  box-shadow: 0 14px 30px rgba(17, 17, 17, 0.08);
  list-style: none;
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  visibility: hidden;
  transition: 0.25s;
}

#header .gnb .depth02 li a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #555;
  text-decoration: none;
  white-space: nowrap;
}

#header .gnb .depth02 li a:hover {
  background: #f8f8f8;
  color: #111;
}

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

/* ===============================
  모바일 헤더
=============================== */
#header .header_mo {
  display: none;
}

#header .header_mo_inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 78px;
  padding: 0 20px;
}

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

#header .all_gnb {
  flex: 0 0 auto;
  cursor: pointer;
}

#header .hamburger {
  position: relative;
  width: 24px;
  height: 18px;
  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: 8px;
}

#header .hamburger span.berger4 {
  top: 16px;
  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: 79px;
  left: 0;
  width: 100%;
  height: calc(100vh - 79px);
  height: calc(100svh - 79px);
  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: 24px 20px 40px;
}

.m_nav_allmenu_list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav_inner .m_gnb_allmenu_depth1 {
  width: 100%;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.nav_inner .m_gnb_allmenu_depth1>a {
  display: block;
  position: relative;
  padding: 20px 34px 20px 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: #111;
  text-decoration: none;
}

.nav_inner .m_gnb_allmenu_depth1>a::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 4px;
  width: 10px;
  height: 10px;
  border-right: 2px solid #999;
  border-bottom: 2px solid #999;
  transform: translateY(-60%) rotate(45deg);
  transition: transform 0.25s ease;
}

.nav_inner .m_gnb_allmenu_depth1.on>a::after {
  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 14px;
  list-style: none;
}

.nav_inner .m_gnb_allmenu_depth2>li>a {
  display: block;
  margin: 0;
  padding: 8px 0 8px 2px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  color: #666;
  text-decoration: none;
}

/* ===============================
  반응형
=============================== */
@media screen and (max-width: 1199px) {
  .pc-only {
    display: none;
  }

  .mo-only {
    display: block;
  }

  #header {
    transform: none !important;
  }

  #header .header_top,
  #header .header_bottom {
    display: none;
  }

  #header .header_mo {
    display: block;
  }
}

@media screen and (max-width: 767px) {
  body {
    margin: 68px 0 0;
  }

  #header .header_mo_inner {
    height: 68px;
    padding: 0 16px;
  }

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

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

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

  .all_nav .nav_inner {
    padding: 0 16px;
  }

  .nav_inner .m_gnb_allmenu_depth1>a {
    padding: 18px 30px 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;
  }
}