@charset "UTF-8";

/* ========================================
   Main Page Styles - tongdal
   ======================================== */

/* ========================================
   Main Visual
   ======================================== */
.main-visual {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 900px;
    overflow: hidden;
}

.main-visual .swiper,
.main-visual .swiper-wrapper,
.main-visual .swiper-slide {
    width: 100%;
    height: 100%;
}

/* ========================================
   Main Visual Animations
   ======================================== */
@keyframes visualBgZoom {
    from { transform: scale(1.2); }
    to   { transform: scale(1); }
}

@keyframes visualFadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes visualFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.visual-slide {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* 배경 줌: .visual-bg 별도 div에 애니메이션 적용 */
.visual-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.visual-slide.is-active .visual-bg {
    animation: visualBgZoom 5500ms ease forwards;
}

/* 텍스트 요소 기본: 숨김 */
.visual-title,
.visual-desc,
.visual-more-btn {
    opacity: 0;
}

/* active 슬라이드에서 순차 애니메이션 */
.visual-slide.is-active .visual-title {
    animation: visualFadeInUp 0.7s ease forwards;
    animation-delay: 0.1s;
}

.visual-slide.is-active .visual-desc {
    animation: visualFadeInUp 0.7s ease forwards;
    animation-delay: 0.4s;
}

.visual-slide.is-active .visual-more-btn {
    animation: visualFadeIn 0.7s ease forwards;
    animation-delay: 0.7s;
}

/* bg(0) → inner(1) */
.visual-slide-inner {
    z-index: 1;
}

/* 슬라이드 내부: 좌하단 텍스트 배치 */
.visual-slide-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 100%;
    max-width: calc(var(--inner-max) + var(--inner-pad) * 2);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--inner-pad) 240px;
}

