/* Lenis Smoother */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-smooth iframe {
    pointer-events: none;
}

/* Youtube Wrapper */
.yt-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 4/3;
    max-width: 800px;
    pointer-events: none;
}

.yt-iframe {
    background: #000;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border-radius: 30px;
}

/* Fixes and Hacks */
.es-main-container a {
    clip-path: circle(0);
}

/* Default Body */
.body {
    font-family: "Noto Sans JP", "ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro","メイリオ",Meiryo,"ＭＳ Ｐゴシック", "MS Pgothic", sans-serif, helvetica, arial, sans-serif;
}

/* BootStrap  Customizations */
.negative {
    mix-blend-mode: difference;
    background-blend-mode: difference;
}

/* .carousel-control-prev:hover, .carousel-control-next:hover {background-color:rgba(0,0,0,.5)} */
.btn-danger {
    color: #fff;
}

.btn-outline-danger {
    --bs-btn-active-color: #fff !important;
}

.dropdown-item {
    --bs-dropdown-link-active-bg: #ff0000;
}

.will-change-transform {
    will-change: transform;
}

.ruler-container {
    position: fixed;
    width: 200vw;
    height: 5px;
    background-color: white;
    border: 1px solid black;
}

.ruler-container .tick {
    position: absolute;
    bottom: 0;
    width: 1px;
    height: 5px;
    background-color: black;
}

.text-justify {
    text-align: justify;
}

.object-pos-center {
    object-position: center;
}


.LangSwitcher {
    position: fixed;
    border-radius: 6rem;
    box-shadow: inset 0 0 0 .1rem var(--bs-secondary);
    display: flex;
    height: 5rem;
    padding: .5rem;
    width: 9rem;
    right: 10rem;
    top: 1.5rem;
    z-index: 9999;
}

.LangSwitcher-item {
    text-decoration: none;
    color: var(--bs-light);
    align-items: center;
    display: flex;
    height: 100%;
    justify-content: center;
    width: 50%;
    cursor: pointer;
}

.LangSwitcher-item span {
    position: relative;
    transition: color .5s cubic-bezier(.165,.84,.44,1);
    z-index: 2;
}

.LangSwitcher-item:hover span {
    color: #FF0000;
}

.LangSwitcher-item.active {
    color: #000000;
}

.LangSwitcher-bg {
    background: var(--bs-light);
    border-radius: 100%;
    height: 4rem;
    left: .5rem;
    position: absolute;
    top: .5rem;
    transition: transform .5s cubic-bezier(.165,.84,.44,1);
    width: 4rem;
    z-index: 1;
}

.LangSwitcher-bg.active-jp {
    transform: translateZ(0);
}

.LangSwitcher-bg.active-en {
    transform: translate3d(4rem,0,0);
}

.s360-logo,
.s360-menu-logo {
    position: fixed;
    top: 2em;
    left: 0em;

    /* left: 2em; */
    height: 30px;
    background: #000;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-right: 5px;
    padding-left: 2em;

    /* mix-blend-mode: difference; */
    z-index: 99999;
}

.s360-menu-toggle {
    position: fixed;
    top: 2em;
    right: 2em;
    width: 120px;
    height: 60px;
    background-color: #0f0f0f;

    /* mix-blend-mode: difference; */
    border-radius: 8em;
    transition: width 0.5s cubic-bezier(0.075, 0.82, 0.165, 1);
    transform-origin: right;
    cursor: pointer;
    z-index: 99999;
}

.s360-menu-toggle.opened {
    width: 60px;
}

.s360-menu-copy {
    -ms-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    position: absolute;
    top: 50%;
    left: 30px;
    transform: translateY(-50%);
    color: #fff;
    transition: left 0.5s cubic-bezier(0.075, 0.82, 0.165, 1);
    z-index: 991;
}

.s360-menu-copy p {
    text-transform: uppercase;
    font-weight: 500;
    font-size: 16px;
    margin: 0;
    padding: 0;
}

.s360-menu-toggle:hover .s360-menu-copy {
    left: 20px;
}

.s360-menu-toggle.opened .s360-menu-copy {
    opacity: 0;
}

.s360-menu-toggle-icon {
    position: absolute;
    right: 0;
    width: 60px;
    height: 60px;
    border-radius: 100%;
    clip-path: circle(10% at 50% 50%);
    background-color: #3c0708;
    transition: all 0.5s cubic-bezier(0.075, 0.82, 0.165, 1);
    z-index: 999;
    overflow: hidden;
}

.s360-menu-toggle:hover .s360-menu-toggle-icon {
    clip-path: circle(35% at 50% 50%);
}

.s360-menu-toggle.opened .s360-menu-toggle-icon {
    clip-path: circle(50% at 50% 50%);
    transform: scale(1.125);
}

.s360-hamburger {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 1s cubic-bezier(0.075, 0.82, 0.165, 1);
    opacity: 0;
    z-index: 999;
}

.s360-menu-toggle:hover .s360-hamburger,
.s360-menu-toggle.opened .s360-hamburger {
    top: 50%;
    opacity: 1;
}

