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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 헤더 */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 20px;
}

.logo h1 {
    font-size: 1.8rem;
    color: #333;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #4A90E2;
}

/* 히어로 섹션 */
.hero {
    text-align: center;
    padding: 8rem 20px;
    background-color: #f8f9fa;
}

.hero h2 {
    font-size: 3.5rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.hero .subtitle {
    font-size: 1.1rem;
    color: #999;
}

/* 서비스 섹션 */
.services {
    padding: 6rem 20px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.service-card {
    text-align: center;
    padding: 3rem 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.service-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.service-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

/* 버튼 */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: #4A90E2;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-weight: 500;
}

.btn:hover {
    background-color: #357ABD;
}

.btn-secondary {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: transparent;
    color: #4A90E2;
    text-decoration: none;
    border: 2px solid #4A90E2;
    border-radius: 5px;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-secondary:hover {
    background-color: #4A90E2;
    color: #fff;
}

/* 회사 소개 미리보기 */
.about-preview {
    text-align: center;
    padding: 6rem 20px;
    background-color: #f8f9fa;
}

.about-preview h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1.5rem;
}

.about-preview p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 푸터 */
footer {
    background-color: #333;
    color: #fff;
    padding: 3rem 20px 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
    color: #ccc;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #4A90E2;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    color: #999;
}

/* 페이지 공통 스타일 */
.page-header {
    text-align: center;
    padding: 5rem 20px 3rem;
    background-color: #f8f9fa;
}

.page-header h1 {
    font-size: 3rem;
    color: #333;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    color: #666;
}

.content-section {
    padding: 4rem 20px;
    max-width: 900px;
    margin: 0 auto;
}

.content-section h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1.5rem;
    margin-top: 3rem;
}

.content-section h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.content-section p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.content-section ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.content-section li {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 0.5rem;
}

/* 연락처 폼 */
.contact-form {
    max-width: 600px;
    margin: 3rem auto;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* 이미지 갤러리 스타일 */
.gallery-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.gallery-image:hover {
    transform: scale(1.05);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }

    /* 모바일에서 화살표 숨기기 */
    div[style*="display: flex; align-items: center; justify-content: center"] {
        display: none !important;
    }

    /* 모바일 테이블 스크롤 */
    table {
        font-size: 0.9rem;
    }
}
