/* ====================================================
   pages.css — 서브 페이지 공통 스타일 (회사소개/제품/공지 등)
   ==================================================== */

/* ============== 페이지 상단 비주얼 ============== */
.page-hero {
    position: relative;
    height: 280px;
    background-color: #001428;
    background-image: linear-gradient(135deg, #001428 0%, #002952 50%, #004d80 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

.page-hero-content {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    color: #ffffff;
    font-size: 44px;
    margin-bottom: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5),
                 0 0 1px rgba(255, 255, 255, 0.3);
}

.page-hero-en {
    color: #ffffff;
    font-size: 16px;
    opacity: 0.85;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

/* ============== 빵부스러기 (Breadcrumb) ============== */
.breadcrumb {
    background: var(--color-bg-soft);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 0;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--color-text-light);
}

.breadcrumb-list a {
    color: var(--color-text-light);
    transition: var(--transition);
}

.breadcrumb-list a:hover {
    color: var(--color-primary);
}

.breadcrumb-list .separator {
    color: var(--color-text-muted);
    font-size: 12px;
}

.breadcrumb-list .current {
    color: var(--color-primary);
    font-weight: 500;
}

/* ============== 서브 네비 (홈/카테고리/페이지 드롭다운) — 전 화면 적용 ============== */

/* 기존 텍스트 빵부스러기는 전체 숨김 (드롭다운 바가 대체) */
.breadcrumb {
    display: none;
}

.mobile-subnav {
    display: flex;
    align-items: stretch;
    background: white;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: var(--header-height);
    z-index: 50;
    /* 띠는 전체 폭 (선이 화면 끝까지) */
    width: 100%;
    margin: 0;
    margin-top: -1px;
    /* 홈버튼은 컨테이너 안쪽 정렬 (본문 제목과 동일한 좌측 위치) */
    padding-left: max(20px, calc((100vw - var(--container-max)) / 2 + 20px));
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.msn-home {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    flex-shrink: 0;
    background: var(--color-primary);
    color: white;
    border-right: 1px solid var(--color-border);
    transition: background 0.2s ease;
}

.msn-home:hover,
.msn-home:active {
    background: var(--color-primary-light);
}

.msn-home svg {
    width: 22px;
    height: 22px;
}

.msn-select {
    position: relative;
    flex: 1;
    min-width: 0;
    border-right: 1px solid var(--color-border);
    max-width: 320px;
}

.msn-select:last-child {
    border-right: 1px solid var(--color-border);
}

.msn-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding: 16px 20px;
    background: white;
    border: none;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: background 0.15s ease, color 0.15s ease;
}

.msn-trigger:hover {
    background: var(--color-bg-soft);
}

.msn-trigger > span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.msn-arrow {
    font-size: 18px;
    color: var(--color-text);
    margin-left: 12px;
    transition: transform 0.25s ease;
    flex-shrink: 0;
    font-weight: 700;
}

.msn-select.open .msn-arrow {
    transform: rotate(180deg);
    color: var(--color-primary);
}

.msn-select.open .msn-trigger {
    color: var(--color-primary);
    background: var(--color-bg-soft);
}

.msn-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    border-top: none;
    max-height: 60vh;
    overflow-y: auto;
    z-index: 100;
}

.msn-select.open .msn-dropdown {
    display: block;
}

.msn-dropdown a {
    display: block;
    padding: 13px 20px;
    color: var(--color-text);
    font-size: 14px;
    border-bottom: 1px solid var(--color-border);
    transition: background 0.15s ease, color 0.15s ease;
}

.msn-dropdown a:last-child {
    border-bottom: none;
}

.msn-dropdown a.active {
    color: var(--color-primary);
    background: var(--color-bg-soft);
    font-weight: 600;
}

.msn-dropdown a:hover,
.msn-dropdown a:active {
    background: var(--color-bg-soft);
    color: var(--color-primary);
}

/* 1024px 이하: 서브내비 모바일 최적화 */
@media (max-width: 1024px) {
    .mobile-subnav {
        max-width: 100%;
        margin-top: 0;
        top: var(--header-height-mobile);
        padding-left: 0;
    }

    .msn-home {
        width: 50px;
    }

    .msn-home svg {
        width: 20px;
        height: 20px;
    }

    .msn-select {
        max-width: none;
    }

    .msn-trigger {
        padding: 14px 14px;
        font-size: 14px;
    }

    .msn-dropdown a {
        padding: 13px 16px;
    }
}

