/* == loader == */
#loader {
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    inset: 0;
    background-color: var(--dark);
    color: #fff;
    z-index: 999999;
    opacity: 1;
}

#loader .load .line:nth-last-child(1) {
    animation: loadingC 0.6s 0.1s linear infinite;
    -webkit-animation: loadingC 0.6s 0.1s linear infinite;
}

#loader .load .line:nth-last-child(2) {
    animation: loadingC 0.6s 0.2s linear infinite;
    -webkit-animation: loadingC 0.6s 0.2s linear infinite;
}

#loader .load .line:nth-last-child(3) {
    animation: loadingC 0.6s 0.3s linear infinite;
    -webkit-animation: loadingC 0.6s 0.3s linear infinite;
}

#loader .load .line {
  display: inline-block;
  width: 15px;
  height: 15px;
  margin: 0 5px;
  border-radius: 15px;
  background-color: var(--danger);
}

@keyframes loadingC {
    0% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(0, 15px);
    }
    100% {
        transform: translate(0, 0);
    }
}


/* == MAIN#wrap == */
#wrap {
    padding-top: 59px;
    overflow: hidden;
}

#wrap.is-index{
    padding-top: 0;
}
/* === */

/* == HEADER == */
body.menuOpen {
    overflow: hidden;
}

#headerWrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    color: #fff;
    z-index: 999998;
    background: transparent;
    transition: transform 0.25s ease;
    will-change: transform;
}

#headerWrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--dark);
    opacity: 1;
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: -1;
}

#headerWrapper.is-index.is-top::before {
    opacity: 0;
}

#headerWrapper.menuOpen::before {
    opacity: 1 !important;
}

#headerWrapper.scroll-up {
    transform: translateY(-100%);
}

#headerWrapper.scroll-down {
    transform: translateY(0);
}

#headerWrapper #logoBox {
    display: inline-block;
    width: 130px;
    text-align: center;
}

/* pc gnb */
.gnbPc {
    display: flex;
    justify-content: center;
    width: calc(100% - 130px);
}

.gnbPc a:hover {
    color: var(--primary);
}

.gnbPc .depth1 {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}

.gnbPc .depth1Items {
    position: relative;
}

.gnbPc .depth1Items > a {
    display: block;
    padding: 20px 50px;
    background: transparent;
    transition: all 0.15s;
}

.gnbPc .depth1Items:hover > a {
    background: #fff;
    color: var(--dark);
    box-shadow: inset 0 -2px 0 0 var(--primary);
}

/* pc gnb sub */
.gnbPc .subMenu {
    position: fixed;
    top: 62.39px;
    left: 0;
    display: none;
    flex-direction: row;
    width: 100vw;
    min-height: 460px;
    color: var(--dark);
    background: #fff;
    box-shadow: var(--box-shadow);
    z-index: 99998;
}

.gnbPc .subMenu .depth1Title {
    width: calc((100% - 1044px)/2);
    background: var(--light);
    padding: 40px;
    font-weight: 900;
    text-align: end;
}

.gnbPc .subMenu .depth2 {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--gap-20);
    width: calc(((100% - 1044px) / 2) + 1044px);
    padding: 22px;
    font-size: 1.6rem;
    font-weight: 600;
}

.gnbPc .subMenu .depth2Items,
.gnbPc .subMenu .depth3Items,
.gnbPc .subMenu .depth4Items {
    min-width: calc((100% - 80px) / 5);
    height: fit-content;
    margin: 18px 0;
    font-size: 1.6rem;
    font-weight: 600;
}

.gnbPc .subMenu .depth2Items {
    width: calc((100% - 200px) / 5);
    max-width: 300px;
}

.gnbPc .subMenu .depth2Items > a {
    display: inline-block;
    padding-bottom: 8px;
}

.gnbPc .subMenu .depth4Items {
    font-size: 14px;
    padding: 0 0 0 16px;
    font-weight: normal;
}

.gnbPc .subMenu .depth2 a{
    transition: all 0.15s;
}

.gnbMb {
    display: none;
}

#btnMenu {
    display: none;
}
/* === */


/* == inquiryBox == */
#inquiryBox {
    position: relative;
    margin-top: 200px;
    padding: 60px 0;
    background-color: var(--success-light);
}

#inquiryBox .text-xl {
    margin-bottom: 30px;
    font-size: 3.2rem;
    font-weight: 700;
    z-index: 1;
}

