/* hidden_gnb */
.hidden_bg{
    opacity: 0;
    pointer-events: none;
    width: 100%;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 999999;
    transition: all .3s ease-in-out;
    
}
.hidden_bg.on{
    opacity: 1;
    pointer-events: auto;
}
.hidden_menu{
    position: fixed;
    top: 75px;
    right: 0;
    width: 100%;
    height: calc(100vh - 75px);

    /* 배경 화이트 + 연하게 */
    background-color: rgba(255, 255, 255, 0.5);

    /* 뒤 배경 강한 블러 */
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);

    /* 배경 이미지 유지 */
    background-image: url('../img/gnb-bg-logo.png');
    background-repeat: no-repeat;
    background-position: right 0px bottom 250px;
    background-size: 650px;

    box-sizing: border-box;

    transform: translateY(-100%);
    transition: transform .3s ease-in-out;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    overflow-y: auto; /* scroll 대신 auto 추천 */
}

.hidden_bg.on .hidden_menu{
    transform: translateX(0%);
}
.close_menu{
    display: flex;
    justify-content: flex-end;
    margin: 2rem 2rem 0 0;
}
.hidden_gnb{
    font-size: 1.5rem;
    text-align: center;
}
.hidden_gnb>li:not(:last-child){
    border-bottom: 1px solid #fff;
}
.hidden_gnb>li>a{
    display: block;
    font-size: 1.7rem;
    padding: 10px 10px;
    font-weight: 600;  
}
.hidden_gnb>li>a.on{
    color: var(--color-main-orange);
    background: #fff;
}
.hidden_gnb .top_0{
    display: none;
    background: rgb(255, 255, 255,0.6);
    padding: 20px 36px;
}
.hidden_gnb .top_0>li>a{
    font-weight: 500;
    display: block;
    margin-bottom: 10px;
}
.hidden_gnb .top_0>li>ul{
    padding-left: 10px;
    padding-bottom: 10px;
    font-size: .9em;
}
.hidden_gnb .top_0>li>ul>li:not(:last-child){margin-bottom: .5rem;}
.hidden_gnb .top_0 li:last-of-type a{
    margin-bottom: 0px;
}
.hidden_gnb .on .top_0 {
    display: block; /* on 클래스가 있는 메뉴의 하위 메뉴만 보여집니다. */
}
.hidden_bottom{
    background: #092C4C;
    color: #fff;
    height: 22vh;
    max-height: 300px;
    width: 100%;
    box-sizing: border-box;
    padding: 2rem;
}
.hidden_bottom>div{
    display: flex;
    flex-direction: column;
    height: 100%;
}
.hidden_bottom .call{
    width: 13px;
    margin-right: 5px;
} 
.hidden_bottom a{
    color: rgb(52, 62, 71);
    font-weight: bold;
    font-size: 2rem;
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
}
.hidden_bottom .time_table{
    font-size: 16px;
    font-weight: 600;
    color: #fff;;
    line-height: 1.4;
}
.hidden_bottom .time_table li{
    display: flex;
    width: 100%;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}
.hidden_bottom .time_table b{
    width: 80px;
    display: flex;
    justify-content: space-between;
}
.time_table p{
    margin-top: 15px;
    font-size: 1.4rem;
}
/* header */
.header_container{
    width: 100%;
    height: 0;
}
header{
    height: 100px;
    width: 100%;
    max-width: 100%;
    /* background: rgb(255, 255, 255, 0.9); */
    background: rgba(255, 255, 255, 0.2);  /* 완전 transparent X */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-size: 22px;
    font-weight: 400;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    /* padding: 2rem 0; */
    transition: all .5s ease ;
    z-index: 100;
    box-shadow: 0 5px 5px rgba(0,0,0,0.02);
    /* border-bottom: 1px solid rgba(255, 255, 255, 0.6); */
}
header.scrolled-top {
    width: 98%;
    height: 90px;
    margin: 0 auto;
    border-radius: 10px 10px 10px 10px;
    background: rgb(255, 255, 255, 1);
}
.h_logo{max-width: 250px;line-height: 0;}

