@charset "utf-8";

/* =========================================
   1. 기본 공통 스타일 (리셋)
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

li {
    list-style: none;
}

/* =========================================
   2. 공통 헤더 (항상 흰색 배경 고정)
   ========================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: #fff;
    border-bottom: 1px solid #eaeaea;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    z-index: 1000;
}

/* 로고 찌그러짐 완벽 방어 */
.logo {
    height: 100%;
    display: flex;
    align-items: center;
    flex-shrink: 0 !important;
    margin-left: -70px;
}

.logo a {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
}

.logo-img {
    height: 250px;
    width: auto;
    margin-top: 20px;
    margin-right: 10px;
}

/* 네비게이션 및 언어 선택기 (가로 정렬) */
nav {
    display: flex;
    align-items: center;
    height: 100%;
}

.gnb {
    display: flex;
    height: 100%;
    align-items: center;
}

.gnb>li {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 30px;
    cursor: pointer;
}

.gnb>li>a {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    height: 100%;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.gnb>li:hover>a {
    color: #3b82f6;
}

/* PC 서브메뉴 */
.submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    min-width: 200px;
    padding: 15px 0;
    border-top: 2px solid #3b82f6;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: none;
}

.gnb>li:hover .submenu {
    display: block;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.submenu li a {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    color: #333;
    text-align: center;
    transition: all 0.2s;
}

.submenu li a:hover {
    background-color: #f4f4f4;
    color: #3b82f6;
}

/* 언어 선택기 (PC 버전) */
.lang-switch {
    display: flex;
    align-items: center;
    margin-left: 30px;
}

.lang-switch a {
    font-size: 15px;
    font-weight: 500;
    color: #666;
    transition: color 0.3s ease;
    text-decoration: none;
}

.lang-switch a.active {
    color: #0056b3;
    font-weight: 700;
}

.lang-switch .divider {
    margin: 0 12px;
    font-size: 12px;
    color: #ccc;
}

.lang-switch a:hover {
    color: #3b82f6;
}

/* 모바일용 햄버거 버튼 (PC에서는 숨김) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
    margin-left: 20px;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* =========================================
   3. 모바일 반응형 (1024px 이하)
   ========================================= */
@media (max-width: 1024px) {
    header {
        padding: 0 30px;
    }

    .logo {
        margin-left: -70px;
        margin-top: 15px;
        /* 숫자를 더 키우면(-20px, -25px...) 로고가 더 왼쪽으로 갑니다 */
    }

    /* 모바일 로고 크기 고정 */
    .logo-img {
        height: 200px !important;
        margin-top: 0;

    }

    /* 햄버거 버튼 나타남 */
    .menu-toggle {
        display: flex;
    }

    /* 모바일 햄버거 메뉴창 (전체 덮지 않는 드롭다운 방식) */
    nav#nav-menu {
        position: absolute;
        /* fixed에서 absolute로 변경하여 헤더 바로 아래에 붙임 */
        top: 80px;
        left: 0;
        width: 100%;
        height: auto;
        max-height: 0;
        /* 처음엔 닫혀있음 (높이 0) */
        background-color: #fff;
        transition: max-height 0.4s ease-in-out;
        /* 부드럽게 아래로 펼쳐지는 애니메이션 */
        overflow: hidden;
        /* 영역 밖으로 나가는 메뉴 숨김 */
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
        /* 메뉴 아래쪽에 입체적인 그림자 추가 */
    }

    nav#nav-menu.active {
        max-height: 70vh;
        /* 열렸을 때 최대 화면의 70%까지만 허용 (메뉴 갯수만큼만 늘어남) */
        border-top: 1px solid #eee;
        overflow-y: auto;
        /* 혹시 서브메뉴가 다 열려서 길어지면 내부 스크롤 생성 */
    }

    .gnb {
        width: 100%;
        flex-direction: column;
        padding: 0;
    }

    .gnb>li {
        width: 100%;
        display: block;
        padding: 0;
    }

    .gnb>li>a {
        padding: 18px 30px;
        border-bottom: 1px solid #f4f4f4;
        height: auto;
        font-size: 16px;
    }

    /* 모바일 서브메뉴 */
    .submenu {
        position: static;
        transform: none;
        width: 100%;
        box-shadow: none;
        border-top: none;
        background-color: #f8f9fa;
        display: none;
    }

    .gnb>li:hover .submenu {
        display: block;
        animation: none;
    }

    .submenu li a {
        text-align: left;
        padding: 12px 30px 12px 50px;
        border-bottom: 1px solid #eee;
    }

    /* 햄버거 메뉴 안으로 들어온 언어 선택 버튼 */
    .lang-switch {
        margin: 20px 30px;
        width: calc(100% - 60px);
        padding: 15px 0;
        justify-content: flex-start;
        border-top: 2px solid #eee;
    }

    .lang-switch a {
        font-size: 16px;
        padding: 5px 10px 5px 0;
    }

    /* 메인 히어로 배너 폰트 모바일 대응 */
    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    /* 비즈니스 4단 그리드 모바일 대응 */
    .grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {

    /* 768px 이하 모바일 화면에서는 1단 배치 */
    .grid-4 {
        grid-template-columns: 1fr !important;
    }
}

