#header {
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 9;
    /* all-menu-panel이 최상위에 표시되도록 isolation 설정 */
}

#header .bottom .all-menu {
    position: relative;
    z-index: 1;
    /* stacking context 분리 */
}

#header .top {
    background: linear-gradient(90deg, #64b93d 0%, #f3b422 100%);
    color: #ffffff;
    font-size: 0.938rem;
}

.winter #header .top {
    background: linear-gradient(90deg, #a6281d 0%, #f3b422 100%);
    color: #ffffff;
    font-size: 0.938rem;
}

#header .top .inner {
    position: relative;
    --header-top-spacing: 8px;
    margin: 0 auto;
    padding: var(--header-top-spacing) 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

#header .top .img-1 {
    position: absolute;
    bottom: -26px;
    left: -114px;
    width: 115px;
    height: 80px;
}

#header .top .link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0 10px;
    
}

#header .top .link-list a {
    color: #ffffff;
    font-weight: 600;
    letter-spacing: -0.3px;
    position: relative;
    padding: 4px 0;
    transition: color 0.2s ease-in-out;
    font-family: "gmarketSansLight";
}

#header .top .link-list a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: calc((var(--header-top-spacing) * -1) - 3px);
    width: 100%;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.9);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease-in-out;
}


#header .top .link-list a:hover::after,
#header .top .link-list a:focus-visible::after {
    transform: scaleX(1);
}

#header .top .link-list a:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.85);
    outline-offset: 2px;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.2);
}

#header .top .rbox {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

#header .top .wd-list {
    /* background: #fff; */
    display: flex;
    align-items: stretch;
    gap: 12px;
    padding: 0;
    border-radius: 15px;
    background-color: #fff;
    box-shadow: 0 6px 18px rgba(22, 22, 22, 0.08);
    font-family: "gmarketSansLight";
}

#header .top .wd-list .tit p {
    position: relative;
    font-weight: 700;
    background-color: #260068;
    padding: 10px 20px 10px 32px;
    border-radius: 10px 0 0;
    line-height: 1.1;
    color: #ffffff;
    min-width: 135px;
}

#header .top .wd-list .tit p::before {
    display: block;
    content: "";
    width: 44px;
    height: 63px;
    background: url("../images/common/hd-top-img-2.svg") no-repeat center center / contain;
    position: absolute;
    bottom: -15px;
    left: -23px;
}

#header .top .wd-list ul {
    display: flex;
    gap: 10px;
    padding-right: 10px;
}

#header .top .wd-list li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #333333;
    font-weight: 600;
    line-height: 1.1;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

#header .top .wd-list li span {
    font-weight: 700;
    letter-spacing: -0.2px;
    padding: 5px 10px;
    border-radius: 50px;
    color: #fff;
}

#header .top .wd-list li:first-child::after {
    content: "";
    width: 20px;
    height: 20px;
    background: url("../images/common/icon-wd-sunny.svg") no-repeat center center / contain;
}

#header .top .wd-list li.temp {
    display: none;
    position: relative;
    padding: 0 18px;
}

#header .top .wd-list li.temp::before,
#header .top .wd-list li.temp::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 1px;
    height: 14px;
    background-color: var(--line);
    transform: translateY(-50%);
}

#header .top .wd-list li.temp::before {
    left: 0;
}

#header .top .wd-list li.temp::after {
    right: 0;
}

#header .top .wd-list li.temp span {
    background: linear-gradient(135deg, #ff6a7b 0%, #ff3d60 100%);
    color: #ffffff;
}

#header .top .wd-list li.dust span {
    background: linear-gradient(135deg, #51db9b 0%, #00b068 100%);
    font-weight: 700;
}

#header .top .size-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #333333;
    background-color: rgba(255, 255, 255, 0.96);
    border-radius: 15px;
    padding: 4px 10px;
    font-weight: 600;
    border: 1px solid rgba(16, 16, 16, 0.08);
    box-shadow: 0 10px 20px rgba(22, 22, 22, 0.1);
}

#header .top .size-btn button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #555;
    background: #ffffff;
    color: #555;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

#header .top .size-btn button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}

