﻿* {
    box-sizing: border-box;
}

body {
    margin: 0;
}

a, a:active, a:visited, a:hover {
    text-decoration: none;
    cursor: pointer;
}

h1, ul {
    margin: 0;
}

/*로고이미지*/
.mainbutton {
    max-width: 500px;
    min-width: 350px;
    width: 35vw;
    padding: 12px 10px;
    margin-left: 1.5vw;
}

.navbar {
    width: 100%;
    position: fixed;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    background-color: transparent;
    z-index: 3;
}

.menubar {
    align-items: stretch;
    display: flex;
    flex: 4;
    list-style-type: none;
    padding-left: 0;
    justify-content: space-around;
}

.menuitem {
    font-weight: bolder;
    position: relative;
}

    .menuitem > a {
        color: #fff;
        align-items: center;
        padding: 0 20px;
        display: flex;
        height: 100%;
    }

        .menuitem > a:hover {
            background-color: #00498c;
            width: 100%;
            transition: all 0.5s ease-out;
        }

li a {
    color: #fff;
}

/*햄버거 버튼*/
.menumobt {
    color: #fff;
    display: none;
    position: absolute;
    right: 30px;
    top: 22px;
    margin: 0;
    padding: 0;
}
    .menumobt:hover {
        color: #fff;
    }

/*dropdown*/
.mnbusiness:hover .dropdown, .dropdown:hover {
    left: -53px;
    display: block;
    width: 100%;
    font-weight: lighter;
    font-size: medium;
}

.dropdown {
    display: none;
    position: absolute;
    background-color: rgba(0,0,0, 0.6);
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

    .dropdown a {
        font-size: 12px;
        color: #fff;
        padding: 12px 16px;
        text-align: center;
        display: block;
    }

        .dropdown a:hover {
            background-color: #00498c;
            width: 100%;
            transition: all 0.5s ease-out;
        }


.tel1 {
    text-decoration: none; 
    color: white;
}
/*pc 화면이 기본*/
@media all and (max-width: 768px) {

    .tel1:hover {
        color: #00182E;
        background-color: white;
    }

    /*메인로고 이미지 */
    img.mainbutton {
        max-width: 300px;
        min-width: 210px;
        width: 25vw;
        padding: 10px 0;
        margin-left: 10px;
    }

    .navbar {
        background-color: #00182E;
        flex-direction: column;
        align-items: flex-start;
    }

    .menubar {
        display: none;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .menubarActive {
        background-color: #00182E;
        display: flex;
    }

    .menuitem {
        width: 100%;
        text-align: center;
    }

        .menuitem a {
            color: #fff;
            background-color: #00182E;
            display: block;
            width: inherit;
            height: inherit;
            padding: 12px 0;
        }

            .menuitem a:hover {
                background-color: #00498c;
                width: 100%;
                transition: all 0.5s ease-out;
            }

    .menumobt {
        display: block;
        color: #fff;
        position: absolute;
        right: 20px;
        top: 15px;
        margin: 0;
        padding: 0;
    }

    .dropdown a {
        display: none;
    }

        .dropdown a:hover {
            display: none;
        }
}
