@charset "UTF-8";
@import url('./font.css');
@import url('./components.css');
@import url('./contents.css');

/* ------------------ 추가된 공통 스타일 ------------------ */
html {
    scroll-behavior: auto; /* 기본값 */
}
html.smooth-scroll {
    scroll-behavior: smooth; /* JS에서 load 시 추가 */
}
/* -------------------------------------------------------- */


/* 기본 */
.wrap {
    position: relative;
    max-width: 1800px;
    margin: 0 auto;
}
.container {
    max-width:100% !important;
    padding:0 !important;
}

/* Header */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 10;
    color: #fff;
    background: transparent;
    /* background: #fff; */
    transition: background 0.5s ease-in-out, color 0.5s ease-in-out, transform 0.4s ease; 
}
/* active: GNB 오버 시 / on: 모바일 메뉴 열릴 시 */
#header.active,
#header.on { 
    background: #fff;
}
/* 스크롤 다운 시 헤더 숨김 기능 추가 */
#header.hide-up {
    transform: translateY(-100%);
}
#header.active.hide-up { /* 메뉴가 열려있을 땐 숨기지 않음 */
    transform: translateY(0);
}
#header > .wrap {
    display: flex;
    justify-content: space-between;
    height: 100%;
}
#header .logo {
    display: flex;
    align-items: center;
}
#header .logo span {
    display: block;
    width: 140px;
    height: 43px;
    /* background-image: url(/images/content/common/logo_w.png); */
    background-image: url(/images/content/common/logo.png);
    background-repeat: no-repeat;
    background-position: left top;
    font-size: 0;
    transition: background-image 0.3s ease-in-out;
}
#header.active .logo span,
#header.on .logo span { /* 모바일 메뉴 열릴 때 로고 색상 변경 */
    background-image: url(/images/content/common/logo.png);
}

/* 1depth */
.gnb > ul {
    display: flex;
    justify-content: center;
    height: 100%;
    gap: 6rem;
    transition: gap 0.3s ease-in-out;
}
#header.active .gnb > ul {
    gap: 12rem;
}
.gnb > ul > li {
    position: relative;
    display: flex;
    height: 100%;
    align-items: center;
    /* color: #fff; */
    color: #111;
    transition: all 0.3s ease-in-out;
}
.gnb > ul > li > a {
    display: block;
    font-size: 1.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}
#header.active .gnb > ul > li > a {
    color: #111;
    font-weight: 500;
    transition: all 0.3s ease;
}
#header.active .gnb > ul > li > a:hover,
#header.active .gnb > ul > li > a.active {
    color: #1e3a8a;
    font-weight: 700;
}

/* 2depth */
.lnb, .nav-bg {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    display: block;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, height 0.3s ease-in-out;
}
.lnb {
    z-index: 10;
    position: absolute;
    top: 100%;
    left: 0;
    width: 200px;
    padding: 4rem 0 8rem;
}
.lnb li {
    display: block;
    width: 15rem;
    margin-left: -1rem;
}
.lnb li a {
    display: inline-block;
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    background: transparent;
    color: transparent;
    font-size: 1.6rem;
    font-weight: 500;
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out, font-weight 0.3s ease-in-out;
}
#header.active .lnb li a {
    color: #333;
}
.lnb li a .deco {
    display: inline-block;
    color: transparent;
    font-size: 1.4rem;
    font-weight: 400;
    background-repeat: no-repeat;
    background-position: left 3px;
    transition: color 0.3s ease-in-out;
}
#header.active .lnb li a .deco {
    color: #777;
}
.lnb li:nth-child(1) a .deco {
    padding-left: 20px;
    background-image: url(/images/content/common/eoulrigil_deco1.png);
}
.lnb li:nth-child(2) a .deco {
    padding-left: 15px;
    background-image: url(/images/content/common/eoulrigil_deco2.png);
}
.lnb li:nth-child(3) a .deco {
    padding-left: 24px;
    background-image: url(/images/content/common/eoulrigil_deco3.png);
}
.lnb li:nth-child(4) a .deco {
    padding-left: 20px;
    background-image: url(/images/content/common/eoulrigil_deco4.png);
}
#header.active .lnb li:hover a {
    background: #f3f4f6;
    color: #1e3a8a;
    font-weight: 600;
}
.nav-bg {
    z-index: 8;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 0;
    overflow: hidden;
    border-top: 1px solid #e4e4e4;
    background: #fff;
}

