@charset "UTF-8";
/* header of home.php */

#header{
    background-color: transparent;
    display: flex;
    justify-content: flex-end;

    @media screen and (max-width: 767px) {
        background-color: #F5F7F2;
        justify-content: inherit;
    }
}

.logomark {
    display: none;
    @media screen and (max-width: 767px) {
        display: block;
    }
}

#header.scrolled {
    background-color: white; 
    justify-content: space-between;
}

#header.scrolled .logomark {
    display: block; /* Show logo on scroll */
}

/* ____________________________________
----------- INTRODUCTION TOP ---------
______________________________________*/


.introduction_top {
    /* padding-top: 26.1rem;
    padding-bottom: 5.4rem; */
    height: 108.1rem;
    position: relative;
    width: 100%;
    overflow: hidden;

    @media screen and (max-width: 767px){
        /* padding-top: 10.1rem;
        padding-bottom: 10.4rem; */
        height: 66.1rem;
    } 
}

.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transform: translate(-50%, -50%);
    z-index: -1;
}

.top_logo, .top_title, .top_contact_button {
    position: relative; 
    z-index: 1;
}

.home_top_button {
    position: absolute !important;
    bottom: 21rem;
    left: 0;
    right: 0;
    opacity: 0;
    transition: opacity 0.5s ease !important;
    /* z-index: 9999 !important;  */
    @media screen and (max-width: 767px) {
        width: 23rem !important;
        height: 4rem !important;
        bottom: 17rem;
	}
}

@media screen and (max-width: 767px) {
    .home_top_button::after {
        width: 2rem !important;
        height: 2rem !important;
        background-size: 100% !important;
    }
	
}

.show-button {
    opacity: 1 !important;
}

.white_button_sp {
    position: absolute;
    bottom: 11rem;
    left: 0;
    right: 0;
    margin: auto !important;
    width: 23rem;
    height: 4rem;
    opacity: 0;
}

.white_button_sp::after {
    content: "";
    background: url(../img/footer/footer_arrow.svg) no-repeat;
    width: 2rem;
    height: 2rem;
    background-size: 100%;
    right: 20px;
    position: absolute;
}

.top_logo {
    text-align: center;
    max-width: 224px;
    height: 192px;
    margin: auto;
    display: none;
}

.top_title {
    font-family: "Kosugi Maru";
    font-weight: normal;
    font-size: 62px;
    letter-spacing: 0.05em;
    text-align: center;
    color: #000;
    margin-top: 32px;
    margin-bottom: 55px;
    padding-left: 65px;
    display: none;

    @media screen and (max-width: 766px){
        font-size: 3.2rem;
    }
}

/* .introduction_top .button_home {
    margin-bottom: 234px;
} */

.top_scroll {
    font-family: "Noto Sans";
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.09em;
    text-align: center;
    color: #003375;
    position: relative;
}

.top_scroll::after {
    content: "";
    background: url(../img/home/blue_arrow_infos.svg) no-repeat;
    width: 32px;
    height: 34px;
    top: 25px;
    left: 0;
    right: 0px;
    margin: auto;
    transform: rotate(90deg) scale(0.8);
    position: absolute;
}

.top_contact_button{
    position: absolute;
    max-width: 130px;
    height: auto;
    bottom: 4em;
    right: 5em;
    margin: auto;
    transition: 0.5s;

    @media screen and (max-width: 767px) {
        bottom: 0px;
        max-width: 80px;
    }
}

.top_contact_button:hover{
    bottom: 5em;
}

.top_contact_button img {
    width: 100%;
    height: auto;
}

/* ____________________________________
----------- INTRODUCTION --------------
______________________________________*/

.introduction {
    padding-top: 162px;
    padding-bottom: 135px;
    position: relative;
}

.introduction::before{
    content: "";
    background: url(../img/home/intro_icon2.png) no-repeat;
    width: 25.5rem;
    height: 40rem;
    background-size: 100%;
    left: 16rem;
    top: 15rem;
    bottom: 0;
    margin: auto;
    position: absolute;
}

.introduction::after{
    content: "";
    background: url(../img/home/intro_icon1.png) no-repeat;
    width: 40.1rem; 
    height: 37.7rem;
    background-size: 100%;
    right: 10rem;
    top: 26rem;
    bottom: 0;
    margin: auto;
    position: absolute;
}

