@import url('https://fonts.googleapis.com/css2?family=East+Sea+Dokdo&family=Nanum+Myeongjo:wght@400;700&display=swap');
@font-face {
    font-family: 'AREUN_Font'; /* 우리가 이 폰트를 부를 새로운 이름 */
    src: url('fonts/KimjungchulScript-Light.otf') format('opentype'); /* 폰트 파일 경로 */
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'AREUN_Font_2';
    src: url('fonts/KimjungchulGothic-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Nanum Myeongjo', serif; background-color: #1a1a1a; color: #e0e0e0; }
html.has-scroll-smooth { overflow: hidden; }
html.has-scroll-dragging { -webkit-user-select: none; user-select: none; }
.has-scroll-smooth body { overflow: hidden; }

/* Hero Section */
#hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* ✨ 위쪽으로 정렬 */
    padding-top: 25vh; /* ✨ 화면 상단에서 25%만큼 아래로 밀어줌 */
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: url('images/background.jpg'); background-size: cover; background-position: center; z-index: 1; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: url('https://www.transparenttextures.com/patterns/grain.png'); opacity: 0.1; z-index: 2; }
.hero-logo {
    position: absolute;
    top: 30px;
    left: 40px;
    width: 200px; /* ✨ 로고 이미지의 가로 크기 지정 (원하는 크기로 조절 가능) */
    z-index: 5;
}
.hero-text { text-align: center; z-index: 5; color: white; text-shadow: 0px 0px 15px rgba(0, 0, 0, 0.7); }

.scroll-indicator { position: absolute; bottom: 40px; z-index: 5; text-align: center; color: white; font-size: 0.9rem; letter-spacing: 1px; }
.scroll-arrow { margin-top: 8px; font-size: 1.5rem; }
#photo-memory-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; z-index: 3; }
#photo-memory-container img { position: absolute; opacity: 0; border-radius: 8px; box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); object-fit: cover; -webkit-mask-image: radial-gradient(ellipse, white 60%, transparent 85%); mask-image: radial-gradient(ellipse, white 60%, transparent 85%); }
.light-leak-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: radial-gradient(circle at 15% 20%, rgba(255, 180, 120, 0.9) 0%, transparent 40%), radial-gradient(circle at 80% 90%, rgba(255, 150, 100, 0.8) 0%, transparent 50%); mix-blend-mode: screen; pointer-events: none; z-index: 4; opacity: 0.5; }

/* Philosophy Section */
#philosophy-section { padding: 15vh 10vw; background-image: linear-gradient(-45deg, #e8dff5 0%, #f3e6e1 50%, #a7c7e7 100%); color: #4a4a4a; position: relative; z-index: 5; }
.philosophy-container { display: flex; justify-content: space-between; align-items: center; gap: 5vw; }
.philosophy-text { flex-basis: 40%; }
.philosophy-text .philosophy-subheading {
    font-family: 'AREUN_Font', sans-serif; /* 김정철 스크립트체 */
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.philosophy-text .philosophy-body {
    font-family: 'AREUN_Font_2', sans-serif; /* 김정철 고딕체 */
    font-size: 1.2rem;
    line-height: 2; /* 줄 간격을 넓혀서 가독성 확보 */
}
.philosophy-text strong {
    font-weight: 700; /* 폰트를 조금 더 굵게 */
    color: #B4846C;   /* 기존의 악센트 컬러 적용 */
}
.philosophy-text .philosophy-tags {
    list-style: none;
    padding: 0;
    margin: 0;
}

.philosophy-text .philosophy-tags li {
    font-family: sans-serif; /* 태그는 기본 고딕체로 */
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    margin-right: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #777;
}
.philosophy-images { flex-basis: 50%; position: relative; height: 70vh; }
.image-wrapper { position: absolute; overflow: hidden; border-radius: 8px; box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.image-wrapper img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); }
#philosophy-img-1 { width: 60%; height: 70%; top: 0; left: 0; z-index: 2; }
#philosophy-img-2 { width: 45%; height: 55%; top: 45%; left: 55%; z-index: 3; }
#philosophy-img-3 { width: 30%; height: 40%; top: 25%; left: 40%; z-index: 1; }