.visual-content {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.visual-title {
    font-family: 'Noto Serif KR', serif;
    font-size: 60px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    letter-spacing: -0.02em;
}

.visual-desc {
    font-family: 'Noto Serif KR', sans-serif;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.visual-desc strong {
    font-weight: 700;
    color: #fff;
}

/* 자세히 보기 버튼 */
.visual-more-btn {
    display: flex;
    align-items: center;
    gap: 30px;
    text-decoration: none;
    flex-shrink: 0;
    margin-left: 40px;
}

.visual-more-text {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

.visual-more-num {
    position: relative;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.visual-more-num-circle {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    display: block;
}

.visual-more-num-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

/* ========================================
   Visual Bottom : 타임라인 (단일 바, inner 안)
   ======================================== */
.visual-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding-bottom: 80px;
}

.visual-bottom .inner {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.visual-timeline {
    display: flex;
    align-items: center;
    gap: 32px;
    padding-bottom: 16px;
}

.visual-timeline-item {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    white-space: nowrap;
    transition: color 0.3s;
}

.visual-timeline-item.active {
    color: #fff;
}

.visual-timeline-item:hover:not(.active) {
    color: rgba(255, 255, 255, 0.75);
}

/* 단일 프로그레스 바 */
.visual-timeline-bar-wrap {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.25);
    position: relative;
    overflow: hidden;
    border-radius: 1px;
}

.visual-timeline-bar {
    height: 100%;
    background: #fff;
    width: 0%;
}

/* ========================================
   Section Title (공통)
   ======================================== */
.sec-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}

.sec-subtitle {
    font-family: 'Noto Serif KR', serif;
    font-size: 20px;
    font-weight: 400;
    color: #840028;
    line-height: 1;
}

.sec-heading {
    font-family: 'Noto Serif KR', serif;
    font-size: 60px;
    font-weight: 700;
    color: #221E1F;
    line-height: 1;
    text-align: center;
}

/* ========================================
   Section 02 : 주요 진료 프로그램
   ======================================== */
@keyframes programDescFadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.sec-program {
    padding: 160px 0;
}

.sec-program .inner {
    max-width: calc(var(--inner-max-program) + var(--inner-pad) * 2);
}

.program-cards {
    display: flex;
    gap: 20px;
}

.program-card {
    position: relative;
    flex: 1;
    height: 460px;
    border-radius: 30px;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
}

.program-card[data-aos].aos-animate {
    transition: flex 0.5s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s ease, transform 0.4s ease, opacity 0.4s ease !important;
}

.program-card:not([data-aos]),
.program-card:not(.aos-animate) {
    transition: flex 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 기본: 흑백 */
.program-card-img {
    position: absolute;
    inset: 0;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.program-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 호버/활성: 컬러 복원 + 카드 확장 */
.program-card:hover .program-card-img,
.program-card--active .program-card-img {
    filter: grayscale(0%);
}

.program-card:hover,
.program-card--active {
    flex: 1.67;
}

/* 오버레이 */
.program-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(34, 30, 31, 0) 40%, rgba(34, 30, 31, 0.8) 90%);
    transition: background 0.5s ease;
}

.program-card:hover .program-card-overlay,
.program-card--active .program-card-overlay {
    background: linear-gradient(180deg, rgba(34, 30, 31, 0) 40%, rgba(34, 30, 31, 0.8) 90%);
}

/* 카드 텍스트 */
.program-card-text {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    z-index: 1;
}

.program-card-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.program-card-en {
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #F7941C;
    line-height: 1;
}

.program-card-ko {
    font-family: 'Noto Serif KR', serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

/* desc: 기본 숨김 */
.program-card-desc {
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #fff;
    line-height: 1;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0s, transform 0s;
}

/* 호버/활성: desc fadeup */
.program-card:hover .program-card-desc,
.program-card--active .program-card-desc {
    animation: programDescFadeUp 0.4s ease 0.15s forwards;
}

/* program-card-en: 기본 흰색 → 호버/활성 오렌지 */
.program-card-en {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.4s ease;
}

.program-card:hover .program-card-en,
.program-card--active .program-card-en {
    color: #F7941C;
}

/* ========================================
   Section 03 : About Tongdal Clinic
   ======================================== */
#secAbout {
    position: relative;
    background: #221E1F;
    overflow: hidden;
}

/* --- 인트로 (일반 플로우, 텍스트 + 이미지 카드) --- */
.sa-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(110px, 9vw, 160px) 0 clamp(28px, 2.8vw, 40px);
}

.sa-intro .inner {
    display: flex;
    justify-content: center;
    width: 100%;
}

.sa-intro-text {
    display: flex;
    flex-direction: column;
    width: min(100%, 800px);
    max-width: none;
    margin: 0 auto;
}

.sa-intro-h2 {
    font-family: 'Noto Serif KR', serif;
    font-size: clamp(44px, 4.2vw, 64px);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-top: 40px;
  	margin-bottom: 50px;
}

.sa-intro-lead {
    font-family: 'Pretendard', sans-serif;
    font-size: clamp(16px, 1.4vw, 20px);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

/* --- Features 핀 영역 --- */
.sa-features {
    position: relative;
}

.sa-motion {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: visible;
}

/* bg 공통 */
.sa-bg {
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    will-change: transform, clip-path;
}

.sa-img {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate3d(-50%, 0, 0);
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    backface-visibility: hidden;
    will-change: width, height, transform, clip-path;
}

.sa-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.18);
}

.sa-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    will-change: transform, clip-path;
}

.sa-bg1 { z-index: 1; }
.sa-bg2 { z-index: 2; }

/* feature 공통 */
.sa-feature {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    overflow: hidden;
    min-height: 100vh;
    z-index: 3;
}

.sa-content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100vh;
    padding: 0;
    color: #fff;
}

/* 타이틀 reveal: strong overflow:hidden, span translateY */
.sa-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
    overflow: hidden;
    width: 100%;
    max-width: none;
    margin: 0;
    padding-top: 160px;
}

.sa-overline {
    display: inline-flex;
    align-items: center;
    font-family: 'Noto Serif KR', serif;
    font-size: clamp(18px, 1.5vw, 24px);
    font-weight: 400;
    color: #F7941C;
    line-height: 1;
}

