/* 
  태성산업 웹사이트 - 삼일아이엔피(samilip.com) 스타일 CSS 전면 개편
*/

:root {
    /* 메인 컬러 */
    --primary-color: #0b3d91;
    --primary-dark: #092d6b;
    --primary-light: #1a5cc8;
    --accent-color: #e74c3c;

    /* 텍스트 */
    --text-main: #222;
    --text-dark: #111;
    --text-light: #555;
    --text-muted: #888;
    --text-white: #fff;

    /* 배경 */
    --bg-white: #fff;
    --bg-light: #f8fafc;
    --bg-muted: #f0f4f8;
    --bg-dark: #1a1a2e;

    /* 보더/구분선 */
    --border-light: #e0e0e0;
    --border-muted: #ddd;

    /* 그림자 */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);

    /* 폰트 사이즈 스케일 */
    --fs-xs: 0.8rem;
    --fs-sm: 0.9rem;
    --fs-base: 1rem;
    --fs-md: 1.125rem;
    --fs-lg: 1.35rem;
    --fs-xl: 1.6rem;
    --fs-2xl: 2rem;
    --fs-3xl: 2.5rem;

    /* 레이아웃 */
    --header-height: 80px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

html {
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

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

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
    letter-spacing: -0.5px;
    
    /* 텍스트 최적화 적용 */
    word-break: keep-all;        /* 글자 단위가 아닌 단어 단위 줄바꿈 적용 */
    overflow-wrap: break-word;   /* 너무 긴 단어는 줄바꿈 허용 */
    text-wrap: pretty;           /* 마지막 줄에 고아 단어 방지 (크롬 117+, 최신 브라우저 지원) */
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
    text-wrap: balance; /* 제목의 줄바꿈 시 위아래 행 길이 밸런스 조정 (크롬 114+) */
}

p, span, div, li {
    text-wrap: pretty;  /* 문장 끝 조사나 어미가 혼자 남지 않게 자동 조정 */
}

.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ==========================================================================
   헤더 및 로고 영역
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    z-index: 9000;
    border-bottom: 1px solid var(--border-muted);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 0 20px 0 6px;
}

/* 로고: 이미지 + 구분선 + TAESUNG */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    height: 55px;
    width: auto;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-divider {
    display: block;
    width: 1px;
    height: 26px;
    background: #ccc;
    flex-shrink: 0;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 3.5px;
    line-height: 1;
    white-space: nowrap;
    text-transform: uppercase;
}

/* 푸터 브랜드 로고 */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo-img {
    height: 34px;
    width: auto;
    object-fit: contain;
    opacity: 0.55;
    filter: grayscale(60%);
    flex-shrink: 0;
}

.footer-logo-divider {
    display: block;
    width: 1px;
    height: 20px;
    background: var(--border-light);
    flex-shrink: 0;
}

.footer-logo-text {
    font-size: 0.95rem;
    font-weight: 800;
    color: #555;
    letter-spacing: -0.2px;
    line-height: 1;
    white-space: nowrap;
}

/* ==========================================================================
   내비게이션 막대 및 드롭다운 (Mega Menu 방식)
   ========================================================================== */
.nav {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-list {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 6px;
}

.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 22px;
}

/* 메인 메뉴 링크 */
.nav-link {
    font-size: 1.14rem;
    font-weight: 500;
    color: var(--text-main);
    letter-spacing: 0.3px;
    white-space: nowrap;
    transition: var(--transition);
    position: relative;
    padding: 10px 0;
}

/* 호버 시 파란색 바 아래 표시 */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-item:hover .nav-link {
    color: var(--primary-color);
}

.nav-item:hover .nav-link::after {
    width: 100%;
}

/* 쇼핑몰 링크 강조 */
.nav-link.accent {
    color: var(--accent-color);
}
.nav-item:hover .nav-link.accent {
    color: #c0392b;
}
.nav-link.accent::after {
    background-color: var(--accent-color);
}


/* 서브 메뉴 플라이아웃 컨테이너 */
.sub-menu {
    position: absolute;
    top: var(--header-height);
    left: 0;
    min-width: 180px;
    background-color: var(--bg-white);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    border-top: 2px solid var(--primary-color);
    border-radius: 0 0 8px 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    padding: 15px 0;
    z-index: 9100;
}

