:root {
    /* 테마색 - 이 값만 변경하면 전체 색상이 자동으로 적용됩니다 */
    --theme-color: #006fd6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

input,
textarea {
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Malgun Gothic', sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 스크롤바 스타일 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f5f5f5;
}

::-webkit-scrollbar-thumb {
    background: #999;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #777;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #999 #f5f5f5;
}

/* 헤더 */
.header {
    color: white;
    width: 100%;
}

.header-top {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 0;
    background-color: color-mix(in srgb, var(--theme-color) 85%, black);
}

.header-main {
    padding: 0 0 0 0;
    background-color: var(--theme-color);
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.header-logo-icon {
    flex-shrink: 0;
    margin-right: 5px;
}

.header-icon {
    font-size: 18px;
}

.header-title {
    font-size: 22px;
    font-weight: 700;
}

.header-service-name {
    font-size: 18px;
    font-weight: 400;
}

.header-divider {
    font-size: 18px;
    font-weight: 100;
    color: white;
    opacity: 0.5;
    padding: 0 5px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

/* 데스크탑 메뉴 */
.header-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 15px;
    padding: 8px 18px;
    border-radius: 20px;
    transition: background-color 0.2s;
}

.nav-link:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

.nav-link.active {
    font-weight: 600;
    background-color: rgba(0, 0, 0, 0.15);
}

.nav-button {
    background-color: transparent;
    color: white;
    text-decoration: none;
    font-size: 15px;
    padding: 7px 18px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    font-weight: 500;
    transition: background-color 0.2s, border-color 0.2s;
}

.nav-button:hover {
    background-color: white;
    color: var(--theme-color);
    border-color: white;
}

.header-main .header-container {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: end;
}

.header-search-area {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 45px 0 55px 0;
}

/* 모바일 메뉴 */
.mobile-menu{
    display: none;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 18px;
    height: 14px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 103;
    position: relative;
    transition: opacity 0.2s;
}

.mobile-menu-close{
    display: none;
}
.mobile-menu-toggle:hover {
    opacity: 0.7;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: white;
    border-radius: 2px;
    transition: background-color 0.2s;
}

.mobile-menu-toggle:hover span {
    background-color: rgba(255, 255, 255, 0.8);
}

/* 검색 입력 */
.search-title {
    font-size: 30px;
    font-weight: 700;
    color: white;
    margin: 0;
    letter-spacing: -0.5px;
    padding-left: 5px;
    margin-bottom: 10px;
}

.search-form {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    max-width: 600px;
}

.search-input {
    flex: 1;
    padding: 16px 22px;
    border: none;
    outline: none;
    font-size: 14px;
    color: white;
    background-color: transparent;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-button {
    padding: 12px 22px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button:hover {
    color: white;
}

.search-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.search-tag {
    display: inline-block;
    padding: 6px 14px;
    background-color: rgba(255, 255, 255, 0.06);
    color: white;
    text-decoration: none;
    font-size: 13px;
    border-radius: 16px;
    transition: background-color 0.2s;
    line-height: 17px;
}

.search-tag:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

/* 오른쪽 이미지 */
.header-logo-area {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    align-self: stretch;
    overflow: hidden;
    position: relative;
}

.main-logo-container {
    position: relative;
    width: 400px;
    height: 260px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.main-logo {
    width: auto;
    height: auto;
    object-fit: contain;
}

.main-logo-top {
    width: 400px;
    height: 400px;
    object-position: top;
    object-fit: contain;
    transform: translateY(160px);
}

.header-image-bottom {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    padding: 0;
    background-color: var(--theme-color);
    overflow: hidden;
    position: relative;
    height: 200px;
}

.header-image-bottom .header-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    width: 100%;
    height: 200px;
}

.main-logo-bottom {
    width: 400px;
    height: 400px;
    object-position: bottom;
    object-fit: contain;
    transform: translateY(-200px);
}

/* 푸터 스타일 */
.site-footer {
    background-color: #f5f5f5;
    color: #666;
    padding: 12px 0;
    margin-top: auto;
    width: 100%;
}

.footer-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-brand-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.footer-divider {
    color: #999;
    font-size: 12px;
}

.footer-copyright {
    font-size: 13px;
    color: #666;
}

.footer-link {
    color: #666;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #333;
}

/* 바로가기 메뉴 */
.quick-menu {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 0;
    overflow: visible;
}

.quick-menu-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 50px;
    height: 50px;
    background-color: color-mix(in srgb, var(--theme-color) 90%, black);
    color: white;
    text-decoration: none;
    border-radius: 12px 0 0 12px;
    transition: background-color 0.2s, transform 0.3s ease;
    overflow: visible;
    position: relative;
}

.quick-menu-item i {
    font-size: 18px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    background-color: color-mix(in srgb, var(--theme-color) 90%, black);
    color: white;
    border-radius: 12px 0 0 12px;
    transition: background-color 0.2s;
}

.quick-menu-label {
    font-size: 14px;
    font-weight: 700;
    padding-right: 16px;
    padding-left: 12px;
    white-space: nowrap;
    position: absolute;
    left: 50px;
    top: 0;
    height: 50px;
    min-width: 120px;
    display: flex;
    align-items: center;
    background-color: color-mix(in srgb, var(--theme-color) 90%, black);
    color: white;
    border-radius: 0 12px 12px 0;
    transition: transform 0.3s ease;
    pointer-events: none;
    z-index: 10;
    overflow: visible;
}

.quick-menu-item:hover {
    transform: translateX(-100px);
}

.quick-menu-item:hover i {
    background-color: color-mix(in srgb, var(--theme-color) 80%, black);
}

.quick-menu-item:hover .quick-menu-label {
    background-color: color-mix(in srgb, var(--theme-color) 80%, black);
}

.quick-menu-item:hover .quick-menu-label {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-10px);
}

/* 모바일 뷰 */
/* 1350px 이하 퀵 메뉴 안보이게 */
@media (max-width: 1350px) {
    .quick-menu {
        display: none;
    }
}

/* 1100px 이하 오른쪽 이미지 안보이게 */
@media (max-width: 1100px) {
    .header-logo-area {
        display: none;
    }
}

@media (max-width: 768px) {
    /* 모바일 헤더 */
    .header-top {
        padding: 12px 0;
    }

    .header-container {
        padding: 0 12px;
    }

    .header-left {
        flex: 1;
        gap: 3px;
    }

    .header-logo-icon {
        width: 24px;
        height: 24px;
    }

    .header-title {
        font-size: 16px;
    }

    .header-service-name {
        font-size: 14px;
    }

    .header-divider {
        font-size: 14px;
        padding: 0 3px;
    }

    .header-nav {
        display: none;
    }

    /* 모바일 메뉴 */
    .mobile-menu-toggle {
        display: flex;
    }
    .mobile-menu {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        max-width: 85%;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        gap: 0;
        transition: right 0.3s ease;
        z-index: 102;
        overflow: hidden;
        padding: 0 20px;
    }

    .mobile-menu.active {
        right: 0;
    }

    .mobile-menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px 0 30px 0;
        border-bottom: 2px solid black;
        flex-shrink: 0;
    }
    
    .mobile-menu-header-left {
        display: block;
    }

    .mobile-menu-title {
        padding: 15px 0 0 0;
        font-size: 22px;
        font-weight: 700;
        color: black;
        margin: 0;
    }

    .mobile-menu-subtitle {
        font-size: 22px;
        font-weight: 400;
        color: black;
        margin: 0;
        line-height: 1;
    }

    .mobile-menu-close {
        display: flex;
        align-items: flex-start;
        justify-content: center;
        width: 35px;
        height: 100%;
        background-color: transparent;
        border: none;
        color: black;
        font-size: 26px;
        cursor: pointer;
        padding: 0;
        transition: background-color 0.2s, color 0.2s;
        border-radius: 4px;
    }

    .mobile-menu-close:hover {
        opacity: 0.6;
    }

    .mobile-menu-content {
        flex: 1;
        overflow-y: auto;
        padding: 8px 0;
    }

    .mobile-menu-footer {
        flex-shrink: 0;
        padding: 16px 0 25px 0;
    }

    .mobile-nav-link {
        display: block;
        width: 100%;
        padding: 14px 0px;
        color: black;
        text-align: left;
        background-color: transparent;
        font-size: 16px;
        font-weight: 700;
        text-decoration: none;
        border: none;
    }

    .mobile-nav-link:hover,
    .mobile-nav-link.active {
        color: var(--theme-color);
    }

    .mobile-nav-sublink-container {
        margin-top: 10px;
    }
    .mobile-nav-sublink {
        display: block;
        width: 100%;
        padding: 6px 0px;
        color: black;
        text-align: left;
        background-color: transparent;
        font-size: 14px;
        font-weight: 400;
        text-decoration: none;
    }

    .mobile-nav-sublink:hover {
        opacity: 0.8;
    }

    .mobile-nav-button {
        display: block;
        width: 100%;
        padding: 8px 24px;
        background-color: var(--theme-color);
        color: white;
        text-align: center;
        font-size: 14px;
        font-weight: 600;
        border: none;
        border-radius: 8px;
        text-decoration: none;
        transition: background-color 0.2s;
    }

    .mobile-nav-button:hover {
        background-color: color-mix(in srgb, var(--theme-color) 90%, black);
        color: white;
    }

    .header-main .header-container {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px 12px;
    }

    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.4);
        z-index: 101;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    .mobile-menu-overlay.active {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

    /* 모바일 검색 */
    .header-search-area {
        padding: 5px 0px 10px 0;
        gap: 12px;
    }

    .search-title {
        font-size: 18px;
        margin-bottom: 0px;
    }

    .search-form {
        max-width: 100%;
    }

    .search-input {
        padding: 12px 16px;
        font-size: 13px;
    }

    .search-button {
        padding: 10px 16px;
    }

    .search-tags {
        display: none;
    }
    
    /* 모바일 푸터 */
    .site-footer {
        padding: 14px 0;
    }

    .footer-wrapper {
        gap: 7px;
        font-size: 12px;
    }

    .footer-brand-name,
    .footer-link {
        font-size: 12px;
    }

    .footer-copyright {
        display: none;
    }

    .footer-brand-name + .footer-divider {
        display: none;
    }

    .footer-copyright {
        display: none;
    }
}
