@charset "UTF-8";
/* CSS Document */

/*--------------------

mainvisual

--------------------*/

.top_main{
    position: relative;
    width: 100%;
    height: 100vh;
}

.main_img {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 88vw;
    height: calc(100vh - 100px);
    overflow: hidden;
    border-radius: 40px 0 0 0;
}

.main_img_inner {
    width: 100%;
    height: 100%;
    background: url("../img/top_main.jpg") no-repeat 90% 30%;
    background-size: cover;
}

.main_txt {
    position: absolute;
    left: 5vw;
    top: 45%;
    z-index: 5;
}

.main_txt_inner:first-child {
    margin-top: 0;
}

.main_txt_inner {
    display: inline-block;
    padding: .6em .2em .6em .8em;
    box-sizing: border-box;
    margin-top: 20px;
    font-size: 30px;
    font-weight: bold;
    color: #fff;
    white-space: nowrap;
    position: relative;
}

.main_txt_inner::after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background-color: #5FAB6E;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.top_main .hero-bg {
    position: absolute;
    height: 24%;
    bottom: 0;
    background: #edf2f4;
    width: 72%;
    z-index: -1;
}

/*--------------------

scroll

--------------------*/

#top_scroll {
    position: absolute;
    left: 5.5vw;
    bottom: 0%;
    font-family: 'Josefin Sans', sans-serif;
    height: 40px;
    line-height: 130%;
    z-index: 10;
}

#top_scroll:before {
    content: "";
    position: absolute;
    left: .5em;
    top: 0;
    height: 0;
    width: 1px;
    background-color: #000;
    -webkit-animation: scroll 2s cubic-bezier(1,0,0,1) 1s infinite;
    animation: scroll 2s cubic-bezier(1,0,0,1) 1s infinite;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

#top_scroll span {
    display: inline-block;
    -webkit-transform: rotate(-90deg);
    transform: rotate(-90deg);
    -webkit-transform-origin: left top;
    transform-origin: left top;
    position: absolute;
    top: -10px;
}

@-webkit-keyframes scroll {
  0% {
    bottom: auto;
    top: 0;
    height: 0;
  }
  50% {
    height: 40px;
  }
  100% {
    top: auto;
    bottom: 0;
    height: 0;
  }
}

/*--------------------

ABOUT

--------------------*/

.top_about {
    padding-top: 160px;
}

.top_about .hero-bg {
    position: absolute;
    height: 68%;
    top: 0;
    left: 0;
    background: #edf2f4;
    width: 72%;
    z-index: -1;
}

.top_about .contents_inner{
    flex-direction: row-reverse;
}

.top_about p{
    letter-spacing: 0.1em;
    line-height: 2em;
    margin-bottom: 35px;
}

.top_about .text_container{
    flex: 1;
    margin-left: 5vw;
}

/*--------------------

SERVICES

--------------------*/

.top_services .hero-bg {
    position: absolute;
    height: 28%;
    bottom: 0;
    right: 0;
    background: #edf2f4;
    width: 72%;
    z-index: -1;
}

h4 {
    font-size: 30px;
    letter-spacing: .2em;
    margin: 15px 0 25px;
}

.menu-sec-btn {
    overflow: hidden;
    text-align: center;
    width: 100%;
    max-width: 350px;
    height: 350px;
    display: block;
    position: relative;
    border-radius: 10px;
    margin: 0 2.2% 0 0;
    color: #fff;
    transition: all .3s;
}

.menu-sec-btn_inner {
    z-index: 1;
    position: relative;
    width: 100%;
    height: 350px;
    box-sizing: border-box;
    margin: auto;
    text-align: center;
    transition: all .3s;
    background-size: cover !important;
    overflow: hidden;
}

.menu-sec-btn:last-child{
    margin: 0;
}

.img_services1 {
    background: url("../img/services01.jpg") no-repeat 90% 30%;
}

.img_services2 {
    background: url(../img/services02.jpg) no-repeat 90% 30%;
}

.img_services3 {
    background: url(../img/services03.jpg) no-repeat 90% 30%;
}

.menu-sec-btn_inner::after {
    content: '';
    background-color: rgba(95,171,110,0.8);
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    border-radius: 10px;
    transition: all .3s;
}

.menu-sec-btn:hover > .menu-sec-btn_inner::after {
    background-color: rgba(97,153,151,0.8);
}
    
.menu-sec-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
    width: 100%;
    z-index: 30;
}

.top_services .common_link {
    margin: 0 auto;
    display: block;
    position: relative;
    border: solid 2px #fff;
    border-radius: 40px;
    width: 130px;
    overflow: hidden;
    font-family: 'Josefin Sans', sans-serif;
    color: #fff;
    font-weight: bold;
    padding: 14px 0;
    -webkit-transition: all .3s;
    transition: all .3s;
}

.arrow-right {
    position: absolute;
    top: 50%;
    right: 10%;
    display: inline-block;
    width: 5px;
    height: 5px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg) translateY(-25%) translateX(-50%);
    -webkit-transition: all .3s;
    transition: all .3s;
}

.menu-sec-btn.menu01:hover > .menu-sec-btn_inner > .menu-sec-text > .common_link,
.menu-sec-btn.menu02:hover > .menu-sec-btn_inner > .menu-sec-text > .common_link,
.menu-sec-btn.menu03:hover > .menu-sec-btn_inner > .menu-sec-text > .common_link {
    background: #fff;
    color: #5FAB6E;
}

.menu-sec-btn.menu01:hover > .menu-sec-btn_inner > .menu-sec-text > .common_link > .arrow-right,
.menu-sec-btn.menu02:hover > .menu-sec-btn_inner > .menu-sec-text > .common_link > .arrow-right, 
.menu-sec-btn.menu03:hover > .menu-sec-btn_inner > .menu-sec-text > .common_link > .arrow-right {
    border-top: 2px solid #5FAB6E;
    border-right: 2px solid #5FAB6E;
}

/*--------------------

RECRUIT

--------------------*/

.top_recruit .hero-bg {
    position: absolute;
    height: 68%;
    top: 0;
    right: 0;
    background: #edf2f4;
    width: 72%;
    z-index: -1;
}

.top_recruit p {
    letter-spacing: 0.1em;
    line-height: 2em;
    margin-bottom: 35px;
}

.top_recruit .text_container {
    flex: 1;
    margin-right: 5vw;
}


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


    /*--------------------

    flex

    --------------------*/
    
    .top_about .contents_inner,
    .top_recruit .contents_inner{
        flex-direction: column;
    }
    
    .top_about .text_container,
    .top_recruit .text_container {
        margin: 0;
    }
    
    .top_about .hero-bg,
    .top_recruit .hero-bg {
        height: 85%;
    }

}

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

    .main_img {
        width: 85vw;
    }
    
    .main_img_inner {
        background: url("../img/top_main_sp.jpg") no-repeat 90% 30%;
    }

    .main_txt_inner {
        font-size: 6vw;
    }
    
    .top_about {
        padding-top: 80px;
    }
    
    .top_services .flex{
        flex-direction: column;
    }
    
    .menu-sec-btn {
        max-width: inherit;
        height: 250px;
        margin-bottom: 20px;
    }
    
    .menu-sec-btn_inner {
        height: 250px;
    }
}