/* SNS */
.sns {
    display: flex;
    align-items: center;
    gap: 8px;
}
.sns a {
    display: block;
    width: 25px;
    height: 25px;
    /* background-image: url(/images/content/common/sns_w.png); */
    background-image: url(/images/content/common/sns.png);
    background-repeat: no-repeat;
    font-size: 0;
}
.sns a.instagram {background-position: 0 0;}
.sns a.facebook {background-position: -33px 0;}
.sns a.archivium {width: 106px;background-position: -66px 0;}
#header.active .sns a,
#header.on .sns a { /* 모바일 메뉴 열릴 때 SNS 색상 변경 */
    background-image: url(/images/content/common/sns.png);
}

/* 스크롤 시 */
#header.scroll,
#header.scrolled { /* scrolled 클래스 추가 */
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0px 10px 15px 0px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease-in-out;
}
#header.scroll.active,
#header.scrolled.active { 
    background: rgba(255, 255, 255, 1);
    box-shadow: none;
}
#header.scroll .logo span,
#header.scrolled .logo span {
    background-image: url(/images/content/common/logo.png);
}
#header.scroll .gnb > ul > li > a,
#header.scrolled .gnb > ul > li > a {
    color: #111;
    font-weight: 500;
    transition: all 0.3s ease;
}
#header.scroll .gnb > ul > li > a:hover,
#header.scroll .gnb > ul > li > a.active,
#header.scrolled .gnb > ul > li > a:hover,
#header.scrolled .gnb > ul > li > a.active {
    color: #1e3a8a;
    font-weight: 600;
    transition: color 0.3s ease, font-weight 0.3s ease;
}
#header.scroll .lnb li a,
#header.scrolled .lnb li a {
    color: #333;
}
#header.scroll .lnb li a .deco,
#header.scrolled .lnb li a .deco {
    color: #777;
}
#header.scroll .lnb li:hover a,
#header.scrolled .lnb li:hover a {
    background: #f3f4f6;
    color: #1e3a8a;
    font-weight: 600;
}
#header.scroll .sns a,
#header.scrolled .sns a {
    background-image: url(/images/content/common/sns.png);
}
#header.scroll.active .nav-bg,
#header.scrolled.active .nav-bg {
    box-shadow: 0px 10px 15px 0px rgba(0, 0, 0, 0.05);
}


/* 모바일 버튼 - 기본 숨김 (PC 모드) */
#header .mbtn-box {
    display: none;
}
#header .iv-mtop-menu {
    display: none;
}


/* ────────────────────── 서브 페이지 ────────────────────── */
body.sub-page #header .logo span {
    background-image: url(/images/content/common/logo.png) !important; 
}
body.sub-page #header .sns a {
    background-image: url(/images/content/common/sns.png) !important;
}
body.sub-page #header .gnb > ul > li > a {
    color: #111 !important; 
    font-weight: 500;
}
body.sub-page #header .gnb > ul > li > a:hover,
body.sub-page #header .gnb > ul > li > a.active {
    color: #1e3a8a !important;
    font-weight: 600;
}
body.sub-page #header .lnb li a {
    color: #333 !important;
}
body.sub-page #header .lnb li a .deco {
    color: #777 !important;
}
body.sub-page #header .lnb li:hover a {
    background: #f3f4f6;
    color: #1e3a8a;
    font-weight: 600;
}
body.sub-page .sub .wrap {
    width: 1545px !important;
    margin: 0 auto;
}