.introduction_title {
    font-family: "Kosugi Maru";
    font-weight: normal;
    font-size: 46px;
    letter-spacing: 0.09em;
    text-align: center;
    color: #000;
    margin-bottom: 59px;
    position: relative;
}

.introduction_title span {
    color: #1368D5;
}
.introduction_title::before {
    content: "";
    position: absolute;
    background: url(../img/home/Intro_icon.png) no-repeat;
    background-size: 100%;
    top: -22.7rem;
    transform: translateX(-12.8rem);
    width: 13.6rem;
    height: 47.6rem;
}

.introduction_title::after {
    content: "";
    position: absolute;
    background: url(../img/home/Intro_icon.png) no-repeat;
    top: -22.7rem;
    width: 13.6rem;
    height: 47.6rem;
    background-size: 100%;
}

.intro_text p + p {
    margin-top: 15px;
}

.intro_text{
    p {
        font-family: "Noto Sans JP";
        font-weight: normal;
        font-size: 1.8rem;
        letter-spacing: 0.08em;
        line-height: 3.7rem;
        text-align: center;
        color: #000;

        span{
            color: #1368D5;
        }
    }

} 


@media screen and (max-width: 930px) {
    .introduction {
        padding-top: 175px;
        padding-bottom: 50px;
    }
    .introduction_title::after {
        transform: scale(0.5);
    }
    .introduction_title::before {
        transform: scale(0.5) translateX(-230px);
    }
    .introduction::after{
        width: 8.1rem;
        height: 7.7rem;
        right: 2rem;
        top: 64rem;   
    }
    .introduction::before{
        width: 5.2rem;
        height: 12rem;
        left: 3rem;
        top: 68rem;
    }
    .introduction_title{
        font-size: 2.0rem;
    }
    .intro_text p{
        font-size: 1.4rem;
        line-height: 3.0rem;
    }
}

@media screen and (max-width: 767px){
    .introduction_title::before {
        transform: scale(0.28) translateX(-311px);
        top: -24.7rem;
    }
    .introduction_title::after {
        transform: scale(0.28) translateX(-172px);
        top: -24.7rem;
    }

}

/* ____________________________________
----------- WORKS --------------
______________________________________*/

#works {
    padding-top: 97px;
    padding-bottom: 121px;
    background-color: #F2F5F7;
    position: relative;
}

#works::after {
    content: "";
    background: url(../img/home/works_background.png) no-repeat;
    background-size: 100%;
    width: 13.8rem;
    height: 16.9rem;
    left: 22rem;
    bottom: -5rem;
    position: absolute;
}

.home_title_container {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    padding-bottom: 49px;
    justify-content: space-between;
}

.slider_text_container {
    display: flex;
    align-items: flex-end;
}

.home_title {
    font-family: Poppins;
    font-weight: 600;
    font-size: 6.6rem;
    letter-spacing: 0.02em;
    text-align: left;
    color: #003375;
    position: relative;
}

.home_title_jp {
    font-family: "Noto Sans JP";
    font-weight: bold;
    font-size: 1.8rem;
    letter-spacing: 0.08em;
    line-height: 37px;
    color: #000;
}

.works_image_slider_container {
    position: relative;
    overflow: hidden;
    margin-bottom: 6.5rem;
}

.works_image_slider {
    display: flex;
    margin-bottom: 20px;
    scroll-behavior: smooth;
    overflow-x: scroll; 
}

.works_container {
    width: 39.6rem;
    height: 39.6rem;
    border-radius: 12px;
    position: relative;
    flex-shrink: 0;
    margin-right: 4rem;
    overflow: hidden;
    background-color: rgb(122, 133, 133);   
}

.works_container a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.works_container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work_container_tag {
    position: absolute;
    font-family: "Noto Sans JP";
    font-weight: bold;
    font-size: 1.9rem;
    letter-spacing: 0.05em;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #003375;
    border-radius: 21.5px;
    background: #fff;
    bottom: 15px;
    left: 12px;
    padding: 1rem 1rem;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 51, 117, 0.8);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.works_container:hover .overlay {
    opacity: 1;
}

.slider-bar-container {
    display: flex;
    align-items: center;
}

.slider-bar {
    position: relative;
    width: 250px;
    height: 1px;
    background-color: #D3D3D3;
    margin-left: 10px;
}

.slider-thumb {
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: #003375;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    cursor: grab;
    transition: left 0.1s ease-out;
}

