/* 헤더가 스크롤되었을 때 높이 조정 */
.scrolled ~ * .org-chart-container {
    min-height: calc(100vh - 70px); /* 스크롤된 헤더 높이 70px */
}

/* 배경 텍스트 */
.org-bg-text {
    position: fixed;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.org-bg-text span {
    display: inline-block;
    font-size: 200px;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.015);
    white-space: nowrap;
    animation: flowText 30s linear infinite;
}

@keyframes flowText {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* 조직도 페이지 스타일 */

/* 제목 섹션 */
.org-title-section {
    text-align: center;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(30px);
}

.org-title {
    font-family: 'Pretendard', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.org-subtitle {
    font-family: 'Pretendard', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #888888;
    letter-spacing: 0.02em;
    margin: 0;
}

/* 조직도 컨테이너 */
.org-chart-container {
    width: 100%;
    max-width: 1430px;
    margin: 0 auto;
    padding: 100px 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* flex-start에서 center로 변경 - 세로 중앙 정렬 */
    min-height: calc(80vh - 85px); /* 100vh에서 80vh로 변경 */
    position: relative;
    background: transparent;
    z-index: 1; /* 배경 텍스트보다 위에 표시 */
}


/* 조직도 래퍼 */
.org-chart-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(30px);
}

/* 조직도 이미지 */
.org-chart-image {
    width: 100%;
    max-width: 1000px;
    height: auto;
    display: block;
}

/* 반응형 처리 */
@media (max-width: 768px) {
    .org-chart-container {
        padding: 20px 16px 40px; /* 상단 20px, 좌우 16px, 하단 40px */
        min-height: auto; /* 최소 높이 제거 */
        height: auto;
        margin-top: 0; /* 탭 메뉴 위한 상단 여백 제거 */
    }
    
    .org-title-section {
        margin-bottom: 30px;
    }
    
    .org-title {
        font-size: 32px;
    }
    
    .org-subtitle {
        font-size: 16px;
    }
    
    /* 배경 텍스트 모바일 위치 조정 */
    .org-bg-text {
        top: 30%; /* 50%에서 30%로 위로 올리기 */
    }
    
    .org-bg-text span {
        font-size: 80px; /* 모바일에서 글씨 크기 줄이기 */
        animation: flowText 25s linear infinite;
    }
    
    .org-chart-wrapper {
        transform: none; /* 모바일에서는 위치 이동 없음 */
        width: 100%;
        margin-bottom: 0; /* 하단 여백 제거 */
    }
    
    .org-chart-image {
        width: 100%; /* 컨테이너 너비에 맞춤 */
        max-width: 100%; /* 최대 너비도 100% */
        height: auto;
        display: block;
    }
}