@charset "utf-8";

html {
    font-size: 100%;
}
body {
    color: #24292e;
    background-color: #f3f2ee;
    font-family:"Yu Gothic Medium", "游ゴシック Medium", YuGothic, "游ゴシック体", "ヒラギノ角ゴ Pro W3", "メイリオ", sans-serif;
    letter-spacing: 2px;
}

a:link, a:visited, a:hover, a:active {
    color: #24292e;
    text-decoration: none;
    
}

a {
    margin: 0;
    padding: 0;
    font-size: 100%;
    vertical-align: baseline;
    background: transparent;
    
}

img {
    vertical-align: bottom;
    max-width: 100%;
    height: auto;
}

li {
    list-style: none;
}
.wrapper {
    max-width: 1200px;
    margin: 0 auto 120px auto;
    padding: 0 4%;
}


@media screen and (max-width: 640px) {
    
    * {
        float: none;
        position: static;
    }

    img {
        width: 100%;
        height: auto;
    }

    .wrapper {
        margin: 0 auto 70px auto;
        padding: 4%;
    }
    .site-title {
        margin-top: 20px;
    }
    .sec-title {
        margin-bottom: 40px;
    }  
}
   
   #header {
       display: flex;
       justify-content: space-between;
       align-items: center;
       background-color: #f3f2ee;
       height: 80px;
       margin: 0 auto;
       padding: 0 22%;
       position: fixed;
       width: 100%;
       top: 0;
       left: 0;
       z-index: 2;      
   }    
   #header ul {
       display: flex;
       padding: 10px 0;
   }
   #header li {
       font-size: 0.9rem;
       margin-left: 30px;
   }
   #header li a {
       color: #53514a;
       font-family: 'Quicksand', sans-serif;
       font-size: 20px;
       font-weight: 500;
   }
   #header li a:hover {
       opacity: 0.5;
   } 


   @media screen and (max-width: 640px) {
       
       #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;
       }
   }

#mainvisual {
    padding-top: 90px;
    margin: 50px auto 40px auto;
    text-align: center;
}


@media screen and (max-width: 640px) {
    
    #mainvisual {
        padding-top: 120px;
        display: block;
        text-align: center; 
    }
    #mainvisual img {
        
        max-width: 70%;
        height: auto;
        margin-bottom: 30px;  
    }
}
.workslogo {
    display: none;
}

.sec-title {
    text-align: center;
    margin-bottom: 50px;
}
.sitelogo {
    display: none;
}

@media screen and (max-width: 640px) {
    .sec-title {
        text-align: center;
        margin-bottom: 40px;
    }
    .sec-title img {
        width: 45%;
    }
}

.works-area {    
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 50px;
    z-index: -1;    
}

.works-area::after {
    display: block;
    content: "";
    width: 31%;
}

@media screen and (max-width: 640px) {
    .works-area {
        display: block;
    }
}


.works-site {
    position: relative;
    width:31%;
    margin-bottom: 30px;
    display: none;   
}

.works-site img {
    display: block;
}    

.works-site:hover img {
    opacity: 0.2;  
}
@media screen and (max-width: 640px) {
    .works-site {
        width: 80%;
        margin: 0 auto 40px auto;
        left: 0;
        right: 0;
    }    
    .works-site:hover img {
        opacity: none; 
    }
}
.otherlogo {
    opacity: 0;
    transform : translate(0, 100px);
    transition : all 1s;
}
.otherlogo.up {
    opacity : 1;
    transform : translate(0, 0);
}

.works-other {
    position: relative;
    width:31%;
    margin-bottom: 30px;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    align-content: flex-start;
    opacity: 0;
    transform : translate(0, 100px);
    transition : all 1s;
}
.works-other.up {
    opacity : 1;
    transform : translate(0, 0);
}

.works-other img {
    display: block;
}    

.works-other:hover img {
    opacity: 0.2;  
}

@media screen and (max-width: 640px) {
    .otherlogo {
        opacity: 1;
        transform: none;
    }
    .works-other {
        width: 80%;
        margin: 0 auto 40px auto;
        left: 0;
        right: 0;
        opacity: 1;
        transform: none;
    }    
    .works-other:hover img {
        opacity: none; 
    }
}
.works-hov {
    position: absolute;
    top: 5%;
    left: 5%;
    width: 90%;
    height: 90%;
    color: transparent;
    transition:all 0.2s;
}    
.works-hov:hover p {
    color: #24292e;
}
p.works-text  {
    display: block;
    margin-top: 35%;
    text-align: center;
    font-family: 'Unna', serif;
    letter-spacing: 0.3rem;; 
    font-size: 24px;
    font-weight: normal;
}

#footer {
    background-color: #a19267;
    color: #fff;
    font-size:0.5rem;
    padding: 10px 20px;
    text-align: center;
}