/* 상위 메뉴 마우스 오버 시 서브메뉴 표시 */
.nav-item:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li a {
    display: block;
    padding: 10px 25px;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 400;
    transition: var(--transition);
}

.sub-menu li a:hover {
    color: var(--primary-color);
    background-color: var(--bg-light);
    padding-left: 30px; /* 호버 시 아주 살짝 밀리는 애니메이션 */
    font-weight: 500;
}


.mobile-menu-btn {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-main);
    background: transparent;
    border: none;
}

/* PC에서 모바일 전용 요소 숨김 */
.mobile-arrow { display: none; }

/* ==========================================================================
   메인 히어로 배너 (단일 — 서브페이지 fallback)
   ========================================================================== */
.hero {
    margin-top: var(--header-height);
    height: 60vh;
    min-height: 500px;
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.25)), url('../images/hero_bg.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-white);
}

.hero h2 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: -1px;
    line-height: 1.35;
}

.hero p {
    font-size: var(--fs-md);
    font-weight: 300;
    opacity: 0.8;
    letter-spacing: 0.3px;
}

/* ==========================================================================
   메인 히어로 슬라이더
   ========================================================================== */
.hero-slider {
    position: relative;
    margin-top: var(--header-height);
    height: 80vh;
    min-height: 500px;
    overflow: hidden;
}

/* 슬라이드 이미지 */
.hero-slides {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.is-active {
    opacity: 1;
}

/* 하단 그라데이션 오버레이 */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.35) 0%, transparent 60%);
    z-index: 2;
    pointer-events: none;
}

/* 텍스트 래퍼 */
.hero-text-wrap {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 6vh;
}

/* 개별 슬라이드 텍스트 */
.hero-text-item {
    position: absolute;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    pointer-events: none;
}

.hero-text-item.is-active {
    opacity: 1;
    pointer-events: auto;
}

/* 텍스트 라인 공통 초기 상태 */
.hero-line1,
.hero-line2,
.hero-sub {
    display: block;
    color: var(--text-white);
    opacity: 0;
}

/* ── 슬라이드 1: 타이핑 (width reveal) ── */
.hero-text-item[data-slide="0"] .hero-line1,
.hero-text-item[data-slide="0"] .hero-line2 {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    max-width: 0;
    transition: max-width 1s steps(12, end), opacity 0.01s;
}
.hero-text-item[data-slide="0"] .hero-sub {
    transition: opacity 0.6s ease;
}
.hero-text-item[data-slide="0"].is-active .hero-line1 {
    opacity: 1; max-width: 600px; transition-delay: 0.3s;
}
.hero-text-item[data-slide="0"].is-active .hero-line2 {
    opacity: 1; max-width: 600px; transition-delay: 0.8s;
}
.hero-text-item[data-slide="0"].is-active .hero-sub {
    opacity: 1; transition-delay: 1.5s;
}

/* ── 슬라이드 2: 좌측 슬라이드인 ── */
.hero-text-item[data-slide="1"] .hero-line1,
.hero-text-item[data-slide="1"] .hero-line2 {
    transform: translateX(-60px);
    transition: opacity 0.7s cubic-bezier(0.25,0.46,0.45,0.94), transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94);
}
.hero-text-item[data-slide="1"] .hero-sub {
    transform: translateX(-30px);
    transition: opacity 0.7s cubic-bezier(0.25,0.46,0.45,0.94), transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94);
}
.hero-text-item[data-slide="1"].is-active .hero-line1 {
    opacity: 1; transform: translateX(0); transition-delay: 0.2s;
}
.hero-text-item[data-slide="1"].is-active .hero-line2 {
    opacity: 1; transform: translateX(0); transition-delay: 0.5s;
}
.hero-text-item[data-slide="1"].is-active .hero-sub {
    opacity: 1; transform: translateX(0); transition-delay: 0.9s;
}

