@charset "utf-8";

/*テーマ*/
.service {
    background: url("../img/theme04.jpg") no-repeat center -60px;
    background-size: cover;
}

/*リード文*/
.read {
    margin: 30px auto;
}

/*工場一覧*/
.factorys {
    display: flex;
    flex-wrap: wrap;
}
.factorys .item {
    width: calc((100% / 3) - 20px);
    margin:0 10px 30px;
    border: 1px #eee solid;
}
.factorys img {
    display: block;
    margin-bottom: 10px;
}
.factorys a {
    color: #000;
    overflow: hidden;
    text-decoration: none;

    display: flex;
    flex-direction: column;
    height: 100%;
}
.factorys a img {
    transition-duration: 0.3s;
}
.factorys a:hover img {
    transform: scale(1.1);
    transition-duration: 0.5s;
    opacity: 0.8;
}
.factorys dl {
    margin: 0;
    padding: 15px 15px;
}
.factorys dt {
    margin-bottom: 15px;
    font-weight: bold;
    /*16-18*/
    font-size: clamp(1rem, 0.963rem + 0.19vw, 1.188rem);
    line-height: 100%;
}
.factorys dd {
    margin: 0;
    /*14-16*/
    font-size: clamp(0.875rem, 0.85rem + 0.13vw, 1rem);
    line-height: 140%;
}
.factorys dd.iso {
    color: blue;
}
.factorys dd~dd {
    margin-top: 10px;
}
.factorys .more {
    text-align: center;
    margin: 20px 10px;
    margin-top: auto;
}
.factorys .more span {
    display: inline-block;
    padding: 7px 30px 7px 20px;
    border-radius: 50px;
    background: url("../img/next_w.png") no-repeat right 10px center;
    background-size: 8px;    
    background-color: #357dce;
    color: #fff;
    /*12-14*/
    font-size: clamp(0.75rem, 0.725rem + 0.13vw, 0.875rem);
    line-height: 100%;
}
.factorys a:hover .more span {
    transition-duration: 0.5s;
    background-color: #bbb;
}


/*-------------------------------*/
/*詳細ページ*/
/*-------------------------------*/
/*ページ内メニュー*/
.pagemenu {
    margin: 0 0 30px 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background-color: #E6F3F9;
}

.pagemenu li a {
    font-weight: bold;
    line-height: 100%;
    padding: 10px 20px;
    text-decoration: none;
    display: inline-block;
    color: #000;
}
.pagemenu li a:hover {
    text-decoration: underline;
}

/*動画*/
.video {
    margin-bottom: 40px;
}
.video img {
    display: block;
}

/*写真ギャラリー*/
.gallery {
    margin: 0;
    padding: 0;
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
}
.gallery li {
    width: calc((100% / 3) - 20px);
    margin: 0 10px 30px;
    /*14-16*/
    font-size: clamp(0.875rem, 0.85rem + 0.13vw, 1rem);
    text-align: center;
}
.gallery li img {
    display: block;
    margin-bottom: 10px;
}

/*資格*/
.license {
    border: 1px #ddd solid;
    border-radius: 5px;
    padding: 10px 20px;
}
.license dl {
    margin: 10px 0 0 0;
}
.license dt {
    font-weight: bold;
    margin-bottom: 10px;
}
.license dd {
    margin: 0 0 0 20px;
    line-height: 140%;
}

/*設備一覧*/
.tbl-machine {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    border: 1px #bbb solid;

    /*14-16*/
    font-size: clamp(0.875rem, 0.85rem + 0.13vw, 1rem);
}
.tbl-machine th {
    color: #fff;
    background-color: #124D96;
    border-bottom: 1px #ddd solid;
    border-right: 1px #fff dotted;
    padding: 10px;
}
.tbl-machine td {
    border-bottom: 1px #ddd solid;
    border-right: 1px #ddd dotted;
    padding: 8px 10px;
}
.tbl-machine td:nth-child(3) {
    text-align: center;
}

/*案内図*/
.mapbox {
    width: 100%;
    max-width: 779px;
    margin: 0 auto;
}
.mapbox dl {
    line-height: 140%;
}
.mapbox dt {
    margin-bottom: 10px;
}
.mapbox dd {
    margin: 0;
}
.mapbox .map {
    width: 100%;
    height: 450px;
    margin-top: 30px;
}
.mapbox .map iframe {
    width: 100%;
    height: 100%;
}

.sp-message {
    display: none;
    size: clamp(0.75rem, 0.725rem + 0.13vw, 0.875rem);
}

/*★*/
.spphone {
    display: none;
}



/****************************/
/*レスポンシブ*/
/****************************/
@media screen and (max-width: 1279px) {
    .factorys dl {
        margin: 0;
        padding: 5%;
    }
}

@media screen and (max-width: 979px) {
}

@media screen and (max-width: 779px) {
    .pagemenu {
        padding: 10px;
        column-count: 3;
        display: block;
    }
    .pagemenu li a {
        padding: 5px 20px;
    }
    .scrollBox {
        padding: 0 10px 10px;
    }
    .sp-message {
        display: block;
        margin-bottom: 10px;
    }
}

@media screen and (max-width: 579px) {
    .factorys .item {
        width: calc((100% / 2) - 10px);
        margin:0 5px 30px;
    }
    .gallery li {
        width: calc((100% / 2) - 20px);
    }
    .pagemenu {
        padding: 10px;
        column-count: 2;
    }
    .pagemenu li a {
        padding: 5px 20px;
    }
}

@media screen and (max-width: 379px) {
    .factorys {
        flex-direction: column;
    }
    .factorys .item {
        width:100%;
        margin:0;
        border-width: 0;
        padding: 10px 0;
        margin-bottom: 5px;
        border-bottom: 1px #ddd solid;
    }
    .factorys a {
        flex-direction: row;
    }
    .factorys .aspan {
        display: flex;
        flex-direction: row;
    }
    .factorys .photo {
        width: 80px;
        margin-right: 15px;
        height: 80px;
    }
    .factorys .photo img {
        height: 80px;
        object-fit:cover;
    }    
    .factorys dl {
        flex: 1;
        padding: 0;
    }
    .factorys dt {
        /*margin-bottom: 5px;*/
    }
    .factorys a dt {
        background: url("../img/icon_arrow_b.png") no-repeat left center;
        background-size: 16px;
        padding: 1px 0 1px 24px;
    }
    .factorys .more {
        display: none;
    }

    .video {
        margin-bottom: 40px;
    }
    .gallery li {
        width: 100%;
        margin: 0 auto 10px;
    }
    .gallery li img {
        margin-bottom: 5px;
    }

    .license {
        padding: 5px 15px 10px;
    }
    .license dd {
        margin: 0;
    }

}

