/* ===========================================
   헤더 스타일
   =========================================== */


/* 초기??*/

.fw-header * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* ?�더 ?�체 */

.fw-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #FFFFFF;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}


/* 컨테?�너 */

.fw-header .fw-header-container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 190px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fw-header .fw-header-top-left {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.fw-user-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 4px;
}

.fw-header .fw-user-buttons a {
    font-size: 12px;
    color: #555555;
}

.fw-user-btn-divider {
    color: #AAAAAA;
    border-right: 1px solid #AAAAAA;
    width: 1px;
    height: 11px;
}


/* ===========================================
   상단 영역 (로고, 가이드, 전화번호)
   =========================================== */

.fw-header .fw-header-top {
    height: 80px;
    border-bottom: 1px solid #E5E5EC;
}

.fw-header .fw-header-top .fw-header-container {
    height: 100%;
}


/* 로고 */

.fw-header .fw-logo {
    flex-shrink: 0;
}

.fw-header .fw-logo a {
    display: block;
}

.fw-header .fw-logo img {
    height: 38px;
    width: auto;
    display: block;
}


/* ?�측 ?�단 ?�역 */

.fw-header .fw-header-top-right {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
    margin-left: auto;
    margin-right: -190px;
}


/* 가?�드 버튼??*/

.fw-header .fw-guide-buttons {
    display: flex;
    gap: 8px;
}

.fw-header .fw-guide-btn {
    padding: 12px 16px;
    background: #F7F7FB;
    border: 1px solid #F1F1F5;
    border-radius: 4px;
    color: #555555;
    font-size: 16px;
    font-weight: 500;
    line-height: 1em;
    text-decoration: none;
    transition: all 0.3s ease;
}

.fw-header .fw-guide-btn:hover {
    background: #EFEFEF;
    border-color: #E5E5EC;
}


/* ?�화번호 박스 */

.fw-header .fw-phone-box {
    position: relative;
    padding: 20px 30px;
    background: #006F3F;
    display: flex;
    align-items: center;
    gap: 15px;
    height: 100%;
    animation: phoneBoxColorChange 600ms infinite alternate;
}

@keyframes phoneBoxColorChange {
    0% {
        background: #006F3F;
    }
    100% {
        background: #2A844D;
    }
}

.fw-header .fw-phone-box-inner {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fw-header .fw-phone-box img {
    opacity: 0.2;
}

.fw-header .fw-phone-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 400;
    line-height: 1em;
}

.fw-header .fw-phone-number {
    color: #FFFFFF;
    text-decoration: none;
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.fw-header .fw-phone-prefix {
    font-size: 18px;
    font-weight: 700;
    line-height: 1em;
}

.fw-header .fw-phone-main {
    font-size: 24px;
    font-weight: 700;
    line-height: 1em;
}

.fw-header .fw-phone-number:hover {
    opacity: 0.9;
}


/* ===========================================
   메인 내비게이션
   =========================================== */

.fw-header .fw-nav {
    height: 64px;
    border-bottom: 1px solid #E5E5EC;
    background: #FFFFFF;
    position: relative;
}

.fw-header .fw-nav .fw-header-container {
    height: 100%;
    padding: 0 180px;
}


/* ?�비게이??메뉴 */

.fw-header .fw-nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    height: 100%;
    width: 100%;
}


/* ?�비게이???�이??*/

.fw-header .fw-nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.fw-header .fw-nav-item>a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 5px;
    /* ?�옆 ?�이�?공간 ?�보 */
    color: #111111;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4em;
    text-decoration: none;
    text-align: center;
    position: relative;
    transition: color 0.3s ease;
}


/* ?�이�??��???(JS�??�적 ?�성) - absolute ?�쪽 배치 */

.fw-header .fw-nav-icon {
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    color: #006F3F;
    animation: iconFadeIn 0.3s ease forwards;
}


/* �?�� 검??& 치료 메뉴???�이�??�상 */

.fw-header .fw-nav-item.cheongwon-treatment .fw-nav-icon {
    color: #009705;
}


/* �?�� 검??& 치료 메뉴???�스???�상 */

.fw-header .fw-nav-item.cheongwon-treatment>a {
    color: #009705 !important;
}

.fw-header .fw-nav-icon svg {
    width: 22px;
    height: 18px;
}

@keyframes iconFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}


/* ???��???(JS�??�적 ?�성) - absolute ?�른�?배치 */

.fw-header .fw-nav-dot {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: #006F3F;
    border-radius: 50%;
    animation: dotFadeIn 0.3s ease forwards;
}


/* �?�� 검??& 치료 메뉴??dot ?�상 */

.fw-header .fw-nav-item.cheongwon-treatment .fw-nav-dot {
    background: #009705;
}

@keyframes dotFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

@keyframes iconFadeOut {
    from {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-50%) scale(0.8);
    }
}

@keyframes dotFadeOut {
    from {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-50%) scale(0.8);
    }
}


/* ?�버 ?�과 */

.fw-header .fw-nav-item:hover>a {
    color: #006F3F;
}


/* 마우???�버???�재 ?�이지 ?�과 */