#header .top .size-btn button:focus-visible {
    outline: 3px solid #4a8fcb;
    outline-offset: 2px;
}

#header .top .size-btn p {
    font-size: 0.938rem;
    font-family: "GmarketSansMedium";
    margin-top: 4px;
}

#header .top .size-btn.ctrst button.dark{
    color: #fff;
    background-color: #333;
}


#header .top .img-3 {
    position: absolute;
    bottom: -3px;
    right: -59px;
    width: 70px;
    height: 64px;
}

#header .top .log-list {
    display: flex;
    align-items: center;
    gap: 10px;
}

#header .top .log-list li {
    display: inline-flex;
    position: relative;
}

#header .top .log-list li:first-child{
    padding-right: 10px;
}

/* 첫 번째 항목 뒤에 구분선 추가 */
#header .top .log-list li:first-child::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 14px;
    background-color: rgba(255, 255, 255, 0.5);
}

#header .top .log-list li a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #ffffff;
    font-weight: 600;
    font-family: "gmarketSansMedium";
}

body.no-scroll {
    overflow: hidden;
}

#header .bottom {
    padding: 28px 0 54px;
}

#header .bottom .inner {
    position: relative;
    margin: 0 auto;
    padding: 10px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    background-color: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(102, 57, 16, 0.18);
}

#header .bottom .logo a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: "GmarketSansBold";
    font-size: 1.25rem;
    color: #2c1365;
    position: relative;
    transform: translateY(-5px);
}

#header .bottom .gnb {
    flex: 1 1 auto;
}

#header .bottom .gnb>ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
    
}

#header .bottom .gnb>ul>li {
    position: relative;
}

#header .bottom .gnb>ul>li>a {
    display: inline-flex;
    align-items: center;
    font-family: "GmarketSansMedium";
    font-size: 1rem;
    color: #1c1c1c;
    padding: 8px 0;
    position: relative;
    transition: color 0.2s ease-in-out;
}

#header .bottom .gnb>ul>li>a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #2c1365;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease-in-out;
}

#header .bottom .gnb>ul>li>a:hover,
#header .bottom .gnb>ul>li>a:focus-visible,
#header .bottom .gnb>ul>li.is-open>a {
    color: #2c1365;
}

#header .bottom .gnb>ul>li>a:hover::after,
#header .bottom .gnb>ul>li>a:focus-visible::after,
#header .bottom .gnb>ul>li.is-open>a::after {
    transform: scaleX(1);
}

#header .bottom .gnb>ul>li .depth {
    position: absolute;
    left: 50%;
    top: calc(100% + 16px);
    transform: translate(-50%, 0);
    min-width: 200px;
    background-color: #ffffff;
    border-radius: 16px;
    padding: 16px 16px;
    box-shadow: 0 16px 32px rgba(43, 25, 11, 0.18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
    z-index: 10;
}

#header .bottom .gnb>ul>li .depth ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
    
}

#header .bottom .gnb>ul>li .depth a {
    font-family: "GmarketSansMedium";
    color: #404040;
    font-size: 0.95rem;
    line-height: 1.2;
    transition: color 0.2s ease-in-out;
}

#header .bottom .gnb>ul>li .depth a:hover,
#header .bottom .gnb>ul>li .depth a:focus-visible {
    color: #2c1365;
}

#header .bottom .gnb>ul>li.is-open .depth {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 6px);
}

#header .bottom .all-menu button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 5px 12px;
    border-radius: 15px;
    border: 1px solid var(--line);
    background-color: rgba(255, 255, 255, 0.92);
    color: #6c665a;
    font-family: "GmarketSansMedium";
    font-size: 0.94rem;
    line-height: 1;
    cursor: pointer;
    transition: box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out;
}

#header .bottom .all-menu button .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #368149;
    position: relative;
}

#header .bottom .all-menu button .icon::before,
#header .bottom .all-menu button .icon::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 16px;
    height: 2px;
    border-radius: 1px;
    background-color: #ffffff;
    transform: translateX(-50%);
}

#header .bottom .all-menu button .icon::before {
    top: 14px;
    box-shadow: 0 4px 0 #ffffff;
}

