:root {
    --color-bg: #212426;
    --color-text: #fff;
    --color-red: #AF1918;
    --color-yellow: #EFC61C;
    --font-menu: 'M PLUS 2', sans-serif;
    --font-akshar: 'Akshar', sans-serif;

    /* Fluid Typography (1440px to 375px) */
    --fz-80: clamp(3rem, 1.24rem + 4.69vw, 8rem);
    --fz-70: clamp(3rem, 1.59rem + 3.76vw, 7rem);
    --fz-50: clamp(3rem, 2.3rem + 1.88vw, 5rem);
    --fz-46: clamp(2.4rem, 1.63rem + 2.07vw, 4.6rem);
    --fz-40: clamp(2rem, 1.3rem + 1.88vw, 4rem);
    --fz-39: clamp(2.2rem, 1.6rem + 1.6vw, 3.9rem);
    --fz-38: clamp(2.6rem, 2.18rem + 1.13vw, 3.8rem);
    --fz-36: clamp(2rem, 1.44rem + 1.5vw, 3.6rem);
    --fz-32: clamp(1.8rem, 1.31rem + 1.31vw, 3.2rem);
    --fz-28: clamp(1.6rem, 1.18rem + 1.13vw, 2.8rem);
    --fz-24: clamp(1.6rem, 1.32rem + 0.75vw, 2.4rem);
    --fz-22: clamp(1.6rem, 1.39rem + 0.56vw, 2.2rem);
    --fz-20: clamp(1.6rem, 1.46rem + 0.38vw, 2rem);
    --fz-18: clamp(1.6rem, 1.53rem + 0.19vw, 1.8rem);
}

/* Reset box-model
   ========================================================================== */
* {
    box-sizing: border-box;
}

::before,
::after {
    box-sizing: inherit;
}

/* Document
   ========================================================================== */
html {
    font-size: 62.5%;
    line-height: 1.15;
    /* 1 */
    -webkit-text-size-adjust: 100%;
    /* 2 */
    -webkit-tap-highlight-color: transparent;
    /* 3*/
    scroll-behavior: smooth;
    scroll-padding-top: 8rem;
}

/* Vertical rhythm
   ========================================================================== */
p,
table,
blockquote,
address,
pre,
iframe,
form,
figure,
dl {
    margin: 0;
}

/* Headings
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: inherit;
    line-height: inherit;
    font-weight: inherit;
    margin: 0;
}

/* Lists (enumeration)
   ========================================================================== */
ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Lists (definition)
   ========================================================================== */
dt {
    font-weight: bold;
}

dd {
    margin-left: 0;
}

/* Grouping content
   ========================================================================== */
hr {
    box-sizing: content-box;
    /* 1 */
    height: 0;
    /* 1 */
    overflow: visible;
    /* 2 */
    border: 0;
    border-top: 1px solid;
    margin: 0;
    clear: both;
    color: inherit;
}

pre {
    font-family: monospace, monospace;
    /* 1 */
    font-size: inherit;
    /* 2 */
}

address {
    font-style: inherit;
}

/* Text-level semantics
   ========================================================================== */
a {
    background-color: transparent;
    text-decoration: none;
    color: var(--accent-blue);
    transition: all .2s ease;
}

a[href^="tel:"] {
    pointer-events: none;
    text-decoration: none;
    color: #000;

    @media (max-width: 480px) {
        pointer-events: all;
        color: var(--accent-blue);
        text-decoration: underline;
    }
}

abbr[title] {
    border-bottom: none;
    /* 1 */
    text-decoration: underline;
    /* 2 */
    text-decoration: underline dotted;
}

b,
strong {
    font-weight: bolder;
}

code,
kbd,
samp {
    font-family: monospace, monospace;
    font-size: inherit;
}

small {
    font-size: 80%;
}

sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

br {
    &.sp {
        display: none;

        @media (max-width: 768px) {
            display: block;
        }
    }

    &.pc {
        display: block;

        @media (max-width: 767px) {
            display: none;
        }
    }
}

/* Embedded content
   ========================================================================== */
img {
    border-style: none;
    vertical-align: bottom;
    max-width: 100%;
}

embed,
object,
iframe {
    border: 0;
    vertical-align: bottom;
}

/* Interactive
   ========================================================================== */
details {
    display: block;
}

summary {
    display: list-item;
}

/* Table
   ========================================================================== */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

caption {
    text-align: left;
}

td,
th {
    vertical-align: top;
    padding: 0;
}

th {
    text-align: left;
    font-weight: bold;
}

body {
    margin: 0;
    padding: 0;
    padding-top: 70px;
    text-align: center;
    /* 固定ヘッダーの高さ分の余白 */
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: 'M PLUS 2', sans-serif;
    font-size: 1.6rem;
    overflow-x: hidden;

    &.no-scroll {
        overflow: hidden;
    }
}

.inner {
    margin: 0 auto;
    max-width: 1440px;
    width: 90%;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 100;
    box-sizing: border-box;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);

    h1 {
        margin: 0;
        height: 100%;
        display: flex;
        align-items: center;

        img {
            height: 40px;
            width: auto;
        }
    }
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

