/* [1] 기본 설정 및 여백 방지 최종 방어선 */
html { scroll-behavior: smooth; }
* { margin: 0; padding: 0; box-sizing: border-box; max-width: 100%; } /* 모든 요소의 폭을 100%로 제한 */

body { 
    font-family: 'Noto Sans KR', sans-serif; 
    line-height: 1.6; 
    color: #444; 
    word-break: keep-all; 
    overflow-x: hidden; /* 가로 스크롤 방지 */
    width: 100%;
}
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; width: 100%; }
a { text-decoration: none; transition: 0.3s; color: inherit; }
ul { list-style: none; }

/* 헤더 & 로고 */
header { background: #fff; border-bottom: 2px solid #002c5f; padding: 15px 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.1); width: 100%; }
header .container { display: flex; justify-content: space-between; align-items: center; }
header h1 { font-size: 1.3rem; font-weight: 700; flex-shrink: 0; }
.logo-link { display: flex; align-items: center; gap: 10px; }
.header-logo { height: 35px; width: auto; object-fit: contain; }
header nav { margin-left: 10px; }
header nav ul { display: flex; align-items: center; }
header nav ul li { margin-left: 20px; font-weight: 500; white-space: nowrap; }
header nav ul li a:hover { color: #d4af37; }

/* Hero 섹션 */
.hero { background: url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover; height: 600px; color: #fff; text-align: center; }
.hero-overlay { background: rgba(0, 15, 45, 0.65); height: 100%; display: flex; align-items: center; }
.hero h2 { font-size: 2.8rem; margin-bottom: 25px; font-weight: 700; text-shadow: 2px 2px 10px rgba(0,0,0,0.4); line-height: 1.3; }
.hero p { font-size: 1.3rem; margin-bottom: 35px; padding: 0 10px; line-height: 1.5; font-weight: 300; }
.hero p strong { color: #d4af37; font-weight: 700; }

/* 공통 버튼 스타일 */
.btn-main, .btn-kakao-main { 
    display: inline-block; 
    border-radius: 8px; 
    font-weight: bold; 
    font-size: 1.1rem; 
    transition: 0.3s; 
    text-align: center; 
    line-height: 1.3; 
    cursor: pointer; 
    border: none;
}
.btn-subtext { font-size: 0.9rem; font-weight: 400; opacity: 0.9; display: block; margin-top: 3px; }
.btn-main { background: #28a745; color: #fff; }
.btn-main:hover { background: #218838; transform: translateY(-3px); }
.btn-kakao-main { background: #fee500; color: #3c1e1e; }
.btn-kakao-main:hover { background: #fada00; transform: translateY(-3px); }

.hero-btns { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }
.hero-btn { min-width: 220px; padding: 15px 30px; }

/* 섹션 타이틀 */
.section-title { font-size: 2.2rem; margin-bottom: 50px; color: #002c5f; text-align: center; position: relative; padding-bottom: 15px; }
.section-title::after { content: ''; width: 45px; height: 3px; background: #d4af37; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); }

/* 인사말 */
.about { padding: 80px 0; background: #fff; }
.about-content { max-width: 850px; margin: 0 auto; }
.greeting-text .main-greeting { font-size: 1.4rem; font-weight: 700; color: #002c5f; text-align: center; margin-bottom: 30px; }
.greeting-text .unified-paragraph { font-size: 1.1rem; line-height: 1.9; margin-bottom: 20px; text-align: left; word-break: keep-all; }
.signature { text-align: right; margin-top: 40px; padding-top: 25px; border-top: 1px solid #eee; }
.signature span { display: block; margin-bottom: 5px; }
.name-wrap { white-space: nowrap; display: inline-block; font-size: 1.8rem; color: #002c5f; letter-spacing: 4px; font-weight: 700; }

/* 주요 업무 */
.services { padding: 100px 0; background: #f9f9fb; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service-item { background: #fff; padding: 40px 30px; border-radius: 12px; box-shadow: 0 8px 25px rgba(0,0,0,0.06); text-align: center; transition: 0.3s ease; border-top: 4px solid transparent; }
.service-item:hover { transform: translateY(-10px); border-top: 4px solid #002c5f; box-shadow: 0 15px 35px rgba(0,0,0,0.12); }
.service-item .icon { font-size: 3rem; margin-bottom: 25px; display: block; }

/* 디지털 명함 */
.location { padding: 100px 0; background: #fff; }
.location-container { display: flex; gap: 40px; align-items: stretch; }
.biz-card-area { flex: 1.5; display: flex; align-items: center; }
.biz-card { 
    width: 100%; 
    background: #002c5f; 
    color: #fff; 
    border-radius: 15px; 
    display: flex; 
    overflow: hidden; 
    box-shadow: 0 10px 30px rgba(0, 44, 95, 0.2);
    min-height: 320px;
}
.card-left { 
    flex: 1; 
    background: #fff; 
    color: #002c5f; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    padding: 30px;
    border-right: 1px solid #eee;
}
.card-logo { width: 80px; margin-bottom: 15px; }
.card-company { display: block; font-size: 0.9rem; font-weight: 500; color: #666; margin-bottom: 5px; }
.card-identity h4 { font-size: 1.8rem; margin-bottom: 3px; letter-spacing: 2px; font-weight: 700; }
.card-job { font-size: 0.95rem; color: #d4af37; font-weight: 700; }

.card-right { 
    flex: 1.8; 
    padding: 40px; 
    display: flex; 
    flex-direction: column; 
    justify-content: center;
    gap: 30px;
    background: linear-gradient(135deg, #002c5f 0%, #00408a 100%);
}
.specs-title { font-size: 0.85rem; color: #d4af37; margin-bottom: 12px; font-weight: 700; letter-spacing: 1px; }
.card-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.card-specs li { font-size: 1rem; opacity: 0.95; }

.card-contacts { display: flex; flex-direction: column; gap: 8px; }
.card-contacts li { font-size: 1.1rem; font-weight: 400; }
.card-contacts .label { display: inline-block; width: 65px; font-weight: 700; color: #d4af37; }

/* 오른쪽 상담 박스 */
.location-info { flex: 1; display: flex; flex-direction: column; gap: 20px; justify-content: center; }
.info-item { padding: 25px; background: #fdfdfd; border: 1px solid #eee; border-radius: 10px; }
.contact-box { border-left: 5px solid #002c5f; }
.contact-box strong { display: block; font-size: 1.2rem; margin-bottom: 8px; color: #002c5f; }
.btn-desc { font-size: 0.9rem; color: #888; margin-bottom: 15px; }

.contact-btn {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 15px;
    font-size: 1.15rem;
    border-radius: 6px;
    font-weight: 700;
}
.btn-call-text { font-size: 0.9rem; background: rgba(255, 255, 255, 0.2); padding: 2px 10px; border-radius: 4px; margin-left: 5px; font-weight: 400; }

/* 푸터 */
footer { background: #1a1a1a; color: #999; padding: 40px 0; text-align: center; }
footer h3 { color: #fff; margin-bottom: 10px; font-size: 1.3rem; }
.footer-info .footer-line { margin-bottom: 5px; font-size: 0.9rem; color: #888; }
.footer-info .copy { margin-top: 8px; color: #666; font-size: 0.85rem; }

/* 애니메이션 */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-up { opacity: 0; animation: fadeInUp 0.8s ease-out forwards; }
.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }
.delay-3 { animation-delay: 0.9s; }

/* [2] 모바일 여백 완전 차단 수정 (기존 디자인 수치 보존) */
@media (max-width: 992px) {
    .container { overflow: hidden; } /* 컨테이너 밖으로 나가는 것 차단 */
    .service-grid { grid-template-columns: 1fr; } /* 그리드 수동 조정 */
    .location-container { flex-direction: column; }
    .biz-card { flex-direction: column; min-height: auto; }
    .card-left { border-right: none; border-bottom: 1px solid #eee; padding: 30px 20px; }
    .card-right { padding: 30px 20px; }
}

@media (max-width: 768px) { 
    header h1 { font-size: 1.1rem; } 
    .hero h2 { font-size: 1.8rem; } 
    /* Hero 버튼의 min-width가 여백의 주범이므로 모바일에서만 해제 */
    .hero-btn { min-width: 0 !important; width: 100%; max-width: 260px; margin: 0 auto; }
    .card-identity h4 { font-size: 1.6rem; }
    .name-wrap { font-size: 1.5rem; letter-spacing: 2px; } /* 이름이 길어 밀리는 경우 방지 */
}
