/* ==========================================================================
   0. 기본세팅
   ========================================================================== */
:root {
    --primary: #0046ff;
    --dark: #111;
    --gray: #f5f5f7;
    --text: #333;
    --border-color: #eee;
    --text-sub: #666;
    --accent: #0046ff;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Pretendard', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: #fff;
}

/* ==========================================================================
   1. 네비게이션
   ========================================================================== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 18px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.92); /*화이트 투명도로 톤 다운 보정 */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 1px;
    flex-shrink: 0; /* 로고 영역 최적화 */
}

.logo img {
    height: 40px; /*기본 높이 최적화 */
    width: auto;
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: nowrap;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-sub);
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: var(--primary);
}

/* ==========================================================================
   2. 메인 영상
   ========================================================================== */

.hero {
    height: 100vh;
    position: relative !important; /* 영상 배치를 위한 기준점 지정 */
    overflow: hidden !important;   /* 영상이 화면 밖으로 넘치지 않게 차단 */
    
    background: none !important; 
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

/* 2. 비디오 컨테이너 레이어 (전체 화면 차지) */
.hero .video-container {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important; /* 콘텐츠보다 뒤로 배치 */
}

/* 3. 비디오 풀 배치 */
.hero .bg-video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* 비율 유지 가득 채움 */
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

/* 4. 밝기 제어용 오버레이 */
.hero .video-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.65) !important; /* 0.65 어두운 정도 조절 */
    z-index: 1 !important; /* 영상 바로 위, 텍스트 바로 아래 */
}

/* 5. 영상 위에 올라가는 글자 레이어 순서 격상 */
.hero > *:not(.video-container) {
    position: relative !important;
    z-index: 2 !important; /* 영상과 오버레이보다 무조건 위로 오게 처리 */
}

/* ==========================================
   메인 텍스트 스크롤 리셋 애니메이션
============================================= */

/* 초기 상태: 투명 아래에 배치 */
.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -2px;
    opacity: 0;
    transform: translateY(20px);
}

/* 스크롤 화면에 들어왔을 때 실행 */
.hero-subtitle.animate {
    animation: heroFadeInUp 0.8s ease-out forwards;
}

.hero-title.animate {
/* 서브타이틀이 나오고 0.4초 뒤에 나타나도록 설정 */
    animation: heroFadeInUp 0.8s ease-out 0.4s forwards;
}

/* 부드럽게 나타나는 키프레임 */
@keyframes heroFadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 모바일 반응형 가독성 처리 */
@media screen and (max-width: 768px) {
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    .hero-title {
        font-size: 2.2rem;
        letter-spacing: -1px;
    }
}

/* ==========================================================================
   3. COMMON SECTION & CARDS
   ========================================================================== */
.section {
    padding: 120px 10%;
}

.section-gray {
    background: var(--gray);
}

.section-title {
    font-size: 2.6rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 70px;
    color: var(--dark);
    letter-spacing: -1px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: #fff;
    padding: 40px;
    border-radius: 24px;
    transition: 0.35s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.card h4 {
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.card p {
    color: #555;
    line-height: 1.8;
}

.process-card {
    background: #fff;
}

/* ==========================================================================
   COMPANY OVERVIEW
   ========================================================================== */
#overview {
    position: relative;
    overflow: hidden;
    background-color: #f8f9fa;
    background-image: 
        linear-gradient(rgba(0, 70, 255, 0.01) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 70, 255, 0.01) 1px, transparent 1px);
    background-size: 30px 30px;
    padding: 100px 0;
    border-bottom: 1px solid rgba(0, 70, 255, 0.05);
}

.section-title-wrap {
    text-align: center;
    margin-bottom: 60px;
}
.section-subtitle {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 3px;
    margin-bottom: 10px;
    position: relative;
}

/* 양측 은은 오로라 그라데이션 장식 */
.bg-blur-deco {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0,70,255,0.06) 0%, transparent 70%);
    filter: blur(50px);
    pointer-events: none;
    z-index: 1;
}
.decoration-1 { top: 10%; left: -10%; }
.decoration-2 { bottom: 5%; right: -10%; }

/* 레이아웃 및 뎁스 조정 */
.overview-wrap {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}
.intro-card, .details-card {
    margin-bottom: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

/* 우측 카드 상단 이미지 썸네일 박스 */
.overview-thum-img {
    width: 100%;
    height: 180px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    margin-bottom: 30px;
}
.overview-thum-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.details-card:hover .overview-thum-img img {
    transform: scale(1.05);
}
.img-overlay-text {
    position: absolute;
    bottom: 15px;
    left: 20px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    background: rgba(0, 76, 255, 0.85);
    padding: 6px 14px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
}

/* 반응형 모바일 대응 */
@media (max-width: 992px) {
    .overview-wrap {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ==========================================================================
   회사 소개
   ========================================================================== */

/* 상단 타이틀 및 인트로 간격 최적화 */
.overview-header {
    margin-bottom: 24px;
}
.overview-heading {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
}
.overview-desc {
    font-size: 0.92rem;
    color: var(--text-sub);
    line-height: 1.6;
}

/* 2단 분할 그리드 여백 다이어트 */
.ppt-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 10px 0 24px 0;
    width: 100%;
}

/* 개별 비전 입동형 박스 슬림화 */
.vision-item-box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
}

/* 뱃지와 타이틀 정렬 축 맞추기 */
.vision-item-top {
    display: flex;
    align-items: center;
    gap: 8px;
}
.vision-num-badge {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary);
    background: rgba(0, 70, 255, 0.08);
    padding: 2px 8px;
    border-radius: 6px;
    flex-shrink: 0;
}
.vision-item-title {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.3;
    margin: 0;
    word-break: keep-all;
}
.vision-item-text {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    margin: 0 !important;
    word-break: keep-all;
}

