header {
    width: 100%;
    height: 80px;
    position: fixed;
    top: 0;
    left: 0;
    background-color: transparent;
    z-index: 1000;
	display: flex;
    align-items: flex-end;
    padding-bottom: 8px;
	box-sizing: border-box;
    transition: all 0.3s ease;
}
header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.95); 
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  
}
.h-wrap {
	width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    position: relative;
}
 
.m-gnb-layer
{ display: none; } 

.logo {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    flex-shrink: 0;
	height: 50px;

}
.logo h1 {
   	margin: 0;
    max-width: 200px; 
    width: fit-content; 
    height: 100%;
	min-width: 100px
}
.logo h1 a {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
}
.logo img{
    max-width: 200px;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
}
.gnb-wrap {
  	flex: 1; 
    display: flex;
    justify-content: center;
	padding: 0 20px;
}
.gnb-wrap > ul {
    display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	max-width: 600px;
	gap: clamp(20px, 2.5vw, 60px); 
    
}
.sc-gnb {
    position: relative; 
}
.parentA {
	position: relative;
    display: block;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    color: #111;
	white-space: nowrap; 
    transition: color 0.2s ease;
	padding: 2px 10px;
}
.parentA::after{
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -20px;
	height: 20px;
	background: transparent;
}

.gnb-in {
   	display: none;
    position: absolute;
    top: 45px; 
    left: 50%;
    width: 170px;
    transform: translateX(-50%);
    padding: 16px;
    border-radius: 0 0 4px 4px;
    background-color: #FFF;
    box-shadow: 1px 8px 10px rgba(0, 0, 0, 0.25);
    list-style: none;
    z-index: 10;
}
.gnb-in li a {
    display: block;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #7A7A7A;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.2s ease;
    text-align: center;
}

.gnb-in:not(:has(li)) {
    display: none !important;
}

.log {
    flex: 1; 
    display: flex;
    justify-content: flex-end;
}

.log ul {
    display: flex;
	align-items: center;
    gap: 16px;
    list-style: none;
}
.log__item a{
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #7A7A7A; 
}

.custom-color{
	color: var(--brand-color) !important;
}
.is-admin b{
	height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 0 16px;
    border: 1px solid #FF4D4D;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
	color:#FF4D4D;
}

.m-menu-btn {
    display: none; /* 기본은 숨김 */
    width: 24px;
    height: 20px;
    flex-direction: column;
    justify-content: space-between;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
	position: relative;
	z-index: 9999;
}

.m-menu-btn .line {
    width: 100%;
    height: 2px;
    background-color: #111;
    transition: all 0.3s;
}


.mobile-only, 
.m-gnb-layer { 
    display: none; 
}

/* 호버스타일 */
@media (hover: hover) and (min-width: 1024px) {
    .sc-gnb:hover .gnb-in { 
        display: flex; 
        flex-direction: column; 
        gap: 16px; 
    }
    .sc-gnb:hover .parentA {
        box-shadow: inset 0 -4px 0 0 var(--brand-color);
    }
    .gnb-in li a:hover {
        color:var(--brand-color); font-weight: 700; 
    }
    .log__item:hover a {
        font-weight: 700; 
    }
}

/* 반응형 */
@media (max-width: 1240px) {
	header {
			padding-inline: clamp(15px, 5vw, 30px);
		}
}

@media (max-width: 1023px) {
	header {
        height: 80px; 
        display: flex; 
        align-items: center; 
        padding-bottom: 0; 
    }

    .h-wrap {
        height: 80px ;
        align-items: center;
    }
    .pc-only { display: none; }

    .m-menu-btn {
        display: flex;
        width: 25px;         
        height: 20px;          
        flex-direction: column;
        justify-content: space-between;
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        z-index: 1001;      
    }
    .m-menu-btn .line {
        display: block;
        width: 100%;
        height: 3px;            
        background-color: #111;
        border-radius: 10px;
        transition: all 0.3s;
    }
    .m-gnb-layer {
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100%;
        z-index: 9999;
        display: block ;
        visibility: hidden;         
        pointer-events: none;     
        transition: visibility 0.3s;
    }
    .m-gnb-top {
        padding: 25px 4vw;
        display: flex;
        justify-content: flex-end;
    }
    .m-close-btn {
        font-size: 30px; 
        font-weight: 600;
        line-height: 1;
        background: none; border: none;
        color: #111; cursor: pointer;
    }
    .m-gnb-layer.active {
        visibility: visible;
        pointer-events: auto;
    }
    .m-gnb-dim {
        position: fixed;
        width: 100vw; 
        height: 100vh;
        top: 0; 
        left: 0;
        background-color: rgba(0, 0, 0, 0.6);
        opacity: 0;
        transition: opacity 0.3s;
    }

    .m-gnb-layer.active .m-gnb-dim {
        opacity: 1;
    }

    .m-gnb-content {
        position: fixed;
        top: 0; 
        right: -80%;
        width: 80%; 
        height: 100dvh;
        background-color: #fff;
        display: flex;
        flex-direction: column;
        transition: right 0.3s ease-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    }

    .m-gnb-layer.active .m-gnb-content {
        right: 0 ;
    }
    .m-gnb-nav {
        flex: 1;
        overflow-y: auto;
        background: #fbfbfb;
        min-height: 0;
    }
    .m-depth1 {
        display: block;
        list-style: none;
        padding: 0; margin: 0;
    }
    .m-depth1 .parentA {
        display: flex ;
        justify-content: space-between; 
        align-items: center;
        
        padding: 16px 6vw 16px 4vw;
        font-size: 16px; 
        font-weight: 500; 
        color: #111;
        position: relative;
        text-align: left ;
    }
    .m-depth1 .parentA::after {
        content: "";
        position: static;
        display: block;
        width: 8px; 
        height: 8px;
        border-top: 2px solid #c2c2c2;
        border-right: 2px solid #c2c2c2;
        transform: rotate(135deg);
    }
    .m-depth1 .sc-gnb.is-active .parentA::after {
    transform: rotate(-45deg); 
    border-color: var(--brand-color);
    }
    .m-depth1 .parentA::before { display: none  }
    .m-depth1 .parentA:active {
        color:var(--brand-color);
    }
    .m-depth1 .gnb-in {
        position: static;  
        transform: none;     
        width: auto;          
        box-shadow: none;
        background: transparent;
        padding: 0;
    }
    .m-depth1 .sc-gnb.is-active > .gnb-in {
        display: block;
        height: auto;
        visibility: visible;
    }
    .m-depth1 .gnb-in li a {
    display: block;
    padding: 10px 4vw 10px 8vw; 
    color: #111;
    text-align: left;
    }

    .m-user-info{
    padding: 28px 20px 40px;
    text-align: center;
    border-bottom: 1px solid #eae8e8;
    }

    .m-user-info__title{
    margin: 0 0 18px;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    }

    .m-user-info__title strong{
    font-size: 20px;
    font-weight: 700;
    line-height: 28px;
    }

    .m-user-info__actions{
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    }

    .m-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    height: 40px;
    padding: 0 18px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    user-select: none;
    }

    .m-btn--primary{
    background: var(--brand-color);
    color: #fff;
    }

    .m-btn--ghost{
    border: 1px solid var(--brand-color);
    color: var(--brand-color);
    }
.m-gnb-footer{
    padding: 16px 6vw 24px 4vw;
    background: #fbfbfb;
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0
}

.m-gnb-footer__link {
    padding: 4px 8px;
    border:1px solid #c2c2c2;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 400;
    color: #7A7A7A;
}

}

