/*---------------------- header ----------------------*/
.h_top {
    width: 100%;
    padding: 20px 0;
    background-color: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    z-index: 10;
}
.h_inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
} 
.h_logo {
    width: auto;
    height: 40px;
}
.h_logo img {
    object-fit: contain;
    object-position: left center;
}

.h_r {
    display: flex;
    align-items: center;
    gap: 24px;
}
.h_menu {
    display: flex;
    align-items: center;
    gap: 12px;
}
.h_menu > ul > li {
    position: relative;
    font-size: var(--ft16);
    font-weight: var(--semi-bold);
    color: var(--gray-700);
}
.h_menu > ul {
    gap: 20px;
}
.h_menu > ul > li > a {
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.h_menu > ul > li > a img {
    width: 13px;
    height: 13px;
}
.h_menu > ul > li.on {
    color: var(--primary);
}


.menu_sub {
    padding-top: 10px;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s ease;
}
.menu_main:hover ~ .menu_sub,
.menu_sub:hover  {
    opacity: 1;
    pointer-events: all;
}
.menu_sub ul {
    padding: 10px 6px;
    border-radius: var(--radius);
    background-color: var(--white);
    box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.10);
}
.menu_sub a {
    width: 100%;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: var(--ft15);
    font-weight: var(--medium);
    color: var(--gray-600);
    text-align: center;
    text-wrap: nowrap;
}
.menu_sub a:hover {
    background-color: var(--gray-100);
}

.h_menu .btn .menu_main {
    padding: 10px 20px;
    border-radius: 30px;
    background-color: var(--primary);
    color: var(--white);
}
.h_menu li.h_btn {
    margin-left: 16px;
}
.h_menu li.h_btn a {
    padding: 10px 16px;
    border-radius: var(--radius);
    background-color: var(--primary);
    font-size: var(--ft16);
    font-weight: var(--semi-bold);
    color: var(--white);
}

.menu_effect {
    height: 32px;
    padding: 6px 16px;
    border-radius: 30px;
    background-color: var(--gray-200);
    display: flex;
    /* align-items: center; */
    gap: 6px;
    position: absolute;
    left: 50%;
    top: calc(100% + 10px);
    white-space: nowrap;
    transform: translateX(-50%);
    animation: effect .5s ease infinite alternate;
}
@keyframes effect {
    100% {
        margin-top: 6px;
    }
}
.menu_effect::before {
    content: '';
    display: block;
    width: 18px;
    height: 18px;
    background: url(/images/effect.svg) no-repeat center/contain;
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%) translateY(-50%);
}
.menu_effect img {
    width: 13px;
    height: 13px;
    margin-top: 3px;
}
.menu_effect p {
    font-size: 13px;
    font-weight: var(--semi-bold);
    color: var(--primary);
    white-space: nowrap;
    transform: translateZ(0);
}
.menu_left {
    display: flex;
    align-items: center;
    gap: 0px;
}
.menu_right {
    padding-left: 12px;
    position: relative;
}
.menu_right::before {
    content: '';
    display: block;
    width: 1px;
    height: 12px;
    background-color: var(--dark-line);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.m_h {
    display: none;
    align-items: center;
    gap: 10px;
}
.h_tel {
    border-radius: 40px;
    background-color: var(--gray-200);
}
.h_tel a {
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.h_tel img {
    width: 12px;
    height: 12px;
}
.h_tel p {
    font-size: var(--ft12);
    font-weight: var(--semi-bold);
    color: var(--primary);
}
.h_ham {
    width: 28px;
    height: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}
.h_ham span {
    display: inline-block;
    width: 20px;
    height: 2px;
    background-color: var(--gray-700);
}



/*-- top_btn --*/
.top_btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--gray-700);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: fixed;
    right: 40px;
    bottom: 50px;
    z-index: 10;
    cursor: pointer;
}
.top_btn img {
    width: 20px;
    height: 20px;
    opacity: .6;
    transition: opacity .4s ease;
}
.top_btn:hover img {
    opacity: 1;
}


