@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap');
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.min.css");

:root {
    --primary-color: #D32F2F;
    /* Red for button/logo accent */
    --secondary-color: #8D6E63;
    /* Brownish for footer/text */
    --accent-green: #C0CA33;
    /* Olive green */
    --bg-beige: #FFFDE7;
    --text-color: #333;
    --footer-bg: #4E4E4E;
    --footer-text: #9E9E9E;
    --pastel-pink: #F8BBD0;
    --pastel-yellow: #FFF9C4;
    --pastel-blue: #BBDEFB;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
}

body {
    background-color: #fff;
    color: var(--text-color);
}

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

ul {
    list-style: none;
}

/* Header */
header {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.top-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 10px 50px;
    font-size: 13px;
    color: #666;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    max-width: 1200px;
    margin: 0 auto;
}

.lang-selector {
    margin-right: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.auth-links a {
    margin-left: 15px;
    color: #333;
}

/* 공통 컨테이너 내부 (너비 제한) */
.container-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
    /* 좌우 여백 */
}

/* 2. Logo Area */
.logo-area {
    padding: 25px 0;
    /* 로고 여백 확보 */
}

.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    /* 심볼과 텍스트 사이 간격 */
    text-decoration: none;
}

.logo-symbol {
    height: 50px;
    /* 심볼 높이 */
    width: auto;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.logo-text {
    height: 35px;
    /* 텍스트 높이 (심볼보다 약간 작게) */
    width: auto;
}

.logo-subtext {
    font-size: 13px;
    /* 작게 */
    color: #757575;
    font-weight: 500;
    letter-spacing: 2px;
    /* 자간 넓게 */
    margin-left: 2px;
    margin-top: -3px;
    /* 이미지와 간격 좁히기 */
}

/* 3. Main Navigation */
.nav-bar {
    padding-bottom: 0;
    /* 메뉴 하단 여백 제거 */
}

.nav-bar nav ul {
    display: flex;
    justify-content: space-between;
    /* 양쪽 끝으로 균등 배치 */
    align-items: center;
    list-style: none;
    font-size: 17px;
    /* 글자 크기 키움 */
    font-weight: 700;
    padding: 15px 0;
}

.nav-bar nav ul li a {
    color: #333;
    text-decoration: none;
    padding: 5px 0;
    display: block;
    transition: color 0.2s;
}

.nav-bar nav ul li a:hover {
    color: #D32F2F;
}

/* Hero Section */
.hero {
    position: relative;
    background-color: var(--bg-beige);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 0 0 32px 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    margin-bottom: 0;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    width: 100%;
}

.hero-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #4E342E;
}

.hero-title span {
    display: block;
    font-size: 48px;
    color: #000;
}

.btn-cta {
    background-color: #D32F2F;
    color: white;
    padding: 12px 40px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 700;
    display: inline-block;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hero-bg-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    max-width: 1200px;
    position: relative;
    z-index: 1;
    margin-bottom: 0px;
}

/* Curve Separator */
.curve-separator {
    background-color: var(--bg-beige);
    height: 50px;
    border-bottom-left-radius: 50% 20px;
    border-bottom-right-radius: 50% 20px;
    margin-bottom: 40px;
}

/* Info Section (Notice, Contact, Review) */
.info-section {
    max-width: 1200px;
    margin: 0 auto 60px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    padding: 0 20px;
}

