

*{
    box-sizing: border-box;
}
:root {
    --common-left-position: 13vw;
    --sp_common-left-position: 8.5vw;
    --fontsize_xxxl: 80px;
    --fontsize_xxl: 28px;
    --fontsize_xl: 24px;
    --fontsize_l: 20px;
    --fontsize_m: 16px;
}
@media(max-width: 767px) {
    .sp_none {
        display: none !important;
    }
}
@media(min-width: 768px) {
    .pc_none {
        display: none !important;
    }
}
#btnstop{
    background: red;
    z-index: 99999;
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: block;
}

body{
    font-family: 'Noto Sans JP', sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
}
.en{
    font-family: "din-2014", sans-serif;
    font-weight: 700;
    font-style: normal;
}
#progress_bar{
    position: fixed;
    top: calc(50vh - 50px);
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #fff;
    z-index: 1000;
    transform-origin: left center;
    /*transition: width 0.2s ease-out;*/
}

.virtual_scene{
    position: fixed;
    transition: opacity 1.5s ease-in-out;
    top: 0;
    left: 0;
    width: 100dvw;
    height: 100dvh;
    opacity: 0;
}
.virtual_scene.js-active{
    opacity: 1;
}

/* 背景画像用の疑似要素 */
.virtual_scene::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    transform: scale(1);
    transition: transform 15s linear, background-position 15s linear;
    z-index: -1;
}

#s1:before{ background: #000;}
#s2:before{
    background-image: url('img/s_feel1.jpg');
    transform: scale(1.1) translateX(4vw);
    @media(max-width: 768px) {
        background-position: 12% center;
        transform: scale(1.1) translateX(0);
    }
}
#s2[style*="opacity: 1"]::before {
    transform: scale(1.15) translateX(-4vw);
    @media(max-width: 768px) {
        background-position: 17% center;
        transform: scale(1.15) translate(0);
    }
}

#s2_2:before{
    background-image: url('img/s_feel2.jpg');
    transform: scale(1.2) translateY(5vh);
    @media(max-width: 768px) {
        background-image: url('img/s_feel2_sp.jpg');
        background-position: -5vw center;
    }
}
#s2_2[style*="opacity: 1"]::before {
    transform: scale(1) translateY(0vh);
    @media(max-width: 768px) {
        background-position: -5vw center;
    }
}

#s3:before{
    background-image: url('img/s_philosophy1.jpg');
    @media(max-width: 768px) {
        background-image: url('img/s_philosophy1_sp.jpg');
        transform: scale(1.2) translateY(-8vh);
    }
}
#s3[style*="opacity: 1"]::before {
    transform: scale(1.2);
    @media(max-width: 768px) {
        transform: scale(1.1) translateY(-4vh);
    }
}

#s3_2:before{
    background-image: url('img/s_philosophy2.jpg');
    transform: scale(1.15) translateY(3vh);
    @media(max-width: 768px) {
        background-image: url('img/s_philosophy2_sp.jpg');
        background-position: 100% 0;
        transform: scale(1.15) translateX(-3vw) translateY(1vh);
    }
}
#s3_2[style*="opacity: 1"]::before {
    transform: scale(1.15) translateX(-3vw) translateY(3vh);
}

#s4:before{
    background-image: url('img/s_expression1.jpg');
    @media(max-width: 768px) {
        background-image: url('img/s_expression1_sp.jpg');
    }
}
#s4[style*="opacity: 1"]::before {
    transform: scale(1.2);
}

#s4_2{
    background-color: #000;
}
#s4_2:before{
    transform: scale(1);
    background-image: url('img/s_expression2.jpg');
    @media(max-width: 768px) {
        transform: scale(1.05) translateX(10vw);
        background-image: url('img/s_expression2_sp.png');
        background-size: 100% auto;
    }
}
#s4_2[style*="opacity: 1"]::before {
    transform: scale(1);
    @media(max-width: 768px) {
        transform: scale(1.05) translateX(-3vw);
    }
}
#s4_2 h2,
#s4_2 h3,
#s4_2 p{
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}
.js-virtual_finished #s4_2 h2,
.js-virtual_finished #s4_2 h3,
.js-virtual_finished #s4_2 p{
    opacity: 0;
}




