@charset "UTF-8";

/* ============================================
   반응형 CSS (1em = 기본 16px 기준)
   - 1280px 이하 : 태블릿 가로
   - 1024px 이하 : 태블릿 세로
   - 768px 이하  : 모바일
   - 480px 이하  : 모바일 소형
============================================ */

/* ===== 태블릿 가로 (1280px 이하) ===== */
@media (max-width: 1280px) {
    .header {
        padding: 20px 40px;
    }

    .gnb {
        gap: 35px;
    }

    .gnb-menu {
        gap: 35px;
    }

    /* 메인 비주얼 */
    .main-visual {
        height: 560px;
    }

    .main-visual-content h1 {
        font-size: 3em;
    }

    .main-visual-content p {
        font-size: 1.05em;
    }

    /* 고객센터 */
    .customer-center {
        width: 420px;
        padding: 35px 38px;
    }

    .customer-center .title {
        font-size: 1.6em;
    }

    /* 인트로 */
    .intro-section {
        padding: 100px 0;
    }

    .intro-image {
        height: 500px;
    }

    .intro-text {
        padding-right: 40px;
    }

    .intro-text h3 {
        font-size: 1.7em;
    }

    /* 상담 */
    .consultation-section {
        padding: 110px 40px;
    }

    .consultation-section h2 {
        font-size: 1.7em;
    }

    /* 위치 */
    .location-section,
    .location-map,
    .map-container,
    .map-container .root_daum_roughmap,
    .map-container .root_daum_roughmap_landing,
    .map-container .wrap_map,
    .map-container iframe {
        min-height: 650px !important;
    }

    .location-info {
        padding: 160px 50px 60px;
    }

    .location-tabs {
        gap: 22px;
        margin-bottom: 60px;
    }

    .location-tab {
        font-size: 1.05em;
    }

    .branch-info h3 {
        font-size: 1.7em;
    }

    .footer {
        padding: 50px 40px 30px;
    }
}

