@charset "utf-8";

/* -----------------------------------------------------------
    施工事例 一覧   ※全ページ共通のため編集不可
-------------------------------------------------------------- */



/* -----------------------------------------------------------
   cmn-works-list
-------------------------------------------------------------- */
.cmn-works-list {
    display: flex;
    flex-wrap: wrap;
}

.cmn-works-list .cmn-works-date {
    bottom: 25px;
    color: #888;
    font: 500 1.4rem/1 var(--en2);
    letter-spacing: .03em;
    left: 40px;
    position: absolute;
}

.cmn-works-list .cmn-works-item {
    border: 1px solid #aaa;
    border-width: 0 1px 1px 1px;
    width: calc( 100% / 2 );
    position: relative;
}

.cmn-works-list .cmn-works-item:nth-of-type(2n) {
    border-left: 0;
}

.cmn-works-list .cmn-works-item:first-of-type{
    border-top-width: 1px;
}

.cmn-works-list .cmn-works-item:nth-of-type(2){
    border-top-width: 1px;
}

.cmn-works-list .cmn-works-link {
    background: #fff;
    display: block;
    padding: 30px 0 70px;
}

.cmn-works-list a::after {
    background: var(--linkc);
    bottom: -1px;
    content: '';
    display: inline-block;
    height: 3px;
    left: 0;
    margin: auto;
    position: absolute;
    -webkit-transition: all 0.3s;
    transition: all 0.4s;
    width: 0;
}

.cmn-works-list a:hover::after {
    width: 100%;
}

.cmn-works-list a::before {
    content: "";
    background: url("../img/cmn-arrow-2.svg")center/contain no-repeat;
    width: 40px;
    height: 15px;
    position: absolute;
    bottom: 22px;
    right: 40px;
    transition: .5s;
}

@media screen and (min-width: 769px) {
    .cmn-works-list a:hover::before {
        right: 20px;
    }
}

.cmn-works-list .cmn-works-ttl {
    color: #333;
    font-weight: bold;
    font-size: 2.3rem;
    line-height: 1.5;
    letter-spacing: .05em;
    width: 100%;
    padding: 0 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    max-height: 72px;
}

.cmn-works-list .cmn-works-star {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 20px;
    padding: 13px 40px 0;
}

.cmn-works-list .cmn-star .cmn-star-ttl {
    font-size: 1.5rem;
}

.cmn-works-list .cmn-works-body {
    padding: 0 40px;
    margin: 30px 0 0;
}

.cmn-works-list .cmn-works-thumb {
    float: left;
    width: 200px;
    height: 260px;
    overflow: hidden;
}

.cmn-works-list .cmn-works-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s;
}

.cmn-works-list a:hover .cmn-works-thumb img {
	transform: scale(1.1);
}

.cmn-works-list .cmn-works-elements {
    align-items: center;
    display: flex;
    gap: 10px;
    float: right;
    width: calc( 100% - 200px - 20px);
    flex-wrap: wrap;
}

.cmn-works-list .cmn-works-brand {
    align-items: center;
    display: flex;
    gap: 15px;
    overflow: hidden;
}

.cmn-works-list .cmn-product-maker img {
    max-height: 20px;
}

.cmn-works-list .cmn-works-staff {
    background: #eee;
    float: right;
    width: calc( 100% - 200px - 20px);
    padding: 15px 15px 18px 15px;
    margin: 20px 0 0 0;
    height: 180px;
}

.cmn-works-list .cmn-works-staff .ttl {
    color: #333;
    font-weight: bold;
    font-size: 1.7rem;
    flex-shrink: 0;
    line-height: 1.4;
}

.cmn-works-list .cmn-product-function {
    margin: 20px 0 0;
    gap: 15px 20px;
    float: left;
    width: 100%;
}

.cmn-works-list .cmn-product-function li {
    font-size: 1.5rem;
    color: #333;
}

.cmn-works-list .cmn-product-function li::before {
    color: #333;
}

.cmn-works-list .cmn-works-user {
    display: flex;
    font-size: 1.4rem;
    flex-wrap: wrap;
    float: right;
    gap: 15px;
    width: 100%;
    margin: 20px auto 0;
}