/* Theme Section */
#theme-section { padding: 15vh 10vw; background-color: #1a1a1a; background-image: url('https://www.transparenttextures.com/patterns/black-linen.png'); }
.section-header { text-align: center; margin-bottom: 8vh; }
.section-header h2 { font-size: 3.5rem; font-weight: 400; color: #e0e0e0; font-family: 'AREUN_Font', sans-serif; }
.theme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.theme-card { background-color: #2b2b2b; border-radius: 8px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.3); opacity: 0; transform: translateY(50px); }
.card-image img { width: 100%; height: 300px; object-fit: cover; display: block; transition: transform 0.4s ease; }
.theme-card:hover .card-image img { transform: scale(1.05); }
.card-content { padding: 25px; }
.card-content h3 { font-size: 1.8rem; margin-bottom: 10px; color: #fff; }
.card-content .keyword { color: #999; font-size: 0.9rem; margin-bottom: 20px; font-family: sans-serif; }
.card-content .quote { font-size: 1rem; line-height: 1.6; color: #ccc; font-style: italic; }
.integrated-testimonial-slider {
    width: 80%;
    margin: 10vh auto 0 auto; /* 위쪽 여백, 좌우 자동, 아래 여백 0 */
    padding: 20px;
    text-align: center;
  
}

.integrated-testimonial-slider .swiper-slide {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.integrated-testimonial-slider .swiper-slide p {
    font-size: 1.2rem;
    color: #999;
    font-style: italic;
    /* opacity, transform 등 애니메이션 속성을 모두 제거했습니다. */
}

/* How It Works Section */
#how-it-works-section {
    padding: 15vh 10vw;
    background-color: #FDF6F0; /* 아이보리 배경 유지 */
    color: #4a4a4a; /* 기본 글자색 어둡게 */
    position: relative;
    z-index: 5;
}
#how-it-works-section .section-header h2 {
    font-family: 'AREUN_Font', serif;
    font-size: 3rem;
    font-weight: 400;
    color: #4a4a4a; /* ✨ 밝은 배경에 보이도록 어두운 색으로 수정 */
}
.steps-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    text-align: center;
    gap: 40px;
    margin-top: 8vh;
}
.step {
    flex-basis: 30%;
    opacity: 0;
    transform: translateY(30px);
}
.step-icon {
    width: 80px;
    height: 80px;
    border: 2px solid #B4846C;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 25px auto;
}
.step-icon i {
    font-size: 2.5rem;
    color: #B4846C;
}
.step-content h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-family: 'AREUN_Font_2', sans-serif; /* ✨ 김정철 고딕체 적용 */
}
.step-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #777;
    font-family: 'AREUN_Font_2', sans-serif; /* ✨ 김정철 고딕체 적용 */
}
#how-it-works-section .cta-content {
    text-align: center;
    margin-top: 15vh;
}
#how-it-works-section .cta-content h2 {
    font-family: 'AREUN_Font', sans-serif; /* ✨ 김정철 고딕체 적용 */
    font-size: 1.5rem;
    margin-bottom: 5vh;
    color: #4a4a4a;
}
#how-it-works-section .button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
}
#how-it-works-section .cta-button {
    display: inline-block;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}
#how-it-works-section .cta-button.primary {
    background-color: #B4846C;
    color: #fff;
}
#how-it-works-section .cta-button.primary:hover {
    background-color: #9d6f5a;
}

/* --- Final Transition Effect --- */
.transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #1a1a1a;
    opacity: 0;
    pointer-events: none;
    z-index: 2; /* z-index 레이어 설정 */
}

