@charset "utf-8";

*{
    margin: 0;
    padding: 0;
}

html{
    font-size: 100%;
}

body{
    color: #24292e;
}

a{
    text-decoration: none;
}
img{
    max-width: 100%;
}
li{
    list-style: none;
}

.wrapper{
    max-width: 960px;
    margin: 0 auto 130px;
    font-size: 0.9rem;
    padding: 0 4px;
}

.site-title{
    line-height: 1px;
}

.site-title a {
    display: block;
}

.sec-title{
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 65px;
}

/* header */
#header{
    max-width: 960px;
    display: flex;
    justify-content: space-between;
    /* background-color: #ffddaa; */
    align-items: center;
    height: 270px;
    margin: 0 auto;
    padding: 0 4px;
}

#header ul{
    display: flex;
    padding: 10px 0;
    /* background-color: #ff7700; */
}

#header li{
    font-size: 0.9rem;
    margin-left: 30px;
    background-color: #ffffff;
}

#header li a{
    color: #24292e;
}

#header li a:hover{
    opacity:0.7;
}

#header li img.icon{
    width: 20px;
}

/* Mainvisual */
#mainvisual{
    margin-bottom: 80px;
}

#mainvisual img{
    width: 100%;
    max-width: 1920px;
    height: 420px;
    object-fit: cover
}

/* about */

#about{
    /* background-color: #6699ff; */
}

#about ul{
    margin-bottom: 30px;
    /* background-color: #aaccff; */
}

#about li:first-child{
    margin-bottom: 30px;
}

#about p{
    text-align: justify;
}

/* works */
#works{
    /* background-color: #00ff4c; */
}

#works ul{
display: flex;
justify-content: space-between;
flex-wrap: wrap;
margin-bottom: 50px;
/* background-color: #0066ff; */
}

#works li{
    width: 31%;
    margin-bottom: 23px;
    /* background-color: #ff7755; */
}

/* News */

#news{
    /* background-color: #eeeedd; */
}
#news dl{
    display: flex;
    flex-wrap: wrap;
    border-top: 1px solid #c8c8c8;
    margin-bottom: 20px;
}

#news dt{
    width: 20%;
    border-bottom: 1px solid #c8c8c8;
    padding: 15px;
}
#news dd{
    width: 80%;
    border-bottom: 1px solid #c8c8c8;
    padding: 15px;
}

/* contact */
#contact dl{
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

#contact dt{
    width: 15%;
    /* background-color: #ff99ee; */
}

#contact dd{
    width: 85%;
    margin-bottom: 10px;
    /* background-color: #998855; */
}
#contact dd input,
#contact dd textarea{
    width:100%;
    border: solid 1px #c8c8c8;
    padding: 10px;
}

#contact dd textarea {
    height: 10rem;
}

#contact .button input{
    width: 200px;
    background-color: #24292e;
    color: #ffffff;
    padding: 15px 0;
    border:solid 1px #24292e;
    }

#contact .button input:hover{
    background: #ffffff;
    color: #24292e;
}

/* Footer */
#footer{
    background-color: #24292e;
    color: #ffffff;
    font-size: 0.5rem;
    padding: 10px 20px;
    text-align: center;
}

/* sp */
@media screen and (max-width:600px){
    .wrapper{
        margin-bottom: 70px;
    }
    .site-title{
        margin-top: 20px;
    }
    .sec-title{
        margin-bottom: 40px;
    }
    
    /* header */
    #header{
        max-width: 100%;
        height: auto;
        flex-direction: column
    }

    #header li{
        font-size: 0.8rem;
        margin-left: 20px;
    }

    #header li:first-child{
        margin-left: 0;
    }

    /* works */
    #works ul{
        flex-direction: column;
    }

    #works li{
        width: 100%;
    }

    /* news */
    #news dl{
        flex-direction: column;
    }
    #news dt{
        width: 100%;
        border-bottom: none;
        padding-bottom: 0;
    }
    #news dd{
        width: 100%;
        padding-top: 0;
    }

    /* contact */
    #contact dl{
        flex-direction: column;
    }

    #contact dt{
        width: 100%;
    }

    #contact dd{
        width: 100%;
    }

}