/* 1. 기본 설정 및 프리텐다드 폰트 적용 */
:root {
    --bg-color: #ffffff;
    --text-main: #111111;
    --text-sub: #555555;
    --accent-color: #000000;
    --line-color: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-color);
    line-height: 1.6;
    word-break: keep-all;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 2. 헤더 스타일 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}
.logo span { opacity: 0.5; }

.nav-menu ul {
    display: flex;
    gap: 40px;
}

.nav-menu a {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 0; width: 0; height: 1px;
    background: var(--text-main);
    transition: 0.3s;
}

.nav-menu a:hover::after { width: 100%; }

/* 햄버거 메뉴 (PC 숨김) */
.hamburger { display: none; cursor: pointer; }

/* 3. 히어로 섹션 */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.hero-bg {
    width: 100%;
    height: 100%;
}

.hero-bg img {
    animation: zoomOut 20s infinite alternate; /* 천천히 움직이는 효과 */
}

@keyframes zoomOut {
    from { transform: scale(1.1); }
    to { transform: scale(1); }
}

.hero-text {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    width: 90%;
}

.hero-text h1 {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hero-text p {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
}

/* 4. 공통 레이아웃 */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 40px;
}

/* 5. Philosophy 섹션 */
.philosophy {
    background-color: #fff;
}

.text-group {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
}

.text-group h2 {
    font-size: 3.5rem;
    line-height: 1.2;
    flex: 1;
}

.description {
    flex: 1;
    color: var(--text-sub);
    font-size: 1.1rem;
    margin-top: 20px;
}

.description p { margin-bottom: 20px; }

/* 6. Collection (Grid Gallery) */
.collection {
    background-color: #f9f9f9;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 20px;
}

.section-header h3 { font-size: 2.5rem; }
.view-all { font-size: 0.9rem; text-decoration: underline; }

.grid-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.grid-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.grid-item img {
    transition: transform 0.6s ease;
}

.grid-item:hover img { transform: scale(1.05); }

/* 비대칭 그리드 연출 */
.item-1 { grid-column: 1 / 2; aspect-ratio: 4/3; }
.item-2 { grid-column: 2 / 3; aspect-ratio: 1/1; }
.item-3 { grid-column: 1 / 3; aspect-ratio: 21/9; margin-top: 30px; }

.caption {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}

.caption h4 { font-weight: 600; }
.caption span { color: #888; font-size: 0.8rem; text-transform: uppercase; }

/* 7. Journal 섹션 */
.journal h3 {
    font-size: 2.5rem;
    margin-bottom: 60px;
    text-align: center;
}

.journal-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.journal-item:hover h4 { color: #555; }

.journal-img {
    aspect-ratio: 3/2;
    margin-bottom: 20px;
    overflow: hidden;
}

.journal-img img { transition: 0.4s; }
.journal-item:hover .journal-img img { transform: scale(1.05); }

.journal-content .date {
    display: block;
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 10px;
}

.journal-content h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.journal-content p {
    font-size: 0.95rem;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 8. CTA 섹션 */
.cta-section {
    background-color: #111;
    color: #fff;
    padding: 150px 40px;
    text-align: center;
}

.cta-content h2 {
    font-size: 4rem;
    margin-bottom: 30px;
    line-height: 1.1;
}

.cta-content p {
    font-size: 1.2rem;
    color: #aaa;
    margin-bottom: 50px;
}

.btn-primary {
    display: inline-block;
    padding: 20px 50px;
    border: 1px solid #fff;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    transition: 0.3s;
}

.btn-primary:hover {
    background: #fff;
    color: #000;
}

/* 9. 푸터 */
footer {
    padding: 80px 40px;
    background: #f4f4f4;
    border-top: 1px solid #e0e0e0;
    font-size: 0.9rem;
    color: #555;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-info strong { display: block; margin-bottom: 10px; color: #111; font-size: 1.1rem; }
.footer-sns a { margin-right: 20px; text-decoration: underline; }

/* 10. 반응형 (모바일) */
@media (max-width: 768px) {
    .header-container { padding: 15px 20px; }
    
    /* 햄버거 메뉴 활성화 */
    .hamburger {
        display: block;
        width: 30px;
        height: 20px;
        position: relative;
        z-index: 1001;
    }
    
    .hamburger span {
        display: block;
        width: 100%;
        height: 2px;
        background: #111;
        position: absolute;
        transition: 0.3s;
    }
    
    .hamburger span:nth-child(1) { top: 0; }
    .hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
    .hamburger span:nth-child(3) { bottom: 0; }

    /* 햄버거 클릭 시 애니메이션 */
    .hamburger.active span:nth-child(1) { top: 50%; transform: rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { bottom: 50%; transform: rotate(-45deg); }

    /* 모바일 네비게이션 */
    .nav-menu {
        position: fixed;
        top: 0; right: -100%;
        width: 100%; height: 100vh;
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: 0.4s ease;
    }
    
    .nav-menu.active { right: 0; }
    .nav-menu ul { flex-direction: column; text-align: center; gap: 30px; }
    .nav-menu a { font-size: 1.5rem; color: #111; }

    /* 모바일 폰트 및 레이아웃 조정 */
    .hero-text h1 { font-size: 3rem; }
    .hero-text p { font-size: 1rem; width: 100%; }
    
    .container { padding: 80px 20px; }
    
    .text-group { flex-direction: column; gap: 30px; }
    .text-group h2 { font-size: 2.5rem; }
    
    .grid-gallery { grid-template-columns: 1fr; }
    .item-1, .item-2, .item-3 { grid-column: 1 / -1; aspect-ratio: 3/2; margin-top: 0; }
    
    .journal-list { grid-template-columns: 1fr; }
    
    .cta-content h2 { font-size: 2.5rem; }
    .footer-container { flex-direction: column; text-align: center; align-items: center; }
}