@charset "utf-8";

.top_new_fv {
    background: linear-gradient(45deg, rgba(230, 0, 18, 1) 0%, rgba(148, 37, 42, 1) 73%, rgba(118, 22, 27, 1) 100%);
    width: 100%;
    height: 96px;
}
/***fv***/

.top_fv_sec {
    min-height: 700px;

    position: relative;
    /* background: linear-gradient(45deg, rgba(230, 0, 18, 0.4) 0%, rgba(148, 37, 42, 0.4) 73%, rgba(118, 22, 27, 0.4) 100%); */
    display: flex;
    align-items: stretch;

}
.top_fv_wrapper {
    background: linear-gradient(45deg, rgba(230, 0, 18, 1) 0%, rgba(148, 37, 42, 1) 73%, rgba(118, 22, 27, 1) 100%);
    width: calc(45% + 100px);
    padding-right: 30px;
    margin-right: -100px;
    display: flex;
    align-items: center;
    position: relative;
    clip-path: polygon(0 0, 100% 0, calc(100% - 100px) 100%, 0 100%);
    max-width: 730px;
}



.top_fv_sec .backimage {
    width: 65%;
    flex: 1;
    background: url(../img/top_fv.jpg) center / cover no-repeat;
}




.top_fv_sec .text {
    max-width: 700px;
    color: white;
    padding: 0 50px;
}

.top_fv_sec .text h1 {
    margin-bottom: 30px;
}


@media screen and (max-width: 800px) {
    .top_fv_sec {
        min-height: 50vh;
        margin-bottom: 50px;
    }



    .top_fv_wrapper {
        position: absolute;
        width: calc(100% - 20px);
        padding: 20px 20px;
        padding-right: 30px;
        margin-right: 0px;
        clip-path: polygon(0 0, 100% 0, calc(100% - 50px) 100%, 0 100%);
        max-width: 730px;
        bottom: 0;
        transform: translateY(25%);
        left: 0;
        max-width: 400px;
        clip-path: inherit;
        padding-right: 20px;
    }
    

.top_fv_sec .backimage {
    width: 100%;
}


.top_fv_sec .text {
    max-width: inherit;
    padding: 0;

}

.top_fv_sec .text h1 {
    margin-bottom: 20px;
    font-size: 2.1rem;
}

.top_fv_sec .text p {
    font-size: 1.4rem;
    padding-right: 20px;
}

}

/*company*/
.top_company_sec {
    padding: 70px 0;
    text-align: center;
}

.top_company_sec h2 {
    margin-bottom: 30px;
    font-size: 1.9rem; /*追記*/
    line-height: 1.6;/*追記*/
}

.top_company_sec h3 {
    margin-bottom: 30px;
}

.top_company_sec .text {
    margin-bottom: 30px;
}

.top_company_sec ul {
    margin: 20px 0;
    background-color: var(--back-red);
    max-width: max-content;
    padding: 30px;
    text-align: left;
}

.top_company_sec ul li {
    font-size: 2rem;
}

.top_company_sec ul li:not(:last-of-type) {
    margin-bottom: 10px;
}


/*追記*/
.top_company_sec .two_column {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: stretch;
    gap: 50px;
}

.top_company_sec .two_column .content {
    width: 55%;
    text-align: left;
}

.top_company_sec .two_column .image {
    flex: 1;
}

.top_company_sec .two_column .image figure {
    width: 100%;
    height: 100%;
    position: relative;
  }
  
  .top_company_sec .two_column .image figure img {
    position: absolute;
    left: 0;
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
  }

  .top_company_sec .text .ex {
    font-size: 1.5rem;
  }

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


    .top_company_sec ul {
        margin: 20px auto;
        background-color: var(--back-red);
        max-width: max-content;
        padding: 20px 15px;
    }
    .top_company_sec ul li {
        font-size: 1.6rem;
    }


    .top_company_sec .two_column {
        flex-direction: column;
        gap: 20px;
    }
    
    .top_company_sec .two_column .content {
        width: 100%;
        text-align: center;
    }
        
    .top_company_sec .two_column .content figure {
        margin-bottom: 20px;
    }
    
    .top_company_sec .two_column .image {
        width: 100%;
        display: none;
    }
    
    .top_company_sec .two_column .image figure {
        position: relative;
        width: 100%;
        height: 0;
        padding-bottom: 62.5%;
    }
      


}

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

    .top_company_sec h2 {
        font-size: 1.6rem; /*追記*/
    }
    .top_company_sec {
        padding: 40px 0;
    }
    .top_company_sec .last {
        text-align: left;
    }

}
/***philosophy***/
.company_philosophy_sec {
    padding: 70px 0;
    background-color: var(--back-red);
  }
  
  
  .company_philosophy_sec .philosophy_box {
    display: flex;
    gap: 70px;
    align-items: stretch;
    margin-bottom: 50px;
  }
  
  .company_philosophy_sec .philosophy_box .text {
    width: calc(50% - 25px);
  }
  
  .company_philosophy_sec .philosophy_box .image {
    flex: 1;
    position: relative;
    display: flex;
    align-items: stretch;
  }
  
  .company_philosophy_sec .philosophy_box .image figure {
    width: 100%;
    height: 100%;
    position: relative;
  }
  
  .company_philosophy_sec .philosophy_box .image figure img {
    position: absolute;
    left: 0;
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
  }
  .company_philosophy_sec .philosophy_box .text ul {
    margin: 10px 0;
  }
  
  .company_philosophy_sec .philosophy_box .text li {
    font-weight: 600;
  }
  
  
  @media screen and (max-width: 800px) {
  
    .company_philosophy_sec .philosophy_box {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 30px;
    }
  
    .company_philosophy_sec .philosophy_box .text {
        width: 100%;
    }
    .company_philosophy_sec .philosophy_box .image {
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }
    .company_philosophy_sec .philosophy_box .image figure {
        position: relative;
        width: 100%;
        height: 0;
        padding-bottom: 62.5%;
    }
    
  
  
  
  }
  @media screen and (max-width: 500px) {
    .company_philosophy_sec {
        padding: 40px 0;
        background-color: var(--back-red);
    }
  
  
  }

