/* Using utility classes from common.css (.mo-br, .m-br, etc.) */






/* ===== Hero Text Section (Subtitle Specs) ===== */
.hero-text-outer {
    position: relative;
    min-height: 180vh;
    padding-bottom: 0;
    background: #FFFFFF;
}

.hero-text-inner {
    position: sticky;
    top: 50px;
    background: #fff;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--section-padding-y) 30px;
    gap: clamp(24px, 3.5vw, 60px);
    width: 100%;
    box-sizing: border-box;
}

.hero-text-section {
    text-align: center;
    width: 100%;
    max-width: 1200px;
}

.hero-text-section h2 {
    font-family: 'Pretendard';
    font-style: normal;
    font-weight: 700;
    font-size: clamp(24px, 3.5vw, 60px);
    line-height: 140%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #E9E9E9;
    /* Base color for animation */
    margin: 0;
    word-break: keep-all;
    word-break: keep-all;
}

.hero-text-section h2 .char {
    display: inline-block;
    white-space: pre;
    transition: color 0.4s ease;
}

.hero-text-section h2 .char.active {
    color: #363636;
}

.hero-image-section {
    width: 100%;
    max-width: 1860px;
    display: flex;
    justify-content: center;
}

.hero-image-wrapper {
    width: clamp(328px, 97vw, 1860px);
    height: clamp(448px, 29vw, 540px);
    border-radius: clamp(16px, 2vw, 30px);
    overflow: hidden;
    position: relative;
    flex: none;
}

#expand-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== Network Sections Common ===== */
.network-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--section-padding-y) 0;
    box-sizing: border-box;
}

.network-section .inner {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 2vw, 30px);
    padding: 0 var(--section-padding-x);
    box-sizing: border-box;
}

.section-label {
    font-family: 'Pretendard';
    font-weight: 700;
    font-size: clamp(24px, 1.5vw, 26px);
    line-height: 150%;
    color: #4E4E4E;
}

.cards-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: clamp(12px, 1.5vw, 24px);
    width: 100%;
}

/* ===== HQ Section (본사) ===== */
.hq-section {
    background: #FFFFFF;
}

.hq-cards-row {
    align-items: flex-start;
}

.hq-img-card {
    width: clamp(200px, 21vw, 390px);
    height: auto; /* 검수 0730: 정보카드(480) 높이에 맞춰 늘어나게. 기존 clamp(26vw)라 1440~1846px 구간서 이미지 카드만 낮아지던 것 수정 */
    align-self: stretch;
    border-radius: clamp(16px, 1.6vw, 30px);
    overflow: hidden;
    flex-shrink: 0;
}

.hq-img-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info-card {
    flex: 1;
    min-width: 200px;
    /* 검수 0831: 고정 480px → hug(콘텐츠 감쌈). 행(row) 안에서는 align-items:stretch로 카드끼리 높이 정렬됨 */
    height: auto;
    background: #F8F9FB;
    border-radius: clamp(16px, 1.6vw, 30px);
    /* 검수 0831: GM(최소 16/16/20) ~ GP(최대 36/40/44) 클램프. vw = 최대값/1920 */
    padding: clamp(16px, 1.875vw, 36px) clamp(16px, 2.083vw, 40px) clamp(20px, 2.292vw, 44px);
    display: flex;
    flex-direction: column;
    /* 검수 0831: hug이므로 space-between(가변 벌어짐) → 위에서 쌓고 타이틀↔하단 간격만 gap으로 */
    justify-content: flex-start;
    gap: clamp(24px, 2.083vw, 40px);
    box-sizing: border-box;
    position: relative;
    min-width: 0;
}

.info-card-top {
    display: flex;
    flex-direction: column;
    gap: clamp(4px, 0.833vw, 16px);   /* 검수 0831: 국가행↔타이틀 GM 4 ~ GP 16 */
}

.info-card-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.location-tag {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: clamp(16px, 1.2vw, 20px);
    color: #7A7A7A;
}

.location-tag .divider {
    width: 1px;
    height: 12px;
    background: #A7A7A7;
}

.card-title {
    font-weight: 700;
    font-size: clamp(30px, 2.2vw, 36px);
    color: #1B1B1B;
    margin: 0;
    word-break: keep-all;
}

