@font-face {
    font-family: 'Pretendard-Regular';
    src: url('https://fastly.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Pretendard-Regular';
    display: flex;
    flex-shrink: 0;
    flex-direction: column;
    align-items: center;
}

ul, li {
    list-style: none;
}

a {
    text-decoration: none;
    color: white;
}

img {
    color: black;
}

/* header */
header {
    width: 100%;
    background-color: white;
    position: fixed;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
}

#header-wrapper {
    width: 60%;
    height: 100px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

/* header: logo */
#logo-container {
    width: 250px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#logo {
    width: 200px;
    height: fit-content;
}

#header-center-container {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.menu-item {
    display: flex;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
    color: black;
    font-size: 22px;
    font-weight: 400;
    width: 150px;
    transition-duration: 0.3s;
    position: relative; /* pseudo-element 위치 기준점 */
}

#header-right-container {
    width: 250px;
    height: 40px;
    display: flex;
    justify-content: right;
    align-items: center;
    position: relative;
}

/* shoppingbag */
#shoppingbag{
    width: 60px;
    height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition-duration: 0.3s;
    position: relative;
}

#shoppingbag:hover {
    color: #004281;
}

#shoppingbag-img {
    width: 35px;
    height: 35px;
    background-image: url('/images/icon/ic-cart-stop.png'); /* 기본 이미지 URL 추가 */
    background-size: contain;
    background-repeat: no-repeat;
    transition: background-image 0.3s;
}

#shoppingbag:hover #shoppingbag-img {
    background-image: url('/images/icon/ic-cart-move.gif');
}

#shoppingbag p {
    color: black;
    font-size: 12px;
}

#menu-cart {
    display: none;
}

#cart-cnt {
    position:absolute;
    top: 10px;
    right: 10px;
    width: 12px;
    height: 12px;
    border-radius: 10px;
    background-color: red;
    display: flex;
    justify-content: center;
    align-items: center;
}

#cart-cnt p {
    color: white;
    font-size: 10px;
    font-weight: bold;
}

/* popup */
.popup {
    position: fixed;
    top: 15%;
    left: 20%;
    width: 500px;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    z-index: 9999;
    border: 1px solid #ccc;
}

.popup img {
    display: block;
    width: 100%;
    height: auto;
    -webkit-user-drag: none;
}

.popupbtn-wrapper {
    width: 100%;
    height: 40px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background-color: white;
}

.popupbtn-wrapper a {
    padding: 0 8px;
    width: 50%;
    color: black;
}

.popclose-onday-btn {
    text-align: start;
}

.popclose-btn {
    text-align: end;
}

/* main */
main {
    margin-top: 150px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* service section  */
#service {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
    margin-bottom: 150px;
}

#service h1 {
    color: rgb(0, 66, 129);
    font-size: 38px;
    font-weight: 600;
    margin-top: 150px;
    margin-bottom: 100px;
}

#service-container-wrapper {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;

}

.service-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 30px;
}


.service_box {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
}

.service_box img {
    display: flex;
    width: 295px;
    height: 245px;
    border-radius: 15px;
    background-color: #f0f0f0;
    color: black;
    transition-duration: 0.3s;
}

.service_box img:hover {
    box-shadow: 0px 0px 15px 5px rgba(212, 212, 212, 0.6);
}

.service_box p {
    height: 30px;
    font-size: 23px;
    font-weight: 400;
    counter-reset: #232323;
    margin: 20px auto;
}

/* footer */
footer {
    width: 100%;
    background-color: whitesmoke;
    color: #232323;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

#footer-wrapper {
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
}

#footer-content-wrapper {
    display: flex;
    flex-direction: row;
    gap: 40px;
}

#footer-content-wrapper div {
    display: flex;
    flex-direction: column;  /* 세로로 정렬되도록 변경 */
    justify-content: center;
    gap: 10px;  /* 항목 간 간격 추가 */
}

#footer-content-wrapper div p {
    margin: 0;
    line-height: 1.0;
}

#footer-content-wrapper span {
    font-weight: 600;
    color: #333;
}

#copyright {
    width: 100%;
    margin-left: 215px;
    text-align: start;
    color: #666;
    font-size: 13px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

#footer-logo {
    width: 150px;
    height: fit-content;
}

@media (max-width: 1200px)  {
    header {
        position: relative;
    }

    #header-wrapper {
        position: absolute;
        width: 100%;
        height: 300px;
        flex-direction: column;
    }

    #header-center-container {
        width: 100%;
        height: 100px;
        margin: 5px 0;
        flex-direction: column;
    }

    #menu-cart {
        display: block;
        width: 100%;
        height: 45px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #shoppingbag {
        display: none;
    }

    .menu-item {
        width: 100%;
        height: 45px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .menu-item:hover {
        color: #004281;
    }


    main {
        margin-top: 300px;
    }

    /* 서비스 섹션 */
    .service-container {
        width: 90%;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }

    .service_box {
        width: 100%;
        height: 100%;
    }

    .service_box img {
        width: 100%;
        height: auto;
    }

    /* footer */
    footer {
        width: 100%;
        background-color: whitesmoke; 
        color: #232323; 
        font-size: 14px;
        line-height: 1.6;
    }

    #footer-content-wrapper {
        width: 60%;
        flex-direction: column;
    }

    #footer-wrapper span {
        font-weight: bold; /* 강조 텍스트 */
    }

    #copyright {
        width: 90%;
        margin: 0;
    }

    .popup {
        display: none !important;
    }
}