*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:"Malgun Gothic", sans-serif;
    background:#f7f7f7;
    color:#222;
}

a{
    text-decoration:none;
    color:inherit;
}

.top-menu{
    width:100%;
    background:#f5f4ef;
    padding:15px 0;
}

.top-menu-inner{
    width:100%;
    max-width:1500px;
    margin:0 auto;
    padding:0 20px;
    text-align:right;
}

.top-menu a{
    color:#666;
    margin-left:25px;
    font-size:13px;
}

.top-menu a:hover{
    color:#ff9800;
}

.welcome-name{
    color:#555;
    font-size:13px;
    margin-right:25px;
}

.header{
    width:100%;
    max-width:1500px;
    margin:0 auto;
    position:relative;
    text-align:center;
    padding:14px 20px;
}

.logo{
    display:inline-block;
}

.logo img{
    width:620px;
    max-width:100%;
    border-radius:20px;
    box-shadow:0 10px 30px rgba(0,0,0,.12);
}

.search-box{
    position:absolute;
    right:20px;
    bottom:24px;
    width:280px;
    display:flex;
}

.search-box input{
    width:210px;
    height:40px;
    border:1px solid #ddd;
    border-right:none;
    border-radius:25px 0 0 25px;
    padding-left:15px;
    font-size:13px;
    outline:none;
}

.search-box button{
    width:70px;
    height:40px;
    border:none;
    background:#ffc107;
    border-radius:0 25px 25px 0;
    cursor:pointer;
    font-weight:bold;
    font-size:13px;
}

.category{
    width:100%;
    background:white;
    border-top:1px solid #ddd;
    border-bottom:1px solid #ddd;
}

.category ul{
    width:100%;
    max-width:1400px;
    margin:0 auto;
    display:flex;
    justify-content:center;
    list-style:none;
}

.category li{
    padding:18px 35px;
    font-size:18px;
    cursor:pointer;
    white-space:nowrap;
}

.category li a,
.category li a:link,
.category li a:visited{
    color:#222;
    text-decoration:none;
    font-weight:500;
}

.category li a:hover{
    color:#ff9800;
}

.footer{
    border-top:1px solid #eee;
    padding:35px 0;
    color:#555;
    background:white;
}

.footer-inner{
    width:100%;
    max-width:1400px;
    margin:0 auto;
    padding:0 20px;
    display:flex;
    gap:80px;
}

.footer h3{
    font-size:28px;
    margin-bottom:15px;
}

.footer h4{
    margin-bottom:15px;
}

.footer p{
    font-size:13px;
    line-height:1.8;
}

.footer-bottom{
    border-top:1px solid #999;
    padding:15px 0;
    text-align:center;
    font-size:13px;
    background:white;
}

.footer-bottom a{
    margin:0 25px;
    color:#333;
}

.footer-bottom a:hover{
    color:#ff9800;
}

/* 태블릿 */
@media (max-width:1199px){
    .top-menu-inner{
        padding:0 18px;
    }

    .header{
        padding:16px 18px 18px;
    }

    .logo img{
        width:520px;
    }

    .search-box{
        position:static;
        margin:16px auto 0;
        width:360px;
        max-width:100%;
    }

    .search-box input{
        flex:1;
        width:auto;
    }

    .category ul{
        overflow-x:auto;
        justify-content:flex-start;
        padding:0 12px;
    }

    .category li{
        padding:16px 24px;
        font-size:16px;
    }

    .footer-inner{
        gap:40px;
        flex-wrap:wrap;
    }

    .footer-inner > div{
        flex:1 1 260px;
    }
}

/* 모바일 */
@media (max-width:767px){
    body{
        background:#fff;
    }

    .top-menu{
        padding:10px 0;
    }

    .top-menu-inner{
        text-align:center;
        display:flex;
        justify-content:center;
        align-items:center;
        gap:12px;
        flex-wrap:wrap;
    }

    .top-menu a{
        margin-left:0;
        font-size:12px;
    }

    .welcome-name{
        width:100%;
        margin-right:0;
        color:#ff9800;
        font-weight:bold;
    }

    .header{
        padding:14px 12px;
    }

    .logo img{
        width:330px;
        border-radius:14px;
    }

    .search-box{
        width:100%;
        margin-top:14px;
    }

    .search-box input{
        height:38px;
        font-size:12px;
    }

    .search-box button{
        width:64px;
        height:38px;
        font-size:12px;
    }

    .category ul{
        display:grid;
        grid-template-columns:repeat(2, 1fr);
        overflow:visible;
        padding:0;
    }

    .category li{
        padding:14px 8px;
        font-size:14px;
        text-align:center;
        border-bottom:1px solid #eee;
    }

    .category li:nth-child(odd){
        border-right:1px solid #eee;
    }

    .footer{
        padding:24px 0;
    }

    .footer-inner{
        display:block;
        padding:0 18px;
    }

    .footer-inner > div{
        margin-bottom:22px;
        padding-bottom:18px;
        border-bottom:1px solid #eee;
    }

    .footer h3{
        font-size:22px;
    }

    .footer h4{
        font-size:15px;
    }

    .footer p{
        font-size:12px;
    }

    .footer-bottom{
        padding:14px 12px;
        line-height:2;
    }

    .footer-bottom a{
        margin:0 10px;
        font-size:12px;
    }
}