@charset "utf-8";
/* =========================================================
   custom theme - main layout skeleton
   이미지 경로: ../img/파일명  (같은 이름·크기로 덮어쓰면 교체됨)
   ========================================================= */

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
body { font-family: var(--font-base); font-size: var(--fs-base); color: var(--c-body-text); background: var(--c-body-bg); -webkit-text-size-adjust: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-size: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { border: 0; vertical-align: top; max-width: none; }
.sound_only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- image slot (placeholder) ---------- */
.slot { position: relative; display: block; overflow: hidden; }
.slot picture, .slot img { display: block; width: 100%; height: 100%; }
.slot .fit-contain { object-fit: contain; }
.slot .fit-cover { object-fit: cover; }
.slot .fit-fill { object-fit: fill; }
.slot.is-empty { background: rgba(0, 0, 0, .5); outline: 1px dashed var(--c-gold); outline-offset: -1px; }
.slot.is-empty img, .slot.is-empty picture { visibility: hidden; }
.bg-slot.is-empty::after { align-items: flex-start; justify-content: flex-start; padding: 70px 16px; font-size: var(--fs-sm); }
.slot.is-empty::after {
    content: attr(data-ph); position: absolute; top: 0; right: 0; bottom: 0; left: 0;
    display: flex; align-items: center; justify-content: center; padding: 2px 4px;
    font: var(--fs-xxs)/1.25 var(--font-mono); color: var(--c-gold-text); text-align: center; word-break: break-all;
    pointer-events: none;
}

/* ---------- header ---------- */
#hd { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: 58px; background: rgba(8, 8, 12, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-bottom: 1px solid var(--c-line); color: var(--c-text); }
.hd-inner { display: flex; align-items: center; height: 58px; padding: 0 0 0 30px; }
.hd-logo { flex: none; }
.hd-logo .logo-slot { width: 67px; height: 40px; }
.hd-gnb { margin-left: 60px; }
.hd-gnb ul { display: flex; }
.hd-gnb a { display: block; padding: 0 24px; line-height: 58px; font-size: var(--fs-lg); font-weight: var(--fw-semibold); letter-spacing: -.02em; transition: color .2s; }
.hd-gnb a:hover { color: var(--c-gold-light); }
.hd-util { display: flex; align-items: center; margin-left: auto; }
.hd-link { margin-right: 22px; font-size: var(--fs-md); color: var(--c-text-sub); }
.hd-link:hover { color: var(--c-text-strong); }
.hd-start .start-slot { width: 190px; height: 58px; }
.hd-menu-btn { display: none; }

#sub_wrap { min-height: 60vh; padding: 100px 20px 80px; }

/* ---------- main common ---------- */
#main { display: block; overflow: hidden; background: var(--c-bg-page); color: var(--c-text); }
.arrow { position: relative; z-index: 3; display: block; transition: opacity .2s, transform .2s; }
.arrow:hover { opacity: .85; }
.arrow .slot { width: 73px; height: 40px; }
.arrow-big .slot { width: 91px; height: 50px; }
.sec-bg { background: var(--c-bg-section) url(../img/section_bg_pc.jpg) center top / cover no-repeat; }
.sec-deco { position: absolute; top: 0; left: 50%; z-index: 2; width: 718px; height: 52px; transform: translateX(-50%); background: url(../img/section_deco_top_pc.png) center top / contain no-repeat; pointer-events: none; }
.sec-subject .slot { margin: 0 auto; }

/* ---------- 1. visual ---------- */
.sec-visual { position: relative; height: 1130px; overflow: hidden; background: var(--c-bg-black); }
.visual-bg, .visual-bg .bg-slot { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.visual-inner { position: relative; height: 100%; }
.visual-title, .visual-btns, .event { position: absolute; left: 50%; transform: translateX(-50%); }
.visual-title { top: 115px; z-index: 1; }
.visual-title .slot { width: 1104px; height: 460px; }
.visual-btns { top: 503px; z-index: 2; display: flex; gap: 12px; }
.vbtn { display: block; transition: transform .2s; }
.vbtn:hover { transform: translateY(-3px); }
.vbtn1 .slot { width: 274px; height: 77px; }
.vbtn2 .slot { width: 273px; height: 78px; }

.event { --cw: 337px; --gap: 11px; --vis: 4; top: 682px; z-index: 2; display: flex; align-items: center; gap: 22px; }
.event-view { width: calc(var(--cw) * var(--vis) + var(--gap) * (var(--vis) - 1)); overflow: hidden; }
.event-track { display: flex; gap: var(--gap); }
.event-item { flex: 0 0 var(--cw); }
.event-item a { display: block; }
.event-item .slot { width: 100%; height: auto; aspect-ratio: 337 / 348; }

/* ---------- 2. news ---------- */
.sec-news { position: relative; height: 801px; padding-top: 92px; }
.news-subject .slot { width: 500px; max-width: 86vw; height: auto; aspect-ratio: 1000 / 128; } /* 섹션 제목 통일 (1000x128 → 500x64) */
.news-inner { width: 1034px; margin: 48px auto 0; }
.news-cols { display: flex; justify-content: space-between; align-items: flex-start; }
.news-notice { width: 498px; }
.notice-list { border-top: 2px solid var(--c-line-strong); }
.notice-list li { border-bottom: 1px solid var(--c-line); }
.notice-list a { display: flex; align-items: center; gap: 14px; height: 76px; padding: 0 6px; transition: background .2s; }
.notice-list a:hover { background: rgba(255, 255, 255, .04); }
.notice-list .notice-icon { flex: none; width: 35px; height: 36px; }
.notice-subject { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: var(--fs-lg); color: var(--c-text-cream); }
.notice-date { flex: none; font-size: var(--fs-sm); color: var(--c-text-muted); }
.notice-list .empty { padding: 30px 0; text-align: center; color: var(--c-text-muted); }

.news-banner { position: relative; width: 496px; }
.banner-view { position: relative; width: 100%; height: 286px; }
.banner-item { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
.banner-item.is-on { opacity: 1; visibility: visible; z-index: 1; }
.banner-item .slot { width: 100%; height: 100%; }
/* 테두리: 레퍼런스 .cmazit-list::before(1px 테두리 + 상단 가운데 빛) — 이미지 없이 CSS. 그림자: drop-shadow */
.banner-view { filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .25)); }
.banner-mask { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 2; box-sizing: border-box; border: 1px solid rgba(182, 110, 107, .55); background: linear-gradient(90deg, rgba(255, 236, 196, 0) 28%, rgba(255, 236, 196, .9) 50%, rgba(255, 236, 196, 0) 72%) 50% 0 / 100% 2px no-repeat, radial-gradient(40% 14px at 50% 0, rgba(255, 198, 126, .45), rgba(255, 198, 126, 0)) 50% 0 / 100% 100% no-repeat; pointer-events: none; }
.banner-deco { position: relative; z-index: 3; width: 336px; height: 38px; margin: -19px auto 0; pointer-events: none; } /* 장식 이미지 없음(레퍼런스 동일) — 간격만 유지 */
.banner-paging { display: flex; align-items: center; justify-content: space-between; width: 76px; height: 28px; margin: 8px auto 0; padding: 0 6px; background: url(../img/news_paging_bg.png) center / 100% 100% no-repeat; font-size: var(--fs-xs); color: var(--c-text-sub); }
.banner-paging button { width: 16px; font-size: var(--fs-xl); line-height: 26px; color: var(--c-text-cream); }
.banner-paging b { color: var(--c-text-strong); font-weight: var(--fw-bold); }

.news-shortcut {
    display: flex; align-items: center; justify-content: center; height: 99px; margin-top: 64px;
    background:
        url(../img/news_shortcut_left_pc.png) left center / 220px 99px no-repeat,
        url(../img/news_shortcut_right_pc.png) right center / 220px 99px no-repeat,
        url(../img/news_shortcut_bg_pc.png) center / calc(100% - 436px) 99px no-repeat;
}
.news-shortcut .item a { display: block; padding: 0 34px; font-size: 17px; font-weight: var(--fw-semibold); color: var(--c-text-cream); transition: color .2s; }
.news-shortcut .item a:hover { color: var(--c-text-strong); }
.news-shortcut .dot { width: 14px; height: 14px; background: url(../img/news_shortcut_dot_pc.png) center / contain no-repeat; }
@media (min-width: 1024px) and (max-width: 1259px) { .news-shortcut[data-count="6"] .item a, .news-shortcut[data-count="7"] .item a { padding: 0 22px; font-size: 16px; } } /* [content-thumb] guide 분류 6개 */

/* ---------- 3. movie (동영상 카드) : 캐러셀 배치·모션은 main_sliders.css ----------
 * [movie] 구 3. story(비디오) 섹션 삭제, 구 4. guide(업데이트) 자리 → 서브 동영상 카드 */
.btn-detail { display: block; transition: transform .2s; }
.btn-detail:hover { transform: translateY(-2px); }
.sec-movie { position: relative; padding: 112px 0 92px; } /* 아래 여백 = 가이드 섹션 위 여백(92)과 같은 리듬 */
.movie-subject .slot { width: 500px; max-width: 86vw; height: auto; aspect-ratio: 1000 / 128; }

/* ---------- footer ---------- */
#ft { min-height: 450px; padding: 80px 0 60px; background: var(--c-bg-footer); color: var(--c-text-footer); font-size: var(--fs-md); line-height: 1.8; }
.ft-inner { width: 1200px; max-width: calc(100% - 40px); margin: 0 auto; }
.ft-links { display: flex; gap: 26px; margin-bottom: 26px; }
.ft-links a { color: var(--c-text-sub); font-weight: var(--fw-semibold); }
.ft-links a.em { color: var(--c-gold-text); }
.ft-info p { margin: 0; }
.ft-info span { display: inline-block; }
.ft-info span + span::before { content: "|"; margin: 0 12px; color: var(--c-line-dark); }
.ft-copy { margin: 26px 0 0; font-size: var(--fs-sm); color: var(--c-text-faint); }

/* ---------- top button ---------- */
.btn-top { position: fixed; right: 30px; bottom: 30px; z-index: 90; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.btn-top.is-show { opacity: 1; visibility: visible; }
.btn-top .top-slot { width: 42px; height: 42px; }
.btn-top .slot.is-empty::after, .notice-icon.is-empty::after { padding: 1px; font-size: 6px; line-height: 1.1; }

/* ---------- popup ---------- */
.popup { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.popup[hidden] { display: none; }
.popup-dim { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: var(--c-dim); }
.popup-box { position: relative; width: 1062px; max-width: 100%; }
.popup-banner { display: block; }
.popup-slot { width: 100%; height: auto; aspect-ratio: 1062 / 630; }
.popup-x { position: absolute; top: -46px; right: 0; width: 40px; height: 40px; font-size: 38px; line-height: 38px; color: var(--c-text-strong); }
.popup-foot { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: var(--c-surface); color: var(--c-text-sub); font-size: var(--fs-md); }
.popup-foot label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.popup-foot button { color: var(--c-gold-text); }

/* =========================================================
   1024 ~ 1600 : 데스크톱 축소
   ========================================================= */
@media (max-width: 1600px) {
    .hd-gnb { margin-left: 36px; }
    .hd-gnb a { padding: 0 16px; }
    .event { --cw: calc((100vw - 146px - 44px - 60px - 33px) / 4); }
}
@media (max-width: 1280px) {
    .hd-gnb { margin-left: 20px; }
    .hd-gnb a { padding: 0 11px; font-size: var(--fs-base); }
    .visual-title .slot { width: min(1104px, 94vw); height: auto; aspect-ratio: 1104 / 460; }
    .news-inner { width: min(1034px, 94vw); }
    .news-notice { width: calc(50% - 20px); }
    .news-banner { width: calc(50% - 20px); }
    .banner-view { height: auto; aspect-ratio: 496 / 286; }
}

/* =========================================================
   ~1023 : 태블릿/모바일 (세로 쌓기, _mo 이미지)
   ========================================================= */
@media (max-width: 1023px) {
    /* header */
    #hd, .hd-inner { height: 52px; }
    .hd-inner { padding: 0 0 0 14px; }
    .hd-logo .logo-slot { width: 54px; height: 32px; }
    .hd-menu-btn { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; margin-left: 8px; padding: 0 9px; }
    .hd-menu-btn span { display: block; height: 2px; background: var(--c-text); }
    .hd-gnb { position: absolute; top: 52px; left: 0; right: 0; margin: 0; background: rgba(8, 8, 12, .96); border-bottom: 1px solid color-mix(in srgb, var(--c-gold) 30%, transparent); display: none; }
    #hd.is-open .hd-gnb { display: block; }
    .hd-gnb ul { flex-direction: column; padding: 8px 0; }
    .hd-gnb a { padding: 0 20px; line-height: 46px; font-size: var(--fs-base); }
    .hd-link { margin-right: 12px; font-size: var(--fs-sm); }
    .hd-start .start-slot { width: 120px; height: 37px; }
    .hd-start .slot.is-empty::after { font-size: 8px; }

    /* visual */
    .sec-visual { height: auto; padding: 84px 16px 40px; }
    .visual-inner { height: auto; }
    .visual-title, .visual-btns, .event { position: relative; top: auto; left: auto; transform: none; }
    .visual-title .slot { width: 100%; max-width: 1104px; margin: 0 auto; }
    .visual-btns { justify-content: center; gap: 8px; margin-top: 10px; }
    .vbtn1 .slot, .vbtn2 .slot { width: min(274px, calc(50vw - 24px)); height: auto; aspect-ratio: 274 / 77; }
    .event { --vis: 2; --gap: 10px; --cw: calc((100vw - 32px - 72px - 16px - 10px) / 2); justify-content: center; gap: 8px; margin-top: 30px; }
    .event .arrow .slot { width: 36px; height: 20px; }

    /* section common */
    .sec-bg { background-image: url(../img/section_bg_mo.jpg); }
    .sec-deco { width: 300px; height: 52px; background-image: url(../img/section_deco_top_mo.png); }

    /* news */
    .sec-news { height: auto; padding: 72px 0 60px; }
    .news-subject .slot { width: min(300px, 80vw); }
    .news-inner { width: auto; margin: 30px 16px 0; }
    .news-cols { flex-direction: column; gap: 40px; }
    .news-notice, .news-banner { width: 100%; }
    .news-banner { max-width: 496px; margin: 0 auto; }
    .notice-list a { height: 60px; gap: 10px; }
    .notice-list .notice-icon { width: 28px; height: 29px; }
    .notice-subject { font-size: var(--fs-md); }
    .notice-date { font-size: var(--fs-xs); }
    .banner-deco { width: 310px; max-width: 80%; height: 35px; margin-top: -17px; }
    .news-shortcut { flex-wrap: wrap; height: auto; margin-top: 40px; padding: 18px 10px; background: url(../img/news_shortcut_bg_pc.png) center / 100% 100% no-repeat; }
    .news-shortcut .dot { display: none; }
    .news-shortcut .item { width: 33.33%; text-align: center; }
    .news-shortcut .item a { padding: 8px 4px; font-size: var(--fs-md); }

    /* movie */
    .sec-movie { padding: 72px 0 60px; }
    .movie-subject .slot { width: min(300px, 80vw); }

    /* footer */
    #ft { min-height: 0; padding: 44px 0 50px; font-size: var(--fs-sm); }
    .ft-info span { display: block; }
    .ft-info span + span::before { display: none; }

    .btn-top { right: 14px; bottom: 14px; }
}

/* =========================================================
 * [ui-fixed] 메인 — 데이터 유무와 상관없이 틀 고정 (UI_일관성_규칙.md 3절)
 *  - 가이드 : 목록 4줄 높이 고정(글이 적으면 빈 줄 비움), 배너가 없어도 배너 자리 유지(목록이 왼쪽으로 쏠리지 않게)
 *  - 모바일 visual : 버튼 1·2 를 모두 숨겨도 이벤트 카드 위치 고정 (카드 0장 = 영역 hidden 은 visual-event 담당 — 보고)
 *    (PC 는 visual 안 요소가 모두 absolute 라 원래 고정)
 * ========================================================= */
#news .news-cols:not(:has(.ng-banner))::after { content: ""; order: 1; flex: none; width: 496px; height: 286px; }
@media (min-width: 1024px) {
    #news .news-cols .ng-list li { flex: 0 0 25%; }
}
@media (max-width: 1280px) {
    #news .news-cols:not(:has(.ng-banner))::after { width: calc(50% - 20px); }
}
@media (max-width: 1023px) {
    #news .news-cols:not(:has(.ng-banner))::after { order: 0; width: auto; margin: 0 24px; }
    #news .news-cols .ng-list { min-height: 184px; }
    .sec-visual .visual-title + .event { margin-top: calc(40px + min(274px, 50vw - 24px) * 77 / 274); }
}


/* 2026-11-07 하단 동영상 배경 : 관리자에서 올렸을 때만 (없으면 검정) — 예전 공용 배경(sec-bg) 대신 */
.sec-movie { background: var(--c-bg-black, #0b0b0b); }
.sec-movie.has-bg { background: var(--c-bg-section, #15130F) var(--movie-bg-pc, none) center top / cover no-repeat; }
@media (max-width: 1023px) { .sec-movie.has-bg { background-image: var(--movie-bg-mo, var(--movie-bg-pc, none)); } }
#movie.has-bg { background: var(--c-bg-section, #15130F) var(--movie-bg-pc, none) center top / cover no-repeat !important; }
@media (max-width: 1023px) { #movie.has-bg { background-image: var(--movie-bg-mo, var(--movie-bg-pc, none)) !important; } }