.s360-menu-bar {
    position: absolute;
    width: 15px;
    height: 1.5px;
    background-color: #FF0000;
    transition-property: transform;
    transition: all 250ms ease-out;
}

.s360-menu-bar[data-position="top"] {
    transform: translateY(-3px);
}

.s360-menu-bar[data-position="bottom"] {
    transform: translateY(3px);
}

.s360-menu-toggle.opened .s360-menu-bar[data-position="top"] {
    transform: translateY(0) rotate(45deg) scaleX(1.05);
}

.s360-menu-toggle.opened .s360-menu-bar[data-position="bottom"] {
    transform: translateY(0) rotate(-45deg) scaleX(1.05);
}

.s360-menu {
    z-index: 9999;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    background-color: #000;
    pointer-events: none;
    transform-style: preserve-3d;
    perspective: 1000px;
    clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0 100%);

    /* clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0 100%); TOGGLE */
}

.s360-menu-col {
    position: relative;
    height: 100%;
    padding: 10em 2em 2em 2em;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.s360-menu-link {
    -ms-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    text-wrap: nowrap;
    border-bottom: 2px solid transparent;
    color: var(--bs-light);
    position: relative;
    transform: translateY(30px);
    opacity: 0;
    z-index: 2;

    /* transform: translateY(30px); opacity: 0; TOGGLE */
}

.s360-menu-link a {
    text-decoration: none;
    color: var(--bs-light);
    font-weight: 300;
    letter-spacing: -1.5px;
}

.s360-menu-link:after {
    display: block;
    content: '';
    border-bottom: 2px solid #FF0000;
    transform: scaleX(0);
    transition: transform 250ms ease-in-out;
}

.s360-menu-link:hover:after {
    transform: scaleX(1);
    transform-origin: 0% 50%;
}

.s360-video-wrapper {
    pointer-events: none;
    max-width: calc(100vw / 2);
    min-height: calc(100vh / 2);
    aspect-ratio: 16/9;
    z-index: 2;
    background-color: gray;
    overflow: hidden;
    padding: 1em;

    /* clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%); TOGGLE */
}

.s360-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.s360-socials {
    -ms-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    width: 50%;
    display: flex;
    gap: 2em;
    z-index: 2;
    padding: 1em 0em 0em 0em;
}

.s360-socials .s360-menu-sub-col {
    flex: 1;
}

.s360-socials .s360-menu-sub-col p {
    position: relative;
    color: #fff;
    transform: translateY(30px);
    opacity: 0;

    /* transform: translateY(30px); opacity: 0; TOGGLE */
    text-transform: uppercase;
    text-wrap: nowrap;
    padding: 0;
    margin: 0;
}

.s360-menu-sub-col a {
    text-decoration: none;
    color: var(--bs-light);
}

.s360-menu-header {
    user-select: none;
    color: var(--bs-dark);
    overflow: visible;
    text-wrap: nowrap;
}

.s360-menu-header h1 span {
    font-size: calc(100vw / 2);
    position: relative;
    display: inline-block;
    transform: scale(0.75) translateY(500px) rotateY(90deg);
    transform-origin: bottom;
    line-height: 0px;
    left: -25%;
}

/* Main Menu Responsive Layout for Mobile Adjustment */
@media (max-width: 900px) {
    .s360-logo {
        height: 20px;
        top: 1.6em;

        /* left: 1em; */
    }

    .s360-menu-toggle {
        position: fixed;
        top: 1em;
        right: 1em;
        width: 76px;
        height: 38px;
        border-radius: 6.4em;
    }

    .s360-menu-toggle.opened {
        width: 38px;
    }

    .s360-menu-toggle-icon {
        right: 0;
        width: 38px;
        height: 38px;
    }

    .s360-menu-copy {
        position: absolute;
        left: 10px;
    }

    .s360-menu-copy p {
        font-size: 10px;
    }

    .s360-menu {
        flex-direction: column;
    }

    .s360-menu-col-1 {
        padding: 3em 2em 0em 2em;
        flex: 1;
        align-items: flex-start;
    }

    .s360-menu-col-2 {
        padding: 0.2em 2em 2em 2em;
    }

    .s360-video-wrapper {
        padding: 0.4em;
        max-width: calc(100vw / 1.2);
    }

    .s360-socials {
        padding: 0.5em 0em 0em 0em;
        width: 100%;
        flex-direction: row;
        gap: 1em;
    }

    .s360-menu-header h1 span {
        left: 0%;
    }

    .LangSwitcher {
        position: fixed;
        border-radius: 3rem;
        height: 3.15rem;
        padding: .5rem;
        width: 5.67rem;
        right: 4rem;
        top: 0.7rem;
    }

    .LangSwitcher-bg {
        height: 2.52rem;
        top: .3rem;
        width: 2.52rem;
    }

    .LangSwitcher-bg.active-en {
        transform: translate3d(2.2rem,0,0);
    }
}

/* Main Menu Accordion */
details summary {
    list-style: none;
    display: flex;
}

details summary::-webkit-details-marker {
    display: none;
}

details::details-content {
    overflow: hidden;
    height: 0;

    /* Enable transitioning of `content-visibility` */
    transition: height 0.3s, content-visibility 0.3s;
    transition-behavior: allow-discrete;
}

details[open]::details-content {
    height: auto;
}

:root {
    interpolate-size: allow-keywords;
}

/* Font Resize only works for <P> Elements */
.hx {
    font-weight: 900;
    font-family: sans-serif;
}

.h-1 {
    font-size: clamp(10rem, 1vw + 1rem, 11rem);

    /* 10em; */
}

.h1 {
    font-size: clamp(0.063rem, 1vw + 1rem, 0.938rem);

    /* 1.2em; */
}

.h2 {
    font-size: clamp(0.063rem, 1vw + 1rem, 0.9rem);

    /* 1.1em; */
}

.h3 {
    font-size: clamp(0.063rem, 1vw + 1rem, 0.85rem);

    /* 1em; */
}

.h4 {
    font-size: clamp(0.063rem, 1vw + 1rem, 0.8rem);

    /* .9em; */
}

.h5 {
    font-size: clamp(0.063rem, 1vw + 1rem, 0.75rem);

    /* .8em; */
}

.h6 {
    font-size: clamp(0.063rem, 1vw + 1rem, 0.7rem);

    /* .7em; */
}

.line {
    width: 100%;
    content: " ";
    height: 1px;
    background-color: #000;
    opacity: 1;
}

/* Custom Elements */
.s360-bg-red {
    background-color: #3c0708;
}

.s360-text-red {
    color: #3c0708;
}

.slanted-title {
    top: -100px;
    font-weight: 900;
    font-size: 4rem;
    font-family: Segoe UI,Helvetica,Arial,sans-serif;
    line-height: 1;
}

.text-shadow {
    text-shadow: #000 3px 3px 3px;
}

/* Bootstrap Card Tabs Workaround */
/* Bootstrap Rows Extra Space Bug Workaround */
.row {
    margin-left: 0px;
    margin-right: 0px;
}

.scroll-wrapper {
    overflow-y: hidden;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    z-index: 999999;
}

/* BootStrap Override Reduced Motion for Carousel */
.carousel-item {
    transition: -webkit-transform 0.6s ease-in-out !important;
    transition: transform 0.6s ease-in-out !important;
    transition: transform 0.6s ease-in-out,-webkit-transform 0.6s ease-in-out !important;
}

.carousel-fade .carousel-item {
    transition-property: opacity !important;
}

.carousel-fade .active.carousel-item-left,
.carousel-fade .active.carousel-item-right {
    transition: 0s 0.6s opacity !important;
}

.carousel-control-prev,
.carousel-control-next {
    transition: opacity 0.15s ease !important;
}

.carousel-indicators li {
    transition: opacity 0.6s ease !important;
}

/* Accordion */
.accordion--header {
    cursor: pointer;
    display: flex;
    align-items: center;
    user-select: none;
}

.accordion--header-number {
    padding-right: 0px;
}

.accordion--header-title {
    align-items: center;
    display: inline-flex;
    justify-content: space-between;
    flex-grow: 1;
}

.accordion--content {
    text-align: start;
}

/* Page Transitions */
.page-transition-no-scroll {
    overflow: hidden;
}

.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 999999999;
    pointer-events: none;
    overflow: hidden;
}

