@charset "utf-8";

.home-title {
    margin-bottom: 30px;
}
.home-title__en {
    font-size: 2.4rem;
}
.home-title__ja {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 8px;
}
@media screen and (min-width: 960px) {
    .home-title {
        margin-bottom: 60px;
    }
    .home-title__en {
        font-size: 4.8rem;
    }
    .home-title__en--s {
        font-size: 3.6rem;
    }
    .home-title__ja {
        font-size: 1.8rem;
    }
}

/**
* main-image
============================== */
.main-image {
    background: #f5f5f5;
    margin-bottom: 60px;
    position: relative;
}
.main-image__wrap {
    max-width: 1920px;
    margin: auto;
}
.main-image__container {
    position: relative;
}
.main-image__txt {
    max-width: 60vw;
    position: absolute;
        left: 3vw;
        top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}
.main-image__scroll {
    font-size: 1.4rem;
    color: #fff;
    text-align: center;
    width: 70px;
    margin: auto;
    position: absolute;
        bottom: 0;
        right: 2%;
    z-index: 1;
}
.main-image__scroll::after {
    background: #fff;
    content: '';
    display: block;
    margin: 15px auto 0;
    height: 60px;
    width: 1px;
}
@media screen and (min-width: 960px) {
    .main-image {
        margin-bottom: 120px;
        padding-bottom: 30px;
    }
    #mainSlide {
        height: calc(100vh - 220px);
        min-height: 600px;
        max-height: 780px;
    }
    .main-image__txt {
        max-width: auto;
    }
}
@media screen and (min-width: 960px) and (max-width: 1419px) {
    .main-image__img {
        object-fit: cover;
        height: 100%;
        width: 100%;
    }
}
@media screen and (min-width: 1420px) {
    .main-image {
        padding-bottom: 150px;
    }
    .main-image__container {
        padding-bottom: 100px;
        height: calc(100vh - 120px);
        min-height: 700px;
        max-height: 1000px;
    }
    .main-image__container::before {
        background: #00428e;
        border-radius: 0 0 40px 0;
        content: '';
         height: calc(100vh - 120px);
        min-height: 700px;
        max-height: 900px;
        width: calc(((100% - 1420px) / 2) + 1420px);
        position: absolute;
            left: 0;
            top: 0;
    }
    #mainSlide {
        border-radius: 0 0 0 40px;
        margin: 0 0 0 auto;
        max-width: 1420px;
    }
    .main-image__img {
        width: 100%;
    }
    .main-image__txt {
        margin: auto;
        left: 5%;
        right: 55%;
    }
    .main-image__scroll {
        right: 90%;
    }
}
/* top-news */
.top-news {
    background: #222;
    color: #fff;
    max-width: 980px;
    position: relative;
}
.top-news__label {
    border-bottom: 1px solid #666;
    display: flex;
        align-items: center;
    padding: 10px 4.2vw;
}
.top-news__en {
    font-size: 1.4rem;
    margin-right: 1em;
}
.top-news__ja {
    font-size: 1rem;
}
.top-news__content {
    display: block;
    color: #fff;
    padding: 15px 4.2vw;
}
.top-news__date {
    font-size: 1.2rem;
}
.top-news__link {
    display: flex;
        align-items: center;
        justify-content: center;
}
.top-news__icon {
    fill: #656565;
    height: 14px;
    width: 20px;
}
@media screen and (max-width: 959px) {
    .top-news__link {
        width: 34px;
        height: 34px;
        position: absolute;
            right: 0;
            top: 0;
    }
}
@media screen and (min-width: 960px) {
    .top-news {
        border-radius: 4px;
        display: flex;
        margin: 30px auto 0;
    }
    .top-news__label {
        border-bottom-width: 0;
        display: flex;
            align-items: flex-start;
            flex-direction: column;
            justify-content: center;
        width: 265px;
        padding-left: 50px;
    }
    .top-news__en {
        font-size: 2rem;
        margin-bottom: 7px;
    }
    .top-news__ja {
        font-size: 1.2rem;
    }
    .top-news__content {
        display: flex;
            align-items: center;
        line-height: 1.4;
        padding: 28px 40px;
        width: calc(100% - 325px);
    }
    .top-news__date {
        width: 115px;
    }
    .top-news__link {
        border-left: 1px solid #666;
        width: 60px;
    }
}
@media screen and (min-width: 1420px) {
    .top-news {
        margin: -39px auto 0;
    }
}

/**
* home-service
============================== */
.home-service {
    margin-top: 55px;
}