#header .bottom .all-menu button .icon::after {
    top: 22px;
}



#header .bottom .all-menu button:focus-visible {
    outline: 3px solid rgba(44, 19, 101, 0.4);
    outline-offset: 3px;
}

#header .bottom .all-menu {
    position: relative;
    z-index: 99999;
    /* stacking context 분리 */
}

#header .bottom .all-menu-panel {
    position: fixed;
    inset: 0;
    background-color: #ffffff;
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    /* stacking context를 생성하여 z-index가 제대로 작동하도록 */
    transform: translateZ(0);
    isolation: isolate;
    will-change: transform;
}

#header .bottom .all-menu-panel.is-active {
    pointer-events: auto;
    opacity: 1;
}

#header .bottom .all-menu-panel .panel-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 40px 60px;
    box-sizing: border-box;
    z-index: 11;
}

/* 헤더 영역 */
#header .bottom .all-menu-panel .panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 80px;
}

#header .bottom .all-menu-panel .panel-logo .logo {
    margin: 0;
    font-family: "GmarketSansBold";
    font-size: 1.5rem;
    color: #000000;
}

#header .bottom .all-menu-panel .panel-close {
    width: 50px;
    height: 50px;
    border: none;
    background: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: opacity 0.2s ease-in-out;
    background-color: var(--purple);
    position: relative;
}

#header .bottom .all-menu-panel .panel-close span {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

#header .bottom .all-menu-panel .panel-close span::before,
#header .bottom .all-menu-panel .panel-close span::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 2px;
    background-color: #ffffff;
    transform-origin: center;
    transition: transform 0.2s ease-in-out;
}

#header .bottom .all-menu-panel .panel-close span::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

#header .bottom .all-menu-panel .panel-close span::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

#header .bottom .all-menu-panel .panel-close:hover {
    opacity: 0.7;
}

/* 본문 영역 */
#header .bottom .all-menu-panel .panel-body {
    display: flex;
    flex: 1;
    gap: 60px;
    position: relative;
}

#header .bottom .all-menu-panel .panel-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 600px;
}

#header .bottom .all-menu-panel .panel-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#header .bottom .all-menu-panel .menu-item {
    margin: 0;
    padding: 0;
    position: relative;
}

#header .bottom .all-menu-panel .menu-item.has-depth {
    margin-bottom: 8px;
}

#header .bottom .all-menu-panel .panel-trigger {
    display: block;
    font-family: "GmarketSansBold";
    font-size: 2.5rem;
    text-decoration: none;
    padding: 20px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: opacity 0.2s ease-in-out;
    line-height: 1.2;
    position: relative;
    color: #333;
}

#header .bottom .all-menu-panel .panel-trigger:hover {
    opacity: 0.7;
}

#header .bottom .all-menu-panel .panel-trigger::after {
    content: "";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    width: 24px;
    height: 24px;
    background: url("../images/common/arr-right.svg") no-repeat center center / contain;
    transition: transform 0.3s ease-in-out;
}

#header .bottom .all-menu-panel .menu-item.has-depth.is-expanded .panel-trigger::after,
#header .bottom .all-menu-panel .menu-item.has-depth[aria-expanded="true"] .panel-trigger::after {
    transform: translateY(-50%) rotate(90deg);
}

#header .bottom .all-menu-panel .panel-link {
    display: block;
    font-family: "GmarketSansBold";
    font-size: 2.5rem;
    color: #000000;
    text-decoration: none;
    padding: 12px 0;
    transition: opacity 0.2s ease-in-out;
    line-height: 1.2;
}

#header .bottom .all-menu-panel .panel-link:hover {
    opacity: 0.7;
}

/* 2차 메뉴 (PC 버전 - 옆에 표시) */
#header .bottom .all-menu-panel .panel-depth {
    position: absolute;
    left: 100%;
    top: 0;
    margin-left: 80px;
    min-width: 300px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-20px);
    /* transition 제거 - GSAP로 처리 */
}

#header .bottom .all-menu-panel .menu-item.has-depth.is-expanded .panel-depth {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

