:root {
    /* =========================================
       [RESTORED] 프리미엄 네이비 & 골드 테마
       ========================================= */

    /* 메인 컬러: 프리미엄 네이비 */
    --primary: #001F3F;

    /* 텍스트용 흰색 */
    --primary-foreground: #ffffff;

    /* 배경색 1: 쿨 화이트 */
    --secondary: #f8fafc;

    /* 포인트 배경: 골드 틴트 */
    --accent: rgba(212, 175, 55, 0.08);

    /* 기본 배경 및 텍스트 */
    --background: #ffffff;
    --foreground: #1e293b;

    /* 회색 배경 */
    --muted: #F3F4F6;
    --muted-foreground: #6B7280;

    /* 테두리 색상 */
    --border: #E2E8F0;

    /* 카드 색상 */
    --card: #ffffff;

    /* 둥글기 설정 */
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* 폰트 */
    --font-family-body: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

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

html,
body {
    width: 100%;
    overflow-x: hidden;
}

/* 부드러운 스크롤 이동 */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-body);
    color: var(--foreground);
    line-height: 1.6;
    word-break: keep-all;
    padding-top: 70px;
    /* 헤더 고정으로 인한 여백 추가 */
}

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

/* 커스텀 스크롤바 (body-center 통일) */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #002d5c;
}

/* 텍스트 선택 색상 */
::selection {
    background: #D4AF37;
    color: white;
}

::-moz-selection {
    background: #D4AF37;
    color: white;
}

/* Gold 그라데이션 텍스트 유틸리티 */
.text-primary-gradient {
    background: linear-gradient(135deg, #D4AF37 0%, #FCD34D 50%, #D4AF37 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}


ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 메뉴 클릭 시 헤더에 가려지지 않게 여백 */
section {
    scroll-margin-top: 100px;
}

/* =========================================
   레이아웃 & 유틸리티
   ========================================= */
.container {
    max-width: 1280px;
    width: 90%;
    margin: 0 auto;
}

.section {
    padding: 80px 0;
    width: 100%;
}

.bg-muted {
    background-color: var(--muted);
}

.bg-secondary {
    background-color: var(--secondary);
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary);
}

.align-center {
    align-items: center;
}

/* 그리드 */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

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

/* 버튼 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding: 0 24px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 16px;
    transition: all 0.2s;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(0, 31, 63, 0.3);
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-yellow {
    background-color: #FCD34D;
    color: #451a03;
}

.btn-gold {
    background: linear-gradient(135deg, #D4AF37, #FCD34D);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
}

.btn-wide {
    width: 240px;
}

.btn-lg {
    height: 56px;
    font-size: 18px;
}

.btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.justify-center {
    justify-content: center;
}

/* =========================================
   헤더
   ========================================= */
.header {
    height: 70px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 로고 크기 고정 */
.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-badge {
    font-size: 10px;
    font-weight: 700;
    background: var(--primary);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 6px;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    font-weight: 600;
    color: #4B5563;
    font-size: 15px;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    color: #333;
}

.mobile-only-btn {
    display: none;
}

/* [업그레이드] 히어로 섹션: 배경 무빙 효과 */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 800px;
    display: flex;
    align-items: center;
    padding: 80px 0;
    overflow: hidden;
    /* 이미지가 커져도 삐져나오지 않게 */
    background-color: #001F3F;
}

/* 배경 이미지를 가상 요소로 분리하여 애니메이션 적용 */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/bgimg.jpg');
    background-repeat: no-repeat;
    background-position: center right;
    background-size: cover;
    z-index: 0;
    animation: bgZoom 20s infinite alternate;
    /* 20초 동안 천천히 커졌다 작아졌다 */
}

/* 기존 오버레이 유지 */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* 애니메이션 정의 */
@keyframes bgZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }

    /* 1.1배까지 아주 천천히 확대 */
}

.hero-content {
    max-width: 620px;
    position: relative;
    z-index: 5;
    animation: fadeInUpHero 1s ease-out forwards;
}

