@charset "utf-8";
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");


/* 폰트 : GmarketSans */

@font-face {
    font-family: 'GMarketSans';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansLight.woff') format('woff');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'GMarketSans';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff') format('woff');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'GMarketSans';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansBold.woff') format('woff');
    font-weight: 700;
    font-display: swap;
}


/* 루트 색상 설정 */

:root {
    --color-primary: #26407F;    
}


.sound_only {
    display: none;
}


body {
    font-family: 'Pretendard',  sans-serif;
    font-size: 16px;
}


/* break-keep, letter-spacing 스타일 */

p,
div,
label,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: inherit;
    word-break: keep-all;
    overflow-wrap: break-word;
    letter-spacing: -0.02rem;
}


/* span 태그는 상위 태그의 letter-spacing 값을 상속받음 */
span {
    letter-spacing: inherit;
}


/* 모바일·태블릿은 네이티브 스와이프 유지. overflow-x는 html이 아니라 body만 제한 */
html,
body {
    overscroll-behavior-y: none;
}

@media (max-width: 1023px) {
    html {
        overflow-x: clip;
    }

    body {
        overflow-x: hidden;
        overflow-x: clip;
        max-width: 100%;
    }
}

@media (min-width: 1024px) {
    html,
    body {
        overscroll-behavior-y: initial;
    }
}


/* 에디터 콘텐츠 내 텍스트, 이미지 정렬 - 에디터에서 설정한 정렬 그대로 반영 */

.editor_content p,
.editor_content div,
#bo_v_con p,
#bo_v_con div {
    text-align: inherit;
    font-family: inherit !important;
}

.editor_content img,
#bo_v_con img {
    display: inline-block;
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* cheditor 제목 스타일: Tailwind preflight가 h1~h6 크기/굵기를 inherit으로 리셋하므로 복원 */
.editor_content h1,
#bo_v_con h1 {
    font-size: 2em;
    font-weight: 700;
    line-height: 1.3;
    margin: 0.67em 0;
}

.editor_content h2,
#bo_v_con h2 {
    font-size: 1.5em;
    font-weight: 700;
    line-height: 1.3;
    margin: 0.75em 0;
}

.editor_content h3,
#bo_v_con h3 {
    font-size: 1.17em;
    font-weight: 700;
    line-height: 1.3;
    margin: 0.83em 0;
}

.editor_content h4,
#bo_v_con h4 {
    font-size: 1em;
    font-weight: 700;
    line-height: 1.3;
    margin: 1.12em 0;
}

.editor_content h5,
#bo_v_con h5 {
    font-size: 0.83em;
    font-weight: 700;
    line-height: 1.3;
    margin: 1.5em 0;
}

.editor_content h6,
#bo_v_con h6 {
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1.3;
    margin: 1.67em 0;
}


/* 게시판 본문 첨부 이미지 확대 링크는 이미지 크기만 클릭되도록 제한 */
#bo_v_img a.view_image {
    display: inline-block !important;
    width: auto !important;
    max-width: 100%;
}

#bo_v_img a.view_image img {
    display: block;
}

/* 게시글 파일첨부, 링크 공통 스타일 */
#bo_v_file h2,
#bo_v_link h2 {
    position: absolute;
    font-size: 0;
    line-height: 0;
    overflow: hidden;
}

#bo_v_file ul,
#bo_v_link ul {
    margin: 0;
    list-style: none;
}

#bo_v_file li,
#bo_v_link li {
    padding: 15px;
    position: relative;
    margin: 10px 0;
    border: 1px solid #dfdfdf;
    border-radius: 5px;
    box-shadow: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    transition: border-color 0.2s ease, color 0.2s ease;
}

#bo_v_file li i,
#bo_v_link li i {
    flex-shrink: 0;
    color: #000;
    font-size: 2.35em;
    transition: color 0.2s ease;
}

#bo_v_file a,
#bo_v_link a {
    flex: 1;
    min-width: 0;
    display: block;
    text-decoration: none;
    word-wrap: break-word;
    color: #000;
    transition: color 0.2s ease;
}

#bo_v_file a:focus,
#bo_v_file li:hover a,
#bo_v_file a:active,
#bo_v_link a:focus,
#bo_v_link li:hover a,
#bo_v_link a:active {
    text-decoration: underline;
    color: var(--color-primary);
}

#bo_v_file img {
    flex-shrink: 0;
    margin: 0 10px 0 0;
}

#bo_v_file .bo_v_file_cnt,
#bo_v_link .bo_v_link_cnt {
    color: #000;
    font-size: 0.92em;
    transition: color 0.2s ease;
}

#bo_v_file li:hover,
#bo_v_link li:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

#bo_v_file li:hover i,
#bo_v_link li:hover i {
    color: var(--color-primary);
}

#bo_v_file li:hover .bo_v_file_cnt,
#bo_v_link li:hover .bo_v_link_cnt {
    color: var(--color-primary);
}



/* 체크박스 체크 시 색상 변경 */

input[type="checkbox"] {
    accent-color: var(--color-primary) !important;
}

input[type="checkbox"]:checked {
    accent-color: var(--color-primary) !important;
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
}

input[type="checkbox"]:checked+label span {
    accent-color: var(--color-primary) !important;
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
}

input[type="checkbox"]+label:hover {
    color: var(--color-primary) !important;
}


