html {
    scroll-behavior: smooth;
    /* 부드러운 스크롤 */
}

.navbar {
    padding: 10px 50px;
    /* 좌우 패딩 추가 */
    background-color: #f8f9fa;
    /* 밝은 배경 */
}

/* 상단 네비게이션부분 */
.nav-items {
    display: flex;
    justify-content: space-evenly;
    /* justify-content: center; */
    align-items: center;
    background-image: url("/static/img/sky1");
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 15px;
    font-weight: 900;
    width: 100%;
    height: 35px;
    margin: 0 30px;
    /* padding-top: 7px; */

    box-sizing: border-box;
    /* gap: 10px; */
    /* 아이템 간격 10px */
    flex-grow: 1;
    /* 중앙 정렬 유지 */
}

.dropdown>a {
    /* margin-top: 10px; */
    color: white;
    margin: 0 10px;
}

.dropdown-menu {
    background-image: url("/static/img/sky1");
}

.nav-right {
    display: flex;
    gap: 10px;
    /* 로그인, 고객센터 간격 */
}

.nav-link {
    color: black !important;
    /* 링크 색상을 검은색으로 고정 */
}

.navbar-brand img {
    height: 40px;
}

/* ////////////////////////////////////
     navbar-toggler 버튼의 배경색을 변경
////////////////////////////////////// */
.navbar-toggler {
    background-color: #aeafaf;
    /* 버튼 배경색을 파란색으로 설정 */
    border: none;
    /* 버튼 테두리 제거 */
    padding: 2px;
    /* 패딩 조정 */
}

/* navbar-toggler 아이콘 색상 변경 */
.navbar-toggler-icon {
    background-color: rgb(148, 144, 144);
    /* 아이콘 색상을 흰색으로 변경 */
}

/* 버튼에 마우스를 올렸을 때 배경색 변경 */
.navbar-toggler:hover {
    background-color: #f0d909;
    /* 호버 시 배경색을 진한 파란색으로 설정 */
}

/* 아이콘에 마우스를 올렸을 때 색상 변경 */
.navbar-toggler-icon:hover {
    background-color: #e0e0e0;
    /* 아이콘 호버 시 색상 변경 */
}

/* ////////////////////////////////////
    서브메뉴 가로 정렬
////////////////////////////////////// */
.dropdown-menu {
    display: flex;
    flex-direction: column;
    padding: 0;
    border-radius: 0 0 5px 5px;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s ease-in-out;
    box-shadow: none;
    border: none;
}

/* 마우스를 올렸을 때 드롭다운 표시 */
.dropdown:hover .dropdown-menu {
    visibility: visible;
    opacity: 1;
    /* display: flex; */
    /* color: antiquewhite; */

}

/* 드롭다운 토글 아이콘 없애기 */
.dropdown-toggle::after {
    display: none;
    /* 아이콘 숨기기 */
}

/* 네비게이션바 밑에 서브 메뉴들 공통 */
.sub_nav {
    position: fixed;
    display: flex;
    justify-content: center;
    /* align-items: center; */
    /* 세로 중앙 정렬 */
    /* position: relative; */
    /* 내부 요소 위치 조정 */
    position: fixed;
    top: 71px;
    right: 0;
    left: 0;
    z-index: 100;
    width: 100vw;
    height: 100px;
    /* background-color: rgba(255, 255, 255, 0.5); */
    background-color: rgb(255, 255, 255);
    box-sizing: border-box;

}

/* 이미지 스타일 */
.sub_nav .image {
    width: 100vw;
    height: 80px;
    /* 이미지 높이 */
}

.sub_nav .com_title {
    position: absolute;
    /* 위치를 컨테이너 기준으로 설정 */
    width: 150px;
    bottom: 15px;
    /* 이미지 아래쪽으로 배치 */
    padding: 1px 5px;
    /* 버튼 내부 여백 */
    font-size: 20px;
    font-weight: 800;
    background-color: white;
    /* 버튼 배경색 */
    text-align: center;
    color: rgb(0, 0, 0);
    /* 버튼 텍스트 색상 */
    text-decoration: none;
    /* 밑줄 제거 */
    border-radius: 10px;
    /* 라운드 처리 */
    /* box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2); */
    /* 약간의 그림자 추가 */
}

.sub_nav_items {
    display: flex;
    position: absolute;
    margin-top: 50px;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
    /* background-image: url("/static/img/sky1"); */
    /* border: 2px solid red; */
}

.sub_nav_items h3 {
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
}