/*-- ham_box --*/
.ham_box.popup {
    padding: 10px;
    justify-content: end;
    align-items: start;
    overflow-y: auto;
    overflow-x: hidden;
}
.ham_box .popup_box {
    width: 100%;
    max-width: 700px;
    height: calc(100% - 20px);
    padding: 150px 70px 50px;
    background-color: var(--primary);
    border-radius: var(--radius);
    transform: scale(1) translateX(100%);
    transition: transform .4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
}
.ham_box.open .popup_box {
    transform: scale(1) translateX(0);
    transition: transform .6s ease;
}

.ham_link {
    width: 100%;
    max-width: 240px;
    height: 100px;
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}
.ham_link_inner {
    width: 100%;
    height: 100%;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
}
.ham_link_inner p {
    font-size: var(--ft16);
    font-weight: var(--semi-bold);
    color: var(--white);
}
.ham_link_inner .cir {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--black-400);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform .3s ease;
}
.ham_link:hover .ham_link_inner .cir {
    transform: translateX(5px);
}
.ham_link_inner .cir img {
    width: 12px;
    height: 12px;
}
.ham_logo_mark {
    width: 300px;
    opacity: .1;
    position: absolute;
    right: 20px;
    bottom: 20px;
    pointer-events: none;
}

/*---------------------- footer ----------------------*/
.f_inner {
    padding: 120px 0 50px;
}
.f_top {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 20px;
}
.f_title {
    font-weight: var(--semi-bold);
}
.f_info_list {
    margin-top: 24px;
    display: flex;
    gap: 100px;
}
.f_info p {
    width: fit-content;
    margin-bottom: 8px;
    font-size: var(--ft14);
    color: var(--gray-600);
    display: flex;
    gap: 10px;
}
.f_info strong {
    font-weight: var(--semi-bold);
    color: var(--gray-600);
}

.f_menu {
    display: flex;
    gap: 18px;
}
.f_menu li {
    font-size: var(--ft14);
}
.f_menu li:first-child {
    font-weight: var(--semi-bold);
}

.f_btm {
    width: 100%;
    margin-top: 60px;
    padding: 14px 20px;
    border-radius: var(--radius);
    background-color: var(--gray-200);
    display: flex;
    justify-content: end;
    align-items: center;
    gap: 12px;
}
.f_btm * {
    width: fit-content;
    font-size: var(--ft14);
    color: var(--gray-600);
}

