/* 폰트 ====================================================================== */
@font-face {
    font-family: 'Spoqa Han Sans Neo';
    src: url('/static/css/fonts/spoqaHansSansNeo/SpoqaHanSansNeo-Light.woff2') format('woff2'),
         url('/static/css/fonts/spoqaHansSansNeo/SpoqaHanSansNeo-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Spoqa Han Sans Neo';
    src: url('/static/css/fonts/spoqaHansSansNeo/SpoqaHanSansNeo-Regular.woff2') format('woff2'),
         url('/static/css/fonts/spoqaHansSansNeo/SpoqaHanSansNeo-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Spoqa Han Sans Neo';
    src: url('/static/css/fonts/spoqaHansSansNeo/SpoqaHanSansNeo-Medium.woff2') format('woff2'),
         url('/static/css/fonts/spoqaHansSansNeo/SpoqaHanSansNeo-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Spoqa Han Sans Neo';
    src: url('/static/css/fonts/spoqaHansSansNeo/SpoqaHanSansNeo-Bold.woff2') format('woff2'),
         url('/static/css/fonts/spoqaHansSansNeo/SpoqaHanSansNeo-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


/* 공통 / 기본 ================================================================ */
html {
    scroll-behavior: smooth;
}

body,
html {
    margin: 0;
    padding: 0;
    touch-action: manipulation;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    width: 100%;
    color: #2a2a2a;
    letter-spacing: -0.28px;
    overflow-x: hidden;
    font-family: 'Spoqa Han Sans Neo', sans-serif;
}

body {
    overflow: hidden;
}

* {
    box-sizing: border-box;
    word-break: break-all;
    -webkit-tap-highlight-color: transparent;
}

img {
    max-width: 100%;
    pointer-events: none;
    user-select: none;
    vertical-align: bottom;
}

button {
    padding: 0;
    cursor: pointer;
    border: none;
    background-color: transparent;
    color: inherit;
    font-family: 'Spoqa Han Sans Neo', sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

input, select, textarea {
    outline: none;
    font-family: 'Spoqa Han Sans Neo', sans-serif;
}

/* 화면에는 보이지 않지만 스크린리더·검색엔진에는 읽히는 텍스트 */
.blind {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.mobile-only {
    display: none !important;
}

.pc-only {
    display: block !important;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block !important;
    }
    .pc-only {
        display: none !important;
    }
}


/* 헤더 ====================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 110px;
    z-index: 999;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

header .logo-area {
    width: 1440px;
    height: 100%;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .logo-area .icon-area {
    display: flex;
    align-items: center;
    gap: 24px;
}

header .icon-area button {
    display: block;
}

header .icon-area button a {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

header .num-area {
    display: flex;
    align-items: center;
    gap: 5px;
}

header .num-area .phone {
    width: 18px;
}

header .num-area span {
    font-size: 24px;
    color: #12477d;
    font-weight: 500;
}

header .num-area .phone-num {
    font-size: 34px;
    font-weight: 500;
}

header .header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 햄버거 버튼 (1000px 이하에서만 노출) */
header .hamburger {
    display: none;
    width: 30px;
    height: 26px;
    position: relative;
    flex: 0 0 auto;
}

header .hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    border-radius: 3px;
    background-color: #12477d;
    transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}

header .hamburger span:nth-child(1) {
    top: 2px;
}

header .hamburger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

header .hamburger span:nth-child(3) {
    top: auto;
    bottom: 2px;
}

header .hamburger.is-active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

header .hamburger.is-active span:nth-child(2) {
    opacity: 0;
}

header .hamburger.is-active span:nth-child(3) {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

/* 슬라이드 메뉴 */
header .mobile-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 8px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease;
}

header .mobile-nav.is-open {
    max-height: 400px;
}

header .mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

header .mobile-nav a {
    text-align: right;
    display: block;
    padding: 12px 24px;
    font-size: 16px;
    color: #2a2a2a;
    font-weight: 500;
}

header .mobile-nav a:active {
    background-color: #f4f8fb;
}

@media (max-width: 1440px) {
    header {
        height: 70px;
    }

    header .logo-area {
        width: 100%;
        padding: 0 20px;
    }

    header .logo-area .icon-area {
        display: none;
    }

    header .logo img {
        max-height: 40px;
    }

    header .num-area span,
    header .num-area .phone-num {
        font-size: 18px;
    }

    header .num-area .phone-num {
        font-weight: 600;
    }

    header .hamburger {
        display: block;
    }
}

@media (max-width: 768px) {
    header .num-area .phone {
        display: none;
    }

    header .logo {
        width: 140px;
    }

    header .num-area span {
        font-size: 10px;
    }

    header .num-area .phone-num {
        font-size: 16px;
    }
}


/* 섹션 이미지 =============================================================== */
.section {
    width: 100%;
    scroll-margin-top: 110px;
}

.section picture,
.section img {
    display: block;
    width: 100%;
}

#section9 {
    position: relative;
}

#section9 .map_container {
    position: absolute;
    top: 46%;
    left: 50%;
    transform: translateX(-50%);
    width: 61%;
    height: 39%;
}

#section9 .map,
#section9 .map_container .root_daum_roughmap {
    width: 100% !important;
    height: 100%;
}

@media (max-width: 1440px) {
    .section {
        scroll-margin-top: 70px;
    }
}

@media (max-width: 560px) {
    #section9 .map_container {
        top: 40%;
        width: 85%;
        height: 45%;
    }
}


/* 푸터 ====================================================================== */
footer {
    position: relative;
}

footer .sns-area {
    position: absolute;
    top: 40%;
    right: 20%;
    display: flex;
    align-items: center;
    gap: 10px;
}

footer .terms-area {
    position: absolute;
    top: 32%;
    left: 34%;
}

footer .terms-area ul {
    display: flex;
    align-items: center;
    gap: 48px;
}

footer .terms-area button {
    color: #acacac;
    font-size: 18px;
    font-weight: 500;
}

@media (max-width: 1440px) {
    footer .sns-area {
        right: 10%;
    }

    footer .terms-area {
        top: 25%;
    }

    footer .terms-area button {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    footer {
        margin-bottom: 15vh;
    }

    footer .sns-area {
        display: none;
    }

    footer .terms-area {
        top: 18%;
        left: 31%;
    }

    footer .terms-area ul {
        gap: 10px;
    }

    footer .terms-area button {
        font-size: 8px;
    }
}

@media (max-width: 560px) {
    footer {
        margin-bottom: 5vh;
    }
}


/* 탑 버튼 ================================================================== */
#goTop {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#goTop.is-visible {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    #goTop {
        display: none;
    }
}