/* 비주얼 */
.content-title {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 100px 0 0;
}
.content-title::before {
    content: "";
    position: absolute;
    top: 100px;
    left: 0;
    bottom: 0;
    display: block;
    width: 100%;
    height: 60px;
    background-color: #ddd;
}
.content-title h3 {
    margin-top: 160px;
    color: #1e3a8a;
    font-family: "JalnanGothic", sans-serif;
    font-size: 3.2rem;
    font-weight: 100;
    line-height: 1;
}
.sub-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 400px;
    padding: 100px 0 60px;
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: cover;
}
.sub-visual.sub1 {
    background-image: url(/images/content/common/sub_visual1.png);
}
.sub-visual.sub2 {
    background-image: url(/images/content/common/sub_visual2.png);
}
.sub-visual.sub3 {
    background-image: url(/images/content/common/sub_visual3.png);
}
.sub-visual.sub4 {
    background-image: url(/images/content/common/sub_visual4.png);
}
.sub-visual .title {
    color: #1e3a8a;
    font-family: "JalnanGothic", sans-serif;
    font-size: 3.2rem;
    font-weight: 100;
}

/* depth2 */
.sub-nav {
    z-index: 9;
    height: 60px;
    margin-top: -60px;
    background: rgba(255, 255, 255, 0.6);
}
.sub-nav ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    text-align: center;
}
.sub-nav li {
    position: relative;
    flex-grow: 1;
}
.sub-nav li::before {
    content: "";
    position: absolute;
    top: 0;
    left: -1px;
    bottom: 0;
    display: block;
    width: 1px;
    height: 20px;
    margin: auto 0;
    background-color: #fff;
}
.sub-nav li:first-child:before {
    display: none;
}
.sub-nav a {
    display: block;
    width: 100%;
    color: #666;
    font-size: 1.7rem;
    line-height: 60px;
    transition: all 0.4s ease-in-out;
}
.sub-nav a:hover {
    color:#1e3a8a;
}
.sub-nav li.on a {
    margin-top: -10px;
    padding-top: 10px;
    border-radius: 15px 15px 0 0;
    background: #fff;
    font-size: 1.8rem;
    font-weight: 600;
}


/*  */
.page-title > .wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 70px 0 28px;
    border-bottom: 1px solid #ddd;
}
.page-title h3 {
    flex-grow: 1;
    color: #111;
    font-family: "JalnanGothic", sans-serif;
    font-size: 2.8rem;
    font-weight: 100;
    line-height: 1;
}
.page-title .location {
    display: flex;
    justify-content: space-between;
}
.page-title .location > li {
    position: relative;
    margin-right: 9px;
    padding-right: 18px;
    color: #666;
    font-size: 1.4rem;
}
.page-title .location > li::before {
    content: "";
    position: absolute;
    top: 3px;
    right: 0;
    display: block;
    width: 7px;
    height: 13px;
    background: url(/images/content/common/location_arrow.png);
}
.page-title .location > li:last-child:before {
    display: none;
}
.page-title .location > li.home a {
    display: block;
    width: 23px;
    height: 19px;
    background: url(/images/content/common/home.png) no-repeat left top;
    font-size: 0;
}
.page-title .location > li a {
    color: #333;
}


/* 본문 */
.sub-contents {
    min-height: 500px;
    padding: 50px 0 100px;
}


.sub-contents .bbs-view, .sub-contents .bbs-form, .sub-contents .bbs-list {
    padding: 0 !important;
}

/* ────────────────────── //서브 페이지 ────────────────────── */



/* Footer */
#footer {
    position: relative;
    background: #f5f6f8;
    padding: 5rem 0;
}
#footer .partners {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5rem;
}
#footer .partners h3 {
    padding-top: 8px;
    padding-right: 10rem;
    color: #333;
    font-family: "JalnanGothic", sans-serif;
    font-size: 3rem;
    font-weight: 100;
    line-height: 1;
}
#footer .partners ul {
    display: flex;
    justify-content: space-between;
    flex-grow: 1;
    gap: 0 2rem;
    text-align: center;
}
#footer .partners li {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-basis: 38rem;
    padding: 0 2%;
    border-radius: 12px;
    border: 1px solid #e4e4e4;
    background: #fff;
}