/* ── 슬라이드 3: 스케일업 + 페이드 ── */
.hero-text-item[data-slide="2"] .hero-line1,
.hero-text-item[data-slide="2"] .hero-line2 {
    transform: scale(0.85);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.hero-text-item[data-slide="2"] .hero-sub {
    transition: opacity 0.8s ease-out;
}
.hero-text-item[data-slide="2"].is-active .hero-line1 {
    opacity: 1; transform: scale(1); transition-delay: 0.2s;
}
.hero-text-item[data-slide="2"].is-active .hero-line2 {
    opacity: 1; transform: scale(1); transition-delay: 0.6s;
}
.hero-text-item[data-slide="2"].is-active .hero-sub {
    opacity: 1; transition-delay: 1.0s;
}

/* ── 슬라이드 4: 드롭인 (위→아래) + 서브는 반대 ── */
.hero-text-item[data-slide="3"] .hero-line1,
.hero-text-item[data-slide="3"] .hero-line2 {
    transform: translateY(-40px);
    transition: opacity 0.7s cubic-bezier(0.34,1.56,0.64,1), transform 0.7s cubic-bezier(0.34,1.56,0.64,1);
}
.hero-text-item[data-slide="3"] .hero-sub {
    transform: translateY(20px);
    transition: opacity 0.7s cubic-bezier(0.34,1.56,0.64,1), transform 0.7s cubic-bezier(0.34,1.56,0.64,1);
}
.hero-text-item[data-slide="3"].is-active .hero-line1 {
    opacity: 1; transform: translateY(0); transition-delay: 0.2s;
}
.hero-text-item[data-slide="3"].is-active .hero-line2 {
    opacity: 1; transform: translateY(0); transition-delay: 0.5s;
}
.hero-text-item[data-slide="3"].is-active .hero-sub {
    opacity: 1; transform: translateY(0); transition-delay: 0.9s;
}

/* 메인 텍스트 스타일 */
.hero-line1,
.hero-line2 {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.4;
    text-shadow: 0 2px 15px rgba(0,0,0,0.3);
}

/* 서브 텍스트 스타일 */
.hero-sub {
    font-size: 1.05rem;
    font-weight: 300;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 1px 8px rgba(0,0,0,0.3);
    margin-top: 20px;
    letter-spacing: 0.5px;
}

/* Dot 인디케이터 */
.hero-dots {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    border: none;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hero-dot:hover {
    background: rgba(255,255,255,0.6);
}

.hero-dot.is-active {
    width: 24px;
    background: rgba(255,255,255,0.9);
}

/* 반응형 */
@media (max-width: 768px) {
    .hero-slider {
        height: 60vh;
        min-height: 380px;
    }
    .hero-line1,
    .hero-line2 {
        font-size: 1.8rem;
        padding: 0 20px;
    }
    .hero-sub {
        font-size: 0.85rem;
        padding: 0 24px;
        margin-top: 14px;
    }
    .hero-dots {
        bottom: 20px;
    }
}

/* ==========================================================================
   섹션 공통 서식
   ========================================================================== */
.section {
    padding: 120px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.section-title h3 {
    font-size: var(--fs-2xl);
    color: var(--text-dark);
    font-weight: 600;
    letter-spacing: 3px;
    font-family: 'Montserrat', 'Noto Sans KR', sans-serif;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.section-title p {
    font-size: var(--fs-base);
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.8;
}

/* ==========================================================================
   사업부문 (제품 4구역) — 타이포그래피 카드
   ========================================================================== */
.business-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.biz-card {
    background: var(--bg-white);
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 36px 32px;
    min-height: 220px;
    cursor: default;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.biz-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 30px rgba(11,61,145,0.1);
    transform: translateY(-4px);
}

/* 영문 라벨 */
.biz-label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 8px;
}

/* 한글 제목 */
.biz-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

/* 구분선 */
.biz-line {
    display: block;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
    margin: 16px 0;
}

/* 태그 */
.biz-tag {
    display: block;
    font-size: var(--fs-xs);
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 8px;
}

/* 설명 */
.biz-desc {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    line-height: 1.6;
    font-weight: 300;
    margin: 0;
}

/* ==========================================================================
   사업부문 상세 카드 (business/index.html)
   ========================================================================== */
.biz-detail-card {
    background: var(--bg-white);
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 36px 40px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.biz-detail-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 30px rgba(11,61,145,0.1);
    transform: translateY(-2px);
}

.biz-detail-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--primary-color);
    text-transform: uppercase;
    margin: 0 0 8px;
}

.biz-detail-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.biz-detail-line {
    display: block;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
    margin: 16px 0;
}

.biz-detail-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.8;
    font-weight: 300;
    margin: 0 0 24px;
}