/* 섹션 안의 콘텐츠들이 오버레이 위에 오도록 z-index 설정 */
.philosophy-container, 
.theme-grid, 
.steps-container,
.section-header,
#how-it-works-section .cta-content {
    position: relative;
    z-index: 3;
}

/* 섹션을 위한 어두워지는 오버레이 */
.darken-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1a1a1a;
    opacity: 0; /* 처음엔 투명 */
    pointer-events: none;
    z-index: 6; /* 글씨보다는 아래, 배경보다는 위에 */
}

.integrated-testimonial-slider .swiper-button-next,
.integrated-testimonial-slider .swiper-button-prev {
    color: #888;
    top: 50%;
    transform: translateY(-50%) scale(0.6);
}
/* --- New Hero Text Styles --- */
.hero-text .definition-card {
    /* 배경 관련 속성을 모두 제거했습니다 */
    margin-bottom: 30px;
    max-width: 600px;
    text-align: left;
}

.hero-text h2 {
    font-family: 'Nanum Myeongjo', serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7); /* ✨ 텍스트 그림자 추가 */
}

.hero-text .pronunciation {
    font-size: 1rem;
    font-weight: 400;
    color: #ccc;
}

.hero-text .definitions {
    list-style-position: inside; /* 숫자(1, 2)가 안으로 들어오게 */
    padding-left: 5px;
}

.hero-text .definitions li {
    font-family: 'Nanum Myeongjo', serif;
    font-size: 1.3rem;
    line-height: 1.8;
    color: #eee;
    margin-bottom: 10px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7); /* ✨ 텍스트 그림자 추가 */
}

.hero-text .brand-slogan {
    font-family: 'AREUN_Font_2', sans-serif; /* ✨ 깔끔한 고딕체 적용 */
    font-size: 1.4rem;
    font-weight: 500;
    color: #fff;
    letter-spacing: 0.5px;
}

.section-slogan {
    margin-top: 1.5rem; /* 제목과의 간격 */
    font-size: 1.2rem;
    color: #999; /* 너무 튀지 않는 색상 */
    font-style: italic;
    max-width: 700px; /* 가독성을 위해 최대 너비 지정 */
    margin-left: auto; /* 중앙 정렬 */
    margin-right: auto; /* 중앙 정렬 */
}

/* --- Header / Navigation Bar --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 5px 5vw; /* ✨ 높이를 한번 더 줄였습니다. (10px -> 5px) */
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}
.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
}
.header-logo {
    width: 90px; /* ✨ 전체적인 높이에 맞춰 로고 크기 조정 (100px -> 90px) */
}
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 30px;
}
.main-nav a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: color 0.3s ease;
}
.site-header.scrolled .main-nav a {
    color: #5d4037;
}
.main-nav a:hover {
    color: #d4af37;
}
.nav-cta {
    background-color: #d4af37;
    color: #fff !important;
    padding: 6px 16px; /* ✨ 전체적인 높이에 맞춰 버튼 크기 조정 */
    border-radius: 20px;
    font-weight: 700;
}
.nav-cta:hover {
    color: #fff !important;
    opacity: 0.9;
}

/* --- Footer --- */
.site-footer {
    padding: 80px 5vw;
    background-color: #312E2B;
    color: #D4CFC7;
    font-family: 'AREUN_Font_2', sans-serif; /* ✨ 푸터 전체에 폰트 적용 */
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto 50px auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}
.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 700; /* ✨ 제목 굵기 추가 */
}
.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-column ul li {
    margin-bottom: 10px;
}
.footer-column a {
    text-decoration: none;
    color: #D4CFC7;
    font-size: 0.9rem;
}
.footer-column a:hover {
    text-decoration: underline;
}
.footer-bottom {
    text-align: center;
    font-size: 0.8rem;
    color: #a9a299;
    border-top: 1px solid #4a4a4a;
    padding-top: 30px;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-bottom p {
    margin-bottom: 5px;
}