/* 햄버거 버튼 클릭 시 X 모양 애니메이션 */
.menu-toggle.is-active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}


/* =========================================
   4. 서브 페이지 공통 레이아웃 & 탭
   ========================================= */
.section-padding {
    padding: 100px 50px 120px;
}

.bg-gray {
    background-color: #f8f9fa;
}

.content-box {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.content-box h2 {
    font-size: 48px;
    font-weight: 800;
    color: #111;
    margin-bottom: 60px;
    letter-spacing: -2px;
    line-height: 1.2;
}

/* 서브 히어로 공통 (이미지는 각 파일에서 지정) */
.sub-hero {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding-top: 80px;
}

.sub-hero h1 {
    font-size: 42px;
    margin-bottom: 15px;
    font-weight: 700;
}

.sub-hero p {
    font-size: 18px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
}

/* 공통 탭 디자인 */
.tab-container {
    width: 100%;
    background-color: #f8f9fa;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.tab-nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 20px 40px;
    background: transparent;
    border: none;
    font-size: 18px;
    color: #555;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.tab-btn:hover {
    color: #0056b3;
}

.tab-btn.active {
    color: #0056b3;
    border-bottom: 3px solid #0056b3;
    font-weight: 700;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================
   5. 공통 푸터
   ========================================= */
footer {
    background: #1d2447;
    color: #888;
    padding: 80px 20px;
    text-align: center;
    border-top: 1px solid #222;
}

footer h2 {
    color: #fff;
    margin-bottom: 30px;
    font-size: 24px;
}

footer address {
    font-style: normal;
    margin-bottom: 40px;
    line-height: 1.8;
    font-size: 14px;
}

.copyright {
    border-top: 1px solid #222;
    padding-top: 20px;
    margin-top: 20px;
    font-size: 13px;
    color: #555;
}


/* =========================================
   6. 메인(Index) 페이지 전용 스타일
   ========================================= */
.hero {
    width: 100%;
    height: 100vh;
    background-image: linear-gradient(rgba(45, 52, 184, 0.6), rgba(0, 0, 0, 0.6)), url('../img/main.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding-top: 80px;
}

.hero-title,
.hero-desc {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

.hero-title.active,
.hero-desc.active {
    opacity: 1;
    transform: translateY(0);
}

.hero h1 {
    font-size: 56px;
    margin-bottom: 40px;
    line-height: 1.2;
}

.hero p {
    font-size: 24px;
    font-weight: 300;
}

.animate-target {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.animate-target.active {
    opacity: 1;
    transform: translateY(0);
}

/* 비즈니스 4단 그리드 */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

.card {
    flex: 1;
    min-width: 0;
    background: #fff;
    padding: 40px;
    border: 1px solid #eee;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.card h3 {
    color: #111;
    margin-bottom: 15px;
    font-size: 20px;
}

.card p {
    color: #666;
    font-size: 14px;
}