.sa-title strong {
    display: block;
    overflow: hidden;
    line-height: 1.2;
}

.sa-title strong span {
    display: block;
    font-family: 'Noto Serif KR', serif;
    font-size: clamp(40px, 5.4vw, 74px);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #fff;
    line-height: 1.1;
}

@supports (text-box: trim-both cap alphabetic) {
    #secAbout .sa-title,
    #secAbout .sa-overline,
    #secAbout .sa-title strong,
    #secAbout .sa-title strong span,
    #secAbout .sa-sub {
        text-box: normal;
    }
}

/* desc: 우하단 */
.sa-desc {
    padding-bottom: 120px;
    margin-left: auto;
    width: min(100%, 470px);
}

.sa-desc-inner {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 100%;
}

.sa-sub {
    font-family: 'Noto Serif KR', serif;
    font-size: clamp(28px, 2.7vw, 40px);
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
    margin: 0;
}

.sa-excerpt {
    font-family: 'Pretendard', sans-serif;
    font-size: clamp(16px, 1.35vw, 20px);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.7;
    letter-spacing: -0.02em;
    margin: 0;
}

.sa-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.sa-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
    min-height: 52px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    color: #fff;
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.sa-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: #fff;
    transform: translateY(-2px);
}

/* 스크롤 높이 프레임 (래퍼런스 원본 비율) */
.sa-frames {
    padding-bottom: 100vh;
}

.sa-f1-content { height: 100vh; }
.sa-f2-bg-show { height: 75vh; }
.sa-f2-content { height: 100vh; }

/* ========================================
   Section 04 : 진료 기준 (scroll sticky)
   ======================================== */
.sec-care {
    position: relative;
}

/* 좌우 레이아웃 래퍼 */
.care-layout {
    display: flex;
    align-items: flex-start;
    min-height: 100vh;
}

/* 좌측: sticky */
.care-left {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    width: 50%;
    z-index: 2;
}

.care-left-inner {
    padding-left: max(var(--inner-pad), calc((100vw - calc(var(--inner-max) + var(--inner-pad) * 2)) / 2 + var(--inner-pad)));
    padding-right: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 550px;
    width: 100%;
}