/* ===== 태블릿 세로 (1024px 이하) ===== */
@media (max-width: 1024px) {
    .header {
        padding: 18px 30px;
    }

    .gnb-menu {
        gap: 25px;
    }

    .gnb-menu > li > a {
        font-size: 0.95em;
    }

    .gnb-menu > li {
        height: 70px;
    }

    /* 메인 비주얼 */
    .main-visual {
        height: 500px;
    }

    .main-visual-content {
        padding: 0 20px;
    }

    .main-visual-content h2 {
        font-size: 1.3em;
    }

    .main-visual-content h1 {
        font-size: 2.4em;
        white-space: normal;
    }

    .main-visual-content p {
        font-size: 1em;
    }

    /* info-section 세로 정렬 */
    .info-section {
        flex-direction: column;
    }

    .customer-center {
        width: 100%;
        padding: 35px 40px;
        margin-top: 0;
        border-radius: 0;
    }

    .customer-center .title {
        font-size: 1.5em;
    }

    .quick-services {
        flex-wrap: wrap;
        padding: 30px 20px;
        gap: 25px 0;
    }

    .quick-item {
        flex: 0 0 25%;
        width: 25%;
        opacity: 1; /* 모바일에선 항상 보이게 */
    }

    .quick-item .name {
        font-size: 0.95em;
    }

    /* 인트로 */
    .intro-section {
        padding: 80px 0;
    }

    .intro-inner {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .intro-image {
        height: 420px;
    }

    .intro-text {
        padding: 0 30px;
    }

    .intro-text h3 {
        font-size: 1.5em;
    }

    .intro-text p {
        font-size: 1em;
    }

    .btn-arrow {
        margin-top: 35px;
    }

    /* 상담 */
    .consultation-section {
        padding: 90px 30px;
    }

    .consultation-section h2 {
        font-size: 1.5em;
    }

    /* 위치 세로 정렬 (flex column) */
    .location-section {
        flex-direction: column;
        min-height: auto;
    }

    .location-map {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        min-height: 450px;
    }

    .map-container,
    .map-container .root_daum_roughmap,
    .map-container .root_daum_roughmap_landing,
    .map-container .wrap_map,
    .map-container iframe {
        min-height: 450px !important;
    }

    .location-info {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        padding: 60px 30px;
    }

    .location-tabs {
        overflow-x: auto;
        gap: 20px;
        margin-bottom: 40px;
        -webkit-overflow-scrolling: touch;
    }

    .location-tab {
        font-size: 1em;
    }

    .branch-info h3 {
        font-size: 1.5em;
    }

    .location-detail-item {
        font-size: 1em;
    }

    /* footer */
    .footer {
        padding: 40px 30px 25px;
    }

    .footer-top {
        font-size: 0.9em;
    }

    .footer-info {
        font-size: 0.85em;
    }

    .footer-bottom {
        font-size: 0.85em;
    }

    /* 사이트맵 */
    .sitemap-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 40px;
        padding: 0 40px;
    }

    .sitemap-col h4 {
        font-size: 1.1em;
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
}

/* ===== 모바일 (768px 이하) ===== */
@media (max-width: 768px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    #hd_pop {
        position: relative;
        z-index: 99999;
        max-width: 100%;
        overflow-x: hidden;
    }

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

    #hd_pop .hd_pops {
        position: fixed !important;
        top: 80px !important;
        left: 50% !important;
        right: auto !important;
        width: calc(100vw - 8px) !important;
        max-width: none;
        max-height: calc(100vh - 20px);
        z-index: 99999 !important;
        transform: translateX(-50%);
        overflow-x: hidden;
        overflow-y: auto;
        background: #fff;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    }

    #hd_pop .hd_pops_con {
        width: 100% !important;
        height: auto !important;
        max-height: calc(100vh - 92px);
        max-width: 100%;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    #hd_pop .hd_pops_con *,
    #hd_pop .hd_pops_footer * {
        max-width: 100% !important;
        box-sizing: border-box;
    }

    #hd_pop .hd_pops_con img,
    #hd_pop .hd_pops_con iframe,
    #hd_pop .hd_pops_con video,
    #hd_pop .hd_pops_con table {
        max-width: 100% !important;
    }

    #hd_pop .hd_pops_con img,
    #hd_pop .hd_pops_con video {
        height: auto !important;
    }

    #hd_pop .hd_pops_footer {
        display: flex;
        width: 100%;
    }

    #hd_pop .hd_pops_footer button {
        min-width: 0;
        height: 44px;
        padding: 0 10px;
        border: 0;
        font-size: 0.82em;
        line-height: 1.35;
        cursor: pointer;
    }

    #hd_pop .hd_pops_reject {
        flex: 1 1 auto;
        text-align: left;
    }

    #hd_pop .hd_pops_close {
        flex: 0 0 82px;
        text-align: center;
    }

    .header {
        padding: 15px 20px;
    }

    .logo-icon {}

	.logo-icon img { height: 40px; }

    .logo-text .ko {
        font-size: 0.85em;
    }

    .logo-text .en {
        font-size: 0.45em;
    }

    /* 모바일에서는 GNB 숨김 (햄버거 메뉴만) */
    .gnb-menu {
        display: none;
    }

    /* 메인 비주얼 */
    .main-visual {
        height: 420px;
    }

    .main-visual-content {
        padding: 0 20px;
    }

    .main-visual-content h2 {
        font-size: 1.1em;
    }

    .main-visual-content h1 {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

    .main-visual-content p {
        font-size: 0.85em;
        line-height: 1.7;
    }

    .main-visual-content p br {
        display: none;
    }

    /* 고객센터 */
    .customer-center {
        padding: 25px 25px;
    }

    .customer-center .title {
        font-size: 1.3em;
    }

    .contact-list li {
        height: 36px;
        padding: 0 20px;
        font-size: 0.85em;
    }

    /* 퀵서비스 */
    .quick-services {
        padding: 25px 15px;
        gap: 20px 0;
    }

    .quick-item {
        flex: 0 0 25%;
        width: 25%;
        gap: 10px;
    }

    .quick-icon {
        width: 45px;
        height: 45px;
    }

    .quick-item .name {
        font-size: 0.85em;
    }

    /* 인트로 */
    .intro-section {
        padding: 60px 0;
    }

    .intro-image {
        height: 300px;
    }

    .intro-text {
        padding: 0 20px;
    }

    .intro-text h3 {
        font-size: 1.25em;
        margin-bottom: 25px;
    }

    .intro-text h3 br {
        display: none;
    }

    .intro-text p {
        font-size: 0.9em;
    }

    .btn-arrow {
        gap: 15px;
        padding: 12px 20px;
        font-size: 0.85em;
        margin-top: 30px;
    }

    /* 상담 */
    .consultation-section {
        padding: 70px 20px;
    }

    .consultation-section .label {
        font-size: 0.7em;
    }

    .consultation-section h2 {
        font-size: 1.25em;
        margin-bottom: 35px;
    }

    .consultation-section h2 br {
        display: none;
    }

    .btn-consultation {
        gap: 15px;
        padding: 13px 25px;
        font-size: 0.85em;
    }

    /* 위치 */
    .location-map,
    .map-container,
    .map-container .root_daum_roughmap,
    .map-container .root_daum_roughmap_landing,
    .map-container .wrap_map,
    .map-container iframe {
        min-height: 350px !important;
    }

    .location-info {
        padding: 50px 20px;
    }

    .location-tabs {
        gap: 18px;
        padding-bottom: 0;
        margin-bottom: 30px;
    }

    .location-tab {
        font-size: 0.9em;
        padding-bottom: 15px;
    }

    .branch-info h3 {
        font-size: 1.3em;
        margin-bottom: 30px;
    }

    .location-detail-item {
        gap: 15px;
        flex-wrap: wrap;
        font-size: 0.9em;
    }

    .location-detail-item .icon {
        width: 40px;
        height: 40px;
    }

    .location-detail-item .label {
        min-width: 55px;
    }

    .location-detail-item .value {
        flex: 1;
        min-width: 0;
    }

    /* footer */
    .footer {
        padding: 35px 20px 20px;
    }

    .footer-top {
        flex-wrap: wrap;
        gap: 10px 15px;
        font-size: 0.85em;
    }

    .footer-info {
        font-size: 0.75em;
        line-height: 1.8;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
        margin-top: 25px;
        padding-top: 20px;
        font-size: 0.75em;
    }

    .footer-bottom .links {
        gap: 20px;
    }

    /* 사이트맵 (모바일 아코디언 드롭다운) */
    .sitemap {
        overflow-y: auto;
        align-items: flex-start;
        padding: 90px 0 50px;
    }

    .sitemap-inner {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0 25px;
    }

    .sitemap-col {
        border-bottom: 1px solid rgba(212, 184, 138, 0.2);
    }

    .sitemap-col h4 {
        font-size: 1.05em;
        font-weight: 600;
        color: #fff;
        margin-bottom: 0;
        padding: 18px 5px;
        border-bottom: none;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
        transition: color 0.3s;
    }

    .sitemap-col h4::after {
        content: '';
        width: 10px;
        height: 10px;
        border-right: 2px solid #999;
        border-bottom: 2px solid #999;
        transform: rotate(45deg);
        transition: transform 0.3s, border-color 0.3s;
        margin-bottom: 4px;
    }

    .sitemap-col.open h4 {
        color: #d4b88a;
    }

    .sitemap-col.open h4::after {
        transform: rotate(-135deg);
        border-color: #d4b88a;
        margin-top: 4px;
        margin-bottom: 0;
    }

    .sitemap-col ul {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, padding 0.3s ease;
        padding: 0 5px;
    }

    .sitemap-col.open ul {
        max-height: 500px;
        padding: 5px 5px 20px;
    }

    .sitemap-col ul li {
        margin-bottom: 10px;
    }

    .sitemap-col ul li:last-child {
        margin-bottom: 0;
    }

    .sitemap-col ul li a {
        font-size: 0.95em;
        color: #bbb;
        padding-left: 12px;
        position: relative;
    }

    .sitemap-col ul li a::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        width: 4px;
        height: 1px;
        background: #666;
    }
}