/* ============== 페이지 콘텐츠 영역 ============== */
.page-content {
    padding: 60px 0 80px;
    scroll-margin-top: 100px;  /* sticky header 고려한 anchor jump 위치 */
}

.page-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

/* ============== 좌측 서브메뉴 (LNB) — 전체 숨김 (서브내비가 대체) ============== */
.sub-nav {
    display: none;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    align-self: start;
    position: sticky;
    top: calc(var(--header-height) + 20px);
}

.sub-nav-title {
    background: var(--color-primary);
    color: white;
    padding: 24px 20px;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
}

.sub-nav-list li {
    border-bottom: 1px solid var(--color-border);
}

.sub-nav-list li:last-child {
    border-bottom: none;
}

.sub-nav-list a {
    display: block;
    padding: 14px 20px;
    color: var(--color-text);
    transition: var(--transition);
    font-size: 15px;
    position: relative;
}

.sub-nav-list a:hover {
    background: var(--color-bg-soft);
    color: var(--color-primary);
    padding-left: 26px;
}

.sub-nav-list a.active {
    background: var(--color-accent);
    color: white;
    font-weight: 600;
}

.sub-nav-list a.active:hover {
    background: var(--color-accent);
    color: white;
    padding-left: 20px;  /* hover로 안 움직이게 원래 값 유지 */
}

/* ============== 메인 콘텐츠 ============== */
.content-main {
    min-width: 0;
}

.content-main h2 {
    font-size: 32px;
    color: var(--color-primary);
    margin-bottom: 16px;
    padding-bottom: 0;
    display: inline-block;
}

.content-main h3 {
    font-size: 22px;
    color: var(--color-text);
    margin-top: 40px;
    margin-bottom: 16px;
    padding-left: 14px;
    border-left: 4px solid var(--color-accent);
}

.content-main h4 {
    font-size: 18px;
    color: var(--color-primary);
    margin-top: 24px;
    margin-bottom: 12px;
}

.content-main p {
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: 16px;
    font-size: 16px;
}

.content-main p.lead {
    font-size: 18px;
    color: var(--color-text);
    font-weight: 500;
}

.content-main strong {
    color: var(--color-primary);
    font-weight: 600;
}

/* ============== 인사말 페이지 ============== */
.greeting-intro {
    background: var(--color-bg-soft);
    padding: 40px;
    border-radius: 12px;
    margin: 40px 0;
    text-align: center;
}

.greeting-intro .quote {
    font-size: 26px;
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 20px;
}

.greeting-intro .signature {
    margin-top: 36px;
    font-size: 18px;
    color: var(--color-text);
}

.greeting-intro .signature-title {
    margin-bottom: 20px;
    color: var(--color-text);
    font-size: 19px;
    font-weight: 600;
}

