@charset "utf-8";

/* ==============================================================
   Reset & Common
   ============================================================== */
:root {
    --primary-color: #00418e;
    --secondary-color: #ca0064;
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f5f5f5;
    --bg-gray: #e9ecef;
    --sub-bg: #E5F0FB;
    --primary-light: #94c2f5;
    --border-color: #dddddd;
    --border-color2: #6D6D6D;
    --white: #ffffff;
    --semiwhite: #FAFAF8;
    --black: #000000;
    --max-width: 1440px;
    --fw-bold: 700;
    --fw-semibold: 600;
    --facility-height: 600px;
    --fw-regular: 400;
    --fs-regular: 18px;
    --ls-regular: -0.02em;
    --radius: 20px;

    /* PC Body Typography (Follows .sec-desc PC design) */
    --body-fs-pc: 20px;
    --body-lh-pc: 1.8;
    --body-ls-pc: -0.02em;

    /* Mobile Body Typography (Follows .sec-desc mobile design) */
    --body-fs-mo: 16px;
    --body-lh-mo: 1.6;
    --body-ls-mo: -0.02em;

    --culture-card-gap: 60px;

    /* 계열사 정보(Company Info) 폰트 크기 */
    --fs-info-label-pc: 18px;
    --fs-info-label-mo: 16px;
    --fs-info-val-pc: 28px;
    --fs-info-val-mo: 20px;
    --fs-info-val-xs: 18px;

    /* 드롭다운(Dropdown) 변수 */
    --fs-dropdown-pc: 16px;
    --fs-dropdown-mo: 15px;
    --width-dropdown-mo: 100%;
    --max-width-dropdown-mo: 50vh;

    /* 연혁 테이블(History Table) 변수 */
    --fs-table-pc: 16px;
    --fs-table-mo: 14px;
    --width-table-date-mo: 150px;
    --width-table-date-xs: 95px;
    --pad-table-mo: 12px 8px;
    --pad-table-xs: 10px 6px;

    /* 그리드 좌측 패딩 변수 */
    --gap-info-box-pc: 25px;
    --gap-info-box-mo: 12px;
    --gap-info-box-xs: 8px;

    /* 섹션 레이아웃 간격 변수 */
    --gap-sec-layout-pc: 120px;
    --gap-sec-layout-mo: 20px;

    /* 연혁 페이지 전용 변수 (history.php) */
    --history-section-gap: 100px;
    --history-sticky-top: 80px;
    --history-decade-width: 50%;
    /* 정대칭 중앙 정렬을 위해 50% 배분 */
    --history-content-width: 50%;
    /* 정대칭 중앙 정렬을 위해 50% 배분 */
    --history-timeline-pad: 60px;
    --history-row-gap: 55px;
    --history-year-width: 110px;

    --fs-decade-range: 18px;
    --fs-decade-title: 40px;
    --fs-history-year: 28px;
    --fs-history-text: 16px;

    --lh-history-text: 1.75;
    --li-history-gap: 12px;

    /* Customer Support Page Specific Variables */
    --customer-accent: #2c7bf6;
    --customer-accent-hover: #155ecb;
    --customer-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --customer-shadow-card: 0 10px 30px rgba(0, 0, 0, 0.04);
    --customer-radius: 12px;
    --customer-radius-lg: 20px;

    /* Recruitment Qualification Page Specific Variables */
    --warning-bg: #fff2f6;
    /* 핑크색 경고 박스 배경색 */
    --warning-border: #ffd5e3;
    /* 핑크색 경고 박스 테두리선 */
    --fs-small: 16px;
    /* 일반 서브 텍스트 크기 (16px) */
}

html {
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: var(--fs-regular);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    letter-spacing: var(--ls-regular);
    overflow-x: clip;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

ul,
ol,
li {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
}

.sec-desc {
    font-size: var(--fs-regular);
    font-weight: var(--fw-regular);
    color: var(--text-color);
    line-height: 1.6;
}

img {
    max-width: 100%;
    vertical-align: middle;
}

button {
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
}

/* ==============================================================
   Layout & Utility Classes
   ============================================================== */
.inner {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.flex-row {
    display: flex;
    flex-wrap: wrap;
}

/* Text Colors */
.kd-blue {
    color: var(--primary-color);
    font-weight: var(--fw-bold);
}

.kd-red {
    color: var(--secondary-color);
    font-weight: var(--fw-bold);
}

.content-area {
    line-height: 0px;
}

.memo {
    display: inline-block;
    background: white;
    border: 1px solid #c2c2c2;
    font-weight: 600;
    font-size: 14px;
    color: #232323;
    white-space: nowrap;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.4;
    padding: 5px;
    margin-top: -10px;
}

/* 다운로드 버튼 */
.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--white);
    border: 1px solid var(--border-color);

    /* 서체 및 텍스트 설정 */
    color: var(--text-color);
    font-size: 16px;
    font-weight: var(--fw-semibold);
    text-decoration: none;

    /* 형태 및 여백 */
    padding: 14px 28px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-download.blue {
    background: var(--sub-bg);
    border-color: var(--sub-bg);
    color: var(--primary-color);
}

.btn-download:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.btn-download:active {
    transform: translateY(2px);
}

.btn-download svg,
.btn-download img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.btn-download:hover img {
    content: url('../../resource_new/img/download_w.png');
}

@media screen and (max-width: 900px) {
    :root {
        /* 모바일 연혁 스타일용 변수 덮어쓰기 */
        --history-section-gap: 60px;
        --history-decade-width: 100%;
        --history-content-width: 100%;
        --history-row-gap: 35px;

        --fs-decade-title: 32px;
        --fs-history-year: 22px;
        --fs-history-text: 15px;
        --lh-history-text: 1.6;
        --li-history-gap: 12px;
    }
}

@media screen and (max-width: 480px) {
    body {
        font-size: var(--body-fs-mo);
        line-height: var(--body-lh-mo);
        letter-spacing: var(--body-ls-mo);
    }
}

/* PC / Mobile Display Utilities */
.mo-only {
    display: none;
}

@media screen and (max-width: 900px) {
    .pc-only {
        display: none;
    }
    .mo-only {
        display: block;
    }
}