#inquiryBox p {
    margin-bottom: 40px;
    font-size: 16px;
    line-height: 1.4;
    color: var(--gray-700);
    z-index: 1;
}

#inquiryBox .inqImg {
    position: absolute;
    bottom: -50px;
    right: 20px;
    max-width: 441px;
    width: 50%;
    z-index: 0;
}
/* === */

/* == FOOTER == */
#footerWrapper {
    padding: 70px 0 25px;
    background: var(--dark);
    color: #fff;
}

#footerWrapper p {
    margin-bottom: 20px;
    padding-right: 30px;
    font-size: var(--text-sm);
}

#footerWrapper small,
#footerWrapper li a {
    font-size: 12px;
    color: var(--gray-light);
}

#footerWrapper .footerLogo {
    max-width: 130px;
}


#footerWrapper .snsBtnWrap {
    font-size: 3.0rem;
    color: var(--gray-light);
}

#footerWrapper .contWrap .contTag {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
}

#footerWrapper .contWrap .contInfo {
    display: flex;
    justify-content: flex-start;
}

#footerWrapper .contWrap .contInfo > p {
    margin-bottom: 10px;
}

#footerWrapper .contWrap .contInfo > a {
    font-size: 12px;
}

#footerWrapper .contWrap .contInfo .infoTag {
    flex-shrink: 0;
    width: 80px;
}

#footerWrapper .privacy {
    display: flex;
    flex-direction: row;
    gap: 18px;
}

/* === */

/* == quick menu == */
#quickMenu {
    position: fixed;
    bottom: 20px;
    right: 4px;
    width: fit-content;
    z-index: 999;
}

#quickMenu ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#quickMenu a {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
    color: var(--gray-500);
}

#quickMenu a .iconBox {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 100%;
    background: #fff;
    box-shadow: var(--box-shadow);
    font-size: 2.0rem;
    color: var(--gray-light);
}

#quickMenu a .textBox {
    padding: 3px 8px;
    background: #fff;
    font-size: 10px;
    font-weight: 600;
    text-align: center;    
    box-shadow: var(--box-shadow);
    border-radius: 20px;
}

#btnTop {
    display: none;
}

/* dial button */
#quickMenu .dialWrap {
    position: relative;
}

#quickMenu .dialMenu {
    display: none;
    position: absolute;
    top: 50%;
    right: calc(100% + 10px);
    transform: translateY(-50%);
}

#quickMenu .dialMenu > li {
    margin-bottom: 8px;
}

#quickMenu .dialMenu > li > a {
    display: flex;
    flex-direction: row;
    width: 160px;
    justify-content: flex-start;
    align-items: center;
}

/* === */

/* == sub page == */
#subHeader{
    width: 100%;
    height: 240px;
}

#subHeader .subTitleBox {
    display: flex;
    height: 100%;
    justify-content: space-between;
    align-items: flex-end;
}

#subHeader .subTitleBox .subTitle {
    padding-bottom: 20px;
}

#subHeader .subTitleBox .pageTitle {
    font-size: 3.2rem;
}

#subHeader .subTitleBox .titleImg {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    max-width: 240px;
    width: 100%;
}

