/* --------------------------------
   Main components
-------------------------------- */
.open_in_new span { font-size: 2rem; }

.cd-main-content {
  min-height: 100%;
  position: relative;
  z-index: 500;
  -webkit-transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  -webkit-transition-property: -webkit-transform;
  -moz-transition-property: -moz-transform;
  transition-property: transform;
  -webkit-transition-duration: 0.4s;
  -moz-transition-duration: 0.4s;
  transition-duration: 0.4s;
}
.cd-main-content.lateral-menu-is-open {
  -webkit-transform: translateX(-250px);
  -moz-transform: translateX(-250px);
  -ms-transform: translateX(-250px);
  -o-transform: translateX(-250px);
  transform: translateX(-250px);
}


/* --------------------------------
   메뉴 패널
-------------------------------- */
#menu {
  position: fixed;
  height: 100%;
  left: auto;
  right: 0;
  top: 9rem;
  visibility: hidden;
  z-index: 500;
  width: 250px;
  background: #fff;
  overflow-y: auto;
  text-align: left;
  box-shadow: -4px 0 24px rgba(20, 30, 60, 0.07);

  -webkit-transform: translateX(250px);
  -moz-transform: translateX(250px);
  -ms-transform: translateX(250px);
  -o-transform: translateX(250px);
  transform: translateX(250px);

  -webkit-transition: -webkit-transform .4s 0s, visibility 0s .4s;
  -moz-transition: -moz-transform .4s 0s, visibility 0s .4s;
  transition: transform .4s 0s, visibility 0s .4s;
}

@media (max-width: 1200px) {
  #menu {
    top: 11rem;
  }
}

#menu.lateral-menu-is-open {
  -webkit-transform: translateX(0);
  -moz-transform: translateX(0);
  -ms-transform: translateX(0);
  -o-transform: translateX(0);
  transform: translateX(0);
  visibility: visible;
  -webkit-transition: -webkit-transform .4s 0s, visibility 0s 0s;
  -moz-transition: -moz-transform .4s 0s, visibility 0s 0s;
  transition: transform .4s 0s, visibility 0s 0s;
  -webkit-overflow-scrolling: touch;
}


/* --------------------------------
   링크 공통
-------------------------------- */
#menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  line-height: 1;
  padding: 2rem 3rem;
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.05em;
  border-bottom: 1px solid rgba(20, 30, 60, 0.08);
  /* font-family: "Pretendard Variable", Pretendard, -apple-system, sans-serif; */
  background: transparent;
  transition: color 0.2s;
}

#menu a:hover {
  color: #15285a;
}


/* --------------------------------
   HOME (current) 행
-------------------------------- */
#menu a.current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: var(--main1);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.26em;
  /* font-family: "Pretendard Variable", Pretendard, -apple-system, sans-serif; */
  border-bottom: 1px solid rgba(20, 30, 60, 0.08);
}

/* HOME 오른쪽 → 화살표 */
#menu a.current::after {
  content: '';
  display: block;
  width: 14px;
  height: 10px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10' fill='none'%3E%3Cpath d='M1 5h12M9 1l4 4-4 4' stroke='%23ffffff' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  position: static;
  transform: none;
  top: auto; right: auto; bottom: auto;
}


/* --------------------------------
   서브메뉴
-------------------------------- */
#menu .sub-menu {
  display: none;
  margin: 0;
  padding: 0 0 12px 24px;
  background: transparent;
}

#menu ul.sub-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #5a5f6e;
  font-weight: 400;
  letter-spacing: -0.01em;
  background: transparent;
  border-bottom: none;
  padding: 9px 0;
  line-height: 1;
  /* font-family: "Pretendard Variable", Pretendard, -apple-system, sans-serif; */
  justify-content: flex-start;
}

/* 서브메뉴 왼쪽 짧은 선 */
#menu ul.sub-menu li a::before {
  content: '';
  display: block;
  width: 10px;
  height: 1px;
  background: #15285a;
  opacity: 0.35;
  flex-shrink: 0;
}

#menu ul.sub-menu li a:hover {
  color: #15285a;
}


/* --------------------------------
   1depth — 자식 있는 항목 chevron
-------------------------------- */
#menu .item-has-children > a {
  position: relative;
  font-weight: 500;
}

/* chevron ∨ */
#menu .item-has-children > a::after {
  content: '';
  display: block;
  width: 10px;
  height: 6px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7' fill='none'%3E%3Cpath d='M1 1.5L5 5.5L9 1.5' stroke='%23b8bcc7' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  transition: transform 0.25s ease;
  position: static;
  transform: none;
  top: auto; right: auto; bottom: auto;
}

/* 열린 상태 */
#menu .item-has-children > a.submenu-open {
  color: #15285a;
  font-weight: 600;
}

#menu .item-has-children > a.submenu-open::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7' fill='none'%3E%3Cpath d='M1 1.5L5 5.5L9 1.5' stroke='%2315285a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  transform: rotate(180deg);
}