/* 우측 카드와의 높이 밸런스를 위한 하단 마감 */
.message-box-footer {
    border-top: 1px solid #eee;
    padding-top: 16px;
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ceo-label {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.5px;
}
.ceo-name {
    font-size: 0.9rem;
    color: #555;
    margin: 0;
}
.ceo-name strong {
    color: var(--dark);
    font-weight: 700;
}

/* 반응형 모바일 분기 적용 */
@media (max-width: 768px) {
    .ppt-vision-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* 세로 정렬 비전 박스 컨테이너 */
.ppt-vision-vertical {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 35px 0;
}

/* 개별 행 박스 스타일 */
.vision-row {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #f8f9fa;
    padding: 24px 30px;
    border-radius: 16px;
    border: 1px solid #edf0f5;
    transition: all 0.3s ease;
}

.vision-row:hover {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(0, 70, 255, 0.06);
    transform: translateY(-2px);
}

/* 넘버링 디자인 */
.vision-num {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
    background: #edf2ff;
    padding: 6px 14px;
    border-radius: 8px;
    flex-shrink: 0;
}

/* 텍스트 정렬 */
.vision-text-wrap {
    text-align: left;
}

.vision-text-wrap h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 6px;
}

.vision-text-wrap p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
    word-break: keep-all;
}

/* 하단 CEO 영역 한 줄 마감 */
.ceo-signature-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.ceo-label {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary);
}

.ceo-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #222;
}

.highlight {
    background: #f0f4ff;
    padding: 0 6px;
}

.message-box {
    background: #f8f9fa;
    padding: 35px;
    border-radius: 18px;
    border-left: 6px solid var(--primary);
}

.sub-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #000;
    margin-bottom: 16px;
}

.message-text {
    font-size: 1.05rem;
    color: #000;
    line-height: 1.9;
    word-break: keep-all;
    margin-bottom: 20px;
}

.detail-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 35px;
    color: #000;
}

.company-table {
    width: 100%;
    border-collapse: collapse;
}

.company-table tr {
    border-bottom: 2px solid #eee;
}

.company-table tr:last-child {
    border-bottom: none;
}

.company-table td {
    padding: 18px 0;
    color: #000;
}

.company-table td:first-child {
    width: 130px;
    font-weight: 800;
}

.company-table td:last-child {
    font-weight: 500;
}

.primary-text {
    color: var(--primary) !important;
    font-weight: 800 !important;
}

.company-note {
    margin-top: 35px;
    padding: 24px;
    background: #f0f4ff;
    border-radius: 14px;
    line-height: 1.8;
    color: #000;
    word-break: keep-all;
}

#overview {
    position: relative;
    overflow: hidden;
    background-color: #f8f9fa; /* 연그레이/화이트 배경 */
    background-image: 
        linear-gradient(rgba(0, 70, 255, 0.01) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 70, 255, 0.01) 1px, transparent 1px);
    background-size: 30px 30px;
    padding: 100px 0;
}

/* 중앙 정렬 컨테이너 */
.overview-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* 이미지 라운드진 메인 화이트 보드 */
.premium-ppt-board {
    background: #ffffff;
    border-radius: 32px;
    padding: 60px 50px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* 상단 한자 타이틀 세팅 */
.brand-chinese-title {
    font-size: 2rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.brand-origin-text {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.8;
    margin-bottom: 40px;
}

/* 이미지 하이라이트 배경 효과 */
.quote-highlight {
    background: #eef3ff;
    color: #111;
    padding: 2px 6px;
    font-weight: 600;
    border-radius: 4px;
}

/* 세로 정렬 비전 박스 구조 */
.ppt-vision-vertical {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 50px;
}

/* 개별 행 디자인 리터칭 */
.vision-row {
    display: flex;
    align-items: center;
    gap: 24px;
    background: #f8faff; /* 연한 청색 배경 */
    padding: 28px 35px;
    border-radius: 20px;
    border: 1px solid #edf2fc;
}

.vision-num {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
    background: #e5edff;
    width: 54px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
}

.vision-text-wrap {
    text-align: left;
}

.vision-text-wrap h4 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.vision-text-wrap p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
    word-break: keep-all;
}

/* ==========================================================================
   가운데 정렬 필기체 슬로건
   ========================================================================== */
.handwriting-slogan-wrap {
    text-align: center;
    font-size: 1rem;
    position: relative;
}

/* 따옴표 장식 */
.handwriting-slogan-wrap::before {
    content: "“";
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 4rem;
    color: rgba(0, 70, 255, 0.06);
    font-family: 'Nanum Myeongjo', serif;
}

.handwriting-text {
    font-family: 'Nanum Myeongjo', serif;
    font-style: italic;
    font-size: 0.9rem;
    font-weight: 700;
    color: #3b4861; 
    line-height: 1.5; /* 텍스트 넓은 행간 */
    word-break: keep-all;
    letter-spacing: -0.3px;
}

/* 하단 CEO 영역 마감 */
.ceo-signature-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 30px;
    border-top: 1px solid #eaeaea;
}

