@import url(./components.css);
@import url(//spoqa.github.io/spoqa-han-sans/css/SpoqaHanSansNeo.css);

@font-face {
    font-family: 'KOTRA_SONGEULSSI';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_20-10-21@1.0/KOTRA_SONGEULSSI.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* ————————————————————————
   공통 레이아웃
———————————————————————— */
html,
body {
    background: #fff;
}

/* 기본 텍스트 설정 */
body {
    font-family: 'Spoqa Han Sans Neo', 'sans-serif';
    font-weight: 400;
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-text-dark);
}

.site-header,
.site-footer {
    position: relative;
    z-index: 10;
}
.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.foot-menu {
}
.foot-menu ul {
    display: flex;
    gap: 0 20px;
}
.foot-menu ul li {
    position: relative;
}
.foot-menu ul li + li::before {
    content: ' ';
    width: 1px;
    height: 100%;
    background: #ccc;
    position: absolute;
    top: 0;
    left: -10px;
}
.foot-menu ul li a {
}

.foot-info {
    text-align: left;
}
.foot-info p {
}

.container {
    max-width: var(--max-width-container);
    margin: 0 auto;
    padding: 0.5rem 1.5rem;
    width: 100%;
}

.page-container {
}
.page-container section {
    position: relative;
    text-align: center;
    padding: 6rem 1rem;
}
.page-container section:last-child {
    padding: 6rem 1rem;
}

.page-container h2,
.page-container h3 {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    font-family: 'KOTRA_SONGEULSSI', sans-serif;
}

.page-btn-wrap {
    max-width: 1280px;
    padding: 1rem 1rem 4rem 1rem;
    margin: 10rem auto 0;
    border-top: 1px solid #ccc;
    text-align: center;
}

/* ————————————————————————
   Header
———————————————————————— */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.6);
    z-index: 1000;
    transition: transform 0.3s ease;
    transform: translateY(0); /* 기본 상태: 보임 */
}

/* 스크롤 내릴 때 숨김 상태 */
.site-header.hide {
    transform: translateY(-100%);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 1rem 1.5rem;
}

.logo {
    display: block;
    width: 180px;
    height: 50px;
    background-image: url('/assets/images/logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left center;
}

.logo a {
    height: 100%;
}

.main-nav {
    display: flex;
    height: 100%;
    align-items: center;
    position: absolute;
    top: 0;
    right: 0;
}

.main-nav ul {
    display: flex;
    gap: 2rem 4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    position: relative;
    color: var(--color-text-dark);
    font-weight: 400;
    font-size: 18px;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.main-nav a:hover {
    color: var(--color-primary-hover);
}

.main-nav a.active {
    font-weight: 600;
}

.main-nav a.active:before {
    content: ' ';
    display: block;
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 10px;
    height: 2px;
    background: #000;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 20;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: #333;
    display: block;
    transition: all 0.3s ease;
}

/* ————————————————————————
   Footer
———————————————————————— */
.site-footer {
    padding: 2rem 1rem;
    text-align: center;
}

.site-footer * {
    font-size: var(--font-size-small);
    color: var(--color-text-light);
}

.site-footer .slogan {
    color: var(--color-text-dark);
}

.site-footer .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}
@media (max-width: 1024px) {
    .main-nav {
        left: initial;
        right: 1.5rem;
        transform: none;
    }
    .main-nav ul {
        gap: 2rem 2rem;
    }
}
/* 반응형 */
@media (min-width: 769px) {
    .pc-show {
        display: block;
    }
    .mobile-show {
        display: none;
    }
    .pc-d-block {
        display: block;
    }
}
@media (max-width: 768px) {
    .pc-show {
        display: none;
    }
    .mobile-show {
        display: block;
    }

    .mobile-d-block {
        display: block;
    }
    .site-header .container {
        flex-direction: column;
        align-items: center;
        padding: 5px 0;
    }

    .logo {
        height: 40px;
        background-position: center;
    }
    .site-header {
        background: rgba(255, 255, 255, 0.8);
    }
    .main-nav {
        display: none;
        position: static;
        transform: none;
        width: 100%;
        text-align: right;
        padding: 10px 2rem;
        border-top: 1px solid #000;
        margin-top: 10px;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav a {
        font-size: var(--font-size-base);
        padding: 0.5rem 0;
    }

    .main-nav a.active:before {
        top: 48%;
        left: 0;
    }

    .site-footer {
        font-size: var(--font-size-base);
        padding: 1.5rem 1.5rem;
    }

    .menu-toggle {
        display: flex;
        position: absolute;
        top: 10px;
        right: 1rem;
    }

    .main-nav.active {
        display: block;
        animation: fadeIn 0.3s ease;
    }

    .container {
        padding: 0 0;
    }

    .page-container h3 {
        font-size: 1.3rem;
    }

    .site-footer .container {
        flex-direction: column;
        font-size: 12px;
        padding: 0;
    }
    .foot-menu {
        margin-top: 1rem;
    }
    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}
