/* #########################################################

リセットCSS

######################################################### */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {background-color: #676767;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
    font-family: Arial, YuGothic, "Yu Gothic", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "メイリオ", Meiryo, "ＭＳ ゴシック", sans-serif;
    text-rendering: optimizeSpeed;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

button {
    background: none;
    border: none;
    cursor: pointer;
}

ul,
ol {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
}

textarea {
    resize: vertical;
}

@media (prefers-reduced-motion: reduce) {

    html:focus-within {
        scroll-behavior: auto;
    }

    header {
        transform: none !important;
        transition: opacity 0.3s ease !important;
    }

    div.smoke {
        transition: opacity 0.3s ease !important;
    }
    .kv-opening-logo.is-start {
        animation: reducedLogoOpening 1.6s ease forwards !important;
    }
}


@keyframes reducedLogoOpening {

    0% {
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    75% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}


img{
    /* SP長押し */
    -webkit-touch-callout:none;
    -webkit-user-select:none;
    -moz-touch-callout:none;
    -moz-user-select:none;
    user-select:none;
    pointer-events: none;
}
/* #########################################################

ローディング

#########################################################*/

.kv-opening-logo {
    animation: none !important;
}


/* ーーーーーーローディング画面 (最前面固定)ーーーーーーー */

html body #loading { 
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background-color: #000000;
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

html body #loading.is-loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
#loading .loading-icon {
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#loading .loading-icon img {
    width: 100%;
    height: auto;
    display: block;
    animation: loadingSpinAnimation 2.5s linear infinite;
}

@keyframes loadingSpinAnimation {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* -768px---------------------------------------- */
@media (max-width: 768px) {
    #loading .loading-icon {
        width: 13%;
        height: auto;
    }    

}


/* #########################################################

KV アニメ

######################################################### */


body.kv-animating {
    /* overflow: hidden; */
    touch-action: none;
    overscroll-behavior: none;
}

.kv-opening-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.6s ease;
    /* Safari */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}


.kv-opening-overlay.is-hidden {
    opacity: 0;
    /* pointer-events: none; */
}

.kv-opening-logo {
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    filter: blur(7px);

    transform: translate3d(0, 0, 0) scale(0.96);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: opacity, transform, filter;
}
.kv-opening-logo img {
    width: 100%;
    height: auto;
}

.kv-opening-logo.is-start {
    animation: logoOpening 1.8s cubic-bezier(0.25, 1, 0.5, 1) forwards !important;
}

/* ロゴアニメ */
@keyframes logoOpening {
    0% {
        opacity: 0;
        filter: blur(7px);
        transform: translate3d(0, 0, 0) scale(0.96);
    }
    44% {
        opacity: 1;
        filter: blur(0);
        transform: translate3d(0, 0, 0) scale(1);
    }
    55.5% {
        opacity: 1;
        filter: blur(0);
        transform: translate3d(0, 0, 0) scale(1);
    }
    100% {
        opacity: 0;
        filter: blur(0px);
        transform: translate3d(0, 0, 0) scale(1.1);
    }
}