.ceo-label {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ceo-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.ceo-name strong {
    color: #000;
    font-weight: 800;
    font-size: 1.15rem;
}

/* 오로라 데코 */
.bg-blur-deco {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0,70,255,0.04) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 1;
}
.decoration-1 { top: -10%; left: -10%; }
.decoration-2 { bottom: -10%; right: -10%; }

/* 모바일 대응 */
@media (max-width: 768px) {
    #overview {
        padding: 60px 0;
    }
    .premium-ppt-board {
        padding: 40px 24px;
        border-radius: 24px;
    }
    .brand-chinese-title {
        font-size: 1.9rem;
        margin-bottom: 25px;
    }
    .brand-origin-text {
        font-size: 0.95rem;
    }
    .vision-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 24px;
    }
    .vision-num {
        width: 46px;
        height: 34px;
        font-size: 1rem;
    }
    .vision-text-wrap h4 {
        font-size: 1.1rem;
    }
    .vision-text-wrap p {
        font-size: 0.9rem;
    }
    .handwriting-text {
        font-size: 0.98rem;
        line-height: 1.9;
    }
    .ceo-signature-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding-top: 24px;
    }
}


/* ==========================================================================
   4. 제작 프로세스
   ========================================================================== */
.process-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3단 배열 */
    gap: 24px;
    align-items: stretch; /* 카드 겉박스 높이를 무조건 일치 */
}

/* 2. 개별 프로세스 카드 - 3단 구조 레이아웃 격자 고정 */
.process-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: grid;
    grid-template-rows: auto 150px 200px; 
    gap: 20px; 
}

/* 제목 감싸는 헤더 중앙 정렬로 변경 */
.ppt-card-header {
    display: flex;
    align-items: center;
    justify-content: center; /*가로 기준 중앙 정렬 */
    gap: 8px; /* 불릿 점과 글자 사이의 간격 */
    margin-bottom: 5px;
    width: 100%;
}

/* 소제목 블루 그라데이션 */
.process-card .card-title {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0046ff 0%, #00c6ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

/* 아이콘 화살표 정렬 컨테이너 */
.process-steps {
    display: flex;
    align-items: flex-start;   
    justify-content: center; 
    flex-wrap: wrap; 
    gap: 8px 4px;
    height: 100%;           
    align-content: flex-start; /* 공간이 남을 때 내용 위로 밀착 고정 */
}

/* 개별 아이콘 + 텍스트 세트 */
.process-steps .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 65px;
    text-align: center;
}

/* 아이콘 원형 스타일 */
.process-steps .step i {
    font-size: 1.3rem;
    color: #9e9e9e;
    background: #f0f4ff;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* 단계별 텍스트 */
.process-steps .step span {
    font-size: 0.82rem;
    font-weight: 700;
    color: #444;
    white-space: nowrap;
}

/* 화살표 스타일 위치 보정 */
.process-steps .arrow {
    font-size: 0.75rem;
    color: #ccc;
    margin-top: 14px; /* 아이콘 센터라인 맞게 상단 여백 */
}

/* 4. 하단 이미지 박스 스타일 */
.process-img-box {
    width: 100%;
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    margin-top: 0;
}

.process-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 박스 비율 꽉 채움 */
    object-position: center;
}

/* 호버 시 이미지 박스 포인트 효과 */
.process-card:hover .process-img-box {
    border-color: rgba(0, 70, 255, 0.2);
}

/* 모바일 대응 */
@media (max-width: 992px) {
    .process-grid-container {
        grid-template-columns: 1fr; /* 모바일 세로 1열 배치 */
        gap: 30px;
    }
    .process-card {
        grid-template-rows: auto auto 200px; /* 모바일 높이 유연하게 처리 */
    }
}

/* ==========================================================================
   5. 브랜드 제품 인터랙티브 뱃지 & 팝업 스타일
   ========================================================================== */
.brand-intro {
    text-align: center;
    margin-bottom: 60px;
}

/* 메인 타이틀 스타일 */
.section-title-sub {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px; /* 서브 타이틀 간격 */
}

/* 브랜드 설명 스타일 */
.brand-desc {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}
.ip-wrap {
    margin-top: 30px;
}


/*화이트 테마 전용 호버 연출 */
.ip-badge {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 30px;
    border: 1px solid #ced4da;
    background: #fff;
    margin: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #495057;
    cursor: pointer; /* 마우스 오버 포인트 처리 */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    user-select: none;
}

/* 마우스 오버 블루 컬러 채움*/
.ip-badge:hover {
    color: #ffffff;
    transform: translateY(-5px);
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--primary) 0%, #3b71fe 100%);
    box-shadow: 0 10px 20px rgba(0, 70, 255, 0.25);
}

.section-white {
    margin-top: -150px;
    margin-bottom: -50px;
    background:#f5f5f7;
}

.product-tab {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 50px;
}

.tab-btn {
    padding: 12px 28px;
    border-radius: 30px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    font-weight: 700;
    transition: 0.3s;
}

.tab-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.product-card {
    text-align: center;
}

.product-image {
    height: 280px;
    background: #fff;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #eee;
    border: 1px solid #ddd;
    margin-bottom: 24px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;      /* 상자를 꽉 채움 (비율이 다르면 가장자리가 살짝 잘림) */
    object-position: center;
}

