@charset "utf-8";
/* --- [공통 및 헤더 고정] --- */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 20000;
    background: var(--gray_f);
    height: 80px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid transparent;
    box-shadow: none;
    transition:
        height 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.24s ease-out,
        box-shadow 0.32s ease-out,
        background-color 0.24s ease-out;
}

#header.is-scrolled {
    border-bottom-color: rgba(var(--point_rgb), 0.16);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

#header .logo a,
#header .logo img {
    display: block;
}

#header .logo img {
    transition:
        height 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
    transform-origin: center center;
    will-change: height, transform;
}

#header .pc_nav {
    display: flex !important;
}

#header .m_nav {
    display: none !important;
}

.top_tel {
    color: var(--point);
}

.top_tel:hover {
    filter: brightness(1.35);
}

#m_nav_layer,
.m_dim,
#m_gnb_panel {
    display: none;
}

/* --- PC 전용 (1101px 이상) --- */
@media screen and (min-width: 1101px) {
    #header {
        height: 80px;
        background: var(--gray_f);
    }

    #header .pc_nav {
        display: flex !important;
    }

    #header .m_nav {
        display: none !important;
    }

    .pc_gnb_list {
        gap: clamp(7px, 1vw, 20px) !important;
    }

    .pc_gnb_list .d1 {
        color: var(--gray_2);
        transition: all var(--q_trans);
    }

    .pc_gnb_list li:hover .d1,
    .pc_gnb_list li.is-active .d1,
    .pc_gnb_list .d1.is-active {
        color: var(--point) !important;
    }

    #header .logo img {
        width: auto;
        height: clamp(26px, 2.5vw, 36px) !important;
    }

    #header.is-scrolled {
        height: 64px;
    }

    #header.is-scrolled .pc_gnb_list {
        gap: clamp(6px, 0.7vw, 18px) !important;
    }

    #header.is-scrolled .pc_gnb_list .d1 {
        font-size: var(--fs_18);
    }

    #header.is-scrolled .top_tel {
        font-size: var(--fs_18);
    }

    #header.is-scrolled .logo img {
        height: clamp(24px, 2.2vw, 32px) !important;
        transform: translateY(-1px);
    }
}