#footer .footer-menu {
    margin-bottom: 4rem;
    display: flex;
    gap: 4.6rem;
    align-items: flex-start;
}
#footer .footer-menu a {
    display: block;
    font-size: 1.6rem;
}
#footer .footer-menu li {
    position: relative;
}
#footer .footer-menu li::after {
    content: "";
    position: absolute;
    top: 10px;
    left: -23px;
    display: block;
    width: 3px;
    height: 3px;
    border-radius: 3px;
    background-color: #888;
}
#footer .footer-menu li:first-child::after {
    display: none;
}
#footer .footer-menu li a {
    color: #333;
}
#footer .footer-menu a:hover {
    color: #1e3a8a;
}

#footer .footer-text {
    color: #888;
    font-size: 1.6rem;
    line-height: 1.5;
}
#footer .footer-text address {
    display: inline-block;
}
#footer .footer-text span {
    position: relative;
    display: inline-block;
    padding-left: 45px;
}
#footer .footer-text span::after {
    content: "";
    position: absolute;
    top: 6px;
    left: 23px;
    display: block;
    width: 1px;
    height: 10px;
    background-color: #aaa;
}
#footer .copyright {
    color: #888;
    font-size: 1.4rem;
}

.btn-top {
    z-index: 9;
    opacity: 0;
    visibility: hidden;
    position: fixed;
    right: 60px;
    bottom: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 75px;
    height: 75px;
    border-radius: 50%;
    border: none;
    background: #1e3a8a;
    cursor: pointer;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.btn-top.show {
    opacity: 1;
    visibility: visible;
}
.btn-top span {
    display: block;
    padding-top: 30px;
    color: #fff;
    background: url(/images/content/common/top_arrow.png) no-repeat center top;
    font-family: "JalnanGothic", sans-serif;
    font-size: 1.4rem;
    font-weight: 100;
    text-align: center; 
    letter-spacing: -0.02em;
}

.btn-top:hover {
    background: #4D216D;
}



/* PC */
@media only screen and (max-width: 1820px) {
    /* 공통 */
    .wrap {
        width: 96%;
    }
    body.sub-page .sub .wrap {
        width: 86% !important;
    }

    /* 상단 */
    #header .wrap {
        width: 96%;
    }
    #header .logo span {
        width: 120px;
        height: 37px;
        background-size: contain;
    }

    /* 2뎁스 */
    .gnb .lnb { 
        max-width: 96%;
        margin-left: auto;
        margin-right: auto;
    }
}
@media only screen and (max-width: 1625px) {
    #header.active .gnb > ul {
        gap: 8rem;
    }
    .lnb li {
        margin-left: 0;
    }
    .lnb li a {
        width: auto;
        padding: 0.5rem;
    }
}