header .h_left{
    height: 100%;
    display: flex;
    /* justify-content: space-between; */
    align-items: center;
    gap: 5rem;
    font-family: 'Paperlogy';
}
header .header_inner{
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin:0 auto;
    max-width: 1700px;
    width: 95%;
}
.header_menu{
    display: flex;
}
.header_menu .gnb{
    display: flex;
}
.header_menu .gnb>li>a{
    margin: 1.5rem 2rem;
    line-height: 2;
    display:inline-block;
    position: relative;
    perspective: 800px;
}

/* 텍스트 flip 영역: 크기 고정 */
.flip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
    position: relative;
    /* height: 30px; */
}

/* 앞/뒷면은 겹쳐놓고 3D 회전만 다르게 */
.flip .front,
.flip .back {
    backface-visibility: hidden;
    transition: color 0.3s ease;
    display: inline-block;
}

/* 앞면은 그대로 */
.flip .front {
    transform: rotateY(0deg);
}

/* 뒷면은 회전되어 대기 */
.flip .back {
    transform: rotateX(180deg);
    color: var(--color-main-orange);
    position: absolute;
    top: 0;
    left: 0;
}

/* 호버 시 회전 */
.header_menu .gnb > li:hover .flip {
    transform: rotateX(180deg);
}

/* 1뎁스 hover 동그라미 텍스트 돌아가는 이벤트 */
.header_menu .gnb>li>a{
    height: 100%;
    display: inline-block;
    transition: transform .4s ease, color .3s ease;
    position: relative;
}

.header_menu .gnb>li>a::before{
    content: '';
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #FF6A00 ;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s ease;
}
.header_menu .gnb>li:hover>a::before{
    transform: translate(-50%, -50%) scale(1);
}
.header_menu .gnb>li:hover>a { 
    color: var(--color-main-orange);
}

