@charset "utf-8";

/*
 * 오시는길 (/direction)
 * 회사소개(company-intro.css)·인재채용(recruit.css)과 같은 형식:
 * 라벨 + 왼쪽 제목 + 섹션 탭, 100px 섹션, 흰/연회색 교대, 얇은 테두리 카드, 회색 칩.
 */

/* ============================== 토큰 (회사소개와 같은 값) */
:root {
    --dir-navy: #1e3a5f;
    --dir-navy-deep: #14283f;
    --dir-text: #1f2937;
    --dir-muted: #6b7280;
    --dir-light: #9aa4b2;
    --dir-line: #e5e9ef;
    --dir-bg: #ffffff;
    --dir-bg-gray: #f6f8fa;
    --dir-chip-bg: #eef2f7;
    --dir-chip-line: #dde5ee;
    --dir-max: 1280px;
    --dir-pad: 24px;
}

/* content-wrapper 하단 여백 제거 */
.content-wrapper {
    margin-bottom: 0 !important;
}

html {
    scroll-behavior: smooth;
}

/* ============================== 공통 레이아웃 */
.dir-head,
.dir-section {
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    color: var(--dir-text);
    background: var(--dir-bg);
}

/* sh_common.css 의 h1~h6 Noto Sans 지정을 덮는다 */
.dir-head h1,
.dir-section h2,
.dir-section h3 {
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
}

/* 서브페이지 공통 콘텐츠 폭: 1280px + 좌우 24px (768px 이하 16px) */
.dir-inner {
    max-width: var(--dir-max);
    margin: 0 auto;
    padding: 0 var(--dir-pad);
}

.dir-section {
    padding: 100px 0;
    /* 헤더(sticky 77px) 아래로 섹션 제목이 보이게 */
    scroll-margin-top: 90px;
}

.dir-section--gray {
    background: var(--dir-bg-gray);
}

/* ============================== 페이지 헤더 + 섹션 탭 */
.dir-head {
    padding: 56px 0 0;
}

.dir-head__label {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2.4px;
    color: var(--dir-light);
}

.dir-head__title {
    margin: 0 0 28px;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--dir-navy-deep);
}

.dir-pagetabs {
    display: flex;
    gap: 34px;
    border-bottom: 1px solid var(--dir-line);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.dir-pagetabs::-webkit-scrollbar {
    display: none;
}

.dir-pagetab {
    position: relative;
    flex: none;
    padding: 0 2px 14px;
    font-size: 15px;
    font-weight: 500;
    color: var(--dir-light);
    white-space: nowrap;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.dir-pagetab:hover {
    color: var(--dir-navy);
}

.dir-pagetab::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--dir-navy-deep);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.dir-pagetab.is-active {
    font-weight: 700;
    color: var(--dir-navy-deep);
}

.dir-pagetab.is-active::after {
    opacity: 1;
}

.dir-pagetab:focus-visible {
    outline: 2px solid #2f6fb5;
    outline-offset: 4px;
    border-radius: 2px;
}

/* ============================== 섹션 제목 */
.dir-eyebrow {
    margin: 0 0 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2.4px;
    color: var(--dir-light);
}

.dir-heading {
    margin: 0 0 48px;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: -0.02em;
    color: var(--dir-navy-deep);
}

/* ============================== 본사: 지도 + 정보 두 칸 */
.dir-office {
    background: var(--dir-bg);
    border: 1px solid var(--dir-line);
    border-radius: 4px;
    overflow: hidden;
}

.dir-office__content {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    align-items: stretch;
}

.dir-office__map {
    min-height: 360px;
    background: var(--dir-chip-bg);
}

.dir-office__map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 360px;
    border: 0;
}

.dir-office__info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
    padding: 40px 40px;
    border-left: 1px solid var(--dir-line);
}

.dir-office__info-row {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--dir-line);
}

.dir-office__info-row:first-child {
    padding-top: 0;
}