/* 모바일 하단 퀵메뉴 (768px 이하) ========================================== */
.quick-menu {
    display: none;
}

@media (max-width: 768px) {
    .quick-menu {
        display: flex;
        position: fixed;
        left: 0;
        bottom: 0;
        width: 100%;
        z-index: 998;
    }

    .quick-menu a {
        flex: 1;
        display: block;
    }

    .quick-menu a img {
        width: 100%;
        height: 100%;
    }
}


/* 약관 팝업 ================================================================ */
.terms-area button {
    cursor: pointer;
}

.terms-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.terms-modal.is-open {
    display: flex;
}

.terms-modal__dim {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.terms-modal__box {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 900px;
    max-width: 95%;
    max-height: 80vh;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.terms-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
    flex: 0 0 auto;
}

.terms-modal__title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #12477d;
}

.terms-modal__close {
    font-size: 28px;
    line-height: 1;
    color: #888;
    flex: 0 0 auto;
}

.terms-modal__body {
    padding: 24px;
    overflow-y: auto;
    font-size: 15px;
    line-height: 1.7;
    color: #444;
    -webkit-overflow-scrolling: touch;
}

.terms-modal__body h4 {
    margin: 24px 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: #222;
}

.terms-modal__body h4:first-child {
    margin-top: 0;
}

.terms-modal__body p {
    margin: 0 0 12px;
    white-space: pre-line;
}

.terms-modal__body ul {
    margin: 0 0 12px;
    padding-left: 18px;
    list-style: disc;
}

.terms-modal__body li {
    margin-bottom: 6px;
}

.terms-modal__body img {
    width: 100%;
}

@media (max-width: 768px) {
    .terms-modal__title {
        font-size: 16px;
    }

    .terms-modal__body {
        font-size: 10px;
    }

    .terms-modal__body h4 {
        font-size: 12px;
    }
}


/* 메인 팝업 ================================================================ */
#popupArea {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999;
    margin: 0;
    display: none;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    padding: 40px 20px;
    overflow-y: auto;
}

#popupArea.is-visible {
    display: flex;
}

#popupArea .item {
    position: relative;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    width: min(420px, 92vw);
    flex: 0 0 auto;
}

#popupArea.size-l .item {
    width: min(550px, 92vw);
}

#popupArea.size-m .item {
    width: min(550px, 44vw);
}

#popupArea.size-s .item {
    width: min(350px, 30vw);
}

#popupArea .item .popup-image {
    display: block;
    text-decoration: none;
    line-height: 0;
}

#popupArea .item .popup-image img {
    width: 100%;
    height: auto;
    display: block;
}

#popupArea .item .button_group {
    display: flex;
    justify-content: flex-end;
    align-items: stretch;
    background: #1a1a1a;
}

#popupArea .item .button_group button {
    flex: 0 0 auto;
    border: none;
    background: transparent;
    color: #fff;
    padding: 10px 16px;
    font-size: 13px;
    cursor: pointer;
    line-height: 1.4;
}

#popupArea .item .button_group button+button {
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}

#popupArea .item .button_group button:hover {
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    #popupArea {
        padding: 0;
        gap: 0;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    #popupArea .item,
    #popupArea.size-l .item,
    #popupArea.size-m .item,
    #popupArea.size-s .item {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 86vw;
        max-width: 400px;
        transform: translate(-50%, -50%);
    }

    #popupArea .item .button_group button {
        flex: 1 1 auto;
        padding: 12px 14px;
        font-size: 12px;
        text-align: center;
    }
}