/* [수정] 히어로 내부 텍스트 크기 및 굵기 조정 */
.hero-content h1 {
    font-size: 40px;
    /* "한 번에 평평해지다" 크기 (작게 수정) */
    line-height: 1.3;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
    color: #ffffff !important;
    font-weight: 800;
    /* 두께를 약간 얇게 하여 위쪽과 대비 */
}

.hero-desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 32px;
}

.trust-msg {
    margin-top: 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8) !important;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* [수정됨] 체크리스트 스타일 분리 */
/* 1. 기본 체크리스트 (카드 등 일반 섹션용 - 어두운 글씨) */
.check-list li {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: flex-start;
    font-size: 15px;
    font-weight: 500;
    color: #334155;
    /* 기본은 어두운 색 */
}

/* 2. 히어로 섹션 전용 체크리스트 (흰색 강제) */
.hero-content .check-list li {
    color: #ffffff !important;
}

/* 아이콘 색상도 분리 */
.icon-primary {
    color: var(--primary);
    font-size: 20px;
    min-width: 20px;
    margin-top: 2px;
}

.hero-content .icon-primary {
    color: #ffffff !important;
    opacity: 0.9;
}

/* 히어로 뱃지 */
.hero-content .badge {
    position: relative;
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(90deg, #ffde73, #FCD34D) !important;
    color: #001F3F !important;
    border-radius: 99px;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.hero-content .badge::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: skewX(-25deg);
    animation: badgeShine 3s infinite;
}

/* [수정] "퀵 복부성형" 텍스트 강조 */
.hero-content h1 .text-primary {
    font-size: 76px !important;
    /* !important를 붙여서 강제로 키움 */
    font-weight: 800 !important;
    display: block;
    /* 줄바꿈 효과 */
    margin-bottom: 5px;
    line-height: 1.1;

    background: linear-gradient(135deg, #e4c151 0%, #F5E0A3 20%, #D4AF37 100%) !important;
    background-size: 200% auto !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    animation: textGradientMove 3s linear infinite !important;
}

/* =========================================
   섹션 공통 스타일
   ========================================= */
.section-header {
    margin-bottom: 50px;
    text-align: center;
}

.section-header h2 {
    font-size: 40px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 16px;
    line-height: 1.3;
    letter-spacing: -1px;
}

.sub-desc {
    color: var(--muted-foreground);
    font-size: 16px;
}

/* 카드 스타일 */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.card-title {
    font-size: 18px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.info-box {
    padding: 24px;
    border-radius: var(--radius-lg);
    margin-top: 32px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding-left: 20px;
}

/* 옵션 카드 */
.card-img-wrap {
    height: 200px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 16px;
    background: #e2e8f0;
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.option-title {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 700;
}

.option-sub {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 12px;
}

/* [수정됨] 카드 내부 작은 체크리스트 색상 복구 */
.check-list.small li {
    font-size: 13px;
    color: var(--muted-foreground);
    /* 회색으로 복구 */
}

.price-tag {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-weight: 700;
    color: #0f172a;
    font-size: 15px;
}

/* 베스트 카드 */
.card.border-primary {
    border: 2px solid var(--primary);
    background: #f8fafc;
}

.best-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 800;
    border-radius: 99px;
    white-space: nowrap;
}

.relative {
    position: relative;
}

/* 테이블 스타일 */
.table-wrapper {
    margin-bottom: 24px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    table-layout: fixed;
}

.comparison-table th,
.comparison-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
    vertical-align: middle;
}

.comparison-table th {
    background: #001F3F;
    font-weight: 700;
    color: #ffffff;
}

.table-caption {
    text-align: right;
    font-size: 12px;
    color: var(--muted-foreground);
    margin-top: 8px;
}

.cta-mid {
    margin-top: 40px;
    text-align: center;
}

.cta-mid p {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

/* 차별점 리스트 */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-item {
    background: white;
    padding: 24px;
    border-radius: var(--radius-lg);
    display: flex;
    gap: 16px;
    align-items: start;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border);
}

.feature-num {
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 800;
    font-size: 18px;
    flex-shrink: 0;
}

/* 배꼽 설명 섹션 */
.subtitle-bold {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.desc-text {
    color: var(--muted-foreground);
    margin-bottom: 32px;
    font-size: 15px;
}

.belly-box {
    background: var(--secondary);
    padding: 24px;
    border-radius: var(--radius-lg);
}

.belly-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    font-size: 14px;
}

.rounded-img {
    border-radius: var(--radius-xl);
    width: 100%;
    object-fit: cover;
}

/* 가로형 와이드 케이스 */
.case-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-bottom: 80px;
}

.case-item {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border: 1px solid var(--border);
}

.case-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.case-image-area {
    width: 50%;
    position: relative;
    overflow: hidden;
    height: 320px;
}

.case-image-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-item:hover .case-image-area img {
    transform: scale(1.05);
}

.case-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 800;
    border-radius: 99px;
    backdrop-filter: blur(4px);
}

