/* =========================================
   Web Fonts
========================================= */

@font-face {
    font-family: 'PuradakGentleGothic';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_11-01@1.1/PuradakGentleGothicR.woff2') format('woff2');
    font-weight: normal;
    font-display: swap;
}

/* =========================================
   Base
========================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Pretendard", "Noto Sans KR", Arial, sans-serif;
    color: #111;
    line-height: 1.6;
}

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

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

/* =========================================
   Typography
========================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'PuradakGentleGothic', "Pretendard", "Noto Sans KR", sans-serif;
    font-weight: normal !important;
    line-height: 1.32;
    letter-spacing: -0.055em;
    word-break: keep-all;
}

h1 {
    font-size: 2.5rem !important;
}

h2 {
    font-size: 1.7rem !important;
}

h3 {
    font-size: 1.2rem !important;
}

p {
    font-size: 1.0rem !important;
}

/* =========================================
   Variables
========================================= */

:root {
    --bg: #f7f5f1;
    --card: #ffffff;
    --line: #ded9d1;
    --text: #151515;
    --muted: #666;
    --point: #111;
    --soft: #efebe4;
    --soft-2: #f2efe9;
}

/* =========================================
   Layout
========================================= */

.container {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
}

/* =========================================
   Header
========================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: background-color 0.25s ease, backdrop-filter 0.25s ease;
}

    .site-header.is-scrolled {
        background: rgba(204, 204, 204, 0.5);
        backdrop-filter: blur(8px);
    }

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    min-height: 92px;
}

.logo {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.06em;
    white-space: nowrap;
    color: #111;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: right;
    gap: 58px;
    flex: 1;
}

    .nav a {
        font-size: 1.18rem;
        font-weight: 700;
        letter-spacing: -0.04em;
        white-space: nowrap;
    }

        .nav a:hover {
            opacity: 0.65;
        }

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-menu-button {
    display: none;
    border: 1px solid #111;
    background: #fff;
    border-radius: 10px;
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
    cursor: pointer;
}


.site-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

    .site-logo img {
        display: block;
        width: auto;
        height: 42px;
    }

@media (max-width: 768px) {
    .site-logo img {
        height: 34px;
    }
}
/* =========================================
   Header Submenu
========================================= */

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 92px;
}

.has-submenu > .nav-link::after {
    content: "";
    width: 6px;
    height: 6px;
    margin-left: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    opacity: 0.75;
}

.submenu {
    position: absolute;
    top: calc(100% - 14px);
    left: 50%;
    z-index: 120;
    min-width: 170px;
    padding: 10px;
    border: 1px solid #e5e1da;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.08);
    transform: translateX(-50%) translateY(8px);
    opacity: 0;
    visibility: hidden;
    transition: 0.18s ease;
}

    .submenu a {
        display: block;
        padding: 11px 12px;
        color: #111;
        font-size: 0.96rem;
        font-weight: 700;
        line-height: 1.3;
        letter-spacing: -0.04em;
        white-space: nowrap;
    }

        .submenu a:hover {
            background: #f7f5f1;
            opacity: 1;
        }

.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* =========================================
   Buttons
========================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 12px 22px;
    font-size: 0.95rem;
    font-weight: 700;
    transition: 0.2s ease;
    border: 1px solid #111;
}

    .btn:hover {
        transform: translateY(-1px);
    }

.btn-black {
    background: #111;
    color: #fff;
}

.btn-white {
    background: #fff;
    color: #111;
}

.header-telemedicine-btn {
    min-width: 190px;
    height: 42px;
    padding: 0 28px;
    border-radius: 999px;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: #000;
    color: #fff;
    border-color: #000;
}

.line-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 10px;
    border: 1px solid #111;
    background: #fff;
    font-weight: 700;
}

    .line-btn:hover {
        background: #111;
        color: #fff;
    }

/* =========================================
   Common Sections
========================================= */

.section {
    padding: 72px 0;
}

.eyebrow {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 18px;
}

.section-title {
    font-family: 'PuradakGentleGothic', "Pretendard", "Noto Sans KR", sans-serif;
    font-size: clamp(1.8rem, 2.8vw, 3rem);
    line-height: 1.32;
    letter-spacing: -0.055em;
    margin: 0 0 18px;
    font-weight: normal;
    word-break: keep-all;
}

.section-desc {
    font-size: 1rem;
    color: #555;
    margin-bottom: 28px;
}

/* =========================================
   Constitution Test CTA / Modal
   공통 체질 테스트 버튼 + 모달
========================================= */