.sub_nav_items h3 span {
    margin-top: 0px;
    font-size: 18px;
    font-weight: 600;
    padding: 3px 10px;
    background: #ffffff;
    align-items: center;
    border-radius: 5px;
}

.sub_nav_items ul {
    margin-top: 3px;
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
}

.sub_nav_items ul li {
    background: #ffffff;
    color: #4a4747;
    padding: 2px 15px;
    margin-left: 10px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 5px;
}

/* .sub_nav_items ul li a:hover {
    background-color: yellow;
    color: red;
} */
.sub_nav_items ul li:hover,
.sub_nav_items ul li a:hover {
    background-color: rgb(228, 116, 5);
    color: rgb(219, 219, 219);
}

.card_items {
    display: flex;
    flex-wrap: wrap;
    margin-top: 200px;
}

.card_items img {
    width: 100%;
    overflow: hidden;
    max-width: 600px;
    /* 원하는 최대 너비 설정 */
    /* height: 400px; */
    height: auto;
    /* 가로세로 비율 유지 */
}

.card_items .gallery1 {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card_items .gallery1 span {
    font-size: 16px;
    font-weight: 600;
}

/* 건물부분관리,오피스크리닝,홈크리닝부분 */
.sub_nav_parts {
    display: flex;
    position: absolute;
    margin-top: 40px;
    justify-content: space-evenly;
    width: 100%;
    /* border: 2px solid red; */
}

.sub_nav_parts h3 {
    display: flex;
    flex: 1;
    /* border: 2px solid red; */
    justify-content: space-evenly;
    align-items: center;
    margin-top: 15px;
}

.sub_nav_parts h3 span {
    /* margin-top: 15px; */
    font-size: 18px;
    font-weight: 600;
    /* text-align: center; */
    align-items: center;
    padding: 3px 10px;
    background: #ffffff;
    border-radius: 3px;
}

.sub_nav_parts ul {
    display: flex;
    flex: 3;
    /* margin-top: 15px; */
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.sub_nav_parts ul li {
    background: #ffffff;
    color: #4a4747;
    padding: 2px 15px;
    margin-left: 15px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 5px;
}

.sub_nav_parts ul li:hover,
.sub_nav_parts ul li a:hover {
    background-color: rgb(239, 16, 153);
    color: #f7f2f2;
}

.part_items {
    margin-top: 190px;
    /* padding: 50px; */
}

.part_items img {
    width: 100%;
    overflow: hidden;
    /* max-width: 600px;  */
    /* height: 400px; */
    height: auto;
    /* 가로세로 비율 유지 */
}

.part_items .part1 {
    margin-top: 30px;
}

.part1 .first {
    color: rgb(156, 116, 6);
    font-size: 24px;
    font-weight: 600;
}

.part1 .secound {
    color: rgb(224, 203, 7);
    font-size: 25px;
    font-weight: 500;
}

.part1 span {
    font-size: 16px;
    font-weight: 300;
}

/* 고객센터부분 */
.notices_items {
    min-height: 720px;
}

.list-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.header {
    font-weight: bold;
    background-color: #f4f4f4;
}

/* 작은 데스크톱 (769px ~ 1024px) */
@media screen and (max-width: 2000px) {
    .wrap {
        background-color: lightcoral;
        /* font-size: 18px; */
        font-size: 5vw;
    }

    /* .image-grid div {
        width: 50%;
    } */
}

/* 태블릿 (481px ~ 768px) */
@media screen and (max-width: 800px) {

    .card_items .gallery1 span,
    .card_items .gallery1 p {
        opacity: 1;
        transform: none;
        text-align: left;
        /* font-size: 24px; */
        /* vw는 모바일이나태블릿일때만사용하라 */
        font-size: 1.5vw;
    }

    .sub_nav_parts ul {
        display: none;
    }

    .part1 .first {
        font-size: 2.0vw;
    }

    .part1 .secound {
        font-size: 2.0vw;
    }

    .part1 span {
        font-size: 2.0vw;
    }
}

/* 작은 모바일 (최대 480px) */
@media screen and (max-width: 490px) {

    .card_items .gallery1 span,
    .card_items .gallery1 p {
        opacity: 1;
        transform: none;
        /* font-size: 24px; */
        /* vw는 모바일이나태블릿일때만사용하라 */
        font-size: 1.7vw;
    }

    /* 건물종합관리 */
    .sub_nav_items h3 span {
        font-size: 2vw;
        padding: 2vw 2vw;
    }

    /* 관리서비스,관리실적 버튼부분 */
    .sub_nav_items ul li {
        font-size: 2vw;
        padding: 2vw 2vw;
        border-radius: 2vw;
    }



}