.virtual_scene h2{
    font-weight: 700;
    font-size: var(--fontsize_xxxl);
    line-height: 1;
    position: absolute;
    bottom: calc(50vh + 70px);
    left: var(--common-left-position);
    @media(max-width: 768px) {
        font-size: 11vw;
        left: var(--sp_common-left-position);
    }

}
.virtual_scene h3{
    font-weight: 700;
    font-size: var(--fontsize_xxl);
    line-height: 1;

    position: absolute;
    top: calc(50vh - 25px);
    left: var(--common-left-position);
    @media(max-width: 768px) {
        top: calc(50vh - 28px);
        font-size: 4.3vw;
        left: var(--sp_common-left-position);
    }
}
.virtual_scene p{
    font-weight: 700;
    line-height: 1;
    position: absolute;

    top: calc(50vh + 20px);
    font-size: var(--fontsize_l);
    left: var(--common-left-position);
    @media(max-width: 768px) {
        top: calc(50vh + 5px);
        font-size: 2.8vw;
        left: var(--sp_common-left-position);
    }
}



#main_scene{
    padding-top: 150vh;
    overflow: visible !important; /* overflow-x: hiddenを上書き */
}
.main_scene{
    position: relative;
    width: 100%;
    min-height: 100dvh;
    margin-bottom: 100dvh;
}
.main_scene#s9{
    margin-bottom: 0;
}

.main_scene .inner {

    position: sticky;
    top: 50vh;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;

    @media(max-width: 768px) {
        padding-left: var(--sp_common-left-position);
        padding-right: var(--sp_common-left-position);
        align-items: flex-start;
    }
}

.main_scene h2{
    text-align: center;
    font-weight: 700;
    font-size: var(--fontsize_xxxl);
    line-height: 1.15;
    margin-bottom: 0.5em;
    @media(max-width: 768px) {
        text-align: left;
        font-size: 11.2vw;
        margin-bottom: 0.5em;
    }

}
.main_scene h3{
    font-size: var(--fontsize_xl);
    text-align: center;
    margin-bottom: 2em;
    line-height: 1.8;
    @media(max-width: 768px) {
        text-align: left;
        font-size: 3.65vw;
        line-height: 1.5;
        margin-bottom: 2.1em;
    }
}

.main_scene p{
    font-size: var(--fontsize_m);
    text-align: center;
    line-height: 2.2;
    @media(max-width: 768px) {
        text-align: left;
        font-size: 2.6vw;
    }
}


#virtual_scene{
    position: relative;
    /*top: 1500vh;*/
    z-index: 1;
    overflow: hidden;
    touch-action: none;
    width: 100%;
    overflow-x: hidden;
}
.js-virtual_finished #virtual_scene{
    overflow: scroll;
    touch-action: initial;
    z-index: -1;
}
.js-virtual_finished #progress_bar{
    opacity: 0 !important;
}

#main_scene{
    position: relative;
    z-index: 0;
    opacity: 0;
    display: none;
    width: 100%;
    overflow-x: hidden;
}
.js-virtual_finished #main_scene{
    z-index: 1;
    opacity: 1;
    display: block;
}
#main_scene_bg,
#main_scene_bg_odd{
    content:"";
    display: block;
    position: fixed;
    width: 100dvw;
    height: 100dvh;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;

}

#main_scene_bg {
    z-index: 0;
    opacity: 0;
}
#main_scene_bg_odd {
    z-index: 0;
}
#main_scene_bg.js-active,
#main_scene_bg_odd.js-active {
    opacity: 1;
}

#main_scene_bg.s5,
#main_scene_bg_odd.s5 {
    /*background-image: url('img/s_expression2.jpg');*/
    @media(max-width: 768px) {
        /*scale(1.05) translateX(10vw)*/
        background-color: #000000;
        background-image: url(img/s_expression2_sp.png);
        background-size: 105% auto;
        background-position: -160% center;
    }
}

#main_scene_bg.s5_2,
#main_scene_bg_odd.s5_2 {
    /*background-image: url('img/s_expression2.jpg');*/
    @media(max-width: 768px) {
        /*background-image: url('img/s_expression2_sp.png');*/
        /*background-size: 100% auto;*/
        background-color: #000000;
        background-image: url(img/s_expression2_sp.png);
        background-size: 105% auto;
        background-position: -160% center;
    }
}