.slider-thumb:active {
    cursor: grabbing;
    transition: none;
}

.button_home {
    position: relative;
    font-family: "Noto Sans JP";
    font-weight: 500;
    font-size: 18px;
    letter-spacing: 0.05em;
    text-align: center;
    color: #fff;
    width: 329px;
    height: 77px;
    border-radius: 38.5px;
    background: #1368d5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: 0.4s;
}

.button_home::after {
    content: "";
    background: url(../img/home/arrow_icon.svg) no-repeat;
    width: 35px;
    height: 35px;
    right: 20px;
    position: absolute;
}

.button_home:hover {
    opacity: 0.5;
    filter: opacity(0.5);
}

@media screen and (max-width: 765px) {
    #works::after{
        transform: scale(0.7);
        width: 8.8rem;
        height: 10.9rem;
        left: 14rem;
    }
    .work_container_tag{
        font-size: 1.1rem;
    }
    .slider_text_container{
        flex-direction: column;
        align-items: center;
    }
    .slider-bar-container{
        margin-top: 2rem;
    }
    
}


/* ____________________________________
----------- SERVICE --------------
______________________________________*/

#service {
    padding-top: 81px;
    padding-bottom: 270px;
    @media screen and (max-width: 767px) {
        padding-bottom: 6.7rem;
        padding-top: 12rem;
    }
}

#service .home_title_container {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.service_list_container {
    padding-top: 47px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.service_box_container {
    width: 45rem;
    height: 48rem;
    position: relative;
    background-size: cover;
    background-position: center;
    margin-bottom: 24px;
    border-radius: 10px;
}

#box_container1 {
    margin-top: -60px;
    background-image: url(../img/home/service_img1.png);
    transition: 0.3s;
}

#box_container1:hover {
    margin-top: -40px;
}

#box_container2 {
    background-image: url(../img/home/service_img2.png);
    transition: 0.3s;
}

#box_container2:hover {
    transform: scale(1.1);
}

#box_container3 {
    margin-top: 60px;
    background-image: url(../img/home/service_img3.png);
    transition: 0.3s;

    @media screen and (max-width: 767px) {
        margin-top: 0;
    }
}

#box_container3:hover {
    margin-top: 40px;
}

.text_box {
    position: absolute;
    bottom: -210px;
    right: -30px;
    width: 100%;
    max-width: 41.1rem;
    height: auto;
    max-height: 37.6rem;
    background-color: rgb(255, 255, 255);
    padding: 32px;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
}

.text_box_title {
    font-family: "Kosugi Maru";
    font-weight: normal;
    font-size: 2.4rem;
    letter-spacing: 0.03em;
    text-align: left;
    color: #003375;
    margin-bottom: 10px;
    max-width: 29.6rem;
    line-height: 3.3rem;
}

.text_box p {
    width: 29.6rem;
    /* height: 37.6rem; */
    font-family: "Noto Sans JP";
    font-weight: normal;
    font-size: 1.8rem;
    letter-spacing: 0.08em;
    line-height: 1.8;
    text-align: left;
    color: #000;
    margin-bottom: 28px;
}

.see_more {
    font-family: "Noto Sans JP";
    font-weight: bold;
    font-size: 1.6rem;
    letter-spacing: 0.08em;
    line-height: 29px;
    text-align: right;
    color: #1368d5;
    position: relative;
    transition: 0.5s;
    padding-right: 40px;
}

.see_more::after {
    content: "";
    background: url(../img/home/round_arrow.svg) no-repeat;
    width: 42px;
    height: 42px;
    bottom: -7px;
    right: -15px;
    position: absolute;
    transition: 0.7s;
}

.see_more:hover::after {
    bottom: 5px;
}

.see_more:hover {
    opacity: 0.5;
}

@media screen and (max-width: 767px) {
    .see_more::after {
        background-size: 100%;
        width: 2rem;
        height: 2rem;
        bottom: 0.4rem;
        right: 1rem;
    }
}

/* ____________________________________
----------- COMPANY --------------
______________________________________*/

#company {
    background-color: #F5F7F2;
    padding-top: 14rem;
    padding-bottom: 10.1rem;
    position: relative;
}

#company::before{
    content: "";
    background: url(../img/home/company_background1.png) no-repeat;
    width: 67.3rem;
    height: 68.1rem;
    background-size: 100%;
    left: 0;
    top: -9.5rem;
    position: absolute;
    transform: scale(0.9);
}