.case-text-area {
    width: 50%;
    padding: 40px;
    text-align: left;
}

.case-text-area h3 {
    font-size: 24px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 16px;
}

.case-meta {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.6;
}

.case-meta strong {
    color: var(--primary);
    margin-right: 6px;
}

.divider {
    border: 0;
    height: 1px;
    background: #e2e8f0;
    margin: 20px 0;
}

.case-result {
    font-size: 15px;
    color: #334155;
    line-height: 1.7;
    font-style: italic;
}

.case-item.reverse {
    flex-direction: row-reverse;
}

/* 리뷰 */
.reviews-wrap {
    margin-top: 60px;
}

.review-card {
    padding: 24px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.stars {
    color: #FBBF24;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

/* 프로세스 및 타임라인 */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 40px;
}

.process-step {
    padding: 20px 10px;
    background: var(--muted);
    border-radius: var(--radius-md);
    text-align: center;
}

.step-num {
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 800;
    color: var(--primary);
}

.step-desc {
    font-size: 13px;
    font-weight: 600;
}

.timeline-box {
    padding: 24px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.timeline-title {
    font-size: 18px;
    margin-bottom: 16px;
    font-weight: 700;
}

/* FAQ */
.faq-container {
    max-width: 800px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px;
    background: none;
    border: none;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    color: #1f2937;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: var(--secondary);
}

.faq-content-inner {
    padding: 20px;
    font-size: 15px;
    color: #4b5563;
    line-height: 1.6;
}

/* 상담 신청 폼 */
.consultation-section {
    background-color: #111827;
    color: white;
    padding-bottom: 80px;
}

.consultation-title {
    color: white;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
}

.form-card {
    background: white;
    max-width: 500px;
    margin: 0 auto;
    border-radius: 12px;
    padding: 40px;
    color: #1f2937;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-input {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 16px;
}

.form-buttons {
    display: flex;
    gap: 12px;
}

.btn-submit {
    background-color: var(--primary);
    color: white;
    flex: 1;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    height: 56px;
    font-size: 16px;
}



/* =========================================
   내부 링크 섹션 (Internal Links)
   ========================================= */
.internal-links-section {
    margin-top: 60px;
    padding: 40px 0;
    border-top: 1px solid var(--border);
}

.internal-links-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--foreground);
    text-align: center;
    margin-bottom: 24px;
}

.internal-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.internal-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 12px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: box-shadow .25s ease, transform .25s ease;
}

.internal-link-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
    transform: translateY(-2px);
}

.link-card-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.link-card-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 4px;
}

.link-card-desc {
    font-size: 12px;
    color: var(--muted-foreground);
    line-height: 1.4;
}

.internal-links-resources {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.resource-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity .2s ease;
}

.resource-pill:hover {
    opacity: .85;
}

