/* 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;
    height: 480px;
    background: #F8F9FB;
    border-radius: clamp(16px, 1.6vw, 30px);
    padding: 36px 40px 44px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    position: relative;
    min-width: 0;
}

.info-card-top {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.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: 32px;
}

.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;
    column-gap: 16px;
    row-gap: 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;
    height: 480px;
    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;
    height: 100%;
    box-sizing: border-box;
}

.combined-card .card-img img {
    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;
    height: clamp(308px, 26vw, 490px);
    border-radius: clamp(16px, 1.6vw, 30px);
    padding: 36px 40px 44px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    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: 480px;
        border-radius: 30px;
    }

    /* 사진:본문 = 1:1 — base(flex:0 0 50%)가 담당. 여기선 패딩·폰트만 명시 */
    .factory-office-section .combined-card .info-card {
        padding: 36px 40px 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;
        min-height: 380px;
    }

    /* 공장/영업소: 세로카드 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 {
        flex: none; /* base flex:0 0 50% 해제 */
        width: 100%;
        max-width: 100%; /* base max-width:50% 해제 */
        height: auto;
        min-height: 360px;
    }

    .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;
    }

    .overseas-card {
        height: auto;
        min-height: clamp(280px, 35vw, 400px);
        min-width: 0;
        width: 100%;
        padding: 36px 40px 44px;
        gap: 24px;
    }

    .overseas-card .info-card-top {
        gap: 16px;
    }

    .overseas-card .info-card-bottom {
        gap: 32px;
    }

    .overseas-card .info-item {
        gap: 16px;
    }

    .overseas-card .address-row {
        gap: 8px;
    }
}


/* ══════════════════════════════════════════
   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);
    }
}