/* #region 공통 */
body {
    background: #fff;
}

html,
body {
    overflow-x: hidden;
}

.subpage-main {
    min-height: calc(100vh - 88px);
}

.sub-quick {
    position: fixed;
    right: clamp(18px, 2.6vw, 42px);
    bottom: clamp(28px, 0vw, 72px);
    z-index: 850;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    width: 62px;
    height: 62px;
    border-radius: 999px;
    background: linear-gradient(180deg, #4c8ddb 0%, #3a7ed6 100%);
    box-shadow: 0 14px 30px rgba(20, 42, 68, 0.14);
    overflow: hidden;
    transition: height 0.32s cubic-bezier(0.22, 1, 0.36, 1), background 0.24s ease, box-shadow 0.24s ease;
}

.sub-quick--clinic {
    right: 18px;
    bottom: 24px;
}

.sub-quick-panel {
    position: absolute;
    inset: 8px 0 74px;
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: stretch;
    gap: 0;
    overflow: hidden;
    padding: 0;
    border: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.94);
    transform-origin: bottom center;
    pointer-events: none;
    transition: opacity 0.22s ease 0.05s, visibility 0.22s ease 0.05s, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1) 0.04s;
}
.sub-quick:hover{
    margin-top: 40px;
}

.sub-quick:hover,
.sub-quick:focus-within {
    height: 318px;
    box-shadow: 0 18px 42px rgba(34, 89, 158, 0.24);
}

