/**
 * NextBio Website - Sub Visual Styles
 */

/* Visual 기본 스타일 */
.visual {
    padding: 70px 0 0 0; /* 헤더 높이만큼 상단 패딩 */
    display: flex;
    flex-direction: column;
    gap: 160px;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

/* Title 영역 */
.visual .title {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
    justify-content: flex-start;
    flex-shrink: 0;
    width: 1440px;
    max-width: 100%;
    position: relative;
}

.visual .company {
    color: var(--gray-01, #808284);
    text-align: left;
    font-family: 'SUIT', sans-serif;
    font-size: 24px;
    line-height: 32px;
    font-weight: 700;
    position: relative;
}

.visual .div {
    color: var(--000, #000000);
    text-align: left;
    font-family: 'SUIT', sans-serif;
    font-size: 64px;
    line-height: 64px;
    font-weight: 800;
    position: relative;
}

/* Image & Tab 영역 */
.visual .img-tab {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
    justify-content: flex-start;
    flex-shrink: 0;
    position: relative;
    width: 100%;
    isolation: isolate; /* 새로운 stacking context 생성 */
}

.visual .img {
    flex-shrink: 0;
    width: 1920px;
    max-width: 100%;
    height: 520px;
    position: relative;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
    touch-action: none; /* 터치 이벤트 비활성화 */
    margin-bottom: 0; /* 탭과의 간격 제거 */
    /* 펼쳐지는 인터랙션: 중앙에서 네모(사각)로 퍼져 나감 */
    clip-path: inset(50% 50% 50% 50%);
    transition: clip-path 2.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.visual.is-visible .img {
    clip-path: inset(0 0 0 0);
}

.visual .img .breadcrumb {
    pointer-events: auto;
    position: relative;
    z-index: 10;
}

/* Breadcrumb */
.visual .breadcrumb {
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: center;
    justify-content: flex-start;
    position: absolute;
    left: 240px;
    top: 30px;
    z-index: 5;
}

.visual .union {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    position: relative;
    overflow: visible;
}

.visual .breadcrumb a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.visual .breadcrumb a:hover {
    opacity: 0.8;
}

.visual .line-breadcrumb {
    margin-top: -1px;
    border-style: solid;
    border-color: #ffffff;
    border-width: 1px 0 0 0;
    opacity: 0.5;
    flex-shrink: 0;
    width: 16px;
    height: 0px;
    position: relative;
    transform-origin: 0 0;
    transform: rotate(90deg) scale(1, 1);
}

.visual .breadcrumb-item {
    color: var(--fff, #ffffff);
    text-align: left;
    font-family: 'SUIT', sans-serif;
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    position: relative;
}

.visual .breadcrumb-item a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.visual .breadcrumb-item a:hover {
    opacity: 0.8;
}

/* Tab Wrap */
.visual .tab-wrap {
    background: var(--fff, #ffffff);
    border-style: solid;
    border-color: var(--gray-02, #dfdfdf);
    border-width: 0px 0px 1px 0px;
    padding: 0px 0px 0px 240px;
    display: flex;
    flex-direction: row;
    gap: 0px;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
    width: 1920px;
    max-width: 100%;
    position: relative;
    z-index: 10;
    pointer-events: auto;
    touch-action: manipulation; /* 터치 이벤트 활성화 */
    margin-top: 0; /* 이미지와의 간격 제거 */
    transform: translateZ(0); /* GPU 가속으로 레이어 분리 */
}

.visual .menu-li {
    padding: 30px 24px 30px 24px;
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    z-index: 11;
    pointer-events: auto;
    touch-action: manipulation; /* 터치 이벤트 활성화 */
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
}

/* a 태그인 menu-li는 전체 영역 클릭 가능 */
.visual .tab-wrap a.menu-li {
    display: flex;
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
}

.visual .menu-li.active {
    border-style: solid;
    border-color: var(--main, #8dc63f);
    border-width: 0px 0px 2px 0px;
}

.visual .menu-li:focus {
    outline: none;
}

.visual .menu-li:focus-visible {
    outline: 2px solid var(--main, #8dc63f);
    outline-offset: 2px;
}

.visual .menu-li2 {
    color: var(--gray-01, #808284);
    text-align: left;
    font-family: 'SUIT', sans-serif;
    font-size: 20px;
    line-height: 30px;
    font-weight: 600;
    position: relative;
    pointer-events: none;
    user-select: none;
}

.visual .menu-li.active .menu-li2 {
    color: var(--main, #8dc63f);
}

.visual .menu-li:hover .menu-li2 {
    color: var(--main, #8dc63f);
}

/* 반응형 */
@media (max-width: 1440px) {
    .visual .title {
        width: 100%;
        padding: 0 120px;
    }
    
    .visual .img {
        width: 100%;
    }
    
    .visual .breadcrumb {
        left: 120px;
    }
    
    .visual .tab-wrap {
        width: 100%;
        padding-left: 120px;
    }
}

@media (max-width: 1024px) {
    .visual {
        gap: 80px;
    }
    
    .visual .title {
        padding: 0 40px;
    }
    
    .visual .div {
        font-size: 48px;
        line-height: 56px;
    }
    
    .visual .img {
        width: 100%;
        height: 400px;
    }
    
    .visual .breadcrumb {
        left: 40px;
        top: 20px;
        gap: 16px;
    }
    
    .visual .breadcrumb-item {
        font-size: 14px;
        line-height: 20px;
    }
    
    .visual .tab-wrap {
        width: 100%;
        padding-left: 40px;
        overflow-x: auto;
    }
    
    .visual .menu-li {
        padding: 20px 16px;
    }
    
    .visual .menu-li2 {
        font-size: 18px;
        line-height: 26px;
    }
}

@media (max-width: 768px) {
    .visual {
        padding-top: 70px;
        gap: 40px;
    }
    
    .visual .title {
        padding: 0 20px;
        gap: 16px;
    }
    
    .visual .company {
        font-size: 20px;
        line-height: 28px;
    }
    
    .visual .div {
        font-size: 36px;
        line-height: 44px;
    }
    
    .visual .img {
        width: 100%;
        height: 300px;
    }
    
    .visual .breadcrumb {
        left: 20px;
        top: 15px;
        gap: 12px;
        flex-wrap: wrap;
    }
    
    .visual .union {
        width: 16px;
        height: 16px;
    }
    
    .visual .breadcrumb-item {
        font-size: 12px;
        line-height: 18px;
    }
    
    .visual .line-breadcrumb {
        width: 12px;
    }
    
    .visual .tab-wrap {
        width: 100%;
        padding-left: 20px;
    }
    
    .visual .menu-li {
        padding: 16px 12px;
    }
    
    .visual .menu-li2 {
        font-size: 16px;
        line-height: 24px;
    }
}

/* 480px: 초소형 화면 (TECHNOLOGY 등 서브페이지 공통) */
@media (max-width: 480px) {
    .visual {
        padding-top: 60px;
        gap: 32px;
    }

    .visual .title {
        padding: 0 16px;
        gap: 12px;
    }

    .visual .company {
        font-size: 18px;
        line-height: 24px;
    }

    .visual .div {
        font-size: 28px;
        line-height: 36px;
    }

    .visual .img {
        height: 240px;
    }

    .visual .breadcrumb {
        left: 16px;
        top: 12px;
        gap: 10px;
    }

    .visual .union {
        width: 14px;
        height: 14px;
    }

    .visual .breadcrumb-item {
        font-size: 11px;
        line-height: 16px;
    }

    .visual .line-breadcrumb {
        width: 10px;
    }

    .visual .tab-wrap {
        padding-left: 16px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .visual .menu-li {
        padding: 14px 10px;
        flex-shrink: 0;
    }

    .visual .menu-li2 {
        font-size: 14px;
        line-height: 20px;
    }
}
