/* 기본 리셋 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f0f0f0;
    font-family: 'Helvetica', 'Arial', sans-serif;
    color: #333;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

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

/* 1200px 컨테이너 */
.site-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* --- 상단 탑바 --- */
.top-bar {
    background-color: #000;
    color: #fff;
    padding: 8px 0;
    text-align: center;
    font-size: 10px;
    letter-spacing: 1px;
}
.top-bar .divider {
    margin: 0 10px;
    color: #666;
}

/* --- 헤더 --- */
.main-header {
    background-color: #ff4d4d;
    height: 480px; 
    display: flex;
    justify-content: center;
    align-items: center;    
}

.logo-area img {
    width: 893px; 
    max-width: 90%; 
}

/* --- 메인 콘텐츠 --- */
.content-area {
    padding: 60px 50px;
}

/* --- OUR WORKS 섹션 --- */
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

/* [수정 포인트] 즉각 반응형 처리 */
.section-title .title-img {
    max-width: 543px;   /* 최대 크기 제한 */
    
    /* [핵심] 100% 대신 화면의 절반 정도(50%)만 차지하게 하여, 
       브라우저가 줄어들면 즉시 같이 줄어들도록 설정 */
    width: 50%;        
    
    margin-left: 120px; /* 요청하신 우측 이동 */
    
    /* 부드러운 움직임 추가 (선택사항) */
    transition: width 0.1s linear; 
}

.section-title .title-img img {
    width: 100%; 
}

.section-title .sub-text {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    font-style: italic;
    margin-bottom: 10px; 
    text-align: right; 
}

/* --- 포트폴리오 그리드 --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}

.grid-item {
    text-align: center;
}
.grid-item img {
    width: 100%;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
}
.caption {
    font-size: 14px;
    font-weight: bold;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- AND 섹션 --- */
.and-section {
    margin-top: 60px;
}

/* [수정 포인트] AND 이미지 + 텍스트 그룹 */
.and-content-left {
    text-align: left;
    margin-bottom: 80px; 
    
    max-width: 543px; 
    /* [핵심] 여기도 50%로 설정하여 즉시 반응 */
    width: 50%;      

    margin-left: 120px; /* 요청하신 우측 이동 */
}

.and-img {
    width: 100%; 
    margin-bottom: 30px;
}

.services-text {
    font-size: 18px;
    font-weight: bold;
    line-height: 1.6;
    color: #000;
    text-align: left;
}

/* FOR FARMERS 이미지 */
.for-jeju-center {
    text-align: center;
    display: flex;
    justify-content: center;
    margin-top: 80px;
}

.for-jeju-center img {
    width: 850px; 
    max-width: 100%; 
}


/* --- 푸터 --- */
.main-footer {
    background-color: #000;
    color: #fff;
    padding: 100px 50px 50px 50px; 
    text-align: center;
}

.footer-slogan {
    margin-bottom: 80px;
    display: flex;
    justify-content: center;
}

.footer-slogan img {
    width: 850px; 
    max-width: 100%;
}

/* Family Site 영역 */
.family-site-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    margin-bottom: 40px;
    border-top: 1px solid #333;
    padding-top: 60px;
}

.famsite-label {
    width: 250px; 
    opacity: 0.5;
}

.footer-logos {
    display: flex;
    gap: 40px; 
}

.footer-logos img {
    height: 100px; 
    width: auto;
}

.copyright {
    font-size: 10px;
    color: #666;
    margin-top: 40px;
}


/* --- 반응형 (모바일/태블릿) --- */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content-area, .main-footer {
        padding: 40px 20px;
    }
    
    /* 모바일에서는 여백 제거하고 꽉 차게 복귀 */
    .section-title .title-img,
    .and-content-left {
        margin-left: 0; 
        width: 100%; /* 모바일에서는 다시 꽉 차게 */
        max-width: 100%;
    }

    .section-title {
        flex-direction: column;
        align-items: flex-start;
    }
    .section-title .sub-text {
        margin-top: 10px;
        align-self: flex-start; 
        text-align: left;
    }

    .family-site-area {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .services-text {
        font-size: 14px;
    }
}