.biz-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.biz-detail-tags span {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(11,61,145,0.06);
    border-radius: 20px;
    font-size: var(--fs-xs);
    color: var(--primary-color);
    font-weight: 500;
}

@media (max-width: 768px) {
    .biz-detail-card {
        padding: 24px 20px;
    }
    .biz-detail-title {
        font-size: 1.1rem;
    }
}

/* CTA 버튼 */
.cta-btn {
    display: inline-block;
    padding: 12px 36px;
    background: var(--primary-color);
    color: var(--text-white);
    font-size: var(--fs-sm);
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(11,61,145,0.2);
}

/* ==========================================================================
   계열사 영역
   ========================================================================== */
.family-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.family-box {
    padding: 40px 30px;
    text-align: center;
    background-color: var(--bg-white);
    border-radius: 10px;
    border: 1px solid #eee;
    transition: var(--transition);
}

.family-box:hover {
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(11,61,145,0.08);
    transform: translateY(-3px);
}

.family-box h4 {
    font-size: var(--fs-lg);
    font-weight: 600;
    color: var(--text-main);
}

/* ==========================================================================
   지속가능경영 (풀 배너)
   ========================================================================== */
.sustainability-banner {
    background-color: #f0f5fa;
    color: var(--text-main);
    padding: 120px 0;
    text-align: center;
}

.sustainability-banner h3 {
    font-size: var(--fs-xl);
    font-weight: 600;
    margin-bottom: 18px;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.sustainability-banner p {
    color: var(--text-muted);
    font-size: var(--fs-base);
    font-weight: 300;
    line-height: 1.8;
}

.sus-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 50px;
}

.sus-item {
    text-align: center;
}

.sus-item i {
    font-size: 2.4rem;
    color: var(--primary-color);
    margin-bottom: 14px;
}

.sus-item h4 {
    color: var(--text-light);
    font-weight: 500;
    font-size: var(--fs-sm);
    letter-spacing: 0.3px;
}

/* ==========================================================================
   고객지원 및 푸터
   ========================================================================== */
.cs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.cs-card {
    background-color: var(--bg-white);
    padding: 44px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 10px;
    border: 1px solid #eee;
    transition: var(--transition);
}

.cs-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(11,61,145,0.08);
    transform: translateY(-3px);
}

.cs-card:hover p {
    color: var(--text-light);
}

.cs-content h4 {
    font-size: var(--fs-lg);
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-main);
}

.cs-content p {
    color: var(--text-muted);
    font-weight: 300;
}

.cs-icon {
    font-size: 2.8rem;
    color: #ccc;
    transition: var(--transition);
}

.cs-card:hover .cs-icon {
    color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: var(--bg-muted);
    padding: 50px 0;
    border-top: 1px solid var(--border-light);
    color: var(--text-light);
}

.footer-bottom {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}

.footer-bottom .logo {
    filter: grayscale(100%);
    opacity: 0.7;
}

.footer-info p {
    margin-bottom: 5px;
    font-size: var(--fs-sm);
}

/* ==========================================================================
   Subpage Layout & LNB
   ========================================================================== */
.sub-header {
    margin-top: var(--header-height);
    padding: 80px 0;
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.3)), url('../images/hero_03.png') center/cover no-repeat;
}

.sub-header h2 {
    font-size: var(--fs-3xl);
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.sub-header p {
    font-size: var(--fs-base);
    font-weight: 300;
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0,0,0,0.45);
}

.lnb-wrap {
    border-bottom: 1px solid #eee;
    background-color: var(--bg-white);
}

.lnb {
    display: flex;
    justify-content: center;
}

.lnb li {
    margin: 0;
    border-right: none;
}
.lnb li:first-child {
    border-left: none;
}

.lnb a {
    display: block;
    padding: 16px 32px;
    font-size: var(--fs-sm);
    font-weight: 400;
    color: var(--text-muted);
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}

.lnb a:hover {
    color: var(--text-main);
    border-bottom-color: transparent;
    background: none;
}

.lnb a.active {
    color: var(--primary-color);
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color);
    background: none;
}