@media only screen and (max-width: 1399px) { 
    body.sub-page .sub .wrap {
        width: 96% !important;
    }
    /* 상단 */
    #header {
        height:80px;
    }

    #header.active {
        background: #fff;
    }
    #header.on { 
        background: transparent; 
    }
    #header > .wrap {
        align-items: center;
    }
    
    .gnb {
        display: none; 
    }
    .nav-bg {
        display: none;
    }

    /* 모바일 버튼 */
    #header .mbtn-box {
        flex-grow: 1;
        z-index: 110;
        display: block;
        position: relative;
        margin-left: 20px;
    }
    body.overlay {
        overflow: hidden;
    }
    body.overlay #header .mbtn-box {
        z-index: 110;
        position: absolute;
        top: 20px;
        left: calc(320px/2 - 45px);
        margin-left: 0;
    }
    #header .mbtn-box .menu-open {
        display: block;
        position: relative;
        width: 45px;
        height: 45px;
        border-radius: 100%;
        transition: all 0.4s;
    }
    #header .mbtn-box .menu-open span {
        display: inline-block;
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        bottom: 0;
        width: 30px;
        height: 15px;
        margin: auto;
        font-size: 0;
    }
    #header .mbtn-box .menu-open span:before,
    #header .mbtn-box .menu-open span:after {
        content: "";
        position: absolute;
        left: 0;
        width: 30px;
        height: 3px;
        /* background: #fff; */
        background: #111;
        transition: all 0.4s;
    }
    #header.scroll .mbtn-box .menu-open span:before,
    #header.scroll .mbtn-box .menu-open span:after {
        background: #111;
    }
    #header .mbtn-box .menu-open span:before {
        top: 0;
    }

    #header .mbtn-box .menu-open span:after {
        bottom: 0;
    }
    #header .mbtn-box .menu-open.on span:before {
        top: 3px;
        transform: rotate(45deg);
        background: #fff;
    }
    #header .mbtn-box .menu-open.on span:after {
        top: 3px;
        transform: rotate(-45deg);
        background: #fff;
    }

    /* 모바일 메뉴 컨테이너 */
    #header .iv-mtop-menu {
        z-index: 105;
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: auto;
        width: 100%;
        max-width: 320px;
        min-width: 320px;
        height: 100vh;
        padding: 80px 2% 5%;
        border-bottom-right-radius: 60px;
        background: #1e3a8a;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        color: #666;
        text-align: center;
        transform: translateX(-100%);
        transition: transform 0.4s ease-in-out;
        overflow-y: auto;
    }
    #header .iv-mtop-menu.open {
        transform: translateX(0);
    }

    #header .iv-mtop-menu .m-lnb > li > a { 
        display: block;
        padding: 1.5rem 0.5rem; 
        color: #333;
        font-size: 1.8rem;
        font-weight:700;
        line-height: 1; 
    }
    #header .iv-mtop-menu .m-lnb > li.on > a {
        border-bottom: 2px solid #111;
    }
    #header .iv-mtop-menu .m-lnb, 
    #header .iv-mtop-menu .depth2 { 
        padding: 2rem;
        background: #fff;
        text-align: left;
        opacity: 1; 
        transform: none; 
        pointer-events: auto;
        width: 100%;
        position: relative;
        top: auto;
        left: auto;
        color: #333;
    }
    #header .iv-mtop-menu .depth2 {
        padding: 1.2rem;
    }
    #header .iv-mtop-menu .m-lnb > li, 
    #header .iv-mtop-menu .depth2 li {
        border-bottom:1px dashed rgba(0, 0, 0, 0.2);
        width: auto;
        margin-left: 0;
    }
    #header .iv-mtop-menu .m-lnb > li:last-child, 
    #header .iv-mtop-menu .depth2 li:last-child {
        border-bottom:none;
    }
    #header .iv-mtop-menu .m-lnb a, 
    #header .iv-mtop-menu .depth2 a {
        display: block;
        padding: 1rem 0.5rem;
        color: #555;
    }
    .m-lnb li a .deco {
        display: inline-block;
        color: #888;
        font-size: 1.4rem;
        font-weight: 400;
        background-repeat: no-repeat;
        background-position: left 3px;
        transition: color 0.3s ease-in-out;
    }
    .m-lnb li:nth-child(2) a .deco {
        padding-left: 15px;
        background-image: url(/images/content/common/eoulrigil_deco2.png);
    }
    .m-lnb li:nth-child(3) a .deco {
        padding-left: 24px;
        background-image: url(/images/content/common/eoulrigil_deco3.png);
    }
    .m-lnb li:nth-child(4) a .deco {
        padding-left: 20px;
        background-image: url(/images/content/common/eoulrigil_deco4.png);
    }
    .m-lnb li:nth-child(1) a .deco {
        padding-left: 20px;
        background-image: url(/images/content/common/eoulrigil_deco1.png);
    }


    body.sub-page #header {
        background: rgba(255, 255, 255, 0.9) !important; 
        box-shadow: 0px 10px 15px 0px rgba(0, 0, 0, 0.05) !important;
    }

    body.sub-page #header .logo span {
        background-image: url(/images/content/common/logo.png) !important; 
    }
    body.sub-page #header .sns a {
        background-image: url(/images/content/common/sns.png) !important;
    }

    body.sub-page #header .gnb > ul > li > a {
        color: #111 !important;
        font-weight: 500;
    }
    body.sub-page #header .gnb > ul > li > a:hover,
    body.sub-page #header .gnb > ul > li > a.active {
        color: #1e3a8a !important;
        font-weight: 600;
    }
    body.sub-page #header .mbtn-box .menu-open span:before,
    body.sub-page #header .mbtn-box .menu-open span:after {
        background: #111;
    }
    body.sub-page #header.on .mbtn-box .menu-open span:before,
    body.sub-page #header.on .mbtn-box .menu-open span:after {
        background: #fff;
    }



    .content-title {
        padding: 6rem 0 0;
    }
    .content-title::before {
        top: 80px;
    }
    .sub-contents {
        min-height: auto;
        padding: 5rem 0 8rem;
    }

    .sub-visual {
        height: 35rem;
        padding: 8rem 0 5rem;
    }
    .sub-nav {
        height: 5rem;
        margin-top: -5rem;
    }
    .sub-nav ul {
        height: 5rem;
    }
    .sub-nav a {
        line-height: 5rem;
    }

    .page-title h3 {
        font-size: 2.4rem;
    }


    /* 푸터 */
    #footer .partners h3 {
        padding-right: 5rem;
    }

    .btn-top {
        display: none !important;
    }
}
@media only screen and (max-width: 1199px) {
    #footer .partners {
        display: block;
        margin-bottom: 3rem;
    }
    #footer .partners h3 {
        margin-bottom: 1rem;
        font-size: 2.4rem;
    }
    #footer .partners ul {
        gap: 0 0.5rem;
    }
    #footer .partners li {
        height: 80px;
        padding: 1%;
    }
    #footer .partners li img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }
    #footer .footer-menu {
        gap: 2rem;
        margin-bottom: 3rem;
    }
    #footer .footer-menu li::after {
        top: 8px;
        left: -10px;
    }
    .btn-top {
        display: none !important;
        opacity: 0;
        visibility: hidden;
    }
}
/* Tablet */
@media only screen and (max-width: 1023px) {
    #footer .partners li {
        height: 50px;
    }
    #footer .footer-text span {
        padding-left: 2.4rem;
    }
    #footer .footer-text span::after {
        left: 1rem;
    }
}
/* Mobile */
@media only screen and (max-width: 767px) {
    body.overlay #header .mbtn-box {
        left: calc(320px/2 - 45px/2);
    }
    #footer .footer-text address {
        display: block;
    }
    #footer .footer-text span.tel {
        padding-left: 0;
    }
    #footer .footer-text span.tel::after {
        display: none;
    }
}
@media only screen and (max-width: 471px) {
    #header .logo span {
        width: 100px;
        height: 30px;
    }
    #header .mbtn-box {
        position: absolute;
        right: 0;
    }
    .sns {
        display: none;
    }

    #footer {
        text-align: center;
    }
    #footer .partners {
        margin-bottom: 1rem;
    }
    #footer .partners h3 {
        padding-right: 0;
    }
    #footer .partners ul {
        display: block;
    }
    #footer .partners li {
        height: auto;
        margin-bottom: 3px;
        padding: 1rem 2%;
    }
    #footer .partners li img {
        width: 70%;
    }
    #footer .footer-menu {
        display: block;
    }
    #footer .footer-menu li {
        padding-top: 20px;
    }
    #footer .footer-menu li::after {
        top: 8px;
        left: 0;
        right: 0;
        margin: 0 auto;
    }
}