
html {
    scroll-behavior: smooth;
    width: 100%;
    /* width: -webkit-fill-available !important; */
    font-family: YakuHanJP_Narrow, "Inter", "Yu Gothic", YuGothic, "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif !important;
    -webkit-text-size-adjust: 100%;
    font-size-adjust: none;
    max-width: 100%;
    
}

.mainimg_container {
    height: 100%;
    width: 100vw;
    /* display: flex; */
    justify-content: center;
    /* background-image: url(images/toppage/background_img.png); */
    background-size: cover;
}

.top-page-banner {
    background-color: #ffffff;
    grid-row: 1/1;
    /* background-image: linear-gradient(to left, rgba(255, 0, 0, 0), black, rgba(29, 28, 28, 1)); */
    background-repeat: no-repeat;
    background-position-x: right;
    background-size: contain;
    position: relative;

    overflow: hidden;
    display: block;
    height: 30%;

}

.top-page-text {
    color: #000;
}

.banner_image::before {
    content: "";
    width: 100%;
    height: 100%;
    display: block;
    background: linear-gradient(to left, transparent 0%, transparent 60%, #fff 100%);
    position: absolute;
    top: 0;
    left: 0;
}

.body_grid {
    /* display: grid;
    grid-template-rows: 31% 69%; */
    margin: 0;
    overflow-y: hidden;
    height: 100svh;
    height: 100%;
    overflow-x: hidden;
    width: 100%;
    position: inherit;
}

button {
    display: none;
}

.back_l {
    position: absolute;
    left: 0;
    z-index: 40;
    height: 100%;
}


.back_r {
    position: absolute;
    right: 0;
    z-index: 40;
    height: 100%;
}

model-viewer {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: start;
}

.open-door {
    /* background-image: url(../mainpages/assets/door_back.png); */
    background-repeat-y: no-repeat;
    background-repeat-x: no-repeat;
    background-position-x: inherit;
    z-index: 10;
    position: absolute;
    top: 0px;
    left: 0px;
    /* background: transparent linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 22%, rgba(0, 0, 0, 0.4) 75%, rgba(0, 0, 0, 0) 100%) 0% 0% no-repeat padding-box; */
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.blank,
.weld,
.bend {
    cursor: pointer;
    width: 24vw;
    height: 32vh;
    border: none;
    background-color: transparent;
}

.navigate-anchor {
    position: absolute;
}

/* .blank{
width: 40vw;
height: 35vh;
}
.weld, .blank */

/* This keeps child nodes hidden while the element loads */
:not(:defined)>* {
    display: none;
}

#left_from_front {
    padding: 4vh;
    border: none;
    color: #fff;
    background: rgba(0, 0, 0, 0);
    position: fixed;
    left: 0%;
    top: 50%;

}

#right_from_front {
    padding: 4vh;
    border: none;
    color: #fff;
    background: rgba(0, 0, 0, 0);
    position: fixed;
    right: 0%;
    top: 50%;

}


#turn_left {
    padding: 4vh;
    border: none;
    color: #fff;
    background: rgba(0, 0, 0, 0);
    position: fixed;
    left: 13%;
    top: 60%;
    transform: skewY(25deg);
}

.left_text {
    padding: 1vh;
    position: absolute;
    top: 50%;
    width: 10vw;
    /* background-color: rgba(0, 0, 0, 0.5); */
    color: rgba(0, 0, 0, 0);
    left: 0;
}

.left_text:hover {
    height: 5vh;
    display: block;
    position: absolute;
    top: 30%;
    width: 10vw;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

#turn_right {
    padding: 4vh;
    border: none;
    color: #fff;
    background: rgba(0, 0, 0, 0);
    position: fixed;
    right: 13%;
    top: 60%;
    transform: skewY(-25deg);
}

.right_text {
    padding: 1vh;
    position: absolute;
    top: 50%;
    width: 10vw;
    /* background-color: rgba(0, 0, 0, 0.5); */
    color: rgba(0, 0, 0, 0);
    right: 0;
}

.right_text:hover {
    height: 5vh;
    display: block;
    position: absolute;
    top: 40%;
    width: 10vw;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    display: block;
    align-items: center;
    justify-content: center;
}

#turn_front {
    padding: 4vh;
    border: none;
    color: #fff;
    background: rgba(0, 0, 0, 0);
    position: fixed;
    right: 45%;
    bottom: 0;
}

.front_text {
    padding: 1vh;
    position: absolute;
    top: 50%;
    width: 10vw;
    /* background-color: rgba(0, 0, 0, 0.5); */
    color: rgba(0, 0, 0, 0);
    left: 0;
}

.front_text:hover {
    height: 5vh;
    position: absolute;
    top: 50%;
    width: 10vw;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    align-items: center;
    justify-content: center;
    display: block;
    pointer-events: none;
    padding-right: 4vh;
}

#turn_top {
    display: flex;
    flex-direction: row;
    padding: 4vh;
    border: none;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    /* position: fixed; */
}

.top_text {
    /* opacity: 0; */
    padding-left: 1vw;
}

#front_icon {
    animation: 1s topfuwafuwa infinite;
    animation-direction: alternate;
    transition: 1s;
    width: 10vh;
}

#image {
    width: 5vh;
}

#right_icon {
    animation: 1s rightfuwafuwa infinite;
    animation-direction: alternate;
    transition: 1s;
}

#left_icon {
    animation: 1s leftfuwafuwa infinite;
    animation-direction: alternate;
    transition: 1s;
}

@keyframes topfuwafuwa {

    0% {
        transform: translateY(10px);
    }

    100% {
        transform: translateY(-5px);
    }
}

@keyframes rightfuwafuwa {

    0% {
        transform: translateX(10px);
    }

    100% {
        transform: translateX(0px);
    }
}

@keyframes leftfuwafuwa {

    0% {
        transform: translateX(5px);
    }

    100% {
        transform: translateX(10px);
    }
}

/* レスポンシブ */
@media screen and (max-width: 550px) {

    .back_l {
        display: none;
    }


    .back_r {
        display: none;
    }

    .door img {

        height: 100%;

        width: 50%;

    }

    .top-page-text {
        color: #fff;
    }

    .mainimg {
        height: 100%;
        /* width: 100vw; */
    }

    .banner_image::before {
        content: "";
        width: 100%;
        height: 100%;
        display: block;
        background: linear-gradient(to left, transparent 0%, transparent 10%, #000 100%);
        position: absolute;
        top: 0;
        left: 0;
    }

    .mainimg_container {
        height: 69vh;
        /* width: 100vw; */
        display: flex;
        justify-content: center;
    }

    .mainimg_container video {
        height: 75%;
        width: auto !important;
    }
}

@media screen and (min-width:551px) and (max-width:820px) {
    .top-page-banner {
        grid-row: inherit;
    }
}