header,
div.smoke {
    opacity: 0;
    transition:opacity 1s ease,transform 1s cubic-bezier(0.22, 1, 0.36, 1);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

header {
    transform: translate3d(0, -20px, 0);
}



body.kv-animated div.smoke {
    opacity: 1;
}


body.kv-animated header,
body.kv-animated div.smoke {
    opacity: 1;
    transform: translateY(0);
}

body.logo-slide-in h2.mainlogo {
    opacity: 1;
    transform: translate(-50%, 0);
} 



/* #########################################################

main

######################################################### */

body {
    /* background: url("../img/bg.webp") repeat top center; */
    background: url("../img/bg.png") repeat top center;
    background:image-set(
        url("../img/bg.webp") type("image/webp")) repeat top center;
    position: relative;
    width: 100%;
}



/* #########################################################


header

######################################################### */
header {
    position: relative;
    width: 100%;
    z-index: 100;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    line-height: 1;
}

.logo-img {
    height: 2.5rem;
    width: auto;
    display: block;
}


/* -PCnav---------------------------------------- */
.gnav ul {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-img {
    display: block;
    transition: opacity 0.3s ease;
}

.gnav a:hover .nav-img {
    opacity: 0.7;
}


/* -spnav---------------------------------------- */
.hamburger-btn {
    display: none;
    width: 44px;
    height: 44px;
    background-color: #000000;
    border: 2px solid #0a5296;
    border-radius: 4px;
    padding: 10px 8px;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #0a5296;
    transition: transform 0.3s ease, opacity 0.3s ease;
}


/* -768px---------------------------------------- */

@media (max-width: 768px) {
    .header-inner {
        padding: 0.8rem 1rem;
    }

    .logo-img {
        height: 1.8rem;
    }

    .hamburger-btn {
        display: flex;
        position: relative;
        width: 44px;
        height: 44px;
        background-color: #000000;
        border: 2px solid #0a5296;
        border-radius: 4px;
        padding: 10px 8px;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        z-index: 1002; 
    }

    .hamburger-line {
        display: block;
        width: 100%;
        height: 2px;
        background-color: #0a5296;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .hamburger-btn.is-active {
        justify-content: center; 
    }

    .hamburger-btn.is-active .hamburger-line:nth-child(1) {
        transform: translateY(1px) rotate(45deg);
        transform-origin: center;
    }

    .hamburger-btn.is-active .hamburger-line:nth-child(2) {
        transform: translateY(-1px) rotate(-45deg);
        transform-origin: center;
    }

    .gnav {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: rgba(0, 0, 0, 0.95);
        padding-top: 6rem;
        z-index: 1000;

        transform: translateX(100%);
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.3s ease, visibility 0.3s ease;
    }

    .gnav.is-active {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }

    .gnav ul {
        flex-direction: column;
        gap: 6rem;
    }

    .nav-img {
        height: 1.5rem;
    }
}



/* -PCnav min-width: 769px---------------------------------------- */
@media (min-width: 769px) {
    .gnav {
        /* width: 47%; */
        width: 35%;
    }

    .gnav ul {
        display: flex;
        align-items: center;
        gap: 2.5rem;
    }
}

@media (min-width: 961px) {
    .gnav {
        /* min-width: 36.5%;
        width: 36.5%; */
        min-width: 25.5%;
        width: 25.5%;
        text-align: right;
    }

}


/* - SPnav max-width: 768px---------------------------------------- */
@media (max-width: 768px) {

    .gnav {
    
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: rgba(0, 0, 0, 0.95);
        padding-top: 6rem;
        z-index: 1000;
        display: none;
        transform: translateX(100%);
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.3s ease, visibility 0.3s ease;
    }

    .gnav.is-active {
        display: block;
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }
}


/* #########################################################

KV

#########################################################*/

div.kv {
    /* background: url("../img/main_bg.webp") no-repeat bottom center / cover; */
    background: url("../img/main_bg.png") no-repeat bottom center / cover;
    background:image-set(
        url("../img/main_bg.webp") type("image/webp")) no-repeat bottom center / cover;
    width: 100%;
    position: relative;
}

div.kv-inner {
    width: 100%;
    max-width: 1330px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

div.Kasliimg {
    max-width: 1100px;
    margin: -2% auto 0;

    opacity: 0;
    will-change: opacity, transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}
.kv-animated div.Kasliimg {
    animation: kasliFadeani 2.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
@keyframes kasliFadeani {
    0% {
        opacity: 0;
        transform: translate3d(0, 0, 0) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

div.Kasliimg img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}


h2.mainlogo {
    opacity: 0;
    position: absolute;
    bottom: 110px;
    left: 50%;
    transform: translate3d(-50%, 40px, 0); 
    width: 90%;
    max-width: 700px;
    z-index: 2;
    margin: 0;
    will-change: opacity, transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
body.logo-slide-in h2.mainlogo {
    animation: logoFadeani 1.0s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes logoFadeani {
    0% {
        opacity: 0;
        transform: translate3d(-50%, 0, 0) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translate3d(-50%, 0, 0) scale(1);3d(-50%, 0, 0) scale(1);
    }
}

div.kv div.smoke {
    position: absolute;
    bottom: -10%;
    left: 0;
    width: 100%;
    /* min-width: 1200px; */
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

div.kv div.smoke img {
    width: 100%;
    height: auto;
    vertical-align: bottom;
}
div.container{
    z-index: 110;
}

/* -768px---------------------------------------- */

@media (max-width: 768px) {
    div.Kasliimg {
        max-width: 120vh;
    }

    h2.mainlogo {
        bottom: 4vh;
        max-width: 73%;
    }
}
/* -640px---------------------------------------- */
@media (max-width: 640px) {
    div.kv {
        background-color: #000;
    }
    div.kv div.smoke {
        bottom: -14%;
        width: 150%;
        margin: 0 -50%;
        z-index: 1;
        overflow: hidden;
    }
    div.kv-inner {
        width: 100%;
        margin: 0 auto;
        padding: 0px;
        overflow-x: hidden;
        margin-top: -39px;
    }
    div.kv-inner img{
        max-width: none;
        margin-left: 50%;
        transform: translateX(-50%);
    }
    img.Kasliimg{ 
        width: 130%;
    }

    h2.mainlogo {
        bottom: 4vh;
        max-width: 85%;
        left: 50%;
        transform: translateX(-50%);
    }
    img.Kaslilogo{  width: 100%;}
}
/* -376px---------------------------------------- */
@media (max-width: 376px) {
    h2.mainlogo {
        bottom: 9vh;
    }
}

/* -画面の高さ低PC用---------------------------------------- */
@media (min-width: 769px) and (max-height: 900px) {
    div.Kasliimg {
        max-width: 120vh; 
        margin: -30px auto 0;
    }
    h2.mainlogo {
        bottom: 13vh;

    }
}

@media (min-width: 769px) and (max-height: 750px) {
    div.Kasliimg {
        max-width: 120vh;
    }

    h2.mainlogo {
        bottom: 12vh;
        max-width: 46%;
        min-width: 550px;
    }
}
/* -画面の高さ高PC用---------------------------------------- */
@media (min-width: 769px) and (max-height: 600px) {
    div.Kasliimg {
        max-width: 120vh; 
        margin: -30px auto 0;
    }
    h2.mainlogo {
        min-width: 48%;
        bottom: 13vh;
    }
}




/*#########################################################

intro

#########################################################*/


/* -intro アニメ---------------------------------------- */

section.intro-section p.intro-txt {
    width: 600px;
    margin: 0 auto;
    opacity: 0;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    pointer-events: none;
}
section.intro-section p.intro-txt.is-inview {
    animation: introupani 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes introupani {
    0% {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}
@media (max-width: 768px) {
    section.intro-section p.intro-txt {
        width: 85%;
        transition: opacity 2.4s cubic-bezier(0.22, 1, 0.36, 1), 
                    transform 2.4s cubic-bezier(0.22, 1, 0.36, 1);
    }
}


/* -intro 表示---------------------------------------- */

section.intro-section{
    /* background: url("../img/txtmain_bg.webp") no-repeat top center; */

    background: url("../img/txtmain_bg.png") no-repeat top center;
    background:image-set(
        url("../img/txtmain_bg.webp") type("image/webp")) no-repeat top center;
    background-size: cover;
    position: relative;
}

section.intro-section div.container{
    padding:  10% 0 15%;
    /* padding:  13% 0 15%; */
    z-index: 100;
    position: inherit;
}

section.intro-section p.intro-txt{
    width: 600px;
    margin: 0 auto;
}

section.intro-section div.smoke {
    position: absolute;
    bottom: -15%;
    left: 0;
    width: 100%;
    z-index: 1;
    pointer-events: none;
}

section.intro-section div.smoke img {
    width: 100%;
    height: auto;
    vertical-align: bottom;
}



/* -768px---------------------------------------- */
@media (max-width: 768px) {
    section.intro-section{
        background-size:cover;
    }
    section.intro-section p.intro-txt{
        width: 85%;
        margin: 0 auto;
    }

    section.intro-section div.smoke {
            bottom: -12%;
            width: 150%;
            margin: 0 -50%;
            z-index: 1;
            overflow-x: hidden;
    }

    section.intro-section div.container {
        padding: 17% 0 28%;
    }
    section.intro-section{
        background-size: cover;
        position: relative;
        background-color: #000;
    }
    
}


/* -640px---------------------------------------- */
@media (max-width: 640px) {
    section.intro-section{
        /* background: url("../img/txtmain_bg_sp.webp") no-repeat top center; */
        background: url("../img/txtmain_bg_sp.png")  no-repeat top center;
        background:image-set(
            url("../img/txtmain_bg_sp.webp") type("image/webp")) no-repeat top center;

        background-size: cover;
        position: relative;
        background-color: #000;
    }
    section.intro-section div.container {
        padding: 40% 0 40%;
    }
}

/*#########################################################

アイコン回転

#########################################################*/

.iconmark {
    padding: 80px 0 20%;
    position: relative;
    width: 60px;
    height: 60px;
    margin: -60px auto 10%;
    z-index: 1;
    transform: translate3d(0, 0, 0) rotate(0deg);
    /* transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1); */
    will-change: transform, opacity;
    /* backface-visibility: hidden; */
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
}
.iconmark img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    /* transition: opacity 1.2s ease; */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
.iconmark .img-gradient {
    opacity: 0;
    /* will-change: opacity; */
}

/* --アニメ----------------------------------------------- */

.iconmark.is-active {
    transform: translate3d(0, 0, 0) rotate(360deg); 
}

.iconmark.is-active .img-gradient {
    opacity: 1;
}


/* -768px---------------------------------------- */
@media (max-width: 768px) {
    .iconmark {
        padding: 120px 0 30%;
        position: relative;
        width: 60px;
        height: 60px;
        margin: -100px auto 90px;
        z-index: 1;
        transform: translate3d(0, 0, 0) rotate(0deg);
        transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
        will-change: transform;
    }
}

/*#########################################################

ストーリー

#########################################################*/


section.story-section {
    position: relative;
    /* z-index: 2; */
    width: 100%;
    padding-top: 20px;
}

section.story-section .topic-ttl {
    width: 500px;
    max-width: 90%;
    margin: 0 auto 100px;
    padding-top: 10px;
    box-sizing: border-box;
}

.story-scroll-container {
    position: relative;
    width: 100%;
}

.story-info {
    position: -webkit-sticky;
    position: sticky;
    top: 0;

    width: 100%;
    box-sizing: border-box;
    margin: 0 !important;
}

.story-info.story01 {

    z-index: 10;
    height: 120vh;
    /* height: 150vh; */
    /* background:url("../img/story01_bg.webp")repeat top center; */
    background: url("../img/story01_bg.png") repeat top center; 
    background:image-set(
        url("../img/story01_bg.webp") type("image/webp")) repeat top center; 
}
.story-info.story02 {
    z-index: 20;
    height: 120vh;
    background: none;
}


.story02-fixed-bg {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100vh;
    height: 100dvh;

    /* background: url("../img/story02_bg.webp") repeat top center; */
    background: url("../img/story02_bg.png") repeat top center;
    background:image-set(
        url("../img/story02_bg.webp") type("image/webp")) repeat top center;
    display: block;
    -webkit-clip-path:inset(100% 0 0 0);
    clip-path: inset(100% 0 0 0);

    -webkit-clip-path: inset(100% 0 0 0);

    clip-path: inset(100% 0 0 0);

    z-index: 15;
    pointer-events: none;
}

.story-info.story03 {
    z-index: 30;
    height: 100vh;
    /* background: url("../img/story03_bg.webp") top center; */
    background: url("../img/story03_bg.png") repeat top center;
    background:image-set(
        url("../img/story03_bg.webp") type("image/webp")) repeat top center;
}

.story-inner,
.story-inner-comingsoon {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    width: 80%;
    max-width: 1200px;
    height: 100vh;
    height: 100svh;
    height: 100dvh;
    max-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;

    margin: 0 auto;
    box-sizing: border-box;
}








.story-inner {
    justify-content: center;
}

.story-inner,
.story-inner-comingsoon {
    width: 80%; 
    max-width: 1200px; 
    height: 100vh;
    height: 100svh;
    height: 100dvh;
    max-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
}


.story-box {
    width: 37%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}


.story-ttl {
    width: 100%;
    margin-bottom: 25px;
}

.story-ttl img {
    width: 100%;
    height: auto;
    display: block;
}


.story-btn {
    display: inline-block;
    width: 100%;
    cursor: pointer;
}

.story-btn img {
    width: 100%;
    height: auto;
    display: block;
}

.story-image {
    width: 55%;
    margin-left: 5%;
    margin-bottom: 4%;
}

.story-image img {
    max-height: 70vh;
    width: auto;
    display: block;
}


.story-inner-comingsoon {
    justify-content: normal;
}

.story-ep-comingsoon {
    width: 22%;
    margin-left: 1%;
    margin-bottom: 100px;
}
    
h3.story-comingsoon-ttl {
    width: 42%;
    margin-top: 86px;
    margin-left: 7.5%;
}

/* スクロール */
.scroll {
    color: #37adf7;
    position: absolute;
    right: 0%;
    top: 50%;
    writing-mode: vertical-rl;
}
.scroll {
    color: #37adf7;
    position: absolute;
    right: -7%;
    top: 50%;
    writing-mode: vertical-rl;
}

.scroll::before {
    animation: scroll 3s infinite;
    background-color: #37adf7;
    bottom: -94px;
    content: "";
    height: 80px;
    left: 0;
    margin: auto;
    position: absolute;
    right: 0;
    width: 1px;
}
@keyframes scroll {
0% {
    transform: scale(1, 0);
    transform-origin: 0 0;
}
50% {
    transform: scale(1, 1);
    transform-origin: 0 0;
}
51% {
    transform: scale(1, 1);
    transform-origin: 0 100%;
}
100% {
    transform: scale(1, 0);
    transform-origin: 0 100%;
}
}

/* -1032px---------------------------------------- */
@media (max-width: 1032px) {
    .story-inner,
    .story-inner-comingsoon {
        max-height: 100vh;
        max-height: 100dvh;
        max-height: 100svh;
    }
}

/* -900px---------------------------------------- */
@media (max-width: 900px) {
    section.story-section .topic-ttl {
        margin:0px auto 100px;
        padding-top: 60px;
        box-sizing: border-box;
    }
    .story-inner,
    .story-inner-comingsoon {
        width: 90%;
    } 

    .scroll {
        right: -4%;

    }
    
}
/* -768px---------------------------------------- */
@media (max-width: 768px) {

    section.products-section {
        position: relative;
        z-index: 40;
        background: url("../img/bg.png") repeat top center;
        padding-bottom: 1px;
        box-sizing: border-box;
    }
    
    /* .story-info.story01 {
        clip-path: inset(0 0 0 0);
    } */
    .story-info:nth-of-type(1),
    .story-info:nth-of-type(2) {
        height: 150vh;
    }

    .story-info:nth-of-type(3) {
        height: 100svh !important;
        max-height: none;
    }


    
    .story-inner {
        width: 90%;
        max-width: 480px;
        display: flex; 
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        margin: 0 auto;
        padding: max(20px, env(safe-area-inset-top)) 0 max(30px, env(safe-area-inset-bottom));
        box-sizing: border-box;
    }



    .story-box {
        display: contents;
    }

    .story-ttl {
        order: 1;
        width: 80%;
        max-width: 500px;
        margin: 0 auto;
        flex-shrink: 0;
        padding-top: 14%;
        width: 100%;
        height: auto;
        display: block;
    }

    .story-image {
        order: 2;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        display: flex;
        justify-content: center;

        align-items: center;
        /* flex: 1 1 auto;  */
        flex: 1 1 auto;
        min-height: 0;
        padding: 10px 0;
    }

    .story-image img {
        max-height: 52dvh;
        width: auto;
        max-width: 100%;
        object-fit: contain;
        display: block;
    }

    .story-btn {
        order: 3;
        width: 75%;
        max-width: 400px;
        margin: 0 auto;
        display: block;
        flex-shrink: 0;
    }

    .story-btn img {
        width: 100%;
        height: auto;
        display: block;
    }

    .story-inner-comingsoon {
        width: 90%;
        max-width: 480px;
        /* min-height: 100dvh;
        min-height: 100svh;
        height: auto; */
        min-height: 0;
        height: 100svh;

        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 0 auto;

        padding: max(20px, env(safe-area-inset-top)) 0 max(28px, env(safe-area-inset-bottom));
        box-sizing: border-box;
    }

    
    
    .story-ep-comingsoon {
        margin: 0 auto 10% 5%;
        width: 35%;
        max-width: 150px;
        flex-shrink: 0;
    }

    .story-ep-comingsoon img {
        width: 100%;
        height: auto;
        display: block;
    }

    h3.story-comingsoon-ttl {
        width: 80%;
        max-width: 350px;
        margin: 0 auto;
        flex-shrink: 0;
    }

    h3.story-comingsoon-ttl img {
        width: 100%;
        height: auto;
        display: block;
    }
}

/* -640px---------------------------------------- */
@media (max-width: 640px) {
    .story-inner {
        width: 100%;
    }

    .story-ttl {
        width: 90%;
        max-width: 100%;
    }

    .story-image {
        width: 100%;
        max-width: 100%;
        margin-top: 0;
        margin-bottom: 0;
    }

    .story-image img {
        max-height: 60vh;
        width: 100%;
        object-fit: contain;
    }

    .story-btn {
        width: 85%;
        max-width: 320px;
    }
    .scroll {
        top: 44%;
        right: 1.5%;

    }
    
}






/* #########################################################

POPUP

######################################################### */

body.popup-active main {
    visibility: hidden;
}

body.popup-active {
    overflow: hidden;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    /* background-color: rgba(0, 0, 0, 0.85); */
    background-color: #222;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: max(32px, env(safe-area-inset-top, 32px)) 20px max(24px, env(safe-area-inset-bottom, 24px));
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s ease;
    overflow-x: hidden;
}

.popup-overlay.popup-open {
    opacity: 1;
    visibility: visible;
}

.popup-wrapper {
    position: relative;
    width: 100%;
    max-width: 680px;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #222222;
    overflow: visible;
}

.popup-frame-top,
.popup-frame-bottom {
    width: 100%;
    line-height: 0;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.popup-frame-top img,
.popup-frame-bottom img {
    width: 100%;
    height: auto;
    display: block;
}

.popup-content {
    position: relative;
    width: 100%;
    flex: 1 1 auto;
    background: url("../img/story_popup_inner.png") repeat-y top center;
    background-size: contain;
    box-sizing: border-box;
    padding: 25px 20px 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.popup-close-btn {
    position: absolute;
    top: -18px;
    right: -18px;
    background: #12151e;
    border: 2px solid #00a0e9;
    border-radius: 50%;
    color: #00a0e9;
    font-size: 1.6rem;
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    line-height: 1;
    z-index: 1001;
}

div.popup-header {
    box-sizing: border-box;
    padding-top: 5px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

div.popup-topic {
    width: 48%;
    margin-bottom: 30px;
}

div.popup-img {
    position: absolute;
    top: -30px;
    right: 0;
    width: 58%;
    z-index: 10;
    pointer-events: none;
}

div.popup-img img {
    width: 100%;
    height: auto;
    display: block;
}

.popup-txtarea {
    position: relative;
}
div.ep2-02 { margin-top: 40px; }
div.ep2-03 { margin-top: 70px; }
div.popup-ep2-subimg {
    position: absolute;
    top: -20px;
    width: 55%;
    right: -40px;
    z-index: -1;
}
p span.popup-subttl {
    display: block;
    font-size: larger;
}
.popup-txtarea p {
    color: #fff;
    position: relative;
    z-index: 100;
    text-shadow: 0px 0px 5px rgba(0, 0, 0, 1);
}

.popup-txtarea {
    font-size: 0.95rem;
    line-height: 2.3;
    color: #cbd5e1;
}

.popup-txtarea h3 {
    color: #fff;
    border: 1px solid #05adfb;
    box-sizing: border-box;
    padding: 0 5px;
    margin-bottom: 20px;
    width: 80px;
    text-align: center;
}


@media (min-width: 768px) {
    .popup-content {
        padding: 35px 35px 30px;
    }
}

@media (max-width: 640px) {
    div.popup-header {
        display: block;
    }
    div.popup-topic {
        width: 100%;
        margin-bottom: 0px;
    }
    div.popup-img {
        position: relative;
        top: 0;
        right: 0;
        width: 100%;
        margin-top: 10px;
    }
    div.popup-ep2-subimg {
        width: 65%;
    }
    div.ep2-02 {
        margin-top: 20px;
    }
}


/* #########################################################

product

######################################################### */

section.products-section{
    margin: 0 auto;
    padding-top: 20px;
}

section.products-section .container {
    /* max-width: 1500px; */
    margin: 0 auto;
}


section.products-section h2.topic-ttl {
    width: 400px;
    max-width: 80%;
    margin: 15% auto 100px;
}

.product-title p {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

.product-list ul {
    width: 1000px;
    max-width: 90%;
    margin: 0 auto;
    display: flex; 
    /* display:grid; */
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}


/* アイテム数が増えたら消す */
.product-list li {
    width: calc((85% - 1.5rem * 2) / 2);
}
/* アイテム数3こ以上増えたら以下にする */
/* .product-list li {
    width: calc((100% - 1.5rem * 2) / 3);
} */


/* -640px以下：2列表示---------------------------------------- */
/* アイテム数が増えたら消す */
@media (max-width: 640px) {
    section.products-section h2.topic-ttl {
        margin: 27% auto 19%;
    }

    .product-list ul {
        gap: 1rem;
    }
    .product-list li {
        width: calc((100% - 1rem) / 2);
    }

}

.product-list li a {
    display: block;
    width: 100%;
}

.product-list li img {
    width: 100%;
}
div.products-comingsoon{
    text-align: center;
    margin: 0 auto;
    width: 430px;

}
div.products-comingsoon img{
    width: 100%;
}

div.product-btn {
    width: 350px;
    text-align: center;
    display: block;
    margin:35px auto 100px;
}


div.product-btn a{
    display:block;
    text-align: center;
    margin: 0px auto 0;

}

@media (max-width: 768px) {
    div.products-comingsoon{
        width: 80%;    
    }
}


/* -1200px---------------------------------------- */

@media (max-width: 1200px) {

    .product-list ul {
        width: 90%;
    }
}

/* -768px---------------------------------------- */
@media (max-width: 768px) {

    section.products-section .container {

        max-width:inherit;
        width: 100%;
        margin: 0 auto;
    }
    .product-list ul {
        width: 90%;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    ection.products-section h2.topic-ttl {
        margin: 20% auto 40px; 
    }
}

/* -640px---------------------------------------- */
@media (max-width: 640px) {

    section.products-section .container {
        max-width:inherit;
        width: 100%;
        margin: 0 auto;
    }
    .product-list ul {
        width: 90%;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }


    div.product-btn {
        width: 65%;
        text-align: center;
        display: block;
        margin:  40px auto 100px;
    }
}



/* #########################################################

フッター

######################################################### */

footer {
    background: url("../img/footer_bg.png") repeat bottom center;
    padding-bottom: 30px;
    position: relative;
}

div#footer-box {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 40px 0 ;
}

div.logo-sub {
    width: 300px;
}
div.logo-x {
    width: 80px;
}
div.logo-sub img,div.logo-x img {
    width: 100%;
}

p.footer_copy {
    text-align: center;
}

@media screen and (max-width: 640px) {
    div#footer-box {
        display: block;
    }

    div.logo-sub {
        margin: 0 auto 20px;
    }
    div#footer-box {
        display: flex;
        flex-direction: column-reverse;
        align-items: center; 
        gap: 40px; 
    }

    div.logo-sub {
        margin: 0 auto; 
    }

    div.logo-x {
        margin: 0 auto;
    }
}


/* #########################################################

TOPへ戻る

######################################################### */
p#page-top {
    position: absolute;
    top: -40px;
    right: 40px;
    width: 80px;
    box-sizing: border-box;
    z-index: 100;
}

p#page-top a {
    display: block;
}

p#page-top a img {
    width: 100%;
    height: auto;
    display: block;
}

p#page-top a:hover {
    opacity: 0.7;
}


/* -768px---------------------------------------- */
@media (max-width: 768px) {
    p#page-top {
        width: 70px;
        right: 20px;
        top: -40px; 
    }
}