#company::after{
    content: "";
    background: url(../img/home/company_background2.png) no-repeat;
    width: 67.8rem;
    height: 68.1rem;
    background-size: 100%;
    right: 0;
    top: -6rem;
    position: absolute;
    transform: scale(0.9);
}

@media screen and (max-width: 765px) {
    #company::before{
        width: 47.3rem;
        height: 68.1rem;
        background-size: 100%;
        left: -2rem;
        top: -15.5rem;
        position: absolute;
        transform: scale(0.5);
    }
    #company::after{
        width: 67.8rem;
        height: 68.1rem;
        background-size: 100%;
        right: -16rem;
        top: 6rem;
        position: absolute;
        transform: scale(0.36);
    }
}


#company .home_title_container {
    justify-content: unset;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

#company .home_title_container:before{
    content: "";
    background: url(../img/home/icon_building.png) no-repeat;
    background-size: 100%;
    width: 15.2rem;
    height: 26.2rem;
    left: 0;
    right: 0;
    margin: auto;
    top: -23rem;
    position: absolute;
    transform: scale(0.7);
}

.company_text {
    font-family: "Noto Sans JP";
    font-weight: normal;
    font-size: 1.6rem;
    letter-spacing: 0.08em;
    line-height: 3.7rem;
    text-align: center;
    color: #000;
    border: 1px solid rgba(0, 0, 0, 0);
    margin-bottom: 65px;
}

@media screen and (max-width: 500px) {
    .company_text{
        text-align: left;
    }

    #company .home_title_container:before{
        width: 6.2rem;
        height: 13.2rem;
        left: -17rem;
        top: 2rem;
    }
}

/* ____________________________________
----------- NEWS --------------
______________________________________*/

#news {
    padding-top: 130px;
    padding-bottom: 170px;
}

@media screen and (max-width: 767px) {
    #news {
        padding-bottom: 4rem;
        padding-top: 10.1rem;
    }

}

#news .home_title_container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-right: 184px;
    position: relative;
    justify-content: flex-start;
}

#news .home_title_container::before {
    content: "";
    background: url(../img/page/infos_img.png) no-repeat;
    width: 31.7rem;
    height: 21.8rem;
    background-size: 100%;
    left: -6rem;
    bottom: -18.5rem;
    position: absolute;
}

.news_container_section {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0 16px;
}

.news_container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news_contents {
    display: flex;
    align-items: center;
    border-top: 1px solid #D5D5D5;
    border-bottom: 1px solid #D5D5D5;
    padding: 16px 0;
}

.news_contents:not(:last-child) {
    border-bottom: 0;
}

.news_date {
    font-family: Poppins, sans-serif;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 0.08em;
    line-height: 68px;
    text-align: left;
    color: #000;
    margin-right: 91px;
}

.news_tag {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.05em;
    line-height: 68px;
    color: #95a9c4;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 114px;
    height: 30px;
    border-radius: 15px;
    background: transparent;
    border: 2px solid #95a9c4;
    margin-right: 22px;
}

.news_title {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 500;
    font-size: 18px;
    letter-spacing: 0.04em;
    line-height: 68px;
    text-align: left;
    color: #000;
    flex-grow: 1;
}

@media screen and (max-width: 767px) {
    #news .home_title_container {
        margin-right: 0;
        text-align: center;
    }

    #news .home_title_container::before {
        width: 20rem;
        height: 14rem;
        left: -3rem;
        bottom: -12rem;
    }

    .news_container_section {
        padding: 0 8px;
    }

    .news_contents {
        flex-direction: column;
        align-items: flex-start;
        padding: 8px 0;
    }

    .news_date, .news_tag, .news_title {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .news_date {
        font-size: 14px;
        line-height: 1.5rem;
    }

    .news_tag {
        font-size: 12px;
        line-height: 1.5rem;
        width: auto;
        height: auto;
        padding: 5px 10px;
    }

    .news_title {
        font-size: 16px;
        line-height: 1.5rem;
    }
}



.parent_for_button {
    position: relative;
    display: flex;
    justify-content: flex-end;
    padding: 60px 0 0px;
}

#news .button_home {
    position: absolute;
}


@media screen and (max-width: 1670px) {
    #news .home_title_container::before {
        left: 47rem;
        bottom: 5.5rem;
    }
    .parent_for_button{
        justify-content: center;
    }
}