.greeting-intro .signature-images {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.greeting-intro .signature-name {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.greeting-intro .signature-sign {
    height: 60px;
    width: auto;
    object-fit: contain;
    margin-left: 12px;
}

@media (max-width: 768px) {
    .greeting-intro .signature-name {
        height: 40px;
    }
    .greeting-intro .signature-sign {
        height: 46px;
    }
}

/* 인사말 본문 소제목 */
.content-main h3.greeting-heading {
    font-size: 20px;
    color: var(--color-primary);
    font-weight: 700;
    margin-top: 36px;
    margin-bottom: 12px;
    padding-left: 14px;
    border-left: 4px solid var(--color-accent);
    line-height: 1.4;
}

@media (max-width: 768px) {
    .content-main h3.greeting-heading {
        font-size: 17px;
        margin-top: 28px;
        margin-bottom: 10px;
        padding-left: 10px;
        border-left-width: 3px;
    }
}

/* 인사말 마무리 - 감사합니다 + 서명 */
.closing-text {
    text-align: left;
    margin-top: 40px;
    margin-bottom: 72px;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.7;
}

.closing-signature {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 22px;
    margin-top: 0;
}

.closing-signature .closing-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
}

.closing-signature .closing-name-text {
    font-size: 26px;
    font-weight: 700;
    color: var(--color-text);
    margin-left: 24px;
}

.closing-signature .closing-name {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.closing-signature .closing-sign {
    height: 79px;
    width: auto;
    object-fit: contain;
    /* 서명 직선(이미지 51% 지점)을 글자 하단 위 약 8px에 맞춤 */
    margin-bottom: -28px;
}

@media (max-width: 768px) {
    .closing-text {
        margin-bottom: 56px;
    }
    .closing-signature {
        gap: 20px;
        flex-wrap: wrap;
    }
    .closing-signature .closing-title {
        font-size: 15px;
        white-space: nowrap;
    }
    .closing-signature .closing-name-text {
        font-size: 18px;
        margin-left: 10px;
        white-space: nowrap;
    }
    .closing-signature .closing-name {
        height: 30px;
    }
    .closing-signature .closing-sign {
        height: 53px;
        margin-bottom: -15px;
    }
}

/* 회사 기본정보 카드 그리드 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.info-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 28px 16px;
    text-align: center;
    transition: var(--transition);
}

.info-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.info-card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: white;
    font-size: 24px;
}

.info-card-label {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.info-card-value {
    font-size: 17px;
    color: var(--color-text);
    font-weight: 600;
    word-break: keep-all;
}

.info-card-value-list {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.7;
    color: var(--color-text);
}

/* ============== 회사개요 (Vision) ============== */
.vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 40px 0;
}

.vision-card {
    padding: 40px 30px;
    border-radius: 16px;
    color: white;
    text-align: center;
}

.vision-card.philosophy {
    background: linear-gradient(135deg, #003366 0%, #0066aa 100%);
}

.vision-card.vision {
    background: linear-gradient(135deg, #cc6600 0%, #ff9933 100%);
}

.vision-card-label {
    font-size: 14px;
    opacity: 0.8;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.vision-card .vision-card-title {
    font-size: 24px;
    color: white;
    margin: 0 0 20px;
    padding: 0;
    border: none;
    font-weight: 700;
}

.vision-card .vision-card-desc {
    color: white;
    line-height: 1.7;
    opacity: 0.95;
}

/* 경영방침 3개 */
.principle-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.principle-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 30px 24px;
    text-align: center;
}

.principle-card-num {
    width: 40px;
    height: 40px;
    background: var(--color-accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-weight: 700;
}

.principle-card-title-kor {
    font-size: 18px;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 4px;
}

.principle-card-title-eng {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.principle-card-desc {
    color: var(--color-text-light);
    font-size: 14px;
    line-height: 1.6;
}

/* ============== 연혁 (타임라인) ============== */
.history-timeline {
    position: relative;
    padding: 30px 0;
}

.history-timeline::before {
    content: '';
    position: absolute;
    left: 124px;
    top: 107px;
    bottom: 110px;
    width: 2px;
    background: linear-gradient(180deg, var(--color-primary), var(--color-primary-light), var(--color-accent));
}

.history-era {
    margin-bottom: 60px;
}

.history-timeline .history-era-title {
    position: relative;
    z-index: 1;
    background: var(--color-bg);
    font-size: 28px;
    color: var(--color-primary);
    margin: 0 0 30px;
    padding: 0;
    border: none;
}

.history-item {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 20px;
    position: relative;
}

.history-date {
    width: 80px;
    flex-shrink: 0;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 16px;
    text-align: right;
    padding-top: 4px;
}

.history-dot {
    width: 14px;
    height: 14px;
    background: var(--color-accent);
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--color-primary);
    flex-shrink: 0;
    margin-top: 6px;
    margin-left: 8px;
}

.history-content {
    flex: 1;
    padding-top: 2px;
    color: var(--color-text);
}

/* ============== 조직도 ============== */
.org-chart-image {
    margin: 40px 0;
    text-align: center;
}

.org-chart-image img {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
}

/* --- 조직도 HTML/CSS 버전 --- */
.org-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 30px 0 50px;
}

.org-headcount {
    flex-shrink: 0;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: #d6e6f5;
    display: flex;
    align-items: baseline;
    justify-content: center;
    color: #2c5d8a;
}

.org-headcount-num {
    font-size: 38px;
    font-weight: 800;
}

.org-headcount-unit {
    font-size: 18px;
    font-weight: 600;
    margin-left: 2px;
}

.org-title-block {
    flex: 1;
}

.org-title-en {
    font-size: 22px;
    font-weight: 700;
    color: #6e9554;
    margin: 0 0 12px;
    border: none;
    padding: 0;
}

.org-desc {
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-text);
    margin: 0;
}

.org-tree {
    position: relative;
    padding: 20px 0 40px;
}

.org-ceo-wrap {
    text-align: center;
    position: relative;
}

.org-box {
    background: #94c773;
    color: #fff;
    font-weight: 600;
    border-radius: 4px;
    text-align: center;
    padding: 10px 24px;
    font-size: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    position: relative;
    z-index: 2;
    display: inline-block;
}

.org-box--ceo {
    font-size: 18px;
    padding: 14px 40px;
    background: #7ab058;
}

.org-box--assist {
    font-size: 13px;
    padding: 8px 16px;
}

.org-trunk-section {
    position: relative;
    height: 70px;
    width: 100%;
}

.org-trunk-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #6e9554;
    transform: translateX(-50%);
}

.org-assist-branch {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
}

.org-assist-line {
    display: block;
    width: 90px;
    height: 2px;
    background: #6e9554;
}

.org-divisions {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    position: relative;
}

.org-division {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 0 8px;
}

.org-division::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #6e9554;
}

