@font-face {
    font-family: 'SUIT';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_suit@1.0/SUIT-Thin.woff2') format('woff2');
    font-weight: 100;
    font-display: swap;
}

@font-face {
    font-family: 'SUIT';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_suit@1.0/SUIT-ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-display: swap;
}

@font-face {
    font-family: 'SUIT';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_suit@1.0/SUIT-Light.woff2') format('woff2');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'SUIT';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_suit@1.0/SUIT-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'SUIT';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_suit@1.0/SUIT-Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'SUIT';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_suit@1.0/SUIT-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'SUIT';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_suit@1.0/SUIT-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'SUIT';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_suit@1.0/SUIT-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: 'SUIT';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_suit@1.0/SUIT-Heavy.woff2') format('woff2');
    font-weight: 900;
    font-display: swap;
}

/* ============================================
   공통 CSS - 모든 페이지에서 사용
   ============================================ */

/* 폰트 설정 */
* {
    font-family: 'SUIT', sans-serif;
}

/* 기본 body 스타일 */
body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #4d4948;
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.is-loaded {
    opacity: 1;
}

body.is-fading-out {
    opacity: 0;
}

.back-link {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s ease;
    font-size: 18px;
    color: #2f2f2f;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.back-link:hover {
    transform: translateX(-4px);
}

body.is-searching .main-container > *:not(.global-search-overlay) {
    filter: blur(6px);
    pointer-events: none;
}

body.is-searching .right-nav {
    pointer-events: none;
}

/* 메인 컨테이너 - 1920x1080 기본 사이즈 */
.main-container {
    width: 1920px;
    height: 1080px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: scale(var(--scale, 1)) translate(-50%, -50%);
    transform-origin: 0 0;
    background-color: #ffffff;
    overflow: hidden; /* 1920x1080 사이즈를 벗어나는 요소 숨김 */
    /* display: flex 제거 - 자식 요소들의 위치가 absolute이므로 불필요 */
}

/* 뷰포트 래퍼 - 화면 가운데 정렬 */
.viewport-wrapper {
    width: 100vw;
    height: calc(var(--vh, 1vh) * 100);
    overflow: hidden;
    position: relative;
}

.page-placeholder {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

/* 우측 네비게이션 바 - 모든 페이지 공통 */
.right-nav {
    position: absolute;
    right: 0px;
    top: auto;
    bottom: 80px;
    width: 60px;
    height: 215px;
    background-color: #1c2e57;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
    z-index: 100;
    transition: filter 0.4s ease;
    border-radius: 10px 0 0 10px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
    transform: none;
}

.global-search-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 18, 25, 0.35);
    backdrop-filter: blur(8px);
    z-index: 120;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.global-search-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}

.global-search-modal {
    width: 720px;
    max-width: calc(100% - 120px);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 18px;
    padding: 36px 40px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
    text-align: center;
    opacity: 0;
    transform: translateY(12px) scale(0.98);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.global-search-overlay.is-active .global-search-modal {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.global-search-title {
    font-size: 30px;
    font-weight: 700;
    color: #2f2f2f;
    margin-bottom: 20px;
}

.global-search-form {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.global-search-field {
    position: relative;
    flex: 1;
    min-width: 0;
}

.global-search-input {
    width: 100%;
    min-width: 0;
    height: 56px;
    border-radius: 999px;
    border: 1px solid #c6c6c6;
    padding: 0 24px;
    font-size: 18px;
    outline: none;
}

.global-search-input:focus {
    border-color: #6f6f6f;
    box-shadow: 0 0 0 2px rgba(111, 111, 111, 0.2);
}

.global-search-submit {
    height: 56px;
    padding: 0 28px;
    border-radius: 999px;
    border: none;
    background: #1c2e57;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.global-search-submit:hover {
    opacity: 0.9;
}

.global-search-suggest {
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(100% + 10px);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    display: none;
    max-height: 220px;
    overflow-y: auto;
    z-index: 2;
}

.global-search-suggest.is-visible {
    display: block;
}

.global-search-item {
    width: 100%;
    text-align: left;
    padding: 10px 16px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
    color: #2f2f2f;
}

.global-search-item:hover {
    background: #f2f4f8;
}

.nav-icon {
    width: 28px;
    height: 28px;
    color: white;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.nav-icon:hover {
    opacity: 0.7;
    transform: translateY(-2px);
}

/* 공통 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        transform: translate(-100%, -50%);
    }
    to {
        transform: translate(0, -50%);
    }
}
