/* 전역 안전벨트 - 문제 원인이 제거되면 주석 처리 */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* 전역 이미지/비디오 스타일 */
img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 긴 텍스트 오버플로우 방지 */
.email, .url, code, pre {
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* 기본 폰트 설정 */
@font-face {
    font-family: 'GmarketSansMedium';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'GmarketSansLight';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansLight.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'GmarketSansMedium', sans-serif;
    background-color: #f5f7fa;
}

/* ===========================================
   네비게이션 바 스타일은 common.css에서 관리
   =========================================== */

/* ===========================================
   메인 컨텐츠 영역
   =========================================== */
.main-content {
    margin-top: 75px;
    min-height: calc(100vh - 75px - 200px); /* 네비게이션 높이와 푸터 높이를 제외한 최소 높이 */
}

/* 히어로 섹션 */
.hero-section {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.hero-container {
    position: relative;
    width: 1700px;
    max-width: 100%;
}

.hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    filter: saturate(0.5);
}

.hero-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 2;
    pointer-events: none;
    width: 100%;
}

.hero-caption h3 {
    font-size: 2.1rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 3rem;
    font-family: 'GmarketSansMedium', sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    color: #fff;
    white-space: nowrap;
}

.hero-caption p {
    font-size: 1.5rem;
    font-family: 'GmarketSansLight', sans-serif;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    white-space: nowrap;
    color: #fff;
}

/* ===========================================
   푸터 스타일은 common.css에서 관리
   =========================================== */

/* ===========================================
   반응형 스타일
   네비게이션 관련은 common.css에서 관리
   =========================================== */
@media (max-width: 1199.98px) {
    .hero-caption h3 {
        font-size: 1.8rem;
        line-height: 2.5rem;
    }
}

@media (max-width: 767.98px) {
    .hero-image {
        height: 250px;
        object-fit: cover;
    }

    .section-container {
        flex-direction: column;
        padding: 1rem;
        gap: 20px;
    }

    .section-box {
        width: 100%;
        margin-bottom: 0rem;
    }

    .section-box p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .hero-caption h3 {
        font-size: 1.1rem;
        line-height: 1.6rem;
    }
}

/* ===========================================
   섹션 타이틀
   모든 페이지에서 통일된 섹션 타이틀 스타일
   =========================================== */
.section-title {
    text-align: center;
    padding: 0.8rem 2rem;
    position: relative;
    max-width: 1800px;
    margin: 50px auto 30px;
}

.section-title::before,
.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #c7c1c1;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.section-title::before {
    top: 0;
}

.section-title::after {
    bottom: 0;
}

.section-title h2 {
    font-size: 1.5rem;
    color: #2a2a2a;
    margin: 10px 0px 0px 0px;
    padding: 0.5rem 0;
    font-family: 'GmarketSansMedium', sans-serif;
}

/* 반응형 스타일 */
@media (max-width: 767.98px) {
    .section-title {
        padding: 0.2rem 2rem;
        margin: 20px auto 30px;
    }
    
    .section-title h2 {
        font-size: 1rem;
    }
}

/* ===========================================
   섹션 컨테이너
   회사 정보를 표시하는 컨테이너
   =========================================== */
.section-container {
    max-width: 1700px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 100px;
    padding: 1.5rem 1rem;
}

.section-box {
    width: 650px;
}

.section-box p {
    font-family: 'GmarketSansLight', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 2.0;
    margin-bottom: 1rem;
    color: #000;
}

.section-box h4 {
    font-size: 1.2rem;
    color: #2a2a2a;
    margin-bottom: 0.5rem;
    font-family: 'GmarketSansMedium', sans-serif;
}

/* 반응형 스타일 */
@media (max-width: 1199.98px) {
    .section-container {
        justify-content: center;
        padding: 1rem 2rem;
        gap: 60px;
    }

    .section-box h4 {
        font-size: 1.1rem;
    }
}

@media (max-width: 767.98px) {
    .section-container {
        flex-direction: column;
        padding: 1rem 1.5rem;
        gap: 20px;
    }

    .section-box {
        width: 100%;
        margin-bottom: 0rem;
    }

    .section-box p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .section-box h4 {
        font-size: 1rem;
    }

    /* 모바일에서 스크롤 투 탑 버튼 위치 조정 - 카드와 겹치지 않도록 화면 오른쪽 끝에 배치 */
    .scroll-to-top-btn {
        right: 20px !important;
        left: auto !important;
    }
}

/* ===========================================
   스크롤 투 탑 버튼 (모바일 전용)
   =========================================== */

.scroll-to-top-btn {
    position: fixed !important;
    bottom: 30px;
    right: 20px;
    left: auto;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    margin: 0;
    padding: 0;
}

.scroll-to-top-btn.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.scroll-to-top-btn:hover {
    background-color: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.scroll-to-top-btn:active {
    transform: translateY(0);
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.1),
        0 2px 6px rgba(0, 0, 0, 0.05);
}

.scroll-to-top-btn i {
    font-size: 1.2rem;
    font-weight: 600;
}

/* 태블릿(768~991.98px)에서는 숨김, 모바일/데스크톱에서만 표시 가능 */
@media (min-width: 768px) and (max-width: 991.98px) {
    .scroll-to-top-btn {
        display: none !important;
    }
}