/* ==========================================================================
   Timeline / 연혁 스타일 (Samilip 스타일 벤치마킹)
   ========================================================================== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 50px auto;
    padding: 20px 0;
    text-align: left;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 140px;
    height: 100%;
    width: 2px;
    background: #dbeafe;
}
.timeline-item {
    position: relative;
    margin-bottom: 60px;
    display: flex;
    align-items: flex-start;
}
.timeline-year {
    width: 140px;
    padding-right: 40px;
    text-align: right;
    font-size: var(--fs-xl);
    font-weight: 800;
    color: var(--primary-color);
    position: relative;
}
.timeline-year::after {
    content: '';
    position: absolute;
    top: 8px;
    right: -8px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 0 4px rgba(11, 61, 145, 0.1);
    z-index: 2;
}
.timeline-content {
    flex: 1;
    padding-left: 50px;
    padding-top: 8px;
}
.timeline-content h4 {
    font-size: var(--fs-lg);
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-main);
}
.timeline-content p {
    color: var(--text-light);
    font-size: var(--fs-md);
    line-height: 1.7;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .business-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .family-grid {
        grid-template-columns: 1fr;
    }
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .timeline::before { left: 30px; }
    .timeline-item { flex-direction: column; align-items: flex-start; }
    .timeline-year { 
        width: 100%; 
        padding-right: 0; 
        padding-left: 60px; 
        text-align: left; 
        margin-bottom: 20px; 
    }
    .timeline-year::after {
        left: 21px;
        right: auto;
    }
    .timeline-content {
        padding-left: 60px;
        padding-top: 0;
    }
}

@media (max-width: 768px) {

    /* ── 헤더/네비 ── */
    :root { --header-height: 60px; }
    .header-container { height: 60px; padding: 0 16px 0 10px; position: relative; }
    .header { z-index: 99999; }

    /* 햄버거 버튼 — 헤더 안에서 절대 위치 */
    .mobile-menu-btn {
        display: block;
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 100001;
    }

    /* body 스크롤 잠금 */
    body.menu-open { overflow: hidden; }

    /* ── 모바일 내비 — 기본 숨김 ── */
    .nav {
        display: none;
    }

    /* ── 모바일 메뉴 — 풀스크린 오버레이 ── */
    .nav.is-open {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #fff;
        z-index: 100000;
        padding-top: 60px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* 메뉴 리스트 */
    .nav.is-open .nav-list {
        display: flex !important;
        flex-direction: column;
        width: 100%;
        height: auto;
        gap: 0;
        padding: 0;
        margin: 0;
    }

    /* 메뉴 항목 — position: static 필수 */
    .nav.is-open .nav-item {
        position: static !important;
        width: 100%;
        height: auto;
        padding: 0;
        display: block;
    }

    /* 메뉴 링크 */
    .nav.is-open .nav-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 16px 24px;
        font-size: 1rem;
        font-weight: 500;
        color: #222;
        border-bottom: 1px solid #f0f0f0;
        letter-spacing: 0;
        text-align: left;
        white-space: normal;
    }

    /* PC 호버 밑줄 제거 */
    .nav.is-open .nav-link::after {
        display: none !important;
    }

    /* ── 화살표 표시 ── */
    .nav.is-open .mobile-arrow {
        display: inline-block !important;
        color: #ccc;
        font-size: 1.1rem;
        font-style: normal;
        line-height: 1;
        transition: transform 0.25s ease;
        flex-shrink: 0;
        margin-left: 8px;
    }
    .nav.is-open .nav-item.is-expanded > .nav-link .mobile-arrow {
        transform: rotate(90deg);
    }

    /* ━━━━ 서브메뉴 — 핵심 오버라이드 ━━━━ */
    .nav.is-open .sub-menu {
        position: static !important;
        display: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        border-top: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        min-width: 0 !important;
        width: 100% !important;
        background: #f9fafb;
        z-index: auto !important;
    }

    /* 서브메뉴 열림 */
    .nav.is-open .sub-menu.is-open {
        display: block !important;
    }

    /* PC hover로 서브메뉴 뜨는 것 차단 */
    .nav.is-open .nav-item:hover > .sub-menu {
        display: none !important;
    }
    .nav.is-open .nav-item:hover > .sub-menu.is-open {
        display: block !important;
    }

    /* 서브메뉴 항목 */
    .nav.is-open .sub-menu li a {
        display: block;
        width: 100%;
        padding: 14px 24px 14px 44px;
        font-size: 0.9rem;
        font-weight: 400;
        color: #555;
        border-bottom: 1px solid #f0f0f0;
        text-align: left;
        background: transparent;
        transition: color 0.2s ease, background 0.2s ease;
    }
    .nav.is-open .sub-menu li:last-child a {
        border-bottom: none;
    }
    .nav.is-open .sub-menu li a:hover {
        padding-left: 44px;
        color: var(--primary-color);
        background: #eef3fa;
        font-weight: 400;
    }

    /* 쇼핑몰 링크 빨간색 유지 */
    .nav.is-open .nav-link.accent { color: var(--accent-color); }

    /* 모바일 로고 */
    .logo { gap: 8px; }
    .logo-img { height: 38px; }
    .logo-divider { height: 18px; }
    .logo-text { font-size: 1rem; letter-spacing: 2px; }

    /* ── 히어로 슬라이더 ── */
    .hero-slider { height: 60vh; min-height: 360px; width: 100vw; max-width: 100%; }
    .hero-slides { width: 100%; height: 100%; }
    .hero-slide { width: 100%; height: 100%; background-size: cover; background-position: center; }
    .hero-line1, .hero-line2 { font-size: 1.7rem; padding: 0 20px; }
    .hero-sub { font-size: 0.8rem; padding: 0 24px; margin-top: 14px; }
    .hero-dots { bottom: 18px; gap: 8px; }
    .hero-dot { width: 6px; height: 6px; }
    .hero-dot.is-active { width: 18px; }

    /* ── 서브페이지 히어로 ── */
    .sub-header { padding: 50px 0; }
    .sub-header h2 { font-size: var(--fs-xl); }
    .sub-header p { font-size: var(--fs-sm); }

    /* ── 섹션 공통 ── */
    .section { padding: 60px 0; }
    .sustainability-banner { padding: 60px 0; }
    .container { padding: 0 16px; }

    .section-title { margin-bottom: 36px; }
    .section-title h3 { font-size: 0.7rem; letter-spacing: 2px; }
    .section-title p { font-size: 0.85rem; }

    .section-header { margin-bottom: 32px; }
    .section-header .subtitle { font-size: 0.7rem; }
    .section-header h2 { font-size: 1.4rem; }
    .section-header p { font-size: 0.85rem; }

    /* ── 그리드 ── */
    .business-grid, .cs-grid, .family-grid {
        grid-template-columns: 1fr !important;
        flex-direction: column;
        gap: 16px;
        max-width: 100%;
        overflow: hidden;
    }
    .sus-grid {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }

    /* ── 카드 공통 ── */
    .biz-card, .biz-detail-card, .info-card, .process-card, .icon-list-card {
        padding: 24px 20px;
    }
    .biz-detail-title { font-size: 1.1rem; }
    .cs-card { padding: 28px 20px; flex-direction: column; gap: 16px; align-items: flex-start; }
    .cs-icon { font-size: 2rem; }
    .cs-content h4 { font-size: var(--fs-md); }

    /* ── LNB 탭 메뉴 ── */
    .lnb-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .lnb-wrap::-webkit-scrollbar { display: none; }
    .lnb { justify-content: flex-start; white-space: nowrap; }
    .lnb a { padding: 12px 20px; font-size: var(--fs-xs); }

    /* ── 타임라인 ── */
    .timeline-content h4 { font-size: 1.1rem; }
    .timeline-content p { font-size: var(--fs-sm); }

    /* ── 푸터 ── */
    .footer { padding: 36px 0; }
    .footer-bottom { grid-template-columns: 1fr; gap: 24px; }
    .footer-info p { font-size: 0.75rem; }
    .footer-logo-img { height: 24px; }
    .footer-logo-text { font-size: 0.8rem; }

    /* ── 지속가능경영 ── */
    .sustainability-banner {
        width: 100%;
        margin: 0;
        padding-left: 16px;
        padding-right: 16px;
    }
    .sustainability-banner h3 { font-size: var(--fs-lg); padding: 0 4px; }
    .sustainability-banner p { padding: 0 4px; }

    /* ── 가로 넘침 방지 ── */
    .section, .sustainability-banner, main { max-width: 100vw; overflow-x: hidden; }
}