/* ===== 모바일 소형 (480px 이하) ===== */
@media (max-width: 480px) {
    #hd_pop .hd_pops {
        width: calc(100vw - 4px) !important;
        max-height: calc(100vh - 20px);
    }

    #hd_pop .hd_pops_con {
        max-height: calc(100vh - 86px);
    }

    #hd_pop .hd_pops_footer button {
        height: 42px;
        padding: 0 8px;
        font-size: 0.76em;
    }

    #hd_pop .hd_pops_close {
        flex-basis: 70px;
    }

    .header {
        padding: 12px 15px;
    }

    .logo-text .ko {
        font-size: 0.75em;
    }

    .logo-text .en {
        display: none;
    }

    .main-visual {
        height: 360px;
    }

    .main-visual-content h1 {
        font-size: 1.5em;
    }

    .main-visual-content h2 {
        font-size: 1em;
    }

    .main-visual-content p {
        font-size: 0.78em;
    }

    /* 퀵서비스 */
    .quick-icon {
        width: 38px;
        height: 38px;
    }

    .quick-item .name {
        font-size: 0.72em;
    }

    .customer-center .title {
        font-size: 1.15em;
    }

    .contact-list li {
        padding: 0 16px;
        height: 34px;
        font-size: 0.78em;
    }

    .intro-image {
        height: 240px;
    }

    .intro-text h3 {
        font-size: 1.1em;
    }

    .intro-text p {
        font-size: 0.82em;
    }

    .btn-arrow {
        font-size: 0.78em;
    }

    .consultation-section h2 {
        font-size: 1.05em;
    }

    .btn-consultation {
        font-size: 0.78em;
    }

    .branch-info h3 {
        font-size: 1.15em;
    }

    .location-detail-item {
        font-size: 0.85em;
    }

    .location-detail-item .icon {
        width: 36px;
        height: 36px;
    }

    .location-detail-item .label {
        min-width: 50px;
    }
}
