/* main_section */

.main_section {
    position: relative;
    width: 100%;
    height: 100vh;
}

.main_section img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    -o-object-fit: cover;
       object-fit: cover;
}

.main_section .text {
    position: absolute;
    bottom: 5%;
    left: 8%;
    font-size: 2.5em;
    line-height: 1.5em;
}

.main_section .text-line {
    display: block;
}

.main_section .with-button {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: end;
        -ms-flex-align: end;
            align-items: flex-end;
}

.main_section .search_open {
    margin-left: 1em;
    line-height: normal;
    position: relative;
    bottom: 0.5em;
}



/* sima_welcome */

.sima_welcome {
    margin: var(--section-margin);
}


/* slogan parlax */

.parlax {
    position: relative;
    width: 100%;
    height: 40vh;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
}

.photo_main_2 {
    background-image: url('../img/main_2.webp');
}

.slogan .text {
    position: absolute;
    width: 84%;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
    font-size: 2.3em;
}


/* stages */

.stages {
    margin: var(--section-margin);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
}

.stages .item {
    position: relative;
    width: 15%;
}

.stages .item svg {
    position: absolute;
    left: 0;
    top: 0;
}

.stages .item .text {
    margin: 122px 0 .6rem;
    font-size: 24px;
    line-height: 35px;
}

.stages .item .subtext {
    font-size: 16px;
    line-height: 24px;
}

.stages .arrow_right {
    margin-top: 20px;
}


/* parlax photo_main_2 */

.photo_main_3 {
    background-image: url('../img/main_3.webp');
}


/* faq */

.faq {
    margin: var(--section-margin);
}

.faq h3 {
    margin-bottom: 0.75rem;
    font-size: calc(1.325rem + 0.9vw);
    font-weight: 400;
}

.faq .flex {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
}

.faq .flex .col {
    width: 45%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: .75em;
}

.faq .item .title {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: .75em;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    cursor: pointer;
}

.faq .item .title span {
    width: calc(100% - 1em);
}

.faq .item .title::after {
    content: "";
    width: 1em;
    height: 1em;
    scale: 1.5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23828282' d='M8 12L3 7l1.4-1.4L8 9.2l3.6-3.6L13 7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    -webkit-transform: rotate(-90deg);
        -ms-transform: rotate(-90deg);
            transform: rotate(-90deg);
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: -webkit-transform 0.3s ease;
    -o-transition: transform 0.3s ease;
    transition: transform 0.3s ease;
    transition: transform 0.3s ease, -webkit-transform 0.3s ease;
}

.faq .item.open .title::after {
    -webkit-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
            transform: rotate(0deg);
}

.faq .item .detail_text {
    margin-top: .5em;
    max-height: 0;
    overflow: hidden;
    -webkit-transition: .3s;
    -o-transition: .3s;
    transition: .3s;
}


/* news */

.news {
    padding: 1em 0 ;
    background-color: #fff;
}

.news h3 {
    margin: 0 0 .75em 8vw;
    font-size: calc(1.325rem + 0.9vw);
    font-weight: 400;
    color: #000;
}


/* popup */

.popup .search button {
    margin-bottom: 0.5em;
}

.popup .search a {
    color: #000;
    margin-bottom: 2em;
    font-size: .9em;
    font-weight: 300;
}



/* media for tablet */
@media screen and (max-width: 1000px) {
    .stages {
        display: -ms-grid;
        display: grid;
        -ms-grid-columns: 1fr 1.5em auto 1.5em 1fr 1.5em auto 1.5em 1fr 1.5em auto;
        grid-template-columns: 1fr auto 1fr auto 1fr auto;
        gap: 2em 1.5em;
        overflow: hidden;
    }
    
    .stages .item {
        width: 100%;
    }
    
    .stages .arrow_right {
        margin-top: 15px;
        width: 10px !important;
    }
    
    .stages .item:nth-child(1) { -ms-grid-column: 1; grid-column: 1; }
    .stages .arrow_right:nth-child(2) { -ms-grid-column: 2; grid-column: 2; }
    .stages .item:nth-child(3) { -ms-grid-column: 3; grid-column: 3; }
    .stages .arrow_right:nth-child(4) { -ms-grid-column: 4; grid-column: 4; }
    .stages .item:nth-child(5) { -ms-grid-column: 5; grid-column: 5; }
    .stages .arrow_right:nth-child(6) { -ms-grid-column: 6; grid-column: 6; }
    
    .stages .item:nth-child(7) { -ms-grid-column: 1; grid-column: 1; }
    .stages .arrow_right:nth-child(8) { -ms-grid-column: 2; grid-column: 2; }
    .stages .item:nth-child(9) { -ms-grid-column: 3; grid-column: 3; }
    
    .stages .item .text {
        margin: 80px 0 0.4rem;
        font-size: 14px;
        line-height: 18px;
    }
    
    .stages .item .subtext {
        font-size: 12px;
        line-height: 16px;
    }
    
    .stages .item svg {
        width: 60px;
        height: 60px;
        left: 50%;
        -webkit-transform: translateX(-50%);
            -ms-transform: translateX(-50%);
                transform: translateX(-50%);
    }

    .stages .item svg [clip-path] {
        -webkit-clip-path: none !important;
                clip-path: none !important;
    }

    .stages .item svg clipPath {
        display: none !important;
    }
}


/* media for phone */
@media screen and (max-width: 700px) {
    .main_section .text {
        font-size: 27px;
        right: 8%;
        bottom: 12%;
    }

    .main_section .text-line span {
        display: inline-block;
        line-height: 1;
    }

    .main_section .text .text-line:first-child {
        margin-bottom: 12px;
    }

    .main_section .with-button {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
        -webkit-box-align: stretch;
            -ms-flex-align: stretch;
                align-items: stretch;
    }

    .main_section .search_open {
        line-height: inherit;
        margin: 12px 0 0;
        bottom: 0;
    }

    .slogan .text {
        position: relative;
        font-size: 26px;
        -webkit-transform: none;
            -ms-transform: none;
                transform: none;
        width: auto;
        left: 0;
        top: 0;
        padding: 1em;
    }

    .stages {
        gap: 2em 0.3em;
    }

    .photo_main_3 {
        width: 100%;
        aspect-ratio: 16 / 9;
    }

    .faq {
        margin: 5em 7vw;;
    }

    .faq h3 {
        margin-bottom: 1.5rem;
    }

    .faq .flex {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
        gap: 1.5em;
    }

    .faq .flex .col {
        width: auto;
        gap: 1.5em;
    }

    .faq .item .detail_text {
        font-weight: 200;
        font-size: 12px;
    }
}
