@charset "uft-8";
/* CSSのリセット（消さないでください） */
html, body,
ul, ol, li,
h1, h2, h3, h4, h5, h6, p,dl,dt,dd,div{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html{
    font-size: 100%;
}
img{
    max-width: 100%;
}
li{
    list-style: none;
}
a{
    text-decoration: none;
    color:black;
}
.wrapper{
    width: 960px;
    margin: 0  auto 130px auto;
    padding: 0 4%;
    font-size: 0.9rem;
}
.section_title{
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 65px;
}
#header{
    max-width: 960px;
    height: 270px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin:0 auto;
    padding:0 4%;    
}
nav ul{
    display: flex;
    padding: 10px 0;
}
nav li{
    margin-right: 30px;
    font-size: 0.9rem;
}
nav li:last-child{
    margin-right: 0;
}
.icon{
    font-size: 1.25rem;
}
#mainvisual{
    margin-bottom: 80px;
}
#mainvisual img {
    width: 100%;
    max-width: 1920px;
    height: 420px;
    object-fit: cover;
  }
#about ul{
    margin-bottom: 30px;
}
#about li:first-child{
    margin-bottom: 30px;
}
#about p{
    text-align: justify;
}
#works ul{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom:50px ;
}
#works li{
    width: 31%;
    margin-bottom: 23px;
}
#news dl{
    display: flex;
    flex-wrap: wrap;
    border-top:1px solid #ccc; 
}
#news dt{
    width:20%;
    border-bottom:1px solid #ccc;
    padding:15px 0;
}
#news dd{
    width:80%;
    border-bottom:1px solid #ccc;
    padding:15px 0;

}
#contact dl{
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
#contact dt{
    width: 20%;
}
#contact dd{
    width:80%;
}
dl input,textarea{
    width: 100%;
    border: 1px solid #ccc;
    padding:12px 0;
    margin-bottom: 10px;
}
.buttom{
    text-align: center;
}
#contact .buttom input{
    background-color: #000;
    color: #fff;
    border:1px solid #000;
    width:200px;
    padding:15px 0;
}

#footer{
    background-color: #000;
    color: #fff;
    text-align: center;
    padding:10px 0;

}
small{
    font-size: 0.5rem;
}

@media screen and (max-width:600px){
    .wrapper{
        flex-direction: column;
        max-width: 100%;
        font-size: 1.2rem;
    }
    #header{
        width:100%;
        height: auto;
        margin-bottom: 20px;
        flex-direction: column;
    }
    #works ul{
        flex-direction: column;
    }
    #works li{
        width: 100%;
    }
    #news dl{
        flex-direction: column;
    }
    #news dt{
        border-bottom:none;
        padding-top: 15px;
        padding-bottom: 0;
    }
    #news dd{
        width: 100%;
        padding-top: 0;
        padding-bottom: 15px;
    }
    #contact dl{
        flex-direction: column;
    }
    #contact 
}