
/* 모바일 메뉴시작 */
.menu-button {
}

.menu-button:hover {
  cursor: pointer;
}

.menu-wrap {
  background-color: #fff;
  padding: 0px 0;
  overflow: hidden;
  transition: all 0.3s;
  position: fixed;
  width: 300px;
  top: 0;
  right: -300px;
  bottom: 0;
  z-index: 999999;
}

.menu-overlay {
  background: rgba(0, 0, 0, 0.4);
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 900000;
}

.menu-close {
  opacity: 1;
  background-color: rgba(0,0,0, 0.8);
  position: absolute;
  width: 50px;
  height: 50px;
  right: 0;
  top: 0;
  color:#fff;
  transition: all 0.3s;
  display:flex;
  justify-content: center; align-items: center;
}

.menu-close::before { content: "\00d7"; font-size: 16px; position: relative; line-height: 1em;}




.menu-toggle {
  display: none;
}

.menu-toggle:checked+.menu-wrap {
  right: 0;
}

.menu-toggle:checked ~ .menu-overlay {
  display: block;
}

.menu-title {
  color: #222;
  background:#fff;
  padding:15px 20px;
  font-weight: 500;
  font-size:15px;
  letter-spacing:-1px;
  margin-bottom:0;
}

.menu-list {
  position: absolute;
  top: 50px;
  left: 0;
  bottom: 0px;
  width: 100%;
  height: inherit;
  padding:0px 0px;
  display: block;
  overflow: scroll;
}

