@charset "UTF-8";

/* ========================================
   역류성식도염 전용 스타일 (clinic-gerd.css)
   ======================================== */

/* --- 역류성식도염이란? (clinic-intro) --- */
.clinic-intro {
    padding: 160px 0;
}

.clinic-intro .inner {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.clinic-intro-text {
    display: flex;
    flex-direction: column;
    gap: 52px;
    text-align: center;
}

.clinic-intro-title {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.clinic-intro-subtitle {
    font-family: 'Noto Serif KR', serif;
    font-size: 20px;
    font-weight: 400;
    color: #840028;
    line-height: 1;
}

.clinic-intro-heading {
    font-family: 'Noto Serif KR', serif;
    font-size: 60px;
    font-weight: 700;
    color: #221E1F;
    line-height: 1;
}

.clinic-intro-desc {
    font-family: 'Pretendard', sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: #221E1F;
    line-height: 1.6;
}

.clinic-intro-images {
    display: flex;
    gap: 20px;
}

.clinic-intro-images img {
    flex: 1;
    min-width: 0;
    height: 400px;
    object-fit: cover;
    border-radius: 30px;
}

/* --- 주요 증상 카드 (symptom-cards) --- */
.clinic-symptoms {
    padding: 0 0 160px;
}

.clinic-symptoms .inner {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.clinic-symptoms-title {
    display: flex;
    flex-direction: column;
    gap: 40px;
    text-align: center;
}

.clinic-symptoms-subtitle {
    font-family: 'Noto Serif KR', serif;
    font-size: 20px;
    font-weight: 700;
    color: #840028;
    line-height: 1;
}

.clinic-symptoms-heading {
    font-family: 'Noto Serif KR', serif;
    font-size: 60px;
    font-weight: 700;
    color: #221E1F;
    line-height: 1;
}

.symptom-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.symptom-card {
    position: relative;
    width: 365px;
    height: 280px;
    border-radius: 30px;
    overflow: hidden;
}

.symptom-card-img {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.symptom-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.symptom-card-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 1;
}

.symptom-card-label span {
    font-family: 'Pretendard', sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    text-align: center;
}

/* --- 왜 반복될까요? (sticky 스크롤) --- */
.clinic-persist {
    margin-bottom: 160px;
}

.clinic-persist-header {
    display: flex;
    flex-direction: column;
    gap: 52px;
    margin-bottom: 60px;
    text-align: center;
}

.clinic-persist-title {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.clinic-persist-subtitle {
    font-family: 'Noto Serif KR', serif;
    font-size: 20px;
    font-weight: 400;
    color: #F7941C;
    line-height: 1;
}

.clinic-persist-heading {
    font-family: 'Noto Serif KR', serif;
    font-size: 60px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.clinic-persist-desc {
    font-family: 'Pretendard', sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: #fff;
    line-height: 1.6;
}

.persist-scroll-wrap {
    position: relative;
}

.persist-scroll-inner {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    max-width: 1100px;
    margin: 0 auto;
}

.persist-body {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.persist-img {
    width: 500px;
    height: 500px;
    flex-shrink: 0;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    background: #333;
}

.persist-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s;
}

.persist-img img.active {
    opacity: 1;
}

.persist-content {
    flex: 1;
    display: flex;
    gap: 28px;
    align-items: flex-start;
    min-width: 0;
}

.persist-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    height: 500px;
}

.persist-indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #5F6369;
    flex-shrink: 0;
    transition: background 0.4s;
}

.persist-indicator-dot.active {
    background: #F7941C;
}

.persist-indicator-line {
    width: 1px;
    flex: 1;
    background: #5F6369;
}

.persist-items {
    flex: 1;
    min-width: 0;
    display: grid;
}

.persist-items > * {
    grid-area: 1 / 1;
}

.persist-item {
    display: flex;
    flex-direction: column;
    gap: 40px;
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.persist-item.active {
    opacity: 1;
    pointer-events: auto;
}

.persist-item-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.persist-item-title {
    font-family: 'Pretendard', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #F7941C;
    line-height: 1;
}

.persist-item-title-en {
    font-family: 'Pretendard', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #8C9091;
    line-height: 1;
}

.persist-item-desc {
    font-family: 'Pretendard', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #fff;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.80);
}

.persist-item-arrow {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
    padding-top: 20px;
}

.persist-item-arrow-icon {
    font-family: 'Pretendard', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #F7941C;
    flex-shrink: 0;
    line-height: 1;
}

.persist-item-arrow-icon--result {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    font-family: 'Noto Serif KR', serif;
    font-size: 12px;
    font-weight: 400;
    color: #F7941C;
    line-height: 1;
}

.persist-item-arrow-icon--result::after {
    content: "";
    display: block;
    width: 359px;
    height: 1px;
    background: repeating-linear-gradient(
        to right,
        #F7941C 0 2px,
        transparent 2px 4px
    );
}

.persist-item-arrow-text {
    font-family: 'Pretendard', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #F7941C;
    line-height: 1.6;
}

/* --- 치료 관점 (clinic-perspective) --- */
.clinic-perspective {
    margin-bottom: 160px;
}

.clinic-perspective-header {
    display: flex;
    flex-direction: column;
    gap: 52px;
    margin-bottom: 60px;
    text-align: center;
}

.clinic-perspective-title {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.clinic-perspective-subtitle {
    font-family: 'Noto Serif KR', serif;
    font-size: 20px;
    font-weight: 400;
    color: #F7941C;
    line-height: 1;
}

.clinic-perspective-heading {
    font-family: 'Noto Serif KR', serif;
    font-size: 60px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.clinic-perspective-desc {
    font-family: 'Pretendard', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #fff;
    line-height: 1.6;
}

.clinic-perspective-images {
    display: flex;
    gap: 20px;
}

.clinic-perspective-images img {
    flex: 1;
    min-width: 0;
    height: 400px;
    object-fit: cover;
    border-radius: 30px;
}

/* --- 원인 (clinic-gerd-cause) --- */
.clinic-gerd-cause-header {
    display: flex;
    flex-direction: column;
    gap: 52px;
    margin-bottom: 80px;
    text-align: left;
}

.clinic-gerd-cause-title {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.clinic-gerd-cause-subtitle {
    font-family: 'Noto Serif KR', serif;
    font-size: 20px;
    font-weight: 400;
    color: #F7941C;
    line-height: 1;
}

.clinic-gerd-cause-heading {
    font-family: 'Noto Serif KR', serif;
    font-size: 60px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.clinic-gerd-cause-desc {
    font-family: 'Pretendard', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #fff;
    line-height: 1.6;
}

.gerd-cause-body {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.gerd-cause-img {
    width: 640px;
    height: 556px;
    flex-shrink: 0;
    border-radius: 30px;
    overflow: hidden;
}

.gerd-cause-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gerd-cause-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.gerd-cause-list {
    display: flex;
    flex-direction: column;
    gap: 42px;
}

.gerd-cause-item {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    border-bottom: 0;
}

.gerd-cause-item-title {
    font-family: 'Noto Serif KR', serif;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.gerd-cause-item-desc {
    font-family: 'Pretendard', sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: #fff;
    line-height: 1.6;
    margin-top: 14px;
}

/* --- 치료 01 카드 (treatment-cards) --- */
.clinic-treatment {
    padding: 160px 0;
}

.clinic-treatment .inner {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.clinic-treatment-text {
    display: flex;
    flex-direction: column;
    gap: 52px;
    text-align: center;
}

.clinic-treatment-title {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.clinic-treatment-subtitle {
    font-family: 'Noto Serif KR', serif;
    font-size: 20px;
    font-weight: 400;
    color: #840028;
    line-height: 1;
}

.clinic-treatment-heading {
    font-family: 'Noto Serif KR', serif;
    font-size: 60px;
    font-weight: 700;
    color: #221E1F;
    line-height: 1;
}

.clinic-treatment-desc {
    font-family: 'Pretendard', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #221E1F;
    line-height: 1.6;
}

.treatment-cards {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.treatment-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-self: flex-start;
    gap: 36px;
    padding: 0;
}

.treatment-card-img {
    width: 100%;
    height: 240px;
    border-radius: 30px;
    overflow: hidden;
    margin-bottom: 0;
}

.treatment-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.treatment-card-title {
    font-family: 'Noto Serif KR', serif;
    font-size: 32px;
    font-weight: 700;
    color: #221E1F;
    line-height: 1;
    margin-bottom: 0;
}

.treatment-card-desc {
    font-family: 'Pretendard', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #221E1F;
    line-height: 1.6;
}

/* 이미지가 아래에 오는 카드 변형 */
.treatment-card--reverse {
}

.treatment-card--reverse .treatment-card-img {
    margin-bottom: 0;
    margin-top: 32px;
}

/* --- 치료 02 (전폭 이미지) --- */
.clinic-treatment2 {
    padding: 0 0 160px;
}

.clinic-treatment2 .inner {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.clinic-treatment2-text {
    display: flex;
    flex-direction: column;
    gap: 52px;
    text-align: center;
}

.clinic-treatment2-title {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.clinic-treatment2-subtitle {
    font-family: 'Noto Serif KR', serif;
    font-size: 20px;
    font-weight: 400;
    color: #840028;
    line-height: 1;
}

.clinic-treatment2-heading {
    font-family: 'Noto Serif KR', serif;
    font-size: 60px;
    font-weight: 700;
    color: #221E1F;
    line-height: 1;
}

.clinic-treatment2-desc {
    font-family: 'Pretendard', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #221E1F;
    line-height: 1.6;
}

.clinic-treatment2-img {
    width: 100%;
    height: 456px;
    border-radius: 30px;
    overflow: hidden;
}

.clinic-treatment2-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   Responsive (Clinic - GERD)
   ======================================== */
@media (max-width: 1024px) {
    /* Intro - 시안: 이미지 2장 세로 (342x192) */
    .clinic-intro {
        padding: 80px 0;
    }

    .clinic-intro .inner {
        gap: 32px;
    }

    .clinic-intro-text {
        gap: 24px;
    }

    .clinic-intro-title {
        gap: 16px;
    }

    .clinic-intro-subtitle {
        font-size: 14px;
    }

    .clinic-intro-heading {
        font-size: 24px;
    }

    .clinic-intro-desc {
        font-size: 14px;
    }

    .clinic-intro-images {
        flex-direction: column;
        gap: 20px;
    }

    .clinic-intro-images img {
        flex: none;
        width: 100%;
        height: 192px;
        border-radius: 16px;
    }

    /* Symptoms - 시안: 2x4 격자 (161x166, thumb 161x120 + text 46) */
    .clinic-symptoms {
        padding: 0 0 80px;
    }

    .clinic-symptoms .inner {
        gap: 32px;
    }

    .clinic-symptoms-title {
        gap: 16px;
    }

    .clinic-symptoms-subtitle {
        font-size: 14px;
    }

    .clinic-symptoms-heading {
        font-size: 24px;
    }

    .symptom-cards {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .symptom-card {
        width: 100%;
        height: 166px;
        border-radius: 16px;
    }

    .symptom-card-label {
        position: relative;
        inset: auto;
        padding: 12px;
        background: #FAF6EB;
        height: 46px;
    }

    .symptom-card-img {
        height: 120px;
    }

    .symptom-card-label span {
        font-size: 14px;
        color: #221E1F;
    }

    /* 왜 반복될까요? - 시안: 이미지(342x342) 각 아이템마다 + 텍스트 */
    .clinic-persist {
        margin-bottom: 80px;
    }

    .persist-scroll-wrap {
        height: auto !important;
    }

    .persist-scroll-inner {
        position: relative;
        top: 0;
        max-width: 100%;
    }

    .clinic-persist-header {
        gap: 24px;
        margin-bottom: 32px;
        text-align: center;
    }

    .clinic-persist-title {
        gap: 16px;
    }

    .clinic-persist-subtitle {
        font-size: 14px;
    }

    .clinic-persist-heading {
        font-size: 24px;
    }

    .clinic-persist-desc {
        font-size: 14px;
    }

    .persist-body {
        flex-direction: column;
        gap: 0;
    }

    /* 이미지: 각 item 위로 하나씩 (342x342 정사각형) */
    .persist-img {
        width: 100%;
        height: 342px;
        border-radius: 16px;
        margin-bottom: 40px;
    }

    .persist-content {
        flex-direction: column;
        gap: 0;
    }

    /* indicator 모바일에서 숨김 (각 item에 번호 없이 스택) */
    .persist-indicator {
        display: none;
    }

    /* 모든 persist-item 스택 표시 */
    .persist-items {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .persist-items > * {
        grid-area: auto;
    }

    .persist-item {
        opacity: 1 !important;
        pointer-events: auto;
        padding: 0;
        gap: 24px;
        border-bottom: none;
    }

    .persist-item-title-wrap {
        gap: 4px;
    }

    .persist-item-title {
        font-size: 15px;
    }

    .persist-item-title-en {
        font-size: 10px;
    }

    .persist-item-desc {
        font-size: 13px;
        line-height: 1.6;
    }

    .persist-item-arrow {
        padding-top: 12px;
        gap: 12px;
    }

    .persist-item-arrow-icon--result {
        font-size: 10px;
        gap: 12px;
    }

    .persist-item-arrow-icon--result::after {
        width: 160px;
    }

    .persist-item-arrow-text {
        font-size: 13px;
        line-height: 1.6;
    }

    /* 관점 - 시안: 이미지 2장 세로 (342x192) */
    .clinic-perspective {
        margin-bottom: 80px;
    }

    .clinic-perspective-header {
        gap: 24px;
        margin-bottom: 32px;
        text-align: center;
    }

    .clinic-perspective-title {
        gap: 16px;
    }

    .clinic-perspective-subtitle {
        font-size: 14px;
    }

    .clinic-perspective-heading {
        font-size: 24px;
    }

    .clinic-perspective-desc {
        font-size: 14px;
    }

    .clinic-perspective-images {
        flex-direction: column;
        gap: 20px;
    }

    .clinic-perspective-images img {
        flex: none;
        width: 100%;
        height: 192px;
        border-radius: 16px;
    }

    /* GERD 원인 - 시안: 이미지 위 + 리스트 아래 (세로), 각 리스트 구분선 */
    .clinic-gerd-cause-heading {
        font-size: 24px;
    }

    .clinic-gerd-cause-header {
        gap: 24px;
        margin-bottom: 32px;
        text-align: center;
    }

    .clinic-gerd-cause-title {
        gap: 16px;
    }

    .clinic-gerd-cause-subtitle {
        font-size: 14px;
    }

    .clinic-gerd-cause-desc {
        font-size: 14px;
    }

    .gerd-cause-body {
        flex-direction: column;
        gap: 20px;
    }

    .gerd-cause-img {
        width: 100%;
        height: 297px;
        border-radius: 16px;
    }

    .gerd-cause-list {
        gap: 0;
    }

    .gerd-cause-item {
        padding: 20px 0;
        border-bottom: 1px solid rgba(255,255,255,0.15);
    }

    .gerd-cause-item:last-child {
        border-bottom: none;
    }

    .gerd-cause-item-title {
        font-size: 14px;
        line-height: 1.5;
    }

    /* 치료 01 - 시안: 3개 카드 세로 스택 (342x180 이미지) + 구분선 */
    .clinic-treatment {
        padding: 80px 0;
    }

    .clinic-treatment .inner {
        gap: 32px;
    }

    .clinic-treatment-text {
        gap: 24px;
    }

    .clinic-treatment-title {
        gap: 16px;
    }

    .clinic-treatment-subtitle {
        font-size: 14px;
    }

    .clinic-treatment-heading {
        font-size: 24px;
    }

    .clinic-treatment-desc {
        font-size: 14px;
    }

    .treatment-cards {
        flex-direction: column;
        gap: 0;
    }

    .treatment-card {
        flex: none;
        width: 100%;
        gap: 20px;
        padding: 20px 0;
        border-bottom: 1px solid rgba(0,0,0,0.08);
    }

    .treatment-card:first-child {
        padding-top: 0;
    }

    .treatment-card:last-child {
        border-bottom: none;
    }

    .treatment-card-img {
        height: 180px;
        border-radius: 16px;
    }

    .treatment-card-title {
        font-size: 16px;
    }

    .treatment-card-desc {
        font-size: 13px;
        line-height: 1.6;
    }

    /* 치료 02 - 시안: 이미지 풀블리드 220px */
    .clinic-treatment2 {
        padding: 0 0 80px;
    }

    .clinic-treatment2 .inner {
        gap: 32px;
    }

    .clinic-treatment2-text {
        gap: 24px;
    }

    .clinic-treatment2-title {
        gap: 16px;
    }

    .clinic-treatment2-subtitle {
        font-size: 14px;
    }

    .clinic-treatment2-heading {
        font-size: 24px;
    }

    .clinic-treatment2-desc {
        font-size: 14px;
    }

    .clinic-treatment2-img {
        width: 100vw;
        margin-left: calc(50% - 50vw);
        height: 220px;
        border-radius: 0;
    }
}

@media (max-width: 640px) {
    /* 640px 이하: 1024 상속 */
}