@media (max-width: 1024px) {
    #headerWrapper {
        padding: 20px 0;
        justify-content: space-between;
    }

    #headerWrapper .my-20 {
        margin: 0 !important;
    }    

    /* pc gnb */
    .gnbPc {
        display: none;
    }

    .dialWrap {
        display: none;
    }    

    #headerWrapper #logoBox {
        width: 100px;
    }

    /* mobile gnb */
    .gnbMb {
        position: fixed;
        top: 76.5px;
        right: 0;
        display: block;
        width: 100vw;
        height: calc(100vh - 75.6px);
        color: var(--dark);
        z-index: 99997;
        transform: translateX(100%);
        transition: transform 0.35s ease-in-out;
        will-change: transform;
    }

    .gnbMb.active {
        transform: translateX(0);
        background: #fff;
    }

    /* menuSet common */
    .gnbMb .menuSet {
        display: flex;
        flex-direction: row;
        height: 100%;
    }

    .gnbMb .menuSet a {
        font-size: 16px;
    }

    .gnbMb .menuSet a small {
        font-size: 10px;
        color: var(--gray-light);
    }
    /* // menuSet common */

    /* menuSet 1 */
    #menuSet1 .mbDepth1 {
        width: 140px;
        height: 100%;
        background: var(--light);
        overflow-y: scroll;
    }

    #menuSet1 .mbDepth1 > .depth1Items {
        width: 100%;
    }

    #menuSet1 .mbDepth1 > .depth1Items.active a {
        background: #fff;
    }

    #menuSet1 .depthItem > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-weight: 600;
    }

    #menuSet1 .depth1Items > a {
        justify-content: space-between;
        padding: 16px;
    }

    #menuSet1 .mbDepth2 {
        width: calc(100% - 140px);
        height: 100%;
        padding-bottom: 50px; /* safari address height about 50px */
        overflow-y: scroll;
        background: #fff;
    }

    #menuSet1 .mbDepth2 .depth2Items {
        padding: 16px 0 8px;
        margin: 0 16px;
    }

    #menuSet1 .mbDepth2 .depth2Items > a {
        display: block;
        width: fit-content;
    }

    #menuSet1 .depth3Items{
        margin: 12px 15px;
    }

    #menuSet1 .depth3Items a{
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    #menuSet1 .depth3Items a small {
        font-size: 0.9rem;
    }

    #menuSet2 {
        position: absolute;
        top: 0;
        left: 0;
        display: block;
        width: 100%;
        height: 100vh;
        background: #fff;
        overflow-y: scroll;
        transform: translate(100%);
        transition: transform 0.35s ease-in-out;
        will-change: transform;
    }

    #menuSet2.active {
        transform: translate(0);
    }

    #menuSet2 .depth3Header {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 6px 20px;
        font-weight: 600;
        font-size: 16px;
        border-bottom: 1px solid var(--gray-light);
    }

    .mbDepth4 {
        padding: 10px 30px 26px;
    }

    #menuSet2 .depth4Items a {
        display: block;
        padding: 16px;
    }

    #btnMenuBack {
        padding: 10px;
    }


    /* btnMenu */
    #btnMenu {
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        width: 30px;
        height: 36.5px;
        cursor: pointer;
    }

    #btnMenu .line {
        display: block;
        width: 100%;
        height: 3px;
        border-radius: 10px;
        background: #fff;
    }

    #btnMenu .line1 {
        transform-origin: 0% 0%;
        transition: transform 0.4s ease-in-out;
    }

    #btnMenu .line2 {
        transition: transform 0.2s ease-in-out;
    }

    #btnMenu .line3 {
        transform-origin: 0% 100%;
        transition: transform 0.4s ease-in-out;
    }

    #btnMenu.active .line1 {
        transform: rotate(45deg);
    }

    #btnMenu.active .line2 {
        transform: scaleY(0);
    }
    
    #btnMenu.active .line3 {
        transform: rotate(-45deg);
    }

    #quickMenu {
        right: 10px;
        bottom: 10px;
    }    

    #btnTop {
        display: none !important;
        visibility: hidden;
        pointer-events: none;
    }
}

@media (max-width: 950px) {
    #inquiryBox {
        margin-top: 120px;
    }
}

@media (max-width: 768px) {
    #inquiryBox {
        padding: 100px 0 40px;
        margin-top: 180px;
    }
    
    #inquiryBox .w50 {
        max-width: 500px;
        width: 100%;
        margin: auto;
        text-align: center;
    }

    #inquiryBox .inqImg {
        bottom: 100%;
        left: 50%;
        right: unset;
        top: unset;
        transform: translateX(-50%);
        max-width: 200px;
        width: 100%;
    }

    #inquiryBox .btn-lg {
        margin: auto;
    }

    #footerWrapper {
        padding: 50px 0 10px;
    }

    #footerWrapper .flexBox2 {
        flex-direction: column;
        gap: 30px;
    }

    #footerWrapper .flexBox2 > div {
        width: 100% !important;
        padding: 0 !important;
    }

    #footerWrapper p {
        padding-right: 0;
        margin-bottom: 10px;
    }

    #footerWrapper .contWrap .contTag {
        margin-bottom: 8px;
    }

    #footerWrapper .contWrap.mb-50 {
        margin-bottom: 15px !important;
    }

    #footerWrapper .privacy {
        margin-bottom: 15px;
    }

    /* subpage */
    #subHeader {
        height: fit-content;
    }

    #subHeader .subTitleBox {
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
    }

    #subHeader .subTitleBox .subTitle {
        padding-top: 40px;
        padding-bottom: 0;
        text-align: center;
    }

    #subHeader .subTitleBox .depth1Title {
        font-size: 3.2rem;
    }  
}

@media (max-width: 520px) {
    #inquiryBox h3 {
        font-size: 24px;
        margin-bottom: 20px;
    }
}
