:root {
    --ink: #17191f;
    --navy: #10233f;
    --muted: #626d7a;
    --line: #e2e7ee;
    --paper: #ffffff;
    --soft: #f5f7f4;
    --green: #2f7b5f;
    --green-dark: #205a45;
    --gold: #f3bf2f;
    --red: #d83b36;
    --blue: #3f72b8;
    --shadow: 0 24px 70px rgba(16, 35, 63, 0.13);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, #ffffff 0, var(--soft) 420px), var(--soft);
    font-family: "Noto Sans KR", Arial, sans-serif;
    letter-spacing: 0;
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 26px;
    min-height: 78px;
    padding: 12px clamp(18px, 4vw, 56px);
    background: #ffffff;
    border-bottom: 1px solid rgba(226, 231, 238, 0.95);
}

.brand {
    display: flex;
    align-items: center;
    width: 270px;
    min-width: 270px;
    height: 60px;
    position: relative;
    overflow: hidden;      
    text-decoration: none;
    background: transparent !important;
    margin-top: -6px;
}

.brand img {
    display: block !important;
    width: 100% !important; 
    max-width: none;
    height: auto !important;
    position: absolute;
    left: 0;
    top: -6px;
    object-fit: contain;
    object-position: top left;
}

@media (max-width: 680px) {
    .brand {
        width: 200px;
        min-width: 200px;
        height: 46px;
        margin-top: -3px;
    }
    .brand img {
        top: -4px;
    }
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 4px;
    flex: 1;
}