.care-header {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.care-heading {
    text-align: left;
    font-size: 52px;
    line-height: 1.2;
}

.care-intro {
    font-family: 'Pretendard', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #221E1F;
    line-height: 1.7;
    text-align: left;
}

/* 진료 항목 — 활성 1개만 노출 */
.care-items {
    position: relative;
}

.care-item {
    display: none;
    flex-direction: column;
    gap: 30px;
}

.care-item.active {
    display: flex;
    animation: careItemFadeUp 0.4s ease forwards;
}

@keyframes careItemFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.care-item-num {
    font-family: 'Pretendard', sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.care-item-text {
    font-family: 'Noto Serif KR', serif;
    font-size: 24px;
    font-weight: 700;
    color: #221E1F;
    line-height: 1.5;
}

/* 우측: inner 넘치는 이미지 — 4개 항목 × 100vh = 전체 스크롤 구간 */
.care-right {
    flex: 1;
    position: relative;
    height: calc(100vh * 4);
}

.care-panels {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.care-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 550px;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.care-panel.active {
    opacity: 1;
}

.care-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 30px 0 0 30px;
}

/* 스크롤 트리거 구간 */
.care-triggers {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
}

.care-trigger {
    flex: 1;
    pointer-events: none;
}

/* ========================================
   Section 05 : 배너
   ======================================== */
.sec-banner {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.banner-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
    text-align: left;
}

.sec-banner .inner {
    height: 100%;
    display: flex;
    align-items: center;
}

.banner-heading {
    font-family: 'Noto Serif KR', serif;
    font-size: 60px;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
}

.banner-desc {
    font-family: 'Pretendard', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #fff;
    line-height: 1.6;
}

/* ========================================
   Section 06 : 유튜브 + 블로그
   ======================================== */
.sec-media {
    background: #221E1F;
    overflow-x: hidden;
}

.media-youtube,
.media-blog {
    padding: 160px 0 0;
}

.media-blog {
    padding-bottom: 160px;
}

.media-intro {
    font-family: 'Pretendard', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #fff;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 40px;
}

/* 더보기 버튼 래퍼: 제목 아래 중앙 */
.media-more-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
}

.media-more {
    display: flex;
    height: 46px;
    padding: 0 20px;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    border: 1px solid #8C9091;
    color: #8C9091;
    font-family: 'Pretendard', sans-serif;
    font-size: 18px;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s;
}

.media-more:hover {
    color: #fff;
    border-color: #fff;
}

/* 유튜브: 화살표는 inner 바깥 40px 간격, 슬라이더는 inner 너비 고정 */
.youtube-slider-wrap {
    display: flex;
    align-items: center;
    gap: 40px;
    width: fit-content;
    margin: 0 auto;
}

.media-arrow {
    display: flex;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    border: 1px solid #8C9091;
    background: none;
    color: #8C9091;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

.media-arrow:hover {
    color: #fff;
    border-color: #fff;
}

.youtube-slider {
    padding: 0;
    max-width: var(--inner-max);
    flex-shrink: 0;
    overflow: hidden;
}

.youtube-swiper .swiper-slide {
    width: calc((var(--inner-max) - 20px * 2) / 3);
}

.youtube-card {
    display: block;
    border-radius: 30px;
    overflow: hidden;
}

.youtube-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 750 / 420;
    object-fit: cover;
    display: block;
}

/* 블로그: 왼쪽 inner 기준 시작, 오른쪽 화면 끝 넘침 */
.blog-slider-wrap {
    position: relative;
    overflow: hidden;
}

.blog-slider {
    display: flex;
    gap: 20px;
    margin-left: calc((100vw - var(--inner-max)) / 2);
    will-change: transform;
}

.blog-slide {
    flex-shrink: 0;
    width: 365px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-decoration: none;
    padding-bottom: 2px;
}

.blog-card-thumb {
    width: 100%;
    height: 240px;
    border-radius: 30px;
    background: #5F6369;
}

.blog-card-title {
    font-family: 'Pretendard', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    line-height: 1;
}

/* ========================================
   Section 07 : 후기
   ======================================== */
.sec-review {
    padding: 160px 0;
}

.review-intro {
    text-align: center;
    font-family: 'Pretendard', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--primary);
    margin-top: 52px;
}

.review-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 52px;
}

.review-tag {
    display: flex;
    height: 46px;
    padding: 0 20px;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    border: 1px solid #8C9091;
    background: transparent;
    color: #8C9091;
    font-family: 'Pretendard', sans-serif;
    font-size: 18px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s;
}

.review-tag:hover {
    border-color: #221E1F;
    color: #221E1F;
}

.review-tag.active {
    background: #221E1F;
    border-color: #221E1F;
    color: #fff;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 20px;
    margin-top: 40px;
}

.review-card-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 30px;
    background: #5F6369;
}

.review-card-body {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: 20px;
}

.review-card-cat {
    flex-shrink: 0;
    display: inline-flex;
    height: 25px;
    padding: 0 24px;
    align-items: center;
    border-radius: 100px;
    border: 1px solid #8C9091;
    color: #8C9091;
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
}

.review-card-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-card-title {
    font-family: 'Noto Serif KR', serif;
    font-size: 20px;
    font-weight: 700;
    color: #221E1F;
    line-height: 1.1;
}

.review-card-author {
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #5F6369;
    line-height: 1;
}

.review-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.review-more-btn {
    display: flex;
    height: 46px;
    padding: 0 20px;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    border: 1px solid #8C9091;
    color: #8C9091;
    font-family: 'Pretendard', sans-serif;
    font-size: 18px;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.3s;
}

.review-more-btn:hover {
    border-color: #221E1F;
    color: #221E1F;
}

/* ========================================
   Responsive (Main)
   ======================================== */
