
.container {  max-width: 1600px;margin: 0 auto;}

p {font-size: 18px; line-height: 1.65; color: #666;}
@media screen and (max-width: 768px) {
    p {font-size: 16px !important;}
}


/* 헤더 스크롤 스타일 */
/* .scrolled #pc-nav > ul > li > a { color: #fff; } */
.scrolled .logo a {  }


/* 헤더 스타일 */
#header-wrap { width: 100%; position: fixed; top: 0; left: 0; z-index: 1000; transition: all 0.3s ease; }
.scrolled #header-wrap { _background-color: #fff; _box-shadow: 0 1px 1px rgba(0,0,0,0.1); }
#header {height: 60px; position:relative; max-width:1400px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center;  z-index:11;}
#header .logo{animation: fadeInLeft 1s;  }
#header .logo a img{height:40px;}
#header-wrap:before{position:absolute; top:0; right:0; height:100%; background-image:url('imgs/');  background-color: #6e9d17; content:""; width:100%;z-index:9; _animation: fadeInLeft 1s;}
#header-wrap .header-right{position:relative; animation: fadeInRight 1s; }

#header #lang{position:absolute; top:-20px; right:0;}
#header #lang ul{display:flex; align-items:center;}
#header #lang ul li{display:none; font-weight:bold; font-size:14px;}
#header #lang ul li a{display:inline-block; padding:5px; color:#fff;}
#header #lang ul li a i{margin-right:5px;}
#pc-nav > ul > li > a { color: #fff; }

html[lang="ko"] #header #lang ul li.en{display:inline-block;}
html[lang="en"] #header #lang ul li.ko{display:inline-block;}


#lang2{position:absolute; bottom:20px;left:0px;}
#lang2 ul{display:flex; align-items:center;}
#lang2 ul li{display:none; font-weight:bold; font-size:14px;}
#lang2 ul li a{display:inline-block; padding:5px; color:#fff;}
#lang2 ul li a i{margin-right:5px;}

html[lang="ko"] #lang2 ul li.en{display:inline-block;}
html[lang="en"] #lang2 ul li.ko{display:inline-block;}



@media all and (min-width:1021px) {

  #header-wrap{padding: 0 40px;}
  #header {height: 110px; padding: 0;}
  #header .logo a img{height:63px;}
  #header-wrap:before{animation:mr 1s; transform:skewX(35deg); position:absolute; top:0; right:70%; height:100%;   background-color: #6e9d17; content:""; width:50%; _clip-path:polygon(0 0, 100% 0, 90% 100%, 0% 100%); z-index:9; transition:0.3s;}
  #header-wrap:after{animation:ml 1s; transform:skewX(-35deg); _animation: fadeInRight 1s; position:absolute; top:0; left:55%; height:100%;  background-color: #6e9d17; content:""; width:60%; _clip-path:polygon(10% 0%, 100% 0%, 100% 100%, 0% 100%); z-index:9; transition:0.3s;}

}

@media all and (min-width:2000px){

  #header-wrap:before{right:65%;}
  #header-wrap:after{left:55%;}

}


@keyframes mr {
  from {
    opacity: 0;
    margin-right:50px;
    /* transform: translateX(50px); */
  }
  to {
    opacity: 1;
    margin-right:0;
    /* transform: translateX(0); */
  }
}
@keyframes ml {
  from {
    opacity: 0;
    margin-left:50px;
    /* transform: translateX(50px); */
  }
  to {
    opacity: 1;
    margin-left:0;
    /* transform: translateX(0); */
  }
}



/* 로고 스타일 */
.main .logo { flex-shrink: 0; }
.main .logo a { display: inline-block;    }
.logo { flex-shrink: 0; }
.logo a { display: inline-block;  text-decoration: none;     }
.scrolled .logo a {    }
/* 헤더 우측 영역 스타일 */
.header-right { display: flex; align-items: center; }

/* PC 네비게이션 스타일 */
#pc-nav > ul {position:relative; top:10px; display: flex; list-style-type: none; margin: 0; padding: 0; }
#pc-nav > ul > li { position: relative; margin-right: 50px; height:60px;}
#pc-nav > ul > li:last-child { margin-right: 0; }
#pc-nav > ul > li > a {line-height:45px; display: block; padding: 10px 0; text-decoration: none; color: #fff; font-weight: 800; font-size: 18px; cursor: pointer; opacity:1;  transition: color 0.3s ease, opacity 0.3s ease;}
#pc-nav > ul > li > a:hover { color: #e8f603; opacity: 0.8;}


/* .main.scrolled  #pc-nav > ul > li > a { display: block; padding: 10px 0; text-decoration: none; color: #1a1a1a; font-weight: 500; font-size: 18px; cursor: pointer; opacity: 0.8; }
.main.scrolled  #pc-nav > ul > li > a:hover { opacity: 1; color: #1a1a1a; } */


.main.scrolled #profileButton span:before, .main #profileButton span:after { background-color: #000}
.main.scrolled #profileButton span { background-color: #000}
.main.scrolled #profileButton span:after  { background-color: #000}

/* 서브메뉴 스타일 수정 */

/*
.main #pc-nav > ul > li > ul { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(10px); background-color: #000; padding: 25px 0; min-width: 220px; z-index: 1000; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, transform 0.3s ease; border-radius: 10px; } */

#pc-nav > ul > li > ul { position: absolute; top:55px; left: 50%; transform: translateX(-50%) translateY(10px); background-color: #345001; padding: 25px 0; min-width: 220px; z-index: 1000; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, transform 0.3s ease; border-radius: 10px; }



#pc-nav > ul > li:hover > ul { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
#pc-nav > ul > li > ul > li { position: relative; padding: 5px 10px; }
#pc-nav > ul > li > ul > li > a { display: block; padding: 8px 20px; color: #fff; opacity: 0.8; text-decoration: none; font-weight: 500; font-size: 17px; transition: all 0.3s ease; }
#pc-nav > ul > li > ul > li > a:hover { opacity: 1; color: #e8f603;}

/* 3단계 서브메뉴 스타일 수정 */
#pc-nav > ul > li > ul > li > ul.third-level { position: absolute;top: 0;left: 100%; background-color: #345001; padding: 10px 0; min-width: 200px; z-index: 1001; opacity: 0; visibility: hidden; transform: translateX(-10px); transition: opacity 0.3s ease, transform 0.3s ease;}
#pc-nav > ul > li > ul > li:hover > ul.third-level {  opacity: 1;visibility: visible; transform: translateX(0); }
#pc-nav > ul > li > ul > li > ul.third-level > li > a { padding: 8px 20px; color: #fff; text-decoration: none; font-size: 16px; opacity: 0.8; line-height: 2.1 }
#pc-nav > ul > li > ul > li > ul.third-level > li > a:hover { opacity: 1; }

/* has-submenu 클래스 스타일 */
.has-submenu { position: relative; padding-right: 20px !important; }
.has-submenu::after { content: 'chevron_right'; font-family: 'Material Icons'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 18px; color: inherit; opacity: 0.8; transition: transform 0.3s ease; }
#pc-nav .has-submenu::after { right: 5px; }
#mobile-nav .has-submenu::after { right: 15px; content: 'expand_more'; }
#mobile-nav .has-submenu.active::after { transform: translateY(-50%) rotate(180deg); }
.has-submenu:hover::after, .has-submenu.active::after { opacity: 1; }

/* 로그인 및 사이트맵 컨테이너 스타일 */
.login-sitemap-container { display: flex; align-items: center; }
.login-sitemap-container .sitemap-button { color: #0A0A0A; }
#login-box { display: flex; align-items: center; margin-right: 60px; }
#login-box a { margin-left: 15px; text-decoration: none; color: #fff; padding: 14px 26px; background-color: #242424; border-radius: 50px; text-align: center; width: 100px; }

/* 사이트맵 버튼 스타일 */
#sitemap-container { position: relative; width: 30px; height: 30px; display: flex; align-items: center; }
.sitemap-button { width: 30px; height: 30px; background: none; border: none; cursor: pointer; padding: 0; z-index: 1001; position: relative; }
#sitemap span, #sitemap_close span { display: block; width: 100%; height: 2px; background-color: #fff; margin: 6px 0; transition: all 0.3s ease-in-out; }
#sitemap_close { display: none; }
#sitemap_close span:first-child { transform: rotate(45deg) translate(5px, 5px); }
#sitemap_close span:last-child { transform: rotate(-45deg) translate(3px, -3px); }
#sitemap_close span:nth-child(2) { opacity: 0; }

/* 스크롤 시 사이트맵 버튼 색상 변경 */
/* .scrolled #header-wrap #mobile-menu-btn span { background-color: #333} */
/* #header-wrap.scrolled #sitemap span, #header-wrap.scrolled #sitemap_close span { background-color: #333; } */

/* 모바일 네비게이션 스타일 */
#mobile-menu-btn { display: none; position: fixed; top: 16px; right: 20px; z-index: 1003; background: none; border: none; cursor: pointer; width: 30px; height: 30px; }
#mobile-menu-btn span { display: block; width: 25px; height: 3px; background-color: #fff; margin: 5px 0; transition: all 0.3s ease; }

#mobile-menu-btn span { display: block; width: 25px; height: 3px; background-color: #fff; margin: 5px 0; transition: all 0.3s ease; }
#mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
#mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
#mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }
#mobile-nav { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.9); z-index: 1002; overflow-y: auto; padding-top: 60px; }
#mobile-nav.active { display: block; }
#mobile-nav ul { list-style-type: none; padding: 0 30px; }
#mobile-nav ul ul { display: none; padding: 10px 0 10px 15px; }
#mobile-nav ul li.active > ul { display: block; }
#mobile-nav ul ul li > a { padding: 15px 0; color: #fff; opacity: 0.8; }
#mobile-nav ul li > ul > li > a > .third-level { background-color: #333; }
#mobile-nav ul li { position: relative; }
#mobile-nav ul li > a { display: block; padding: 18px 0; color: #fff; text-decoration: none; font-size: 18px; position: relative; }

/* 모바일 네비게이션 닫기 버튼 스타일 수정 */
#mobile-nav-close { position: absolute; top: 20px; right: 20px; z-index: 1003; width: 30px; height: 30px; background: none; border: none; cursor: pointer; padding: 0; }

/* X 아이콘 생성 */
#mobile-nav-close span { position: relative; display: block; width: 100%; height: 2px; background-color: transparent; }
#mobile-nav-close span::before, #mobile-nav-close span::after { content: ''; position: absolute; left: 0; top: 50%; width: 100%; height: 2px; background-color: #fff; transform-origin: center; }
#mobile-nav-close span::before { transform: rotate(45deg); }
#mobile-nav-close span::after { transform: rotate(-45deg); }

/* PC 모드에서 닫기 버튼 숨기기 */
@media screen and (min-width: 1021px) { #mobile-nav-close { display: none; } }

/* 프로필 랩 스타일 */
#profileWrap { display: none; position: fixed; top: 0; left: -100%; z-index: 100; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); backdrop-filter: blur(10px); }
#profileWrap .background_wrap { position: absolute; z-index: 1; width: 30%; margin: 0 auto; }
#profileWrap .background { position: absolute; left: 0; top: 0; width: 0; height: 100vh; margin-left: 0; background: url(../img/bg.jpg) left no-repeat; background-size: cover; }

/* 카테고리 스타일 */
.category { position: absolute; right: 0; top: 0; width: 0; height: 100%; background-color: #fff; }
.category > ul { position: absolute; top: 50%; transform: translateY(-50%); width: 100%; padding: 0 10%; }
.category > ul > li { opacity: 0; margin-left: 100px; padding-bottom: 20px; border-bottom: 1px solid rgba(0,0,0,0.1); }
.category > ul > li + li { margin-top: 20px; }
.category > ul > li > a { display: block; width: max-content; margin-bottom: 20px; font-size: 24px; color: #333; text-decoration: none; }
.category > ul > li ul { display: flex; flex-wrap: wrap; }
.category > ul > li ul li + li { margin-left: 25px; }
.category > ul > li ul a { opacity: 0.8; font-size: 17px; color: #222; text-decoration: none; transition: all 0.2s; }
.category > ul > li ul a:hover { opacity: 0.7; }

/* 3단 메뉴 스타일 */
.category > ul > li ul .third-level { display: flex; flex-direction: row; margin-top: 10px; padding-left: 0; border-left: none; background-color: rgba(0,0,0,0.05); border-radius: 4px; padding: 5px; justify-content: center; }
.category > ul > li ul .third-level li { margin-left: 0; margin-top: 0; margin-right: 15px; }
.category > ul > li ul .third-level li:last-child { margin-right: 0; }
.category > ul > li ul .third-level a { font-size: 14px; opacity: 0.8; white-space: nowrap; }
.category > ul > li ul .third-level a:hover { opacity: 1; }

/* 애니메이션 */
@keyframes fadeInUp { from { opacity: 0; transform: translate3d(0, 40px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
.category > ul > li { animation: fadeInUp 0.5s ease-out forwards; }
.category > ul > li:nth-child(1) { animation-delay: 0.4s; }
.category > ul > li:nth-child(2) { animation-delay: 0.5s; }
.category > ul > li:nth-child(3) { animation-delay: 0.6s; }
.category > ul > li:nth-child(4) { animation-delay: 0.7s; }
.category > ul > li:nth-child(5) { animation-delay: 0.8s; }
.category > ul > li:nth-child(6) { animation-delay: 0.9s; }

/* 반응형 스타일 */
@media screen and (max-width: 1300px) {
    #pc-nav > ul > li { margin-right: 20px; }
    #pc-nav > ul > li > a { font-size: 14px; }
    #login-box a { margin-left: 15px; text-decoration: none; color: #fff; padding: 12px 24px; background-color: #242424; border-radius: 50px; text-align: center; font-size: 12px; }
}

@media screen and (max-width: 1020px) {
    #pc-nav { display: none; }
    .header-right { display: none; }
    #mobile-menu-btn { display: block !important; }
    #profileWrap .category_wrap { width: 100%; }
    .category > ul { padding: 0 10%; }
    .category > ul > li > a { font-size: 20px; }
    .category > ul > li ul a { font-size: 14px; }
    #header { padding: 0 20px; }
    .logo a {  }
    #sitemap-container { right: 60px; }
}

/* 프린트 스타일 */
@media print { #header-wrap, #mobile-nav, #profileWrap { display: none !important; } body { font-size: 12pt; } a[href]:after { content: " (" attr(href) ")"; } }

/* 포커스 가시성 향상 */
a:focus-visible, button:focus-visible { outline: 2px solid #007bff; outline-offset: 2px; }

/* 키보드 네비게이션을 위한 포커스 스타일 */
#pc-nav > ul > li > a:focus + ul { opacity: 1; visibility: visible; }

/* 애니메이션 리셋을 위한 스타일 */
#pc-nav > ul > li > ul.reset-animation > li { animation: none; opacity: 1; transform: translateY(0); transition: none; }

/* 스크롤바 스타일 (웹킷 기반 브라우저) */
#mobile-nav::-webkit-scrollbar { width: 5px; }
#mobile-nav::-webkit-scrollbar-track { background: #f1f1f1; }
#mobile-nav::-webkit-scrollbar-thumb { background: #888; }
#mobile-nav::-webkit-scrollbar-thumb:hover { background: #555; }

/* 로딩 인디케이터 스타일 */
#loading { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.8); z-index: 9999; display: flex; justify-content: center; align-items: center; }
#loading::after { content: ""; width: 50px; height: 50px; border: 5px solid #f3f3f3; border-top: 5px solid #3498db; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* 추가적인 접근성 개선 스타일 */
.visually-hidden { position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip: rect(1px 1px 1px 1px); clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* 고대비 모드 지원 */
@media (forced-colors: active) { #header-wrap, #mobile-nav, #profileWrap { border: 1px solid currentColor; } .sitemap-button span, #mobile-menu-btn span { background-color: currentColor; } }

/* 메뉴 활성화 시 색상 변경 */
.nav > ul > li.active > a .chevron-icon, .site_map_menu > ul > li.active > a .chevron-icon, .category_wrap .category > ul > li.active > a .chevron-icon { color: var(--primary); }

/* 메뉴버튼 */
.main #profileButton { display: flex; position: absolute; top: 0; right: 50px; z-index: 101; height: 90px; cursor: pointer; transition: all 0.2s; }
.main #profileButton span { display: block; position: relative; width: 24px; height: 2px; margin: auto; background: #fff; transition: all 0.2s; }
.main #profileButton span:before, #profileButton span:after { display: block; content: ""; position: absolute; top: 0; width: 100%; height: 2px; background: #fff; transition: all 0.2s; }
.main #profileButton span:before { top: -6px; }
.main #profileButton span:after { top: 6px;}
.main #profileButton.active { position: fixed; }
.main #profileButton.active span { border: none;  }
.main #profileButton.active span:before { top: 0; transform: rotate(45deg); background: #fff }
.main #profileButton.active span:after { top: 0; transform: rotate(-45deg); background: #fff }

.main #profileButton span:before, .main #profileButton span:after { background-color: #fff}


/* 메뉴오픈 */
#profileWrap { display: none; position: fixed; top: 0; left: -100%; z-index: 100; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); backdrop-filter: blur(10px); }
#profileWrap .background_wrap { position: absolute; z-index: 1; width: 30%; margin: 0 auto; }
#profileWrap .background { position: absolute; left: 0; top: 0; width: 100%; max-height: 980px; height: 100vh; margin-left: 0; background: url(./bg.jpg) left no-repeat; background-size: cover; }
.category { position: absolute; right: 0; top: 0; width: 100%; height: 100%; background-color: var(--primary); }
.category > ul { position: absolute; top: 50%; transform: translateY(-50%); width: 100%; padding: 0 15%; }
.category > ul > li { opacity: 0; margin-left: 100px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.25); }
.category > ul > li + li { margin-top: 40px; }
.category > ul > li > a { display: block; width: max-content; margin-bottom: 20px; font-size: 32px; color: #fff; font-family: var(--main-font); }
.category > ul > li:nth-child(1) { animation-delay: 0.4s; }
.category > ul > li:nth-child(2) { animation-delay: 0.5s; }
.category > ul > li:nth-child(3) { animation-delay: 0.6s; }
.category > ul > li:nth-child(4) { animation-delay: 0.7s; }
.category > ul > li:nth-child(5) { animation-delay: 0.8s; }
.category > ul > li ul { display: flex; flex-wrap: wrap; }
.category > ul > li ul li + li { margin-left: 25px; }
.category > ul > li ul a { opacity: 0.6; font-size: 18px; font-weight: 500; color: #fff; transition: all 0.2s; }
.category > ul > li ul a:hover { opacity: 1; }














/*  */