.product-title {
    color: #333 !important;
    margin-bottom: 8px !important;
    font-size: 1.15rem !important;
}

.product-badge {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary) !important;
    margin-bottom: 14px;
}

.product-card p {
    line-height: 1.8;
}

.product-desc {
    font-size: 0.95rem;
    color: #777 !important;
}

.product-carousel {
    position: relative;
    padding: 0 10px;
}

.carousel-viewport {
    overflow: hidden;
    padding: 40px 0;
    margin: -20px 0;
    touch-action: pan-y;          /* 세로 스크롤은 브라우저에, 가로 스와이프는 캐러셀에 */
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.carousel-viewport.is-dragging {
    cursor: grabbing;
}

.carousel-viewport img {
    -webkit-user-drag: none;
    pointer-events: none;
}

.carousel-track {
    display: flex;
    gap: 30px;
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 calc((100% - 60px) / 3);
    min-width: 0;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #555;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: 0.3s ease;
    z-index: 5;
}

.carousel-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.carousel-arrow.prev {
    left: -14px;
}

.carousel-arrow.next {
    right: -14px;
}

@media (max-width: 992px) {
    .carousel-slide {
        flex: 0 0 calc((100% - 30px) / 2);
    }
}

@media (max-width: 768px) {
    .carousel-slide {
        flex: 0 0 100%;
    }
    /* 모바일은 화살표 버튼 대신 손가락으로 밀어서 넘김 */
    .carousel-arrow {
        display: none;
    }
}

.product-link-wrap {
    text-align: center;
    margin-top: 40px; /* 타 콘텐츠와 상단 여백 */
}

.product-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    
    /* 버튼 프레임 생성 */
    text-decoration: none;
    padding: 16px 40px;
    border-radius: 30px;
    border: 1px solid #ced4da;
    background: #ffffff;
    
    /* 폰트 스타일 최적화 */
    color: #495057;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    
    /* 부드러운 호버 애니메이션 */
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    user-select: none;
}

/* 버튼 마우스 오버 및 블루 그라데이션 활성화 */
.product-link:hover {
    color: #ffffff;
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--primary) 0%, #3b71fe 100%);
    transform: translateY(-4px); /* 떠오르는 효과 */
    box-shadow: 0 12px 24px rgba(0, 70, 255, 0.2); /* 은은한 블루 그림자 확산 */
}

/* 클릭 순간 반응하는 라이브 피드백 */
.product-link:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0, 70, 255, 0.15);
}


/* ==========================================================================
   화이트 버전 이미지 매핑 반응형 팝업 
   ========================================================================== */
.brand-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 19, 36, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.brand-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #fff;
    border: 1px solid #e9ecef;
    width: 100%;
    max-width: 480px;
    border-radius: 24px;
    padding: 35px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 60px rgba(0, 46, 255, 0.08), 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.brand-modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #999999;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--primary);
}

.modal-img-wrap {
    width: 100%;
    height: 200px;
    background-color: #f8f9fa;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #eee;
}

.modal-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.5px;
    margin: 5px 0 0 0;
}

.modal-desc {
    color: #333333;
    font-size: 0.98rem;
    line-height: 1.7;
    word-break: keep-all;
    margin: 0;
}

/* ==========================================================================
   6. 파트너사 로고 롤링
   ========================================================================== */
#brand-ticker-section { 
    background-color: #f5f6f8 !important;
    padding: 60px 0 !important; 
    overflow: hidden !important; /* 화면 밖으로 삐져나가는 박스 숨김 */ 
    width: 100% !important; 
    box-sizing: border-box !important; 
    margin: 0 !important; /* 세로 마진 리셋으로 간격 뒤틀림 차단 */
}

#brand-ticker-section .ticker-wrapper { 
    display: flex !important; 
    width: max-content !important; /* 내용물 크기만큼 가로 스크롤 영역 확보 */ 
} 

#brand-ticker-section .ticker-track { 
    display: flex !important;
    flex-shrink: 0 !important; 
    gap: 20px !important; /* 박스 사이 간격 격차 */ 
    padding-right: 20px !important; /* 트랙과 트랙 사이 이음새 간격 동일화 */ 
    animation: rollingTicker-perfect 25s linear infinite; /* 애니메이션 연결 */
} 

/* 흰색 라운드 정사각형 박스 스타일 */ 
#brand-ticker-section .ticker-item { 
    width: 140px !important;
    height: 140px !important; 
    background-color: #f8f8f8 !important; 
    border-radius: 20px !important; 
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important; 
    box-sizing: border-box !important; 
    padding: 20px !important; 
}

/* 로고 자체 이미지 정렬 및 배경 믹싱 */ 
#brand-ticker-section .ticker-item img { 
    max-width: 100% !important; 
    max-height: 100% !important; 
    object-fit: contain !important;
    filter: none !important; 
} 

/* 마우스 호버 시 일시정지 효과 */ 
#brand-ticker-section .ticker-wrapper:hover .ticker-track {
    animation-play-state: paused !important;
} 

/* 3개의 트랙이 루프 포인트를 만났을 때 튕기지 않도록 -100% 이동 지정 */ 
@keyframes rollingTicker-perfect { 
    0% { transform: translateX(0); } 
    100% { transform: translateX(-100%); } 
} 