/* ── 소형 모바일 ── */
@media (max-width: 480px) {
    .hero-line1, .hero-line2 { font-size: 1.4rem; }
    .hero-sub { font-size: 0.75rem; }
    .section-header h2 { font-size: 1.2rem; }
    .cs-grid { gap: 12px; }
}

/* ==========================================================================
   공통 유틸리티 클래스
   ========================================================================== */

/* 섹션 헤더 (영문 서브타이틀 + H2 + 설명) */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-header .subtitle {
    font-size: var(--fs-sm);
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
    font-family: 'Montserrat', sans-serif;
}
.section-header h2 {
    font-size: var(--fs-2xl);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}
.section-header p {
    font-size: var(--fs-base);
    color: var(--text-muted);
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.9;
}

/* 정보 카드 */
.info-card {
    background: var(--bg-white);
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 32px 28px;
    border-top: none;
    text-align: center;
    transition: var(--transition);
}
.info-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    transform: translateY(-4px);
    border-color: var(--border-light);
}
.info-card .card-icon {
    font-size: var(--fs-xl);
    color: var(--primary-color);
    margin-bottom: 16px;
    display: block;
}
.info-card h4 {
    font-size: var(--fs-base);
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}
.info-card p {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    line-height: 1.7;
    font-weight: 300;
}