.fw-header .fw-nav-item:hover>a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #006F3F;
}


/* ?�재 ?�이지 ?�시 */

.fw-header .fw-nav-item.current-page>a {
    color: #18522F;
}

.fw-header .fw-nav-item.current-page>a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #18522F;
}


/* ===========================================
   서브메뉴 (호버 시 표시)
   =========================================== */


/* ?�브메뉴 기본 ?��???*/

.fw-header .fw-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 24px 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.3s ease 0.2s;
    pointer-events: none;
    z-index: 998;
}


/* ?�브메뉴 리스??*/

.fw-header .fw-submenu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}


/* ?�브메뉴 링크 */

.fw-header .fw-submenu a {
    display: block;
    color: #555555;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4em;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 8px 16px;
    border-radius: 4px;
}

.fw-header .fw-submenu a:hover {
    color: #006F3F;
    background: rgba(0, 111, 63, 0.05);
}


/* ?�브메뉴 ?�버?�이 */

.fw-header .fw-submenu-overlay {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #F7F7FB;
    /* ?�이??JavaScript�??�적 ?�정 */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 997;
}


/* ?�비게이???�체 ?�버 ??모든 ?�브메뉴?� ?�버?�이 ?�시 */

.fw-header .fw-nav:hover .fw-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.3s ease 0.2s;
}

.fw-header .fw-nav:hover .fw-submenu-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* ?�브메뉴가 ?�겨�??�는 즉시 ?�라지?�록 */

.fw-header .fw-nav:not(:hover) .fw-submenu {
    transition: opacity 0.1s ease, visibility 0.1s ease, transform 0.1s ease;
}


/* ===========================================
   모바일 헤더 스타일
   =========================================== */


/* 모바???�더 기본 */

.fw-header-mobile {
    display: none;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 68px;
    background: white;
    border-bottom: 1px solid #E5E5EC;
    z-index: 2147483646;
}


/* 모바??메뉴 ?�릴 ??body ?�크�??�금 */

body.mobile-menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

.fw-mobile-menu-overlay.active:after {
    content: "";
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: 0.2;
    pointer-events: none;
    z-index: -1;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}


/* 모바??메뉴 ?�릴 ??관리자 �??��? */

body.mobile-menu-open #wpadminbar {
    display: none !important;
}

.fw-mobile-container {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* 모바??로고 */

.fw-mobile-logo img {
    height: 28px;
    width: auto;
    margin-bottom: -7px;
}


/* ?�버�?버튼 */

.fw-mobile-menu-toggle {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.fw-mobile-menu-toggle img {}


/* 모바??메뉴 ?�버?�이 */

.fw-mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
    max-width: 500px;
    z-index: 2147483649;
}

.fw-mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}


/* 모바??메뉴 컨테?�너 */

.fw-mobile-menu {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: white;
}


/* 모바??메뉴 ?�더 */

.fw-mobile-menu-header {
    width: 100%;
    height: 68px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #E5E5EC;
    background: white;
}

.fw-mobile-menu-logo img {
    height: 28px;
    width: auto;
    margin-bottom: -6px;
}

.fw-mobile-menu-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.fw-mobile-menu-close img {
    width: 100%;
}


/* 로그???�원가??버튼 */

.fw-mobile-auth-buttons {
    width: 100%;
    padding: 12px 16px;
    background: white;
    border-bottom: 1px solid #F1F1F5;
    display: flex;
    gap: 3px;
}

.fw-mobile-auth-btn {
    flex: 1;
    padding: 8px 16px;
    background: #F9F9F9;
    border: 1px solid #F1F1F5;
    border-radius: 4px;
    color: #555555;
    font-size: 12px;
    font-weight: 500;
    line-height: 16.8px;
    text-decoration: none;
    text-align: center;
    transition: background 0.3s ease;
}

.fw-mobile-auth-btn:hover {
    background: #EFEFEF;
}


/* 메인 메뉴 컨텐�?*/

.fw-mobile-menu-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}


/* 메뉴 ?�이??*/

.fw-mobile-menu-item {
    width: 100%;
    border-bottom: 1px solid #F1F1F5;
}

.fw-mobile-menu-link {
    width: 100%;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    color: #111111;
    font-size: 14px;
    font-weight: 700;
    line-height: 19.6px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}


/* �?�� 검??& 치료 ?�별 ?��???*/

.fw-mobile-menu-special {
    color: #009705 !important;
}


/* 메뉴 ?�이�?*/

.fw-mobile-menu-icon {
    margin-right: 8px;
}


/* 메뉴 컨텐�??�퍼 (?�이�? ?�스?? dot??그룹?? */

.fw-mobile-menu-content-wrapper {
    display: flex;
    align-items: center;
    gap: 3px;
}


/* 메뉴 dot */

.fw-mobile-menu-dot {
    display: none;
    width: 4px;
    height: 4px;
    background: #009705;
    border-radius: 50%;
}


/* ?��? ?�이�?(+?� - 모양) */

.fw-mobile-menu-toggle-icon {
    width: 10px;
    height: 10px;
    transition: opacity 0.3s ease;
}