/* 모바일 화면 대응 (768px 이하) */ 
@media screen and (max-width: 768px) { 
    #brand-ticker-section { 
        padding: 40px 0 !important; 
    }
    #brand-ticker-section .ticker-item { 
        width: 100px !important; 
        height: 100px !important; 
        border-radius: 14px !important; 
        padding: 12px !important; 
    }
    #brand-ticker-section .ticker-track { 
        gap: 15px !important;
        padding-right: 15px !important; 
    } 
}

/* ==========================================================================
   7. 문의하기 및 레이아웃
   ========================================================================== */
.contact-page { 
    min-height: 100vh; 
    background: linear-gradient(180deg, #f8f9fc 0%, #ffffff 100%);
    margin: 0;
    padding: 0;
} 

.contact-hero { 
    padding-top: 180px;
    padding-bottom: 110px; 
    text-align: center; 
    background: linear-gradient(rgba(0,0,0,0.72), rgba(0,0,0,0.72)), url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3?q=80&w=2070');
    background-size: cover; 
    background-position: center; 
    color: white; 
}

.contact-hero-sub { 
    font-size: 0.95rem; 
    letter-spacing: 4px; 
    text-transform: uppercase; 
    opacity: 0.7; 
    margin-bottom: 18px; 
} 

.contact-hero-title { 
    font-size: 4.3rem; 
    font-weight: 800; 
    letter-spacing: -2px;
    margin-bottom: 24px;
} 

.contact-hero-desc { 
    max-width: 760px; 
    margin: 0 auto; 
    font-size: 1.1rem; 
    line-height: 1.9; 
    opacity: 0.9;
} 

.contact-section { 
    padding: 120px 10%; 
}

.contact-wrap { 
    max-width: 1300px; 
    margin: 0 auto; 
    display: grid;
    grid-template-columns: 420px 1fr; 
    gap: 50px;
    align-items: start; 
}

.contact-info-card { 
    background: white; 
    border: 1px solid #eee;
    border-radius: 32px; 
    padding: 55px 45px; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.05); 
    position: sticky;
    top: 120px; 
} 

.contact-mini { 
    display: inline-block; 
    padding: 8px 16px; 
    border-radius: 999px; 
    background: #f0f4ff;
    color: var(--primary); 
    font-size: 0.8rem; 
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 24px; 
} 

.contact-main-title { 
    font-size: 2.2rem;
    font-weight: 800; 
    line-height: 1.3; 
    color: #111; 
    margin-bottom: 20px;
    letter-spacing: -1px; 
}

.contact-main-desc { 
    font-size: 1rem; 
    line-height: 1.9; 
    color: #666; 
    word-break: keep-all; 
} 

.contact-line { 
    width: 100%; 
    height: 1px; 
    background: #eee;
    margin: 40px 0; 
} 

.contact-simple-list { 
    display: flex; 
    flex-direction: column;
    gap: 26px; 
} 

.contact-simple-item { 
    display: flex; 
    flex-direction: column;
    gap: 6px; 
} 

.contact-simple-label { 
    font-size: 0.8rem; 
    font-weight: 800;
    letter-spacing: 1px; 
    color: var(--primary); 
} 

.contact-simple-value { 
    font-size: 1rem; 
    font-weight: 600;
    color: #222; 
    line-height: 1.7; 
}

.contact-form-card { 
    background: white; 
    border-radius: 32px; 
    padding: 65px;
    border: 1px solid #eee; 
    box-shadow: 0 25px 60px rgba(0,0,0,0.06);
} 

.form-title { 
    font-size: 2.2rem; 
    font-weight: 800; 
    color: #111; 
    margin-bottom: 12px; 
}

.form-desc { 
    color: #666; 
    line-height: 1.8; 
    margin-bottom: 45px;
} 

.contact-form { 
    display: flex; 
    flex-direction: column; 
    gap: 28px; 
} 

.form-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 22px;
} 

.form-group { 
    display: flex;
    flex-direction: column; 
} 

.form-label { 
    font-size: 0.95rem; 
    font-weight: 700;
    color: #111; 
    margin-bottom: 12px; 
}

.contact-form input, .contact-form textarea, .contact-form select { 
    width: 100%;
    border: 1px solid #ddd; 
    border-radius: 18px; 
    padding: 18px 20px; 
    background: #fafafa;
    font-size: 1rem; 
    font-family: inherit; 
    transition: 0.3s; 
}

.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { 
    outline: none; 
    border-color: var(--primary); 
    background: white;
    box-shadow: 0 0 0 5px rgba(0,70,255,0.08); 
} 

.contact-form textarea {
    min-height: 220px; 
    resize: vertical; 
} 

.contact-submit { 
    height: 64px; 
    border: none;
    border-radius: 20px; 
    background: linear-gradient(135deg, #0046ff 0%, #5d7cff 100%); 
    color: white; 
    font-size: 1rem; 
    font-weight: 800; 
    cursor: pointer;
    transition: 0.35s; 
}

.contact-submit:hover { 
    transform: translateY(-4px); 
    box-shadow: 0 18px 40px rgba(0,70,255,0.28); 
}


.custom-contact-left-box {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0, 70, 255, 0.04);
    overflow: hidden;
    position: relative;
    border: 1px solid #eef2f8;
    height: 100%; /* 우측 폼 박스와 높이 균형 맞춤 */
}


.info-inner-container {
    padding: 50px 45px;
}

/* CONTACT US 배지 */
.info-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary, #0046ff);
    background: rgba(0, 70, 255, 0.06);
    padding: 6px 14px;
    border-radius: 30px;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

