.tab-box .tab-inner ul.tab-ul01.row04 {margin-top: 12px}
	
/* PC 버전 기본 스타일 유지 */
.tab-3depth { display: flex; justify-content: center;}
.tab-3depth ul { width: auto; margin: auto; display: inline-flex; border-radius: 8px; border: 1px solid #ddd; overflow: hidden; margin-bottom:80px;}
.tab-3depth ul li { width: 200px; border-right: 1px solid #ddd; }
.tab-3depth ul li:last-child { border-right: 0; }
.tab-3depth ul li a { display: block; padding: 10px; color: #111; font-size: 20px; font-weight: 400; text-align: center; }
.tab-3depth ul li a.active { background: #01367E; font-weight: 700; color: #fff; }

/* 모바일 기본 구조 정의 */
.tab-select-mobile { display: none; }


.tab-4depth ul {
	display:flex;
    border-bottom: 1px solid #E5E5E5 !important; 
    flex-wrap: nowrap !important; 
    overflow-x: auto !important; 
    white-space: nowrap !important; 
    -webkit-overflow-scrolling: touch; 
    -ms-overflow-style: none; 
    scrollbar-width: none; 
    gap: 0;
}

.tab-4depth ul::-webkit-scrollbar { 
    display: none; 
}

.tab-4depth ul li { 
    flex-shrink: 0 !important; 
	width:auto;
}
.tab-4depth ul li a{
	padding:0;
}
.tab-4depth ul li a span {
    position: relative; 
    display: inline-block; 
    padding: 17px 20px; 
    font-size: 18px; 
    line-height: 1.45; 
    letter-spacing: -2%; 
    font-weight: 600; 
    color: #666666; 
    transition: all .3s;
}

.tab-4depth ul li a span::after { 
    content: ''; 
    position: absolute; 
    bottom: 0; 
    left: 50%; 
    transform: translateX(-50%) scaleX(0); 
    width: 100%; 
    height: 1px; 
    background-color: #01367E; 
    transition: transform 0.3s ease-in-out; 
    transform-origin: center; 
}

.tab-4depth ul li a.active span,
.tab-4depth ul li a:hover span { 
    color: #01367E; 
}

.tab-4depth ul li a.active span::after,
.tab-4depth ul li a:hover span::after { 
    transform: translateX(-50%) scaleX(1); 
}

/* ------------------------------------------------------
 * .tab-4depth Swiper 전용 네비게이션 버튼 설정
 * ------------------------------------------------------ */

/* 1. 버튼 기본 공통 스타일 정의 */
.tab-swiper-prev,
.tab-swiper-next {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 40px !important;
    height: 40px !important;
    border: 1px solid #111111 !important;
    border-radius: 50% !important;
    background-color: #111111 !important; 
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 11px 18px !important; 
    z-index: 99 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: inline-block !important; 
}

/* 2. 이전 버튼 활성화 상태 (좌측 배치 및 화살표 반전) */
.tab-swiper-prev {
    left: 0 !important;
    background-image: url("data:image/svg+xml,%3Csvg width='11' height='18' viewBox='0 0 11 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.999999 17L9 9L1 1' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") !important;
    transform: translateY(-50%) rotate(180deg) !important; /* SVG 소스 하나로 left형 리버스 구현 */
}

/* 3. 다음 버튼 활성화 상태 (우측 배치) */
.tab-swiper-next {
    right: 0 !important;
    background-image: url("data:image/svg+xml,%3Csvg width='11' height='18' viewBox='0 0 11 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.999999 17L9 9L1 1' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") !important;
}

/* 4. 첫 번째/마지막 도달 시 비활성화 공통 처리 (흰색 테두리 + 회색 화살표) */
.tab-swiper-prev.swiper-button-disabled,
.tab-swiper-next.swiper-button-disabled {
    background-color: #ffffff !important; 
    border-color: #E5E5E5 !important;
    cursor: default !important;
    pointer-events: none !important;
    opacity: 1 !important; 
}

/* 이전 버튼 비활성화 SVG 매핑 */
.tab-swiper-prev.swiper-button-disabled {
    background-image: url("data:image/svg+xml,%3Csvg width='11' height='18' viewBox='0 0 11 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.999999 17L9 9L1 1' stroke='%23CCC' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") !important;
}

/* 다음 버튼 비활성화 SVG 매핑 */
.tab-swiper-next.swiper-button-disabled {
    background-image: url("data:image/svg+xml,%3Csvg width='11' height='18' viewBox='0 0 11 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.999999 17L9 9L1 1' stroke='%23CCC' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") !important;
}


/* ------------------------------------------------------
 * .tab-4depth 래퍼 연동 특화 예외 조건 (데스크탑 원복 방어선)
 * ------------------------------------------------------ */

/* Swiper 슬라이드가 필요 없을 정도로 갯수가 적을 때(swiper-button-lock 발동 시) 버튼 자동 소멸 */
.tab-swiper-container .tab-swiper-prev.swiper-button-lock,
.tab-swiper-container .tab-swiper-next.swiper-button-lock {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* 모바일 Swiper 활성화 시 버튼 영역 여백 공간(Padding) 강제 확보 */
.tab-swiper-container {
    padding: 0 50px !important; 
}

/* Swiper가 해제된 일반 데스크탑 상태 또는 자동 락(Lock) 상태일 때는 여백을 0으로 강제 초기화 */
.tab-4depth ul:not(.swiper-wrapper),
.tab-swiper-container.swiper-button-lock {
    padding: 0 !important;
}


.tab-3depth ul li a{min-height:auto;}


@media (max-width:1024px){
	.tab-3depth ul{margin-bottom:40px;}
}

/* ==========================================================================
   768px 이하 반응형 제어
   ========================================================================== */
@media (max-width: 768px) {
    /* 기존 PC용 가로 탭 list는 숨김 */
    .tab-3depth ul {
        display: none !important;
		margin-bottom: 20px; /* 주변 레이아웃과 확실하게 격리 */
    }
    
    /* 1. ★ 부모 컨테이너가 축소되거나 유령 좌표가 되지 않도록 완전히 독립된 블록으로 격리 */
    .tab-3depth {
        display: block;
        position: relative;
        width: 100%;
        max-width: 100%;
        height: auto; /* 높이가 0이 되는 것을 방지 */
        min-height: 48px; /* 셀렉트 박스 높이만큼 최소 공간 보장 */
        box-sizing: border-box;
        clear: both; /* 혹시 모를 float 꼬임 방지 */
    }

    /* 2. ★ 셀렉트 박스 자체 정렬 및 성질 강화 */
    .tab-select-mobile {
        display: block;
        position: relative; /* 뷰포트 좌표 연산의 명확한 기준점 제공 */
        width: 100%;
        height: 48px;
        padding: 0 45px 0 15px;
        font-size: 16px;
        border: 1px solid #ddd;
        border-radius: 6px;
        background: #fff;
        color: #111;
        cursor: pointer;
        box-sizing: border-box;
		margin-bottom:20px;
        
        /* 브라우저 기본 UI 성질을 유지하면서 화살표만 지우도록 선언 */
        -webkit-appearance: none ;
        -moz-appearance: none ;
        appearance: none ;
    }
    
    /* 3. 화살표 가상요소 위치 세부 교정 */
    .tab-3depth::after {
        content: '';
        position: absolute;
        right: 20px;
        top: 50%;
        width: 14px;
        height: 8px;
        transform: translateY(-50%) rotate(0deg);
        transition: transform 0.25s ease-in-out;
        pointer-events: none;
        
        background-image: url("data:image/svg+xml,%3Csvg width='16' height='9' viewBox='0 0 16 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.353577 0.353516L7.85358 7.85352L15.3536 0.353516' stroke='black'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-size: contain;
        background-position: center;
        z-index: 10;
    }

    /* 셀렉트가 열렸을 때 화살표 회전 */
    .tab-3depth.is-open::after {
        transform: translateY(-50%) rotate(180deg) !important;
    }
	
	.tab-4depth {
        display: block;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .tab-4depth ul {
        display: flex;
        flex-wrap: nowrap;
        width: max-content;
    }

    .tab-4depth ul li {
        flex: 0 0 auto;
    }
	
	.tab-4depth ul li a span { padding: 12px 14px; font-size: 14px; }
    
    .tab-4depth::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
        background: transparent;
    }
    
    .tab-4depth {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
}