@charset "UTF-8";
@import 'font.css';
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.header {
    position: fixed; 
    top: 0;        
    left: 0;        
    width: 100%;
    border-bottom: 1px solid #659AB9;
    background-color: #FFFBEF;
    z-index: 50;
}

body {
    font-family: 'Escoredream';
    line-height: 1.6;
    color: #333;
    background-color: #FFFBEF;
    height: 100vh;
    overflow: hidden; 
    width: 100vw;
    position: relative;
    padding-top: 85px; 
}
a {
    text-decoration: none;
    color: inherit;
}
ul,
li {
    list-style: none;
}
img {
    max-width: 100%;
    vertical-align: middle;
}

/* Layout */
#wrap {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow-y: hidden; 
    overflow-x: visible; 
}

/* 모바일 버튼영역 */
.mb-btn {
    position: fixed;
    right: 20px;
    top: 20px;
    z-index: 101;
    display: none;
}
.mb-btn .line {
    display: block;
    width: 30px;
    height: 4px;
    background-color: #659AB9;
    margin: 5px;
    border-radius: 3px;
    transition: 0.3s;
}
.mb-btn .line.line-middle {
    width: 20px;
}
.mb-btn .line.line-bottom {
    width: 15px;
}
/* X 버튼 */
.mb-btn.on .line.line-top {
    transform: translateY(9px) rotate(45deg);
}
.mb-btn.on .line.line-middle {
    width: 0;
}
.mb-btn.on .line.line-bottom {
    width: 30px;
    transform: translateY(-9px) rotate(-45deg);
}

/* 모바일 메뉴영역 */
.mb-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    padding: 80px 30px;
    background-color: #fff;
    z-index: 100;
    transition: 0.4s;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}
.mb-nav.on {
    right: 0;
}
.mb-nav .mb-menu {
    margin-top: 30px;
}
.mb-nav .mb-menu li {
    padding: 20px 0;
    border-bottom: 1px solid #E0E0E0;
}
.mb-nav .mb-menu li a {
    color: #659AB9;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: 0.3s;
}
.mb-nav .mb-menu li a:hover {
    color: #333;
}

/* 마스크 영역 */
.window-mask {
    position: fixed;
    inset: 0;
    z-index: 99;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
}

/* Header */
.header {
    
    width: 100%;
    border-bottom: 1px solid #659AB9;
}
.header-wrap {
    width: 100%;
    max-width: 1920px;
    height: 85px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-area {
    padding-left: 40px;
}
.logo-area a {
    display: inline-block;
    height: 50px;
}
.logo-area img {
    height: 100%;
    width: auto;
    object-fit: contain;
}
.subtitle {
    font-size: 24px;
    font-weight: 600;
    color: #659AB9;
    position: relative;
    padding-left: 18px;
    margin-left: 40px;
    margin-top: 10px;
}
.subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background-color: #659AB9;
    border-radius: 50%;
}

/* Navigation */
.nav {
    height: 100%;
}
.nav ul {
    display: flex;
    gap: 0;
    height: 100%;
}
.nav ul li {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}
.nav ul li:not(:first-child)::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 100%;
    background-color: #659AB9;
}
.nav ul li:first-child::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 100%;
    background-color: #659AB9;
}
.nav ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 40px;
    font-size: 14px;
    font-weight: 800;
    color: #659AB9;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    white-space: nowrap;
}
.nav ul li.on a {
    background-color: #659AB9;
    font-weight: bold;
    color: #FFFBEF;
}

.mb-nav .mb-menu li.on a {
    background-color: #659AB9;
    color: #FFFBEF;
    font-weight: bold;
}



@media screen and (max-width: 1440px) {
    .header-wrap {
        max-width: 100%;
        padding: 0 30px;
    }
    .logo-area {
        padding-left: 0;
    }
}

@media screen and (max-width: 1024px) {
    html, body {
        overflow-y: auto; 
    }
    #wrap {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }
}

@media screen and (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    .nav {
        display: none;
    }
    .mb-btn {
        display: block;
    }
    .header-wrap {
        height: 70px;
        padding: 0 15px;
    }
    .logo-area {
        padding-left: 0;
    }
    .logo-area a {
        height: 40px;
    }
}

@media screen and (max-width: 480px) {
    .header-wrap {
        padding: 0 13px;
    }
    .logo-area a {
        height: 37px;
    }
}