.nav-links a {
    padding: 10px 16px;
    color: #384456;
    border-radius: 8px;
    text-decoration: none;
    font-size: 17px;
    font-weight: 800;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.is-active {
    color: var(--green-dark);
    background: #edf5f1;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
    flex-shrink: 0;
}

.header-phone-highlight {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    color: #fff;
    background: var(--navy);
    border-radius: 8px;
    text-decoration: none;
    font-size: 15.5px;
    font-weight: 900;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.header-phone-highlight:hover {
    background: var(--green);
}

.blog-link-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.blog-label {
    color: var(--muted);
    font-size: 15.5px;
    font-weight: 800;
    white-space: nowrap;
}

.blog-icon-sprite {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-image: url('https://pm.pstatic.net/resources/asset/sp_main.08826653.png');
    background-position: 0px -219px;
    background-size: 471px 457px;
    background-repeat: no-repeat;
    border-radius: 8px;
}

.blog-link-wrapper:hover .blog-icon-sprite {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(3, 199, 90, 0.3), 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    padding: 10px 16px;
    color: #384456;
    border-radius: 8px;
    text-decoration: none;
    font-size: 17px;
    font-weight: 800;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.nav-dropdown-trigger::after {
    content: "▾";
    font-size: 11px;
    color: var(--muted);
    transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-trigger,
.nav-dropdown-trigger:hover {
    color: var(--green-dark);
    background: #edf5f1;
}

.nav-dropdown:hover .nav-dropdown-trigger::after {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 210px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(16, 35, 63, 0.13);
    padding: 6px;
    margin: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu li a {
    display: block;
    padding: 10px 16px;
    color: #384456;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    border-radius: 7px;
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-dropdown-menu li a:hover {
    background: #edf5f1;
    color: var(--green-dark);
}

a.service-card {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

main {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: 44px 0 96px;
}

.content {
    scroll-margin-top: 110px;
}

.content.active {
    display: block;
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    min-height: 640px;
    padding: clamp(34px, 6vw, 76px);
    overflow: hidden;
    color: #fff;
    background: linear-gradient(90deg, rgba(11, 23, 40, 0.92), rgba(11, 23, 40, 0.62) 48%, rgba(11, 23, 40, 0.2)), url("images/외부사진.JPG") center / cover;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 5px;
    background: linear-gradient(90deg, var(--gold), var(--green), var(--blue));
}

.hero-copy {
    position: relative;
    z-index: 1;
    align-self: center;
    max-width: 760px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1,
.detail-hero h1 {
    margin: 0;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.3;
    letter-spacing: -0.5px;
    word-break: keep-all;
}

.hero p {
    max-width: 670px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(16px, 1.8vw, 19px);
    line-height: 1.8;
    word-break: keep-all;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 34px;
}

.btn,
.mini-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 900;
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn.primary,
.mini-call {
    color: #fff;
    background: var(--green);
    box-shadow: 0 12px 26px rgba(47, 123, 95, 0.26);
}

.btn.primary:hover,
.mini-call:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
}

.btn.secondary {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn.secondary:hover {
    background: rgba(255, 255, 255, 0.24);
    border-color: rgba(255, 255, 255, 0.62);
    transform: translateY(-2px);
}

.hero-panel {
    position: relative;
    z-index: 1;
    align-self: center;
    padding: 30px 24px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.16);
    box-sizing: border-box;
    width: 100%;
}

.hero-panel span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.hero-panel strong {
    display: block;
    margin-top: 8px;
    color: var(--ink);
    font-size: 26px;
}

.hero-panel p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    word-break: keep-all;
}

.mini-call {
    display: flex;
    width: 100%;
    margin-top: 20px;
    box-sizing: border-box;
}

.keyword-band,
.insurance-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    margin: 30px 0;
    padding: clamp(28px, 4vw, 44px);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 16px 48px rgba(16, 35, 63, 0.06);
}

.keyword-band h2,
.insurance-band h2,
.section-head h2,
.card h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.3;
    letter-spacing: -0.5px;
    word-break: keep-all;
}

.keyword-band p:last-child,
.insurance-band p:last-child,
.section-head p {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 16.5px;
    line-height: 1.8;
    word-break: keep-all;
}

.proof-grid,
.feature-grid,
.treatment-grid,
.image-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.proof-grid article,
.feature-card,
.service-card,
.card,
.contact-card,
.related-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 14px 42px rgba(16, 35, 63, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.proof-grid article,
.service-card,
.card,
.contact-card,
.related-card {
    padding: 28px;
}

.feature-card:hover,
.service-card:hover,
.card:hover,
.related-card:hover {
    transform: translateY(-4px);
    border-color: rgba(47, 123, 95, 0.25);
    box-shadow: 0 22px 56px rgba(16, 35, 63, 0.1);
}

.proof-grid strong,
.service-number {
    display: block;
    color: var(--green);
    font-size: 13px;
    font-weight: 900;
}

.proof-grid h3,
.feature-card h3,
.service-card h3,
.card h3 {
    margin: 12px 0 10px;
    font-size: 21px;
    line-height: 1.35;
    word-break: keep-all;
}

.proof-grid p,
.feature-card p,
.service-card p,
.card p,
.card li {
    margin: 0;
    color: var(--muted);
    font-size: 15.5px;
    line-height: 1.75;
    word-break: keep-all;
}

.card p + p,
.card ul + p,
.card p + ul {
    margin-top: 16px;
}

.section-head {
    max-width: 820px;
    margin: 20px 0 28px;
}

.section-head h2 {
    margin-bottom: 12px;
}

.treatment-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.service-card {
    min-height: 292px;
}

.service-number {
    margin-bottom: 38px;
}

.text-link {
    display: inline-flex;
    margin-top: 24px;
    color: var(--green-dark);
    text-decoration: none;
    font-weight: 900;
}

.text-link::after {
    content: ">";
    margin-left: 8px;
}

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

.feature-card {
    overflow: hidden;
}

.feature-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.feature-card div {
    padding: 26px;
}

.insurance-band {
    margin-top: 18px;
    background: linear-gradient(135deg, rgba(243, 191, 47, 0.12), rgba(47, 123, 95, 0.08)), var(--paper);
}

.contact-layout {
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 18px;
}

.contact-card dl {
    margin: 0;
}

.contact-card div {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.contact-card div:first-child {
    padding-top: 0;
}

.contact-card div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.contact-card dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.contact-card dd {
    margin: 7px 0 0;
    font-size: 20px;
    font-weight: 900;
}

.map-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
}

.map-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.map-btn.naver {
    background: #03c75a;
    color: #fff;
}

.map-btn.naver:hover {
    background: #02b14f;
}

.map-btn.kakao {
    background: #fee500;
    color: #191919;
}

.map-btn.kakao:hover {
    background: #ebd200;
}

.map-btn.copy {
    background: #f1f3f5;
    color: #343a40;
    border-color: #dee2e6;
}

.map-btn.copy:hover {
    background: #e9ecef;
}

.map-container {
    width: 100%;
    height: 100%;
    min-height: 380px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.map-frame {
    width: 100%;
    height: 100%;
    min-height: 380px;
    border: 0;
    background: #d9e1e8;
}

.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(16, 35, 63, 0.95);
    color: #fff;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
    opacity: 0;
    z-index: 9999;
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.detail-hero {
    padding: clamp(42px, 7vw, 86px);
    color: #fff;
    background: linear-gradient(90deg, rgba(11, 23, 40, 0.94), rgba(11, 23, 40, 0.56)), url("images/clinic2.jpeg") center / cover;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.detail-hero.spine {
    background: linear-gradient(90deg, rgba(11, 23, 40, 0.94), rgba(11, 23, 40, 0.55)), url("images/clinic1.jpg") center / cover;
}

.detail-hero.elbow {
    background: linear-gradient(90deg, rgba(11, 23, 40, 0.93), rgba(11, 23, 40, 0.5)), url("images/elbow1.png") center / cover;
}

.detail-hero.neck,
.detail-hero.shoulder {
    background: linear-gradient(90deg, rgba(11, 23, 40, 0.93), rgba(11, 23, 40, 0.48)), url("images/elbow4.jpg") center / cover;
}

.detail-hero.plantar {
    background: linear-gradient(90deg, rgba(11, 23, 40, 0.93), rgba(11, 23, 40, 0.5)), url("images/clinic2.jpeg") center / cover;
}

.detail-hero p:last-child {
    max-width: 720px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    line-height: 1.75;
    word-break: keep-all;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 22px;
    margin-top: 30px;
    align-items: start;
}

.detail-main {
    display: grid;
    gap: 22px;
}

.check-list {
    display: grid;
    gap: 10px;
    padding-left: 20px;
}

.side-panel {
    position: sticky;
    top: 100px;
    z-index: 10;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 30px 24px;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.16);
    box-sizing: border-box;
    width: 100%;
}

.side-panel span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.side-panel strong {
    display: block;
    margin-top: 8px;
    color: var(--ink);
    font-size: 26px;
}

.side-panel p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    word-break: keep-all;
}

.side-panel .btn {
    width: 100%;
    margin-top: 22px;
    box-sizing: border-box;
}

.image-grid {
    margin-top: 18px;
}

.image-grid figure {
    margin: 0;
}

.focus-img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 10px;
}

figcaption {
    margin-top: 10px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.related-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.related-card h2 {
    margin: 0;
    font-size: 24px;
}

.related-card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    color: #fff;
    background: var(--navy);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 900;
}

.related-card a::after {
    content: ">";
    margin-left: 8px;
}

.site-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 24px;
    padding: 34px 18px;
    color: #dfe8ef;
    background: var(--navy);
    border-top: 4px solid var(--gold);
}

.site-footer strong {
    color: #fff;
    font-size: 18px;
}

.site-footer span {
    font-size: 15px;
    font-weight: 700;
}

.menu-toggle {
    display: none;
}
.desktop-only {
    display: inline-flex;
}

@media (max-width: 1120px) {
    .treatment-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .site-header {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        padding: 12px 20px;
        min-height: auto;
    }

    .brand {
        flex: 0 0 100%;
        width: 100%;
        height: 46px;
        display: flex;
        justify-content: center;
        margin-bottom: 12px;
    }
    .brand img {
        position: relative;
        top: -4px;
        left: 0;
    }

    .desktop-only {
        display: none !important;
    }

    .header-right {
        margin: 0;
        order: 2;
    }
    .blog-label, .blog-divider {
        display: none;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 24px;
        height: 18px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 101;
        order: 3;
    }
    .menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: var(--navy);
        transition: all 0.3s ease;
    }
    .menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: #ffffff;
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
        box-sizing: border-box;
        z-index: 100;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: bounce;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a, 
    .nav-dropdown-trigger {
        width: 100%;
        padding: 16px 28px;
        font-size: 17px;
        font-weight: 800;
        border-radius: 0;
        text-align: left;
        box-sizing: border-box;
        border-bottom: 1px solid var(--soft);
    }
    .nav-links a:hover,
    .nav-links a.is-active {
        background: var(--soft);
    }

    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--soft);
        padding: 4px 0;
        margin: 0;
        display: block;
    }
    .nav-dropdown-menu li a {
        padding: 12px 40px;
        font-size: 14.5px;
        font-weight: 600;
    }

    .hero, .keyword-band, .insurance-band, .contact-layout, .detail-layout, .proof-grid, .feature-grid, .image-grid {
        grid-template-columns: 1fr;
    }
    .hero { min-height: auto; }
    .hero-panel, .side-panel { align-self: stretch; position: static; }
    .related-card { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 680px) {
    main {
        width: min(100% - 24px, 1180px);
        padding-top: 10px;
    }
    .brand {
        height: 40px;
        margin-bottom: 8px;
    }
    .brand img {
        width: 190px !important;
    }
    .blog-icon-sprite {
        width: 34px;
        height: 34px;
        background-size: 400px 388px;
        background-position: 0px -186px;
    }

    .hero {
        padding: 20px 16px;
        min-height: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .hero-copy {
        width: 100%;
        text-align: center;
    }

    .hero h1, .detail-hero h1 { 
        font-size: 26px;
        line-height: 1.25;
    }
    
    .hero p {
        margin: 12px 0 0;
        font-size: 14.5px;
    }

    .hero-actions {
        margin-top: 20px;
        justify-content: center;
    }

    .hero-panel {
        margin-top: 16px;
        padding: 20px 16px;
    }

    .detail-hero, .keyword-band, .insurance-band, .proof-grid article, .feature-card div, .service-card, .card, .contact-card {
        padding: 24px;
    }
    .treatment-grid { grid-template-columns: 1fr; }
}

body.no-scroll {
    overflow: hidden !important;
}

@media (min-width: 901px) {
    .content {
        scroll-margin-top: 80px;
    }
}