/* 메인 타이틀 */
.info-main-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: #111111;
    line-height: 1.4;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

/* 설명 문구 */
.info-description {
    font-size: 0.95rem;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 45px;
}

/* 연락처 목록 배열 구조 */
.info-meta-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.info-meta-item {
    display: flex;
    align-items: center;
    gap: 18px;
}

.info-map-wrap {
    margin-top: 4px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.08);
}

.info-map-wrap iframe {
    display: block;
}

/* 아이콘 감싸는 원형 배경 쉐입 */
.meta-icon-shape {
    width: 44px;
    height: 44px;
    background-color: #f4f7ff;
    color: var(--primary, #0046ff);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

/* 마우스 오버 시 아이콘 쉐입 변화 효과 */
.info-meta-item:hover .meta-icon-shape {
    background-color: var(--primary, #0046ff);
    color: #ffffff;
}

.meta-text-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

/* 작은 라벨 텍스트 */
.meta-label {
    font-size: 0.8rem;
    color: #999999;
    font-weight: 600;
}

/* 정보 텍스트 (전화번호, 이메일 등) */
.meta-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #222222;
    text-decoration: none;
    transition: color 0.2s ease;
}

/* 링크 (전화, 메일)에 마우스 오버 블루 변경 */
a.meta-value:hover {
    color: var(--primary, #0046ff);
}

/* 모바일 반응형 대응 */
@media (max-width: 768px) {
    .info-inner-container {
        padding: 35px 25px;
    }
    .info-main-title {
        font-size: 1.6rem;
    }
    .info-description {
        margin-bottom: 35px;
    }
    .info-meta-list {
        gap: 22px;
    }
}

/* ==========================================================================
   8. FOOTER
   ========================================================================== */
footer { 
    background: #1a1a1a;
    color: #ccc; 
    padding: 40px 5%; 
    border-top: 1px solid #2d2d2d; 
} 

.footer-container { 
    max-width: 1400px; 
    margin: 0 auto; 
    display: flex; 
    justify-content: space-between;
    align-items: center; 
    flex-wrap: wrap;
    gap: 24px; 
}

.footer-left { 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
    text-align: left; 
} 

.footer-links { 
    display: flex; 
    align-items: center; 
    gap: 10px;
}

.footer-links a { 
    color: #fff; 
    text-decoration: none; 
    font-size: 0.9rem;
    font-weight: 500; 
    transition: 0.2s; 
} 

.footer-links a:hover { 
    color: var(--primary);
} 

.footer-links a.bold-link { 
    font-weight: 700; 
} 

.footer-info { 
    font-size: 0.82rem; 
    line-height: 1.8; 
    color: #999;
} 

.footer-info .bar, .footer-links .bar { 
    color: #444; 
    font-size: 0.8rem; 
} 

.copyright { 
    margin-top: 6px; 
    font-size: 0.78rem; 
    color: #666; 
}

.footer-right { 
    display: flex; 
    align-items: center; 
    gap: 16px; 
} 

.footer-sns { 
    display: flex; 
    gap: 10px; 
    align-items: center; 
} 

.sns-icon { 
    display: inline-flex;
    align-items: center; 
    justify-content: center; 
    width: 30px;
    height: 30px; 
    border-radius: 10px; 
    color: #fff; 
    transition: transform 0.2s ease, filter 0.2s ease; 
    text-decoration: none;
    line-height: 1; 
    vertical-align: middle;
} 

.sns-icon img { 
    width: 30px; 
    height: 30px; 
    margin: 0;
    display: block; 
} 

.sns-icon.yt { background: #ff0000; } 
.sns-icon.ig { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); } 
.sns-icon.blog { background: #03c75a; }

.sns-icon:hover { 
    transform: translateY(-3px); 
    filter: brightness(1.1); 
}

.family-site-wrap { 
    display: inline-block; 
} 

.family-site-wrap select {
    background: #333333; 
    color: #fff;
    border: 1px solid #444;
    padding: 9px 35px 9px 15px; 
    font-size: 0.88rem; 
    font-weight: 600;
    border-radius: 6px; 
    cursor: pointer; 
    outline: none;
    transition: 0.2s;
    appearance: none; 
    -webkit-appearance: none; 
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999999' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; 
    background-position: right 14px center; 
}

.family-site-wrap select:hover { 
    background-color: #3a3a3a; 
    border-color: #555;
} 

.family-site-wrap select option { 
    background: #2b2b2b; 
    color: #fff;
    padding: 10px;
} 

/* ==========================================================================
   9. 모바일 레이아웃 최적화 및 추가 컴포넌트 격리
   ========================================================================== */
@media (max-width: 1024px) { 
    .nav-menu { gap: 18px; } 
    .nav-menu a { font-size: 0.9rem; } 
} 

@media (max-width: 768px) { 
    nav { 
        padding: 12px 4%;
        flex-direction: column; 
        gap: 10px;
        background: rgba(255, 255, 255, 0.95); 
    }
    .contact-wrap {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .contact-info-card {
        position: relative;
        top: 0;
        padding: 35px 25px;
    }
    .contact-form-card {
        padding: 40px 25px;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
} 

/* 기업 소개 카운터 섹션 */ 

/* 1. 최상위 컨테이너: 가로 정렬 강제 부여 */
#company-counter-section,
#company-counter-section.overview-counters-container {
    display: flex !important;
    flex-direction: row !important;      /* 무조건 가로로 나열 */
    justify-content: space-around !important; /* 아이템 간격 균등 분배 */
    align-items: center !important;      /* 상하 가운데 정렬 */
    flex-wrap: nowrap !important;        /* PC 절대 아래로 떨어지지 않음 */
    
    background-color: var(--primary) !important;
    border-radius: 0px !important; 
    padding: 60px 40px !important;
    margin-top: 0px !important; 
    margin-bottom: 0px !important; 
} 

/* 2. 개별 카운터 세로 정렬 방해 요소 제거 */
#company-counter-section .counter-item { 
    display: flex !important; 
    flex-direction: column !important;   /* 숫자와 설명 세로로 정렬 */
    align-items: center !important; 
    justify-content: center !important; 
    
    flex: 1 !important;                  /* 공간 균등 배분 */
    width: auto !important;              /* 가로 폭 자동 계산 */
    float: none !important;              /* float 간섭 제거 */
}

/* 3. 내부 텍스트 및 숫자 가독성 설정 */
#company-counter-section .counter-label { 
    font-size: 1.15rem !important;
    font-weight: 800 !important; 
    color: #ffffff !important; 
    margin: 0 0 8px 0 !important;
    text-align: center !important;
} 

#company-counter-section .counter-num-wrap { 
    font-size: 3rem !important; 
    font-weight: 800 !important; 
    color: #ffffff !important; 
    line-height: 1.1 !important;
    margin: 0 0 8px 0 !important; 
    display: flex !important; 
    align-items: baseline !important; 
    justify-content: center !important; 
} 

#company-counter-section .counter-unit { 
    font-size: 1.5rem !important;
    font-weight: 700 !important; 
    color: #ffffff !important; 
    margin-left: 2px !important; 
}

#company-counter-section .counter-sub-label { 
    font-size: 0.9rem !important;
    font-weight: 500 !important; 
    color: rgba(255, 255, 255, 0.8) !important;
    margin: 0 !important;
    text-align: center !important;
} 

