body {
    font-family: var(--theme-font-normal);
}
.org-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.level {
    position: relative;
    text-align: center;
    margin-bottom: 40px;
}
.level::after {
    content: "";
    display: block;
    width: 2px;
    height: 80px;
    background: var(--theme-item-border);
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
}
.level.with-side {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.center-group {
    display: flex;
    justify-content: center;
}
/* PC 전용 감사 */
.side-group.pc-only {
    position: absolute;
    right: -370px;
    top: 0;
    display: block;
}
.box {
    background: #fff;
    border: 1px solid var(--theme-main-color);
    color: var(--theme-text-color);
    padding: 20px 30px;
    min-width: 320px;
    text-align: center;
    font-weight: bold;
    position: relative;
}
.box.top {
    background: var(--theme-main-color);
    border-color: var(--theme-main-color);
    color: #fff;
}
.side {
    border: 1px solid var(--theme-main-color);
}
/* 부서 그룹 컨테이너 */
.sub-level {
    position: relative;
    margin-top: 20px;
}
/* 부서 그룹 상단 수직 연결선 -> 운영사무국 분기 */
.sub-level::after {
    content: "";
    display: block;
    width: 2px;
    height: 20px;
    background: var(--theme-item-border);
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
}
.departments {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 0;
    position: relative;
}
/* 부서 그룹 가로 연결선 */
.departments::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 740px;
    height: 2px;
    background: var(--theme-item-border);
}
/* 교육기획부, 홍보부 수직 연결선 */
.department:first-child::before,
.department:last-child::before {
    content: "";
    position: absolute;
    top: -41px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 40px;
    background: var(--theme-item-border);
}
.department {
    position: relative;
    width: 320px;
    border: 1px solid var(--theme-main-color);
    background: #fff;
    margin-top: 20px;
}
.dept-header {
    background: var(--theme-header-bg);
    color: #fff;
    border-bottom: 1px solid var(--theme-main-color);
    font-weight: bold;
    padding: 15px 0;
    text-align: center;
}
.dept-body {
    padding: 25px 15px;
    background: #fff;
}
.dept-body ul {
    margin-left: 20px;
}
.dept-body ul li {
    margin-bottom: 8px;
    color: var(--theme-text-color);
}
.dept-body ul li::marker {
    font-size: 0.5em;
}
/* 모바일/태블릿 */
.side-group.mobile-only {
    display: none;
}
@media (max-width: 1070px) {
    .level.with-side {
    flex-direction: column;
    align-items: center;
    }
    .center-group {
    margin-bottom: 20px;
    }
    .side-group.pc-only {
    display: none;
    }
    .side-group.mobile-only {
    display: block;
    margin-top: 20px;
    }
    .sub-level::after,
    .departments::before,
    .department:first-child::before,
    .department:last-child::before {
    display: none;
    }
    .departments {
    flex-direction: column;
    align-items: center;
    gap: 50px;
    margin-top: 0;
    }
    .department {
    margin-top: -40px;
    }
    .level::after {
    height: 50px;
    top: 66px;
    }
}