.org-divisions > .org-division:first-child::before {
    left: 50%;
}

.org-divisions > .org-division:last-child::before {
    right: 50%;
}

.org-division::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 30px;
    background: #6e9554;
    transform: translateX(-50%);
}

.org-box--div {
    background: #94c773;
    font-size: 14px;
    padding: 8px 18px;
    margin-top: 30px;
    margin-bottom: 30px;
    position: relative;
}

.org-box--div::after {
    content: "";
    position: absolute;
    bottom: -30px;
    left: 50%;
    width: 2px;
    height: 30px;
    background: #c5c5c5;
    transform: translateX(-50%);
}

.org-teams {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    position: relative;
}

.org-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 72px;
    flex-shrink: 0;
}

.org-team-icon {
    width: 52px;
    height: 52px;
    border: 1.5px solid #d4d9d9;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    padding: 8px;
}

.org-team-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.org-team .org-team-name {
    font-size: 10px;
    font-weight: 600;
    color: #2c66a8;
    text-align: center;
    white-space: nowrap;
    border: 1.5px solid #2c66a8;
    border-radius: 4px;
    padding: 4px 6px;
    background: #fff;
    width: 72px;
    box-sizing: border-box;
}

.org-chart {
    padding: 40px 0;
    text-align: center;
}

.org-ceo {
    display: inline-block;
    padding: 20px 60px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: white;
    border-radius: 12px;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 40px;
    position: relative;
}

.org-ceo::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 40px;
    background: var(--color-primary);
}

.org-departments {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    position: relative;
}

.org-departments::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--color-primary);
}

.org-dept {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.org-dept-head {
    background: white;
    border: 2px solid var(--color-primary);
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    color: var(--color-primary);
    position: relative;
}

.org-dept-head::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 20px;
    background: var(--color-primary);
}

.org-team {
    background: var(--color-bg-soft);
    border: 1px solid var(--color-border);
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    color: var(--color-text);
}

/* ============== 고객사 ============== */
.client-map {
    width: 100%;
    max-width: 800px;
    margin: 30px auto 40px;
}

.client-map img {
    width: 100%;
    height: auto;
    display: block;
}

.client-regions {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 30px;
}

.client-region {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 30px;
    align-items: center;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 24px 30px;
}

.client-region-label {
    display: flex;
    align-items: center;
    gap: 12px;
}

.client-region-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.client-region-name {
    font-weight: 600;
    color: var(--color-text);
    font-size: 17px;
}

.client-companies {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.client-companies--grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px 20px;
    align-items: center;
    justify-items: start;
}

