@charset "UTF-8";
/* サービスカード サイト一部でのみ使用される部品用のcssです。 */

/*カード*/
.service{
    height:auto;
    position:relative;
}
.service_cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding-bottom: 5rem;
    margin-top: 0;
    margin-bottom: 0;
}
.service_tile {
    height: auto;
    width: 25%;
    margin: 1.5rem;
    background-color: #f9fafb;
    position:relative;
    overflow: hidden;
    
}
.img_container{
    overflow: hidden;
}
.img_container img{
    height: 100%;
    width: 100%;
    overflow: hidden;
}
.service_tile img {
    display: block;
    width: 100%;
    margin: 0 auto;
    transition:0.3s;
}
.service_tile:hover img{
    transform: scale(1.1,1.1);
    transition:0.3s;
}
.service_tile i{
    position:absolute;
    right:0;
    bottom:0;
    font-size:1.5rem;
    color:#999;
    padding:0 0.5rem 0.5rem 0;
}

.service_title {
    display: block;
    text-align: left;
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
    margin: 0;
    padding: 1rem;
}
.sp_service_title{
    display:none;
}

.service_text {
    display: block;
    padding: 0rem 1rem 1rem 1rem;
    color: #666;
    margin: 0 auto;
    letter-spacing: 0;
    font-size: 0.8rem;
}

@media screen and (min-width:600px) and (max-width:1024px) {
    .service_cards {
        padding: 0;
    }
    .service_tile {
        width: 40%;
        margin: 0.5rem;
    }
}
@media screen and (max-width:599px) {
    /* サービス */
    .service_tile{
        width: auto;
    }
}