/* 4. 모바일 반응형 가이드 (768px 이하에서만 세로 정렬) */
@media screen and (max-width: 768px) { 
    #company-counter-section,
    #company-counter-section.overview-counters-container {
        flex-direction: column !important; /* 모바일만 세로로 쌓임 */
        gap: 45px !important;
        padding: 50px 20px !important; 
    } 
    #company-counter-section .counter-item {
        width: 100% !important;
    }
}

/* 이용약관 섹션 디자인 */
.terms-section { 
    padding: 140px 20px 80px 20px; /* 상단 nav바에 가려지지 않도록 패딩 확보 */
    min-height: calc(100vh - 350px); /* 푸터와 네비게이션을 제외한 최소 높이 확보 */ 
} 

.terms-container { 
    max-width: 900px; 
    margin: 0 auto; 
    background: #ffffff; 
    padding: 50px 40px;
    border-radius: 20px; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* 은은 입체감 */ 
} 

.terms-title { 
    font-size: 2rem; 
    font-weight: 800;
    color: #222222;
    margin-bottom: 10px; 
    letter-spacing: -0.5px; 
}

.terms-subtitle { 
    font-size: 1rem; 
    color: #777777; 
    margin-bottom: 45px; 
} 

/* 개별 약관 그룹 단락 */
.terms-box-wrap { 
    margin-bottom: 35px;
} 

.terms-box-wrap:last-child { 
    margin-bottom: 0; 
} 

.terms-box-title { 
    font-size: 1.15rem; 
    font-weight: 700;
    color: #333333; 
    margin-bottom: 12px;
} 

/* 텍스트가 들어가는 실제 스크롤 박스 */
.terms-content-box { 
    height: 180px;/* 고정 높이 깔끔 스크롤 처리 */ 
    overflow-y: auto;
    background-color: #fcfcfc; 
    border: 1px solid #e9ecef; 
    border-radius: 12px;
    padding: 20px;
    font-size: 0.95rem; 
    line-height: 1.75; 
    color: #555555;
    white-space: pre-line; /* 줄바꿈 자연스럽게 처리 */ 
}