body.is-loaded .loading-screen {
    opacity: 0;
    visibility: hidden;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--color-yellow);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loading-logo {
    height: 30px;
    width: auto;
    opacity: 0.8;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(0.95);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

@keyframes typing-char {
    to {
        opacity: 1;
    }
}

/* Hamburger */
.hamburger {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 101;
    padding: 0;

    .hamburger-line {
        display: block;
        width: 30px;
        height: 2px;
        background-color: #593C1F;
        /* Dark brown from image */
        position: absolute;
        left: 5px;
        transition: all 0.3s;

        &:nth-child(1) {
            top: 10px;
        }

        &:nth-child(2) {
            top: 19px;
        }

        &:nth-child(3) {
            top: 28px;
        }
    }

    &.is-active {
        .hamburger-line:nth-child(1) {
            top: 19px;
            left: 0;
            width: 40px;
            transform: rotate(35deg);
        }

        .hamburger-line:nth-child(2) {
            opacity: 0;
        }

        .hamburger-line:nth-child(3) {
            top: 19px;
            left: 0;
            width: 40px;
            transform: rotate(-35deg);
        }
    }
}

/* Global Menu */
.global-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    /* Hidden by default */
    width: 35%;
    /* PC width */
    min-width: 300px;
    max-width: 450px;
    height: calc(100vh - 70px);
    background-color: var(--color-bg);
    transition: right 0.4s ease;
    z-index: 99;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 40px;
    box-sizing: border-box;

    &.is-active {
        right: 0;
    }

    ul {
        list-style: none;
        padding: 0;
        margin: 0;
        width: 80%;
    }

    li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);

        a {
            display: flex;
            align-items: center;
            padding: 20px 0;
            text-decoration: none;
            color: var(--color-red);
            font-family: var(--font-menu);
            font-size: 2.2rem;
            font-weight: 700;
        }
    }
}

.menu-char {
    height: 60px;
    /* Adjust character image height */
    width: auto;
    margin-right: 20px;
}

/* Overlay for PC */
.menu-overlay {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 98;

    &.is-active {
        opacity: 1;
        visibility: visible;
    }
}

/* SP styling */
@media (max-width: 768px) {
    .global-menu {
        width: 100%;
        max-width: none;
        right: -100%;
        padding-top: 20px;

        li a {
            font-size: 2rem;
            padding: 15px 0;
        }
    }

    .menu-char {
        height: 50px;
        margin-right: 15px;
    }
}