/* 안내/강조 박스 */
.notice-box {
    background: #f8fafb;
    padding: 24px 28px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
}
.notice-box .notice-icon {
    font-size: var(--fs-lg);
    color: var(--primary-color);
    flex-shrink: 0;
}
.notice-box p {
    font-size: var(--fs-sm);
    color: var(--text-light);
    line-height: 1.7;
    font-weight: 300;
}

/* CTA 배너 */
.cta-banner {
    background: #f0f5fa;
    color: var(--text-main);
    padding: 48px 40px;
    border-radius: 12px;
    text-align: center;
}
.cta-banner .cta-icon {
    font-size: var(--fs-2xl);
    color: var(--primary-color);
    margin-bottom: 16px;
    display: block;
}
.cta-banner h3 {
    font-size: var(--fs-xl);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 14px;
}
.cta-banner p {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* 프로세스 리스트 카드 */
.process-card {
    display: flex;
    margin-bottom: 20px;
    background: var(--bg-white);
    padding: 30px;
    border-radius: 10px;
    align-items: flex-start;
    border: 1px solid #eee;
    border-left: 3px solid var(--primary-color);
    transition: var(--transition);
}
.process-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}
.process-card .step-icon {
    margin-right: 25px;
    color: var(--primary-color);
    font-size: var(--fs-2xl);
    min-width: 50px;
    text-align: center;
}
.process-card .step-label {
    color: var(--primary-color);
    font-weight: 600;
    font-size: var(--fs-sm);
    letter-spacing: 1px;
    margin-bottom: 5px;
}
.process-card h3 {
    font-size: var(--fs-lg);
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 10px;
}
.process-card p {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    line-height: 1.7;
    font-weight: 300;
}

/* 아이콘 리스트 카드 (sustainability 등) */
.icon-list-card {
    display: flex;
    margin-bottom: 20px;
    background: var(--bg-white);
    padding: 30px;
    border-radius: 10px;
    align-items: flex-start;
    border: 1px solid #eee;
    transition: var(--transition);
}
.icon-list-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}
.icon-list-card .list-icon {
    margin-right: 25px;
    color: var(--primary-color);
    font-size: var(--fs-2xl);
    min-width: 40px;
    text-align: center;
}
.icon-list-card h3 {
    font-size: var(--fs-lg);
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 10px;
}
.icon-list-card p {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    line-height: 1.8;
    font-weight: 300;
}

/* ==========================================================================
   반응형 그리드 시스템
   ========================================================================== */
.grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.grid-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1024px) {
    .grid-4col { grid-template-columns: repeat(2, 1fr); }
    .grid-3col { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-4col, .grid-3col, .grid-2col {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ==========================================================================
   스크롤 Fade-in 애니메이션 (메인 페이지)
   ========================================================================== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}