.constitution-test-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    height: 46px;
    padding: 0 22px;
    border: 1px solid #111;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 0.96rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    cursor: pointer;
    transition: 0.2s ease;
}

    .constitution-test-btn:hover {
        transform: translateY(-1px);
        background: #333;
    }

/* diet-test-note 안에 들어갈 때 */
.diet-test-note--with-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
}

    .diet-test-note--with-button p {
        margin: 0;
    }

/* Modal */
.constitution-test-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
}

    .constitution-test-modal.is-open {
        display: block;
    }

.constitution-test-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.constitution-test-modal__panel {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(100% - 40px, 560px);
    max-height: min(86vh, 760px);
    overflow-y: auto;
    transform: translate(-50%, -50%);
    border-radius: 18px;
    background: #fff;
    padding: 38px 34px 34px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
}

.constitution-test-modal__close {
    position: absolute;
    right: 18px;
    top: 16px;
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: #111;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.constitution-test-modal__head {
    text-align: center;
    margin-bottom: 26px;
}

.constitution-test-modal__eyebrow {
    display: block;
    margin-bottom: 10px;
    color: #586f3b;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.constitution-test-modal__head h2 {
    margin: 0 0 16px;
    color: #111;
    font-family: 'PuradakGentleGothic', "Pretendard", "Noto Sans KR", sans-serif;
    font-size: 2rem;
    line-height: 1.32;
    font-weight: normal;
    letter-spacing: -0.055em;
    word-break: keep-all;
}

.constitution-test-modal__head p {
    margin: 0;
    color: #444;
    font-size: 0.98rem;
    line-height: 1.7;
    letter-spacing: -0.04em;
    word-break: keep-all;
}

.constitution-test-placeholder {
    border: 1px solid #e5e1da;
    border-radius: 14px;
    background: #f9f8f4;
    padding: 26px 22px;
    text-align: center;
}

    .constitution-test-placeholder strong {
        display: block;
        margin-bottom: 10px;
        color: #111;
        font-size: 1.18rem;
        font-weight: 900;
        letter-spacing: -0.05em;
    }

    .constitution-test-placeholder p {
        margin: 0;
        color: #444;
        font-size: 0.95rem;
        line-height: 1.65;
        letter-spacing: -0.04em;
    }

.constitution-test-start-btn {
    width: 100%;
    height: 52px;
    margin-top: 18px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #eee;
    color: #777;
    font-size: 1rem;
    font-weight: 800;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .diet-test-note--with-button {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
        text-align: center;
    }

    .constitution-test-btn {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .constitution-test-modal__panel {
        width: min(100% - 28px, 560px);
        padding: 34px 22px 26px;
        border-radius: 14px;
    }

    .constitution-test-modal__head h2 {
        font-size: 1.65rem;
    }
}

/* =========================================
   Contact
========================================= */

.contact-strip {
    background: #fff;
    padding-top: 24px;
    padding-bottom: 72px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.92fr 1.22fr 0.92fr;
    gap: 0;
    background: #fff;
}

.contact-col {
    min-height: 230px;
    padding: 34px 42px;
    border-right: 1px solid #e5e1da;
    --contact-icon-size: 42px;
    --contact-icon-gap: 16px;
    --contact-content-indent: calc(var(--contact-icon-size) + var(--contact-icon-gap));
}

    .contact-col:last-child {
        border-right: 0;
    }

.contact-heading {
    display: flex;
    align-items: center;
    gap: var(--contact-icon-gap);
    margin-bottom: 14px;
}

.contact-icon {
    width: var(--contact-icon-size);
    height: var(--contact-icon-size);
    flex: 0 0 var(--contact-icon-size);
    color: #111;
}

    .contact-icon svg {
        width: 100%;
        height: 100%;
        display: block;
    }

.contact-col h5 {
    margin: 0;
    font-size: 1.18rem;
    font-weight: normal;
    line-height: 1.35;
    letter-spacing: -0.055em;
}

.time-table,
.contact-info,
.phone,
.contact-note,
.contact-small-btn {
    margin-left: var(--contact-content-indent);
}

/* 진료 안내 */
.time-table {
    display: grid;
    gap: 8px;
    max-width: 280px;
}

    .time-table div {
        color: #111;
        font-size: 1rem;
        line-height: 1.55;
        letter-spacing: -0.035em;
        word-break: keep-all;
    }

    .time-table strong {
        display: inline-block;
        min-width: 76px;
        font-weight: 900;
        color: #111;
    }

/* 오시는 길 */
.contact-info {
    display: grid;
    gap: 6px;
    margin-bottom: 18px;
    color: #333;
    font-size: 0.98rem;
    line-height: 1.6;
    letter-spacing: -0.035em;
    word-break: keep-all;
}

    .contact-info strong {
        font-weight: 800;
        color: #111;
    }

/* 전화 상담 */
.phone {
    margin-top: 0;
    margin-right: 0;
    margin-bottom: 10px;
    font-size: 2.15rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.05em;
}

.contact-note {
    margin-top: 0;
    margin-right: 0;
    margin-bottom: 18px;
    color: #444;
    font-size: 0.95rem;
    line-height: 1.6;
    letter-spacing: -0.035em;
}

.contact-small-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    height: 38px;
    padding: 0 18px;
    border: 1px solid #111;
    background: #fff;
    color: #111;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: -0.035em;
    transition: 0.2s ease;
}

    .contact-small-btn:hover {
        background: #111;
        color: #fff;
    }