#header .bottom .all-menu-panel .panel-depth ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#header .bottom .all-menu-panel .panel-depth li {
}

#header .bottom .all-menu-panel .panel-depth a {
    display: block;
    font-family: "GmarketSansMedium";
    font-size: 1.2rem;
    color: #666666;
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.2s ease-in-out;
    line-height: 1.4;
    font-weight: 400;
}

#header .bottom .all-menu-panel .panel-depth a:hover {
    color: #000000;
}

/* 모바일 버전 - 아코디언 방식 (GSAP로 애니메이션 처리) */
#header .bottom .all-menu-panel.is-accordion .panel-depth {
    position: static;
    margin-left: 0;
    margin-top: 0;
    min-width: auto;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    /* transition 제거 - GSAP로 처리 */
}

#header .bottom .all-menu-panel.is-accordion .menu-item.has-depth.is-expanded .panel-depth {
    max-height: 1000px;
    margin-top: 24px;
    opacity: 1;
    visibility: visible;
    display: block !important;
}

/* 모바일에서 hidden 속성이 있어도 GSAP로 제어하는 경우를 위해 */
#header .bottom .all-menu-panel.is-accordion .menu-item.has-depth.is-expanded .panel-depth[hidden] {
    display: block !important;
    max-height: 1000px;
    margin-top: 24px;
    opacity: 1;
    visibility: visible;
}

/* 모바일에서 2차 메뉴가 항상 보이도록 */
#header .bottom .all-menu-panel.is-accordion .panel-depth {
    display: block !important;
}

/* 모바일에서 is-expanded일 때 확실히 보이도록 */
#header .bottom .all-menu-panel.is-accordion .menu-item.has-depth.is-expanded .panel-depth,
#header .bottom .all-menu-panel.is-accordion .menu-item.has-depth.is-expanded .panel-depth[hidden] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-height: 1000px !important;
    margin-top: 24px !important;
}

/* 모바일에서도 화살표 표시 */
#header .bottom .all-menu-panel.is-accordion .panel-trigger::after {
    display: block;
}

/* 하단 링크 */
#header .bottom .all-menu-panel .panel-footer {
    display: flex;
    gap: 24px;
    margin-top: 60px;
}

#header .bottom .all-menu-panel .footer-link {
    font-family: "GmarketSansMedium";
    font-size: 0.95rem;
    color: #000000;
    text-decoration: none;
    transition: opacity 0.2s ease-in-out;
    position: relative;
}

#header .bottom .all-menu-panel .footer-link:first-child {
    padding-left: 0;
}

#header .bottom .all-menu-panel .footer-link:last-child {
    padding-right: 0;
}

/* 구분선 추가 */
#header .bottom .all-menu-panel .footer-link:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 14px;
    background-color: rgba(0, 0, 0, 0.3);
}

#header .bottom .all-menu-panel .footer-link:hover {
    opacity: 0.7;
}

/* 오른쪽 세로 텍스트 */
#header .bottom .all-menu-panel .panel-side {
    position: absolute;
    right: 60px;
    top: 0;
    /* bottom: 0; */
    display: flex;
    /* flex-direction: column; */
    align-items: center;
    justify-content: center;
    gap: 40px;
}

#header .bottom .all-menu-panel .side-img {
    width: 360px;
    height: 400px;
    overflow: hidden;
    border-radius: 12px;
}

#header .bottom .all-menu-panel .side-img .panel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: opacity, transform;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

#header .bottom .all-menu-panel .side-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: #d0d0d0;
    font-family: "GmarketSansLight";
    font-size: 0.9rem;
    letter-spacing: 2px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

#header .bottom .all-menu-panel .side-text p {
    margin: 0;
    line-height: 1.5;
}


.quick-mn{
    position: fixed;
    width: 1400px;
    left: 50%;
    transform: translateX(-50%) translateY(300%);
    bottom: 0;
    border-radius: 15px 15px 0 0;
    background-color: var(--green);
    color: #fff;
    z-index: 1;
    display: flex;
    gap: 0 100px;
    padding: 20px 40px 20px 60px;
    transition: transform 0.5s ease;
    pointer-events: none;
}