@media (max-width: 1200px) {
    
    .works_container {
        width: 300px;
        height: 300px;
    }

    .news_date {
        margin-right: 5%;
    }
    
    .news_tag {
        margin-right: 5%;
    }
}

@media screen and (max-width: 930px) {
    .parent_for_button {
        justify-content: center;
    }
    .service_list_container{
        justify-content: center;
    }

    .service_box_container{
        width: 80rem;
    }
    .text_box{
        bottom: -35px;
        max-width: 50.1rem;
    }
    .text_box_title{
        margin-bottom: 3rem;
    }
    .text_box p{
        margin-bottom: 2.8rem;
    }
    .news_container_section{
        flex-wrap: nowrap;
        flex-direction: column;
        padding: 0;
    }
}

@media (max-width: 768px) {
    .home_title {
        font-size: 36px;
    }

    .home_title_container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .works_image_slider {
        align-items: center;
    }

    .works_container {
        margin-bottom: 20px;
    }

    /* .service_list_container {
        flex-direction: column;
        align-items: center;
    } */

    /* .service_box_container {
        width: 90%;
        max-width: none;
    } */

    /* .text_box {
        width: auto;
        right: auto;
        bottom: -50px;
    } */

    /* .news_container_section {
        flex-direction: column;
        align-items: center;
    } */


    .news_date, .news_tag, .news_title {
        margin-right: 0;
    }

    #news .button_home {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 20px;
    }
}

@media screen and (max-width: 770px) {
    .service_box_container{
        height: 30rem;
    }
    .text_box{
        max-width: 29.1rem;
    }
    .text_box_title{
        margin-bottom: 1rem;
        font-size: 1.8rem;
        line-height: 2rem;
    }
    .text_box p{
        margin-bottom: 0.8rem;
        width: 21.6rem;
        height: inherit;
        font-size: 1.4rem;
        line-height: 2rem;
    }
    .see_more{
        font-size: 0.9rem;
    }

}

@media screen and (max-width: 550px) {
    #news .home_title_container {
        margin-right: 0;
    }
}

/* ____________________________________
----------- BANNER INFOS --------------
______________________________________*/

.banner_informations {
    background-color: #F2F5F7;
    padding-top: 98px;
    padding-bottom: 98px;
}

.infos_box_container {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
    justify-content: center;
}

.info_box {
    width: 47.4%;
    height: 38.7rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: #fff;
    transition: 0.1s;
    position: relative;
}

.info_box:hover {
    border: solid 5px #1368D5;
}

.info_box::after {
    content: "";
    background: url(../img/home/grey_arrow_infos.svg) no-repeat;
    width: 32px;
    height: 34px;
    right: 100px;
    position: absolute;
}

.info_box:hover::after {
    background: url(../img/home/blue_arrow_infos.svg) no-repeat;
}

.info_box_title {
    font-family: "Noto Sans JP";
    font-weight: bold;
    font-size: 3.7rem;
    letter-spacing: 0.15em;
    line-height: 50px;
    text-align: center;
    color: #003375;
    margin-top: 25px;
}

.info_img1{
    max-width: 10.9rem;
    height: 13.9rem;
}

.info_img2{
    max-width: 9.3rem;
    height: 13.4rem;
}

@media (max-width: 1280px) {
    .info_box {
        width: 100rem;
        height: 50rem;
    }
}

@media (max-width: 768px) {
    .info_box {
        margin-bottom: 20px;
        height: 30rem;
    }
    .info_box_title{
        font-size: 1.7rem;
    }
    .info_box::after{
        right: 4rem;
    }
}
/* 
////////////////////////////////////////
//////////Animations////////////////////
//////////////////////////////////////// 
*/

.home_title_container, .works_image_slider, .service_list_container,
.company_text, .banner_informations  {
    opacity: 0;
    transform: translateX(-100px);
    transition: opacity 1s ease-out 0.5s, transform 1s ease-out 0.5s;
}



.home_title_container.show, .works_image_slider.show, 
.service_list_container.show, .company_text.show, .banner_informations.show, .button_home.show {
    opacity: 1;
    transform: translateX(0);
}

/* .button_home {
    opacity: 0;
    transition: opacity 0.5s ease-out 0.5s, transform 0.5s ease-out 0.5s;
}

.button_home.show {
    opacity: 1;
}

.button_home:hover {
    opacity: 0.3;
} */