.page-transition-row {
    flex: 1;
    display: flex;
}

.page-transition-row.row-1 .page-transition-block {
    transform-origin: top;
}

.page-transition-row.row-2 .page-transition-block {
    transform-origin: bottom;
}

.page-transition-block {
    flex: 1;
    background-color: #3c0708;
    transform: scaleY(1);
    will-change: transform;
    margin-left: -2px;

    /* Adjust the margin between blocks */
    margin-right: -2px;

    /* Adjust the margin between blocks */
}


/* Extra small devices (phones, 575px and down) */
@media only screen and (max-width: 575px) {
    .vtour-sample-iframe {
        display: none;
    }

    .vtour-sample-img {
        display: initial;
    }

    .about-header-title {
        left: -60px;
    }

    .s360-pannellum {
        width: 300vw;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }
}

/* Small devices (phones, 576px and up) */
@media only screen and (min-width: 576px) {
    .vtour-sample-iframe {
        display: none;
    }

    .vtour-sample-img {
        display: initial;
    }

    .about-header-title {
        left: -60px;
    }

    .s360-pannellum {
        width: 300vw;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
    .vtour-sample-iframe {
        display: none;
    }

    .vtour-sample-img {
        display: initial;
    }

    .about-header-title {
        left: -50px;
    }

    .s360-pannellum {
        width: 200vw;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }
}

/* Large devices (large landscape laptops and desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    .vtour-sample-iframe {
        display: none;
    }

    .vtour-sample-img {
        display: initial;
    }

    .about-header-title {
        left: 120px;
    }

    .s360-pannellum {
        width: 100%;
    }
}

/* Extra large devices (extra large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
    .vtour-sample-iframe {
        display: initial;
    }

    .vtour-sample-img {
        display: none;
    }

    .about-header-title {
        left: 300px;
    }

    .s360-pannellum {
        width: 100%;
    }
}

