
body {margin:0;height:100vh;background:#111;color:#fff;font-family:sans-serif;overflow:hidden;}

html,body{
    font-family: "Roboto", sans-serif;
}

a{
    transition: .3s;
}

a:hover{
    text-decoration: underline;
    opacity: 0.5;
}

.page {
    display:grid;
}

body {
    margin: 0;
    height: 100vh;
    overflow-y: scroll;
    background: #000;
}

.spacer {
    height: 20000px;
}

#mainVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#max_box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    z-index: 1;
}

video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

header{
    position: fixed;
    left: 0;
    top: -1px;
    width: 100%;
    z-index: 99;
    background-color: #000;
}

header .flex{
    display: flex;
    align-items: center;
}

header ul{
    list-style: none;
    margin: 0;
}

header ul li{
    padding: 0 1em;
}

header ul li a{
    color: #fff;
    text-decoration: none;
    font-weight: 200;
    font-size: 14px;
}

header #gnavi{
    width: 80%;
}

header .inner{
    width: 94%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1em;
}

header img{
    vertical-align: top;
}

header #logo{
    width: 15%;
    word-break: break-all;
}

header #logo img{
    vertical-align: middle;
}

header .cart{
    width: 64px;
    height: 64px;
    display: flex;
    justify-content: center;
    align-items: center;
}

header .hamb_menu{
    position: relative;
    text-align: center;
    width: 64px;
    height: 64px;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

header .hamb_menu span{
    display: block;
    width: 20px;
    height: 2px;
    background-color: #fff;
    margin-left: auto;
    margin-right: auto;
}

header .hamb_menu span:nth-child(1){
    margin-bottom: 6px;
}

header .hamb_menu span:nth-child(2){
    margin-bottom: 6px;
}

.discover-contents{
    width: 100%;
    height: 100vh;
    display: flex;
    position: fixed;
}

.discover-contents > div{
    width: 50%;
}

/* ===== Discover contents enter animation ===== */
.discover-contents {
    position: fixed;            /* レイアウト崩れ防止 */
    left: 0;
    opacity: 0;
    transition: transform 0.8s ease, opacity 0.8s ease;
    will-change: transform, opacity;
    transform: translateX(40%); 
    z-index: 10;
}

.discover-contents.inview {
    opacity: 1;
    z-index: 10;
    transform: translateX(0);
}

.discover-contents.leaving {
  transform: translateX(20%); /* 完全に右へ戻すより自然 */
  opacity: 0;
  pointer-events: none;
}

.discover-contents .herf-text{
    display: flex;
    align-items: center;
    color: #fff;
    height: 100%;
}

.herf-text h1{
    font-size: 90px;
    line-height: 1.05;
    margin: 0;
    text-shadow: 1px 1px 10px rgba(94, 94, 94, 1);
    letter-spacing: 2px;
}

.herf-text p{
    margin: 0;
}

.herf-text p.catch{
    font-size: 24px;
    margin-top: 1em;
    margin-bottom: 2em;
    letter-spacing: 10px;
}

.herf-text p.eng{
    font-weight: 200;
    line-height: 1.5;
    letter-spacing: 1.25px;
}

.text02 .herf-text{
    align-items: flex-end;
}

.text02 .herf-text > div{
    padding-bottom: 10vh;
}

#after{
    background-color: #fff;
    position: relative;
    z-index: 98;
}

/* ラストで下から出てくるパネル */
.reveal-panel{
  position: static;
  left: 0; bottom: 0;
  width: 100%; 
  transform: translateY(10%); /* 初期は画面下 */
  z-index: 11; /* 動画(#max_box= z-index:1)とテキスト(z:10)の上 */
  display: flex; align-items: center; justify-content: center;
  color: #000;
  background-color: #F6F7F9;
}

#after h2{
    color: #666;
    text-align: center;
}

.reveal-panel .inner_box{
    padding: 10vw 0;
    max-width: 1098px;
    margin: auto;
}

/* どのくらいの距離で“せり上がる”か（JSがこの高さを参照） */
.after-spacer{ height: 30vh; }

