@charset "utf-8";
/*共通設定*/
.company,
.service,
.news,
.contact {
    padding-left: 5vw;
    padding-right: 5vw;
}
/*終わり*/


/*<section class="first-view">*/
.first-view {
    height: calc(100vh - 90px);
    background-image: url(/img/first-view.png);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;  
    position: relative;
}

.first-text {
    position: absolute;
    top: 50%;
    left: 5vw;
    color: #fff;
}

.first-text h1 {
    text-shadow: 0 0 2px #333;
}
/*終わり*/


/*<section class="company">*/
.company-con {
    margin-top: 100px;
    margin-bottom: 150px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
}

.company-con img {
    width: 30%;
    border-radius: 10px;
}

.company-text {
    width: 35%;
    text-align: center;
    margin-top: 60px;
}

.company-con .img2 {
    margin-top: 120px;
}
/*終わり*/


/*<section class="service">*/
.service {
    position: relative;
    margin-bottom: 150px;
}

.service-in {
    position: relative;
}

.service-con {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 50px;
}

.service-1,
.service-2 {
    width: 48%;
}

.service-1 a,
.service-2 a {
    display: block;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;  
    text-align: center;
    padding: 20vh 0;
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    text-shadow: 0 0 2px #333;
}

.service-1 a {
    background-image: url(/img/in-service2.jpg);
}

.service-2 a {
    background-image: url(/img/in-service3.jpg);
}

.service-mask {
    position: absolute;
    top: 10%;
    left: 0;
    width: 70%;
    height: 95%;
    background-color: #EDE9E0;
    border-radius: 0 50px 50px 0;
}

.service .scroll:nth-child(2) {
    transition-delay: 0.3s;
}
/*終わり*/


/*<section class="news">*/
.news {
    margin-bottom: 150px;
    position: relative;
}

.news-in {
    position: relative;
}

.news-flex {
    display: grid;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    column-gap: 50px;
    row-gap: 70px;
    justify-content: center;
}

.news-con {
    width: 100%;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.news-con time,
.news-con p {
    padding: 10px;
}

.news-in .btn {
    text-align: center;
}

.news-mask {
    position: absolute;
    bottom: 8px;
    right: 0;
    width: 80%;
    height: 35%;
    background-color: #EDE9E0;
    border-radius: 50px 0 0 50px;
}

.news-flex .scroll:nth-child(2) {
    transition-delay: 0.2s;
}

.news-flex .scroll:nth-child(3) {
    transition-delay: 0.4s;
}
/*終わり*/


/*<section class="contact">*/
.contact {
    text-align: center;
    background-color: #EDE9E0;
    padding: 50px 5vw;
    width: 100%;
    border-radius: 10px;
}

.contact-in {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.contact .in-title p {
    color: #F5F3ED;
}
/*終わり*/


/*タブレット*/
@media (max-width: 1024px) {  
/*共通設定*/
/*終わり*/ 


/*<section class="first-view">*/
.first-view {
    height: calc(60vh - 80px);
}
/*終わり*/


/*<section class="company">*/
.company-con img {
    width: 45%;
}

.company-text {
    width: 50%;
    margin-top: 0;
}

.company-text p {
    text-align: left;
}

.company-text .btn {
    text-align: left;
}

.company-con .img2 {
    display: none;
}
/*終わり*/


/*<section class="service">*/
/*終わり*/


/*<section class="news">*/
.news-mask {
    height: 70%;
}
/*終わり*/
}


/*スマホ*/
@media (max-width: 599px) {
/*<section class="company">*/
.company-con {
    display: block;
}

.company-con img {
    width: 100%;
    margin-bottom: 50px;
}

.company-text {
    width: 100%;
    text-align: left;
}

.company .btn {
    text-align: center;
}
/*終わり*/


/*<section class="service">*/
.service-con {
    display: block;
}

.service-1,
.service-2 {
    width: 100%;
}

.service-1 {
    margin-bottom: 25px;
}

.service-1 a,
.service-2 a {
    padding: 10vh 0;
}

.service-in .btn {
    text-align: center;
}
/*終わり*/


/*<section class="news">*/
.news-flex {
    display: block;
}

.news-con {
    width: 100%;
    margin-bottom: 50px;
}
/*終わり*/


/*<section class="contact">*/
.contact {
    width: 100%;
    border-radius: 0;
    text-align: left;
}

.contact .btn {
    text-align: center;
}
/*終わり*/


}

