/* ======================================= */
/* 기본 초기화 및 메인 네비게이션          */
/* ======================================= */
body { margin: 0; font-family: Arial, sans-serif; overflow-x: hidden;}
#main_header { background-color:transparent; border-bottom: 1px solid #eee; position: absolute; top: 20px; left: 0;  z-index: 100; width: 100%; transition: all 0.3s ease; box-sizing: border-box; box-shadow: none; padding: 0px 20px; border: 0px solid red;}
#main_header.fixed_header { position: fixed;  top: 0; left: 0; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);  z-index: 999999999;}
.header_inner { max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; position: relative; border: 0px solid green; background-color: var(--main-color-05); border-radius: 15px 15px 0px 0px;}
.logo { position: relative; top: 0px; background-color: #fff; padding: 16px 15px; border-radius: 15px 0px 0px 0px;}
.logo img { width: 185px; height: auto;}

#main_navigation { text-align: right; border: 0px solid green; margin-left: 60px;}
#main_navigation ul { list-style: none; padding: 0; margin: 0; display: flex; border: 0px solid red; padding-top: 2px;}
.main_menu > li { position: relative; margin-right: 60px;}
/* 1차 메뉴 항목 사이의 수직선 */
.main_menu > li:not(:last-child)::after { content: ''; position: absolute; right: -30px; top: 50%; transform: translateY(-50%); width: 2px; background-color: var(--main-color-04); height: 1.5em; }
.main_menu > li:last-child { margin-right: 0;}
#main_navigation a { text-decoration: none; color: #333; display: block; padding: 10px 15px; white-space: nowrap; transition: color 0.2s ease, border-bottom-color 0.2s ease; font-size: 1.18em;}
.main_menu > li > a { font-weight: bold; padding-bottom: 9px; border-bottom: 2px solid transparent;}
#main_navigation a:hover { color: var(--main-color-01);}
.main_menu > li.active > a {position: relative; /* ::after 요소의 기준점 */}
.main_menu > li.active > a::after {content: ''; position: absolute; bottom: -10px; left: 0;  width: 100%; height: 3px; background-color: var(--main-color-01); transition: bottom 0.2s ease;}

.header_right_group { display: flex; align-items: center;  gap: 6px; padding-right: 0px; height: 66px; margin-left: auto; border: 0px solid blue;}
.header_contact_menu{padding: 2px 10px;  margin: 0; height: auto;}
  .header_contact_menu ul { text-decoration: none; list-style: none;  display: flex;  gap: 5px;}
  .header_contact_menu li { list-style: none; margin: 0; padding: 0; background-color: var(--main-color-01); border-radius: 5px;}
  .header_contact_menu a { color: white; text-decoration: none; padding: 5px 10px; display: block;}
  .header_contact_menu a:hover { color: black;}
  .header_contact_menu li.online { background-color: #fff;}
  .header_contact_menu li.online a p { color: #000;}
  .header_contact_menu li.online:hover { background-color: #fff;}
.header_auth_menu {display: flex; align-items: center; gap: 6px;}
  .auth_links { display: flex; gap: 10px;}
  .auth_links a { color: #333; text-decoration: none; font-size: 14px;}
  .mobile_only { display: none;}
.header_language_selector {display: flex; align-items: center; gap: 8px;}
.header_language_selector a { display: block; line-height: 0;}
.header_language_selector img { width: 25px; height: 25px; vertical-align: middle; border-radius: 50%;  border: 1px solid #eee; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); transition: transform 0.2s ease;}
.header_language_selector img:hover { transform: scale(1.2);}

#button_wrap{ position: relative; height: 66px; border: 0px solid red; width: 50px; background-color: #000; border-radius: 0px 15px 0px 0px;}
  #button_wrap.active { background-color: black; transition: background-color 0.3s ease;}
  #hamburger_btn { display: flex; flex-direction: column; justify-content: space-around; width: 30px; height: 25px; margin-right: 10px; background: none; border: none; cursor: pointer; padding: 0; position: absolute; right: 0px; top: 50%; transform: translateY(-50%); z-index: 1001;}

#hamburger_btn span { display: block; width: 100%; height: 3px; background-color: #fff; border-radius: 2px; transition: all 0.3s ease-in-out;}
#hamburger_btn.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); background-color: #fff;}
#hamburger_btn.open span:nth-child(2) { opacity: 0; background-color: #fff;}
#hamburger_btn.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background-color: #fff;}
#hamburger_btn.open { background-color: black; }
#full_menu_overlay.open { opacity: 1; visibility: visible;}
/* 햄버거 오버레이 내부 메뉴 컨테이너 스타일 (기존 유지) */
#full_menu_overlay.open .overlay_menu_container { opacity: 1; transform: translateY(0); transition: none !important; transition-delay: 0s !important;  width: 100%; }
.overlay_menu_container::-webkit-scrollbar { width: 8px;}
.overlay_menu_container::-webkit-scrollbar-track { background: #333; border-radius: 4px;}
.overlay_menu_container::-webkit-scrollbar-thumb { background-color: #555; border-radius: 4px; border: 2px solid #333;}
.overlay_menu_container::-webkit-scrollbar-thumb:hover { background-color: #777;}
/* 나머지 오버레이 메뉴 관련 스타일 (overlay_main_menu, overlay_submenu 등)은 기존 그대로 유지합니다. */
.overlay_main_menu,.overlay_submenu {list-style: none; padding: 0; margin: 0;}
.overlay_main_menu > li { margin-bottom: 5px; border: 0px solid red;}
.overlay_main_menu > li > .menu_toggle { display: block; text-decoration: none; color: #fff; font-size: 1.3em; padding: 12px 15px;border-bottom: 1px solid #555;transition: background-color 0.3s ease, color 0.3s ease, font-size 0.3s ease; position: relative; border: 0px solid pink;
}
.overlay_main_menu > li > .menu_toggle:hover { background-color: #333; color: var(--main-color-01);}
/* 2차 메뉴 */
.overlay_submenu.level2 li { margin-bottom: 3px;}
.overlay_submenu.level2 li .menu_toggle, .overlay_submenu.level2 li a:not(.menu_toggle) { display: block; text-decoration: none; color: #ccc; font-size: 1.1em; padding: 8px 10px; transition: background-color 0.3s ease, color 0.3s ease, font-size 0.3s ease; position: relative;}
.overlay_submenu.level2 li .menu_toggle:hover, .overlay_submenu.level2 li a:not(.menu_toggle):hover { background-color: #444; color: var(--main-color-01);}
/* 3차 메뉴 (제품소개 하위) */
.overlay_submenu.level3 { padding-left: 20px; display: none;}
.overlay_submenu.level3 li { margin-bottom: 2px;}
.overlay_submenu.level3 li a { display: block; text-decoration: none; color: #aaa; font-size: 0.95em; padding: 6px 8px; transition: background-color 0.3s ease, color 0.3s ease, font-size 0.3s ease;}
.overlay_submenu.level3 li a:hover { background-color: #555; color: var(--main-color-01);}
/* 메뉴 토글 화살표 아이콘 (모바일에서만 사용) */
.menu_toggle::after { content: '▶'; /* 오른쪽 화살표 */ position: absolute; right: 15px; top: 50%; transform: translateY(-50%) rotate(0deg); transition: transform 0.3s ease; font-size: 0.8em; color: #fff;}
.menu_toggle.active::after { transform: translateY(-50%) rotate(90deg); /* 열릴 때 아래로 회전 */}

.scroll-down-indicator { position: absolute; bottom: 25%;  left: 50%;  transform: translateX(-50%); width: 160px; height:140px; color: var(--main-color-01);  text-align: center;  font-size: 20px; z-index: 100;  pointer-events: none;  border:0px solid red; border-radius: 10px; padding: 20px; }
.arrow-wrapper { position: relative; /* 화살표들이 이 요소를 기준으로 배치되도록 */  width: 40px; /* 화살표 너비와 동일하게 설정 */  height: 40px; /* 두 개의 화살표가 들어갈 수 있도록 높이 증가 */  margin: 0px auto;}
.arrow { position: absolute; /* 래퍼 내부에서 절대 위치 */ width: 35px; height: 35px;  border-top: 5px solid var(--main-color-01);  border-left: 5px solid var(--main-color-01);  transform: rotate(-135deg);  left: 0;  top: 0;}
.arrow.faded { /* 두 번째 화살표에 적용할 스타일 */  opacity: 0.5; /* 흐리게 처리 */  top: 15px; /* 첫 번째 화살표보다 약간 아래에 배치 */}
.arrow-wrapper {
  animation: bounce-double 1.5s infinite; /* 래퍼에 애니메이션 적용 */
}

@keyframes bounce-double {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(15px); /* 두 화살표가 함께 15px 아래로 이동 */
  }
}



/* ======================================= */
/* 제품소개 2차 메뉴 전용 스타일 (PC 전용) */
/* ======================================= */
.product_submenu_wrapper { display: none; position: absolute; top: 66px; left: 0px;  width: 1400px;  background-color: #fff; border-top: 1px solid #ddd;  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); z-index: 1000; padding: 20px; box-sizing: border-box;  border: 0px solid red; border-radius: 0px 0px 15px 15px;}
.product_submenu_header { margin-bottom: 0px; border-bottom: 0px solid #eee; padding-bottom: 0px; display: flex; border: 0px solid red; justify-content: center;}
.radio_buttons_container { display: flex; flex-wrap: wrap; align-items: center; padding: 5px; background-color: #f0f0f0; border-radius: 5px; gap: 1px 55px; border: 0px solid green; width: 1400px; justify-content: center;}
.radio_buttons_container input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0;}
.radio_label { display: flex; align-items: center; cursor: pointer; font-size: 16px;  color: #333; white-space: nowrap;  padding: 5px 0;  position: relative;}
.radio_label::before { content: ''; display: inline-block; width: 12px; height: 12px; border: 1px solid #ccc; border-radius: 50%; margin-right: 8px; background-color: #fff; box-sizing: border-box;}
.radio_buttons_container input[type="radio"]:checked + .radio_label { color:var(--main-color-02); font-weight: bold;}
.radio_buttons_container input[type="radio"]:checked + .radio_label::before { background-color: var(--main-color-02); border-color: var(--main-color-02); box-shadow: 0 0 0 2px rgba(238, 98, 0, 0.3);}
.radio_label:hover { color: var(--main-color-01);}
.radio_buttons_container input[type="radio"]:focus + .radio_label::before { outline: 2px solid var(--main-color-02); outline-offset: 2px;}

/* product_section 기본 스타일 */
.product_section { display: none; padding: 10px; border: 1px solid #ddd; margin-top: 15px; background-color: #fff; border-radius: 5px; width: 100%; border: 1px solid #ddd;}
.product_section.active {display: flex;}

/* 3차 메뉴 (ul.overlay_submenu.level3) 관련 스타일 */
.product_image ul.overlay_submenu.level3 {list-style: none; padding: 0; margin: 0; display: flex !important; justify-content: center; gap: 10px; flex-wrap: wrap; border: 0px solid red;}
.product_image ul.overlay_submenu.level3 li { text-align: center;}
.product_image ul.overlay_submenu.level3 a { text-decoration: none; color: #555; display: block; padding: 10px; border: 1px solid #eee; border-radius: 5px; transition: all 0.2s ease-in-out;}
.product_image ul.overlay_submenu.level3 a:hover { background-color: #f5f5f5; color: var(--main-color-01); border-color: var(--main-color-01);}
.product_image ul.overlay_submenu.level3 img { max-width: 350px; height: auto; display: block; margin: 0 auto 5px auto; }
.product_image ul.overlay_submenu.level3 span { display: block; font-size: 13px;}
.product_image p { font-size: 16px; color: #666; text-align: center; margin-top: 20px;}
.product_content_area { display: flex; gap: 30px; border: 0px solid red;}
.product_image { flex: 1; text-align: center; border: 0px solid red;}
.product_image img { max-width: 100%; height: auto; border: 0px solid #eee;}
.product_image p { margin-top: 10px; font-size: 0.9em; color: #777; line-height: 1.4;}
.product_list { flex: 1; padding-left: 20px; border-left: 1px solid #eee; display: flex; flex-direction: column; flex-wrap: wrap; max-height: 250px; overflow-y: auto;}
.product_list li { margin-bottom: 5px;}
.product_list li a { text-decoration: none; color: #555; padding: 5px 0; font-size: 0.9em; display: block; transition: color 0.2s ease;}
.product_list li a:hover { color: var(--main-color-01); text-decoration: underline;}

/* ======================================= */
/* 가로 배열 2차 메뉴 공통 스타일(PC 전용) */
/* ======================================= */
.horizontal_submenu_wrapper { display: none; /* JS로 제어 */ position: absolute; top: 66px; left: 0px; width: 1400px; background-color: #fff; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); z-index: 1000; padding: 0; box-sizing: border-box;  white-space: nowrap;  overflow-x: hidden; height: 61px; overflow-y: hidden; border-radius: 0px 0px 15px 15px; }
.horizontal_submenu_wrapper ul { display: flex;  list-style: none; padding: 0; margin: 0; border: 0px solid blue; justify-content: center;  align-items: center; height: 100%;}
.horizontal_submenu_wrapper ul li { padding: 0 20px; border-right: 1px solid #eee; border: 0px solid red;}
.horizontal_submenu_wrapper ul li:last-child { border-right: none;}
.horizontal_submenu_wrapper ul li a { text-decoration: none; color: #333;  font-size: 1.1em;  display: flex; align-items: center; padding: 0 15px; margin: 0 -15px; transition: background-color 0.2s ease, color 0.2s ease; height: 80px;}
.horizontal_submenu_wrapper ul li a:hover { color: var(--main-color-01); background-color: var(--main-color-06);}




/* 팝업 전체를 덮는 배경 */
.modal_wrap { display: none; position: fixed; z-index: 9999; left: 2%; top: 10%; width: 100%; height: 320px;  /*justify-content: center; */ align-items: center;}
.modal_content { position: relative; background-color: #fff; padding:0;  max-width: 720px;  border-radius: 15px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);  text-align: center;  overflow: hidden;}
.modal_content .company-logo { display: flex; justify-content: center; align-items: center; padding:15px; background-color: #ffffff;}
.modal_content .company-logo img { width:300px; height: auto;}

/* 주요 연락처 정보 영역 */
.modal-body { padding: 10px 10px 10px 10px; background-color:  var(--main-color-01); }
.contact-info { font-size: 2.2em; color: #fff;}
.extension-info {font-size: 1.4em; color: #fff; opacity: 0.8; margin-top: 0;}
/* 버튼 스타일 */
.modal_buttons { display: flex; justify-content: center; margin-top: 20px; margin-bottom: 20px;}
.modal_buttons button { padding: 8px 15px; font-size: 14px; border: 1px solid #ccc; border-radius: 5px; cursor: pointer; background-color: #f0f0f0; margin: 0 5px;}
.modal_buttons button:hover { background-color: #e0e0e0;}
@media screen and (max-width: 768px) {
	.modal_wrap { display: none; position: fixed; z-index: 9999; left: 0; top: 70px;  width: 100%; height: 310px; justify-content: center; align-items: center;}
  .modal_content {width: 96%;}
}


/* =================================================== */
/* PC 화면용 햄버거 오버레이                           */
/* =================================================== */
@media screen and (min-width: 769px) {
    #main_navigation {display: block !important;}
    #hamburger_btn { display: flex !important;}

    #full_menu_overlay {position: fixed; left: 50%; transform: translateX(-50%); width: 100%; max-width: 1400px;  height: auto; max-height: calc(100vh - 70px); background-color: rgba(0, 0, 0, 0.95);  z-index: 999; opacity: 0; visibility: hidden; transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out; display: flex; flex-direction: column; overflow-y: auto;   justify-content: center;  align-items: center;  padding: 20px; box-sizing: border-box; border-radius: 0px 0px 15px 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.5); border: 0px solid red; } 
    #full_menu_overlay.open { display: flex; justify-content: center;  background: rgba(0,0,0,0.95);  max-width: 1400px;  margin: 0 auto;  color: #fff;  box-sizing: border-box;}
    .overlay_menu_table { display: flex; flex-direction: column;  gap: 30px;  width: 100%;}
    .menu_row { display: flex;  align-items: flex-start;  gap: 30px; }
    .menu_col { min-width: 120px;  font-size: 1em;  color: #ddd;  }
    .menu_col.title { font-weight: bold;  color: var(--main-color-01);  min-width: 140px; }
    .menu_col:hover { color: #fff;}
    .submenu { list-style: disc;  padding-left: 18px;  margin-top: 6px;  font-size: 0.9em;  color: #aaa; }
    .submenu li { margin-bottom: 4px;}
     /* ===== 메뉴 컨테이너 ===== */
    .mobile_menu_wrapper, .overlay_menu_container {display: none !important; }
    .pc_modal_menu_container { display: flex; width: 100%; color: #fff; box-sizing: border-box; flex-direction: column; padding: 0 0px;  justify-content: center; align-items: center; border: 0px solid pink; }
    .pc_modal_menu_inner { width: 100%; display: flex; flex-direction: column; position: relative;  align-items: center; padding: 0 0px; }
    .pc_modal_menu_inner { width: 100%; display: flex; flex-direction: column; position: relative;  align-items: center; padding: 0 0px; }
    .pc_main_menu { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: row; gap: 20px; width: 100%; }
    .pc_main_menu_item {flex: 1;text-align: left; display: flex; flex-direction: column; }
    .pc_main_link { font-weight: bold; color: var(--main-color-02); font-size: 1.3em; text-decoration: none; display: block; margin-bottom: 20px; padding: 5px 0px 5px 0px; white-space: nowrap; border: 0px solid green; }
    .pc_submenu_wrapper { margin-top: 10px;}
    .pc_submenu {list-style: none; padding: 0; margin: 0; }
    .pc_submenu li { margin-bottom: 8px;}
    .pc_sub_link {font-size: 1.1em; color: #ddd; text-decoration: none; display: block; white-space: nowrap;transition: color 0.3s; }
    .pc_sub_link:hover {color: #fff;}
    .pc_tertiary_menu {list-style: none; padding-left: 10px; margin-top: 5px; font-size: 0.9em; color: #aaa;}
    .pc_tertiary_menu li {margin-bottom: 4px; }
    .pc_tertiary_link { color: #aaa; text-decoration: none; display: block; transition: color 0.3s; }
    .pc_tertiary_link:hover { color: #fff; }

    /* ===== 1차 메뉴 ===== */
    .pc_modal_menu_inner .depth1 > li { display: flex; align-items: flex-start; width: 1280px;  padding:15px 0 15px 0; border-bottom: 1px dotted #fff; margin-bottom: 15px;}
    .pc_modal_menu_inner .depth1 > li:last-child { border-bottom: none; margin-bottom: -20px; }
    /* ===== 2차 메뉴 ===== */
    .pc_modal_menu_inner .depth2 { display: flex; margin-left: 70px;  border:0px solid red; margin-top: 7px; flex-wrap: wrap;}
    .pc_modal_menu_inner .depth1 > li:nth-child(3) .depth2 { margin-left: 60px; border: 0px solid blue }
    .pc_modal_menu_inner .depth2 > li { display: flex; flex-direction: column; margin-right: 30px; padding-bottom: 10px; position: relative; border:0px solid pink; width: max-content; }
    /* ===== 3차 메뉴 ===== */
    .pc_modal_menu_inner .depth3 { display: flex; flex-direction: column; position: static; margin-top: 10px; }
    }


@media (max-width: 1400px){
.scroll-down-indicator {display: none;}
}

@media screen and (max-width: 1024px) {
    #bo_cate{ position: relative; z-index: 1; margin-top: 70px; } /* 헤더 높이만큼 */
    #main_header {height:70px; position: fixed; top: 0; left: 0; width: 100%;  margin-top: 0; z-index: 100; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);  padding: 0;  z-index: 3000;}
    #main_navigation { display: none !important; }
    .header_inner {height:70px;  background-color: #fff; border-radius: 0px;}
    .logo { position: relative; background-color: #fff; padding: 16px 8px; border-radius: 0px; border:0px solid red;}
    .header_right_group {gap: 0px; height: 70px; border:0px solid red;}
    #button_wrap{ position: relative; border: 0px solid red; width: 50px; background-color: #000; height: 70px; border-radius: 0px;}
    .logo img { width: 150px; }
    .main_menu > li::after { display: none; }
}


@media screen and (max-width: 768px) {
    .product_submenu_wrapper, .horizontal_submenu_wrapper { display: none !important;}
    #full_menu_overlay { position: fixed; left: 0; top: 70px; width: 100%; height: 100vh; height: 100svh; height: 100dvh; background-color: rgba(0, 0, 0, 0.95); z-index: 4000; opacity: 0;  visibility: hidden;  transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out; overflow-y: auto;   padding: 20px;  box-sizing: border-box;  border-radius: 0; box-shadow: none; overflow-x: auto; }
    #full_menu_overlay.open { opacity: 1; visibility: visible; overflow-x: auto; }

    /* 모바일에서 하위 메뉴를 기본적으로 숨김 */
    .pc_submenu_wrapper { display: none;}
    .overlay_submenu.level2, .overlay_submenu.level3 { display: none;}

    .header_language_selector,
    .auth_links a[href*="login.php"],
    .auth_links a[href*="register.php"],
    .fa-user-circle, .fas.fa-user-circle {display: none !important;}
    .online {display: none !important;}
    .mobile_auth_lang_wrap { padding: 15px 20px; border-bottom: 1px solid #ccc; background: #fff; display: flex; justify-content: space-between; align-items: center; }
    .mobile_auth_links a { margin-right: 10px; font-size: 14px; color: #333; text-decoration: none; }
    .mobile_lang_select img { width: 20px; height: 20px; margin-left: 5px;}
    .mobile_auth_links i.fas.fa-user-circle {color: #333; vertical-align: middle;}
    .pc_only { display: none !important;}
    .main-content {flex-direction: column; margin-top: 20px;}
    .main-content-left-box, .main-content-right-box {flex-basis: auto; max-width: none; width: 100%; padding: 0 10px; margin-bottom: 20px; }
}

/* 반응형 작은기기 480px 사이즈 이하 */
@media screen and (max-width:480px){		
  .header_contact_menu { display: none;}
}