@charset "UTF-8";

/* =========================================================
   MIPLUS 3D-CT ANALYSIS

   구성:
   서브 비주얼 → 인트로 → 01 정밀 분석
   → 02 수술계획 → 03 기존 수술 분석 → 상담

   mobile-system.css는 이 파일 다음에 연결
========================================================= */


/* =========================================================
   PAGE COMMON
========================================================= */

.ct-body {
    margin: 0;
    background: #f8f6f2;
}

.ct-page {
--ct-bg: var(--section-bg-ivory);
    --ct-bg-soft: #fbf8f2;
--ct-surface: var(--section-bg-white);

    --ct-text: #302b28;
    --ct-text-soft: #5e5752;

    --ct-accent: #9b7f6a;

    --ct-line: rgba(66, 56, 50, 0.14);

    --ct-container: 1320px;
    --ct-gutter: 40px;

    width: 100%;
    overflow-x: clip;

    background: var(--ct-bg);
    color: var(--ct-text);

    font-family: var(--font-korean);
    word-break: keep-all;
}

.ct-page *,
.ct-page *::before,
.ct-page *::after {
    box-sizing: border-box;
}

:where(
    .ct-page h1,
    .ct-page h2,
    .ct-page h3,
    .ct-page p,
    .ct-page figure
) {
    margin: 0;
}

.ct-page a {
    color: inherit;
    text-decoration: none;
}

.ct-container {
    width: 100%;
    max-width: var(--ct-container);

    margin: 0 auto;
    padding-inline: var(--ct-gutter);
}


/* =========================================================
   TYPOGRAPHY / NUMBER / PARAGRAPH SPACING
========================================================= */

.ct-eyebrow {
    margin: 0 0 16px;

    color: var(--ct-accent);

    font-family: var(--font-english);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.14em;
}

/* 핵심 분석 섹션 번호 */

.ct-eyebrow--numbered {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

/* 핵심 분석 섹션 번호 — 옆 영어와 동일한 기준 */
.ct-section-number {
    flex: 0 0 auto;

    color: inherit;

    font-family: inherit;
    font-size: 1em;
    font-weight: inherit;
    font-style: inherit;
    line-height: inherit;
    letter-spacing: 0;

    font-variant-numeric: tabular-nums;
}

.ct-eyebrow__text {
    min-width: 0;
}

.ct-title {
    color: var(--ct-text);

    font-family: var(--font-korean);
    font-size: clamp(34px, 3vw, 44px);
    font-weight: 500;
    line-height: 1.42;
    letter-spacing: -0.05em;

    word-break: keep-all;
    overflow-wrap: break-word;
    font-synthesis: none;
}

.ct-description {
    margin: 0;

    color: var(--ct-text-soft);

    font-size: 16px;
    font-weight: 400;
    line-height: 1.85;
    letter-spacing: -0.02em;

    overflow-wrap: break-word;
}

/*
   제목 → 설명: 설명 컨테이너의 margin-top
   문단 → 문단: 공통 --paragraph-gap
*/

.ct-prose {
    margin-top: 24px;
}

.ct-prose > p {
    margin: 0;
}

.ct-prose > p + p {
    margin-top: var(--paragraph-gap, 10px);
}

.ct-section-heading {
    max-width: 820px;
}

.ct-section-heading .ct-prose {
    max-width: 720px;
}


/* =========================================================
   INTRO — 기존 디자인 유지
========================================================= */

.ct-intro {
    position: relative;

    width: 100%;
    padding: 150px 24px;

    overflow: hidden;

    background: var(--ct-bg-soft);
    text-align: center;
}

.ct-intro::before {
    position: absolute;
    top: -180px;
    left: 50%;

    width: 580px;
    height: 580px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(181, 161, 141, 0.08) 0%,
            rgba(181, 161, 141, 0.025) 48%,
            transparent 72%
        );

    content: "";
    pointer-events: none;
    transform: translateX(-50%);
}

.ct-intro .ct-container {
    position: relative;
    z-index: 1;

    width: min(100%, 1120px);
    max-width: none;
    padding: 0;
}

.ct-intro .ct-eyebrow {
    margin: 0;

    color: rgba(181, 161, 141, 0.5);

    font-family: var(--font-english);
    font-size: clamp(36px, 3.2vw, 44px);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: 0.012em;
    word-spacing: 0.045em;

    font-synthesis: none;
}