.title-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-card-bottom {
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 1.667vw, 32px);   /* 검수 0831: 주소↔연락처 GM 20 ~ GP 32 */
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 1.2vw, 20px);
}

.address-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    /* 검수 0831: 주소↔길찾기 GM 10 ~ GP 16 / 넘쳐서 세로 스택될 때 GM 4 ~ GP 8 */
    column-gap: clamp(10px, 0.833vw, 16px);
    row-gap: clamp(4px, 0.417vw, 8px);
    width: 100%;
}

.address-text {
    font-weight: 500;
    font-size: clamp(16px, 1.05vw, 20px);
    color: #4E4E4E;
    width: fit-content;
    word-break: keep-all;
}

.map-link {
    font-weight: 500;
    font-size: clamp(16px, 1.1vw, 18px);
    color: #7A7A7A;
    text-decoration: underline;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 0;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-icon {
    width: clamp(20px, 1.5vw, 24px);
    height: clamp(20px, 1.5vw, 24px);
}

.contact-text {
    font-weight: 500;
    font-size: clamp(16px, 1.05vw, 20px);
    color: #1B1B1B;
}

.type-badge {
    padding: 6px 12px;
    background: #FCE3CC;
    border-radius: 1000px;
    font-weight: 500;
    font-size: clamp(16px, 1.05vw, 20px);
    color: #F27100;
    flex-shrink: 0;
    line-height: 1.6;
}

/* ===== Factory/Office Section (공장/영업소) ===== */
.factory-office-section {
    background: #F1F3F7;
}

.factory-office-section .inner {
    gap: 30px;
}

.sub-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.combined-card {
    flex: 1;
    /* 검수 0831: 고정 480px → hug. 텍스트가 길어지면 카드가 늘어남 */
    height: auto;
    display: flex;
    flex-direction: row;
    background: #FFFFFF;
    border-radius: clamp(16px, 1.6vw, 30px);
    overflow: hidden;
    min-width: 0;
}

.combined-card .card-img {
    flex: 0 0 50%; /* 검수 0730: 사진:본문 1:1 — 이미지 정확히 50% 고정 */
    width: 50%;
    max-width: 50%;
    min-width: 0;
    /* 검수 0831: 카드가 hug이므로 height:100%(부모 높이 미정) → stretch로 텍스트 높이에 맞춰 채움 */
    height: auto;
    align-self: stretch;
    box-sizing: border-box;
    position: relative;   /* 검수 0907: 아래 img 를 absolute 로 띄우기 위한 기준 */
}

/* 검수 0907: img 를 문서 흐름에서 빼서 카드 높이 계산에 관여하지 않게 한다.
   흐름에 두면 .card-img 의 height:auto + align-self:stretch 조합에서
   "이미지 원본 비율 × 폭"이 flex line 의 높이가 돼버린다. 1440~1731 구간처럼
   카드가 1열 전체폭(=이미지 700px 이상)이 되면 카드가 700px 넘게 늘어나고
   본문 쪽에 거대한 빈 영역이 생겼다(0831에 height:480px 고정을 푼 뒤 발생).
   absolute 로 빼면 높이는 본문 + min-height 가 정하고 이미지는 그 높이를 채운다. */
.combined-card .card-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.combined-card .info-card {
    background: transparent;
    border-radius: 0;
    flex: 0 0 50%; /* 검수 0730: 사진:본문 1:1 — 본문도 정확히 50% 고정 (여백 포함, box-sizing border-box) */
    width: 50%;
    max-width: 50%;
    box-sizing: border-box;
}

.combined-card .type-badge {
    background: rgba(0, 53, 146, 0.1);
    color: #003592;
}

.combined-card .type-badge.office {
    background: #E9E9E9;
    color: #4E4E4E;
}

/* ===== Overseas Section (해외) ===== */
.overseas-section {
    background: #FFFFFF;
}

.overseas-card {
    flex: 1;
    min-width: 280px;
    /* 검수 0831: 고정 높이 → hug, 패딩 GM~GP 클램프 */
    height: auto;
    border-radius: clamp(16px, 1.6vw, 30px);
    padding: clamp(16px, 1.875vw, 36px) clamp(16px, 2.083vw, 40px) clamp(20px, 2.292vw, 44px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: clamp(24px, 2.083vw, 40px);
    box-sizing: border-box;
    position: relative;
    background-size: cover;
    background-position: center;
    color: #FFFFFF;
}

.overseas-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    border-radius: clamp(16px, 1.6vw, 30px);
    z-index: 0;
}

.overseas-card>* {
    position: relative;
    z-index: 1;
}

.overseas-card .location-tag,
.overseas-card .card-title,
.overseas-card .address-text,
.overseas-card .contact-text {
    color: #FFFFFF;
}

.overseas-card .map-link {
    color: #D3D3D3;
}

.overseas-card .address-row {
    flex-direction: column;
    align-items: flex-start;
}

.established-text {
    font-weight: 500;
    font-size: clamp(14px, 1.2vw, 20px);
    color: #D3D3D3;
}

/* ══════════════════════════════════════════
   검수 0730: 사업 네트워크(공장/영업소) — 1440~1731px 세로 스택 + 사진:본문 1:1
   Figma 4008:16349 / 2164:17089. 이 구간은 카드가 1열 전체폭(세로 스택)으로 쌓이고,
   각 카드 내부에서 사진:본문이 1:1(각 50%).
   ※ 1:1(50/50)은 base(.combined-card .card-img / .info-card = flex:0 0 50%)가 담당 →
     전체폭 카드 안에서도 자동 50/50. 여기선 세로 스택 레이아웃 + 폰트 고정(36/20/18)만.
   ※ ≥1732px는 base 2열(각 카드 1:1), ≤1439는 아래 태블릿(세로 스택 전체폭).
   ══════════════════════════════════════════ */
@media (min-width: 1440px) and (max-width: 1731px) {
    /* 세로 스택 — 카드 1열 전체폭 */
    .factory-office-section .cards-row {
        flex-direction: column;
        gap: 24px;
    }

    .factory-office-section .combined-card {
        flex: none;
        width: 100%;
        height: auto;   /* 검수 0831: hug */
        border-radius: 30px;
    }

    /* 사진:본문 = 1:1 — base(flex:0 0 50%)가 담당. 여기선 패딩·폰트만 명시 */
    .factory-office-section .combined-card .info-card {
        padding: clamp(16px, 1.875vw, 36px) clamp(16px, 2.083vw, 40px) clamp(20px, 2.292vw, 44px);
    }

    /* 폰트: Figma 고정값 (base clamp가 이 구간에선 더 작게 나오므로 명시) */
    .factory-office-section .combined-card .card-title { font-size: 36px; min-height: 108px; } /* Figma 2164:17104 min-h 108 */
    .factory-office-section .sub-section > .section-label,
    .factory-office-section .section-label { font-size: 26px; } /* Figma 2164:17092 Plants 26 */
    .factory-office-section .combined-card .location-tag { font-size: 20px; }
    .factory-office-section .combined-card .type-badge { font-size: 20px; }
    .factory-office-section .combined-card .address-text { font-size: 20px; }
    .factory-office-section .combined-card .contact-text { font-size: 20px; }
    .factory-office-section .combined-card .map-link { font-size: 18px; }
}

/* ══════════════════════════════════════════
   TABLET (768px ~ 1439px)
   ══════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 1439px) {



    .hero-text-inner {
        top: 72px;
    }

    /* 본사: 이미지 풀너비 + 정보카드 3열 */
    .hq-cards-row {
        flex-wrap: wrap;
    }

    /* 검수 0708: 태블릿 본사 카드 2x2 (이미지 + 정보카드 3개 = 4개, 각 50%) */
    .hq-img-card {
        flex: 1 1 calc(50% - clamp(6px, 0.75vw, 12px));
        width: auto;
        height: auto;
        aspect-ratio: auto;
        align-self: stretch;   /* 옆 카드 높이에 맞춰 늘어남 */
        position: relative;
        min-height: 0;
    }

    .hq-img-card img {
        position: absolute;
        inset: 0;
        object-position: center 40%;
    }

    .hq-cards-row .info-card {
        flex: 1 1 calc(50% - clamp(6px, 0.75vw, 12px));
        min-width: 0;
        height: auto;   /* 검수 0831: min-height 380 제거 → 콘텐츠 hug */
    }

    /* 공장/영업소: 세로카드 2열 — base의 사진:본문 50/50(가로)을 세로 스택으로 리셋 */
    .combined-card {
        flex-direction: column;
        height: auto;
    }

    .combined-card .card-img {
        flex: none; /* base flex:0 0 50% 해제 (세로에선 이미지 전체폭) */
        width: 100%;
        max-width: 100%; /* base max-width:50% 해제 */
        height: 200px;
    }

    .combined-card .info-card {
        /* 검수 0907: flex:none 이라 카드가 옆 카드 높이에 맞춰 늘어나도 본문 블록은
           내용 높이 그대로였고, 남는 공간이 전부 카드 맨 아래 빈칸으로 몰렸다.
           → grow 를 켜서 늘어난 높이를 본문이 흡수하게 한다. (base flex:0 0 50% 는 해제) */
        flex: 1 1 auto;
        width: 100%;
        max-width: 100%; /* base max-width:50% 해제 */
        height: auto;   /* 검수 0831: min-height 360 제거 → 콘텐츠 hug */
    }
    /* 검수 0831: 간격은 base의 .info-card gap / .info-card-top gap 클램프가 담당 → 중복 margin 제거 */

    /* 검수 0907: 상단(국가·타이틀) ↔ 하단(주소·번호) 간격을 고정 24px 대신 auto 로.
       카드가 늘어나면 그만큼 벌어져 주소·번호가 하단 정렬되고,
       늘어나지 않은 카드는 base 의 gap(clamp 최소 24px)이 최소 간격으로 유지된다.
       공장/영업소뿐 아니라 본사 행도 2열 stretch 라 동일 증상이라 같이 건다. */
    .hq-cards-row .info-card,
    .combined-card .info-card {
        justify-content: space-between;
    }

    .factory-office-section .cards-row {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .factory-office-section .combined-card {
        flex: 1 1 calc(50% - 12px);
        min-width: 300px;
    }

    /* 해외: 세로 배치 */
    .overseas-section .cards-row {
        flex-direction: column;
        gap: 24px;
    }

    /* 검수 0831: 고정 min-height·PC 패딩/간격 제거 → hug + base 클램프 위임 */
    .overseas-card {
        height: auto;
        min-width: 0;
        width: 100%;
        padding: clamp(16px, 1.875vw, 36px) clamp(16px, 2.083vw, 40px) clamp(20px, 2.292vw, 44px);
        gap: clamp(24px, 2.083vw, 40px);
    }
}


/* ══════════════════════════════════════════
   MOBILE (≤ 767px)
   ══════════════════════════════════════════ */
@media (max-width: 767px) {



    .hero-text-outer {
        min-height: 200vh;
    }

    .hero-text-inner {
        top: 72px;
        padding: 40px 16px;
        gap: 24px;
        background: #fff;
    }

    .hero-text-section h2 {
        width: 100%;
        max-width: 800px;
        height: auto;
        min-height: 72px;
        font-weight: 700;
        font-size: clamp(24px, 2.3vw + 15.7px, 30px);
        line-height: 150%;
        color: #E9E9E9;
        text-align: center;
        display: block;
        letter-spacing: -0.05em;
        margin: 0;
        word-break: keep-all;
    }

    .hero-text-section h2 .char.active {
        color: #363636;
        /* specificity handles this, removed !important */
    }

    .hero-image-wrapper img {
        object-position: 37.47% center;
    }

    
.network-section .inner {
        padding: 0 16px;
    }

    .overseas-section .inner {
        gap: 20px;
    }

    .cards-row {
        flex-direction: column;
        gap: 12px;
    }

    .hq-img-card,
    .info-card,
    .combined-card,
    .combined-card .card-img,
    .combined-card .info-card,
    .overseas-card {
        width: 100%;
        max-width: 100%;
        margin: 0;
        word-break: keep-all;
    }

    /* 검수 0730: 본사 이미지 높이 156px 고정 (디자인 시안, 공장/영업소 카드 이미지와 동일) */
    .hq-img-card {
        flex: none;
        height: 156px;
    }

    .info-card {
        display: flex;
        flex: none;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        height: auto; /* 검수 0730: 고정높이·space-between → hug(콘텐츠 높이), 여백 제거 (Figma 2169-17246) */
        gap: 24px; /* Header(타이틀)↔Body(주소) */
        padding: 16px 16px 20px;
        border-radius: 16px;
    }

    .overseas-card {
        display: flex;
        flex: none;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        height: auto; /* 검수 0730: 고정높이·space-between → hug (Figma) */
        gap: 30px; /* Title↔Address (해외) */
        padding: 20px 16px;
        border-radius: 16px;
    }

    .overseas-card .info-card-top {
        gap: 8px; /* 검수 0730: Location↔Title 14→8 (Figma 해외) */
    }

    .overseas-card .address-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px 10px;
    }

    .overseas-card .address-text {
        white-space: normal;
        width: 100%;
    }

    .info-card {
        background: #F8F9FB;
    }

    .established-text {
        font-size: 14px;
        line-height: 150%;
        opacity: 0.8;
    }

    .combined-card {
        flex-direction: column;
        height: auto;
    }

    .combined-card .card-img {
        flex: none; /* 검수 0730: base flex:0 0 50% 해제 (세로 스택 전체폭) */
        width: 100%;
        max-width: 100%;
        height: 156px;
        border-radius: 16px 16px 0 0;
    }

    .combined-card .info-card {
        flex: none; /* 검수 0730: base flex:0 0 50% 해제 */
        background: #F8F9FB;
        border-radius: 16px;
        width: 100%;
        max-width: 100%;
        height: auto; /* 검수 0730: hug (Figma 2169-17246) */
        gap: 24px;
        padding: 16px 16px 20px;
    }

    .info-card-top {
        gap: 4px; /* 검수 0730: Location↔Title 8→4 (Figma) */
        align-self: stretch;
    }

    .location-tag {
        gap: 8px;
        font-size: 16px;
        min-height: 26px;
    }

    .card-title {
        font-size: 30px;
        line-height: 150%;
        /* 검수 0730: min-height 90(2줄 예약) 제거 → 제목이 실제 줄 수만큼(hug). 여백 원인 */
    }

    .title-group {
        gap: 8px;
    }

    .type-badge {
        padding: 6px 12px;
        font-size: 16px;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .info-card-bottom {
        gap: 20px;
    }

    .info-item {
        gap: 16px;
    }

    .address-row {
        gap: 4px 10px;
        min-height: 26px;
    }

    .address-text,
    .map-link,
    .contact-text {
        font-size: 16px;
        line-height: 160%;
        font-weight: 400;
    }

    .contact-row {
        gap: 16px;
        min-height: 26px;
    }

    .hero-image-wrapper {
        width: 100%;
        max-width: 100%;
        height: clamp(448px, 13vw + 400px, 540px);
    }
}

/* ══════════════════════════════════════════
   WEB (1440px ~) — 검수 0907 카드 높이
   검수 0831에 다국어 오버플로 대응으로 카드를 전부 hug(height:auto)로 풀었더니
   내용 길이에 따라 카드 높이가 제각각이 됐다. 가이드값으로 복원한다.
   · 국내(본사/공장/영업소) 480px
   · 해외 374px(1440) ~ 480px(1920) 선형
   하드 고정(height) 대신 min-height — 가이드 높이 안에서는 결과가 같고,
   특정 언어가 480을 넘겨도 잘리지 않는다.
   태블릿·모바일은 hug 유지(지적 대상 아님)라 이 블록에만 건다.
   ══════════════════════════════════════════ */
@media (min-width: 1440px) {

    .hq-cards-row .info-card,
    .combined-card {
        min-height: 480px;
    }

    /* 480px 안에서 상단(국가·타이틀) / 하단(주소·연락처)이 위아래로 벌어지는 가이드 레이아웃.
       base 의 gap 은 최소 간격으로 계속 동작한다. */
    .info-card,
    .overseas-card {
        justify-content: space-between;
    }

    /* 해외 카드 — 1440px 374px → 1920px 480px, 1920 이상은 480 고정.
       374/1440 = 25.97vw, 480/1920 = 25vw 로 두 점을 다 지나는 단일 vw 가 없어 선형보간. */
    .overseas-card {
        min-height: clamp(374px, calc(374px + 106 * (100vw - 1440px) / 480), 480px);
    }
}
