@charset "utf-8";


.works .box {
    width: 325px;
    float: left;
    margin-bottom: 30px;
    background-color: #efefef;
}

.works .box:nth-child(2n) {
    margin-left: 30px;
}

.works .box:last-child,
.works .box:nth-last-child(2) {
    margin-bottom: 0;
}

.works .box .photo {
    width: 100%;
    height: 350px;
    margin: 0;
}

.works .box .photo .img {
    display: block;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    height: 100%;
    -webkit-background-size: cover;
    background-size: cover;
}

.works .box p {
    font-weight: bold;
    padding: 10px;
}

/*一時的なコード*/
.works .clearfix {
	display: none;
}

.works > p {
	padding-bottom: 400px;
}

@media only screen and (max-width: 768px) {

    .works .box {
        width: 100%;
        float: none;
        margin-bottom: 30px;
        background-color: #efefef;
    }

    .works .box:nth-child(2n) {
        margin-left: 0;
    }

    .works .box:not(:last-child){
        margin-bottom: 15px;
    }

    .works .box .photo {
        width: 100%;
        height: 250px;
        margin: 0;
    }

    .works .box .photo .img {
        display: block;
        background-repeat: no-repeat;
        background-position: center;
        width: 100%;
        height: 100%;
        -webkit-background-size: cover;
        background-size: cover;
    }

    .works .box p {
        font-size: 14px;
    }
	
	/*一時的なコード*/
.works > p {
	padding-bottom: 100px;
}

}