.dir-office__info-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.dir-office__info dt {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: none;
    width: 64px;
    font-size: 13px;
    font-weight: 600;
    color: var(--dir-navy);
}

.dir-office__info dt svg {
    flex: none;
    color: var(--dir-light);
}

.dir-office__info dd {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--dir-text);
    word-break: keep-all;
}

/* ============================== 국내 / 해외 전환 (회사소개 칩과 같은 모양) */
.dir-tabs {
    display: flex;
    gap: 8px;
    margin: -16px 0 28px;
}

.dir-tabs__btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 40px;
    padding: 0 18px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--dir-navy);
    background: var(--dir-bg);
    border: 1px solid var(--dir-chip-line);
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.dir-tabs__btn svg {
    flex: none;
    opacity: 0.7;
}

.dir-tabs__btn:hover {
    border-color: var(--dir-navy);
}

.dir-tabs__btn--active,
.dir-tabs__btn--active:hover {
    color: #ffffff;
    background: var(--dir-navy-deep);
    border-color: var(--dir-navy-deep);
}

.dir-tabs__btn--active svg {
    opacity: 1;
}

.dir-tabs__btn:focus-visible {
    outline: 2px solid #2f6fb5;
    outline-offset: 2px;
}

.dir-tab-panel {
    display: none;
}

.dir-tab-panel--active {
    display: block;
}

/* ============================== 지점 카드 (회사소개 사업영역 카드와 같은 테두리·호버) */
.dir-branches {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.dir-branch {
    display: flex;
    flex-direction: column;
    padding: 28px 28px 26px;
    background: var(--dir-bg);
    border: 1px solid var(--dir-line);
    border-radius: 4px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.dir-branch:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(20, 40, 63, 0.08);
}

.dir-branch__header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 18px;
    padding: 0 0 18px;
    border-bottom: 1px solid var(--dir-line);
}

/* 센터·지점·액세스·국가 표시: 회사소개 태그 칩과 같은 회색 칩 */
.dir-branch__tag,
.dir-branch__tag--access,
.dir-branch__tag--cn,
.dir-branch__tag--vn,
.dir-branch__tag--sa {
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--dir-navy);
    background: var(--dir-chip-bg);
    border: 1px solid var(--dir-chip-line);
    border-radius: 4px;
}

.dir-branch__name {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.01em;
    color: var(--dir-navy-deep);
}

.dir-branch__info {
    margin: 0;
}

.dir-branch__row {
    display: flex;
    gap: 12px;
    padding: 6px 0;
}

.dir-branch__row dt {
    flex: none;
    width: 34px;
    padding-top: 1px;
    font-size: 12px;
    font-weight: 600;
    color: var(--dir-light);
}

.dir-branch__row dd {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--dir-muted);
    word-break: keep-all;
}

/* ============================== 반응형 */
@media (max-width: 1100px) {
    .dir-branches {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dir-office__content {
        grid-template-columns: 1fr;
    }

    .dir-office__info {
        border-left: 0;
        border-top: 1px solid var(--dir-line);
        padding: 32px;
    }
}

@media (max-width: 768px) {
    :root {
        --dir-pad: 16px;
    }

    .dir-head {
        padding-top: 36px;
    }

    .dir-head__title {
        margin-bottom: 22px;
        font-size: 24px;
    }

    .dir-pagetabs {
        gap: 26px;
    }

    .dir-pagetab {
        font-size: 14px;
    }

    .dir-section {
        padding: 64px 0;
        scroll-margin-top: 70px;
    }

    .dir-heading {
        margin-bottom: 32px;
        font-size: 22px;
    }

    .dir-office__map,
    .dir-office__map iframe {
        min-height: 240px;
    }

    .dir-office__info {
        padding: 24px 20px;
    }

    .dir-office__info-row {
        flex-direction: column;
        gap: 6px;
    }

    .dir-tabs {
        margin-top: -8px;
    }

    .dir-branches {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .dir-branch {
        padding: 22px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dir-branch {
        transition: none;
    }

    .dir-branch:hover {
        transform: none;
    }
}