/* 진료시간 섹션 */
.hours-section {
    background: linear-gradient(135deg, rgba(253,250,242,0.95) 0%, rgba(238,228,205,0.90) 100%);
    border-top: 1px solid #e8dfc8;
    padding: 32px 20px;
    text-align: center;
}
.hours-inner {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.hours-inner .icon { font-size: 28px; color: #D32F2F; }
.hours-inner h4 { font-size: 15px; font-weight: 700; color: #D32F2F; margin-bottom: 6px; }
.hours-inner p { font-size: 13px; color: #555; line-height: 1.7; }

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
}

.section-header h3 {
    font-size: 20px;
    font-weight: 700;
}

.notice-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid #eee;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.gallery-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
}

.gallery-item p {
    font-size: 12px;
    margin-top: 5px;
    color: #666;
    text-align: center;
}

.time-box {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.time-box .icon {
    font-size: 30px;
    color: #D32F2F;
    margin-bottom: 10px;
}

.time-box h4 {
    margin-bottom: 10px;
    color: #D32F2F;
}

.time-box p {
    font-size: 12px;
    color: #555;
    line-height: 1.6;
}



/* ── Section Divider ──────────────────────────────────────────── */
/* 히어로 아래 자연스러운 섹션 구분선 */
.section-divider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 0 40px;
}

/* 양쪽이 투명으로 페이딩되는 그라데이션 가로선 */
.section-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    max-width: 600px;
    height: 1px;
    background: linear-gradient(to right,
            transparent 0%,
            #D8C5B0 25%,
            #D8C5B0 75%,
            transparent 100%);
}

/* 중앙 작은 원형 장식 포인트 */
.section-divider-dot {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #C0A882;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 0 4px #fff, 0 0 0 5.5px #D8C5B0;
}

/* Service Grid */
.service-section {
    max-width: 1200px;
    margin: 0 auto 100px;
    padding: 0 20px;
    text-align: center;
}


.service-header-container {
    margin-bottom: 40px;
}

.service-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.service-title .highlight {
    color: #D32F2F;
    /* 포인트 컬러 (Red) */
}

.service-subtitle {
    font-size: 16px;
    color: #666;
    font-weight: 400;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    position: relative;
    height: 400px;
    /* 세로로 긴 카드 형태 */
    border-radius: 20px;
    overflow: hidden;
    background-color: #f5f5f5;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

/* 스크롤 애니메이션 Keyframes */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 초기 숨김 상태들 */
.hidden-card {
    opacity: 0;
}

.hidden-left {
    opacity: 0;
    /* transform: translateX(-50px);  <- JS로 클래스 토글시 깜빡임 방지위해 opacity만 0 */
}

.hidden-right {
    opacity: 0;
}

/* 애니메이션 실행 클래스 */
.animate-fade-up {
    animation: fadeUp 0.8s ease-out forwards;
}

.animate-slide-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slide-right {
    animation: slideInRight 0.8s ease-out forwards;
}

.card-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 그라데이션 오버레이가 필요하다면 추가 */
}

.service-card h3 {
    position: absolute;
    bottom: 30px;
    left: 20px;
    font-size: 24px;
    font-weight: 700;
    color: #333;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    /* 텍스트 가독성을 위해 */
    margin: 0;
}

.card-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: #C0CA33;
    /* 연두색 포인트 */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 18px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* 마지막 카드 - 그라데이션 */
.gradient-card {
    background: linear-gradient(135deg, #e0e0e0 0%, #9e9e9e 100%);
}

/* Location Section */
.location-section {
    max-width: 1000px;
    margin: 0 auto 80px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.map-placeholder {
    width: 60%;
    background-color: #f0f0f0;
    position: relative;
    height: 400px;
}

.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.location-info {
    width: 40%;
    padding: 40px 30px;
}

.location-info h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
}

.location-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.location-info .phone {
    font-size: 24px;
    color: #8D6E63;
    font-weight: 700;
    margin: 20px 0;
    display: block;
}

/* Bottom Cards (Before Footer) */
.bottom-cards {
    max-width: 1200px;
    margin: 0 auto 60px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.bottom-card {
    height: 250px;
    background-color: #A1887F;
    border-radius: 4px;
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 40px 0;
    font-size: 13px;
}

.footer-nav {
    border-bottom: 1px solid #666;
    padding-bottom: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.footer-nav a {
    margin: 0 15px;
    color: #ddd;
}

.footer-content {
    text-align: center;
    line-height: 1.8;
}