/**
* case
============================== */
.case {
    counter-reset: casenum;
    display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    margin: 0 auto;
    max-width: 1340px;
}
.case__item {
    background: #f2f5f9;
    border-radius: 5px;
    margin-top: 40px;
    padding: 30px 15px 0;
    width: 48.5%;
    position: relative;
}
.case__item--even {
    background: #f9fcf4;
}
.case__item__num {
    line-height: 1;
    position: absolute;
        left: 50%;
        top: -2em;
    transform: translateX(-50%);
}
.case__item__num::before {
    counter-increment: casenum;
    content: counter(casenum);
    font: italic 700 6rem/1 brandon-grotesque;
    color: #dde2eb;
}
.case__item__num::after {
    background: url(svg/case.svg) no-repeat 50% 50% / contain;
    content: '';
    height: 18px;
    width: 44px;
    position: absolute;
        left: 50%;
        top: 50%;
    transform: translate(-50%,-50%);
}
.case__txt {
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
}
.case__img {
    display: block;
    margin: 15px auto 0;
}
@media screen and (max-width: 959px) {
    .case__item {
        max-height: 410px;
    }
}
@media screen and (min-width: 960px) {
    .case {
        align-items: flex-start;
        margin-top: 80px;
        padding-bottom: 60px;
    }
    .case__item {
        border-radius: 10px;
        margin-top: 0;
        padding: 55px 4.47% 185px;
        width: 23.88%;
    }
    .case__item--even {
        margin-top: 90px;
    }
    .case__item__num {
        top: -4em;
    }
    .case__item__num::before {
        font-size: 12rem;
    }
    .case__txt {
        font-size: 1.4rem;
    }
    .case__img {
        position: absolute;
            bottom: -60px;
            left: 50%;
        transform: translateX(-50%);
    }
}

/**
* home-c-r
============================== */
.home-c-r {
    color: #fff;
}
.home-c-r__box {
    background-position: 50% 50%;
    background-size: cover;
    padding: 30px 4.2vw;
}
.home-c-r__box--contact {
    background-image: url(images/bg_contact.jpg);
}
.home-c-r__box--recruit {
    background-image: url(images/bg_recruit.jpg);
}
.home-c-r__inner {
    margin: auto;
    max-width: 580px;
    position: relative;
}
.home-c-r__en {
    font-size: 2.8rem;
    margin-bottom: 15px;
}
.home-c-r__en::before {
    background: #fff;
    content: '';
    display: block;
    margin-bottom: 10px;
    height: 1px;
    width: 100px;
}
.home-c-r__title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1em;
}
.home-c-r__txt {
    font-size: 1.4rem;
    margin-bottom: 30px;
}
@media screen and (min-width: 1280px) {
    .home-c-r {
        display: flex;
    }
    .home-c-r__en {
        font-size: 4.8rem;
        margin-bottom: 35px;
    }
    .home-c-r__en::before {
        margin-bottom: 25px;
    }
    .home-c-r__box {
        padding: 30px;
        width: 50%;
    }
    .home-c-r__inner {
        padding-bottom: 130px;
    }
    .home-c-r__inner--left {
        margin: 0 0 0 auto;
    }
    .home-c-r__inner--right {
        margin: 0 auto 0 0;
    }
    .home-c-r__title {
        font-size: 2.8rem;
    }
    .home-c-r-btn {
        width: 100%;
        position: absolute;
            bottom: 0;
            left: 0;
    }
}
@media screen and (min-width: 1460px) {
    .home-c-r__box--contact {
        padding: 70px 8% 90px 30px;
    }
    .home-c-r__box--recruit {
        padding: 70px 30px 90px 8%;
    }
}
/* home-c-r-btn */
.home-c-r-btn__label {
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 10px;
}
.home-c-r-btn__wrap {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
}
.home-c-r-btn__icon {
    background: #005ac2;
    display: flex;
        align-items: center;
        justify-content: center;
    width: 50px;
    transition: inherit;
}
.home-c-r-btn__wrap:hover .home-c-r-btn__icon {
    background: #8fc31f;
}
.home-c-r-btn__svg {
    fill: #fff;
    height: 20px;
    width: 20px;
}
.home-c-r-btn__element {
    color: #00428e;
    font-weight: 700;
    display: flex;
        align-items: center;
        flex-direction: column;
        justify-content: center;
    padding: 20px;
    width: calc(100% - 50px);
}
.home-c-r-btn__tel {
    font-size: 8vw;
    font-weight: 700;
    line-height: 1;
}
.home-c-r-btn__time {
    font-size: 1.2rem;
    font-weight: 400;
}
@media screen and (max-width: 639px) {
    .home-c-r-btn__container + .home-c-r-btn__container {
        margin-top: 20px;
    }
}
@media screen and (min-width: 640px) {
    .home-c-r-btn {
        display: flex;
            justify-content: space-between;
    }
    .home-c-r-btn__container {
        width: 48.28%;
    }
    .home-c-r-btn__label {
        margin-bottom: 15px;
    }
    .home-c-r-btn__wrap {
        min-height: 90px;
    }
    .home-c-r-btn__tel {
        font-size: 2.8rem;
    }
}

/**
* home-info
============================== */
.home-info__btn {
    text-align: center;
}
.home-info__link {
    border: 1px solid #ccc;
    border-radius: 4px;
    display: block;
    font-size: 1.4rem;
    padding: 10px 45px 10px 20px;
    position: relative;
}
.home-info__link:hover {
    border-color: inherit;
}
.home-info__arrow {
    fill: #222;
    height: 7px;
    width: 10px;
    position: absolute;
        right: 15px;
        top: 50%;
    transform: translateY(-50%);
}
.home-info__link:hover .home-info__arrow {
    fill: #005ac2;
}
@media screen and (min-width: 960px) {
    .home-info {
        display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
    }
    .home-info__label {
        width: 32.2%
    }
    .home-info__content {
        width: 67.8%
    }
}
@media screen and (min-width: 1280px) {
    .home-info__btn {
        text-align: left;
        position: absolute;
            left: 20px;
            top: 110px;
    }
}