.resource-pill--blog {
    background: var(--foreground);
    color: #fff;
}

.resource-pill--recovery {
    background: var(--primary);
    color: #fff;
}

.resource-pill--academy {
    background: #fff;
    color: var(--foreground);
    border: 1.5px solid var(--primary);
}

@media (max-width: 768px) {
    .internal-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.footer-info {
    font-size: 13px;
    color: #94a3b8;
    border-top: 1px solid #334155;
    padding-top: 40px;
    margin-top: 60px;
}

/* =========================================
   [반응형] 미디어 쿼리
   ========================================= */
@media (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-content h1 {
        font-size: 40px;
    }
}

@media (max-width: 768px) {

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .section {
        padding: 40px 0;
    }

    .hero-section {
        min-height: 600px;
        background-position: 70% center;
        padding: 60px 0;
    }

    .hero-section::after {
        background-color: rgba(0, 0, 0, 0.5);
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
        margin: 0 auto;
    }

    /* [수정] 모바일에서 메인 타이틀 크기 조정 */
    .hero-content h1 {
        font-size: 37px;
        /* "한 번에 평평해지다" - 작게 */
        word-break: keep-all;
    }

    .hero-content h1 .text-primary {
        font-size: 52px;
        /* "퀵 복부성형" - 크게 */
        margin-bottom: 0px;
    }

    .section-header h2 {
        font-size: 34px;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 24px;
        display: none;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        border-top: 1px solid var(--border);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .desktop-btn {
        display: none;
    }

    .btn-group {
        flex-direction: column;
    }

    .check-list li,
    .trust-msg {
        justify-content: center;
    }

    .comparison-table,
    .comparison-table thead,
    .comparison-table tbody,
    .comparison-table th,
    .comparison-table td,
    .comparison-table tr {
        display: block;
    }

    .comparison-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .comparison-table tr {
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        margin-bottom: 20px;
        background: white;
        overflow: hidden;
    }

    .comparison-table td:first-child {
        background-color: var(--secondary);
        color: var(--primary);
        font-weight: 800;
        text-align: center;
        padding: 12px;
        border-bottom: 1px solid var(--border);
    }

    .comparison-table td:not(:first-child) {
        position: relative;
        padding-left: 50%;
        padding-top: 12px;
        padding-bottom: 12px;
        text-align: right;
        font-size: 14px;
        border-bottom: 1px solid #f1f5f9;
    }

    .comparison-table td:not(:first-child)::before {
        content: attr(data-label);
        position: absolute;
        left: 16px;
        font-weight: 700;
        color: #64748b;
        font-size: 13px;
    }

    .case-item,
    .case-item.reverse {
        flex-direction: column;
    }

    .case-image-area,
    .case-text-area {
        width: 100%;
    }

    .case-image-area {
        height: 240px;
    }

    .case-text-area {
        padding: 24px;
    }
}

/* 애니메이션 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

@keyframes fadeInUpHero {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

@keyframes textGradientMove {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

@keyframes badgeShine {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

/* [추가] 중요 버튼 심장박동 효과 (시선 강탈) */
.btn-primary {
    position: relative;
    overflow: hidden;
    animation: pulseBtn 3s infinite;
    /* 3초마다 쿵-쿵- */
}

@keyframes pulseBtn {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 31, 63, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(0, 31, 63, 0);
    }

    /* 네이비 파동이 퍼짐 */
    100% {
        box-shadow: 0 0 0 0 rgba(0, 31, 63, 0);
    }
}

/* [업그레이드] 프로세스 스텝: 연결되는 느낌 주기 */
.process-step {
    position: relative;
    background: white !important;
    /* 배경을 흰색으로 변경하여 깔끔하게 */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
    transition: transform 0.3s;
    z-index: 1;
}

.process-step:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.step-num {
    background: var(--accent);
    /* 배경색과 어울리는 골드 틴트 */
    width: fit-content;
    margin: 0 auto 10px auto;
    padding: 4px 12px;
    border-radius: 20px;
}

/* PC 화면에서만 화살표 보이기 */
@media (min-width: 769px) {
    .process-step::after {
        content: "→";
        position: absolute;
        right: -20px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 20px;
        color: #cbd5e1;
        z-index: 2;
    }

    /* 마지막 박스엔 화살표 제거 */
    .process-step:last-child::after {
        display: none;
    }
}

/* [업그레이드] 후기 카드: 매거진 스타일 */
.review-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #fdfdfd 100%);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* 배경에 큰 따옴표 장식 넣기 */
.review-card::before {
    content: "“";
    position: absolute;
    top: -20px;
    right: 20px;
    font-size: 120px;
    font-family: serif;
    color: var(--primary);
    opacity: 0.1;
    /* 아주 연하게 */
    z-index: 0;
}

.review-text,
.review-author,
.stars {
    position: relative;
    z-index: 1;
    /* 글씨가 따옴표 위로 오게 */
}

/* =========================================
   [부분 수정] 프로세스 박스 디자인 변경
   (화살표 제거 / 박스 확대 / 글씨 확대)
   ========================================= */

/* 1. 박스들을 담는 틀 간격 넓히기 */
.process-grid {
    gap: 24px !important;
    margin-top: 50px !important;
    margin-bottom: 80px !important;
}

/* 2. 박스 크기 대폭 확대 */
.process-step {
    padding: 50px 20px !important;
    /* 위아래 패딩 늘려서 높이 키움 */
    min-height: 220px !important;
    /* 최소 높이 강제 설정 */
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
}

/* 3. 화살표(→) 완전 제거 */
.process-step::after {
    display: none !important;
    content: none !important;
}

/* 4. 'STEP 1' 라벨 글씨 키우기 */
.step-num {
    font-size: 15px !important;
    padding: 8px 18px !important;
    margin-bottom: 20px !important;
}

/* 5. 설명 텍스트(제목) 글씨 대폭 키우기 */
.step-desc {
    font-size: 20px !important;
    /* 글씨 시원하게 확대 */
    font-weight: 800 !important;
    line-height: 1.5 !important;
    word-break: keep-all !important;
}

/* =========================================
   [모바일 이미지 잘림 해결 패치]
   style.css 파일 맨 아래에 이 내용을 붙여넣으세요
   ========================================= */

@media (max-width: 768px) {

    /* 1. 전후사진(케이스) 이미지: 높이 제한을 풀어서 다 보이게 함 */
    .case-image-area {
        height: auto !important;
        aspect-ratio: 4 / 3;
        /* 모바일에서 보기 좋은 비율 */
    }

    .case-image-area img {
        height: 100%;
        object-fit: cover;
    }

    /* 2. 옵션 카드(리뉴비온 등): 이미지가 꽉 차게 나옴 */
    .card-img-wrap {
        height: auto !important;
        aspect-ratio: 16 / 9;
    }

    /* 3. 맨 위 배너 배경: 인물 중심으로 위치 조정 */
    .hero-section {
        background-position: center top !important;
        min-height: 600px !important;
    }
}

/* style.css 파일 맨 아래에 붙여넣기 */

@media (max-width: 768px) {
    .hero-section::before {
        /* 여기에 모바일용 이미지 파일명을 적어주세요 */
        background-image: url('img/bgimg_m.jpg') !important;

        /* 모바일 이미지는 이미 비율을 맞춰왔을 테니 위치는 중앙으로 */
        background-position: center center !important;
    }
}

/* =========================================
   [NEW] 원장님 소개 섹션 (Premium Profile)
   ========================================= */
.doctor-section {
    background-color: #ffffff;
    /* 깔끔한 흰색 배경 */
    overflow: hidden;
}

.doctor-grid {
    display: flex;
    align-items: center;
    gap: 80px;
    /* 사진과 글 사이 간격 넓게 */
    justify-content: center;
}

/* 사진 영역 스타일 */
.doc-img-area {
    flex: 1;
    max-width: 600px;
    position: relative;
}

/* 사진 프레임: 그림자와 둥근 모서리로 고급스럽게 */
.img-frame {
    width: 100%;
    border-radius: 20px;
    /* 기존 radius 변수보다 조금 더 둥글게 */
    overflow: hidden;
    box-shadow: 20px 20px 0px rgba(212, 175, 55, 0.15);
    /* 우측 하단 골드 그림자 포인트 */
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* [수정] 사진 및 비디오 프레임 스타일 */
.img-frame img,
.img-frame video {
    /* video 태그 추가 */
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
    object-fit: cover;
}

/* [수정] 호버 시 확대 효과 */
.doc-img-area:hover .img-frame img,
.doc-img-area:hover .img-frame video {
    /* video 태그 추가 */
    transform: scale(1.03);
}

/* 텍스트 영역 스타일 */
.doc-text-area {
    flex: 1.2;
}

.doc-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    background: var(--accent);
    padding: 6px 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.doc-title {
    font-size: 32px;
    font-weight: 800;
    /* Pretendard Bold */
    line-height: 1.4;
    color: #111827;
    margin-bottom: 24px;
    word-break: keep-all;
}

.doc-desc {
    font-size: 16px;
    color: #4B5563;
    line-height: 1.8;
    margin-bottom: 40px;
    font-weight: 400;
}

/* 이름 및 약력 박스 */
.doc-profile {
    border-top: 1px solid var(--border);
    padding-top: 30px;
}

.name-box {
    margin-bottom: 20px;
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.name-box .name {
    font-size: 28px;
    font-weight: 800;
    color: #111827;
}

.name-box .position {
    font-size: 16px;
    color: var(--muted-foreground);
    font-weight: 500;
}

.career-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 약력 2단 배열 */
    gap: 10px 20px;
}

.career-list li {
    position: relative;
    padding-left: 12px;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.career-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 4px;
    height: 4px;
    background-color: #D4AF37;
    /* 골드 점 */
    border-radius: 50%;
}

.signature {
    margin-top: 30px;
    font-family: serif;
    /* 영문 서명은 명조 계열로 */
    font-size: 18px;
    color: #ccc;
    font-style: italic;
    letter-spacing: 2px;
}

/* =========================================
   [모바일 반응형] 원장님 섹션
   ========================================= */
@media (max-width: 1024px) {
    .doctor-grid {
        gap: 40px;
    }

    .career-list {
        grid-template-columns: 1fr;
        /* 태블릿에선 1단 */
    }
}

@media (max-width: 768px) {
    .doctor-grid {
        flex-direction: column;
        /* 모바일: 세로 배치 */
        text-align: center;
        /* 텍스트 중앙 정렬 */
    }

    .doc-img-area {
        max-width: 100%;
        /* 사진 크기 조절 */
        margin: 0 auto;
        padding: 0 20px;
        /* 양옆 여백 살짝 줌 */
    }

    .img-frame {
        box-shadow: 10px 10px 0px rgba(212, 175, 55, 0.15);
        /* 그림자 축소 */
    }

    .doc-title {
        font-size: 24px;
        /* 제목 크기 축소 */
        margin-top: 20px;
    }

    .doc-desc {
        text-align: center;
        /* 설명글 중앙 정렬 */
        font-size: 15px;
    }

    .name-box {
        justify-content: center;
        /* 이름 중앙 정렬 */
    }

    .career-list {
        text-align: left;
        /* 약력은 왼쪽 정렬이 읽기 편함 */
        display: inline-block;
        /* 중앙 정렬 속 왼쪽 정렬 */
    }
}

/* [모바일 전후사진 잘림 해결 패치] */
@media (max-width: 768px) {

    /* 1. 이미지 영역의 높이 고정을 풉니다 */
    .case-image-area {
        height: auto !important;
        min-height: auto !important;
        aspect-ratio: auto !important;
        /* 강제 비율 제거 */
    }

    /* 2. 이미지가 너비에 맞춰 알아서 높이를 잡도록 설정 */
    .case-image-area img {
        height: auto !important;
        object-fit: contain !important;
        /* 잘리지 않고 다 들어오게 */
        position: static !important;
        /* 위치 강제 설정 제거 */
    }
}

/* =========================================
   [NEW] 상담 폼 & 퀵바 스타일 (Navy & Gold Theme)
   ========================================= */

/* 상담 카드 */
.consult-card {
    background: white;
    padding: 30px;
    /* 여백 조정 */
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    /* 그림자 더 은은하게 */
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 10;
}

.form-label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1f2937;
    font-size: 15px;
}

.form-input,
.form-select {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    /* 더 둥글게 */
    font-size: 15px;
    background-color: #f8fafc;
    transition: all 0.2s;
    margin-bottom: 20px;
    color: #334155;
    font-family: inherit;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(0, 31, 63, 0.1);
    /* 포커스 링 (Navy) */
}

/* 플레이스홀더 색상 */
.form-input::placeholder {
    color: #94a3b8;
}

.form-input-group {
    display: flex;
    gap: 8px;
}

.form-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
}