.client-logo {
    height: 36px;
    width: auto;
    max-width: 130px;
    object-fit: contain;
    display: block;
    filter: grayscale(20%);
    transition: filter 0.2s ease, transform 0.2s ease;
}

.client-logo--lg {
    height: 54px;
    max-width: 110px;
}

.client-logo:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.client-tag {
    background: var(--color-bg-soft);
    border: 1px solid var(--color-border);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    color: var(--color-text);
    font-weight: 500;
}

/* ============== 오시는 길 ============== */
.location-info {
    background: var(--color-bg-soft);
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.location-info-item {
    text-align: center;
}

.location-info-icon {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
    box-shadow: var(--shadow-sm);
}

.location-info-label {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 6px;
}

.location-info-value {
    font-size: 16px;
    color: var(--color-text);
    font-weight: 500;
}

.location-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: white;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.location-table th,
.location-table td {
    padding: 10px 16px;
    text-align: left;
    font-size: 14px;
    border-bottom: 1px solid var(--color-border);
}

.location-table th {
    width: 110px;
    background: var(--color-bg-soft);
    color: var(--color-text);
    font-weight: 600;
    border-right: 1px solid var(--color-border);
}

.location-table td {
    color: var(--color-text);
}

.location-table tr:last-child th,
.location-table tr:last-child td {
    border-bottom: none;
}

.location-map {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    margin-top: 30px;
}

.location-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* 데스크탑 기본: org-tree 표시, oc-chart 숨김 */
.oc-chart {
    display: none;
    margin-top: 40px;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* ============== 모바일 반응형 ============== */
@media (max-width: 1024px) {
    .info-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .org-departments {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    /* 조직도 - 1024px 이하에서 가로 스크롤 (원본 레이아웃 유지) */
    .org-tree {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 12px;
    }

    .org-tree > .org-ceo-wrap,
    .org-tree > .org-trunk-section,
    .org-tree > .org-divisions {
        min-width: 720px;
    }

    .org-tree::-webkit-scrollbar {
        height: 6px;
    }

    .org-tree::-webkit-scrollbar-track {
        background: var(--color-bg-soft);
        border-radius: 3px;
    }

    .org-tree::-webkit-scrollbar-thumb {
        background: var(--color-text-muted);
        border-radius: 3px;
    }
}

@media (max-width: 768px) {
    .page-hero {
        height: 200px;
    }

    .page-hero h1 {
        font-size: 28px;
    }

    .page-hero-en {
        font-size: 12px;
    }

    .content-main h2 {
        font-size: 24px;
    }

    .vision-grid {
        grid-template-columns: 1fr;
    }

    .principle-list {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .history-timeline::before {
        left: 94px;
    }

    .history-date {
        width: 50px;
        font-size: 13px;
    }

    .org-departments {
        grid-template-columns: 1fr;
    }

    .org-departments::before {
        display: none;
    }

    /* ============ 조직도 모바일: org-tree 숨기고 oc-chart 표시 ============ */
    .org-tree {
        display: none;
    }

    .oc-chart {
        display: flex;
    }

    .org-tree > .org-ceo-wrap,
    .org-tree > .org-trunk-section,
    .org-tree > .org-divisions {
        min-width: 0;
    }

    /* === 트렁크 섹션: CEO → 경영지원팀 연결 === */
    .org-trunk-section {
        height: auto;
        padding-top: 24px;
        padding-bottom: 0;
        text-align: center;
        position: relative;
    }

    /* CEO에서 경영지원팀까지 짧은 세로 연결선 */
    .org-trunk-line {
        top: 0;
        bottom: auto;
        height: 24px;
    }

    /* 경영지원팀 영역을 일반 박스처럼 배치 */
    .org-assist-branch {
        position: static;
        transform: none;
        display: inline-block;
    }

    /* 가로 분기선 숨김 */
    .org-assist-line {
        display: none;
    }

    /* 경영지원팀 박스 = 본부 박스와 동일한 크기/스타일 */
    .org-box--assist {
        font-size: 14px;
        padding: 8px 18px;
        background: #94c773;
        font-weight: 600;
    }

    /* === 본부들: 세로 동등 배치 === */
    .org-divisions {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .org-division {
        width: 100%;
        padding: 0;
    }

    /* 본부 사이 가로 연결선 제거 */
    .org-division::before {
        display: none;
    }

    /* 본부 위 세로 연결선 (직전 부서 → 본부 박스) */
    .org-division::after {
        top: 0;
        height: 24px;
    }

    .org-box--div {
        margin-top: 24px;
        margin-bottom: 24px;
    }

    .org-box--div::after {
        bottom: -24px;
        height: 24px;
    }

    /* 팀 아이콘들 - 가로 정렬, 줄바꿈 허용 */
    .org-teams {
        flex-wrap: wrap;
        gap: 14px 16px;
        justify-content: center;
        padding: 0 10px;
    }

    .org-team {
        width: 72px;
    }

    .org-team-icon {
        width: 56px;
        height: 56px;
    }

    .org-team-name {
        font-size: 12px;
        white-space: normal;
        line-height: 1.3;
    }

    .client-region {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 18px 16px;
    }

    .client-companies--grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px 10px;
        justify-items: center;
    }

    .client-logo {
        max-width: 100%;
        height: 30px;
    }

    .client-logo--lg {
        height: 38px;
        max-width: 100%;
    }

    .location-info {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 24px;
    }

    .location-map {
        height: 280px;
    }
}

@media (max-width: 480px) {
    .client-companies--grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 12px;
    }
}

/* ============== 조직도 (모바일용 박스 스타일) ============== */

.oc-box {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    text-align: center;
    border-radius: 6px;
    line-height: 1.3;
}

.oc-box--ceo {
    background: var(--color-primary, #003366);
    color: #fff;
    font-size: 17px;
    padding: 14px 48px;
    min-width: 160px;
}

.oc-box--assist {
    background: var(--color-accent, #e07b00);
    color: #fff;
    border: none;
    font-size: 14px;
    padding: 10px 24px;
    white-space: nowrap;
}

.oc-box--div {
    background: var(--color-accent, #e07b00);
    color: #fff;
    font-size: 14px;
    padding: 10px 0;
    width: 100%;
}

.oc-box--team {
    background: #fff;
    color: var(--color-text, #222);
    border: 1px solid #ccc;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 4px;
    width: 100%;
}

/* --- oc-chart 레이아웃 --- */

.oc-top {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* CEO 박스 영역 */
.oc-ceo-wrap {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* CEO 아래 트렁크 수직선 */
.oc-ceo-wrap::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 52px; /* oc-trunk 높이와 동일 */
    background: #aaa;
}

/* 트렁크 영역: 수직선이 통과하고 경영지원팀이 우측으로 분기 */
.oc-trunk {
    position: relative;
    width: 100%;
    height: 52px;
}

/* 경영지원팀 분기: 트렁크 수직선 중간에서 우측으로 */
.oc-assist-side {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
}

/* 수평 연결선 */
.oc-hline {
    display: block;
    width: 32px;
    height: 2px;
    background: #aaa;
    flex-shrink: 0;
}

/* 본부 행 */
.oc-row--divs {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
    position: relative;
}

/* 수평 연결바 (트렁크 하단 ~ 본부 컬럼 상단) */
.oc-row--divs::before {
    content: '';
    position: absolute;
    top: -32px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #aaa;
}

.oc-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    position: relative;
}

/* 각 본부 수직 연결선 */
.oc-col::before {
    content: '';
    display: block;
    width: 2px;
    height: 32px;
    background: #aaa;
    position: absolute;
    top: -32px;
    left: 50%;
    transform: translateX(-50%);
}

/* 반응형 */
@media (max-width: 768px) {
    .oc-row--divs { gap: 6px; }
    .oc-box--ceo { font-size: 15px; padding: 12px 32px; min-width: 120px; }
    .oc-box--assist { font-size: 12px; padding: 8px 14px; }
    .oc-box--div { font-size: 12px; padding: 8px 2px; }
    .oc-box--team { font-size: 11px; padding: 6px 2px; }
}

@media (max-width: 480px) {
    .oc-row--divs { gap: 4px; }
    .oc-box--div { font-size: 11px; }
    .oc-box--team { font-size: 10px; padding: 5px 1px; }
}
