/* Common */
:root {
    --primary-color: #0A7AD6;
    --text-color: #333;
    --text-light: #666;
    --text-lighter: #999;
    --border-color: #eee;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --max-width: 1300px;
}

/* Layout */
.wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Announcement Banner */
.announcement-banner {
    background: #f8f9fa;
    border-bottom: 1px solid var(--border-color);
}

.rollingbanner {
    height: 30px;
    overflow: hidden;
}

.rollingbanner .wrap {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.rollingbanner ul li {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.5s ease-in-out;
}

.rollingbanner ul li a {
    display: block;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rollingbanner ul li.current {
    opacity: 1;
    transform: translateY(0);
}

.rollingbanner ul li.prev {
    transform: translateY(-100%);
}

.rollingbanner ul li.next {
    transform: translateY(100%);
}

/* Header */
#header_wrap {
    position: sticky;
    top: 0;
    background: #fff;
    box-shadow: 0 2px 8px var(--shadow-color);
    z-index: 1000;
}

#header_wrap .wrapper {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 46px;
    vertical-align: middle;
	object-fit: contain;    /* 이미지 비율 유지 */
    width: auto;           /* 너비를 자동으로 조정 */
}

.main-nav ul {
    display: flex;
    gap: 32px;
}

.main-nav ul li a {
    position: relative;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color);
    padding: 8px 0;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.main-nav ul li a:hover {
    color: var(--primary-color);
}

.main-nav ul li a:hover::after {
    width: 100%;
}

.user-menu ul {
    display: flex;
    gap: 24px;
    align-items: center;
}

.user-menu ul li a {
    font-size: 14px;
    color: var(--text-light);
    transition: color 0.3s;
}

.user-menu ul li a:hover {
    color: var(--primary-color);
}

.user-menu ul li a.name {
    font-weight: 500;
    color: var(--text-color);
}

.user-menu ul li a.highlight {
    color: var(--primary-color);
    font-weight: 500;
}

/* Mobile Menu Button */
.mobile-menu-button {
    display: none;
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-color);
    transition: all 0.3s;
}

.mobile-menu-button span + span {
    margin-top: 6px;
}

/* 모바일 메뉴 스타일 */
#mobile_menu_wrap {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: #fff;
    overflow-y: auto;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
}

.close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}

.mobile-user-menu {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-user-menu .welcome {
    margin-bottom: 15px;
    font-size: 15px;
    font-weight: 500;
}

.mobile-user-menu .buttons {
    display: flex;
    gap: 8px;
}

.mobile-user-menu .button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    font-size: 14px;
    color: var(--text-color);
    background: #f8f9fa;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.mobile-nav {
    padding: 20px;
}

.mobile-nav-title {
    width: 100%;
    text-align: left;
    padding: 12px 0;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
}

.mobile-nav-title::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-right: 2px solid #666;
    border-bottom: 2px solid #666;
    transform: translateY(-50%) rotate(45deg);
    transition: transform 0.3s;
}

.mobile-nav-group.active .mobile-nav-title::after {
    transform: translateY(-50%) rotate(-135deg);
    transition: transform 0.3s;
}

.mobile-nav-list {
    display: none;
    padding: 5px 0 5px 15px;
}

.mobile-nav-list li {
    margin: 10px 0;
}

.mobile-nav-list li + li {
    margin-top: 12px;
}

.mobile-nav-list a {
    display: block;
    font-size: 14px;
    color: var(--text-light);
    padding: 5px 0;
}

@media (max-width: 1024px) {
    .main-nav,
    .user-menu {
        display: none;
    }

    #burgerbtn {
        display: block;
    }
}

/* 푸터 */
#footer{ width:100%; padding:35px 0; z-index:9;}
#footer .wrapper{ width:1300px; margin:0 auto; overflow:hidden;}
#footer .footer_logo {float:right; margin-top:30px;}
#footer .copyright{ float:left; border-left:0px #6c6c6c solid; padding-left:0;}
#footer .copyright .admin li {display:inline-block; border-left:0px #dcdcdc solid; padding:0 5px; font-weight:500; line-height:25px;}
#footer .copyright .admin li:first-child{ padding:0;}
#footer .copyright .admin a{ font-size:14px;}
#footer .copyright .address { margin-top:10px; font-size:13px !important;  color:#9d9d9d; line-height:21px; letter-spacing:-0.5px; }

.company-info {
    margin-bottom: 16px;
    font-style: normal;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-light);
}

.copyright {
    font-size: 13px;
    color: var(--text-lighter);
}

/* Responsive */
@media (max-width: 1024px) {
    .main-nav {
        display: none;
    }
    
    .user-menu {
        display: none;
    }
    
    .mobile-menu-button {
        display: block;
    }

    /* 푸터 */
    #footer{ width:100%; padding:35px 0; z-index:9;}
    #footer .wrapper{ width:90%; margin:0 auto; overflow:hidden;}
    #footer .footer_logo { display:block; right:0; padding:2% 0;}
    #footer .footer_logo img { width:180px;}
    #footer .copyright{ display:block; border-left:0px #6c6c6c solid; padding-left:0;}
    #footer .copyright .admin li {display:inline-block; border-left:0px #dcdcdc solid; padding:0 5px; font-size:15px; font-weight:500; line-height:25px;}
    #footer .copyright .admin li:first-child{ padding:0;}
    #footer .copyright .admin a{ font-size:14px;}
    #footer .copyright .address { width:100%; margin-top:10px; font-size:13px !important; color:#9d9d9d; line-height:21px; letter-spacing:0.5px; }
}

@media (max-width: 768px) {
    .wrapper {
        padding: 0 16px;
    }

    #header_wrap .wrapper {
        height: 60px;
    }

    /* 푸터 */
    #footer{ width:100%; padding:35px 0; z-index:9;}
    #footer .wrapper{ width:90%; margin:0 auto; overflow:hidden;}
    #footer .footer_logo { display:block; right:0; padding:2% 0; margin-left: 0; float: left;}
    #footer .footer_logo img { width:160px;}
    #footer .copyright{ display:block; border-left:0px #6c6c6c solid; padding-left:0;}
    #footer .copyright .admin li {display:inline-block; border-left:0px #dcdcdc solid; padding:0 5px; font-size:1.05em; font-weight:500; line-height:25px;}
    #footer .copyright .admin li:first-child{ padding:0;}
    #footer .copyright .address { width:100%; margin-top:10px; font-size:12px !important; color:#9d9d9d; line-height:20px; letter-spacing:0.5px;}
}

@media (max-width: 480px) {
    /* 푸터 */
    #footer{ width:100%; padding:35px 0; z-index:9;}
    #footer .wrapper{ width:90%; margin:0 auto; overflow:hidden;}
    #footer .footer_logo { display:block; right:0; padding:2% 0;}
    #footer .footer_logo img { width:160px;}
    #footer .copyright{ display:block; border-left:0px #6c6c6c solid; padding-left:0;}
    #footer .copyright .admin li {display:inline-block; border-left:0px #dcdcdc solid; padding:0 5px; font-size:1.05em; font-weight:500; line-height:25px;}
    #footer .copyright .admin li:first-child{ padding:0;}
    #footer .copyright .address { width:100%; margin-top:10px; font-size:12px !important;color:#9d9d9d; line-height:20px; letter-spacing:0.5px;}
}