.ct-intro .ct-title {
    max-width: 900px;
    margin: 32px auto 0;

    font-size: 36px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: -0.04em;
}

.ct-intro__text {
    max-width: 900px;
    margin: 28px auto 0;
}

.ct-intro__text p {
    margin: 0;

    color: var(--ct-text-soft);

    font-size: 16px;
    font-weight: 450;
    line-height: 2;
    letter-spacing: -0.02em;

    overflow-wrap: break-word;
}

/* =========================================================
   인트로 촬영 사진
   원본 비율 유지 / 별도 안내 섹션 없음
========================================================= */

.ct-intro__photo {
    width: 100%;
    max-width: 800px;
    margin: 56px auto 0;
}

.ct-intro__photo img {
    display: block;
    width: 100%;
    height: auto;
    filter: saturate(0.82) contrast(0.98) brightness(0.98) sepia(0.035);
}

/* =========================================================
   촬영 사진 · 검사 안내

   PC:
   사진 왼쪽 / 제목·설명 오른쪽

   모바일:
   제목 → 사진 → 설명

   섹션 상하 여백은 section-system.css에서 관리
========================================================= */

.ct-assessment {
background: var(--ct-surface);

}

.ct-assessment__layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1.1fr)
        minmax(0, 1fr);
    grid-template-areas:
        "media heading"
        "media content";
    column-gap: clamp(40px, 5vw, 72px);
    row-gap: 24px;
    align-items: center;
}

.ct-assessment__heading {
    grid-area: heading;
    min-width: 0;
    align-self: end;
    text-align: left;
}

.ct-assessment__heading .ct-title {
    margin: 0;
    text-align: inherit;
}

.ct-assessment__content {
    grid-area: content;
    min-width: 0;
    align-self: start;
    text-align: left;

    border-top: 1px solid var(--ct-line);
    padding-top: 24px;
}


.ct-assessment__content .ct-prose {
    margin-top: 0;
}

.ct-assessment__content .ct-description {
    text-align: inherit;
}

.ct-assessment__media {
    grid-area: media;
    min-width: 0;
    margin: 0;
}

.ct-assessment__media img {
    display: block;
    width: 100%;
    height: auto;
    filter:
        saturate(0.82)
        contrast(0.98)
        brightness(0.98)
        sepia(0.035);
}


/* =========================================================
   CT SCAN COMMON
========================================================= */

.ct-scan {
    min-width: 0;
    margin: 0;

    overflow: hidden;

    background: #090909;
}

.ct-scan__image {
    display: block;

    width: 100%;
    max-width: 100%;
    height: auto;

    background: #090909;
}


/* =========================================================
   01 THREE-DIMENSIONAL ANALYSIS
========================================================= */

.ct-analysis {
    padding: 115px 0 125px;
    background: var(--ct-bg);
}

.ct-analysis__gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 18px;
    margin-top: 48px;
}


/* =========================================================
   02 SURGICAL PLANNING
========================================================= */

.ct-surgical-plan {
    padding: 120px 0;
    background: var(--ct-surface);
}

.ct-surgical-plan__layout {
    display: grid;
    grid-template-columns:
        minmax(0, 0.85fr)
        minmax(0, 1.15fr);

    gap: clamp(45px, 6vw, 90px);
    align-items: center;
}

.ct-surgical-plan__content,
.ct-surgical-plan__gallery {
    min-width: 0;
}

.ct-surgical-plan__gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 16px;
}


/* =========================================================
   03 PREVIOUS SURGERY ASSESSMENT
========================================================= */

.ct-previous {
    padding: 115px 0 120px;
    background: var(--ct-bg);
}

.ct-previous__gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 18px;
    margin-top: 48px;
}

.ct-previous__gallery .ct-scan--wide {
    grid-column: span 2;
}


/* =========================================================
   EXAMINATION NOTE
========================================================= */

.ct-exam-note {
    display: grid;
    grid-template-columns:
        minmax(0, 0.75fr)
        minmax(0, 1.25fr);

    gap: 50px;

    margin-top: 45px;
    padding-top: 30px;

    border-top: 1px solid var(--ct-line);
}

.ct-exam-note__title {
    color: var(--ct-text);

    font-size: 20px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: -0.035em;

    overflow-wrap: break-word;
}

.ct-exam-note .ct-prose {
    margin-top: 0;
}

.ct-exam-note .ct-description {
    font-size: 15px;
}