.form-checkbox {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    cursor: pointer;
}

.form-checkbox-label {
    font-size: 14px;
    color: #64748b;
    cursor: pointer;
    line-height: 1.4;
    font-weight: 500;
}

.btn-consult-submit {
    width: 100%;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), #002d5c);
    /* 그라데이션 */
    color: white;
    font-weight: 800;
    font-size: 18px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(0, 31, 63, 0.3);
    letter-spacing: -0.5px;
}

.btn-consult-submit:hover {
    opacity: 0.95;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 31, 63, 0.4);
}

/* 카드 내부 연락처 정보 */
.consult-contact-info {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
    /* 흰색 카드 위니까 어두운 색 */
    padding: 10px 16px;
    background: #f1f5f9;
    border-radius: 12px;
    transition: all 0.2s;
}

.contact-link:hover {
    background: #e2e8f0;
    color: #1e293b;
    transform: translateY(-1px);
}

.contact-link iconify-icon {
    font-size: 18px;
    color: var(--primary);
}

/* 퀵바 (Quick Bar) */
.quick-bar {
    position: fixed;
    right: 24px;
    bottom: 40px;
    /* 밑에서 적당히 띄움 */
    z-index: 9990;
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: fadeInRight 1s ease-out;
}

.quick-bar ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quick-bar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    /* 부드러운 사각형 */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    /* 그림자 */
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* 쫀득한 효과 */
    text-decoration: none;
}