.quick-mn.is-visible {
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}


.quick-mn .hmyo{
    position: absolute;
    top: -158px;
    left: 0;
}

.quick-mn .right-img {
    position: absolute;
    bottom: 33px;
    right: -40px;
    animation: rotate-sway 3s ease-in-out infinite;
    transform-origin: center center;
}

#Wrap.winter .quick-mn{
    background: linear-gradient(90deg, #C91F1F, #582424);
}

@keyframes rotate-sway {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-15deg);
    }
    50% {
        transform: rotate(0deg);
    }
    75% {
        transform: rotate(15deg);
    }
}
.quick-mn .tit strong{
    font-family: "gmarketSansBold";
    font-size: 1.8rem;
}

.quick-mn ul{
    display: flex;
    gap: 0 10px;
    align-items: center;
    width: 65%;
}

.quick-mn ul li{
    width: calc((100% - 30px) / 4);
    border-radius: 15px;
    padding: 15px 20px;
    background-color: rgba(0, 0, 0, 0.2);
}

.quick-mn ul li a{
    display: block;
}

.quick-mn ul li span{
    color: #fff;
    font-family: "gmarketSansMedium";
    padding-left: 55px;
    padding-top: 10px;
    padding-bottom: 10px;
    background-position: left center;
    background-repeat: no-repeat;
    background-size: auto;
}

.quick-mn ul li:first-child span{
    background-image: url("../images/common/quick-icon-1.png");
}

.quick-mn ul li:nth-child(2) span{
    background-image: url("../images/common/quick-icon-2.png");
}

.quick-mn ul li:nth-child(3) span{
    background-image: url("../images/common/quick-icon-3.png");
}

.quick-mn ul li:nth-child(4) span{
    background-image: url("../images/common/quick-icon-4.png");
}

.fx-mn{
    position: fixed;
    top: 80%;
    transform: translateY(-50%);
    right: 20px;
    z-index: 999;
}

.fx-mn:hover{
    transform: translateY(-50%) scale(1.1);
    transition: 0.2s;
}

.fx-mn img{
    width: 200px;
}




@media (prefers-reduced-motion: reduce) {

    #header .top .link-list a,
    #header .top .link-list a::after,
    #header .top .size-btn button {
        transition: none;
    }
}

/* ========================================
   Footer
   ======================================== */
#footer {
    position: relative;
    background-color: #2c2c2c;
    color: #fff;
    padding-bottom: 0;
    min-height: 200px;
}

#footer::after {
    content: '';
    display: block;
    clear: both;
    height: 0;
    visibility: hidden;
}



#footer .footer-left {
    position: absolute;
    left: 0;
    top: 0;
    background-color: #2c2c2c;
    padding: 40px;
    padding-left: calc((100% - 1400px) / 2);
    padding-bottom: 40px;
    width: calc((100% - 1400px) / 2 + 850px);
    box-sizing: border-box;
}

#footer .footer-left .top{
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    padding-bottom: 20px;
}

#footer .related-sites-btn {
    background-color: #3a3a3a;
    color: #fff;
    width: 200px;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
    font-family: "gmarketSansMedium" !important;
    font-size: 14px;
}

#footer .related-sites-btn:hover,
#footer .related-sites-btn:focus {
    background-color: #4a4a4a;
    outline: 2px solid rgba(255, 255, 255, 0.3);
    outline-offset: 2px;
}

#footer .related-sites-btn .caret {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 6px solid #fff;
    transition: transform 0.3s ease;
}

#footer .related-sites-btn[aria-expanded="true"] .caret {
    transform: rotate(180deg);
}

#footer .related-sites-wrapper {
    position: relative;
}

#footer .related-sites-list {
    position: absolute;
    bottom: 100%;
    left: 0;
    background-color: #3a3a3a;
    border-radius: 4px;
    list-style: none;
    padding: 8px 0;
    margin: 0 0 8px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 10;
}

#footer .related-sites-wrapper[aria-expanded="true"] .related-sites-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#footer .related-sites-list li {
    margin: 0;
}