.sub-quick:hover .sub-quick-panel,
.sub-quick:focus-within .sub-quick-panel {
    bottom: 74px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.sub-quick-link {
    display: flex;
    width: 100%;
    min-height: 0;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 6px;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.15;
    text-align: center;
    word-break: keep-all;
    transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.sub-quick:hover .sub-quick-link,
.sub-quick:focus-within .sub-quick-link {
    opacity: 0.5;
}

.sub-quick:hover .sub-quick-link:first-child,
.sub-quick:focus-within .sub-quick-link:first-child {
    opacity: 1;
}

.sub-quick-panel:has(.sub-quick-link:hover) .sub-quick-link:first-child:not(:hover),
.sub-quick-panel:has(.sub-quick-link:focus-visible) .sub-quick-link:first-child:not(:focus-visible) {
    opacity: 0.5;
}

.sub-quick:hover .sub-quick-link:hover,
.sub-quick:focus-within .sub-quick-link:focus-visible {
    color: #fff;
    opacity: 1;
    transform: translateY(-1px);
}

.sub-quick-icon {
    display: flex;
    width: 26px;
    height: 26px;
    align-items: center;
    justify-content: center;
}

.sub-quick-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sub-quick-icon-image--invert {
    filter: brightness(0) invert(1);
}

.sub-quick-toggle {
    display: flex;
    width: 62px;
    flex: 0 0 62px;
    aspect-ratio: 1;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.15;
    text-align: center;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sub-quick-toggle-icon {
    display: flex;
    width: 18px;
    height: 12px;
    align-items: center;
    justify-content: center;
}

.sub-quick-toggle-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sub-quick-toggle-label {
    display: block;
    width: 100%;
    letter-spacing: 0;
    word-break: keep-all;
}

.sub-quick-toggle-label--open {
    display: none;
}

.sub-quick:hover .sub-quick-toggle-label--closed,
.sub-quick:focus-within .sub-quick-toggle-label--closed {
    display: none;
}

.sub-quick:hover .sub-quick-toggle-label--open,
.sub-quick:focus-within .sub-quick-toggle-label--open {
    display: block;
}

.sub-quick:hover .sub-quick-toggle,
.sub-quick:focus-within .sub-quick-toggle {
    flex-basis: 74px;
    background: transparent;
    color: #fff;
    transform: translateY(-8px);
}

.sub-quick:hover .sub-quick-toggle-icon,
.sub-quick:focus-within .sub-quick-toggle-icon {
    width: 26px;
    height: 18px;
}

.sub-visual-inner {
    width: min(90%, 1440px);
    margin: 0 auto;
}

.sub-visual {
    position: relative;
    overflow: hidden;
    padding-top: 88px;
    background: linear-gradient(180deg, #9fc0e7 0%, #9bbce4 100%);
}

.sub-visual--image {
    background-image: var(--sub-visual-bg-image);
    background-position: center right;
    background-repeat: no-repeat;
    background-size: cover;
}

.sub-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
}

.sub-visual--image::before {
    background:
        linear-gradient(180deg, rgba(12, 28, 48, 0.36), rgba(12, 28, 48, 0.28)),
        linear-gradient(90deg, rgba(12, 28, 48, 0.34), rgba(12, 28, 48, 0.1) 52%, rgba(12, 28, 48, 0.28));
}

.sub-visual-inner {
    position: relative;
    min-height: 420px;
    padding: 42px 0 72px;
}

.sub-nav {
    position: absolute;
    top: 42px;
    left: 0;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 15px;
    font-weight: 500;
}

.sub-nav-home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border-radius: 999px;
    color: inherit;
    transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
    cursor: pointer;
}

.sub-nav-home img {
    width: auto;
    height: 14px;
    display: block;
}

.sub-nav-sep {
    width: 1px;
    height: 14px;
    background: #ddd;
}

.sub-nav-dropdown {
    position: relative;
}

.sub-nav-toggle,
.sub-nav-current {
    display: inline-flex;
    align-items: center;
}

.sub-nav-toggle {
    gap: 8px;
    min-height: 32px;
    padding: 6px 10px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.sub-nav-toggle img {
    width: 14px;
    height: 14px;
    display: block;
    transition: transform 0.2s ease;
}

.sub-nav-dropdown.is-open .sub-nav-toggle img {
    transform: rotate(180deg);
}

.sub-nav-home:hover,
.sub-nav-home:focus,
.sub-nav-toggle:hover,
.sub-nav-toggle:focus,
.sub-nav-dropdown.is-open .sub-nav-toggle {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.sub-nav-home:focus,
.sub-nav-toggle:focus {
    outline: none;
}

.sub-nav-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    z-index: 10;
    min-width: 180px;
    padding: 10px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
    pointer-events: auto;
}

.sub-nav-menu ul {
    display: grid;
    gap: 4px;
}

.sub-nav-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: #555;
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.sub-nav-menu a:hover,
.sub-nav-menu a:focus,
.sub-nav-menu a[aria-current="page"] {
    background: #f2f6fb;
    color: #1d1d1d;
}

.sub-visual-copy {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    justify-items: center;
    text-align: center;
    padding: 88px 0 72px;
}

.sub-visual-copy h2,
.subpage-content h3 {
    margin: 0;
    letter-spacing: -0.03em;
}

.sub-visual-copy h2 {
    color: #fff;
    font-size: clamp(44px, 5.5vw, 56px);
    font-weight: 800;
}

.sub-visual-copy p,
.subpage-content p,
.subpage-content li {
    margin: 0;
    line-height: 1.7;
}

.sub-visual-copy p {
    max-width: 920px;
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.94);
    font-size: 18px;
    line-height: 1.5556;
    letter-spacing: 0.0025em;
    font-weight: 600;
    word-wrap: break-word;
    word-break: keep-all;
}

.sub-visual-watermark {
    position: absolute;
    left: 50%;
    bottom: -8px;
    z-index: 1;
    width: max-content;
    color: rgba(255, 255, 255, 0.1);
    font-size: 70px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
    text-align: center;
    white-space: nowrap;
    transform: translateX(-50%);
    pointer-events: none;
}

.sub-visual-watermark-first,
.sub-visual-watermark-rest {
    display: inline;
}

.subpage-content {
    width: min(90%, 1440px);
    margin: 0 auto;
    padding-top: 42px;
    padding-bottom: 72px;
}

/* #region 반응형 */
@media (max-width: 1280px) {
    .sub-visual-inner {
        min-height: 360px;
        padding: 36px 0 56px;
    }

    .sub-nav {
        top: 36px;
    }

    .sub-visual-copy {
        padding: 68px 0 56px;
    }

    .sub-visual-copy h2 {
        font-size: clamp(40px, 5vw, 56px);
    }

    .sub-visual-copy p {
        margin-top: 14px;
        font-size: 17px;
    }

}

@media (max-width: 1024px) {
    .sub-visual {
        overflow: visible;
        padding-top: 56px;
        z-index: 3;
    }

    .sub-visual-inner {
        min-height: 340px;
        padding: 28px 0 36px;
        overflow: visible;
        z-index: 4;
    }

    .sub-nav {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        flex-wrap: wrap;
        gap: 8px;
        font-size: 13px;
        white-space: normal;
        overflow: visible;
        z-index: 20;
    }

    .sub-nav-home {
        flex: 0 0 auto;
    }

    .sub-nav-sep {
        flex: 0 0 auto;
    }

    .sub-nav-dropdown {
        flex: 0 0 auto;
    }

    .sub-nav-toggle {
        min-height: 34px;
        padding: 7px 12px;
    }

    .sub-nav-menu {
        top: calc(100% + 10px);
        left: 0;
        min-width: 148px;
        max-width: min(180px, calc(100vw - 48px));
        padding: 8px;
        z-index: 30;
    }

    .sub-nav-dropdown:last-child .sub-nav-menu {
        left: 0;
        right: auto;
    }

    .sub-visual-copy {
        position: relative;
        inset: auto;
        display: grid;
        justify-items: flex-start;
        align-content: start;
        align-items: start;
        justify-content: flex-start;
        text-align: left;
        min-height: 0;
        padding-top: 54px;
    }

    .sub-visual-copy h2 {
        font-size: clamp(30px, 8vw, 42px);
    }

    .sub-visual-copy p {
        margin-top: 14px;
        font-size: 15px;
    }

    .sub-visual-watermark {
        left: 0;
        bottom: 0;
        width: 100%;
        color: rgba(255, 255, 255, 0.14);
        font-size: clamp(34px, 8.2vw, 54px);
        line-height: 0.9;
        letter-spacing: -0.04em;
        text-align: left;
        transform: none;
    }

    .sub-visual-watermark-first,
    .sub-visual-watermark-rest {
        display: block;
    }

}

@media (max-width: 768px) {
    .sub-visual {
        overflow: visible;
        padding-top: 56px;
        z-index: 3;
    }

    .sub-visual-inner {
        min-height: 340px;
        padding: 28px 0 36px;
        overflow: visible;
        z-index: 4;
    }

    .sub-nav {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        flex-wrap: wrap;
        gap: 8px;
        font-size: 13px;
        white-space: normal;
        overflow: visible;
        z-index: 20;
    }

    .sub-nav-home {
        flex: 0 0 auto;
    }

    .sub-nav-sep {
        flex: 0 0 auto;
    }

    .sub-nav-dropdown {
        flex: 0 0 auto;
    }

    .sub-nav-toggle {
        min-height: 34px;
        padding: 7px 12px;
    }

    .sub-nav-menu {
        top: calc(100% + 10px);
        left: 0;
        min-width: 148px;
        max-width: min(180px, calc(100vw - 48px));
        padding: 8px;
        z-index: 30;
    }

    .sub-nav-dropdown:last-child .sub-nav-menu {
        left: 0;
        right: auto;
    }

    .sub-visual-copy {
        position: relative;
        inset: auto;
        display: grid;
        justify-items: flex-start;
        align-content: start;
        align-items: start;
        justify-content: flex-start;
        text-align: left;
        min-height: 0;
        padding-top: 54px;
    }

    .sub-visual-copy h2 {
        font-size: clamp(30px, 8vw, 42px);
    }

    .sub-visual-copy p {
        margin-top: 14px;
        font-size: 15px;
    }

    .sub-visual-watermark {
        left: 0;
        bottom: 0;
        width: 100%;
        color: rgba(255, 255, 255, 0.14);
        font-size: clamp(34px, 8.2vw, 54px);
        line-height: 0.9;
        letter-spacing: -0.04em;
        text-align: left;
        transform: none;
    }

    .sub-visual-watermark-first,
    .sub-visual-watermark-rest {
        display: block;
    }

    .subpage-content {
        padding: 44px 0 92px;
    }

    .subpage-section {
        padding: 24px 20px;
        border-radius: 18px;
    }

    .subpage-section h3 {
        font-size: 22px;
    }

}

@media (max-width: 480px) {
    .sub-visual-inner {
        min-height: 260px;
    }

    .sub-nav {
        gap: 6px;
        font-size: 12px;
    }

    .sub-nav-toggle {
        min-height: 32px;
        padding: 6px 10px;
    }

    .sub-visual-copy {
        padding-top: 50px;
    }

    .sub-visual-copy h2 {
        font-size: clamp(28px, 9vw, 36px);
    }

    .sub-visual-copy p {
        max-width: 100%;
        font-size: 14px;
        line-height: 1.6;
    }

    .sub-visual-watermark {
        bottom: 0;
        width: 100%;
        font-size: clamp(24px, 7.6vw, 34px);
        line-height: 0.92;
        letter-spacing: -0.03em;
    }
}

@media (max-width: 690px) and (min-width: 481px) {
    .sub-visual-watermark {
        font-size: clamp(32px, 7.4vw, 46px);
        line-height: 0.9;
    }
}

@media (min-width: 1025px) {
    .site-header .gnb-list > li .sub-menu {
        justify-items: center;
    }

    .site-header .gnb-list > li .sub-menu li {
        width: 100%;
        text-align: center;
    }

    .site-header .gnb-list > li .sub-menu a {
        display: block;
        width: 100%;
        text-align: center;
    }
}
/* #endregion */