/* --- 모바일 전용 (1100px 이하) --- */
@media screen and (max-width: 1100px) {
    #header {
        height: 64px;
        border-bottom-color: transparent;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 20000;
        transform: none !important;
        -webkit-transform: none !important;
        isolation: auto;
        will-change: auto;
        backface-visibility: visible;
        -webkit-backface-visibility: visible;
    }

    #header.is-scrolled {
        border-bottom-color: rgba(var(--point_rgb), 0.16);
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    }

    #header .pc_nav {
        display: none !important;
    }

    #header .m_nav {
        display: flex !important;
    }

    #header .logo img {
        height: 26px;
    }

    #header .m_action_group {
        position: relative;
        z-index: 20001;
    }

    #header .m_tel_btn,
    #m_gnb_panel .m_tel_btn {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--sub_light);
        transition: background 0.2s ease, transform 0.2s ease;
        border: 1px solid rgba(var(--point_rgb), 0.2);
    }

    #header .m_tel_btn:active,
    #m_gnb_panel .m_tel_btn:active {
        transform: scale(0.96);
    }

    #header .m_tel_btn img,
    #m_gnb_panel .m_tel_btn img {
        height: 20px;
        display: block;
    }

    #header .m_menu_btn {
        width: 40px;
        height: 40px;
        position: relative;
        border: none;
        background: transparent;
        padding: 0;
        cursor: pointer;
        z-index: 20001;
        appearance: none;
        -webkit-appearance: none;
    }

    #header .m_menu_btn span {
        position: absolute;
        left: 50%;
        width: 24px;
        height: 2px;
        border-radius: 999px;
        background: var(--gray_2);
        transform: translateX(-50%);
        transition: top 0.28s ease, transform 0.28s ease, opacity 0.2s ease, background 0.2s ease;
    }

    #header .m_menu_btn span:nth-child(1) {
        top: 11px;
    }

    #header .m_menu_btn span:nth-child(2) {
        top: 19px;
    }

    #header .m_menu_btn span:nth-child(3) {
        top: 27px;
    }

    #header .m_menu_btn.active span:nth-child(1) {
        top: 19px;
        transform: translateX(-50%) rotate(45deg);
    }

    #header .m_menu_btn.active span:nth-child(2) {
        opacity: 0;
    }

    #header .m_menu_btn.active span:nth-child(3) {
        top: 19px;
        transform: translateX(-50%) rotate(-45deg);
    }

    #m_nav_layer {
        display: block;
    }

    .m_dim {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.65);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        z-index: 20010;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .m_dim.show {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    #m_gnb_panel {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        width: min(86vw, 340px);
        height: 100dvh;
        background: #fff;
        z-index: 20020;
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.35s ease, opacity 0.25s ease, visibility 0.25s ease;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.12);
        border-top-left-radius: 20px;
        border-bottom-left-radius: 20px;
        overflow: hidden;
        flex-direction: column;
    }

    #m_gnb_panel.open {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    #m_gnb_panel .m_gnb_top {
        min-height: 64px;
        border-bottom: 1px solid var(--gray_e);
        font-size: 17px;
        letter-spacing: 0.08em;
        flex-shrink: 0;
    }

    #m_gnb_panel .m_gnb_action_group {
        flex-shrink: 0;
    }

    #m_gnb_panel .m_menu_close {
        width: 40px;
        height: 40px;
        position: relative;
        border: none;
        background: transparent;
        padding: 0;
        cursor: pointer;
        appearance: none;
        -webkit-appearance: none;
    }

    #m_gnb_panel .m_menu_close span {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 24px;
        height: 2px;
        border-radius: 999px;
        background: var(--gray_2);
    }

    #m_gnb_panel .m_menu_close span:nth-child(1) {
        transform: translate(-50%, -50%) rotate(45deg);
    }

    #m_gnb_panel .m_menu_close span:nth-child(2) {
        transform: translate(-50%, -50%) rotate(-45deg);
    }

    #m_gnb_panel .m_menu_list {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 10px 0 max(20px, env(safe-area-inset-bottom));
        margin: 0;
    }

    #m_gnb_panel .m_menu_list li {
        list-style: none;
    }

    #m_gnb_panel .m_menu_list .m_d1 {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        padding: 18px 20px;
        color: var(--gray_2);
        font-weight: 600;
        font-size: 16px;
        border-bottom: 1px solid var(--gray_f2);
        transition: background 0.2s ease, color 0.2s ease, padding 0.2s ease;
    }

    #m_gnb_panel .m_menu_list .m_d1 i {
        font-size: 13px;
        color: var(--gray_9);
        transition: transform 0.2s ease, color 0.2s ease;
    }

    #m_gnb_panel .m_menu_list .m_d1:hover,
    #m_gnb_panel .m_menu_list .m_d1:active,
    #m_gnb_panel .m_menu_list li.is-active .m_d1,
    #m_gnb_panel .m_menu_list .m_d1.is-active {
        background: var(--gray_f8);
        color: var(--point);
        padding-left: 24px;
    }

    #m_gnb_panel .m_menu_list .m_d1:hover i,
    #m_gnb_panel .m_menu_list .m_d1:active i,
    #m_gnb_panel .m_menu_list li.is-active .m_d1 i,
    #m_gnb_panel .m_menu_list .m_d1.is-active i {
        color: var(--point);
        transform: translateX(3px);
    }
}

/* 모션 최소화 대응 */
@media (prefers-reduced-motion: reduce) {
    #header,
    #header .logo img,
    .pc_gnb_list,
    .pc_gnb_list .d1,
    .top_tel,
    #header .m_menu_btn span,
    #m_gnb_panel,
    #m_gnb_panel .m_menu_list .m_d1,
    #m_gnb_panel .m_menu_list .m_d1 i,
    #header .m_tel_btn,
    #m_gnb_panel .m_tel_btn,
    #m_gnb_panel .m_menu_close,
    .m_dim {
        transition: none !important;
    }
}

@media screen and (max-width: 1100px) {
    body.is-main #header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        min-width: 100vw !important;
        max-width: 100vw !important;
        transform: none !important;
        -webkit-transform: none !important;
        margin: 0 !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
        z-index: 20000 !important;
    }

    body.is-main #header > .wrap,
    body.is-main #header .wrap {
        width: 100% !important;
        max-width: 100% !important;
    }

    body.is-main #header .logo,
    body.is-main #header .m_action_group {
        flex-shrink: 0;
    }

    body.is-main #header .m_nav {
        width: auto !important;
        max-width: none !important;
    }

    body.is-main #header .m_action_group {
        width: auto !important;
        max-width: none !important;
    }
}