/* 약관 박스 내부 스크롤바 커스텀 */
.terms-content-box::-webkit-scrollbar { width: 6px; } 
.terms-content-box::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 0 12px 12px 0; } 
.terms-content-box::-webkit-scrollbar-thumb { background: #ced4da; border-radius: 10px; }
.terms-content-box::-webkit-scrollbar-thumb:hover { background: var(--primary, #0056b3); /* 경문 블루 포인트 색상 연동 */ } 

/* 약관 모바일 반응형 최적화 */
@media screen and (max-width: 768px) {
    nav {
        padding: 12px 5%;
    }
    
    .nav-menu {
        gap: 14px;
    }

    .nav-menu a {
        font-size: 0.85rem;
    }

    .contact-wrap {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-form-card {
        padding: 30px 20px;
    }

    .footer-container {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================================================
   모바일 공통 컴팩트 레이아웃 (768px 이하)
   - 데스크톱용 큰 여백/글자/카드를 모바일 화면에 맞게 줄임 (데스크톱에는 영향 없음)
   - 이 블록은 반드시 파일 맨 아래에 둘 것 (위쪽 규칙을 덮어써야 함)
   ========================================================================== */

/* 터치 기기: 탭한 카드가 hover 상태로 남아 떠 있는 현상 방지 */
@media (hover: none) {
    .card:hover,
    .process-card:hover {
        transform: none;
        box-shadow: none;
    }
}

@media (max-width: 768px) {

    /* ---------- 섹션 / 제목 ---------- */
    .section {
        padding: 64px 5%;
    }
    .section-title {
        font-size: 1.9rem;
        margin-bottom: 32px;
        letter-spacing: -0.5px;
    }
    .section-title-wrap {
        margin-bottom: 32px;
    }

    /* ---------- 공통 카드 ---------- */
    .card {
        padding: 22px 18px;
        border-radius: 18px;
    }
    .card h4 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    .card p {
        line-height: 1.65;
    }
    .grid-3 {
        gap: 14px;
    }

    /* ---------- 회사 소개 ---------- */
    .overview-container {
        padding: 0;
        max-width: 100%;
        min-width: 0;
        width: 100%;
    }
    .details-card,
    .intro-card {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
    .premium-ppt-board {
        box-sizing: border-box;
        padding: 26px 18px;
        border-radius: 22px;
    }
    .brand-chinese-title {
        font-size: 1.6rem;
        margin-bottom: 14px;
    }
    .brand-origin-text {
        font-size: 0.92rem;
        line-height: 1.7;
        margin-bottom: 22px;
    }
    .ppt-vision-grid {
        gap: 10px;
        margin: 6px 0 16px 0;
    }
    .vision-item-box {
        padding: 16px;
        gap: 8px;
    }
    .vision-item-title {
        font-size: 0.95rem;
    }
    .vision-item-text {
        font-size: 0.82rem;
    }
    .ppt-vision-vertical {
        gap: 12px;
        margin: 20px 0 26px;
    }
    .vision-row {
        padding: 16px 18px;
        gap: 10px;
        border-radius: 14px;
    }
    .handwriting-text {
        font-size: 0.92rem;
        line-height: 1.75;
    }
    .ceo-signature-line {
        padding-top: 16px;
        gap: 8px;
    }
    .overview-wrap {
        gap: 14px;
        padding: 0 14px;
        box-sizing: border-box;
    }
    .overview-thum-img {
        height: 140px;
        margin-bottom: 18px;
    }
    .company-table td {
        padding: 12px 0;
        font-size: 0.9rem;
    }
    .company-table td:first-child {
        width: 84px;
    }
    .company-table tr {
        border-bottom-width: 1px;
    }

    /* ---------- 카운터 (세로 5줄 → 2열 격자) ---------- */
    #company-counter-section,
    #company-counter-section.overview-counters-container {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 28px 12px !important;
        align-items: start !important;
        padding: 36px 16px !important;
    }
    #company-counter-section .counter-item:last-child:nth-child(odd) {
        grid-column: 1 / -1 !important;   /* 홀수 개일 때 마지막 항목은 한 줄 전체 */
    }
    #company-counter-section .counter-label {
        font-size: 0.95rem !important;
        margin: 0 0 4px 0 !important;
    }
    #company-counter-section .counter-num-wrap {
        font-size: 2.2rem !important;
        margin: 0 0 4px 0 !important;
    }
    #company-counter-section .counter-unit {
        font-size: 1.1rem !important;
    }
    #company-counter-section .counter-sub-label {
        font-size: 0.78rem !important;
    }

    /* ---------- 제작 프로세스 ---------- */
    .process-grid-container {
        gap: 14px;
    }
    .process-card {
        padding: 24px 18px;
        border-radius: 20px;
        gap: 14px;
        grid-template-rows: auto auto 150px;
    }
    .process-card .card-title {
        font-size: 1.25rem;
    }
    .process-steps .step {
        min-width: 58px;
    }
    .process-steps .step i {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    .process-steps .step span {
        font-size: 0.75rem;
    }
    .process-img-box {
        height: 150px;
    }

    /* ---------- 겜맥 / 큐릭 제품 롤링 ---------- */
    #gammac-products.section,
    #qric-products.section {
        padding: 52px 5% 44px;
    }
    .section-white {                 /* 데스크톱용 위아래 겹침 여백 제거 */
        margin-top: 0;
        margin-bottom: 0;
    }
    .brand-intro {
        margin-bottom: 24px;
    }
    .section-title-sub {
        font-size: 1.9rem;
        margin-bottom: 6px;
    }
    .brand-desc {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    .product-carousel {
        padding: 0;
    }
    .carousel-viewport {
        padding: 6px 0 10px;
        margin: 0;
    }
    .carousel-track {
        gap: 14px;
    }
    .carousel-slide {
        flex: 0 0 78%;               /* 옆 카드가 살짝 보여서 밀어서 넘기는 걸 알 수 있음 */
    }
    .product-card.carousel-slide {
        padding: 16px 16px 20px;
    }
    .product-image {
        height: 190px;
        margin-bottom: 14px;
        border-radius: 12px;
    }
    .product-title {
        font-size: 1rem !important;
        margin-bottom: 4px !important;
    }
    .product-badge {
        font-size: 0.75rem;
        margin-bottom: 8px;
    }
    .product-card p {
        line-height: 1.6;
    }
    .product-desc {
        font-size: 0.85rem;
    }
    .product-link-wrap {
        margin-top: 22px;
    }
    .product-link {
        padding: 13px 28px;
        font-size: 0.9rem;
    }
}