/* =========================================================
   CONTACT
========================================================= */

.ct-contact {
    position: relative;

    padding: 110px 0;

    background: #403a35;
    color: #ffffff;
}

.ct-contact::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;

    width: 1px;

    background: rgba(255, 255, 255, 0.12);

    content: "";
    pointer-events: none;
}

.ct-contact__layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ct-contact__heading {
    min-width: 0;
    padding-right: clamp(60px, 8vw, 100px);
}

.ct-contact .ct-eyebrow {
    margin-bottom: 23px;

    color: #d7c5b3;

    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
}

.ct-contact .ct-title {
    color: #ffffff;

    font-size: clamp(36px, 3.2vw, 44px);
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: -0.055em;
}

.ct-contact__content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    min-width: 0;
    padding-left: clamp(60px, 8vw, 100px);
}

.ct-contact__content > .ct-description {
    max-width: 430px;
    margin: 0 0 31px;

    color: rgba(255, 255, 255, 0.7);

    font-size: 15px;
    line-height: 1.8;
}

.ct-contact__buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 11px;
}

.ct-button {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    min-width: 0;
    min-height: 62px;
    padding: 0 21px;

    border: 1px solid rgba(255, 255, 255, 0.32);

    color: #ffffff;

    font-size: 14px;
    font-weight: 500;

    transition:
        color 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease;
}

.ct-page .ct-button--primary {
    border-color: #d7c3ad;

    background: #d7c3ad;
    color: #302b27;
}


/* =========================================================
   FOCUS / HOVER
========================================================= */

