 body {
   font-family: Noto Sans CJK KR;
 }

 .header {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   z-index: 9999;
   background-color: transparent;
   transition: background-color 0.3s ease, border-color 0.3s ease;
 }

 .header.hovered,
 .header.scrolled {
   background-color: #ffffff;
 }

 .header.hovered .header__gnb,
 .header.scrolled .header__gnb,
 .header.hovered .header__btn,
 .header.scrolled .header__btn {
   color: #000;
 }

 .header__nav {
   display: flex;
   justify-content: space-between;
   align-items: center;
   padding: 0 50px;
   height: 80px;
   border-bottom: 1px solid rgba(255, 255, 255, 0.1);
 }

 .header__logo img {
   height: 50px;
 }

 .header__btn {
   display: flex;
   align-items: center;
   gap: 1rem;
   color: #ffffff;
 }

 .header__btn .search_btn {
   cursor: pointer;
   transform: translateY(2px);
 }

 .header__btn .menu_btn {
   display: flex;
   flex-direction: column;
   justify-content: space-between;
   width: 24px;
   height: 18px;
   cursor: pointer;
 }

 .header__btn .menu_btn .bar {
   display: block;
   width: 100%;
   height: 2px;
   background-color: #ffffff;
   transition: 0.3s ease;
 }

 .header.hovered .menu_btn .bar,
 .header.scrolled .menu_btn .bar {
   background-color: #333333;
 }

 .menu_btn:hover .bar:nth-child(1) {
   width: 80%;
 }

 .menu_btn:hover .bar:nth-child(2) {
   width: 60%;
 }

 .header__gnb {
   height: 100%;
   display: flex;
   justify-content: space-between;
   align-items: center;
   font-family: Noto Sans CJK KR;
   font-size: 1.125rem;
   color: #ffffff;
   font-weight: 600;
 }

 .header__gnb>li {
   min-width: 200px;
   height: 100%;
   position: relative;
   display: flex;
   justify-content: center;
   align-items: center;
   cursor: pointer;
 }

 .header__gnb>li::after {
   content: "";
   position: absolute;
   bottom: -3px;
   left: 50%;
   transform: translateX(-50%) scaleX(0);
   width: 100%;
   height: 2px;
   z-index: 2;
   background-color: #000;
   transition: transform 0.3s ease;
   transform-origin: center;
 }

 .header__gnb>li:hover::after {
   transform: translateX(-50%) scaleX(1);
 }

 .header__gnb>li.active::after {
   transform: translateX(-50%) scaleX(1);
 }

 .header__sub {
   position: absolute;
   top: 100%;
   left: 0;
   width: 100%;
   height: 270px;
   /* 서브 메뉴 높이 */
   background: white;
   z-index: 1;
   display: none;
   /* 기본 숨김 */
   text-align: center;
   border-top: 1px solid rgba(0, 0, 0, 0.1);
 }

 .header__sub_wrap {
   position: relative;
   width: 100%;
   height: 100%;
 }

 .header__sub_list {
   position: absolute;
   top: 0;
   width: 200px;
   height: 100%;
   white-space: normal;
   padding-left: 0;
   margin: 0;
   padding-top: 20px;
   list-style: none;
   text-align: center;
   border-left: 1px solid rgba(0, 0, 0, 0.1);
 }

 .header__sub_list:last-child {
   border-right: 1px solid rgba(0, 0, 0, 0.1);
 }

 .header__sub_list li {
   margin-bottom: 10px;
 }

 .header__sub_list li a {
   color: #333;
   font-size: 1rem;
   text-decoration: none;
   padding: 5px 10px;
   display: inline-block;
   transition: color 0.3s ease;
 }

 .header__sub_list li a:hover {
   color: #34445b;
 }

 @media screen and (max-width: 1280px) {
   .header__gnb>li {
     min-width: 150px;
   }

   .header__sub_list {
     width: 150px;
   }
 }

 @media screen and (max-width: 1024px) {
   .header__gnb {
     display: none;
   }
 }

 @media screen and (max-width: 768px) {
   .header__nav {
     padding: 0 24px;
     height: 60px;
   }

   .header__logo img {
     height: 40px;
   }
 }

 /* mobile__menu */

 body.no_scroll {
   overflow: hidden;
   height: 100vh;
 }

 .mobile__menu {
   position: fixed;
   top: 0;
   right: 0;
   width: 85%;
   max-width: 320px;
   height: 100vh;
   background: #ffffff;
   transform: translateX(120%);
   transition: transform 0.35s ease;
   z-index: 999;
   display: flex;
   flex-direction: column;
   padding: 2rem 1.5rem 5rem;
   padding-bottom: env(safe-area-inset-bottom);
   box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
   border-top-left-radius: 1rem;
   border-bottom-left-radius: 1rem;
 }

 .mobile__menu.active {
   transform: translateX(0);
 }

 .mobile__top {
   display: flex;
   justify-content: end;
   align-items: center;
   margin-bottom: 2rem;
 }

 .mobile__menu_close {
   background: none;
   border: none;
   font-size: 1.8rem;
   line-height: 1;
   cursor: pointer;
   color: #444;
   transition: color 0.2s;
 }

 .mobile__menu_close:hover {
   color: var(--color_primary);
 }

 .mobile__admin {
   font-size: 0.9rem;
   color: #666;
 }

 .mobile__admin a {
   color: inherit;
   text-decoration: none;
 }

 .mobile__menu_list {
   list-style: none;
   margin: 0;
   padding: 0;
   display: flex;
   flex-direction: column;
   gap: 1rem;
 }

 .mobile__menu_main {
   font-size: 1.25rem;
   font-weight: 600;
   cursor: pointer;
   padding: 0.75rem 0;
   display: flex;
   justify-content: space-between;
   align-items: center;
   color: #222;
   transition: color 0.2s;
   border-bottom: 1px solid #eee;
 }

 .mobile__menu_main:hover {
   color: var(--color_primary);
 }

 .mobile__submenu {
   list-style: none;
   padding-left: 1rem;
   max-height: 0;
   overflow: hidden;
   transition: max-height 0.3s ease;
   font-size: 1rem;
 }

 .mobile__submenu li {
   padding: 0.4rem 0;
 }

 .mobile__submenu li a {
   color: #555;
   text-decoration: none;
   display: block;
   transition: color 0.2s;
 }

 .mobile__submenu li a:hover {
   color: var(--color_primary);
 }

 .mobile__bottom_btns {
   position: absolute;
   bottom: 0;
   left: 0;
   width: 100%;
   display: flex;
   justify-content: space-around;
   border-top: 1px solid #eee;
   background: #fafafa;
   padding: 1rem 0;
 }

 .mobile__bottom_btns button {
   flex: 1;
   margin: 0 0.25rem;
   padding: 0.75rem;
   font-size: 0.95rem;
   border: none;
   border-radius: 0.5rem;
   cursor: pointer;
   transition: background 0.2s;
 }

 .mobile__bottom_btns .btn-2 {
   background: var(--color_primary);
   color: #fff;
 }

 .mobile__bottom_btns .btn-3 {
   background: #1d3557;
   color: #ffffff;
 }

 .mobile__dimmed {
   display: none;
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100vh;
   background: rgba(0, 0, 0, 0.4);
   z-index: 998;
   backdrop-filter: blur(2px);
   transition: opacity 0.3s ease;
 }

 .mobile__dimmed.active {
   display: block;
 }


 .contact__side {
   position: absolute;
   /* 문서 기준 */
   right: 0;
   top: 100px;
   /* 초기 위치 */
   transform: rotate(-90deg) translateY(-100%);
   transform-origin: right top;
   z-index: 98;
   display: flex;
 }

 .contact__side div {
   padding: 1rem 2rem;
   font-size: 1rem;
   text-align: center;
   cursor: pointer;
 }

 .contact__kakao {
   background-color: var(--color_primary);
   color: #000;
   font-weight: 700;
 }

 .contact__online {
   background-color: #1d3557;
   color: #fff;
 }

 @media (max-width: 1024px) {
   .contact__side {
     display: none;
   }
 }

 /* === Lang switch === */
 .header .header__btn {
   display: flex;
   align-items: center;
   gap: 52px;
 }

 /* 랭 버튼 */
 .lang {
   position: relative;
   z-index: 50;
 }

 .lang__btn {
   display: inline-flex;
   align-items: center;
   gap: 6px;
   color: #fff;
   font-weight: 800;
   letter-spacing: 0.2px;
   background: transparent;
   border: 0;
   cursor: pointer;
   padding: 6px 2px;
   border-bottom: 2px solid #fff;
   line-height: 1;
 }

 .lang__chev {
   transform: translateY(1px);
   font-size: 12px;
 }

 /* 드롭 리스트 (스크린샷처럼 세로 줄 리스트) */
 .lang__list {
   position: absolute;
   right: 0;
   top: calc(100% + 12px);
   min-width: 120px;
   padding: 10px 14px 6px 14px;
   background: rgba(0, 0, 0, .35);
   backdrop-filter: saturate(120%) blur(2px);
   border-radius: 4px;
   border: 1px solid rgba(255, 255, 255, .25);
   display: none;
 }

 .lang[data-open="true"] .lang__list {
   display: block;
 }

 /* 항목들 — 흰색 텍스트 + 밑줄 */
 .lang__list li {
   list-style: none;
 }

 .lang__list a {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 8px;
   color: #fff;
   text-decoration: none;
   font-weight: 800;
   padding: 6px 0 10px;
   border-bottom: 2px solid #fff;
 }

 .lang__list li:last-child a {
   border-bottom: 0;
   padding-bottom: 2px;
 }

 /* 호버 */
 .lang__list a:hover {
   opacity: .9;
 }

 /* 모바일 간격 보정 */
 @media (max-width: 768px) {
   .header .header__btn {
     gap: 10px;
   }

   .lang__list {
     right: 0;
   }
 }