.four_box { width:50%; float:left; padding:10px; background:#04aa9d; text-align:center; color:#fff; margin:0; border-bottom:1px solid #fff;}
.four_box:nth-child(2n) { border-left:1px solid white} 
.four_box a { color:#fff; }
.four_boxs { width:100%; float:left; padding:10px; background:#04aa9d; text-align:center; color:#fff; margin:0; border-bottom:1px solid #fff;}
.four_boxs a { color:#fff; }

.menu-wrap:hover .menu-list {
  overflow-y: auto;
}

.menu-list ul {
  list-style-type: none;
}
.menu-list ul > li > ul{
  list-style-type: none;
  padding:10px 0;
  background:#f9f9f9;
  border-top:1px solid #dcdcdc;
}
.menu-list ul > li:nth-last-child(2) > ul { border-bottom:1px solid #dcdcdc; }


.menu-list li {
  display: block;
}

.menu-list li:first-child {
  border-top: medium none;
}

.menu-list li a {
  display: block;
  padding: 10px 15px;
  font-size: 16px;
  letter-spacing:-1px;
  color: #444;
  text-decoration: none;
  border-top:1px solid #dcdcdc;
  position:relative;
}

.menu-list ul li .mb_arrow { vertical-align:baseline; top:18px; right:15px; position:absolute; }

.menu-list li:nth-last-child(1) a { padding:10px; width:100%; position:relative; bottom:0; left:0; color:#fff; font-weight:600; font-size:14px; text-align:center; background: #3d8861; background: -webkit-linear-gradient(to right, #3d8861, #2dc97a); background: linear-gradient(to right, #3d8861, #2dc97a); }
.menu-list li:nth-last-child(1) a i { margin-right:5px; }
.menu-list li a.sub {
  display: block;
  padding: 5px 20px;
  font-size: 14px;
  letter-spacing:-1px;
  color: #777;
  text-decoration: none;
  border-top:0;
  border-bottom:0;
  position:relative;
}
.menu-list li a.adver {
  display: block;
  padding: 7px 0px;
  font-size: 16px;
  background: #fbe058; 
background: -webkit-linear-gradient(to right, #fbe058, #fae986);  
background: linear-gradient(to right, #fbe058, #fae986);
  margin:20px 0px;
  text-align:center;
  letter-spacing:-1px;
  font-weight:600;
  border:1px solid #ffda00;
  color: #222;
  border-radius:5px;
  text-decoration: none;
  border-bottom:0;
  position:relative;
}




phone { display:none; position:absolute; right:20px; top:27px; color:#fff; font-size:24px; }


label.phantom_burger_menu{
position:absolute;
 display:none;
 top:29.5px;
 left:20px;
  flex-direction:column;
  width:20px;
  cursor:pointer;
}

label.phantom_burger_menu span{
  background: #777;
  height:3px;
  margin: 2px 0;
  transition: .4s  cubic-bezier(0.68, -0.6, 0.32, 1.6);

}


.phantom_burger_menu span:nth-of-type(1){
  width:50%;
  
}

.phantom_burger_menu span:nth-of-type(2){
  width:100%;
}


.phantom_burger_menu span:nth-of-type(3){
  width:75%;
 
}


.phantom_burger_menu input[type="checkbox"]{
  display:none;
}


.phantom_burger_menu input[type="checkbox"]:checked ~ span:nth-of-type(1){
  transform-origin:bottom;
  transform:rotatez(45deg) translate(2px,1px)
}


.phantom_burger_menu input[type="checkbox"]:checked ~ span:nth-of-type(2){
  
  transform-origin:top;
  transform:rotatez(-45deg)
}


.phantom_burger_menu input[type="checkbox"]:checked ~ span:nth-of-type(3){
  
  transform-origin:bottom;
  width:50%;
  transform: translate(9px,-4px) rotatez(45deg);

}


/* 상단메뉴 - 수정된 드롭다운 위치와 색상 */
.phantom-header-type01 {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 9;
  background: #fff;
  font-size: 0;
  display: block;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.phantom-header-type01 .wrapper {
  width: 100%;
  display: inline-block;
  position: relative;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.phantom-header-type01 .phantom-header-type01-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.phantom-header-type01 .phantom-header-type01-container .logo {
  float: left;
  line-height: 70px;
  position: relative;
  z-index: 10;
}

.phantom-header-type01 .phantom-header-type01-container .logo img {
  max-width: 250px;
  transition: all 0.3s ease;
}

.phantom-header-type01 .phantom-header-type01-container .phantom-nav {
  float: right;
  position: relative;
  z-index: 10;
}

.phantom-header-type01 .phantom-header-type01-container .phantom-nav .gnb_empty {
  display: inline-block;
  margin-top: 16px;
}

.phantom-header-type01 .phantom-header-type01-container .phantom-nav .gnb_empty a {
  margin-left: 0;
  font-weight: 600;
}

/* Modern Navigation Style */
.phantom-header-type01 .phantom-header-type01-container .phantom-nav ul {
  display: flex;
  border-top: none;
  transition: all 0.4s ease;
  margin-right: 10px;
}

/* Main menu items */
.phantom-header-type01 .phantom-header-type01-container .phantom-nav ul li.depth1 {
  min-width: 140px;
  position: relative;
  text-align: center;
  line-height: 70px;
}

.phantom-header-type01 .phantom-header-type01-container .phantom-nav ul > li {
  display: inline-block;
  font-size: 16px;
  letter-spacing: -0.5px;
  color: #222;
}

.phantom-header-type01 .phantom-header-type01-container .phantom-nav ul li a {
  display: inline-block;
  font-size: 16px;
  letter-spacing: -0.5px;
  color: #222;
  position: relative;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 0 5px;
}

.phantom-header-type01 .phantom-header-type01-container .phantom-nav ul li a:hover {
  color: #000;
}

.phantom-header-type01 .phantom-header-type01-container .phantom-nav ul li:nth-last-of-type(1) a {
  margin-right: 0;
}

/* Modern Main Menu Hover Effect */
.phantom-header-type01 .phantom-header-type01-container .phantom-nav ul li.depth1 > a::before {
  content: '';
  position: absolute;
  bottom: 17px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #000;
  transform: scaleX(0) translateY(5px);
  transform-origin: right;
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.4s ease;
  border-radius: 2px;
}


/* Modern Depth1 Hover Effect - Subtle text lift */
.phantom-header-type01 .phantom-header-type01-container .phantom-nav ul li.depth1:hover > a {
  transform: translateY(-2px);
}

.phantom-header-type01 .phantom-header-type01-container .phantom-nav ul li.depth1 > a {
  transition: transform 0.3s ease;
}

/* Modern Submenu Styling - 위치 조정 */
.phantom-header-type01 .phantom-header-type01-container .phantom-nav ul li.depth1 ul {
  display: block;
  line-height: 24px;
  z-index: 9999;
  position: absolute;
  width: 180px;
  top: 65px; /* 위치 조정 - 더 위로 */
  left: 50%;
  margin-left: -90px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(5px); /* 변환 값 변경 */
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), visibility 0s linear 0.4s;
  background-color: #fff;
  box-shadow: 0 15px 35px rgba(0,0,0,0.15), 0 5px 15px rgba(0,0,0,0.08); /* 그림자 더 진하게 */
  border-top: none;
  border-radius: 8px;
  overflow: hidden;
}

/* Show submenu on hover with improved animation */
.phantom-header-type01 .phantom-header-type01-container .phantom-nav ul li.depth1:hover ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0); /* 바로 아래에 표시 */
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), visibility 0s linear 0s;
}

/* Modern accent for submenu - 더 진한 색상 */
.phantom-header-type01 .phantom-header-type01-container .phantom-nav ul li.depth1 ul::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #000 0%, #222 100%); /* 더 진한 그라데이션 */
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.phantom-header-type01 .phantom-header-type01-container .phantom-nav ul li.depth1:hover ul::after {
  transform: scaleX(1);
}

/* Slight staggered effect for submenu items */
.phantom-header-type01 .phantom-header-type01-container .phantom-nav ul li.depth1 ul li {
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  transition-delay: calc(0.05s * var(--item-index, 0));
}

.phantom-header-type01 .phantom-header-type01-container .phantom-nav ul li.depth1:hover ul li {
  opacity: 1;
  transform: translateX(0);
}

/* Modern submenu items - 더 진한 색상 */
.phantom-header-type01 .phantom-header-type01-container .phantom-nav ul li.depth2 {
  width: 100%;
  text-align: left;
  line-height: 1.5;
  margin: 5px 0;
}

.phantom-header-type01 .phantom-header-type01-container .phantom-nav ul li.depth2:nth-child(1) {
  margin-left: 0;
}

.phantom-header-type01 .phantom-header-type01-container .phantom-nav ul li.depth1 ul li a {
  color: #444; /* 더 진한 텍스트 색상 */
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  margin: 0;
  display: block;
  padding: 10px 20px;
  width: 100%;
  position: relative;
  transition: all 0.2s ease;
  font-weight: 400;
}

/* Modern hover effect for submenu items - 더 진한 효과 */
.phantom-header-type01 .phantom-header-type01-container .phantom-nav ul li.depth1 ul li a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background-color: #000;
  transform: scaleY(0);
  transition: transform 0.2s ease;
}

.phantom-header-type01 .phantom-header-type01-container .phantom-nav ul li.depth1 ul li:hover a {
  background-color: rgba(0,0,0,0.07); /* 더 진한 배경색 */
  color: #000;
  padding-left: 25px;
  font-weight: 500;
}

.phantom-header-type01 .phantom-header-type01-container .phantom-nav ul li.depth1 ul li:hover a::before {
  transform: scaleY(1);
}

.phantom-header-type01 .phantom-header-type01-container .phantom-nav ul li.depth1 ul .ptmenu {
  width: 100%;
  margin: 0 auto;
  max-width: 1200px;
  text-align: center;
}

/* Modern submenu animation delay - adds cascading effect */
.phantom-header-type01 .phantom-header-type01-container .phantom-nav ul li.depth1 ul li:nth-child(1) { --item-index: 1; }
.phantom-header-type01 .phantom-header-type01-container .phantom-nav ul li.depth1 ul li:nth-child(2) { --item-index: 2; }
.phantom-header-type01 .phantom-header-type01-container .phantom-nav ul li.depth1 ul li:nth-child(3) { --item-index: 3; }
.phantom-header-type01 .phantom-header-type01-container .phantom-nav ul li.depth1 ul li:nth-child(4) { --item-index: 4; }
.phantom-header-type01 .phantom-header-type01-container .phantom-nav ul li.depth1 ul li:nth-child(5) { --item-index: 5; }
.phantom-header-type01 .phantom-header-type01-container .phantom-nav ul li.depth1 ul li:nth-child(6) { --item-index: 6; }
.phantom-header-type01 .phantom-header-type01-container .phantom-nav ul li.depth1 ul li:nth-child(7) { --item-index: 7; }
.phantom-header-type01 .phantom-header-type01-container .phantom-nav ul li.depth1 ul li:nth-child(8) { --item-index: 8; }

/* Background effect for the header on hover - 더 진한 그림자 */
.phantom_submenu {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: #fff;
  display: inline-block;
  border-bottom: none;
  box-shadow: 0 5px 30px rgba(0,0,0,0.12);
  padding-bottom: 30px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.phantom_submenu { width:100%; position:absolute; top:0; left:0; background:#fff; display:inline-block; border-bottom:1px solid #dcdcdc; padding-bottom:20px; transition:0.3s ease all;}

#margin-top75 { height:75px; display:inline-block; }

@media all and (max-width:768px) {
.pc_view { display:none; }
.mobile_view { display:inline-block; }
label.phantom_burger_menu { display:flex !important; }
.phantom-header-type01 .phantom-header-type01-container { text-align:center; }
.phantom-header-type01 .phantom-header-type01-container .logo { float:inherit; }

}