#main_scene_bg.s6,
#main_scene_bg_odd.s6 {
    background-image: url('img/s_serendipity.jpg');
    @media(max-width: 768px) {
        background-image: url('img/s_serendipity_sp.jpg');
        background-position: 5% center;
    }
}

#main_scene_bg.s7,
#main_scene_bg_odd.s7 {
    background-image: url('img/s_thinking.jpg');
    @media(max-width: 768px) {
        background-image: url('img/s_thinking.jpg');
        background-position: 60% center;
    }
}

#main_scene_bg.s8,
#main_scene_bg_odd.s8 {
    background-image: url('img/s_virtual.jpg');
    @media(max-width: 768px) {
        background-image: url('img/s_virtual.jpg');
        background-position: 10% center;
    }
}

#main_scene_bg.s9,
#main_scene_bg_odd.s9 {
    background-image: url('img/s_internet.jpg');
    @media(max-width: 768px) {
        background-image: url('img/s_internet_sp.jpg');
        background-position: 75% center;
    }
}







#loading{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: all 0.3s ease;
}
.js-loaded #loading{
    opacity: 0;
}
.js-loaded #loading_img_wrap_outer{
    transition: all .7s ease;
    transform: scale(0.3) rotateZ(90deg);
}


#loading_img_wrap {
    width: 50px;
    height: auto;
    animation: loading_scale 3s cubic-bezier(.30,0,.40,1) infinite;
    @media(max-width: 768px) {
        width: 36px;
    }
}
.js-loaded #loading_img_wrap {
}
#loading_img {
    width: 50px;
    height: auto;
    animation: loading_rotate 3s cubic-bezier(0.30,0.05,0.20,0.95) infinite;
    @media(max-width: 768px) {
        width: 36px;
    }
}
@keyframes loading_rotate {
    0% { transform: rotate(0deg); }
    /*50% { transform: rotate(360deg); }*/
    100% { transform: rotate(540deg); }
}
@keyframes loading_scale {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}








#header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 9000;
    @media (max-width: 767px) {
        display: none;
        background: transparent;
        height: 100dvh;
    }
}
#header .inner{
    position: relative;
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    @media (max-width: 767px) {
        width: 100%;
        min-height: 100dvh;
        padding-left: 30px;
        display: block;
    }
}
#header a{
    color: #FFFFFF;
    text-decoration: none;
}

#header h1{
    font-family: "din-2014", sans-serif;
    font-weight: 700;
    font-size: 36px;
    @media (max-width: 767px) {
        opacity: 0;
        font-size: 5vw;
        padding:30px 0 50px;
    }
}

#header #header_mainnav{
    padding-right: 90px;
    @media (max-width: 767px) {
        padding-right: 0;
    }
}
#header #header_mainnav ul{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 20px;

    @media (max-width: 767px) {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }
}
#header #header_mainnav ul li{
    text-align: center;
    font-size: 8.5px;
    line-height: 1.5;
    @media (max-width: 767px) {
        font-size: 2vw;
        text-align: left;
        animation: none;
        transition: opacity 0.3s 0.2s;
    }
}

#header #header_mainnav ul span{
    font-family: "din-2014", sans-serif;
    font-weight: 700;
    font-size: 14px;
    display: block;
    margin-bottom: 5px;
    @media (max-width: 767px) {
        font-size: 5vw;
    }
}

#header .header--lang{
    position: fixed;
    top: 41px;
    right: 30px;

    @media (max-width: 767px) {
        opacity: 0;
        top: 30px;
        right: 20px;
    }
}
#header .header--lang ul{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    list-style: none;
    gap: 0px;
    padding: 0;
    margin: 0;
}
#header .header--lang li{
    color: #B7B7B7;
    font-size: 12px;
    font-family: arial, sans-serif;
    @media (max-width: 767px) {
        font-size: 2.5vw;
    }
}
#header .header--lang li+li:before{
    content: "/";
    padding: 0 3px;
    color: #FFFFFF;
}
#header .header--lang li a{
    color: #B7B7B7;
}
#header .header--lang li.current a{
    color: #FFFFFF;
}