/* input, select, textarea focus 시 파란색 outline 제거 및 색상 변경 */
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus {
    outline: none;
    box-shadow: none;
    border: 1px solid var(--color-primary) !important;
}

input[type="text"]:focus-visible,
input[type="password"]:focus-visible,
input[type="email"]:focus-visible,
input[type="tel"]:focus-visible,
input[type="number"]:focus-visible {
    outline: none;
    box-shadow: none;
    border: 1px solid var(--color-primary) !important;
}

select:focus,
select:focus-visible {
    outline: none;
    box-shadow: none;
    border: 1px solid var(--color-primary) !important;
}

textarea:focus,
textarea:focus-visible {
    outline: none !important;
    box-shadow: none;
    border: 1px solid var(--color-primary) !important;
}


/*캡챠 오버라이딩*/
#captcha {
    display: flex;
    flex-direction: row;
    gap: 8px;
    justify-content: center;
    align-items: center;
    position: relative;    
}

#captcha .captcha_box {
    color: #000;
}

@media screen and (max-width: 768px) {
    #captcha {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    /* captcha_img는 한 줄 전체를 차지 */
    #captcha_img {
        display: block;
        width: 80% !important;
        margin: 0 auto;
        object-fit: contain;

    }

    /* captcha_key와 captcha_reload를 한 줄로 배치 */
    #captcha_key {
        display: inline-flex;
        align-items: center;
        flex-shrink: 0;
        height: 40px !important;
    }

    #captcha_reload {
        display: inline-flex;
        align-items: center;
        flex-shrink: 0;
    }
}


/* JS로 토글되는 부모 상태 → 자식 표시 (Tailwind로 표현이 어려운 부분만) */

body.m-gnb-open {
    overflow: hidden;
}

#site_header.is-mega .site-mega-bg,
#site_header.is-mega .site-gnb-2 {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#site_header.is-mega .site-mega-bg {
    top: 0;
    min-height: calc(100% + 280px);
}

#site_header.is-m-open #site_m_dim {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#site_header.is-m-open #site_m_panel {
    transform: translateX(0);
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
}

#site_header .site-m-1.is-open .site-m-2 {
    display: block;
}

#site_header .site-m-1.is-open .site-m-acc i {
    transform: rotate(180deg);
}

.site-mega-bg {
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

#site_header.is-index .site-logo {
    transition: filter 0.3s ease;
}

@media (min-width: 1024px) {
    #site_header.is-index:not(.is-scrolled):not(.is-m-open) .site-logo {
        filter: brightness(0) invert(1);
    }

    #site_header.is-index:not(.is-scrolled):not(.is-m-open) #site_gnb > ul > li > a,
    #site_header.is-index:not(.is-scrolled):not(.is-m-open) #site_gnb .site-gnb-2 a,
    #site_header.is-index:not(.is-scrolled):not(.is-m-open) #site_m_btn {
        color: #fff;
    }

    #site_header.is-index:not(.is-scrolled):not(.is-m-open) #site_gnb > ul > li > a:hover,
    #site_header.is-index:not(.is-scrolled):not(.is-m-open) #site_gnb .site-gnb-2 a:hover {
        color: #fff;
    }
}

/* 맛보기 론칭팩 팝업 */
html.launchpack-popup-open,
body.launchpack-popup-open {
    overflow: hidden;
    overscroll-behavior: none;
}

.launchpack-popup.is-hidden {
    display: none !important;
    pointer-events: none;
}

.launchpack-popup__scroll {
    overflow: hidden;
}

.launchpack-popup__img-wrap {
    position: relative;
    display: inline-block;
    max-width: 100%;
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
}

.launchpack-popup__img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
    object-fit: contain;
}

.launchpack-popup__btn {
    position: absolute;
    display: block;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    z-index: 2;
}

.launchpack-popup__btn-inner {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.launchpack-popup__btn--apply {
    left: 11.4%;
    top: 91.9%;
    width: 45.7%;
    height: 5.6%;
}

.launchpack-popup__btn--later {
    left: 59.6%;
    top: 91.9%;
    width: 29%;
    height: 5.6%;
}

@media (min-width: 768px) {
    .launchpack-popup__img-wrap,
    .launchpack-popup__img {
        max-height: calc(100vh - 3rem);
        max-height: calc(100dvh - 3rem);
    }
}

@media (min-width: 1024px) {
    .launchpack-popup__img-wrap,
    .launchpack-popup__img {
        max-height: calc((100vh - 4rem) * 2 / 3);
        max-height: calc((100dvh - 4rem) * 2 / 3);
    }
}

@media (max-width: 1023px) {
    .package-result-card {
        width: 100%;
        height: auto;
        aspect-ratio: 1023 / 240;
    }

    .package-result-photo,
    .package-result-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

@media (min-width: 1024px) {
    .package-result-list {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
        width: 100%;
        flex: 1 1 0;
        min-height: 0;
        container-type: size;
    }

    .package-result-card {
        flex: 0 0 auto;
        width: auto;
        min-width: 0;
        min-height: 0;
        height: min(100cqh, calc((100cqw - 6rem) / 5 * 730 / 307));
        aspect-ratio: 307 / 730;
    }

    .package-result-photo {
        width: 100%;
        height: 100%;
        aspect-ratio: auto;
    }

    .package-result-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}