section {
    .pageTop {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 13rem;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease, filter 0.3s ease;
        z-index: 90;

        &.is-show {
            opacity: 1;
            visibility: visible;
        }

        &:hover {
            filter: brightness(1.1);
        }

        @media (max-width: 768px) {
            bottom: 5px;
            right: 5px;
            width: 18%;
        }
    }

    .btn {
        a {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 3rem;
            margin: 0 auto;
            padding: 3rem 2rem;
            color: #fff;
            max-width: 90rem;
            width: 100%;
            font-size: var(--fz-28);
            font-weight: 700;
            background: var(--color-red);
            border-radius: 2rem;

            @media (max-width: 767px) {
                padding: 2rem;
                border-radius: 1rem;
            }

            &:hover {
                background-color: #8a1312;
            }

            >span {
                display: inline-block;
                text-align: left;
            }

            &::after {
                display: block;
                content: "";
                width: 3.5rem;
                height: 3.5rem;
                background: url(../img/arrow.svg) no-repeat center center/100% auto;

            }
        }
    }

    &#main {
        position: relative;
        width: 100%;
        margin: 0 auto;
        display: block;
        padding: 0;

        .replay-bar {
            position: absolute;
            bottom: clamp(60px, 7vw, 150px);
            right: clamp(16px, 2vw, 30px);
            width: auto;
            height: 44px;
            background: transparent;
            display: flex;
            align-items: center;
            justify-content: flex-end;
            padding: 0;
            flex-shrink: 0;
            z-index: 51;

            @media (max-width: 767px) {
                bottom: clamp(80px, 12vh, 120px);
                right: 16px;
            }

            &.hidden {
                opacity: 0;
                pointer-events: none;
            }
        }

        #root {
            position: relative;
            width: 100%;
            flex: 1;
            display: none;
        }

        @media (min-width: 768px) {
            #root {
                width: 100%;
                height: auto;
            }
        }

        @media (max-width: 767px) {
            #root {
                width: 100%;
            }

            #site {
                height: auto;
            }

            .site-image {
                height: auto;
            }
        }

        #site {
            position: relative;
            width: 100%;
            height: auto;
            background: #000;
            overflow: hidden;
        }

        .site-image {
            width: 100%;
            height: auto;
            object-fit: cover;
            object-position: center top;
            display: block;
        }

        .glitch-active #site {
            animation: siteFlicker 0.8s infinite;
        }

        .glitch-slices {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 22;
            pointer-events: none;
        }

        .glitch-slice {
            position: absolute;
            left: 0;
            width: 100%;
            background: #000;
            opacity: 0.3;
            mix-blend-mode: difference;
        }

        .scanlines {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 20;
            pointer-events: none;
            opacity: 0;
            transition: opacity 1.4s ease;
            background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 0px, rgba(255, 255, 255, 0.06) 1px, transparent 2px, transparent 4px);
        }

        .glitch-active .scanlines {
            opacity: 1;
        }

        .noise-flash {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 21;
            pointer-events: none;
            opacity: 0;
            transition: opacity 1.4s ease;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
        }

        .glitch-active .noise-flash {
            opacity: 0.14;
            animation: noiseflicker 0.35s steps(2) infinite;
        }

        #windows-layer {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 30;
            pointer-events: none;
            overflow: hidden;
        }

        .disclaimer {
            position: absolute;
            right: 14px;
            top: 14px;
            z-index: 35;
            color: #fff;
            font-size: 12px;
            letter-spacing: 0.03em;
            border: 2px solid #d71718;
            background-color: #d71718;
            padding: 4px 10px;
            border-radius: 4px;
            opacity: 0;
            transition: opacity 0.4s ease;
            pointer-events: none;

            &.show {
                opacity: 1;
            }

            @media (max-width: 767px) {
                right: 0;
                left: 0;
                top: 0;
                width: 100%;
                text-align: center;
                border-radius: 0;
            }
        }

        .hwindow {
            position: absolute;
            width: 320px;
            background: rgba(5, 15, 5, 0.92);
            border: 1px solid #0a9ba6;
            box-shadow: 0 0 18px rgba(10, 155, 166, 0.5);
            color: #0a9ba6;
            font-family: 'Courier New', monospace;
            font-size: 11px;
            opacity: 0;
            transform: scale(0.85);
            transition: opacity 0.2s ease, transform 0.2s ease;

            &.show {
                opacity: 1;
                transform: scale(1);
            }

            .titlebar {
                background: #0a9ba6;
                color: #000;
                font-weight: bold;
                font-size: 10px;
                padding: 3px 8px;
            }

            .body {
                padding: 8px 10px;
                line-height: 1.5em;
                white-space: pre-wrap;
                min-height: 70px;
            }

            &.mission {
                width: 90%;
                max-width: 520px;
                box-shadow: 0 0 34px rgba(10, 155, 166, 0.9);
                z-index: 32;
                transform: translate(-50%, -50%) scale(0.85);

                &.show {
                    transform: translate(-50%, -50%) scale(1);
                }

                .titlebar {
                    font-size: 13px;
                    padding: 5px 10px;
                }

                .body {
                    font-size: 16px;
                    line-height: 1.9em;
                    padding: 20px 22px;
                }
            }
        }

        .mission-disclaimer {
            margin-top: 10px;
            text-align: right;
            color: #fff;
            font-size: 12px;
            white-space: normal;
        }

        #windows-layer.dim-others .hwindow:not(.mission) {
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .scroll-indicator {
            position: relative;
            width: 4.5%;
            min-width: 30px;
            max-width: 47px;
            height: auto;
            z-index: 33;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.6s ease;

            &.show {
                opacity: 1;
                animation: scrollFloat 1.8s ease-in-out infinite;
            }
        }

        #mv-flash {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: #fff;
            z-index: 50;
            opacity: 0;
            pointer-events: none;
        }

        #vivant-stage {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: url('../img/mv_logoback.jpg');
            background-size: cover;
            background-position: center;
            z-index: 50;
            display: none;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 28px;

            &.active {
                display: flex;
            }
        }

        .v-logo {
            width: 80%;
            max-width: 893px;
            height: auto;
            opacity: 0;
            transform: scale(0.35);

            @media (min-width: 768px) {
                width: 46vw;
                max-width: none;
            }

            &.reveal {
                animation: vLogoFade 2s linear forwards;
            }
        }

        .replay-mv {
            background: transparent;
            border: 1px solid rgba(255, 255, 255, 0.3);
            color: rgba(255, 255, 255, 0.6);
            font-size: 12px;
            padding: 6px 16px;
            letter-spacing: 0.1em;
            cursor: pointer;
            border-radius: 20px;

            &:hover {
                color: #fff;
                border-color: #fff;
            }
        }
    }

    &#topics {
        padding-top: 15rem;
        padding-bottom: 15rem;

        @media (max-width: 767px) {
            padding-top: 8rem;
            padding-bottom: 8rem;
        }

        h2 {
            margin-bottom: 2rem;
            padding: 70px 0;
            border-top: 1px solid #fff;
            border-bottom: 1px solid #fff;

            @media (max-width: 767px) {
                margin-bottom: 1rem;
                padding: 3rem 0;
            }
        }

        p {
            margin-bottom: 8rem;
            font-size: var(--fz-20);
            font-weight: 500;

            @media (max-width: 767px) {
                margin-bottom: 6rem;
                line-height: 1.4;
                text-align: left;
                font-size: 1.3rem;
            }
        }

        .mv {
            width: 70%;
            margin: 0 auto;

            @media (max-width: 767px) {
                width: 100%;
            }
        }
    }

    &#story,
    &#menu,
    &#mission,
    &#apply,
    &#qa {
        h2 {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: center;
            gap: 5rem;
            font-size: var(--fz-70);
            color: var(--color-red);
            margin-bottom: 40px;
            font-weight: 900;
            letter-spacing: -0.02em;

            @media (max-width: 768px) {
                margin-bottom: 3rem;
                gap: 1.5rem;
            }

            figure {
                height: 15rem;

                @media (max-width: 768px) {
                    height: 8rem;
                }

                img {
                    height: 100%;
                }
            }
        }
    }

    &#story {
        padding-bottom: 15rem;
        text-align: center;

        p {
            font-size: var(--fz-40);
            font-weight: 500;
            line-height: 1.6;
            margin-bottom: 9rem;

            >span {
                display: inline-block;
                padding: 0 1rem .5rem;
                line-height: 1.2;
                color: var(--color-red);
                font-weight: 800;
                background: var(--color-yellow);
            }
        }

        ul {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin: 0 auto;
            width: 100%;
            gap: 7rem;

            li {
                flex: 1;

                a {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    background-color: var(--color-red);
                    padding: 2rem;
                    border-radius: 2rem;
                    /* 角丸具合はデザインに合わせて調整 */
                    transition: all 0.3s ease;
                    gap: 5rem;
                    /* テキストと矢印の間隔 */

                    &:hover {
                        background-color: #8a1312;
                        /* ホバー時の暗い赤 */
                        transform: translateY(-3px);
                    }

                    img {
                        height: 3.5rem;
                        /* mission_txt等の高さ */
                        width: auto;
                    }

                    .arrow {
                        height: 3.5rem;
                        /* 矢印のサイズ */
                        margin-left: 5px;
                    }
                }
            }
        }

        /* SP styling */
        @media (max-width: 900px) {
            padding: 0 0 8rem;

            p {
                margin-bottom: 40px;
            }

            ul {
                gap: 1rem;

                li a {
                    gap: 1rem;
                    padding: 12px 20px;
                    border-radius: 1rem;

                    img,
                    .arrow {
                        height: 2rem;
                    }

                }
            }
        }
    }

    &#menu {
        padding-bottom: 15rem;

        @media (max-width: 767px) {
            padding-bottom: 8rem;
        }

        dl {
            margin-bottom: 7rem;

            dt {
                font-size: var(--fz-70);
                color: var(--color-red);
                font-weight: 800;
                margin-bottom: 3rem;
            }

            dd {
                line-height: 1.8;
                font-size: var(--fz-32);
                font-weight: 400;
            }
        }

        .mv {
            margin-bottom: 8rem !important;
            width: 70%;
            margin: 0 auto;

            @media (max-width: 767px) {
                width: 100%;
            }
        }

        p {
            margin-bottom: 10rem;
            line-height: 1.8;
            font-size: var(--fz-32);
            font-weight: 400;

            @media (max-width: 900px) {
                text-align: left;
            }

            @media (max-width: 767px) {
                margin-bottom: 3rem;
            }

            br {
                display: block;

                @media (max-width: 900px) {
                    display: none;
                }
            }
        }

        .btn {
            span {
                display: block;
                line-height: 1.4;

                &::after {
                    display: inline-block;
                    content: "";
                    margin-left: 1.5rem;
                    margin-bottom: -.5rem;
                    width: 3.5rem;
                    height: 3.5rem;
                    background: url(../img/arrow.svg) no-repeat center center/100% auto;

                    @media (max-width: 767px) {
                        margin-left: 1rem;
                        margin-bottom: -.2rem;
                        width: 2rem;
                        height: 2rem;
                    }
                }
            }

            a::after {
                display: none;
            }
        }

        .soup {
            padding-bottom: 15rem;
            background: #040506;

            @media (max-width: 767px) {
                padding-bottom: 8rem;
            }

            .inner {
                margin-top: -40rem;

                @media (max-width: 767px) {
                    margin-top: -10rem;
                }

                h3 {
                    margin-bottom: 10rem;

                    @media (max-width: 767px) {
                        margin-bottom: 3rem;
                    }
                }

                .btn {
                    img {
                        height: 8rem;
                    }
                }
            }
        }

        .bread {
            padding: 20rem 0 15rem;
            background: #040506 url(../img/bread_bg.webp) no-repeat center top / cover;

            @media (max-width: 767px) {
                background-image: url(../img/bread_bg_sp.webp);
                padding: 10rem 0 8rem;
            }

            h3 {
                margin-bottom: 3rem;

                @media (max-width: 767px) {
                    margin-bottom: 1rem;
                }
            }

            .btn {
                margin-top: 5rem;

                img {
                    height: 8rem;
                }
            }
        }

        .price {
            padding: 15rem 0 10rem;
            background: #040506;

            @media (max-width: 767px) {
                padding: 8rem 0 5rem;
            }

            dl {
                padding: 2rem 3rem;
                color: #000;
                text-align: left;
                background: #fff;

                @media (max-width: 767px) {
                    padding: 2rem;
                }

                dt {
                    display: flex;
                    flex-wrap: wrap;
                    align-items: center;
                    justify-content: space-between;
                    margin-bottom: 1rem;
                    padding: 0 2rem .5rem;
                    color: #000;
                    font-size: var(--fz-28);
                    font-weight: 500;
                    border-bottom: .1rem solid #000;

                    @media (max-width: 767px) {
                        justify-content: center;
                        padding: 0 0 1rem;
                        line-height: 1.4;
                        text-align: center;
                    }

                    >span {
                        display: inline-block;
                        padding: .5rem 1.5rem;
                        color: #fff;
                        font-size: var(--fz-20);
                        background: #D71A18;

                        @media (max-width: 1290px) {
                            margin-top: 1.5rem;
                            text-align: left;

                            br {
                                display: none;
                            }
                        }
                    }
                }

                dd {
                    font-size: var(--fz-18);
                    font-weight: 400;

                    @media (max-width: 767px) {
                        font-size: 1.4rem;
                    }

                    .note {
                        display: flex;
                        flex-wrap: wrap;
                        align-items: center;
                        gap: 1rem;
                        font-size: var(--fz-20);
                        font-weight: 600;

                        @media (max-width: 767px) {
                            line-height: 1.6;

                            br {
                                display: none;
                            }
                        }

                        >span {
                            display: inline-block;
                            padding: 0 1.5rem;
                            color: #fff;
                            font-size: var(--fz-28);
                            font-weight: 700;
                            background: #D71A18;

                            @media (max-width: 767px) {
                                display: block;
                                margin-top: 1rem;
                                line-height: 1.8;
                                text-align: center;
                                width: 100%;
                            }
                        }
                    }
                }
            }
        }
    }

    &#mission {

        >p {
            margin-bottom: 5rem;
            font-size: var(--fz-32);
            font-weight: 400;

            @media (max-width: 767px) {
                line-height: 1.6;
            }
        }

        .mission {
            padding: 15rem 0;
            background: url(../img/mission_bg.svg) no-repeat top center/cover;

            @media (max-width: 767px) {
                background-image: url(../img/mission_bg_sp.svg);
                padding: 6rem 0;
            }

            .mission_box {
                margin-bottom: 7rem;
                padding: 5rem 5vw;
                text-align: left;
                background: url(../img/missionBox_bg.svg) no-repeat top center/100% auto;

                @media (max-width: 767px) {
                    background-image: url(../img/missionBox_bg_sp.svg);
                    margin-bottom: 3rem;
                    padding: 2rem 1rem;
                }

                h3 {
                    margin-bottom: 3rem;

                    @media (max-width: 767px) {
                        margin-bottom: 1rem;
                    }

                    img {
                        width: 100%;
                    }
                }

                p {
                    margin-bottom: 2rem;
                    line-height: 1.5;
                    color: #000;
                    font-size: var(--fz-32);
                    font-weight: 400;

                    >span {
                        color: #D71A18;
                    }

                    @media (max-width: 767px) {
                        br {
                            display: none;
                        }
                    }
                }

                .card {
                    position: relative;

                    dl {
                        margin-bottom: 1.5rem;
                        width: 46%;

                        @media (max-width: 767px) {
                            width: 100%;
                        }

                        dt {
                            @media (max-width: 767px) {
                                img {
                                    width: 35%;
                                }
                            }
                        }

                        dd {
                            padding-left: 2rem;

                            @media (max-width: 767px) {
                                padding-left: 0;
                            }

                            img {
                                width: 100%;
                                height: auto;
                            }
                        }
                    }

                    >p {
                        width: 46%;
                        padding-left: 2rem;

                        @media (max-width: 767px) {
                            width: 100%;
                            padding-left: 0;
                            margin-top: 3rem;
                        }

                        img {
                            width: 100%;
                            height: auto;
                        }
                    }

                    .card-slider-wrap {
                        position: absolute;
                        margin: auto;
                        right: -1rem;
                        top: 0;
                        bottom: 0;
                        width: 52%;
                        display: flex;
                        align-items: center;
                        gap: 1rem;

                        @media (max-width: 767px) {
                            position: relative;
                            margin: 3rem auto;
                            right: auto;
                            top: auto;
                            bottom: auto;
                            width: 100%;
                            justify-content: center;
                        }
                    }

                    .slider-arrow {
                        width: 3rem;
                        height: 3rem;
                        background: transparent;
                        border: none;
                        cursor: pointer;
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        flex-shrink: 0;
                        position: relative;
                        z-index: 2;
                        transition: opacity 0.3s ease;
                    }

                    .slider-arrow::after {
                        content: "";
                        display: block;
                        width: 14px;
                        height: 20px;
                        background-color: #222;
                    }

                    .slider-arrow.prev::after {
                        clip-path: polygon(100% 0, 0 50%, 100% 100%);
                    }

                    .slider-arrow.next::after {
                        clip-path: polygon(0 0, 100% 50%, 0 100%);
                    }

                    .slider-arrow:disabled {
                        opacity: 0.3;
                        cursor: default;
                    }

                    .card-slider-viewport {
                        overflow: hidden;
                        width: 100%;
                        max-width: 53rem;
                    }

                    .card_list {
                        margin: 0;
                        padding: 0;
                        list-style: none;
                    }

                    .secret-card {
                        perspective: 1000px;
                    }

                    .secret-card .flipper {
                        position: relative;
                        width: 100%;
                        height: 100%;
                        transition: transform 0.8s;
                        transform-style: preserve-3d;
                    }

                    .secret-card.is-flipped .flipper {
                        transform: rotateY(180deg);
                    }

                    .secret-card .front,
                    .secret-card .back {
                        position: absolute;
                        top: 0;
                        left: 0;
                        width: 100%;
                        height: 100%;
                        backface-visibility: hidden;
                    }

                    .secret-card .back {
                        transform: rotateY(180deg);
                    }
                }

                .item {
                    display: flex;
                    flex-wrap: wrap;
                    justify-content: space-between;
                    align-items: center;
                    font-size: var(--fz-32);
                    font-weight: 400;

                    @media (max-width: 767px) {
                        display: block;
                    }

                    >p {
                        color: #D71A18;

                        &.note {
                            color: #000;
                            font-size: 1.6rem;
                        }
                    }

                    .btn {
                        display: block;

                        a {
                            background: #D71A18;
                            border-radius: .5rem;
                            position: relative;
                            padding-right: 5.5rem;

                            @media (max-width: 767px) {
                                padding: 2rem 5.5rem 2rem 2rem;
                                width: 80%;
                            }

                            &::before {
                                content: '';
                                position: absolute;
                                right: 1.5rem;
                                top: 50%;
                                width: 2rem;
                                height: 2rem;
                                background: #fff;
                                border-radius: 50%;
                                transform: translateY(-50%);
                            }

                            &::after {
                                content: '';
                                position: absolute;
                                right: 2.3rem;
                                top: 50%;
                                width: 0.8rem;
                                height: 0.8rem;
                                border-top: 2px solid #D71A18;
                                border-right: 2px solid #D71A18;
                                transform: translateY(-50%) rotate(45deg);
                                margin-top: -1px;
                            }

                            &:hover {
                                background-color: #b81917;
                            }
                        }
                    }

                    ul {
                        display: flex;
                        flex-wrap: wrap;
                        justify-content: space-between;
                        margin-top: 5rem;
                        width: 100%;

                        @media (max-width: 767px) {
                            display: block;
                            margin-top: 3rem;
                        }

                        li {
                            width: calc((100% - 4rem) / 3);

                            @media (max-width: 767px) {
                                margin-bottom: 2rem;
                                width: 100%;

                                &:last-child {
                                    margin-bottom: 0;
                                }
                            }
                        }
                    }
                }

                .code {
                    position: relative;

                    p {
                        >span {
                            color: #D71A18;

                            strong {
                                font-size: var(--fz-50);
                                font-weight: 700;
                            }
                        }
                    }

                    dl {
                        padding-bottom: 5rem;

                        dt {
                            position: relative;
                            display: inline-block;
                            padding: 1rem 3rem;
                            color: #fff;
                            font-size: var(--fz-40);
                            font-weight: 700;
                            width: 76%;
                            background: #D71A18;
                            border-radius: 6rem;

                            @media (max-width: 1000px) {
                                text-align: center;
                                width: 100%;
                                border-radius: 1rem;
                            }
                        }

                        dt::after {
                            content: '';
                            position: absolute;
                            top: 50%;
                            right: -1.5rem;
                            transform: translateY(-50%);
                            width: 3rem;
                            height: 2rem;
                            background-color: #D71A18;
                            clip-path: polygon(0 0, 100% 50%, 0 100%);

                            @media (max-width: 1000px) {
                                top: auto;
                                bottom: -1.5rem;
                                left: 50%;
                                right: auto;
                                width: 2rem;
                                transform: translateX(-50%);
                                clip-path: polygon(0 0, 100% 0, 50% 100%);
                            }
                        }

                        dd {
                            margin-top: 1rem;
                            color: #000;

                            &.poster {
                                position: absolute;
                                padding-top: 0;
                                text-align: center;
                                top: 0;
                                right: 0;
                                width: 16%;

                                @media (max-width: 1000px) {
                                    position: unset;
                                    text-align: center;
                                    width: 100%;
                                }

                                img {
                                    max-width: 25rem;
                                    width: 100%;
                                }
                            }
                        }
                    }
                }
            }
        }
    }

    &#apply {
        padding: 5rem 0 15rem;
        border-bottom: .1rem solid #fff;

        .inner {
            .none {
                padding-bottom: 0;
                border: none;
            }

            >dl {
                display: flex;
                flex-wrap: wrap;
                margin-bottom: 5rem;
                padding: 5rem 5rem 0;
                color: #000;
                background: #fff;

                @media (max-width: 767px) {
                    padding: 2rem;
                }

                >dt {
                    padding: 5rem 0;
                    width: 17.5rem;
                    border-bottom: .1rem solid #000;

                    @media (max-width: 767px) {
                        margin-bottom: 1.5rem;
                        padding: 0;
                        text-align: left;
                        width: 100%;
                        border: none;

                        img {
                            width: 35%;
                        }
                    }
                }

                >dd {
                    padding: 5rem 0 5rem 2rem;
                    line-height: 1.6;
                    text-align: left;
                    font-size: var(--fz-32);
                    font-weight: 400;
                    width: calc((100% - 17.5rem));
                    border-bottom: .1rem solid #000;

                    @media (max-width: 767px) {
                        margin-bottom: 1.5rem;
                        padding: 0 0 1.5rem;
                        width: 100%;
                    }

                    &.contents {
                        padding: 3rem 0 5rem 0;
                        width: 100%;

                        @media (max-width: 767px) {
                            padding: 1rem 0 3rem 0;
                        }
                    }

                    .btn {
                        display: inline-block;
                        margin: 0 1rem;

                        & a {
                            display: inline-block;
                            background: #D71A18;
                            border-radius: .5rem;
                            position: relative;
                            padding: 0 3.5rem 0 1rem;

                            &:hover {
                                background-color: #b81917;
                            }

                            &::before {
                                content: '';
                                position: absolute;
                                right: 1rem;
                                top: 50%;
                                width: 2rem;
                                height: 2rem;
                                background: #fff;
                                border-radius: 50%;
                                transform: translateY(-50%);
                            }

                            &::after {
                                content: '';
                                position: absolute;
                                right: 1.8rem;
                                top: 50%;
                                width: 0.8rem;
                                height: 0.8rem;
                                border-top: 2px solid #D71A18;
                                border-right: 2px solid #D71A18;
                                transform: translateY(-50%) rotate(45deg);
                                margin-top: -1px;
                            }
                        }

                    }

                    .note {
                        display: block;
                        font-size: var(--fz-22);
                    }

                    ul {
                        display: flex;
                        flex-wrap: wrap;
                        justify-content: space-between;
                        margin-bottom: 5rem;
                        width: 100%;

                        @media (max-width: 767px) {
                            margin-bottom: 2rem;
                        }

                        li {
                            width: calc((100% - 4rem) / 3);

                            @media (max-width: 767px) {
                                width: 100%;
                                margin-bottom: 2rem;
                            }
                        }
                    }

                    p {
                        display: block;
                        margin-bottom: 3rem;
                        padding: 1rem;
                        color: #fff;
                        font-size: var(--fz-32);
                        font-weight: 700;
                        text-align: center;
                        background: #D71A18;

                        @media (max-width: 767px) {
                            text-align: left;
                        }
                    }

                    .period {
                        display: flex;
                        flex-wrap: wrap;
                        justify-content: space-between;

                        dl {
                            padding: 2rem;
                            text-align: center;
                            width: calc((100% - 4rem) / 2);
                            border: .1rem solid #D71A18;

                            @media (max-width: 767px) {
                                padding: 1rem;
                                width: 100%;
                                margin-bottom: 2rem;
                            }

                            dt {
                                margin-bottom: 2rem;
                                color: #fff;
                                font-size: var(--fz-32);
                                font-weight: 700;
                                background: #D71A18;
                            }

                            dd {
                                color: #D71A18;
                                font-size: var(--fz-39);
                                font-weight: 500;

                                &.start::after {
                                    content: "";
                                    display: block;
                                    margin: 1rem auto;
                                    width: 60px;
                                    height: 36px;
                                    background-color: currentColor;
                                    clip-path: polygon(0 0, 100% 0, 50% 100%);

                                    @media (max-width: 1000px) {
                                        width: 30px;
                                        height: 18px;
                                    }

                                }
                            }
                        }
                    }
                }
            }

            >.btn {
                display: inline-block;
                margin-bottom: 5rem;
                color: #D71A18;
                font-size: var(--fz-40);
                font-weight: 500;

                p {
                    display: inline-block;
                    position: relative;
                    margin-bottom: 2rem;
                    padding: 0 3rem;
                }


                p::before,
                p::after {
                    content: '';
                    position: absolute;
                    top: 50%;
                    width: .3rem;
                    height: 6rem;
                    background-color: currentColor;
                }

                p::before {
                    left: 0;
                    transform: translateY(-50%) rotate(-20deg);
                }

                p::after {
                    right: 0;
                    transform: translateY(-50%) rotate(20deg);
                }

                a {
                    padding: 2rem 5rem;
                    font-size: var(--fz-80);
                    background: #D71A18;

                    @media (max-width: 767px) {
                        padding: 1.5rem 2rem;
                        border-radius: 1rem;
                    }

                    &:hover {
                        background-color: #b81917;
                    }

                    &::after {
                        width: 5.5rem;
                        height: 5.5rem;
                        background-size: 100%;

                        @media (max-width: 767px) {
                            width: 3.5rem;
                            height: 3.5rem;
                        }
                    }
                }
            }

            >p {
                margin-bottom: 3rem;
                line-height: 1.6;
                text-align: left;
            }

            >ul {
                text-align: left;

                li {
                    line-height: 1.6;
                }
            }
        }
    }

    &#qa {
        padding: 10rem 0 15rem;

        @media (max-width: 767px) {
            padding: 8rem 0;
        }

        h2 {
            margin-bottom: 10rem;

            @media (max-width: 767px) {
                margin-bottom: 6rem;
            }
        }

        .inner>dl {
            text-align: left;

            >dt {
                display: flex;
                align-items: center;
                position: relative;
                cursor: pointer;
                line-height: 1.4;
                color: #fff;
                font-size: var(--fz-28);
                font-weight: 400;
                background: #D71A18;
                margin-bottom: 3rem;
                padding-right: 6rem;

                @media (max-width: 767px) {
                    margin-bottom: 1.5rem;
                    padding-right: 2rem;
                }

                &::after {
                    content: "";
                    position: absolute;
                    right: 3rem;
                    top: 50%;
                    width: 1.5rem;
                    height: 1.5rem;
                    border-right: 3px solid #fff;
                    border-bottom: 3px solid #fff;
                    transform: translateY(-50%) rotate(-45deg);
                    /* 右向き矢印 */
                    transition: transform 0.3s ease;

                    @media (max-width: 767px) {
                        right: 1rem;
                        width: 1rem;
                        height: 1rem;
                        border-width: .2rem;
                    }
                }

                &.is-open::after {
                    transform: translateY(-50%) rotate(45deg);
                    /* 下向き矢印 */
                }

                >span {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    align-self: stretch;
                    flex-shrink: 0;
                    margin-right: 3rem;
                    width: 2.2em;
                    /* font-sizeに連動して幅が変わるようem単位を使用（2桁に対応） */
                    color: #D71A18;
                    font-family: var(--font-akshar);
                    font-size: var(--fz-46);
                    font-weight: 400;
                    background: #fff;

                    @media (max-width: 767px) {
                        margin-right: 1rem;
                    }
                }
            }

            >dd {
                overflow: hidden;
                max-height: 0;
                margin-bottom: 0;
                padding-top: 0;
                line-height: 1.6;
                font-size: var(--fz-20);
                transition: max-height 0.4s ease, padding 0.4s ease, margin 0.4s ease;

                a {
                    color: #D71A18;
                    text-decoration: underline;

                    &:hover {
                        text-decoration: none;
                    }
                }

                ol,
                ul {
                    li {
                        margin-left: 2rem;
                        text-indent: -2rem;
                    }
                }

                dl {
                    margin: 1rem 0;

                    dt {
                        font-feature-settings: "palt";
                    }
                }
            }
        }
    }
}

