@charset "UTF-8";

/* ========================================
   진료 상세페이지 공통 스타일 (clinic.css)
   아토피피부염, 역류성식도염, 다이어트 등
   ======================================== */

/* ----------------------------------------
   Section 01 : 히어로 배너
   ---------------------------------------- */
.clinic-hero {
    position: relative;
    width: 100%;
    height: 800px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.clinic-hero-title {
    font-family: 'Noto Serif KR', serif;
    font-size: 60px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    line-height: 1;
    margin-top: 340px;
}

.clinic-hero-sub {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    margin-top: auto;
    margin-bottom: 60px;
}

.clinic-hero-sub-title {
    font-family: 'Noto Serif KR', serif;
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    line-height: 1;
}

.clinic-hero-sub-desc {
    font-family: 'Noto Serif KR', serif;
    font-size: 20px;
    font-weight: 400;
    color: #fff;
    text-align: center;
    line-height: 1.6;
}

/* ----------------------------------------
   Section 02 : 원인 분석 (Beyond the Surface)
   ---------------------------------------- */
.clinic-cause {
    padding: 160px 0;
    background: #FAF6EB;
}

.clinic-cause .inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
}

.clinic-cause-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 52px;
    max-width: 1107px;
}

.clinic-cause-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.clinic-cause-subtitle {
    font-family: 'Noto Serif KR', serif;
    font-size: 20px;
    font-weight: 700;
    color: #840028;
    line-height: 1;
}

.clinic-cause-heading {
    font-family: 'Noto Serif KR', serif;
    font-size: 60px;
    font-weight: 700;
    color: #221E1F;
    line-height: 1;
    text-align: center;
}

.clinic-cause-desc {
    font-family: 'Pretendard', sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: #221E1F;
    line-height: 1.6;
    text-align: center;
}

/* 원인 카드 4개 */
.cause-cards {
    display: flex;
    gap: 20px;
    width: 100%;
}

.cause-card {
    width: 365px;
    height: 270px;
    position: relative;
    flex: 1;
}

.cause-card-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: #F7941C;
    display: flex;
    /* align-items: center; */
    padding-top: 30px;
    justify-content: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    z-index: 0;
}

.cause-card-num {
    font-family: 'Pretendard', sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: #fff;
}

.cause-card-head {
    width: 100%;
    height: 76px;
    /* padding: 26px 84px; */
    background: #840028;
    border-radius: 30px 30px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 70px;
    left: 0;
    box-sizing: border-box;
    z-index: 0;
}

.cause-card-label {
    font-family: 'Pretendard', sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    line-height: 1;
}

.cause-card-body {
    width: 100%;
    height: 124px;
    /* padding: 24px 72px; */
    border: 2px solid #840028;
    border-radius: 0 0 30px 30px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 146px;
    left: 0;
    box-sizing: border-box;
}

.cause-card-desc {
    font-family: 'Pretendard', sans-serif;
    font-size: 30px;
    font-weight: 400;
    color: #221E1F;
    line-height: 160%;
    text-align: center;
}

/* ----------------------------------------
   Section 03 : 검은 배경 영역
   ---------------------------------------- */
.clinic-dark {
    background: #221E1F;
    padding: 160px 0;
    overflow-x: clip;
}

/* 03-01: 진료 과정 */
.clinic-process {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
    margin-bottom: 160px;
}

.clinic-process-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.clinic-process-subtitle {
    font-family: 'Noto Serif KR', serif;
    font-size: 20px;
    font-weight: 400;
    color: #F7941C;
    line-height: 1;
}

.clinic-process-heading {
    font-family: 'Noto Serif KR', serif;
    font-size: 60px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    text-align: center;
}

.clinic-process-desc {
    font-family: 'Pretendard', sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: #fff;
    line-height: 1.6;
    text-align: center;
    max-width: 900px;
}

.process-steps {
    display: flex;
    justify-content: center;
    gap: 80px;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    width: 356px;
}