.cmn-works-list .cmn-works-user li:not([class^="star"]) {
    gap: 3px;
    letter-spacing: 0;
}

.cmn-works-list .cmn-works-staff .comment {
    color: #333;
    line-height: 1.63;
    letter-spacing: .05em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
	max-height: 150px;
    font-size: 1.5rem;
}


@media screen and (max-width: 768px) {
    
    .cmn-works-list {
        flex-wrap: nowrap;
        padding: 0 0 10px 20px;
    }

    .cmn-works-list .cmn-works-item {
        border: none;
        flex-shrink: 0;
        width: 330px;
    }
    
    .cmn-works-list .cmn-works-link {
        border: 1px solid #aaa;
        padding: 15px 0 55px;
        position: relative;
        width: 310px;
    }
    
    .cmn-works-list .cmn-works-link::before {
        right: 10px;
        bottom: 15px;
    }

    .cmn-works-list .cmn-works-ttl {
        font-size: 2rem;
        line-height: 1.5;
        -webkit-line-clamp: 1;
        max-height: 30px;
        padding: 0 15px;
    }

    .cmn-works-list .cmn-works-body {
        padding: 0;
        margin: 0;
    }
    
    .cmn-works-list .cmn-works-thumb {
        width: 120px;
        margin: 20px 0 0 15px;
        height: 156px;
    }

    .cmn-works-list .cmn-works-elements {
        flex-direction: column;
        width: calc( 100% - 120px - 15px);
        padding: 15px 15px 0 15px;
        align-items: flex-start;
    }
    
    .cmn-works-list .cmn-works-brand {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 10px;
    }
    
    .cmn-works-list .cmn-product-maker img {
        max-height: 18px;
    }

    .cmn-works-list .cmn-product-model {
        width: 100%;
    }

    .cmn-works-list .cmn-product-function {
        width: 100%;
        float: left;
        padding: 0 15px;
        gap: 15px 12px;
    }
    
    .cmn-works-list .cmn-product-function li {
        font-size: 1.35rem;
    }

    .cmn-works-list .cmn-works-user {
        margin: 15px 0 0;
    }

    .cmn-works-list .cmn-works-staff {
        width: 100%;
        padding: 15px;
        margin: 15px auto 0;
        height: auto;
    }

    .cmn-works-list .cmn-works-staff .comment {
        font-size: 1.4rem;
        line-height: 1.7;
        max-height: 100px;
        -webkit-line-clamp: 4;
    }

    .cmn-works-list .cmn-works-user {
        width: 100%;
        padding: 0 15px;
    }

    .cmn-works-list .cmn-works-user {
        gap: 10px 20px;
    }
    
    .cmn-works-list .cmn-works-user li {
        font-size: 1.4rem;
    }

    .cmn-works-list .cmn-works-user li:not([class^="star"]) {
        color: #999;
    }

    .cmn-works-list .cmn-works-user li:not([class^="star"])::before {
        font-size: 1.3rem;
        color: #888;
        margin: 3px 0 0;
    }

    .cmn-works-list .cmn-works-info {
    	padding: 20px 15px 15px;
    }

    .cmn-works-list .cmn-morebtn {
        font-size: 1.5rem;
        display: none;
    }
    
    .cmn-works-list .cmn-works-date {
        bottom: 20px;
        font-size: 1.3rem;
        left: 15px;
    }
    
    .cmn-works-list .cmn-works-star {
        flex-direction: column;
        float: right;
        gap: 15px;
        width: calc( 100% - 120px - 15px);
        padding: 0 15px;
        margin: 20px 0 0;
    }
    
    .cmn-works-list .cmn-star {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }
    
    .cmn-works-list .cmn-star .cmn-star-ttl {
        font-size: 1.4rem;
    }
    
    .cmn-works-list .cmn-star .cmn-star-img {
        background-position: left;
        width: 102px;
        height: 15px;
    }
    
    .cmn-works-list .cmn-product-cate {
        font-size: 1.3rem;
    }

}