@media (max-width: 1024px) {
    .main-visual {
        min-height: 600px;
        height: 100vh;
    }

    .visual-title {
        font-size: 40px;
    }

    .visual-desc {
        font-size: 16px;
    }

    .visual-slide-inner {
        padding-bottom: 80px;
    }

    .visual-content {
        gap: 40px;
    }

    .visual-bottom {
        padding-bottom: 28px;
    }

    .visual-timeline {
        gap: 20px;
        padding-bottom: 12px;
    }

    .visual-timeline-item {
        font-size: 16px;
    }

    .visual-more-text {
        font-size: 16px;
    }

    .visual-more-num {
        width: 48px;
        height: 48px;
    }

    .visual-more-num-text {
        font-size: 16px;
    }

    .sec-program {
        padding: 100px 0;
    }

    .sec-heading {
        font-size: 40px;
    }

    .sec-title {
        gap: 24px;
        margin-bottom: 40px;
    }

    .program-cards {
        flex-wrap: wrap;
    }

    .program-card {
        flex: 1 1 calc(50% - 10px);
        min-width: calc(50% - 10px);
        height: 360px;
    }

    .program-card:hover {
        flex: 1 1 calc(50% - 10px);
    }

    /* sec-banner */
    .sec-banner {
        height: 300px;
    }

    .banner-heading {
        font-size: 40px;
    }

    .banner-desc {
        font-size: 18px;
    }

    /* sec-care: 태블릿 - 좌우 레이아웃 유지하되 간격 축소 */
    .care-left-inner {
        padding-right: 40px;
        height: 460px;
    }

    .care-heading {
        font-size: 40px;
    }

    .care-intro {
        font-size: 16px;
    }

    .care-item-text {
        font-size: 20px;
    }

    .care-panel {
        height: 460px;
    }

    /* sec-about */
    .sa-intro {
        padding: 88px 0 32px;
    }

    .sa-intro-text {
        gap: 24px;
        max-width: 100%;
    }

    .sa-title {
        max-width: 100%;
    }

    .sa-desc {
        width: 100%;
        margin-left: 0;
    }

    .sa-desc-inner {
        max-width: 100%;
    }

    .sa-features.sa-features--stack .sa-motion {
        position: relative;
        display: grid;
        gap: 24px;
        height: auto;
        overflow: visible;
    }

    .sa-features.sa-features--stack .sa-bg,
    .sa-features.sa-features--stack .sa-feature {
        position: relative;
        inset: auto;
        min-height: 0;
        width: auto;
        height: auto;
    }

    .sa-features.sa-features--stack .sa-bg {
        aspect-ratio: 5 / 3;
        height: auto;
        margin: 0 var(--inner-pad);
        border-radius: 24px;
    }

    .sa-features.sa-features--stack .sa-bg2 {
        margin-top: 12px;
    }

    .sa-features.sa-features--stack .sa-img,
    .sa-features.sa-features--stack .sa-img img {
        width: 100%;
        height: 100%;
    }

    .sa-features.sa-features--stack .sa-content {
        height: auto;
        padding: 0 0 8px;
    }

    .sa-features.sa-features--stack .sa-feature .inner {
        padding-top: 0;
        padding-bottom: 0;
    }

    .sa-features.sa-features--stack .sa-title {
        gap: 14px;
        margin-bottom: 24px;
        padding-top: 40px;
    }

    .sa-features.sa-features--stack .sa-desc {
        padding: 0 0 40px;
    }

    .sa-features.sa-features--stack .sa-frames {
        display: none;
    }

    /* sec-media */
    .media-youtube,
    .media-blog {
        padding: 100px 0 0;
    }

    .media-blog {
        padding-bottom: 100px;
    }

    .media-intro {
        font-size: 16px;
        margin-bottom: 32px;
    }

    .media-more-wrap {
        margin-bottom: 40px;
    }

    /* 유튜브 슬라이더: 화살표는 숨기고 슬라이더만 */
    .youtube-slider-wrap {
        gap: 0;
        width: 100%;
    }

    .media-arrow {
        display: none;
    }

    .youtube-slider {
        padding: 0 var(--inner-pad);
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .youtube-swiper .swiper-slide {
        width: calc((100vw - var(--inner-pad) * 2 - 20px) / 2);
    }

    /* 블로그 슬라이더: margin-left 재계산 */
    .blog-slider {
        margin-left: var(--inner-pad);
    }

    .blog-slide {
        width: 300px;
    }

    .blog-card-thumb {
        height: 200px;
    }

    /* 후기: 4열 → 2열 */
    .sec-review {
        padding: 100px 0;
    }

    .review-intro {
        font-size: 16px;
        margin-top: 32px;
    }

    .review-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 20px;
    }

    /* 진료안내 */
    .sec-consult {
        padding: 100px 0;
    }

    .consult-wrap {
        flex-direction: column;
        gap: 40px;
    }

    .consult-heading {
        font-size: 40px;
    }

    .consult-desc {
        font-size: 18px;
    }

    .consult-info {
        width: 100%;
        padding: 40px;
    }

    .consult-info-title {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .consult-label,
    .consult-value {
        font-size: 20px;
    }

    .consult-row {
        gap: 40px;
    }

    .consult-reserve-btn {
        margin-top: 40px;
    }

    /* 마무리 문구 */
    .sec-closing {
        padding: 100px 0;
    }

    .closing-text {
        font-size: 36px;
    }
}

@media (max-width: 640px) {
    .main-visual {
        min-height: 560px;
    }

    .visual-title {
        font-size: 30px;
    }

    .visual-desc {
        font-size: 15px;
    }

    .visual-slide-inner {
        padding-bottom: 70px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-end;
        gap: 20px;
    }

    .visual-content {
        gap: 24px;
    }

    .visual-more-btn {
        margin-left: 0;
        gap: 16px;
    }

    .visual-more-text {
        font-size: 15px;
    }

    .visual-more-num {
        width: 40px;
        height: 40px;
    }

    .visual-more-num-text {
        font-size: 15px;
    }

    .visual-timeline {
        gap: 16px;
        padding-bottom: 12px;
    }

    .visual-timeline-item {
        font-size: 14px;
    }

    .sec-program {
        padding: 80px 0;
    }

    .sec-heading {
        font-size: 28px;
    }

    .sec-subtitle {
        font-size: 16px;
    }

    .sec-title {
        gap: 20px;
        margin-bottom: 32px;
    }

    .program-cards {
        gap: 12px;
    }

    .program-card {
        flex: 1 1 100%;
        min-width: 100%;
        height: 300px;
        border-radius: 20px;
    }

    .program-card-ko {
        font-size: 20px;
    }

    .program-card-text {
        bottom: 30px;
        gap: 24px;
    }

    /* sec-banner */
    .sec-banner {
        height: 240px;
    }

    .banner-heading {
        font-size: 28px;
    }

    .banner-desc {
        font-size: 15px;
    }

    .banner-text {
        gap: 24px;
    }

    /* sec-care: 모바일 - sticky 해제, 단순 스택 */
    .sec-care {
        padding: 80px 0;
    }

    .care-layout {
        flex-direction: column;
        min-height: 0;
    }

    .care-left {
        position: relative;
        width: 100%;
        height: auto;
        display: block;
    }

    .care-left-inner {
        padding: 0 var(--inner-pad);
        height: auto;
        gap: 32px;
    }

    .care-header {
        gap: 20px;
    }

    .care-heading {
        font-size: 28px;
    }

    .care-intro {
        font-size: 15px;
        margin-bottom: 0;
    }

    .care-item-text {
        font-size: 18px;
    }

    /* 모바일: care-items 모두 표시 */
    .care-item {
        display: flex;
        padding: 20px 0;
        border-bottom: 1px dashed rgba(0, 0, 0, 0.15);
    }

    .care-item.active {
        animation: none;
    }

    .care-item:last-child {
        border-bottom: none;
    }

    /* 모바일: care-right 첫번째 이미지만 표시 */
    .care-right {
        height: auto;
        width: 100%;
        margin-top: 32px;
        padding: 0 var(--inner-pad);
    }

    .care-panels {
        position: relative;
        height: 240px;
    }

    .care-panel {
        height: 240px;
        top: 0;
        transform: none;
        opacity: 0;
    }

    .care-panel.active,
    .care-panel:first-child {
        opacity: 1;
    }

    .care-panel img {
        border-radius: 20px;
    }

    .care-triggers {
        display: none;
    }

    /* sec-about */
    .sa-intro {
        padding: 60px 0 28px;
    }

    .sa-intro-h2 {
        margin-top: 24px;
        margin-bottom: 32px;
    }

    .sa-title {
        gap: 12px;
        padding-top: 24px;
    }

    .sa-overline {
        font-size: 16px;
    }

    .sa-title strong span {
        font-size: clamp(34px, 10vw, 48px);
    }

    .sa-sub {
        font-size: 24px;
    }

    .sa-excerpt {
        font-size: 15px;
        line-height: 1.65;
    }

    .sa-desc {
        margin-left: 0;
        padding-bottom: 24px;
    }

    .sa-desc-inner {
        max-width: 100%;
        gap: 24px;
    }

    .sa-btn {
        width: 100%;
        justify-content: center;
    }

    .sa-features.sa-features--stack .sa-motion {
        gap: 20px;
    }

    .sa-features.sa-features--stack .sa-bg {
        aspect-ratio: 5 / 3;
        height: auto;
        margin: 0 var(--inner-pad);
        border-radius: 20px;
    }

    .sa-features.sa-features--stack .sa-title {
        margin-bottom: 20px;
    }

    /* sec-media */
    .media-youtube,
    .media-blog {
        padding: 80px 0 0;
    }

    .media-blog {
        padding-bottom: 80px;
    }

    .media-intro {
        font-size: 15px;
    }

    /* 유튜브 슬라이더: 1개 보이기 */
    .youtube-swiper .swiper-slide {
        width: calc(100vw - var(--inner-pad) * 2);
    }

    /* 블로그 슬라이더: 축소 */
    .blog-slide {
        width: 240px;
    }

    .blog-card-thumb {
        height: 160px;
    }

    .blog-card-title {
        font-size: 16px;
    }

    .media-more {
        height: 40px;
        font-size: 15px;
    }

    /* 후기: 2열 → 1열 */
    .sec-review {
        padding: 80px 0;
    }

    .review-intro {
        font-size: 15px;
        margin-top: 24px;
    }

    .review-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 12px;
    }

    .review-card-body {
        flex-direction: column;
        gap: 10px;
        margin-top: 16px;
    }

    .review-card-cat {
        font-size: 12px;
        height: 22px;
        padding: 0 14px;
    }

    .review-card-title {
        font-size: 16px;
    }

    .review-card-author {
        font-size: 14px;
    }

    .review-more-btn {
        height: 40px;
        font-size: 15px;
    }

    /* 진료안내 */
    .sec-consult {
        padding: 80px 0;
    }

    .consult-wrap {
        gap: 32px;
    }

    .consult-text {
        gap: 24px;
    }

    .consult-subtitle {
        font-size: 16px;
    }

    .consult-heading {
        font-size: 28px;
    }

    .consult-desc {
        font-size: 15px;
    }

    .consult-info {
        padding: 28px 20px;
        border-radius: 20px;
    }

    .consult-info-title {
        font-size: 22px;
        margin-bottom: 28px;
    }

    .consult-row {
        flex-direction: column;
        gap: 8px;
        padding-bottom: 16px;
    }

    .consult-label {
        font-size: 15px;
        min-width: 0;
    }

    .consult-value {
        font-size: 15px;
    }

    .consult-reserve-btn {
        margin-top: 32px;
        height: 40px;
        font-size: 15px;
    }

    /* 마무리 문구 */
    .sec-closing {
        padding: 80px 0;
    }

    .closing-text {
        font-size: 24px;
    }
}
