/* ====================== *STYLEGLOBAL: 공통 STYLE ====================== */
/* 폰트 설정 */
/* 폰트 설정 */
/* PAPERLOGY 폰트 - CDN 우선, 로컬 fallback */
@font-face {
    font-family: 'PAPERLOGY';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-4Regular.woff2') format('woff2'),
        url('../fonts/Paperlogy-4Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PAPERLOGY';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-5Medium.woff2') format('woff2'),
        url('../fonts/Paperlogy-5Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PAPERLOGY';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-6SemiBold.woff2') format('woff2'),
        url('../fonts/Paperlogy-6SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PAPERLOGY';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-7Bold.woff2') format('woff2'),
        url('../fonts/Paperlogy-7Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PAPERLOGY';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-8ExtraBold.woff2') format('woff2'),
        url('../fonts/Paperlogy-8ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* 기본 설정 */
html {
    font-size: 62.5%;
    box-sizing: border-box;
}

body {
    font-family: 'PAPERLOGY', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    line-height: 1.4;
    box-sizing: border-box;
}

/* 색상 변수 */
:root {
    --bs-black: #000000;
    --bs-white: #ffffff;
    --bs-sky-blue: #4b95f8;
    --bs-blue: #0554c1;
    --bs-dark-blue: #00367f;
    --bs-gray: #e6ebf2;
    --bs-bg-gray: #eef1f5;
}

/* 컨테이너 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 텍스트 색상 */
.blue {
    color: var(--bs-blue);
}

/* ====================== 헤더 ====================== */
.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    overflow: hidden;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    will-change: transform, background, box-shadow;
}

.header.sub_header {
    background: var(--bs-white);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.header.sub_header li a:not(.on) {
    color: var(--bs-black);
}

.header .h_wrap {
    display: flex;
    flex-direction: column;
}

.header .h_container {
    line-height: 60px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    height: 60px;
    box-sizing: border-box;
}

.header .header_wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.header .logo {
    height: 44px;
    line-height: 1;
    flex-shrink: 0;
}

.header .logo a {
    display: flex;
    height: 44px;
    line-height: 44px;
}

.header .logo img {
    max-width: 90px;
    height: auto;
    object-fit: contain;
    vertical-align: middle;
}

.header ul {
    display: flex;
    align-items: center;
    gap: 15px;
    height: 100%;
}

.header li a {
    font-size: 16px;
    line-height: 1.4;
    font-weight: 500;
    padding: 12px 10px;
    color: var(--bs-white);
}

.header li a:hover {
    background: rgba(170, 170, 170, 0.1);
    border-radius: 10px;
}

.header li a.on {
    color: var(--bs-blue);
    font-weight: 500;
}

/* 햄버거 버튼 */
.header .ham_btn {
    display: none;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.header .ham_btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.header .ham_gnb {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.header .ham_gnb.active {
    max-height: 300px;
}

.header .ham_gnb ul {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: start;
    padding-bottom: 8px;
}

.header .ham_gnb li {
    width: 100%;
}

.header .ham_gnb a {
    width: 100%;
    display: block;
    padding: 16px 20px;
    font-size: 2rem;
    color: #777;
}

.header .ham_gnb a.on {
    color: var(--bs-blue);
}

/* ====================== 푸터 ====================== */
footer {
    padding: 120px 0;
}

footer a:hover {
    text-decoration: underline;
}

footer .company,
footer .service,
footer .warning {
    margin-bottom: 30px;
}

footer p {
    font-size: 15px;
}

footer strong,
footer h4 {
    font-size: 15px;
    font-weight: 400;
    margin-bottom: 5px;
}

/* ====================== 플로팅 ====================== */
.floating {
    width: 200px;
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    z-index: 998;
    animation: slideUp 0.5s ease-out;
    text-align: center;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.floating .top {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.floating .top_img {
    display: flex;
    justify-content: center;
}

.floating .top_img img {
    width: 130px;
}

.floating .phone {
    width: 100%;
    max-width: 180px;
    padding: 10px 16px;
    background: #1db446;
    color: var(--bs-white);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    display: block;
}

.floating .phone:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.floating .phone .title {
    font-size: 14px;
    font-weight: 700;
}

.floating .consult {
    width: 100%;
    max-width: 180px;
    padding: 14px 16px;
    background: #0066ff;
    color: var(--bs-white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.floating .consult:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.floating .consult img {
    width: 28px;
}

.floating .consult .title {
    font-size: 14px;
    font-weight: 700;
}

.floating .kakao {
    width: 100%;
    max-width: 180px;
    padding: 14px 16px;
    background: #ffd000;
    color: #3c1e1e;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.floating .kakao:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.floating .kakao img {
    width: 32px;
    object-fit: contain;
}

.floating .kakao_title {
    font-size: 14px;
    font-weight: 900;
}

/* ====================== 모달 ====================== */
.modal {
    display: none;
    position: fixed;
    width: 100%;
    height: 100vh;
    z-index: 999;
    top: 0;
    left: 0;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal .modal_bg {
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    top: 0;
    left: 0;
    z-index: 1;
}

.modal .modal_wrap {
    position: relative;
    background: var(--bs-white);
    width: 90%;
    max-width: 450px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    z-index: 2;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal .modal_inner {
    position: relative;
    padding: 40px 20px 30px;
    text-align: center;
}

.modal .modal_inner > p {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    word-break: keep-all;
    color: #000;
}

.modal .select_box {
    margin-bottom: 16px;
}

.modal .select_box select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    background: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23333' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    transition: border-color 0.2s;
}

.modal .select_box select:focus {
    outline: none;
    border-color: #0066ff;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.modal .input_box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.modal .input_box input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.modal .input_box input:focus {
    outline: none;
    border-color: #0066ff;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.modal .input_box input::placeholder {
    color: #999;
}

.modal .check {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
    text-align: left;
    background: #f9f9f9;
    padding: 14px;
    border-radius: 6px;
}

.modal .check label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: #333;
    user-select: none;
}

.modal .check input[type='checkbox'] {
    appearance: auto !important;
    -webkit-appearance: auto !important;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #0066ff;
    margin: 0;
    padding: 0;
    border: 1px solid #ccc;
}

.modal .check em {
    font-style: normal;
    color: #333;
}

.modal .check label:first-child em {
    font-weight: 700;
    color: #000;
}

.modal .button-modal {
    width: 100%;
    padding: 14px 20px;
    background: var(--bs-blue);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.modal .button-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(193, 193, 193, 0.3);
}

.modal .button-modal:active {
    transform: translateY(0);
}

.modal .close_btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.modal .close_btn:hover {
    opacity: 0.7;
}

.modal .close_btn img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* ====================== 반응형 ====================== */
/* *STYLEMEDIA: 공통 - 태블릿 (1200px 이하) */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }

    .header .h_container {
        padding: 0 20px;
    }

    .header .logo {
        height: 40px;
    }

    .header .logo img {
        max-width: 80px;
    }

    .header ul {
        gap: 12px;
    }

    .header li a {
        font-size: 14px;
        padding: 10px 8px;
    }

    footer {
        padding: 80px 30px;
    }

    .main_footer {
        padding: 180px 30px 80px;
    }
}

/* *STYLEMEDIA: 공통 - 모바일 대 (768px 이하) */
@media (max-width: 768px) {
    html {
        font-size: 56%;
    }

    .container {
        padding: 0 20px;
    }

    .header .h_container {
        padding: 0 20px;
    }

    .header .logo {
        height: 35px;
    }

    .header .logo a {
        height: 35px;
        line-height: 35px;
    }

    .header .logo img {
        max-width: 70px;
    }

    .header ul.nav_menu {
        display: none;
    }

    .header .ham_btn {
        display: block;
    }

    .header .ham_gnb {
        display: block;
    }

    .header .ham_gnb a {
        font-size: 14px;
    }
    footer {
        padding: 60px 20px;
    }

    .main_footer {
        padding: 120px 20px 60px;
    }

    footer p,
    footer strong,
    footer h4 {
        font-size: 13px;
    }

    footer .company,
    footer .service,
    footer .warning {
        margin-bottom: 25px;
    }

    .floating {
        bottom: 16px;
        right: 16px;
        gap: 10px;
    }

    .floating .top_img img {
        width: 100px;
    }

    .modal .modal_inner {
        padding: 36px 16px 24px;
    }

    .modal .modal_inner > p {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .modal .select_box select,
    .modal .input_box input {
        font-size: 12px;
        padding: 10px 12px;
    }

    .modal .check {
        padding: 12px;
        gap: 8px;
        margin-bottom: 20px;
    }

    .modal .check label {
        font-size: 11px;
    }

    .modal .check input[type='checkbox'] {
        width: 16px;
        height: 16px;
    }

    .modal .button-modal {
        padding: 12px 16px;
        font-size: 13px;
    }

    .modal .close_btn {
        width: 28px;
        height: 28px;
    }

    .modal .close_btn img {
        width: 20px;
        height: 20px;
    }
}

/* *STYLEMEDIA: 공통 - 모바일 소 (480px 이하) */
@media (max-width: 480px) {
    html {
        font-size: 50%;
    }

    .container {
        padding: 0 15px;
    }

    .header .logo {
        height: 30px;
    }

    .header .logo a {
        height: 30px;
        line-height: 30px;
    }

    .header .logo img {
        max-width: 60px;
    }

    .header ul {
        gap: 5px;
        flex-wrap: wrap;
    }

    .header li a {
        font-size: 11px;
        padding: 4px 3px;
        line-height: 1.2;
    }

    .header .ham_gnb a {
        font-size: 12px;
    }

    footer {
        padding: 40px 15px;
    }

    .main_footer {
        padding: 80px 15px 40px;
    }

    footer p,
    footer strong,
    footer h4 {
        font-size: 12px;
        line-height: 1.4;
    }

    footer .company,
    footer .service,
    footer .warning {
        margin-bottom: 20px;
    }

    footer .warning p {
        font-size: 11px;
    }

    footer .company p {
        word-break: keep-all;
        line-height: 1.5;
    }

    .floating {
        bottom: 8px;
        right: 8px;
        gap: 6px;
        width: 180px;
    }

    .floating .top_img img {
        width: 80px;
    }

    .floating .phone {
        padding: 8px 10px;
    }

    .floating .title,
    .floating .kakao_title {
        font-size: 12px !important;
    }

    .floating .consult img {
        width: 20px;
    }

    .floating .kakao img {
        width: 24px;
    }

    .modal .modal_wrap {
        width: 85%;
    }

    .modal .modal_inner {
        padding: 30px 14px 20px;
    }

    .modal .modal_inner > p {
        font-size: 12px;
    }

    .modal .select_box select,
    .modal .input_box input {
        font-size: 11px;
        padding: 9px 10px;
    }

    .modal .check {
        padding: 10px;
        gap: 6px;
    }

    .modal .check label {
        font-size: 10px;
    }

    .modal .check input[type='checkbox'] {
        width: 14px;
        height: 14px;
    }

    .modal .button-modal {
        padding: 10px 14px;
        font-size: 12px;
    }
}

/* ====================== 터치 디바이스 최적화 ====================== */
@media (hover: none) and (pointer: coarse) {
    .header li a:hover {
        background: none;
    }

    footer a:hover {
        text-decoration: none;
    }

    .header li a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ====================== 고해상도 디스플레이 ====================== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* ====================== 접근성 ====================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ====================== 성능 최적화 ====================== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}