.movie_box{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.movie_box div{
    width: 32%;
}

.movie_box div img{
    width: 100%;
}

.movie_box .w100{
    width: 100%;
    margin-bottom: 1em;
}

.movie_box > div a{
    display: block;
    position: relative;
}

.movie_box > div a:before{
    content: "";
    display: block;
    width: 70px;
    height: 70px;
    background-image: url(../img/play.svg);
    position: absolute;
    left: calc(50% - 35px);
    top: calc(50% - 35px);
}

.movie_box > div a img{
    border-radius: 20px;
}

/* お好みの中身レイアウト */
.reveal-panel .inner{ width: min(1200px, 92%); margin: 0 auto; }
.reveal-panel h2{ font-size: 48px; margin: 0 0 .5em; }
.reveal-panel p{ line-height: 1.8; }

footer{
    background: linear-gradient(248.17deg, #3F3F3F 28.32%, #1E1E1E 56.12%);
    position: relative;
    z-index: 98;
    padding: 5vw 0;
}

footer #top{
    text-align: center;
}

footer ul{
    display: flex;
    list-style: none;
    justify-content: center;
    margin: 8vw 0 5vw 0;
    position: relative;
    max-width: 465px;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
}

footer ul:before,
footer ul:after{
    content: "";
    width: 1px;
    height: 20px;
    background-color: #fff;
    position: absolute;
    left: 0;
    top: 0;
}


footer ul li:nth-child(1){
    position: relative;
}

footer ul li:nth-child(1):before{
    content: "";
    width: 1px;
    height: 20px;
    background-color: #fff;
    position: absolute;
    left: auto;
    right: 0;
    top: 0;
}

footer ul:after{
    left: auto;
    right: 0;
}

footer ul li{
    width: 50%;
    text-align: center;
}

footer ul li a{
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.2em;
}

footer p.copyright{
    text-align: center;
    letter-spacing: 0.1em;
    font-size: 14px;
}

#sp_arrows{
    display: none;
}

@media screen and (max-width: 768px) {
	img{
        max-width: 100%;
    }
    header .hamb_menu{
        display: flex;
        z-index: 3;
    }
    header #gnavi{
        position: fixed;
        z-index: 2;
        left: 0;
        top: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0,0,0,0.9);
        padding-top: 9em;
        visibility: hidden;
        opacity: 0;
        transition: 0.3s;
    }
    header #gnavi.open{
        opacity: 1;
        visibility: visible;
    }
    header ul li a{
        font-size: 4.5vw;
        margin-bottom: 3em;
        display: block;
    }
    header #gnavi .flex{
        flex-direction: column;
        padding: 0;
    }
    header{
        padding: 1em 0;
    }
    header #logo{
        width: 38%;
        position: relative;
        z-index: 3;
    }
    header .hamb_menu{
        position: absolute;
        right: 0;
    }
    header .cart{
        position: absolute;
        right: 64px;
    }
    header .hamb_menu span{
        transition: 0.3s;
    }
    header .hamb_menu.open span:nth-child(2){
        opacity: 0;
    }
    header .hamb_menu.open span:nth-child(1){
        transform: rotate(45deg);
        top: 8px;
        position: relative;
    }
    header .hamb_menu.open span:nth-child(3){
        transform: rotate(-45deg);
        top: -8px;
        position: relative;
    }
    #mainVideo{
        height: 70vh;
    }
    #max_box{
        padding-top: 7em;
    }
    .discover-contents > div{
        width: 100%;
    }
    .discover-contents{
        display: block;
    }
    .text02 .herf-text > div{
        padding-bottom: 0;
    }
    .discover-contents .herf-text{
        padding: 0 1em;
        box-sizing: border-box;
        align-items: flex-end !important;
        padding-bottom: 14vh;
    }
    .herf-text h1{
        font-size: 15vw;
        text-align: center;
    }
    .herf-text p.catch{
        text-align: center;
        font-size: 4.5vw;
        letter-spacing: 5px;
    }
    .herf-text p.eng{
        padding: 0 2em;
        font-size: 3.0vw;
        letter-spacing: normal;
    }
    .herf-text p.eng br{
        display: none;
    }
    .text02 .herf-text{
        align-items: center;
    }
    #sp_arrows{
        display: block;
        position: fixed;
        bottom: 3%;
        left: calc(50% - 18px);
        z-index: 98;
        text-align: center;
    }
    #sp_arrows p{
        font-size: 12px;
        text-align: center;
        color: #8dafe9;
        letter-spacing: 0.1em;
    }
    #after h2{
        font-size: 8vw;
    }
    .reveal-panel{
        transform: translateY(5%);
    }
    .movie_box{
        justify-content: center;
    }
    .movie_box div{
        margin-bottom: 1em;
    }
    footer #top img{
        width: 20vw;
    }
    footer ul{
        padding: 0 1em;
    }
    footer ul:before, footer ul:after{
        display: none;
    }
    footer p.copyright,
    footer ul li a{
        font-size: 2.5vw;
    }
    .movie_box div{
        width: 100%;
    }
    .modaal-video-wrap{
        margin: 0;
    }
}