
/* 팝업 스타일 */
.pop-parent {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.pop {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    width: 90%;
    height: 90%;
    max-width: 600px;
    max-height: 550px;
    /* padding: 20px; */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
@media (max-width: 768px) { /* 모바일 화면을 위한 미디어 쿼리 */
    .pop {
        max-height: 380px; /* 모바일 화면에서 최대 높이 설정 */
    }
}
.popup-slide {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.m-ratioBox {
    display: flex;
    justify-content: center; /* 가로 중앙 정렬 */
    align-items: center; /* 세로 중앙 정렬 */
    height: 100%; /* 부모 div의 높이에 맞춤 */
}
.centered-image {
    max-width: 100%; /* 최대 크기 100% */
    max-height: 100%; /* 최대 높이 100% */
    object-fit: contain; /* 이미지 비율 유지 */
}
.m-ratioBox img {max-width: 100%;}
.pop-btns {
    display: flex;
    justify-content: center; /* 가로 가운데 정렬 */
}
.close-button {
    font-size: 2em; 
    color: #eee; 
    background-color: transparent;
}
/* 팝업 스타일 - 끝 */

/* 공통 레이아웃 스타일 */
.logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    height: 100%;
    margin-top: 5%;
}

.logos .logo_img {
    display: inline-flex;
    border-radius: 20%;
    width: 120px;
    height: 120px;
    margin: 5px;            
}

/* 언어 선택 관련 스타일 */
.custom-select-wrapper {
    position: relative;
    display: inline-block;
    margin-top: 5px;
}

.custom-select {
    position: relative;
    cursor: pointer;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 25px;
    border: none;
    background-color: transparent;
}

.custom-select-trigger img,
.custom-options img {
    width: 100%;
    height: 100%;
}

.custom-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    border: none;
    background-color: transparent;
    display: none;
    z-index: 10;
}

.custom-option {
    margin-top: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-option:hover {
    background-color: transparent;
}

.custom-select.open .custom-options {
    display: block;
}

/* 아이콘 스타일 */
.icon-wrapper {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
}

.icon-image {
    max-width: 100%;
    max-height: 100%;
}

/* 버튼 및 링크 스타일 */
.labels {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.shop-link, .contact-link {
    display: inline-block;
    flex: 1 1 calc(25% - 10px);
}

.shop-button {
    width: 100%;
    max-width: 300px;
    min-width: 120px;
    border-radius: 5px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.contact-button {
    width: 100%;
    max-width: 400px;
    min-width: 150px;
    padding: 10px 20px;  
    color: #000;
    background-color: #FFF;
    border: 1px solid #aaa;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    font-size: 16px;
}

.contact-button:hover {
    background-color: #ccc;
}

.button-round {
    border: 2px solid #38362c;
    border-radius: 50px;
    padding: 5px 30px; 
    display: inline-block; 
    text-align: center; 
    width: fit-content;
    background-color: #fff;
    color: #38362c;
}

/* 반응형 미디어 쿼리 */
@media (min-width: 1024px) {
    .logo {
        margin-bottom: 8px;
    }
}

@media (min-width: 769px) {
    .custom-select-wrapper {
        display: block;
    }
    .custom-mobile-select-wrapper {
        display: none;
    }
}

@media (max-width: 768px) {
    .custom-select-wrapper {
        display: none;
    }
    .custom-mobile-select-wrapper {
        display: block;
    }
    .shop-link, .contact-link {
        flex: 1 1 calc(50% - 10px);
    }
}


/* 네이버 검색 버튼 */
.naver-search-box {
    display: flex;
    align-items: center;
    padding: 10px 25px;
    border: 2px solid #2DB400;  /* 네이버 초록색 */
    border-radius: 50px;
    width: 80%;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.naver-logo {
    font-weight: 900;
    font-size: 1.5em;
    color: #2DB400;
    margin-right: 15px;
}

.company-name {
    font-size: 1.2em;
    font-weight: 500;
    color: #333;
    flex-grow: 1;
}

.search-icon {
    color: #2DB400;
    font-size: 1.2em;
}

/* 모바일 반응형 */
@media screen and (max-width: 768px) {
    .naver-search-box {
        padding: 12px 20px;
        margin: 0 15px;
    }

    .naver-logo {
        font-size: 1.5em;
        margin-right: 10px;
    }

    .company-name {
        font-size: 1.3em;
    }
}



/* 시공사례 이미지들 */
.image-grid {
    display: grid;
    gap: 20px;
    width: 100%;
    padding: 20px;
}

.service-img {
    width: 100%;
    height: 200px; /* 이미지 높이 고정 */
    object-fit: cover; /* 이미지 비율 유지 */
    border-radius: 15px;
    border: 3px solid white;
    transition: transform 0.3s ease;
}

.service-img:hover {
    transform: scale(1.05);
}

/* 데스크탑 */
@media screen and (min-width: 1024px) {
    .image-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 태블릿 */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    .image-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 모바일 */
@media screen and (max-width: 767px) {
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 10px;
    }
    
    .service-img {
        height: 150px; /* 모바일에서는 이미지 높이 줄임 */
    }
}


/* 연락처 버튼 */
.contact-buttons {
    display: flex;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2em;
    text-align: center;
    transition: all 0.3s ease;
    aspect-ratio: 2/1;
}

.contact-btn span {
    color: white;
}

.phone-btn {
    background: linear-gradient(135deg, #FF8C42, #FF5733);
    box-shadow: 0 4px 15px rgba(255, 140, 66, 0.3);
}

.reservation-btn {
    background: linear-gradient(135deg, #2DB400, #1E8E00);
    box-shadow: 0 4px 15px rgba(45, 180, 0, 0.3);
}

.blog-link-btn {
    background: linear-gradient(135deg, #7B2FF7, #5F00FF);
    box-shadow: 0 4px 15px rgba(123, 47, 247, 0.3);
}

.contact-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* 모바일 화면 */
@media screen and (max-width: 768px) {
    .contact-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .contact-btn {
        padding: 15px;
        font-size: 1.5em;
    }
}


/* 화면 우측 하단 버튼 */
.floating-button {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #FF8C42;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

.floating-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background-color: #FF5733;
}

.floating-button i {
    font-size: 20px;
}

/* 데스크탑에서만 표시 */
.desktop-only {
    display: none;
}

/* 모바일에서만 표시 */
.mobile-only {
    display: none;
}

/* 반응형 설정 */
@media screen and (min-width: 769px) {
    .desktop-only {
        display: flex;
    }
}

@media screen and (max-width: 768px) {
    .mobile-only {
        display: flex;
    }
    
    .floating-button {
        width: 60px;
        height: 60px;
        bottom: 30px;
        right: 30px;
    }
    
    .floating-button i {
        font-size: 24px;
    }
}