.process-step-icon {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    border: 1px solid #F7941C;
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-step-icon svg {
    width: 120px;
    height: 120px;
}

.process-step-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.process-step-num-title {
    display: flex;
    align-items: center;
    gap: 20px;
}

.process-step-num {
    font-family: 'Noto Serif KR', serif;
    font-size: 32px;
    font-weight: 700;
    color: #F7941C;
    line-height: 1;
}

.process-step-divider {
    width: 1px;
    height: 23px;
    background: #fff;
}

.process-step-name {
    font-family: 'Noto Serif KR', serif;
    font-size: 32px;
    font-weight: 700;
    color: #F7941C;
    line-height: 1;
}

.process-step-desc {
    font-family: 'Pretendard', sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: #fff;
    line-height: 1.6;
    text-align: center;
}

/* 03-02: 사례 후기 */
.clinic-review {
    display: flex;
    align-items: stretch;
    margin-bottom: 160px;
    position: relative;
}

.clinic-review-text {
    display: flex;
    flex-direction: column;
    gap: 52px;
    flex: 1;
    min-width: 0;
    max-width: max-content;
}

.clinic-review-title {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.clinic-review-subtitle {
    font-family: 'Noto Serif KR', serif;
    font-size: 20px;
    font-weight: 700;
    color: #F7941C;
    line-height: 1;
}

.clinic-review-heading {
    font-family: 'Noto Serif KR', serif;
    font-size: 60px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.clinic-review-desc {
    font-family: 'Pretendard', sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: #fff;
    line-height: 1.6;
}

.clinic-review-list {
    display: flex;
    gap: 40px;
}

.clinic-review-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
    padding-right: 20px;
}

.clinic-review-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #5F6369;
    transition: background 0.4s ease;
}

.clinic-review-dot.active {
    background: #F7941C;
}

.clinic-review-line {
    width: 1px;
    flex: 1;
    background: #5F6369;
}

.clinic-review-items {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.clinic-review-item {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 40px 0;
    border-bottom: 1px dashed #5F6369;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.clinic-review-item.show {
    opacity: 1;
    transform: translateY(0);
}

.clinic-review-item:first-child {
    padding-top: 0;
}

.clinic-review-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.clinic-review-item-label {
    font-family: 'Noto Serif KR', serif;
    font-size: 24px;
    font-weight: 700;
    white-space: nowrap;
}

.clinic-review-item.active .clinic-review-item-label {
    color: #F7941C;
}

.clinic-review-item:not(.active) .clinic-review-item-label {
    color: #5F6369;
}

.clinic-review-item-desc {
    font-family: 'Noto Serif KR', serif;
    font-size: 24px;
    font-weight: 700;
}

.clinic-review-item.active .clinic-review-item-desc {
    color: #fff;
}

.clinic-review-item:not(.active) .clinic-review-item-desc {
    color: #5F6369;
}

.clinic-review-img {
    /* width: 655px; */
    /* flex-shrink: 0; */
    /* overflow: hidden; */
    /* border-radius: 30px 0 0 30px; */
}

.clinic-review-img img {
    /* width: 100%; */
    /* height: 100%; */
    /* object-fit: cover; */
    position: absolute;
    right: -200px;
}

/* 03-03: 도달할 지점 */
.clinic-goal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
}

.clinic-goal-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.clinic-goal-subtitle {
    font-family: 'Noto Serif KR', serif;
    font-size: 20px;
    font-weight: 400;
    color: #F7941C;
    line-height: 1;
}

.clinic-goal-heading {
    font-family: 'Noto Serif KR', serif;
    font-size: 60px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    text-align: center;
}

.goal-cards {
    display: flex;
    gap: 20px;
    width: 100%;
}

.goal-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.goal-card-img {
    width: 100%;
    height: 320px;
    border-radius: 30px;
    overflow: hidden;
}

.goal-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.goal-card-title {
    font-family: 'Pretendard', sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: #fff;
    line-height: 1.6;
    text-align: center;
}

/* ----------------------------------------
   Section 04 : 나를 위한 근본적인 변화
   (메인 sec-care 스크롤 전환 기능 참고)
   ---------------------------------------- */
.clinic-solution {
    position: relative;
    padding: 160px 0;
    background: #FAF6EB;
}

/* 좌우 레이아웃 래퍼 */
.solution-layout {
    display: flex;
    align-items: flex-start;
    gap: 60px;
    max-width: calc(var(--inner-max) + var(--inner-pad) * 2);
    margin: 0 auto;
    padding: 0 var(--inner-pad);
    justify-content: space-between;
}

/* 좌측: sticky */
.solution-left {
    position: sticky;
    top: 200px;
    flex-shrink: 0;
    width: 458px;
    z-index: 2;
}

.solution-left-inner {
    display: flex;
    flex-direction: column;
    gap: 52px;
}

.clinic-solution-title {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.clinic-solution-subtitle {
    font-family: 'Noto Serif KR', serif;
    font-size: 20px;
    font-weight: 400;
    color: #840028;
    line-height: 1;
}

.clinic-solution-heading {
    font-family: 'Noto Serif KR', serif;
    font-size: 60px;
    font-weight: 700;
    color: #221E1F;
    line-height: 1.2;
}

.clinic-solution-desc {
    font-family: 'Pretendard', sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: #221E1F;
    line-height: 1.6;
}

/* 우측: 아이템 수 × 100vh = 전체 스크롤 구간 */
.solution-right {
    /* flex: 1; */
    width: 765px;
    position: relative;
    height: calc(100vh * 3);
}

/* sticky 패널 컨테이너 */
.solution-panels {
    position: sticky;
    top: 200px;
}

/* 이미지 래퍼 */
.solution-panel-wrap {
    position: relative;
    height: 509px;
    border-radius: 30px;
    overflow: hidden;
    background: #EDE6D5;
}

/* 이미지 패널 */
.solution-panel {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.solution-panel.active {
    opacity: 1;
}

.solution-panel img {
    /* width: 100%; */
    /* height: 100%; */
    /* object-fit: cover; */
    /* display: block; */
}

/* 텍스트 아이템 (이미지 아래) */
.solution-items {
    padding-top: 40px;
}

.solution-item {
    display: none;
    flex-direction: column;
    gap: 30px;
}

.solution-item.active {
    display: flex;
    animation: solutionItemFadeUp 0.4s ease forwards;
}

@keyframes solutionItemFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.solution-item-title {
    font-family: 'Noto Serif KR', serif;
    font-size: 32px;
    font-weight: 700;
    color: #221E1F;
    line-height: 1;
}

.solution-item-desc {
    font-family: 'Pretendard', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: rgba(34, 30, 31, 0.8);
    line-height: 1.6;
}

/* ========================================
   Responsive (Clinic - 공통)
   ======================================== */
@media (max-width: 1024px) {
    /* Hero - 시안: 300px */
    .clinic-hero {
        height: 322px;
        padding: 0 var(--inner-pad);
    }

    .clinic-hero-title {
        margin-top: 80px;
        font-size: 26px;
    }

    .clinic-hero-sub {
        margin-bottom: 32px;
        gap: 12px;
        text-align: center;
    }

    .clinic-hero-sub-title {
        font-size: 16px;
    }

    .clinic-hero-sub-desc {
        font-size: 13px;
        line-height: 1.6;
    }

    /* 원인 분석 - 시안: 2x2 격자, 원형 배지(60px) */
    .clinic-cause {
        padding: 80px 0;
    }

    .clinic-cause .inner {
        gap: 32px;
    }

    .clinic-cause-text {
        gap: 24px;
    }

    .clinic-cause-title {
        gap: 16px;
    }

    .clinic-cause-subtitle {
        font-size: 14px;
    }

    .clinic-cause-heading {
        font-size: 24px;
        line-height: 1.4;
    }

    .clinic-cause-desc {
        font-size: 14px;
    }

    .cause-cards {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .cause-card {
        width: 100%;
        flex: none;
        height: 139px;
    }

    .cause-card-circle {
        width: 60px;
        height: 60px;
        padding-top: 16px;
    }

    .cause-card-num {
        font-size: 16px;
    }

    .cause-card-head {
        top: 30px;
        height: 37px;
        border-radius: 12px 12px 0 0;
    }

    .cause-card-label {
        font-size: 12px;
        padding: 0 8px;
    }

    .cause-card-body {
        top: 67px;
        height: 72px;
        border-radius: 0 0 12px 12px;
        padding: 0 12px;
    }

    .cause-card-desc {
        font-size: 12px;
        line-height: 1.5;
    }

    /* 검은 배경 */
    .clinic-dark {
        padding: 100px 0;
    }

    /* 진료 과정 - 시안: 1열 세로, 아이콘 120px */
    .clinic-process {
        margin-bottom: 80px;
        gap: 32px;
    }

    .clinic-process-title {
        gap: 16px;
    }

    .clinic-process-subtitle {
        font-size: 14px;
    }

    .clinic-process-heading {
        font-size: 24px;
        line-height: 1.4;
    }

    .clinic-process-desc {
        font-size: 14px;
    }

    .process-steps {
        flex-direction: column;
        gap: 40px;
        flex-wrap: initial;
    }

    .process-step {
        width: 100%;
        gap: 16px;
    }

    .process-step-icon {
        width: 140px;
        height: 140px;
    }

    .process-step-icon svg {
        width: 70px;
        height: 70px;
    }

    .process-step-text {
        gap: 12px;
    }

    .process-step-num,
    .process-step-name {
        font-size: 15px;
    }

    .process-step-divider {
        height: 16px;
    }

    .process-step-desc {
        font-size: 13px;
        line-height: 1.6;
    }

    /* 사례 후기 - 시안: 이미지 상단 + 텍스트 하단, indicator 세로 점선 */
    .clinic-review {
        margin-bottom: 80px;
        flex-direction: column-reverse;
        gap: 32px;
    }

    .clinic-review-text {
        max-width: 100%;
        gap: 24px;
    }

    .clinic-review-title {
        gap: 16px;
    }

    .clinic-review-subtitle {
        font-size: 14px;
    }

    .clinic-review-heading {
        font-size: 24px;
        line-height: 1.4;
    }

    .clinic-review-desc {
        font-size: 14px;
    }

    .clinic-review-list {
        gap: 0;
    }

    .clinic-review-item {
        padding: 16px 0;
    }

    .clinic-review-item-label {
        font-size: 12px;
        width: 90px;
        flex-shrink: 0;
    }

    .clinic-review-item-desc {
        font-size: 13px;
        line-height: 1.5;
    }

    /* 이미지 absolute 해제 + rounded-rectangle 342x312 */
    .clinic-review-img {
        width: 100%;
        height: 312px;
        border-radius: 16px;
        overflow: hidden;
    }

    .clinic-review-img img {
        position: relative;
        right: auto;
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 16px;
    }

    /* 도달할 지점 - 시안: 1열 세로 (240x200) */
    .clinic-goal {
        gap: 32px;
    }

    .clinic-goal-title {
        gap: 16px;
    }

    .clinic-goal-subtitle {
        font-size: 14px;
    }

    .clinic-goal-heading {
        font-size: 24px;
        line-height: 1.4;
    }

    .goal-cards {
        flex-direction: column;
        gap: 40px;
    }

    .goal-card {
        width: 100%;
        flex: none;
        gap: 20px;
        align-items: center;
    }

    .goal-card-img {
        width: 240px;
        max-width: 100%;
        height: 200px;
        border-radius: 16px;
    }

    .goal-card-title {
        font-size: 15px;
        line-height: 1.6;
        text-align: center;
    }

    /* Solution - 시안: 이미지 풀블리드(390x240) + 텍스트, 3개 카드 세로 스택 */
    .clinic-solution {
        padding: 80px 0;
    }

    .solution-layout {
        flex-direction: column;
        gap: 32px;
        padding: 0;
    }

    .solution-left {
        position: relative;
        top: 0;
        width: 100%;
        padding: 0 var(--inner-pad);
    }

    .solution-left-inner {
        gap: 16px;
    }

    .clinic-solution-title {
        gap: 16px;
    }

    .clinic-solution-subtitle {
        font-size: 14px;
    }

    .clinic-solution-heading {
        font-size: 24px;
        line-height: 1.4;
    }

    .clinic-solution-desc {
        font-size: 14px;
    }

    .solution-right {
        width: 100%;
        height: auto;
    }

    .solution-panels {
        position: relative;
        top: 0;
        display: flex;
        flex-direction: column;
        gap: 48px;
    }

    .solution-panel-wrap {
        height: auto;
        border-radius: 0;
        overflow: visible;
        background: transparent;
    }

    /* 모든 panel 세로 스택으로 표시 */
    .solution-panel {
        position: relative;
        display: block;
        opacity: 1;
        width: 100vw;
        height: 240px;
        margin-left: calc(50% - 50vw);
    }

    .solution-panel img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    /* 모든 solution-item 표시, 각 item이 panel 바로 아래 위치하도록 display:contents */
    .solution-items {
        padding: 0 var(--inner-pad);
    }

    .solution-item {
        display: flex;
        animation: none;
        padding: 20px 0 0;
        gap: 12px;
    }

    .solution-item:not(:last-child) {
        padding-bottom: 28px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }

    .solution-item-title {
        font-size: 16px;
    }

    .solution-item-desc {
        font-size: 13px;
        line-height: 1.6;
    }
}

@media (max-width: 640px) {
    /* 640px 이하: 태블릿(1024 이하) 스타일 상속 */
}