/***ポートフォリオ***/
.top_portfolio_sec {
    padding: 70px 0;
    /* background-color: var(--back-red); */
}

.top_portfolio_sec .portfolio_list {
    margin-bottom: 40px;
}

.portfolio_list {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 20px;
}

.portfolio_list > li {
    width: calc(100% / 4 - 60px / 4);
    display: flex;
    align-items: stretch;
}

.portfolio_list > li a {
    display: block;
    padding: 15px;
    background-color: var(--back-red);
    width: 100%;
}

.portfolio_list > li figure {
    width: 100%;
    height: 0;
    padding-bottom: 50%;
    position: relative;
    margin-bottom: 10px;
    background-color: white;
}

.portfolio_list > li figure.noimage::before {
    content: 'NO IMAGE';
    width: 100%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    text-align: center;
}

.portfolio_list > li figure img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: contain;
    object-position: center;
}

.portfolio_list > li .data dl {
    display: flex;
}
.portfolio_list > li .data dl dt,
.portfolio_list > li .data dl dd {
    font-size: 1.4rem;
}
.portfolio_list > li .data dl dt {
    /* font-weight: 400; */
    width: 80px;
}

.portfolio_list > li .data dl dd {
    flex: 1;
}
@media screen and (max-width: 800px) {
    .portfolio_list {
        gap: 10px;
    }
    .portfolio_list > li {
        width: calc(100% / 2 - 10px / 2);
    }
    .portfolio_list > li .data dl dt,
    .portfolio_list > li .data dl dd {
        font-size: 1.1rem;
        text-align: left;
        word-break: break-all;
    }
        
    .portfolio_list > li .data dl dt {
        /* font-weight: 400; */
        width: 50px;
        
    }

    .portfolio_list > li figure.noimage::before {
        font-size: 3vw;
    }


}


/***news***/
.top_news_sec {
    padding: 70px 0;
}

.top_news_sec .wrapper {
    max-width: 1000px;
}

.top_news_sec .news_list {
    margin-bottom: 40px;
}

.news_list article {
    border-bottom: 2px solid var(--gray);
    padding: 20px 10px;
}

.news_list article:first-of-type {
    border-top: 2px solid var(--gray);
}

.news_list article .news_meta {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    gap: 20px;
}

.news_list article .news_meta time {
    font-size: 1.6rem;
}

.news_list article .news_meta .cat_list {
    display: flex;
    gap: 10px
}

.news_list article .news_meta .cat_list li {
    background-color: #e60012;
    color: white;
    padding: 10px 10px;
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1;
}

.news_list article .news_title {
    font-size: 2.2rem;
}

.news_list article .news_text {
    font-size: 1.5rem;
    white-space: nowrap;        /* 改行させない */
    overflow: hidden;           /* はみ出た部分を隠す */
    text-overflow: ellipsis;    /* はみ出た部分に「…」を表示 */
}

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


    
    
    .news_list article {
        padding: 10px 5px;
    }

    .news_list article .news_meta time {
        font-size: 1.4rem;
    }

    .news_list article .news_meta .cat_list li {
        padding: 6px 10px;
        font-size: 1.2rem;
    }

    .news_list article .news_title {
        font-size: 1.8rem;
        margin-bottom: 4px;
    }
    
    .news_list article .news_text {
        font-size: 1.2rem;
        white-space: inherit;        /* 改行させない */
        overflow: inherit;           /* はみ出た部分を隠す */
        text-overflow: inherit;    /* はみ出た部分に「…」を表示 */



        display: -webkit-box;
        -webkit-line-clamp: 2;       /* 表示したい行数 */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    


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

    .top_news_sec {
        padding: 40px 0;
    }

}

/***contact***/
.common_contact_sec {
    padding: 70px 0;
    text-align: center;
    background-color: rgba(0,0,0,0.7);
    color: white;
}

.common_contact_sec::before {
    content: '';
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    position: absolute;
    background: url(../img/contact_img.jpg?ver2) center / cover no-repeat;
    background-attachment: fixed;
    z-index: -1;
}

.common_contact_sec .ex {
    margin-bottom: 40px;
}


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



}

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


}