@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: 64px 0 0;
}

/* ============================== 메인 배너 (recruit.css .rc-banner 와 같은 크기) */
.dir-banner {
    margin-top: 44px;
    width: 100%;
    height: clamp(220px, 27vw, 420px);
    background: #0f1c2b;
    overflow: hidden;
}

/* 건물명 간판과 입구가 보이도록 사진 아래쪽 기준으로 자른다 */
.dir-banner__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 85%;
    display: block;
}

.dir-head__label {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2.4px;
    color: var(--dir-light);
}

.dir-head__title {
    margin: 0 0 26px;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #1f2329;
}

.dir-pagetabs {
    display: flex;
    gap: 34px;
    border-bottom: 1px solid #e3e6ea;
    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 12px;
    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: #1f2329;
}

.dir-pagetab::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: #1f2329;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.dir-pagetab.is-active {
    font-weight: 700;
    color: #1f2329;
}

.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: 14px;
    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: flex-start;
    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;
    /* 내용(dd) 첫 줄 높이와 같게 해서 두 줄 내용에서도 첫 줄과 위 라인을 맞춘다 */
    min-height: calc(15px * 1.7);
    font-size: 15px;
    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: 16px;
    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: 15px;
    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: 14px;
    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: 20px;
    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: 14px;
    font-weight: 600;
    color: var(--dir-light);
}

.dir-branch__row dd {
    margin: 0;
    font-size: 15px;
    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-banner {
        margin-top: 28px;
        height: 200px;
    }

    .dir-head {
        padding-top: 40px;
    }

    .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;
    }
}

/* ============================== 본사 지도: 흑백 지도 + 한국렌탈 마커 (2026-11-06)
   되돌리기: 이 블록 삭제 + direction.html 의 .dir-marker / .dir-mapapps / 본사 지도 스크립트 삭제 */
.dir-office__map {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* 구글 장소 카드(왼쪽 위)가 잘리도록 지도를 위로 150px 올린다 → 회사 위치(지도 가운데)는 칸 가운데에서 75px 위 */
.dir-office__map iframe {
    position: absolute;
    top: -150px;
    left: 0;
    height: calc(100% + 150px);
    min-height: 0;
    filter: saturate(0.8) contrast(1.02);
}

/* 지도에 회사 남색을 아주 살짝 얹는다 */
.dir-office__map::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: #dfe7f1;
    mix-blend-mode: multiply;
    opacity: 0.25;
    pointer-events: none;
}

/* 마커 기준점 = 핀 끝 = 회사 위치 */
.dir-marker {
    position: absolute;
    top: calc(50% - 75px);
    left: 50%;
    z-index: 2;
    width: 0;
    height: 0;
    pointer-events: none;
}

.dir-marker__pulse,
.dir-marker__pulse::after {
    position: absolute;
    top: -9px;
    left: -9px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(30, 58, 95, 0.35);
}

.dir-marker__pulse {
    animation: dir-marker-pulse 2.2s ease-out infinite;
}

.dir-marker__pulse::after {
    content: "";
    top: 4px;
    left: 4px;
    width: 10px;
    height: 10px;
    background: var(--dir-navy);
    box-shadow: 0 0 0 2px #fff;
}

/* 물방울 핀: 끝이 기준점에 오도록 */
.dir-marker__pin {
    position: absolute;
    bottom: 14px;
    left: -23px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50% 50% 50% 0;
    background: var(--dir-navy);
    border: 3px solid #fff;
    box-shadow: 0 8px 18px rgba(20, 40, 63, 0.35);
    transform: rotate(-45deg);
    color: #fff;
}

.dir-marker__pin svg {
    transform: rotate(45deg);
}

.dir-marker__label {
    position: absolute;
    bottom: 22px;
    left: 34px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 9px 14px;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(20, 40, 63, 0.18);
    white-space: nowrap;
}

.dir-marker__label strong {
    font-size: 15px;
    font-weight: 700;
    color: var(--dir-navy-deep);
    letter-spacing: -0.02em;
}

.dir-marker__label em {
    font-size: 12px;
    font-style: normal;
    color: var(--dir-muted);
}

@keyframes dir-marker-pulse {
    0% {
        transform: scale(1);
        opacity: 0.9;
    }
    100% {
        transform: scale(3.2);
        opacity: 0;
    }
}

/* 지도에 마우스를 올리거나 조작하면 마커를 숨긴다 (지도와 함께 움직이는 구글 핀이 대신 보임) */
.dir-marker {
    transition: opacity 0.25s;
}

.dir-office__map.is-active .dir-marker {
    opacity: 0;
}

/* 지도 앱 버튼 */
.dir-mapapps {
    margin-top: 22px;
}

.dir-mapapps dd {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.dir-mapapps__btn {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 16px;
    border: 1px solid var(--dir-chip-line);
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: var(--dir-navy);
    text-decoration: none;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.dir-office .dir-mapapps__btn:hover,
.dir-office .dir-mapapps__btn:focus-visible {
    background: var(--dir-navy);
    border-color: var(--dir-navy);
    color: #fff;
}

@media (max-width: 768px) {
    .dir-office__map {
        min-height: 320px;
    }

    .dir-office__map iframe {
        min-height: 0;
    }

    .dir-marker__label {
        padding: 7px 11px;
    }

    .dir-marker__label strong {
        font-size: 14px;
    }

    .dir-mapapps dd {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dir-mapapps__btn {
        justify-content: center;
        padding: 0 4px;
        font-size: 13px;
        white-space: nowrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dir-marker__pulse {
        animation: none;
    }
}

/* ============================== 본사 지도 로딩 표시 (2026-11-09)
   구글 지도는 불러오는 데 2초 이상 걸려 그동안 빈 회색 + 마커만 떠 있었다.
   → 준비 전엔 로딩 표시, 준비되면(direction.html 스크립트가 .is-loaded) 지도·마커를 함께 보여 준다 */
.dir-map-loading {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(100deg, #eef2f7 30%, #f6f8fb 50%, #eef2f7 70%) 0 0 / 300% 100%;
    animation: dir-map-shimmer 1.6s ease-in-out infinite;
    font-size: 14px;
    color: var(--dir-muted);
    transition: opacity 0.4s;
    pointer-events: none;
}

.dir-map-loading__spin {
    width: 26px;
    height: 26px;
    border: 3px solid #d7dfe9;
    border-top-color: var(--dir-navy);
    border-radius: 50%;
    animation: dir-map-spin 0.8s linear infinite;
}

.dir-office__map iframe {
    opacity: 0;
    transition: opacity 0.4s;
}

.dir-office__map:not(.is-loaded) .dir-marker {
    opacity: 0;
}

.dir-office__map.is-loaded iframe {
    opacity: 1;
}

.dir-office__map.is-loaded .dir-map-loading {
    opacity: 0;
}

@keyframes dir-map-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: 0 0; }
}

@keyframes dir-map-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .dir-map-loading,
    .dir-map-loading__spin {
        animation: none;
    }
}
