@charset "utf-8";

/* Mainimg */
#docs #mainimg { background: url(../../common/img/mainimg_contact01.jpg) no-repeat center top; background-size: cover;}

.docList {
    display: flex;
    flex-wrap: wrap;
    margin: 40px 0;
}

.docList li {
    position: relative;
    margin-right: 4%;
    margin-bottom: 35px;
    width: 22%;
}

.docList li:nth-child(4n) {
    margin-right: 0;
}

.docList .img {
    border: 1px #e5e5e5 solid;
    box-sizing: border-box;
    padding: 15px;
    width: 100%;
    height: 208px;
}

.docList .img .inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.docList img {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    max-width: 100%;
    max-height: 100%;
}

.docList .title {
    margin-top: 5px;
    font-size: 14px;
    font-weight: bold;
}

.docList a {
    display: block;
}

.docList a:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    z-index: 100;
    width: 31px;
    height: 31px;
    background-size: contain;
    background-repeat: no-repeat;
}

.docList a:before {
    background-image: url(../images/icon_link.png);
}

.docList a.pdf:before {
    background-image: url(../images/icon_pdf.png);
}

.docList a.movie:before {
    background-image: url(../images/icon_movie.png);
}

.docList a:hover,
.docList a:active,
.docList a:focus {
    color: #666;
    text-decoration: none;
}

.docList a:hover img,
.docList a:active img,
.docList a:focus img {
    opacity: 0.8;
}

@media screen and (max-width: 979px) {
    .docList li {
        width: 31%;
    }

    .docList li,
    .docList li:nth-child(4n) {
        margin-right: 3.5%;
    }

    .docList li:nth-child(3n) {
        margin-right: 0;
    }
}

@media screen and (max-width: 767px) {
    .docList {
        display: block;
    }

    .docList li {
        width: 208px;
    }

    .docList li,
    .docList li:nth-child(3n),
    .docList li:nth-child(4n) {
        margin-left: auto;
        margin-right: auto;
    }

    .docList .title {
        text-align: center;
    }
}