/*  */
.header_menu .gnb>li{
    /* position: relative; */
    padding: 1.5rem 0;
}
.header_menu .gnb>li:hover .gnb_2depth_wrap{
    opacity: 1;
    pointer-events: auto;
}
.header_menu .gnb>li>.gnb_2depth_wrap{
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 100px;
    background: #fff url('../img/gnb-bg-logo.png') no-repeat 100% 100% / contain;
    width: 100%;
    min-height: 495px;
    left: 0;
    display: flex;
    border-radius: 10px 0px 0px 10px;
}
.header_menu .gnb>li>.gnb_2depth_wrap.scrolled-top{
    position: absolute;
    top: 90px;
    left: 0;
    border-radius: 10px 10px 10px 10px;
}
.depth_2_left{
    width: 50%;
}
.depth_2_left{
    background:#092C4C;
    color: #fff;
}
.depth_2_left.scrolled-top{
    border-radius: 10px 0px 0px 10px;
}
.depth_2_left_cover{
    max-width:700px ;
    margin-left: auto;
    margin-right: 75px;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.depth_2_left_cover > div{
    width: 100%;
} 
.depth_2_left_l{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 240px;
    gap: 90px;
}
.h_telnum{
    border-radius: 31px;
    background: #FF6A00;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    font-size: 26px;
    font-weight: 700;
    padding: 10px 20px;
}
.h_telnum img{width: 1.2em;}
.depth_2_tit{
    color: #FF6A00;
    font-size: 48px;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1;
}

.depth_2_tit img{max-width: 1em;}
.gnb_2depth_wrap ol li{
    display: flex;
    align-items: center;
    gap: 4.5rem;
    font-size: 25px;
    font-weight: 300;
    line-height: 1;
    margin-bottom: 2rem;
}
.gnb_2depth_wrap ol li em{
    font-weight: 300;
}
.gnb_2depth_wrap ol li em b{
    font-weight: 500;
}
.gnb_2depth_wrap ol li span{
    font-weight: 600;
    width: 155px;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    
}

.clinic-time-ex{    
    font-size: 20px;
    font-weight: 300;
    margin-bottom: 10px;
    line-height: 1;
}
.clinic-time-ex.m40{
    margin-bottom: 40px;
}
.gnb-call{
    width: fit-content;
    padding: 10px 25px;
    border-radius: 10px;
    background: #FFF;
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    
}
.gnb-call p {
    font-size: 25px;
    font-weight: 700;
    color: var(--color-logo-dark-blue);
}
.gnb-call img{
    width: 24px;
    height: 24px;
    aspect-ratio: 1/1;
}

/*  */
.header_menu .gnb_2depth_wrap .depth_2_right{
    padding: 110px 0px 0px 90px;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 25px;
}
.header_menu .gnb_2depth_wrap ul li:not(:last-of-type){
    margin-bottom: 2rem;
}
.depth_2_right ul li a{
    position: relative;
    display: inline-block;
}
.depth_2_right ul li a::after{
    content: "";
    position: absolute;
    left: 50%;
    bottom: -2px;
    width: 0;
    height: 1px;
    background-color: currentColor;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}
.depth_2_right ul li a:hover::after{
    width: 100%;
}


.header_menu .gnb_2depth_wrap ul li{font-weight: 400;color:#656565;}

.depth_3_wrap li{min-width: 200px;}

.h_right{
    display: none;
}
header .h_q_icon{
    display: flex;
    gap: 1rem;
    align-items: center;
    line-height: 0;
}
header .h_q_icon img{
    max-width: 50px;
}
header .h_q_icon .h_call{
    display: flex;
    align-items: center;
    gap: 1rem;
}
header .h_q_icon .h_call_txt{
    line-height: 1;
}
header .h_q_icon .h_call_txt i{
    font-size: 1.6rem;
    display: block;
    margin-bottom: .5rem;
}
header .h_q_icon .h_call_txt b{
    font-size: 2.4rem;
    display: block;
    color: #003686;
}
header .open_menu{
    display: none;
    /* padding-left: 50px; */
    cursor: pointer;
    align-items: center;
}


.header_menu .gnb > li > a > span::before{
    content: "";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-main-orange);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 99999;
}

/* active일 때만 표시 */
.header_menu .gnb > li.active > a > span::before{
    opacity: 1;
}

@media (min-width:0px) and (max-width:1520px){
    
    .hover{max-width: 270px;}
    .header_menu .gnb_2depth_wrap .depth_2_right {
        padding: 60px;
        padding-bottom: 0;
    }
    .depth_2_left_l {
        max-width: 240px;
    }
    .h_telnum {
        font-size: 22px;
    }
    .depth_2_left_cover {
        gap: 40px;
        width: 90%;
        margin-left: 5%;
    }
}

@media (min-width:0px) and (max-width:1450px){
    header{
        font-size: 20px;
    }
    .header_menu .gnb>li>a{
        margin: 0rem 1rem;
    }
    
}



@media (min-width:0px) and (max-width:1280px){
    /* .header_container{height: 65px;} */
    header {
        height: 75px;
    }
    header.scrolled-top{
        height: 70px;
    }
    .header_inner .header_menu .gnb{
        display: none;
    }
    header .h_q_icon img {
        max-width: 40px;
    }
    
    header{
        background: #fff;
        /* background: rgba(0,0,0,0.1); */
        /* border-bottom: 1px solid rgba(255, 255, 255, 0.6); */
    }
    header .gnb>li>a{
        color: #000;
    }
    
    header .login_icon,
    
    header .h_logo{
        filter: none;
        max-width: 200px;
    }
    
    header.scroll,
    header:hover{
        background: #ffffff;
    }
    header .open_menu{
        display: flex;
    }
    .h_right {
  display: flex;
  align-items: center;
}

header .open_menu {
  display: flex;
  cursor: pointer;
}

/* SVG 크기 */
.open_menu svg {
  width: 50px;
  height: 50px;
}

/* 햄버거 애니메이션 */
.ham {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 400ms;
  user-select: none;
}

.ham .line {
  fill: none;
  stroke: #000;
  stroke-width:4;
  transition: stroke-dasharray 400ms, stroke-dashoffset 400ms;
}

/* ham6 패턴 */
.ham6 .top { stroke-dasharray: 40 172; }
.ham6 .middle { stroke-dasharray: 40 111; }
.ham6 .bottom { stroke-dasharray: 40 172; }

.ham6.active .top { stroke-dashoffset: -132px; }
.ham6.active .middle { stroke-dashoffset: -71px; }
.ham6.active .bottom { stroke-dashoffset: -132px; }

    
    
}

@media (min-width:0px) and (max-width:900px){
    .h_call_txt{display: none;}
    .hidden_menu{
        background-size: 85vw;
    }
}
@media (min-width:0px) and (max-width:500px){
    .h_logo{width: 200px;}
}
@media (min-width:0px) and (max-width:350px){
    header .h_q_icon{display: none;}
}