.ct-page a:focus-visible {
    outline: 2px solid var(--color-accent-dark, #916046);
    outline-offset: 4px;
}

.ct-contact a:focus-visible {
    outline-color: #d7c5b3;
}

@media (hover: hover) and (pointer: fine) {
    .ct-page .ct-button:hover {
        border-color: #ffffff;

        background: #ffffff;
        color: #302b27;
    }
}


/* =========================================================
   TABLET
========================================================= */

@media (min-width: 768px) and (max-width: 1023px) {
    .ct-page {
        --ct-gutter: 30px;
    }

    /* 인트로 */

    .ct-intro {
        padding: 115px 30px 120px;
    }

    .ct-intro .ct-eyebrow {
        font-size: clamp(32px, 4.8vw, 40px);
    }

    .ct-intro .ct-title {
        margin-top: 28px;
        font-size: 30px;
    }

    .ct-intro__text {
        max-width: 760px;
        margin-top: 28px;
    }

    .ct-intro__text p {
        font-size: 14px;
        line-height: 1.9;
    }

    /* 일반 섹션 */

    .ct-analysis,
    .ct-surgical-plan,
    .ct-previous {
        padding: 90px 0;
    }

    .ct-surgical-plan__layout {
        gap: 35px;
    }

    .ct-surgical-plan__content .ct-title {
        font-size: 30px;
    }

    .ct-analysis__gallery,
    .ct-previous__gallery {
        gap: 12px;
        margin-top: 36px;
    }

    .ct-surgical-plan__gallery {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .ct-exam-note {
        gap: 30px;
    }

    /* 상담 */

    .ct-contact__heading {
        padding-right: 35px;
    }

    .ct-contact__content {
        padding-left: 35px;
    }

    .ct-contact .ct-title {
        font-size: 32px;
    }

    .ct-contact__buttons {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {
    .ct-page {
        --ct-gutter: var(--page-padding-mobile, 20px);
    }

    /*
       인트로 기본값 유지
       mobile-system.css에서 공통 기준이 최종 적용됨
    */

    .ct-page .ct-intro {
        padding: 68px 20px;
    }

    .ct-page .ct-intro .ct-eyebrow {
        margin: 0;

        font-family: var(--font-english);
        font-size: clamp(24px, 6.5vw, 27px);
        font-weight: 400;
        line-height: 1.12;
        letter-spacing: 0.012em;
        word-spacing: 0.045em;

        white-space: nowrap;
    }

    .ct-page .ct-intro .ct-title {
        margin: 22px auto 0;

        font-size: 24px;
        font-weight: 500;
        line-height: 1.5;
        letter-spacing: -0.04em;
    }

    .ct-page .ct-intro .ct-intro__text {
        width: 100%;
        max-width: 330px;
        margin: 17px auto 0;
    }

    .ct-page .ct-intro .ct-intro__text p {
        margin: 0;

        font-size: 13.5px;
        font-weight: 500;
        line-height: 1.85;
        letter-spacing: -0.025em;
    }

    .ct-intro__photo {
    margin-top: 36px;
}

.ct-assessment__layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "content"
        "media";
    gap: 36px;
}

.ct-assessment__layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "heading"
        "media"
        "content";
    row-gap: 36px;
}

.ct-assessment__heading {
    align-self: auto;
    text-align: center;
}

.ct-assessment__content {
    align-self: auto;
    text-align: left;
    padding-top: 20px;
}




    /* 일반 글씨 기준 */

    .ct-eyebrow {
        margin-bottom: 11px;

        font-size: var(--type-en-eyebrow, 13px);
        line-height: var(--leading-label, 1.4);
    }

    .ct-title {
        font-size: var(--type-ko-section, 27px);
        line-height: var(--leading-title, 1.5);
    }

    .ct-description {
        font-size: var(--type-body, 15px);
        line-height: var(--leading-body, 1.85);
    }

    .ct-prose {
        margin-top: 17px;
    }

    /* 일반 콘텐츠 섹션의 상하 여백 통일 */

    .ct-page .ct-analysis,
    .ct-page .ct-surgical-plan,
    .ct-page .ct-previous {
        padding-block: 70px 76px;
    }

    /* 제목·설명 → CT 영상 간격 통일 */

    .ct-page .ct-analysis__gallery,
    .ct-page .ct-previous__gallery {
        margin-top: 30px;
    }

    /* 01 정밀 분석 */

    .ct-analysis__gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .ct-analysis__gallery > .ct-scan:first-child {
        grid-column: 1 / -1;
    }

    /* 02 세밀한 수술계획 */

    .ct-surgical-plan__layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .ct-surgical-plan__gallery {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    /* 03 기존 수술 분석: 한 장씩 같은 너비 */

    .ct-page .ct-previous__gallery {
        grid-template-columns: minmax(0, 1fr);

        gap: 20px;
        justify-items: stretch;
        align-items: start;
    }

    .ct-page .ct-previous__gallery > .ct-scan {
        grid-area: auto;
        justify-self: stretch;
        align-self: start;

        width: 100%;
        min-width: 0;
        max-width: none;
        margin: 0;

        aspect-ratio: auto;
    }

    .ct-page .ct-previous__gallery > .ct-scan > .ct-scan__image {
        width: 100%;
        max-width: 100%;
        height: auto;

        aspect-ratio: auto;
        object-fit: contain;
    }

    /* 검사 안내 */

    .ct-exam-note {
        grid-template-columns: 1fr;
        gap: 14px;

        margin-top: 32px;
        padding-top: 24px;
    }

    .ct-exam-note__title {
        font-size: var(--type-ko-card, 20px);
        line-height: var(--leading-content-title, 1.5);
    }

    .ct-exam-note .ct-description {
        font-size: var(--type-body, 15px);
    }

    /* 상담 */

    .ct-contact {
        padding: 74px 0;
    }

    .ct-contact::before {
        display: none;
    }

    .ct-contact__layout {
        grid-template-columns: 1fr;
    }

    .ct-contact__heading {
        padding: 0;
    }

    .ct-contact .ct-eyebrow {
        margin-bottom: 17px;
        font-size: var(--type-en-eyebrow, 13px);
    }

    .ct-contact .ct-title {
        font-size: var(--type-ko-section, 27px);
        line-height: var(--leading-title, 1.5);
    }

    .ct-contact__content {
        padding: 35px 0 0;
    }

    .ct-contact__content > .ct-description {
        margin-bottom: 24px;
        font-size: var(--type-body, 15px);
    }

    .ct-contact__buttons {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .ct-button {
        min-height: 55px;
        padding: 0 16px;

        font-size: 14px;
    }
}


/* =========================================================
   SMALL MOBILE — 기존 인트로 기본값 유지
========================================================= */

@media (max-width: 359px) {
    .ct-page .ct-intro {
        padding: 62px 20px;
    }

    .ct-page .ct-intro .ct-eyebrow {
        font-size: 22px;
    }

    .ct-page .ct-intro .ct-title {
        font-size: 23px;
    }

    .ct-page .ct-intro .ct-intro__text {
        max-width: 100%;
    }

    .ct-page .ct-intro .ct-intro__text p {
        font-size: 12.5px;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
    .ct-button {
        transition: none;
    }
}