/*---------------------- loader_bg ----------------------*/
.loader_bg {
    width: 100%;
    height: 100vh;
    background-color: var(--black-400);
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 20;
    display: none;
}
.loader_bg.active {
    display: flex;
}
.loader {
    width: 15px;
    aspect-ratio: 1;
    border-radius: 50%;
    animation: loader 1s infinite linear alternate;
}
@keyframes loader {
    0%  {box-shadow: 20px 0 #fff, -20px 0 #d9d9d9;background: #fff }
    33% {box-shadow: 20px 0 #fff, -20px 0 #d9d9d9;background: #d9d9d9}
    66% {box-shadow: 20px 0 #fff,-20px 0 #fff; background: #d9d9d9}
    100%{box-shadow: 20px 0 #fff,-20px 0 #fff; background: #fff }
}

/*---------------------- popup ----------------------*/
.popup {
    width: 100%;
    height: 100dvh;
    padding: 0px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 20;
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s ease;
}
.popup.open {
    opacity: 1;
    pointer-events: all;
}
.popup_bg {
    width: 100%;
    height: 100%;
    background-color: var(--black-400);
    position: fixed;
    top: 0;
    left: 0;
}
.popup_scroll {
    width: 100%;
    max-height: 100%;
    padding: 60px 0;
    overflow: auto;
    display: flex;
    justify-content: center;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.popup_scroll::-webkit-scrollbar {
    display: none;
}
.popup_box {
    width: 100%;
    max-width: 420px;
    height: fit-content;
    padding: 60px 28px 40px;
    border-radius: 20px;
    background-color: var(--white);
    position: relative;
    z-index: 1;
    transform: scale(.9);
    transition: transform .3s ease;
}
.popup.open .popup_box {
    transform: scale(1);
}
.popup_close {
    width: 32px;
    height: 32px;
    position: absolute;
    padding: 2px;
    top: 20px;
    right: 20px;
    cursor: pointer;
}
.popup_head {
    margin-bottom: 30px;
}
.popup_title {
    font-size: var(--ft20);
    font-weight: var(--semi-bold);
}
.popup_text {
    margin-top: 10px;
    color: var(--gray-600);
    font-size: var(--ft14);
}
.popup_img {
    width: 150px;
    margin: 0 auto;
}

/*-- ham_popup --*/
.ham_popup {
    justify-content: end;
    padding: 0;
}
.ham_popup .popup_box {
    width: 80%;
    height: 100%;
    padding: 70px 20px;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    transform: scale(1) translateX(100%);
    transition: transform .5s ease;
}
.ham_popup.open .popup_box {
    transform: translateX(0);
}
.ham_list li {
    margin-bottom: 20px;
    font-weight: var(--semi-bold);
    color: var(--gray-600);
}

.ham_list li.on {
    color: var(--primary);
}

.ham_list li a {
    display: flex;
    align-items: center;
    gap: 6px;   
}
.ham_list li a img {
    width: 13px;
    height: 13px;
}

.ham_list li.h_btn {
    margin-top: 0;
    padding-top: 0;
    border: none;
    position: relative;
}
.ham_list li.h_btn a {
    padding: 10px 20px;
    border-radius: var(--radius);
    background-color: var(--primary);
    font-weight: var(--semi-bold);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
}
.ham_list.my_list {
    border-top: 1px solid var(--dark-line);
    margin-top: 30px;
    padding-top: 30px;
}
.ham_btm li {
    margin-top: 10px;
    border-radius: var(--radius);
    background-color: var(--primary);
}
.ham_btm a {
    padding: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
.ham_btm img {
    width: 16px;
    height: 16px;
}
.ham_btm p {
    font-size: var(--ft14);
    font-weight: var(--semi-bold);
    color: var(--white);
}

.ham_btm li.quick_white {
    background-color: var(--gray-200);
}
.ham_btm li.quick_white p {
    color: var(--primary);
}

/*-- img_popup --*/
.img_popup .img_popup_box {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}
.img_popup .popup_close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
}
.img_popup .popup_close img {
    width: 24px;
    height: 24px;
}
.img_append {
    width: 100%;
    max-width: 1600px;
    height: 100%;
    max-height: 80vh;
    overflow: hidden;
}
.img_append img {
    object-fit: contain;
}

/*-- login_popup  --*/
/* .login_popup .popup_box {
    padding-top: 100px;
}
.login_popup .popup_title {
    font-size: var(--ft24);
    margin-bottom: 24px;
}
.login_list {
    margin-top: 90px;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 10px;
}
.login_list li {
    width: 100%;
    height: 60px;
    border-radius: var(--radius);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: pointer;
}
.login_list img {
    width: 32px;
    height: 32px;
    position: absolute;
    left: 20px;
}
.login_list p {
    font-size: var(--ft16);
    font-weight: var(--semi-bold);
    text-align: center;
}
.login_list li:first-child {
    background-color: #FEE500;
}
.login_list li:first-child p {
    color: #392020;
}
.login_list li:last-child {
    background-color: #03C75A;
}
.login_list li:last-child p {
    color: var(--white);
} */


/* 공통 집단소송 상태 배지: 홈 배너·최신 사건·전체 목록이 함께 사용합니다. */
.case-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: var(--radius);
    background: #ffffff20;
    color: var(--white);
    font-size: var(--ft14);
    font-weight: var(--medium);
    line-height: 1.4;
    white-space: nowrap;
}
.case-status-badge::before {
    content: '';
    width: 4px;
    height: 4px;
    flex: 0 0 4px;
    border-radius: 50%;
    background: #cbd5e1;
}
.case-status-badge.open::before { background: var(--green); }
.case-status-badge.recruit::before { background: #60a5fa; }
.case-status-badge.closing::before { background: var(--red); }
.epeople_card .case-status-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    background: rgb(34 37 41 / 70%);
    backdrop-filter: blur(6px);
}
@media all and (max-width: 768px) {
    .case-status-badge { padding: 4px 8px; gap: 6px; font-size: var(--ft12); }
    .epeople_card .case-status-badge { top: 8px; left: 8px; }
}

/*-- policy_container --*/
.policy_container {
    margin-top: 180px;
}
.policy_title {
    font-size: var(--ft40);
    font-weight: var(--semi-bold);
    text-align: center;
}
.policy_wrap {
    width: 100%;
    padding: 40px;
    margin-top: 32px;
    border-radius: var(--radius-lg);
    background-color: var(--gray-100);
}

/*--notice_popup --*/
.notice_popup {
    padding: 10px;
    overflow-y: auto;
}

.header-quick-diagnosis {
    display: none;
    position: relative;
}

.header-quick-diagnosis > a {
    padding: 9px 14px;
    border-radius: var(--radius);
    color: var(--white);
    background: var(--primary);
    font-size: var(--ft14);
    font-weight: var(--semi-bold);
    line-height: 1.3;
    white-space: nowrap;
}

.header-quick-diagnosis .menu_effect {
    top: calc(100% + 12px);
    z-index: 2;
}
.notice_popup .popup_box {
    width: min(400px, calc(100vw - 20px));
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
    padding: 0;
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.notice_popup .popup_swiper {
    width: 100%;
    aspect-ratio: 4 / 5;
    max-height: calc(100vh - 70px);
    max-height: calc(100dvh - 70px);
    min-height: 0;
    flex: 1 1 auto;
    position: relative;
}
.notice_popup .popup_swiper .swiper-wrapper,
.notice_popup .popup_swiper .swiper-slide,
.notice_popup .popup_swiper .swiper-slide > a {
    height: 100%;
}
.notice_popup .popup_swiper .swiper-slide > a {
    display: block;
}
.notice_popup .popup_swiper .swiper-slide {
    background-color: var(--gray-200);
}
.notice_popup .popup_swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.pagination-number {
    padding: 4px 16px;
    background-color: var(--black-300);
    border-radius: 30px;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1;
}
.pagination-number,
.pagination-number span {
    font-size: var(--ft14);
    font-weight: var(--semi-bold);
    color: var(--white);
}
.notice_popup_btm {
    width: 100%;
    height: 50px;
    background-color: var(--white);
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 0 0 50px;
}
.popup_today_close label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.popup_today_close span {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
}
.popup_today_close span img {
    width: 8px;
    height: 8px;
}
.popup_today_close input:checked ~ label span {
    background-color: var(--primary);
}

.popup_today_close p {
    font-size: var(--ft14);
    font-weight: var(--medium);
    color: var(--gray-400);
}
.popup_btm_close {
    font-size: var(--ft14);
    font-weight: var(--medium);
    color: var(--gray-600);
    cursor: pointer;
}
.popup_btm_close:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

@media (max-width: 360px) {
    .notice_popup_btm {
        padding: 0 12px;
    }
}

@media (max-height: 600px), (orientation: landscape) {
    .notice_popup .popup_box {
        width: min(400px, calc(100vw - 20px));
    }
}

/* check_box */
.chk_box input:checked ~ label span {
    background: none;
}
.chk_box label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}
.chk_box label span {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background-color: white;
    border: 1px solid var(--dark-line);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    flex-shrink: 0;
}
.chk_box span::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    background-color: var(--primary);
    transform: scale(0);
    position: absolute;
}
.chk_box label span::after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    background: white;
    mask: url('/images/chk_w.svg') no-repeat center / contain;
    -webkit-mask: url('/images/chk_w.svg') no-repeat center / contain;
    position: relative;
    z-index: 1;
}
.chk_box input:checked ~ label span {
    border-color: transparent;
}
.chk_box input:checked ~ label span::before {
    transform: scale(1);
    transition: transform .3s cubic-bezier(.17, .67, .73, 1.33);
}
.chk_box label p {
    color: var(--gray-500);
    font-size: var(--ft14);
    font-weight: var(--medium);
}

.gsap_y {
    opacity: 0;
    transform: translateY(20px);
}

@media (hover: none) and (pointer: coarse) {
    .top_btn img {
        opacity: 1;
    }
}
@media all and (max-width: 1600px) {
    /*-- ham_box --*/
    .ham_box .popup_box {
        padding: 120px 60px 50px;
    }
    .main_ham_title {
        margin-bottom: 50px;
        font-size: var(--ft28);
    }
}

@media all and (max-width: 1400px) {
    /*-- header --*/
    .h_menu > ul {
        gap: 16px;
    }
    .h_menu > ul > li > a {
        padding: 6px;
    }

    .top_btn {
        right: 16px;
        bottom: 20px;
    }

    /*-- policy_container --*/
    .policy_container {
        margin-top: 120px;
    }
    .policy_title {
        font-size: var(--ft28);
    }

}

@media all and (max-width: 1200px) {
    /*-- header --*/
    .h_top {
        padding: 14px 0;
    }
    .h_logo {
        width: 100px;
    }
    .h_menu {
        display: none;
    }
   
    .m_h {
        display: flex;
    }

    .header-quick-diagnosis {
        display: flex;
    }

    /*-- ham_box --*/
    .ham_box .popup_box {
        padding: 80px 40px 40px;
    }
    .main_ham_title {
        font-size: var(--ft24);
    }
    .main_ham_list > li {
        gap: 20px;
    }
    .main_ham_list .ham_label {
        font-size: var(--ft18);
    }
    .main_ham_list .ham_menu li {
        font-size: var(--ft16);
    }

    /*-- footer --*/
    .f_info_list {
        flex-direction: column;
        gap: 20px;
    }
}

@media all and (max-width: 768px) {
    /*-- header --*/
    .top_btn {
        width: 40px;
        height: 40px;
        right: 10px;
    }
    .top_btn img {
        width: 14px;
        height: 14px;
    }

    .h_btn a {
        font-size: var(--ft14);
        padding: 6px 14px;
    }

    .header-quick-diagnosis > a {
        padding: 7px 11px;
        font-size: var(--ft12);
    }

    .header-quick-diagnosis .menu_effect {
        height: 28px;
        padding: 4px 10px;
        font-size: 11px;
    }

    /*-- ham_box --*/
    .ham_box .popup_box {
        max-width: 100%;
        height: auto;
        min-height: calc(100dvh - 20px);
        padding: 80px 20px 20px;
    }
    .main_ham_title {
       display: none;
    }
    .main_ham_list {
        gap: 16px;
    }
    .main_ham_list > li {
        padding-bottom: 16px;
        flex-direction: column;
        align-items: start;
        gap: 10px;
    }
    .main_ham_list .ham_menu li {
        font-size: var(--ft14);
    }
    .main_ham_list .ham_menu {
        gap: 16px;
    }
    .ham_logo_mark {
        width: 200px;
    }

    /*-- footer --*/
    .f_inner {
        padding: 80px 0;
    }
    .f_top {
        flex-direction: column;
    }
    .f_menu {
        width: 100%;
        border-top: 1px solid var(--dark-line);
        padding-top: 14px;
    }
    .f_btm {
        margin-top: 32px;
        justify-content: start;
        flex-direction: column;
        align-items: start;
        gap: 6px;
    }
    

    /*-- popup --*/
    .popup_scroll {
        padding: 40px 0;
    }
    .popup_box {
        border-radius: 10px;
        padding: 40px 16px;
    }
    .popup_close {
        top: 16px;
        right: 16px;
    }

    .popup_img {
        width: 100px;
    }


    .login_list img {
        width: 26px;
        height: 26px;
        left: 16px;
    }

    .login_popup .popup_box {
        padding-top: 60px;
    }
    .login_popup .popup_title {
        font-size: var(--ft20);
        margin-bottom: 16px;
    }

    /*-- policy_container --*/
    .policy_title {
        font-size: var(--ft24);
    }
    .policy_wrap {
        margin-top: 24px;
        padding: 24px;
    }
    
}