#footer .related-sites-list a {
    display: block;
    padding: 10px 20px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

#footer .related-sites-list a:hover,
#footer .related-sites-list a:focus {
    background-color: #4a4a4a;
    outline: none;
}

#footer .footer-nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

#footer .footer-nav a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s ease;
}

#footer .footer-nav a:hover,
#footer .footer-nav a:focus {
    opacity: 0.7;
    text-decoration: underline;
    outline: none;
}

#footer address {
    font-style: normal;
    color: #fff;
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.6;
}

#footer .copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    margin: 0;
    line-height: 1.6;
}

#footer .footer-right {
    position: absolute;
    right: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 40px;
    padding-right: calc((100% - 1400px) / 2 + 40px);
    padding-bottom: 40px;
    background-color: #252525;
    width: calc((100% - 1400px) / 2 + 550px);
    box-sizing: border-box;
}



#footer .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

#footer .contact-item .icon {
    border-right: 1px solid rgba(255 255 255 / 10%);
    width: 70px;
    margin-right: 20px;
}

#footer .contact-item .icon img{
    opacity: 0.5;
}

#footer .contact-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#footer .contact-info .label {
    color: #ccc;
}

#footer .contact-info .phone {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

#footer .contact-info .phone:hover,
#footer .contact-info .phone:focus {
    opacity: 0.7;
    outline: none;
}

#footer .contact-info .email {
    font-size: 14px;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

#footer .contact-info .email:hover,
#footer .contact-info .email:focus {
    opacity: 0.7;
    outline: none;
}

#footer .top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b9d 0%, #9b59b6 100%);
    color: #9b59b6;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 10;
    padding: 4px;
    line-height: 1.2;
}

/* 내부 흰색 원 (보더 효과) */
#footer .top-btn::before {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: #ffffff;
    z-index: 0;
}

/* 화살표 아이콘 */
#footer .top-btn::after {
    content: "↑";
    font-size: 20px;
    line-height: 1;
    color: #9b59b6;
    z-index: 2;
    position: relative;
    margin-top: -15px;
}

#footer .top-btn:hover,
#footer .top-btn:focus {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(155, 89, 182, 0.4);
    outline: none;
}

#footer .top-btn:active {
    transform: translateY(-1px);
}



@media (max-width: 1400px) {

    #header .bottom .inner {
        margin-left: 24px;
        margin-right: 24px;
    }

    #header .top .img-3 {
        display: none;
    }

    .vs-area .bottom-img {
        width: 100%;
    }

    #footer .footer-left {
        padding-left: 20px;
        position: relative;
    }

    .quick-mn{
        width: 100%;
    }

    .quick-mn .hmyo {
        position: absolute;
        top: -65px;
        bottom: 0;
        left: 0;
        width: 150px;
    }


}


@media (max-width: 1180px) {
    #header .bottom .inner {
        gap: 24px;
        padding: 10px 24px;
    }

    #header .bottom .gnb {
        order: 3;
        width: 100%;
    }

    #header .bottom .gnb>ul {
        justify-content: flex-start;
        gap: 36px;
    }

    #header .bottom .all-menu-panel .panel-container {
        padding: 30px 30px 40px;
    }

    #header .bottom .all-menu-panel .panel-header {
        margin-bottom: 50px;
    }

    #header .bottom .all-menu-panel .panel-trigger {
        font-size: 2rem;
    }

    #header .bottom .all-menu-panel .panel-link {
        font-size: 2rem;
    }

    #header .bottom .all-menu-panel .panel-depth {
        margin-left: 60px;
        min-width: 280px;
    }

    #header .bottom .all-menu-panel .panel-side {
        display: none;
    }

    #header .bottom .gnb {
        display: none;
    }


  

}



@media (prefers-reduced-motion: reduce) {

    #header .bottom .gnb>ul>li>a::after,
    #header .bottom .gnb>ul>li .depth,
    #header .bottom .all-menu button,
    #header .bottom .all-menu-panel .panel-close {
        transition: none;
    }
}