/* 오시는 길 전용 배경 이미지 영역 */
.contact-location-col {
    position: relative;
    overflow: hidden;
    background-color: transparent;
    background-repeat: no-repeat;
    background-size: auto 82%;
    background-position: right bottom;
}

    .contact-location-col .contact-heading,
    .contact-location-col .contact-info,
    .contact-location-col .contact-small-btn {
        position: relative;
        z-index: 2;
    }

/* =========================================
   Footer
========================================= */

.site-footer {
    padding: 28px 0 40px;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin-top: 24px;
}

.footer-brand {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.footer-info,
.footer-links {
    color: #666;
    font-size: 0.92rem;
}

.footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.socials {
    display: flex;
    gap: 25px;
}

    .socials a {
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #fff;
    }

/* =========================================
   Responsive - Common
========================================= */

@media (max-width: 1280px) {
    .nav {
        gap: 36px;
    }

        .nav a {
            font-size: 1.05rem;
        }

    .header-telemedicine-btn {
        min-width: 160px;
    }
}

@media (max-width: 1180px) {
    .site-header-inner {
        position: relative;
        min-height: 78px;
        gap: 16px;
    }

    .mobile-menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        order: 3;
    }

    .nav {
        display: none;
    }

        .nav.is-open {
            position: absolute;
            top: 78px;
            left: 16px;
            right: 16px;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 0;
            background: #fff;
            border: 1px solid var(--line);
            border-radius: 18px;
            padding: 12px;
            box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
        }

            .nav.is-open a {
                width: 100%;
                padding: 14px 12px;
                border-bottom: 1px solid #eee;
                font-size: 1rem;
            }

                .nav.is-open a:last-child {
                    border-bottom: 0;
                }

    .contact-location-col {
        background-size: auto 90%;
        background-position: right center;
    }

    .nav-item {
        width: 100%;
        display: block;
    }

    .nav-link {
        width: 100%;
        min-height: auto;
    }

    .has-submenu > .nav-link::after {
        display: none;
    }

    .submenu {
        position: static;
        min-width: 0;
        padding: 0 0 8px 12px;
        border: 0;
        background: transparent;
        box-shadow: none;
        transform: none;
        opacity: 1;
        visibility: visible;
    }

        .submenu a {
            padding: 10px 12px;
            color: #555;
            font-size: 0.92rem;
            font-weight: 600;
        }

            .submenu a:hover {
                background: #f7f5f1;
            }
}

@media (max-width: 768px) {
    .container {
        width: min(100% - 28px, 1280px);
    }

    .site-header-inner {
        min-height: 74px;
    }

    .logo {
        font-size: 1.45rem;
    }

    .header-actions {
        margin-left: auto;
    }

    .header-telemedicine-btn {
        min-width: auto;
        height: 38px;
        padding: 0 16px;
        font-size: 0.9rem;
    }

    .mobile-menu-button {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .btn {
        padding: 10px 16px;
        font-size: 0.88rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-col {
        min-height: auto;
        padding: 28px 24px;
        border-right: 0;
        border-bottom: 1px solid #e5e1da;
        --contact-icon-size: 36px;
        --contact-icon-gap: 14px;
    }

        .contact-col:last-child {
            border-bottom: 0;
        }

    .contact-location-col {
        background-size: auto 72%;
        background-position: right bottom;
    }

    .section {
        padding: 54px 0;
    }

    .footer-top {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .site-header-inner {
        gap: 10px;
    }

    .logo {
        font-size: 1.25rem;
    }

    .header-telemedicine-btn {
        padding: 0 12px;
        font-size: 0.82rem;
    }

    .phone {
        font-size: 1.8rem;
    }
}