.quick-bar a:hover {
    transform: translateY(-5px) scale(1.05);
    /* 살짝 커지며 위로 */
    background: white;
    box-shadow: 0 12px 24px rgba(0, 31, 63, 0.2);
    /* 네이비 그림자 */
    border-color: var(--primary);
}

.quick-bar iconify-icon {
    font-size: 26px;
    color: var(--primary);
    margin-bottom: 4px;
    transition: transform 0.3s;
}

.quick-bar a:hover iconify-icon {
    transform: scale(1.1);
}

.quick-text {
    font-size: 11px;
    font-weight: 700;
    color: #4b5563;
    letter-spacing: -0.5px;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

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

/* 모바일 퀵바 최적화 */
@media (max-width: 768px) {
    .quick-bar {
        bottom: 20px;
        right: 16px;
    }

    .quick-bar a {
        width: 52px;
        height: 52px;
        border-radius: 14px;
    }

    .quick-bar iconify-icon {
        font-size: 20px;
        margin-bottom: 2px;
    }

    .quick-text {
        font-size: 9px;
    }
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background-color: #1ebc57;
    transform: translateY(-2px);
}

.btn-line {
    background-color: #06C755;
    color: white;
    box-shadow: 0 4px 14px rgba(6, 199, 85, 0.3);
}

.btn-line:hover {
    background-color: #05b34c;
    transform: translateY(-2px);
}

/* Language Selector */
.header-actions {
    display: flex;
    align-items: center;
}

.lang-list {
    display: flex;
    gap: 8px;
    margin-left: 20px;
    list-style: none;
}

.lang-item {
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.lang-item:hover,
.lang-item.active {
    color: var(--primary);
    background-color: var(--accent);
}

@media (max-width: 1024px) {
    .lang-list {
        margin-left: 0;
        margin-right: 10px;
    }
}

@media (max-width: 768px) {
    .header-actions {
        display: flex;
    }

    .header-actions .desktop-btn {
        display: none;
    }

    .mobile-menu-btn {
        display: none;
    }
}

/* Language Selector Dropdown */
.lang-dropdown {
    position: relative;
    margin-left: 16px;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #4B5563;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.lang-btn:hover,
.lang-btn.active {
    color: var(--primary);
}

.lang-btn iconify-icon {
    font-size: 24px;
}

.lang-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 8px;
    list-style: none;
    min-width: 160px;
    max-height: 320px;
    overflow-y: auto;
    z-index: 1001;
}

.lang-menu.show {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

.lang-option {
    display: block;
    padding: 8px 12px;
    font-size: 14px;
    color: var(--foreground);
    font-weight: 500;
    border-radius: 4px;
    transition: background 0.2s;
}

.lang-option:hover {
    background-color: var(--muted);
    color: var(--primary);
}

.lang-option.active {
    color: var(--primary);
    font-weight: 700;
    background-color: var(--accent);
}

/* [모바일 타임라인 수정] 마지막 줄 선 제거 및 이중 테두리 정리 */
@media (max-width: 768px) {

    /* 마지막 칸의 밑줄을 강제로 없앰 */
    .comparison-table tr td:last-child {
        border-bottom: 0px none !important;
    }

    /* 타임라인 박스 내부의 불필요한 테두리 제거 (박스 안의 박스 현상 해결) */
    .timeline-box .table-wrapper {
        border: 0px none !important;
        border-radius: 0 !important;
    }
}

/* =========================================
   [모바일 일본어 줄바꿈 패치]
   index_jp.html (lang="ja") 에서만 적용됨
   ========================================= */

@media (max-width: 768px) {

    /* 일본어 페이지에서는 단어 중간에서도 줄바꿈 허용 (글자 잘림 방지) */
    html[lang="ja"] body {
        word-break: break-all !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
    }

    /* 제목 및 중요 텍스트들도 강제 줄바꿈 */
    html[lang="ja"] h1,
    html[lang="ja"] h2,
    html[lang="ja"] h3,
    html[lang="ja"] h4,
    html[lang="ja"] p,
    html[lang="ja"] span,
    html[lang="ja"] li,
    html[lang="ja"] .card-title,
    html[lang="ja"] .hero-content h1,
    html[lang="ja"] .section-header h2 {
        word-break: break-all !important;
        white-space: normal !important;
    }
}

/* =========================================
   [모바일 중국어 줄바꿈 패치]
   index_cn.html (lang="zh-CN") 에서만 적용됨
   ========================================= */

@media (max-width: 768px) {

    /* 중국어 페이지에서는 단어 중간에서도 줄바꿈 허용 */
    html[lang="zh-CN"] body {
        word-break: break-all !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
    }

    /* 제목 및 중요 텍스트들도 강제 줄바꿈 */
    html[lang="zh-CN"] h1,
    html[lang="zh-CN"] h2,
    html[lang="zh-CN"] h3,
    html[lang="zh-CN"] h4,
    html[lang="zh-CN"] p,
    html[lang="zh-CN"] span,
    html[lang="zh-CN"] li,
    html[lang="zh-CN"] .card-title,
    html[lang="zh-CN"] .hero-content h1,
    html[lang="zh-CN"] .section-header h2 {
        word-break: break-all !important;
        white-space: normal !important;
    }
}