@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@100..900&display=swap');

/* 기본 설정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

.main-wrapper {
    max-width: 1080px;  
    margin: 0 auto;     /* 좌우 여백을 자동으로 설정하여 중앙 배치 */
    background-color: #fff;
    min-height: 100vh;  /* 화면 높이가 낮아도 배경이 꽉 차도록 설정 */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* 상단 바 */
.header-bar {
    background-color: #fe8630;
    text-align: center;
    padding: 10px 0;
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
}

/* 공통 섹션 스타일 */
.section {
    position: relative;
    width: 100%;
    height: 900px; 
    background-size: cover;
    background-position: center;
    display: flex;
    padding: 40px;
}

/* 각 섹션 배경 이미지 (파일 경로를 맞춰주세요) */
.visual-01 { background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('img/img1.jpg'); }
.visual-02 { 
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('img/img2.jpg');
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

/* 텍스트 배치 */
.text-box {
    color: white;
    font-size: 32px;
    font-weight: 700;
}

.top-left { align-self: flex-start; }
.bottom-right { 
    margin-left: auto;
    margin-top: auto;
    text-align: right; 
}
.center-bottom {
    text-align: center;
    margin-top: auto;
}

.sub-text {
    font-size: 20px;
    font-weight: 400;
    margin-top: 10px;
}

/* 로고 섹션 */
.logo-section {
    padding: 80px 0;
    text-align: center;
}
.logo-section img { width: 200px; }
.foforin-logo { width: 200px; align-self: flex-start; }

/* 푸터 */
footer {
    padding: 60px 40px;
    background-color: #fff;
    font-size: 14px;
    color: #666;
}

footer hr {
    margin: 20px 0;
    border: 0;
    border-top: 1px solid #eee;
}

footer p { margin-bottom: 5px; }

/* --- 모바일 최적화 (화면 폭 768px 이하) --- */
@media (max-width: 768px) {
    /* 1. 전체적인 섹션 높이 조절 */
    .section {
        height: 350px; /* 모바일에서는 높이를 조금 낮춰서 한눈에 들어오게 함 */
        padding: 25px; /* 내부 여백 축소 */
    }

    /* 2. 메인 텍스트 크기 축소 (가장 중요!) */
    .text-box {
        font-size: 1.4rem; /* 기존보다 작게 조절 (약 20-22px) */
        word-break: keep-all; /* 단어 단위로 줄바꿈하여 가독성 향상 */
        line-height: 1.4;
    }

    /* 3. 섹션별 텍스트 세부 조정 */
    .visual-02 .text-box {
        font-size: 1.3rem; /* 두 번째 섹션은 내용이 많으므로 조금 더 작게 */
    }

    .sub-text {
        font-size: 0.9rem; /* "전국 85개..." 부분 크기 축소 */
        margin-top: 8px;
    }

    /* 4. 중앙 로고 및 포포린 로고 크기 조절 */
    .logo-section {
        padding: 50px 0;
    }
    .logo-section img {
        width: 150px;
    }
    .foforin-logo {
        width: 100px;
    }

    /* 5. 푸터 텍스트 정렬 */
    footer {
        padding: 40px 25px;
        font-size: 0.85rem;
    }
}