.fw-mobile-menu-item-parent.active .fw-mobile-menu-toggle-open {
    display: none;
}

.fw-mobile-menu-item-parent.active .fw-mobile-menu-toggle-close {
    display: block !important;
    filter: brightness(0) invert(1);
}


/* ?�브메뉴 */

.fw-mobile-submenu {
    max-height: 0;
    overflow: hidden;
    background: #F7F7FB;
    transition: max-height 0.3s ease;
}

.fw-mobile-submenu.active {
    max-height: max-content;
}

.fw-mobile-submenu-link {
    display: block;
    padding: 14px 16px 14px 26px;
    color: #999999;
    font-size: 14px;
    font-weight: 400;
    line-height: 19.6px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.fw-mobile-submenu-link:hover {
    color: #555555;
}


/* ?�성?�된 부�?메뉴 */

.fw-mobile-menu-item-parent.active .fw-mobile-menu-link {
    background: #005E32;
    color: white;
}

.fw-mobile-menu-item-parent.active .fw-mobile-menu-link:hover {
    background: #005E32;
}


/* ?�성?�된 메뉴???�이콘과 ?�스???�상 */

.fw-mobile-menu-item-parent.active .fw-mobile-menu-icon {
    color: white;
}

.fw-mobile-menu-item-parent.active .fw-mobile-menu-content-wrapper span {
    color: white;
}

.fw-mobile-menu-item-parent.active .fw-mobile-menu-dot {
    background: white;
}


/* ?�단 가?�드 버튼 */

.fw-mobile-guide-buttons {
    width: 100%;
    padding: 12px 16px;
    background: #F7F7FB;
    display: flex;
    gap: 3px;
}

.fw-mobile-guide-btn {
    flex: 1;
    padding: 12px 16px;
    background: white;
    border: 1px solid #F1F1F5;
    border-radius: 4px;
    color: #555555;
    font-size: 12px;
    font-weight: 500;
    line-height: 16.8px;
    text-decoration: none;
    text-align: center;
    transition: background 0.3s ease;
}

.fw-mobile-guide-btn:hover {
    background: #F9F9F9;
}


/* ?�단 ?�화번호 박스 */

.fw-mobile-phone-box {
    width: 100%;
    height: 80px;
    padding: 15px 30px;
    background: #006F3F;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: phoneBoxColorChange 600ms infinite alternate;
}

@keyframes phoneBoxColorChange {
    0% {
        background: #006F3F;
    }
    100% {
        background: #2A844D;
    }
}

.fw-mobile-phone-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fw-mobile-phone-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 400;
    line-height: 14px;
}

.fw-mobile-phone-number {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.fw-mobile-phone-prefix {
    font-size: 18px;
    font-weight: 700;
    line-height: 18px;
}

.fw-mobile-phone-main {
    font-size: 24px;
    font-weight: 700;
    line-height: 24px;
}

.fw-mobile-phone-box img {
    opacity: 0.2;
}


/* ===========================================
   반응형 (모바일 등 추후 확장 가능)
   =========================================== */

@media (max-width: 1600px) {
    .fw-header .fw-header-container {
        padding: 0 80px;
    }
    .fw-header .fw-nav .fw-header-container {
        padding: 0 60px;
    }
    .fw-header .fw-header-top-right {
        margin-right: -80px;
    }
}

@media (max-width: 1280px) {
    .fw-header .fw-guide-btn {
        font-size: 14px;
        padding: 10px 12px;
    }
    .fw-header .fw-phone-label {
        font-size: 12px;
    }
    .fw-header .fw-phone-prefix {
        font-size: 16px;
    }
    .fw-header .fw-phone-main {
        font-size: 20px;
    }
    .fw-header .fw-nav-item>a {
        font-size: 15px;
    }
    .fw-header .fw-nav-menu {
        gap: 12px;
    }
    /* PC ?�더 ?��? */
    .fw-header .fw-header-top {
        display: none;
    }
    .fw-header .fw-nav {
        display: none;
    }
    /* 모바???�더 ?�시 */
    .fw-header-mobile {
        display: block;
    }
    /* ?�화번호 박스 ?��? */
    .fw-header .fw-phone-box {
        display: none !important;
    }
}

@media (max-width: 1024px) {
    .fw-header .fw-guide-btn {
        font-size: 14px;
        padding: 10px 12px;
    }
    .fw-header .fw-phone-label {
        font-size: 12px;
    }
    .fw-header .fw-phone-prefix {
        font-size: 16px;
    }
    .fw-header .fw-phone-main {
        font-size: 20px;
    }
    .fw-header .fw-nav-item>a {
        font-size: 15px;
    }
    .fw-header .fw-nav-menu {
        gap: 12px;
    }
    /* PC ?�더 ?��? */
    .fw-header .fw-header-top {
        display: none;
    }
    .fw-header .fw-nav {
        display: none;
    }
    /* 모바???�더 ?�시 */
    .fw-header-mobile {
        display: block;
    }
    /* ?�화번호 박스 ?��? */
    .fw-header .fw-phone-box {
        display: none !important;
    }
}