@media (max-width: 1024px) {
    #header .top .inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    #header .top .wd-list .tit p {
        min-width: auto;
        padding: 10px 20px 10px 20px;
        font-size: 12px;
    }



    #header .top .rbox {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    #header .top .wd-list {
        gap: 10px;
    }

    #header .top .wd-list li {
        font-size: 12px;
    }


    #header .bottom .all-menu button .label{
        display: none;
    }

    #header .bottom .all-menu button {
        display: inline-flex;
        align-items: center;
        gap: 0;
        padding: 0;
        border-radius: 15px;
        border-color: transparent;
    }



    #header .top .link-list a{
        font-size: 12px;
    }

    #footer{
        display: flex;
        flex-direction: column-reverse;
        padding-bottom: 20px;
    }

    #footer .footer-right {
        padding-left: 20px;
        border-left: none;
        border-top: 1px solid #444;
        padding-top: 20px;
        width: 100%;
        position: relative;
        height: auto !important;
    }

    #footer .footer-left{
        width: 100%;
    }
    
    .quick-mn{
        display: none;
    }

    #header .top .rbox{
        display: none;
    }

    #header .bottom .all-menu-panel .panel-main{
        max-width: 100%;
    }


}/*E:1024px*/


@media (max-width: 768px) {

    #header .top .size-btn {
        display: none;
    }

    #header .bottom {
        padding: 20px;
    }

    #header .bottom .inner {
        padding: 10px 20px;
        border-radius: 20px;
        margin-left: 16px;
        margin-right: 16px;
    }

    #header .bottom .logo a {
        font-size: 1.1rem;
    }

    #header .bottom .gnb>ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    #header .bottom .gnb>ul>li {
        width: 100%;
    }

    #header .bottom .gnb>ul>li .depth {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        margin-top: 12px;
        width: 100%;
        box-shadow: none;
        padding: 0;
        background: none;
    }

    #header .bottom .gnb>ul>li .depth ul {
        gap: 8px;
        padding-left: 12px;
    }

    #header .bottom .all-menu {
        display: flex;
        justify-content: flex-end;
    }

    #header .bottom .all-menu-panel .panel-container {
        padding: 24px 20px 30px;
    }

    #header .bottom .all-menu-panel .panel-header {
        margin-bottom: 40px;
    }

    #header .bottom .all-menu-panel .panel-logo .logo {
        font-size: 1.2rem;
    }


    #header .bottom .all-menu-panel .panel-close span {
        font-size: 28px;
    }

    #header .bottom .all-menu-panel .panel-trigger {
        font-size: 1.8rem;
        padding: 10px 0;
    }

    #header .bottom .all-menu-panel .panel-link {
        font-size: 1.8rem;
        padding: 10px 0;
    }

    #header .bottom .all-menu-panel .panel-depth {
        margin-left: 40px;
        min-width: 250px;
    }

    #header .bottom .all-menu-panel .panel-depth a {
        font-size: 1rem;
    }

    #header .bottom .all-menu-panel .panel-footer {
        margin-top: 40px;
        gap: 24px;
    }

    #header .bottom .all-menu-panel .footer-link {
        font-size: 0.85rem;
    }

    #header .bottom .all-menu-panel .panel-side {
        display: none;
    }


    #footer .inner {
        flex-direction: column;
        gap: 30px;
    }

    #footer .footer-right {
        padding-left: 0;
        border-left: none;
        padding-top: 20px;
        padding-left: 20px;
    }

    #footer .top-btn {
        position: fixed;
        bottom: 20px;
        right: 20px;
        top: auto;
    }

    #footer .footer-left .top{
        gap: 20px;
    }

    .fx-mn {
        right: 10px;
        top: 80%;
    }

    .fx-mn img {
        width: 120px;
    }


    #footer .footer-left .top {
        gap: 20px;
        flex-direction: column;
    }

    #footer .related-sites-btn{
        width: 100%;
    }

    #footer .related-sites-wrapper {
        position: relative;
        width: 100%;
    }

    #main-content .sec-4 {
        padding: 100px 0 50px 0;
    }
    
    #footer {
        display: flex;
        flex-direction: column-reverse;
    }

    #footer .footer-right{
        height: auto !important;
    }

}/*E:768px*/