.header--close{
    @media (max-width: 767px) {
        opacity: 0;
        position: absolute;
        color: #FFFFFF;
        right:00px;
        bottom:0px;
        padding-bottom: 32px;
        padding-right:80px;
        /*background: #000;*/
        font-size: 14px !important;
        font-family: arial, sans-serif;
    }
}

#header--foot{
    display: none;
    @media (max-width: 767px) {
        display: inline-block;
        opacity: 0;
        position: absolute;
        bottom: 28px;
        left:30px;
        font-size: 14px !important;
        font-family: arial, sans-serif;
    }
}
#header--foot img{
    width: auto;
    height: 22px;
}


@media (max-width: 767px) {

    .js-nav_active #header{
        display: block;
        width: 100%;
        left: 0;
        animation: none;
    }
    .js-nav_off #header{
        animation: none;
    }
    .js-nav_active #header #header_mainnav ul li {
        /*margin-bottom: 30px;*/
        opacity: 0;
        /*animation: none;*/
    }
    .js-nav_active #header .header--lang,
    .js-nav_active #header #header--foot,
    .js-nav_active #header .header--close{
        animation: navLi 0.8s ease 1s 1 forwards;
    }
    .js-nav_active #header h1{
        animation: navLi 0.3s ease 0.4s 1 forwards;
    }


    .js-nav_active #header #header_mainnav ul li{
        animation: navLi 0.3s ease 0.6s 1 forwards;
    }
    .js-nav_active #header #header_mainnav ul li:nth-of-type(1){
        animation: navLi 0.5s ease 0.68s 1 forwards;
    }
    .js-nav_active #header #header_mainnav ul li:nth-of-type(2){
        animation: navLi 0.5s ease 0.76s 1 forwards;
    }
    .js-nav_active #header #header_mainnav ul li:nth-of-type(3){
        animation: navLi 0.5s ease 0.84s 1 forwards;
    }
    .js-nav_active #header #header_mainnav ul li:nth-of-type(4){
        animation: navLi 0.5s ease 0.92s 1 forwards;
    }
    .js-nav_active #header #header_mainnav ul li:nth-of-type(5){
        animation: navLi 0.5s ease 1.00s 1 forwards;
    }
    .js-nav_active #header #header_mainnav ul li:nth-of-type(6){
        animation: navLi 0.5s ease 1.08s 1 forwards;
    }
    .js-nav_active #header #header_mainnav ul li:nth-of-type(7){
        animation: navLi 0.5s ease 1.16s 1 forwards;
    }
    .js-nav_active #header #header_mainnav ul li:nth-of-type(8){
        animation: navLi 0.5s ease 1.24s 1 forwards;
    }

}

@keyframes navLi {
    100% {
        opacity: 1;
    }
}

@keyframes navBtnAct {
    0% {transform:rotate(0deg);}
    100% {transform:rotate(90deg);}
}

@keyframes navBtnOff {
    0% {transform:rotate(0deg);}
    100% {transform:rotate(-90deg);}
}

#sp_navbtn{
    display: none;
}

@media (max-width: 767px) {
    #sp_navbtn {
        position: fixed;
        display: block;
        left: calc(100vw - 60px);
        /* right: 25px; */
        right: auto;
        bottom: 25px;
        top: auto;
        width: 30px;
        height: 30px;
        line-height: 1;
        z-index: 8889;
    }
    #sp_navbtn img{
        position: relative;
        width:30px;
        height:auto;
        z-index: 8890;
    }

    .js-nav_active #sp_navbtn img{
        animation: navBtnAct .7s ease 0s 1 forwards;
    }

    .js-nav_off #sp_navbtn img{
        animation: navBtnOff .7s ease .4s 1 forwards;
    }


    #sp_navbtn::before,
    #sp_navbtn::after{
        display: block;
        content:"";
        position: fixed;
        border-radius: 100%;
        transform-origin: center;
        transition: all 0.5s;
        transform: scale(1);

        top: auto;
        right:auto;
        left:calc( 100vw - 68px);
        bottom:17px;
        width:46px;
        height: 46px;
    }
    #sp_navbtn::after{
        z-index: 8000;
        background-color: #000000;
    }
    #sp_navbtn::before{
        z-index: 8001;
        background-color: #595959;
    }

    .js-nav_active #sp_navbtn::after{
        /*background: #000;*/
        /*background-color: #00CCA3;*/
        transform: scale(50);
    }

}