footer {
    padding: 5rem 0;
    text-align: center;
    border-top: .1rem solid #fff;

    @media (max-width: 767px) {
        padding: 3rem 0;
        font-size: 1.3rem;
    }
}

@keyframes siteFlicker {
    0% {
        filter: none;
    }

    10% {
        filter: contrast(1.06) saturate(0.85) brightness(1.04);
    }

    12% {
        filter: none;
    }

    45% {
        filter: hue-rotate(6deg) contrast(1.03);
    }

    47% {
        filter: none;
    }

    78% {
        filter: contrast(1.04) brightness(0.98);
    }

    80% {
        filter: none;
    }

    100% {
        filter: none;
    }
}

@keyframes noiseflicker {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-4%, 3%);
    }
}

@keyframes scrollFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-14px);
    }
}

@keyframes vLogoFade {
    0% {
        opacity: 0;
        transform: scale(0.35);
    }

    25% {
        opacity: 0.15;
        transform: scale(0.48);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.61);
    }

    75% {
        opacity: 0.7;
        transform: scale(0.75);
    }

    100% {
        opacity: 1;
        transform: scale(0.75);
    }
}

/* YouTube Thumbnail */
.yt-thumbnail {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    cursor: pointer;
    overflow: hidden;
    border-radius: 10px;
    transition: transform 0.3s ease;
}
.yt-thumbnail:hover {
    transform: scale(1.02);
}
.yt-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}
.yt-thumbnail .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    background-color: rgba(33,33,33,0.8);
    border-radius: 10px;
    transition: background-color 0.3s ease;
}
.yt-thumbnail:hover .play-button {
    background-color: red;
}
.yt-thumbnail .play-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-40%, -50%);
    border-style: solid;
    border-width: 10px 0 10px 20px;
    border-color: transparent transparent transparent #fff;
}

/* YouTube Modal */
.yt-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}
.yt-modal.is-active {
    display: flex;
}
.yt-modal-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    cursor: pointer;
}
.yt-modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    z-index: 2;
}
.yt-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
}
.yt-iframe-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}
.yt-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}