// スタイルシート common

@charset "utf-8";

@import "mixin";


body {
    @include root;
    position: relative;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
}

// html.is-gnav-locked,
// html.is-gnav-locked body {
    //     overflow: hidden;
// }

// 円形プログレスバー用のカスタムプロパティ
@property --progress-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

img,
video {
    max-width: 100%;
    height: auto;
}

:where(figure) { margin: 0; }

br.sp {
    @media screen and (min-width: 769px) { display: none; }
}

@mixin mask-text() {
    // SVGマスクを適用
    mask-image: url('../images/txt-pattern.svg');
    mask-size: cover;
    mask-repeat: repeat;
    mask-position: left bottom;
    -webkit-mask-image: url('../images/txt-pattern.svg');
    -webkit-mask-size: cover;
    -webkit-mask-repeat: repeat;
    -webkit-mask-position: center bottom;
}

// ===  Component === //

#cboxOverlay { background-color: $basecolor; }

// ハイライト
.highlight {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 5px 2px;
    box-sizing: border-box;
    margin: 2.5px 0.1em;
    position: relative;
    z-index: 0;
    &::before {
        content: "";
        position: absolute;
        z-index: -1;
        inset: 0;
        background-color: $themecolor2;
    }
    
    &.js-wrap-text {
        color: transparent;
        &::before {
            transform: scaleX(0);
            transform-origin: left;
            transition: transform 800ms ease;
        }

        &.act::before { transform: scaleX(1); }
    }
}

#header {
    position: relative;
    .toppage & {
        position: absolute;
        inset: 0 0 auto 0;
    }
    z-index: 20;
    .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        padding: 32px 40px 0;
        box-sizing: border-box;
        position: relative;
        @include maxwidth(768) {
            padding: 20px 15px 0 20px;
        }
        .l-left {
            @include maxwidth(768) { padding-bottom: 8px; }
            .sitename {
                h1 {
                    a {
                        display: inline-flex;
                        flex-direction: column;
                        align-items: flex-start;
                        gap: 10px;
                        @include maxwidth(768) { gap: 15px; }
                        .description {
                            @include f_all(12);
                            font-weight: bold;
                            line-height: normal;
                            @include maxwidth(768) { @include f_all(10); }
                        }
                        img {
                            width: 230px;
                            @include maxwidth(768) {
                                max-width: 40vw;
                                width: 165px;
                            }
                        }
                    }
                }
            }
        }
        .l-right {
            .toppage & {
                opacity: 0;
                visibility: hidden;
                transform: translateY(-1.5rem);
                transition: opacity 600ms ease-out, visibility 600ms ease-out, transform 600ms ease-out;
            }
            .toppage.loaded & {
                opacity: 1;
                visibility: visible;
                transform: translateY(0);
                transition-delay: 2000ms;
            }
            @include maxwidth(768) {
                position: absolute;
                inset: auto 15px 0 auto;
            }
            .link-list {
                ul {
                    display: flex;
                    gap: 5px;
                    @include maxwidth(768) { gap: 2px; }
                    li {
                        flex-shrink: 0;
                        @include maxwidth(1024) {
                            &:has(> .tel),
                            &:has(> .recruit) {
                                display: none !important;
                            }
                        }
                        a {
                            &.tel {
                                @include ff_en;
                                display: inline-flex;
                                flex-direction: column;
                                align-items: center;
                                gap: 3px;
                                margin-right: 20px;
                                .num {
                                    @include f_all(32);
                                    font-weight: bold;
                                    padding-left: 21px;
                                    box-sizing: border-box;
                                    background: url(../images/icon-phone-white.svg) no-repeat left top 100% / 16px auto;
                                }
                                .time {
                                    @include f_all(12);
                                    font-weight: 500;
                                    line-height: 1.3;
                                    letter-spacing: 0.1em;
                                    text-align: center;
                                }
                            }
                            &.mail, &.instagram {
                                display: block;
                                overflow: hidden;
                                text-indent: -9999px;
                                width: 50px;
                                height: 50px;
                                background-color: $themecolor2;
                                background-repeat: no-repeat;
                                background-position: center center;
                                background-size: 20px auto;
                            }
                            &.mail {
                                background-image: url(../images/icon-mail-white.svg);
                            }
                            &.instagram {
                                background-image: url(../images/icon-instagram-white.svg);
                                background-size: 19px auto;
                            }
                            &.recruit {
                                @include ff_en;
                                @include f_all(20);
                                font-weight: bold;
                                line-height: normal;
                                letter-spacing: 0.05em;
                                text-transform: uppercase;
                                @include flex_centering;
                                gap: 5px;
                                padding: 10px 30px 10px 18px;
                                box-sizing: border-box;
                                background-color: $themecolor2;
                                min-height: 50px;
                                position: relative;
                                &::before, &::after {
                                    content: "";
                                    display: block;
                                    width: 14px;
                                    height: 14px;
                                    background: url(../images/arrow-white.svg) no-repeat center / contain;
                                }
                                &::before {
                                    flex-shrink: 0;
                                    opacity: 1;
                                    transform: translate(0, 0) scale(1);
                                }
                                &::after {
                                    position: absolute;
                                    inset: 0 auto 0 18px;
                                    margin: auto;
                                    opacity: 0;
                                    transform: translate(-8px, 8px) scale(0.8);
                                }
                                @media (any-hover: hover) {
                                    &:hover {
                                        &::before, &::after {
                                            transition: 400ms ease-in-out;
                                        }
                                        &::before {
                                            opacity: 0;
                                            transform: translate(8px, -8px) scale(0.8);
                                        }
                                        &::after {
                                            opacity: 1;
                                            transform: translate(0, 0) scale(1);
                                        }
                                    }
                                }
                            }
                            &.gnav-toggle {
                                &>span.b {
                                    &>span {}
                                }
                                &>span.t {}
                            }
                        }
                    }
                }
            }
        }
    }
}

.gnav-toggle {
    cursor: pointer;
    @include ff_en;
    @include f_all(12);
    font-weight: bold;
    line-height: normal;
    display: block;
    width: 50px;
    height: 50px;
    background-color: $themecolor;
    transition: background-color 500ms cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    .menu_open & {
        background-color: $accentcolor;
    }
    &>span.b {
        &>span {
            display: inline-block;
            width: 20px;
            height: 2px;
            background-color: currentColor;
            @include absolute_centering;
            bottom: 5px;
            @include flex_centering;
            transition: all 500ms cubic-bezier(0.4, 0, 0.2, 1);
            .menu_open & {
                width: 15px;
            }
            &:nth-child(1) {
                transform: translateY(-6px);
                .menu_open & {
                    transform: translateY(-3px) rotate(45deg);
                }
            }
            &:nth-child(2) {
                .menu_open & {
                    transform: translateY(-3px) rotate(-45deg);
                }
            }
        }
    }
    &>span.t {
        position: absolute;
        bottom: 5px;
        left: 0;
        right: 0;
        white-space: nowrap;
        overflow: hidden;
        &::before, &::after {
            @include flex_centering;
            transition: 500ms cubic-bezier(0.4, 0, 0.2, 1);
        }
        &::before { content: "MENU"; }
        &::after { 
            content: "CLOSE";
            position: absolute;
            inset: 0;
            transform: translateY(100%);
        }
        .menu_open & {
            &::before { transform: translateY(-100%); }
            &::after { transform: translateY(0); }
        }
    }
}

#gnavToggleContainer {
    position: fixed;
    top: 30px;
    .admin-bar & {
        top: calc(30px + 32px);
    }
    right: 25px;
    z-index: 101;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 500ms cubic-bezier(0.4, 0, 0.2, 1), transform 500ms cubic-bezier(0.4, 0, 0.2, 1);
    .header_scrollout &,
    .menu_open &
    {
        opacity: 1;
        transform: translateX(0);
    }
}

#gnavContainer {
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;

    body.menu_open & { pointer-events: auto; }
}

#gnav {
    position: fixed;
    inset: 0;
    background-color: rgba($basecolor, 0.98);
    padding: 8vh 0;
    .admin-bar & { padding-top: calc(8vh + 32px); }
    @include maxwidth(768) {
        padding-top: 3vh;
        .admin-bar & { padding-top: calc(3vh + 32px); }
        padding-bottom: calc(8vh + 50px);
    }
    box-sizing: border-box;
    overflow-y: auto;
    overscroll-behavior: contain;
    -ms-overflow-style: none;
    scrollbar-width: none;
    &::-webkit-scrollbar { display: none; }
    color: $themetextcolor;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 500ms cubic-bezier(0.4, 0, 0.2, 1);

    .menu_open & {
        clip-path: inset(0 0 0 0);
    }

    .container {
        @include container(1280, 40);
        // min-height: calc(100vh - 140px);
        @include maxwidth(768) {
            margin-left: 20px;
            margin-right: 20px;
        }
    }

    // === Header Area (Logo) ===
    .gnav-header {
        position: relative;
        opacity: 0;
        transform: translateY(-20px);
        transition: opacity 600ms cubic-bezier(0.4, 0, 0.2, 1) 100ms, 
                    transform 600ms cubic-bezier(0.4, 0, 0.2, 1) 100ms;
        
        body.menu_open & {
            opacity: 1;
            transform: translateY(0);
        }

        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 20px;
        @include maxwidth(768) { 
            padding-bottom: 8px;
        }
        
        .gnav-logo {
            display: inline-flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 10px;
            text-decoration: none;
            color: inherit;
            transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1), opacity 300ms ease;
            position: relative;

            .description {
                @include f_all(12);
                line-height: normal;
                font-weight: 600;
                @include maxwidth(768) { @include f_all(10); }
            }
            
            img {
                width: 250px;
                @include maxwidth(768) { width: 165px; }
            }
        }

        .gnav-tel {
            @include maxwidth(768) { display: none; }
            a {
                @include ff_en;
                display: inline-flex;
                flex-direction: column;
                align-items: center;
                gap: 3px;
                .num {
                    @include f_all(32);
                    font-weight: bold;
                    padding-left: 21px;
                    box-sizing: border-box;
                    background: url(../images/icon-phone-white.svg) no-repeat left top 100% / 16px auto;
                    @include maxwidth(768) {
                        @include f_all(22);
                        padding-left: 15px;
                        background-size: 12px auto;
                    }
                }
                .time {
                    @include f_all(12);
                    @include maxwidth(768) { @include f_all(8); }
                    font-weight: 500;
                    line-height: 1.3;
                    letter-spacing: 0.1em;
                    text-align: center;
                }
            }
        }
    }

    // === Main Navigation ===
    .gnav-main {
        padding-top: 1rem;
        margin: 50px 0;
        @include maxwidth(768) { margin: 30px 0; }
        position: relative;
        
        // 左側のアクセントライン
        &::before {
            content: "";
            position: absolute;
            top: 0;
            left: 50%;
            width: 100%;
            height: 2px;
            background: linear-gradient(to right, transparent, $themecolor2 20%, $themecolor2 80%, transparent);
            opacity: 0;
            transform: translateX(-50%) scaleX(0);
            transform-origin: center;
            
            body.menu_open & {
                opacity: 0.3;
                transform: translateX(-50%) scaleX(1);
                transition: opacity 500ms ease 500ms, transform 600ms cubic-bezier(0.4, 0, 0.2, 1) 500ms;
            }
        }
        
        &>ul {
            list-style: none;
            margin: 0;
            padding: 0;
            display: flex;
            // align-items: center;
            align-items: flex-start;
            flex-wrap: wrap;
            gap: 1.5rem 50px;

            @include maxwidth(768) {
                gap: 1rem;
            }
            @include maxwidth(480) {
                gap: 0;
            }
            &>li {
                flex-basis: calc((100% - (50px * 2)) / 3);
                @include maxwidth(1024) {
                    flex-basis: calc((100% - (50px * 1)) / 2);
                }
                @include maxwidth(768) { flex-basis: 100%; }
                position: relative;
                opacity: 0;
                transform: translateX(-1rem);
                
                body.menu_open & {
                    opacity: 1;
                    transform: translateX(0);
                    transition: opacity 400ms cubic-bezier(0.4, 0, 0.2, 1), 
                                transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
                    @for $i from 1 through 6 {
                        &:nth-child(#{$i}) {
                            transition-delay: #{200 + ($i * 50)}ms;
                        }
                    }
                }
                
                @include maxwidth(768) {
                    border-bottom: 1px solid rgba($themetextcolor, 0.08);
                    &:last-child { border-bottom: none; }
                }

                // 左側のアクセントライン
                &::before {
                    content: "";
                    position: absolute;
                    left: 0;
                    // top: 50%;
                    // transform: translateY(-50%);
                    // height: 0%;
                    top: 1.8em;
                    height: 3.5em;
                    @include maxwidth(768) {
                        top: 1.5em;
                        height: 2.5em;
                    }
                    transform: scaleY(0);
                    width: 3px;
                    background-color: $themecolor2;
                    transition:  400ms cubic-bezier(0.4, 0, 0.2, 1), opacity 300ms ease;
                    opacity: 0;
                    border-radius: 2px;
                    z-index: 1;
                }

                @media (any-hover: hover) {
                    &:hover {
                        &::before {
                            // height: 60%;
                            transform: scaleY(1);
                            opacity: 1;
                        }
                    }
                }

                &>a[data-en] {
                    text-decoration: none;
                    display: block;
                    position: relative;
                    padding: 18px 10px 18px 20px;
                    @include maxwidth(480) { padding: 10px 5px 10px 15px; }
                    box-sizing: border-box;
                    color: inherit;
                    transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
                    border-radius: 4px;
                    position: relative;
        
                    // 英語を ::before で表示
                    &::before {
                        content: attr(data-en);
                        color: $themetextcolor;
                        @include ff_en;
                        @include f_all(38);
                        @include maxwidth(768) { @include f_all(28); }
                        font-weight: 600;
                        text-transform: uppercase;
                        display: block;
                        line-height: 1.15;
                        letter-spacing: 0.05em;
                        transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1), color 300ms ease;
                        margin-bottom: 6px;
                    }
                    
                    // 日本語は通常のテキストとして表示
                    color: $themecolor2;
                    @include f_all(14);
                    @include maxwidth(768) { @include f_all(13); }
                    font-weight: bold;
                    letter-spacing: 0.05em;
                    transition: opacity 300ms ease, transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
                    display: block;
                    margin-top: 6px;
                    
                    @include maxwidth(768) { margin-top: 0; }
        
                    // 背景のアクセント（ホバー時に表示）
                    &::after {
                        content: "";
                        position: absolute;
                        inset: 0;
                        background-color: rgba($themecolor2, 0.05);
                        border-radius: 4px;
                        opacity: 0;
                        transform: scaleX(0);
                        transform-origin: left;
                        transition: opacity 400ms ease, transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
                        z-index: -1;
                    }

                    @media (any-hover: hover) {
                        &:hover {
                            color: $themecolor2;
                            padding-left: 24px;
                            opacity: 1;
                            transform: translateX(2px);
                            
                            &::before {
                                transform: translateX(2px);
                                color: $themecolor2;
                            }
                            &::after {
                                opacity: 1;
                                transform: scaleX(1);
                            }
                        }
                    }
                    
                    &:focus-visible {
                        outline: 2px solid $themecolor2;
                        outline-offset: 4px;
                        border-radius: 4px;
                    }
                }

                &>ul {
                    display: flex;
                    flex-direction: column;
                    gap: 1rem;
                    margin-top: 1rem;
                    margin-left: 18px;
                    @include maxwidth(768) {
                        gap: 0.5em;
                        margin-top: 0.5rem;
                        margin-bottom: 1rem;
                    }
                    @include maxwidth(480) { margin-left: 10px; }
                    &>li {
                        @include f_all(18);
                        @include maxwidth(768) { @include f_all(16); }
                        font-weight: 900;
                        line-height: 1.2;
                        letter-spacing: 0.10em;
                        &>a {
                            color: $themetextcolor;
                            padding: 0.15em 25px 0.2em 6px;
                            box-sizing: border-box;
                            background-color: $themecolor2;
                            display: inline-flex;
                            align-items: center;
                            justify-content: center;
                            min-height: 25px;
                            overflow: hidden;
                            position: relative;

                            &::before, &::after {
                                content: "";
                                display: inline-block;
                                width: 13px;
                                height: 14px;
                                background: url(../images/arrow-white.svg) no-repeat center / contain;
                                position: absolute;
                                inset: 0.3em 0.35em auto auto;
                                @include flex_centering;
                                transition: none;
                            }
                            &::before {
                                opacity: 1;
                                transform: translate(0, 0) scale(1);
                            }
                            &::after {
                                opacity: 0;
                                transform: translate(-10px, 10px) scale(0.8);
                            }

                            @media (any-hover: hover) {
                                &:hover {
                                    opacity: 0.8;
                                    &::before, &::after { transition: 400ms ease; }
                                    &::before {
                                        opacity: 0;
                                        transform: translate(10px, -10px) scale(1);
                                    }
                                    &::after {
                                        opacity: 1;
                                        transform: translate(0, 0) scale(0.8);
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }


    }

    // === Information Area ===
    .gnav-info {
        display: flex;
        flex-direction: column;
        gap: 50px;
        @include maxwidth(768) { gap: 20px; }
        position: relative;

        .info-address {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 35px;
            @include maxwidth(768) { gap: 1em; }
            opacity: 0;
            transform: translateY(10px);
            
            body.menu_open & {
                opacity: 1;
                transform: translateY(0);
                transition: opacity 400ms cubic-bezier(0.4, 0, 0.2, 1) 500ms, 
                            transform 400ms cubic-bezier(0.4, 0, 0.2, 1) 500ms;
            }

            .address-item {
                position: relative;
                
                .title {
                    @include f_all(14);
                    @include maxwidth(768) { @include f_all(13); }
                    font-weight: 700;
                    color: $themecolor2;
                    margin-bottom: 10px;
                    display: flex;
                    align-items: center;
                    gap: 10px;
                    letter-spacing: 0.05em;
                    
                    &::after {
                        content: "";
                        display: block;
                        flex: 1;
                        height: 1px;
                        background: linear-gradient(to right, rgba($themecolor2, 0.4), transparent);
                    }
                }
                .text {
                    @include f_all(13);
                    @include maxwidth(768) { @include f_all(12); }
                    font-weight: 500;
                    line-height: 1.5;
                }
            }
        }

        .info-action {
            margin-top: 10px;
            opacity: 0;
            transform: translateY(10px);
            
            body.menu_open & {
                opacity: 1;
                transform: translateY(0);
                transition: opacity 400ms cubic-bezier(0.4, 0, 0.2, 1) 600ms, 
                            transform 400ms cubic-bezier(0.4, 0, 0.2, 1) 600ms;
            }
            
            .c-button__link {
                color: inherit;
                transition: transform 300ms ease;
                
                .cta::before { background-color: $accentcolor; }
                
                @media (any-hover: hover) {
                    &:hover {
                        transform: translateY(-2px);
                    }
                }
            }
        }
    }
}

#mainVisual {
    .container {
        position: relative;
        &::before {
            content: "";
            position: absolute;
            left: 0;
            bottom: -333px;
            width: 100%;
            height: 500px;
            background-color: $themecolor;
            clip-path: polygon(0 0, 100% 40%, 100% 100%, 0 60%);
            z-index: 1;
            @include maxwidth(768) {
                bottom: -140px;
                height: 195px;
                clip-path: polygon(0 0, 100% 25%, 100% 100%, 0 75%);
            }
        }
        #videoContainer {
            height: 100vh;
            height: 100svh;
            min-height: 900px;
            @include maxwidth(1200) { min-height: 800px; }
            @include maxwidth(1024) { min-height: 700px; }
            // @include maxwidth(768) { min-height: 700px; }
            position: relative;
            .poster {
                height: 100%;
                &>img {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                }
            }
            .video {
                position: absolute;
                inset: 0 auto auto 0;
                width: 100%;
                height: 100%;
                opacity: 0;
                video {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                }

                &::after {
                    content: "";
                    position: absolute;
                    inset: 0;
                    background-image: radial-gradient(rgba(#000, .85) 30%, transparent 31%), radial-gradient(rgba(#000, .85) 30%, transparent 31%);
                    background-size: 4px 4px;
                    background-position: 0 0, 2px 2px;
                }
            }

            &::after {
                content: "";
                position: absolute;
                inset: 0;
                background: linear-gradient(180deg, rgba(#000, 0.30) 0%, rgba(#000, 0.30) 100%);
            }

            &.video-enabled .video {
                opacity: 1;
            }
        }
        .overlay-text {
            white-space: nowrap;
            position: absolute;
            z-index: 1;
            inset: auto auto 120px (40 / 1440 * 100vw);
            @include maxwidth(768) {
                inset: auto auto 140px 10px;
            }
            display: inline-flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 50px;
            @include maxwidth(768) { 
                gap: 10px;
            }
            p {
                &.text-en {
                    @include ff_en;
                    font-size: 180px;
                    @include maxwidth(1440) {
                        font-size: clamp(68px, (180 / 1440 * 100vw), 180px);
                    }
                    @include maxwidth(375) {
                        font-size: clamp(50px, (68 / 375 * 100vw), 68px);
                    }
                    font-weight: bold;
                    display: inline-flex;
                    flex-direction: column;
                    align-items: flex-start;
                    opacity: 0;

                    .loaded & { opacity: 1; }

                    br.sp {
                        @media screen and (min-width: 769px) { display: none; }
                    }
                    
                    .char {
                        display: inline-block;
                        padding-bottom: 0.1em;
                        overflow: hidden;
                        margin-bottom: -0.1em;
                        
                        &-inner {
                            display: inline-block;
                            transform: translateY(100%) scale(0.9);
                            transition: transform 800ms ease;
                            
                            body.loaded & {
                                transform: translateY(0) scale(1);
                            }

                            &-inner {
                                @include mask-text();
                            }
                            
                        }
                        body.loaded & {
                            @for $i from 1 through 20 {
                                &:nth-child(#{$i}) .char-inner {
                                    transition-delay: #{300 + ($i * 80)}ms;
                                }
                            }
                        }
                    }
                }
                &.text {
                    font-size: 40px;
                    @include maxwidth(1440) {
                        font-size: clamp(24px, (40 / 1440 * 100vw), 40px);
                    }
                    @include maxwidth(375) {
                        font-size: clamp(18px, (24 / 375 * 100vw), 24px);
                    }
                    font-weight: 900;
                    line-height: 1.1;
                    @include flex_centering;
                    padding: 0 20px 2px;
                    box-sizing: border-box;
                    min-height: (60 / 40 * 1em);
                    position: relative;
                    color: transparent;
                    z-index: 0;
                    @include maxwidth(768) {
                        padding: 0 0px 1px 5px;
                    }
                    &::before {
                        content: "";
                        position: absolute;
                        inset: 0;
                        z-index: -1;
                        background-color: $themecolor2;
                        transform: scaleX(0);
                        transform-origin: left;
                    }
                    &.act::before {
                        transform: scaleX(1);
                        transition: transform 800ms ease;
                    }

                    &.pc {
                        @include maxwidth(768) { display: none; }
                    }
                    &.sp {
                        @media screen and (min-width: 769px) { display: none; }
                    }
                }
            }
        }
        .overlay-button {
            position: absolute;
            z-index: 1;
            inset: auto (80 / 1440 * 100vw) 120px auto;
            opacity: 0;
            visibility: hidden;
            transform: translateX(1.5rem);
            @include maxwidth(768) {
                transform: translateX(1rem);
            }
            transition: opacity 600ms ease-out, visibility 600ms ease-out, transform 600ms ease-out;
            @include maxwidth(768) {
                inset: auto 20px 80px auto;
            }
            body.loaded & {
                opacity: 1;
                visibility: visible;
                transform: translateX(0);
                transition-delay: 2000ms;
            }
            a.overlay-button__link {
                &>span.cta {
                    &>span.arrow {
                        &.before {}
                        &.after {}
                    }
                }
                &>span.t {}
            }
        }
        .scroll-down {
            position: absolute;
            z-index: 1;
            inset: auto auto 28px (40 / 1440 * 100vw);
            @include ff_en;
            @include f_all(20);
            font-weight: bold;
            text-transform: uppercase;
            @include maxwidth(768) {
                inset: auto auto 15px 16px;
                @include f_all(14);
            }
            &__link {
                display: inline-flex;
                align-items: center;
                gap: 10px;
                padding-left: 22px;
                box-sizing: border-box;
                position: relative;
                @include maxwidth(768) {
                    padding-left: 16px;
                }
                &::before, &::after {
                    content: "";
                    display: block;
                    width: 16px;
                    height: 18px;
                    background: url(../images/arrow-bottom-white.svg) no-repeat center / contain;
                    position: absolute;
                    top: 18%;
                    left: 0;
                    transition: none;
                    @include maxwidth(768) {
                        width: 12px;
                        height: 13px;
                        top: 17%;
                    }
                }
                &::before {
                    opacity: 1;
                    transform: translateY(0) scale(1);
                }
                &::after {
                    opacity: 0;
                    transform: translateY(-15px) scale(0.8);
                    @include maxwidth(768) {
                        transform: translateY(-10px) scale(0.8);
                    }
                }
                @media (any-hover: hover) {
                    &:hover {
                        &::before, &::after {
                            transition: 400ms ease-in-out;
                        }
                        &::before {
                            opacity: 0;
                            transform: translateY(15px) scale(0.8);
                            @include maxwidth(768) {
                                transform: translateY(10px) scale(0.8);
                            }
                        }
                        &::after {
                            opacity: 1;
                            transform: translateY(0) scale(1);
                        }
                    }
                }
            }
        }
    }
}

#contentFooter {
    position: relative;
    #contentFooterContact {
        padding: 120px 0 250px;
        box-sizing: border-box;
        position: relative;
        @include maxwidth(768) {
            padding: 40px 0 140px;
        }
        .bgimage {
            position: absolute;
            inset: 0;
            &>span {
                display: block;
                width: 100%;
                height: 100%;
                background-repeat: no-repeat;
                background-position: center center;
                background-size: cover;
                position: relative;
                &::after {
                    content: "";
                    position: absolute;
                    inset: 0;
                    background-color: rgba(#000, 0.30);
                }
            }
        }
        .overlay-text {
            pointer-events: none;
            position: absolute;
            z-index: 1;
            inset: auto auto -30px 50%;
            @include maxwidth(768) {
                inset: auto auto -5px 50%;
            }
            transform: translateX(-50%);
            width: 100%;
            @include flex_centering;
            overflow: hidden;
            &>img {
                width: 120vw;
                max-width: initial;
                min-width: 792px;
            }
        }
        .container {
            @include container(1440, 40);
            @include maxwidth(768) {
                margin-left: 20px;
                margin-right: 20px;
            }
            .c-heading {
                h2.en {  }
                h3.ja {
                    @include maxwidth(768) { margin-top: 10px; }
                }
            }
            .leadtext {
                // @include f_all(32);
                font-size: 32px;
                @include maxwidth(1024) {
                    font-size: clamp(20px, (32 / 1024 * 100vw), 32px);
                }
                @include maxwidth(360) { font-size: 18px; }
                font-weight: bold;
                line-height: 1.6;
                text-align: center;
                margin-top: 10px;
                @include maxwidth(768) {
                    font-weight: 900;
                    letter-spacing: -0.05em;
                }
                .highlight {
                    &::before {
                        background-color: $accentcolor;
                    }
                }
            }
            .c-buttons {
                margin-top: 50px;
                @include maxwidth(768) { margin-top: 20px; }
                .c-button {
                    &__link {
                        .cta {
                            .arrow {
                                &.before {}
                                &.after {}
                            }
                        }
                        .title {}
                    }
                }
            }
        }
    }
}

#footer {
    background-color: #000;
    padding: 90px 0 37px;
    @include maxwidth(768) {
        padding: 50px 0 80px;
    }
    box-sizing: border-box;
    position: relative;
    .container {
        @include container(1440, 40);
        @include maxwidth(768) {
            margin-left: 20px;
            margin-right: 20px;
        }
        .menu {
            @include ff_en;
            @include f_all(24);
            @include maxwidth(768) { @include f_all(20); }
            color: $themecolor2;
            font-weight: bold;
            line-height: normal;
            text-transform: uppercase;
            letter-spacing: 0.10em;
            ul {
                @include flex_centering;
                flex-wrap: wrap;
                gap: 10px 40px;
                @include maxwidth(768) {
                    flex-direction: column;
                    gap: 6px;
                }
                li {
                    a {  }
                }
            }
        }
        .sitename {
            margin-top: 30px;
            text-align: center;
            a {
                &>img {
                    width: 378px;
                    @include maxwidth(768) { width: 212px; }
                }
            }
        }
        address {
            @include f_all(14);
            font-weight: bold;
            line-height: 1.3;
            text-align: center;
            margin-top: 30px;
            @include maxwidth(768) {
                @include f_all(10);
                letter-spacing: 0.10em;
                margin-top: 10px;
            }
            p {
                &:not(:first-child) { margin-top: 10px; }
            }
        }
        .banner {
            margin-top: 40px;
            @include maxwidth(768) { margin-top: 20px; }
            ul {
                @include flex_centering;
                flex-wrap: wrap;
                gap: 10px;
                @include maxwidth(768) {
                    flex-direction: column;
                }
                li {
                    a {
                        &>img { 
                            width: 470px;
                            transition: transform 400ms ease-in-out;
                            @media (any-hover: hover) {
                                &:hover { transform: scale(0.97); }
                            }
                        }
                    }
                }
            }
        }
        .asidemenu {
            @include f_all(13);
            font-weight: bold;
            line-height: normal;
            margin-top: 40px;
            @include maxwidth(768) {
                @include f_all(12);
                margin-top: 20px;
            }
            ul {
                @include flex_centering;
                flex-wrap: wrap;
                gap: 1em 20px;
                @include maxwidth(768) {
                    flex-direction: column;
                    gap: 10px;
                }
                li {
                    a {
                    }
                }
            }
        }
        .copyright {
            margin-top: 30px;
            text-align: center;
            @include maxwidth(768) { margin-top: 20px; }
            small {
                @include ff_en;
                @include f_all(12);
                font-weight: 500;
                text-align: center;
                letter-spacing: 0.10em;
            }
        }
    }
}

#totopContainer {
    position: fixed;
    inset: auto 0 0 auto;
    z-index: 25;
    transform: translateY(100%);
    transition: 400ms ease-in-out;
    .header_scrollout & {
        transform: translateY(0%);
    }

    @include maxwidth(768) { display: none !important; }
}

a.totop {
    cursor: pointer;
    display: block;
    text-indent: -9999px;
    overflow: hidden;
    width: 60px;
    height: 60px;
    @include maxwidth(768) {
        width: 50px;
        height: 50px;
    }
    background-color: $themecolor2;
    position: relative;
    &::before, &::after {
        content: "";
        display: block;
        width: 9px;
        height: 10px;
        position: absolute;
        inset: 0;
        margin: auto;
        @include flex_centering;
        background: url(../images/arrow-bottom-white.svg) no-repeat center / contain;
        transform: scale(1, -1);
        transition: none;
    }
    &::before {
        opacity: 1;
        transform: scale(1, -1) translateY(0) scale(1);
    }
    &::after {
        opacity: 0;
        transform: scale(1, -1) translateY(-15px) scale(0.8);
        @include maxwidth(768) {
            transform: scale(1, -1) translateY(-10px) scale(0.8);
        }
    }
    @media (any-hover: hover) {
        &:hover {
            &::before, &::after {
                transition: 400ms ease-in-out;
            }
            &::before {
                opacity: 0;
                transform: scale(1, -1) translateY(15px) scale(0.8);
                @include maxwidth(768) {
                    transform: scale(1, -1) translateY(10px) scale(0.8);
                }
            }
            &::after {
                opacity: 1;
                transform: scale(1, -1) translateY(0) scale(1);
            }
        }
    }
}

#footbar {
    @media screen and (min-width: 769px) {
        display: none !important;
    }
    position: fixed;
    inset: auto 0 0 0;
    z-index: 101;
    transform: translateY(100%);
    transition: transform 400ms ease;
    .header_scrollout &,
    .menu_open & {
        transform: translateY(0);
    }
    ul {
        display: flex;
        li {
            flex: 1;
            &:has(.gnav-toggle),
            &:has(.totop) { flex: 0; }
            a {
                &:not(.gnav-toggle):not(.totop) {
                    @include flex_centering;
                    height: 50px;
                    background-color: $themecolor2;
                    padding: 5px 10px;
                    box-sizing: border-box;

                    &.tel {
                        background-color: $basecolor;
                    }
                }

                &.tel {
                    line-height: 1;
                    flex-direction: column;
                    gap: 2px;
                    .num {
                        @include ff_en;
                        @include f_all(22);
                        white-space: nowrap;
                        font-weight: bold;
                        padding-left: 15px;
                        box-sizing: border-box;
                        background: url(../images/icon-phone-white.svg) no-repeat left top 100% / 12px auto;
                        @include maxwidth(360) {
                            @include f_all(17);
                            padding-left: 12px;
                            background-size: 9px auto;
                        }
                    }
                    .time {
                        @include f_all(8);
                        font-weight: 500;
                        line-height: 1.3;
                        letter-spacing: 0.1em;
                        text-align: center;
                    }
                }

                &.recruit {
                    @include ff_en;
                    @include f_all(14);
                    @include maxwidth(360) { @include f_all(11); }
                    font-weight: bold;
                    line-height: normal;
                    letter-spacing: 0.05em;
                    text-transform: uppercase;
                    position: relative;
                    .t {
                        display: inline-flex;
                        align-items: center;
                        gap: 5px;
                        padding-left: 16px;
                        position: relative;
                        &::before, &::after {
                            content: "";
                            display: block;
                            width: 12px;
                            height: 12px;
                            background: url(../images/arrow-white.svg) no-repeat center / contain;
                            position: absolute;
                            inset: 0 auto 0 0;
                            margin: auto;
                        }
                        &::before {
                            opacity: 1;
                            transform: translate(0, 0) scale(1);
                        }
                        &::after {
                            opacity: 0;
                            transform: translate(-8px, 8px) scale(0.8);
                        }
                    }
                    @media (any-hover: hover) {
                        &:hover {
                            .t {
                                &::before, &::after {
                                    transition: 400ms ease-in-out;
                                }
                                &::before {
                                    opacity: 0;
                                    transform: translate(8px, -8px) scale(0.8);
                                }
                                &::after {
                                    opacity: 1;
                                    transform: translate(0, 0) scale(1);
                                }
                            }
                        }
                    }
                }

                &.gnav-toggle, &.totop {
                    .menu_open & { display: none; }
                }

            }
        }
    }
}

.c-buttons {
    @include flex_centering;
    flex-wrap: wrap;
    gap: 10px;
}

.c-button {
    display: inline-block;
    &__link {
        text-decoration: none !important;
        @include ff_en;
        @include f_all(20);
        font-weight: bold;
        line-height: normal;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        @include flex_centering;
        gap: 30px;
        position: relative;
        @include maxwidth(768) {
            @include f_all(16);
            gap: 10px;
        }
        .t {  }
        .cta {
            flex-shrink: 0;
            display: block;
            width: 80px;
            height: 80px;
            border-radius: 80px;
            @include maxwidth(768) {
                width: 50px;
                height: 50px;
                border-radius: 50px;
            }
            // background-color: $themecolor;
            // border: 2px solid $themecolor;
            overflow: hidden;
            position: relative;

            &::before {
                content: "";
                position: absolute;
                inset: 2px;
                border-radius: 50%;
                background-color: $themecolor;
                transition: transform 400ms ease-in-out;
            }
            
            // 円形プログレスバー用の擬似要素
            &::after {
                content: '';
                position: absolute;
                inset: 0px;
                border-radius: 50%;
                padding: 2px;
                --progress-angle: 0deg;
                background: conic-gradient(from 0deg, currentColor var(--progress-angle), transparent var(--progress-angle));
                -webkit-mask: 
                    linear-gradient(#fff 0 0) content-box, 
                    linear-gradient(#fff 0 0);
                -webkit-mask-composite: xor;
                mask: 
                    linear-gradient(#fff 0 0) content-box, 
                    linear-gradient(#fff 0 0);
                mask-composite: exclude;
                opacity: 0;
                transition: opacity 200ms ease-in-out, --progress-angle 600ms ease-in-out;
            }
            
            .arrow {
                display: inline-block;
                width: 13px;
                height: 14px;
                @include maxwidth(768) {
                    width: 9px;
                    height: 9px;
                }
                background: url(../images/arrow-white.svg) no-repeat center / contain;
                @include absolute_centering;
                @include flex_centering;
                transition: none;
                &.before {
                    opacity: 1;
                    transform: translate(0, 0) scale(1);
                }
                &.after {
                    opacity: 0;
                    transform: translate(-15px, 15px) scale(0.8);
                    @include maxwidth(768) {
                        transform: translate(-10px, 10px) scale(0.8);
                    }
                }
            }
        }

        @media (any-hover: hover) {
            &:hover {
                cursor: url(../images/cursor-check.svg), auto;
                .cta {
                    // background-color: rgba($themecolor, 0.1);

                    &::before {
                        transform: translate(75%, -75%);
                    }
                    
                    &::after {
                        opacity: 1;
                        --progress-angle: 360deg;
                    }
                    
                    .arrow {
                        &.before, &.after {
                            transition: 400ms ease-in-out;
                        }
                        &.before {
                            opacity: 0;
                            transform: translate(15px, -15px) scale(0.8);
                            @include maxwidth(768) {
                                transform: translate(10px, -10px) scale(0.8);
                            }
                        }
                        &.after {
                            opacity: 1;
                            transform: translate(0, 0) scale(1);
                        }
                    }
                }
            }
        }
    }
}

.c-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    .en {
        @include ff_en;
        font-size: 128px;
        @include maxwidth(1200) {
            font-size: clamp(52px, (128 / 1200 * 100vw), 128px);
        }
        font-weight: bold;
        line-height: normal;
        text-transform: uppercase;
    }
    .ja {
        @include ff_ja;
        font-size: clamp(28px, (40 / 1024 * 100vw), 40px);
        @include maxwidth(360) { font-size: 26px; }
        font-weight: 900;
        line-height: 1.5;
        text-align: center;
        letter-spacing: 0.05em;
        @include maxwidth(768) {
            line-height: 1.3;
        }

        &.js-wrap-text {
            line-height: 1.25;
            .char {
                display: inline-block;
                &-inner {
                    display: inline-block;
                }
            }

            &.js-scroll-target {
                .char {
                    overflow: hidden;
                    &-inner {
                        transform: translateY(100%);
                        transition: transform 500ms ease;
                    }
                }
                &.act {
                    .char {
                        &-inner {
                            transform: translateY(0);
                        }
                        @for $i from 0 to 50 {
                            &:nth-child(#{$i + 1}) .char-inner {
                                transition-delay: #{$i * 40}ms;
                            }
                        }
                    }
                }
            }
        }
    }
}

.c-col-buttons {
    margin-top: 40px;
}

.c-col-button {
    &:first-child .c-col-button__link {
        border-top: solid 1px#C5C5C5;
    }
    &__link {
        text-decoration: none !important;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 20px;
        border-bottom: solid 1px #C5C5C5;
        padding: 10px 45px 10px 0.5em;
        box-sizing: border-box;
        min-height: 80px;
        @include maxwidth(768) {
            gap: 0 5px;
            padding: 10px 25px 10px 0.25em;
            min-height: 65px;
        }
        position: relative;
        .en {
            @include ff_en;
            font-size: clamp(24px, (40 / 1024 * 100vw), 40px);
            font-weight: bold;
            line-height: normal;
            text-transform: uppercase;
        }
        .ja {
            @include f_all(16);
            @include maxwidth(768) { @include f_all(15); }
            font-weight: 900;
            line-height: normal;
            letter-spacing: 0.10em;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0 6px 2px;
            box-sizing: border-box;
            min-height: 25px;
            background-color: $themecolor;
            @include maxwidth(768) {
                letter-spacing: 0;
                padding: 0 3px 2px;
                margin-top: 4px;
            }
        }
        .arrow {
            &::before, &::after {
                content: "";
                display: block;
                width: 14px;
                height: 14px;
                background: url(../images/arrow-white.svg) no-repeat center / contain;
                position: absolute;
                inset: 0 20px 0 auto;
                @include maxwidth(768) {
                    inset: 0 0.25em 0 auto;
                }
                margin: auto;
                transition: none;
            }
            &::before {
                opacity: 1;
                transform: translate(0, 0) scale(1);
            }
            &::after {
                opacity: 0;
                transform: translate(-15px, 15px) scale(0.8);
            }
        }

        &.ja-color-black {
            .ja {
                background-color: #000;
            }
        }
        &.ja-color-red {
            .ja {
                background-color: $accentcolor;
            }
        }
        &.border-thin { border-color: #404040 !important; }

        @media (any-hover: hover) {
            z-index: 0;
            &::before {
                content: "";
                position: absolute;
                inset: 0;
                z-index: -1;
                background-color: rgba(#000, 0.30);
                transform: scaleY(0);
                transform-origin: center bottom;
                transition: transform 400ms ease-in-out;
            }
            &:hover {
                cursor: url(../images/cursor-check.svg), auto;
                &::before {
                    transform: scaleY(1);
                    transform-origin: center top;
                }
                .arrow {
                    &::before, &::after {
                        transition: 400ms ease-in-out;
                    }
                    &::before {
                        opacity: 0;
                        transform: translate(15px, -15px) scale(0.8);
                    }
                    &::after {
                        opacity: 1;
                        transform: translate(0, 0) scale(1);
                    }
                }
            }
        }
    }
}

.news-terms, .voice-terms {
    @include f_all(13);
    font-weight: 900;
    line-height: normal;
    position: relative;
    &:has(+ .news-headline) {
        margin-bottom: 30px;
        @include maxwidth(768) { margin-bottom: 20px; }
    }
    &:has(+ .voice-headline) {
        margin-bottom: 50px;
        @include maxwidth(768) { margin-bottom: 35px; }
    }
    ul {
        margin-left: 0 !important;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
        @include maxwidth(768) { gap: 5px; }
        li {
            list-style: none !important;
            margin-bottom: 0 !important;
            .subpage & {
                @include maxwidth(768) {
                    flex-basis: calc((100% - (5px * 1)) / 2);
                    &:first-child { flex-basis: 100% }
                }
            }
            a {
                text-decoration: none !important;
                @include flex_centering;
                background-color: #404040;
                min-width: 200px;
                min-height: 50px;
                @include maxwidth(768) {
                    min-width: 180px;
                    min-height: 45px;
                }
                height: 100%;
                padding: 0.5em;
                box-sizing: border-box;
                position: relative;
                .subpage & {
                    @include maxwidth(768) {
                        min-width: initial;
                    }
                }
                .title {
                    padding-left: 18px;
                    position: relative;
                }
                .arrow {
                    position: absolute;
                    inset: 0.75em auto auto 0;
                    margin: auto;
                    transition: none;
                    &::before, &::after {
                        content: "";
                        display: block;
                        position: absolute;
                        inset: 0;
                        margin: auto;
                        width: 10px;
                        height: 10px;
                        background: url(../images/arrow-white.svg) no-repeat center / contain;
                    }
                    &::before {
                        opacity: 1;
                        transform: translate(0, 0) scale(1);
                    }
                    &::after {
                        opacity: 0;
                        transform: translate(-10px, 10px) scale(0.8);
                    }
                }
                &.all {}
                &.current {
                    background-color: $themecolor2;
                }

                @media (any-hover: hover) {
                    &:hover {
                        .arrow {
                            &::before, &::after {
                                transition: 400ms ease-in-out;
                            }
                            &::before {
                                opacity: 0;
                                transform: translate(10px, -10px) scale(0.8);
                            }
                            &::after {
                                opacity: 1;
                                transform: translate(0, 0) scale(1);
                            }
                        }
                    }
                }
            }
        }
    }
}

.news-headline {
    position: relative;
    .headline-items {
        display: flex;
        flex-wrap: wrap;
        gap: 30px;
        @include maxwidth(768) { gap: 10px; }
        .subpage & {
            gap: 30px 10px;
        }
        .headline-item {
            flex: 1;
            .subpage & {
                flex-grow: 0;
                flex-basis: calc((100% - (10px * 3)) / 4);
                @include maxwidth(1024) { flex-basis: calc((100% - (10px * 2)) / 3); }
                @include maxwidth(768) { flex-basis: calc((100% - (10px * 1)) / 2); }
                @include maxwidth(480) { flex-basis: 100%; }
            }
            &__link {
                display: block;
                background-color: #000000;
                height: 100%;
                position: relative;
                transition: transform 400ms ease-in-out;
                &>* { display: block; }
                .image {
                    aspect-ratio: 420 / 280;
                    overflow: hidden;
                    position: relative;
                    & > img {
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                        transition: transform 400ms ease-in-out;
                    }
                }
                .docs {
                    @include f_all(20);
                    @include maxwidth(768) { @include f_all(18); }
                    .subpage & {
                        @include f_all(18);
                        @include maxwidth(768) { @include f_all(16); }
                    }
                    font-weight: 900;
                    line-height: normal;
                    padding: 20px;
                    box-sizing: border-box;
                    position: relative;
                    @include maxwidth(768) {
                        padding: 10px;
                    }
                    &>* { display: block; }
                    .terms {
                        color: $themecolor2;
                        @include f_all(16);
                        display: flex;
                        flex-wrap: wrap;
                        gap: 0em 0.5em;
                        .term {  }
                    }
                    .date {
                        margin-top: 5px;
                    }
                    .title {
                        line-height: 1.6;
                        @include maxwidth(768) {
                            line-height: 1.5;
                        }
                        min-height: 3.3em;
                        margin-top: 5px;
                        display: -webkit-box;
                        -webkit-line-clamp: 2;
                        -webkit-box-orient: vertical;
                        overflow: hidden;
                        text-overflow: ellipsis;
                    }
                    .button {
                        color: $themecolor2;
                        @include f_all(16);
                        text-transform: uppercase;
                        margin-top: 10px;
                        padding-left: 20px;
                        position: relative;
                        .arrow {
                            position: absolute;
                            inset: 0.75em auto auto 0;
                            &::before, &::after {
                                content: "";
                                display: block;
                                position: absolute;
                                inset: 0;
                                margin: auto;
                                width: 12px;
                                height: 12px;
                                background: url(../images/arrow-color2.svg) no-repeat center / contain;
                                transition: none;
                            }
                            &::before {
                                opacity: 1;
                                transform: translate(0, 0) scale(1);
                            }
                            &::after {
                                opacity: 0;
                                transform: translate(-10px, 10px) scale(0.8);
                            }
                        }
                        .t {}
                    }
                }
                @media (any-hover: hover) {
                    &:hover {
                        // cursor: url(../images/cursor-check.svg), auto;
                        transform: scale(0.97);
                        .image > img {
                            transform: scale(1.1);
                        }
                        .button {
                            .arrow {
                                &::before, &::after {
                                    transition: 400ms ease-in-out;
                                }
                                &::before {
                                    opacity: 0;
                                    transform: translate(10px, -10px) scale(0.8);
                                }
                                &::after {
                                    opacity: 1;
                                    transform: translate(0, 0) scale(1);
                                }
                            }
                        }
                    }
                }
            }
        }

        &.js-scroll-target {
            .headline-item {
                opacity: 0;
                transform: translateY(30px);
                transition: opacity 800ms ease, transform 800ms ease;
            }
            &.act {
                .headline-item {
                    opacity: 1;
                    transform: translateY(0) scale(1);
                    @for $i from 0 to 3 {
                        &:nth-child(#{$i + 1}) {
                            transition-delay: #{$i * 150}ms;
                        }
                    }
                }
            }
        }
    }
}

// ===  Frontpage === //

#toppageAboutus {
    padding-top: (680 / 1440 * 100vw);
    @include maxwidth(768) {
        padding-top: (270 / 375 * 100vw);
    }
    position: relative;
    z-index: 1;
    &::before {
        content: "";
        position: absolute;
        width: 100%;
        background-color: #000;
        inset: 100% 0 auto 0;
        // height: 295px;
        height: 856px;
        clip-path: polygon(0 0, 100% 25%, 100% 100%, 0 75%);
        @include maxwidth(768) {
            inset: calc(100% + 40px) 0 auto 0;
            height: (155 / 375 * 100vw);
            clip-path: polygon(0 0, 100% 15%, 100% 100%, 0 85%);
            height: 80vh;
        }
    }
    .images {
        position: absolute;
        inset: 60px 0 auto 0;
        margin: auto;
        @include maxwidth(768) {
            inset: 40px 0 auto 0;
        }
        .image {
            position: absolute;
            overflow: hidden;
            display: flex;
            align-items: flex-end;
            & > img {
                width: 100%;
                // height: var(100% + 250px);
                height: 100%;
                object-fit: cover;
            }
            &:nth-child(1) {
                inset: 0 auto auto (40 / 1440 * 100vw);
                width: (1150 / 1440 * 100vw);
                height: (540 / 1440 * 100vw);
                // aspect-ratio: 1150 / 540;
                @include maxwidth(768) {
                    inset: 0 0 auto 0;
                    width: 100%;
                    // aspect-ratio: 375 / 210;
                    height: (210 / 375 * 100vw);
                }
            }
            &:nth-child(2) {
                inset: (430 / 1440 * 100vw) (40 / 1440 * 100vw) auto auto;
                width: (472 / 1440 * 100vw);
                // aspect-ratio: 472 / 535;
                height: (535 / 1440 * 100vw);
                @include maxwidth(768) {
                    inset: (180 / 375 * 100vw) (10 / 375 * 100vw) auto auto;
                    width: (250 / 375 * 100vw);
                    // aspect-ratio: 250 / 175;
                    height: (175 / 375 * 100vw);
                }
            }
        }
    }
    .container {
        margin-right: 80px;
        @include maxwidth(1440) { margin-right: (80 / 1440 * 100vw); }
        display: flex;
        gap: 70px;
        @include maxwidth(1440) { gap: (70 / 1440 * 100%); }
        @include maxwidth(768) {
            display: block;
            &>* { flex: none !important; }
            padding-top: (90 / 375 * 100vw);
            margin: 0 20px;
            position: relative;
        }
        .head {
            @include maxwidth(768) {
                position: absolute;
                inset: 0 auto auto -20px;
            }
            .c-heading {
                position: sticky;
                top: 1rem;
                left: 0;
                .en {
                    color: $themecolor2;
                    writing-mode: vertical-rl;
                    width: 1.48em;
                }
            }
        }
        .body {
            flex: 1;
            position: relative;
            .c-heading {
                align-items: flex-start;
                @include maxwidth(768) {
                    align-items: initial;
                }
                .logo {
                    margin-bottom: 40px;
                    @include maxwidth(768) { text-align: center; }
                    & > img {
                        width: 206px;
                        @include maxwidth(768) { width: 120px; }
                    }
                }
                .ja {
                    font-size: clamp(32px, (40 / 1024 * 100vw), 40px);
                    @include maxwidth(360) { font-size: 28px; }
                    text-align: left;
                }
            }
            .text {
                font-size: clamp(20px, (32 / 1024 * 100vw), 32px);
                @include maxwidth(360) { font-size: 18px; }
                font-weight: bold;
                line-height: 1.6;
                margin-top: 30px;
                @include maxwidth(768) { margin-top: 20px; }
                p {
                    &:not(:first-child) { margin-top: 1em; }
                }
            }
            .c-col-buttons {
                margin-top: 60px;
                @include maxwidth(768) { margin-top: 30px; }
                .c-col-button {
                    &__link {
                    }
                }
            }
        }
    }
}

// 左に流れ続けるアニメーション
@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

#toppagePhilosophy {
    background-color: #000;
    position: relative;
    z-index: 1;
    @include maxwidth(768) {
        z-index: 2;
    }
    margin-top: -40vh;
    &::after {
        content: "";
        position: absolute;
        width: 100%;
        background-color: #000;
        inset: calc(100% - 225px) 0 auto 0;
        height: 856px;
        clip-path: polygon(0 25%, 100% 0%, 100% 75%, 0% 100%);
        z-index: 11;
        @include maxwidth(768) {
            inset: calc(100% - 55px) 0 auto 0;
            height: 55px;
            clip-path: polygon(100% 0, 0% 100%, 100% 100%);
        }
    }
    .l-top {
        // padding: 100px 0;
        position: relative;
        &.sticky-wrapper {
            .spacer { height: 200vh; }
            .sticky-content {
                position: sticky;
                top: 0;
                left: 0;
                min-height: 100vh;
                display: flex;
                flex-direction: column;
                justify-content: center;
            }
        }
        .message {
            overflow: hidden;
            .text-en {
                @include ff_en;
                color: #242424;
                font-size: clamp(80px, (170 / 1440 * 100vw), 170px);
                font-weight: bold;
                white-space: nowrap;
                line-height: 1;
                text-align: center;
                color: #242424;
                .string {
                    white-space: nowrap;
                    display: inline-flex;
                    flex-shrink: 0;
                    align-items: center;
                    padding-bottom: 0.15em;
                    box-sizing: border-box;
                    &>span {
                        display: inline-block;
                        clip-path: inset(0 100% 0 0);
                        transition: clip-path 800ms ease;
                        padding-bottom: 0.1em;
                        margin-bottom: -0.1em;
                    }
                    &.duplicate {
                        @media screen and (min-width: 769px) { display: none !important; }
                    }
                }
                
                @include maxwidth(768) {
                    display: flex;
                    width: max-content;
                    text-align: left;
                    animation: scroll-left 30s linear infinite;
                    will-change: transform;
                    .string { padding-right: 0.5em; }
                }

                &.act .string > span { clip-path: inset(0 0 0 0); }

                position: absolute;
                &.top {
                    inset: 5vh 0 auto 0;
                    @include maxwidth(768) { inset: 8vh 0 auto 0; }
                }
                &.bottom {
                    inset: auto 0 5vh 0;
                    @include maxwidth(768) { inset: auto 0 8vh 0; }
                }
            }
            .text {
                font-size: clamp(48px, (128 / 1440 * 100vw), 128px);
                @include maxwidth(360) { font-size: 42px; }
                font-weight: 900;
                line-height: 1.25;
                letter-spacing: 0.05em;
                text-align: center;
                margin: 10px 0;
                position: relative;
                z-index: 5;

                &.js-wrap-text {
                    .char {
                        display: inline-block;
                        overflow: hidden;
                        &-inner {
                            display: inline-block;
                            transform: translateY(100%);
                            transition: transform 800ms ease;
                        }
                    }
                    &.act {
                        .char {
                            &-inner { transform: translateY(0); }
                            @for $i from 1 through 40 {
                                &:nth-child(#{$i}) .char-inner {
                                    transition-delay: #{300 + ($i * 80)}ms;
                                }
                            }
                        }
                    }
                }
            }
        }
    }
    .l-main {
        padding-bottom: 242px;
        @include maxwidth(768) { padding-bottom: 100px; }
        background-color: $themecolor;
        position: relative;
        z-index: 10;
        margin-top: -100vh;
        .image {
            height: (450 / 1440 * 100vw);
            min-height: 210px;
            overflow: hidden;
            & > img {
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
        }
        .container {
            @include container(1280, 40);
            @include maxwidth(768) {
                margin-left: 20px;
                margin-right: 20px;
                padding-top: 70px;
            }
            .head {
                .c-heading {
                    @include maxwidth(768) { margin: 0 -20px; }
                    .en {
                        margin-top: -0.75em;
                        @include maxwidth(768) { margin-top: 0px; }
                    }
                    .ja {
                        @include maxwidth(360) { font-size: 24px;}
                    }
                }
            }
            .body {
                margin-top: 40px;
                @include maxwidth(768) { margin-top: 30px; }
                .words {
                    @include f_all(24);
                    @include maxwidth(768) { @include f_all(16); }
                    text-align: center;
                    font-weight: 900;
                    line-height: 1.5;
                    @include flex_centering;
                    @include maxwidth(768) {
                        height: 315px;
                        position: relative;
                    }
                    li {
                        width: 265px;
                        aspect-ratio: 1;
                        position: relative;
                        border-radius: 265px;
                        background: $themecolor;
                        mix-blend-mode: plus-lighter;
                        isolation: isolate;
                        @include flex_centering;
                        flex-direction: column;
                        padding: 10px;
                        box-sizing: border-box;
                        @include maxwidth(768) {
                            width: 180px;
                            position: absolute;
                            inset: 50% auto auto 50%;
                            transform: translate(-50%, -50%);
                        }
                        @include maxwidth(360) { width: 155px; }
                        &:nth-child(1) {
                            transform: translateX(25px);
                            @include maxwidth(768) {
                                transform: translate(-50%, -50%) translateY(-36%);
                            }
                        }
                        &:nth-child(2) {
                            @include maxwidth(768) {
                                transform: translate(-50%, -50%) translate(-45%, 36%);
                            }
                        }
                        &:nth-child(3) {
                            transform: translateX(-25px);
                            @include maxwidth(768) {    
                                transform: translate(-50%, -50%) translate(45%, 36%);
                            }
                        }
                        .row { 
                            &.js-wrap-text {
                                line-height: 1.25;
                                .char {
                                    display: inline-block;
                                    overflow: hidden;
                                    &-inner { display: inline-block; }
                                }
                            }
                        }
                    }

                    &.js-scroll-target {
                        li {
                            transform: scale(0.75);
                            transition: transform 800ms ease;
                            @media screen and (min-width: 769px) {
                                &:nth-child(1) { transform: translateX(100%) scale(0.75); }
                                &:nth-child(3) { transform: translateX(-100%) scale(0.75); }
                            }
                            @include maxwidth(768) {
                                transform: translate(-50%, -50%) scale(0.75);
                            }
                        }
                        .row.js-wrap-text {
                            .char {
                                &-inner {
                                    transform: translateY(100%);
                                    transition: transform 800ms 600ms ease;
                                }
                            }
                        }
                        &.act {
                            li {
                                transform: scale(1);
                                &:nth-child(1) {
                                    @media screen and (min-width: 769px) {
                                        transform: translateX(25px) scale(1);
                                    }
                                    @include maxwidth(768) {
                                        transform: translate(-50%, -50%) translateY(-36%);
                                    }
                                }
                                &:nth-child(2) {
                                    @include maxwidth(768) {
                                        transform: translate(-50%, -50%) translate(-45%, 36%);
                                    }
                                }
                                &:nth-child(3) {
                                    @media screen and (min-width: 769px) {
                                        transform: translateX(-25px) scale(1);
                                    }
                                    @include maxwidth(768) {
                                        transform: translate(-50%, -50%) translate(45%, 36%);
                                    }
                                }
                            }
                            .row.js-wrap-text {
                                .char {
                                    &-inner { transform: translateY(0px); }
                                }
                            }
                        }
                    }
                }
                .text {
                    font-size: clamp(20px, (32 / 1024 * 100vw), 32px);
                    font-weight: bold;
                    line-height: 1.6;
                    text-align: center;
                    margin-top: 40px;
                    @include maxwidth(768) {
                        letter-spacing: -0.02em;
                        margin-top: 30px;
                    }
                    p {
                        &:not(:first-child) { margin-top: 1em; }
                        .highlight {}
                    }
                }
                .c-col-buttons {
                    margin-top: 60px;
                    @include maxwidth(768) { margin-top: 50px; }
                    .c-col-button {
                        &__link {
                        }
                    }
                }
            }
        }
    }
}

#toppageService {
    position: relative;
    z-index: 1;
    // margin-top: -40vh;
    .sticky-wrapper {
        height: 400vh;
        .sticky-content {
            position: sticky;
            top: 0;
            left: 0;
            height: 100vh;
            min-height: 500px;
        }
    }
    .bgimage {
        position: absolute;
        inset: 0;
        overflow: hidden;
        .image {
            position: absolute;
            inset: 0;

            &>img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                filter: grayscale(100%);
                transition: transform 1000ms ease-in-out;
            }

            &::after {
                content: "";
                position: absolute;
                inset: 0;
                background: rgba(0, 0, 0, 0.80);
                backdrop-filter: blur(2px);
            }

            opacity: 0;
            transform: scale(1.1);
            transition: opacity 800ms ease-in-out, transform 1000ms ease-in-out;
            
            &.act {
                opacity: 1;
                transform: scale(1);
                
                &>img { transform: scale(1.05); }
            }
        }
    }
    .container {
        height: 100%;
        position: relative;
        // padding: 5vh 0;
        // @include maxwidth(768) {
        //     padding: 3vh 0;
        // }

        .cols {
            display: flex;
            gap: 10px;
            height: 100%;
            @include maxwidth(768) {
                display: block;
                &>* { flex: none !important; }
            }
            .col {
                height: 100%;
                &:nth-child(1) {
                    @include maxwidth(768) {
                        display: none;
                    }
                }
                &:nth-child(2) { flex: 1; }
                .c-heading {
                    // position: sticky;
                    // top: 1rem;
                    // left: 0;
                    .en {
                        color: $themecolor2;
                        writing-mode: vertical-rl;
                        padding-top: 8vh;
                        width: 1.48em;
                        @media screen and (max-width: 768px) and (max-height: 620px) {
                            padding-top: 2vh;
                        }
                    }
                }
                .col-inner {
                    display: flex;
                    flex-direction: column;
                    height: 100%;
                }
                .image-wrapper {
                    @media screen and (min-width: 769px) {
                        display: contents;
                    }
                    @include maxwidth(768) {
                        margin-top: 2vh;
                        display: flex;
                        align-items: flex-end;
                        justify-content: space-between;
                        gap: 20px;
                    }
                    .c-heading {
                        @media screen and (min-width: 769px) { display: none; }
                        .en {
                            @media screen and (max-width: 768px) and (max-height: 700px) {
                                font-size: 40px;
                            }
                            @media screen and (max-width: 768px) and (max-height: 600px) {
                                font-size: 34px;
                            }
                            @media screen and (max-width: 768px) and (max-height: 400px) {
                                font-size: 32px;
                            }
                        }
                    }
                    .image-container {
                        margin-top: 5vh;
                        position: relative;
                        height: 55vh; // コンテナに高さを設定
                        height: 50vh;
                        @include maxwidth(768) {
                            margin-top: 0;
                            max-width: 450px;
                            width: (250 / 375 * 100vw);
                            height: 100%;
                            margin-left: auto;
                            margin-right: 0;
                        }

                        @media screen and (max-height: 500px) and (min-width: 769px) { display: none; }
    
                        .image {
                            position: absolute;
                            inset: 0;
                            visibility: hidden;
                            opacity: 0;
                            pointer-events: none;
                            
                            // 元画像は非表示（ストライプで表示するため）
                            & > img {
                                pointer-events: none;
                                opacity: 0;
                            }
    
                            // ストライプコンテナ
                            .stripes {
                                position: absolute;
                                inset: 0;
                                overflow: hidden;
                                
                                .stripe {
                                    position: absolute;
                                    left: 0;
                                    width: 100%;
                                    // height は JS で動的に設定（分割数に応じて変わる）
                                    border: solid 1px transparent;
                                    margin: -1px;
                                    // 初期状態は閉じた状態
                                    clip-path: inset(100% 0 0 0);
                                }
                            }
    
                            &.act {
                                pointer-events: auto;
                                z-index: 2; // アクティブな画像を最前面に
                                // visibility と opacity は GSAP で制御
                            }
                        }
                        
                        .pagination {
                            @include ff_en;
                            @include f_all(40);
                            @include maxwidth(768) { @include f_all(32); }
                            font-weight: bold;
                            line-height: 2;
                            position: absolute;
                            z-index: 5;
                            inset: auto auto 30px 10px;
                            @media screen and (max-height: 600px) and (min-width: 769px) {
                                inset: auto auto 5px 10px;
                            }
                            @media screen and (min-width: 769px) and (min-height: 600px) {
                                writing-mode: vertical-rl;
                            }
                            @include maxwidth(768) {
                                inset: auto auto 0px -1.45em;
                            }
                            display: flex;
                            flex-direction: row;
                            align-items: center;
                            gap: 0.15em;
                            clip-path: inset(0 0 100% 0);
                            transition: clip-path 800ms ease;
                            &.visible { clip-path: inset(0 0 0 0); }
                            .current {
                                width: 1.1em;
                                height: 1.1em;
                                position: relative;
                                overflow: hidden;
                                .num {
                                    line-height: 1;
                                    position: absolute;
                                    inset: 0;
                                    margin: auto;
                                    opacity: 0;
                                    transform: translateX(100%);
                                    @include maxwidth(768) {
                                        transform: translateY(100%);
                                    }
                                    transition: opacity 400ms ease, transform 0ms 400ms ease-in-out;
                                    &.act {
                                        transition: opacity 0ms, transform 1000ms ease-in-out;
                                        opacity: 1;
                                        transform: translateX(0);
                                        @include maxwidth(768) {
                                            transform: translateY(0);
                                        }
                                    }
                                }
                            }
                            .separator {}
                            .total {
                                .num {}
                            }
                        }
                    }
                }
                .docs {
                    flex: 1;
                    padding: 30px (30 / 1440 * 100vw) 2vh 0;
                    box-sizing: border-box;
                    position: relative;
                    @include maxwidth(768) {
                        padding: 30px 0 60px 0;
                        margin: 0 20px;
                    }
                    @include maxwidth(360) { padding-top: 20px; }
                    @media screen and (max-width: 768px) and (max-height: 450px) {
                        padding-top: 10px;
                    }
                    &-item {
                        overflow-y: auto;
                        -ms-overflow-style: none;
                        scrollbar-width: none;
                        &::-webkit-scrollbar { display: none; }

                        max-width: 1280px;

                        display: none;
                        // GSAPで制御するためCSSのアニメーションは削除
                        &.act {
                            display: block;
                            // display は GSAP で制御
                        }
                        .docs-head {
                            .c-heading {
                                align-items: flex-start;
                                .ja {
                                    text-align: left;
                                    // display: -webkit-box;
                                    // -webkit-line-clamp: 1;
                                    // -webkit-box-orient: vertical;
                                    // overflow: hidden;
                                    // text-overflow: ellipsis;

                                    @include maxwidth(360) { font-size: 24px; }

                                    @media screen and (max-width: 768px) and (max-height: 450px) {
                                        font-size: 24px;
                                    }
                                    @media screen and (max-width: 768px) and (max-height: 380px) {
                                        font-size: 20px !important;
                                    }


                                    &.js-wrap-text {
                                        line-height: 1.25;
                                        .char {
                                            display: inline-block;
                                            overflow: hidden;
                                            &-inner {
                                                display: inline-block;
                                            }
                                        }
                                    }
                                }
                            }
                        }
                        .docs-body {
                            margin-top: 10px;
                            .text {
                                @include f_all(24);
                                @include maxwidth(768) { @include f_all(20); }
                                @include maxwidth(360) { @include f_all(18); }
                                font-weight: bold;
                                line-height: 1.6;
                                display: -webkit-box;
                                -webkit-box-orient: vertical;
                                overflow: hidden;
                                text-overflow: ellipsis;
                                -webkit-line-clamp: 8;
                                @media screen and (max-width: 768px) and (max-height: 660px) {
                                    -webkit-line-clamp: 4;
                                }
                                @media screen and (max-width: 768px) and (max-height: 450px) {
                                    @include f_all(16);
                                    -webkit-line-clamp: 3;
                                }
                                @media screen and (max-width: 768px) and (max-height: 400px) {
                                    @include f_all(14);
                                    -webkit-line-clamp: 2;
                                }
                                @media screen and (max-width: 768px) and (max-height: 320px) {
                                    @include f_all(13);
                                }
                            }
                            .c-buttons {
                                justify-content: flex-start;
                                margin-top: 20px;
                                @include maxwidth(768) { margin-top: 15px; }
                                @media screen and (max-width: 768px) and (max-height: 320px) {
                                    margin-top: 10px;
                                }
                                .c-button {
                                    &__link {
                                        .cta {
                                            @media screen and (max-width: 768px) and (max-height: 400px) {
                                                width: 45px;
                                                height: 45px;
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}

#toppageRecruit {
    padding-top: 60px;
    @include maxwidth(768) {
        padding-top: 50px;
    }
    position: relative;
    &::before {
        content: "";
        position: absolute;
        inset: auto 0 calc(100% - 285px) 0;
        width: 100%;
        height: 856px;
        background-color: $accentcolor;
        clip-path: polygon(0 0, 100% 25%, 100% 100%, 0 75%);
        @include maxwidth(768) {
            height: 200px;
            inset: auto 0 calc(100% - 148px) 0;
        }
    }
    .l-main {
        padding-top: (600 / 1440 * 100vw);
        @include maxwidth(768) {
            padding-top: (180 / 375 * 100vw);
        }
        padding-bottom: 90px;
        @include maxwidth(768) { padding-bottom: 30px; }
        position: relative;
        .images {
            position: absolute;
            inset: 0 0 auto 0;
            margin: auto;
            .image {
                position: absolute;
                overflow: hidden;
                display: flex;
                align-items: flex-end;
                & > img {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                }
                &:nth-child(1) {
                    inset: 0 auto auto (80 / 1440 * 100vw);
                    width: (470 / 1440 * 100vw);
                    // aspect-ratio: 470 / 535;
                    height: (535 / 1440 * 100vw);
                    @include maxwidth(768) {
                        z-index: 1;
                        inset: (180 / 375 * 100vw) auto auto (20 / 375 * 100vw);
                        width: (250 / 375 * 100vw);
                        // aspect-ratio: 250 / 175;
                        height: (175 / 375 * 100vw);
                    }
                }
                &:nth-child(2) {
                    inset: 120px 0 auto auto;
                    width: (980 / 1440 * 100vw);
                    // aspect-ratio: 980 / 500;
                    height: (500 / 1440 * 100vw);
                    @include maxwidth(768) {
                        inset: 0 0 auto 0;
                        width: 100%;
                        // aspect-ratio: 375 / 210;
                        height: (210 / 375 * 100vw);
                    }
                }
            }
        }
        .container {
            margin: 0 40px;
            @include maxwidth(768) { margin: 0 20px; }
            position: relative;
            z-index: 1;
            .head {
                position: relative;
                .c-heading {
                    .en {
                        color: $accentcolor;
                        writing-mode: vertical-rl;
                        position: absolute;
                        z-index: 1;
                        inset: 0 auto auto -40px;
                        width: 1.48em;
                        @include maxwidth(768) { inset: 0 -20px auto auto; }
                    }
                    .ja {
                        margin-top: 80px;
                        @include maxwidth(768) {
                            margin-top: (210 / 375 * 100vw);
                        }
                    }
                }
            }
            .body {
                position: relative;
                .text {
                    font-size: clamp(20px, (32 / 1024 * 100vw), 32px);
                    @include maxwidth(360) { font-size: 18px; }
                    font-weight: bold;
                    line-height: 1.6;
                    text-align: center;
                    margin-top: 20px;
                    @include maxwidth(768) {
                        letter-spacing: -0.08em;
                    }
                    p {
                        &:not(:first-child) { margin-top: 1em; }
                    }
                    .highlight {
                        &::before { background-color: $accentcolor; }
                    }
                }
                .recruit-items {
                    display: grid;
                    grid-template-columns: repeat(3, 1fr);
                    grid-template-rows: repeat(3, 1fr);
                    gap: 10px 20px;
                    margin-top: 67px;
                    @include maxwidth(1200) {
                        grid-template-columns: 1fr;
                        grid-template-rows: auto;
                    }
                    @include maxwidth(768) {
                        margin-top: 20px;
                    }
                    .recruit-item {
                        &:nth-child(1) { grid-area: 1 / 1 / 2 / 3; }
                        &:nth-child(2) { grid-area: 2 / 1 / 3 / 3; }
                        &:nth-child(3) { grid-area: 1 / 3 / 3 / 4; }
                        &:nth-child(4) { grid-area: 3 / 1 / 4 / 4; }
                        @include maxwidth(1200) {
                            grid-area: auto !important;
                        }
                        &__link {
                            container-type: inline-size;
                            display: block;
                            padding: 50px 40px;
                            @include maxwidth(768) {
                                padding: 20px 10px 10px;
                            }
                            box-sizing: border-box;
                            background-color: $accentcolor;
                            height: 100%;
                            overflow: hidden;
                            position: relative;
                            z-index: 0;
                            transform-origin: center;
                            transition: transform 400ms ease-in-out;
                            &::before, &::after {
                                content: "";
                                position: absolute;
                                inset: 0;
                                margin: auto;
                                background-color: #000;
                                z-index: -1;
                                transition: transform 500ms ease-in-out;
                            }
                            &::before {
                                transform: translateY(-100%);
                            }
                            &::after {
                                transform: translateY(100%);
                            }
                            @media (any-hover: hover) {
                                &:hover {
                                    cursor: url(../images/cursor-check-accent.svg), auto;
                                    transform: scale(0.97);
                                    &::before, &::after { transform: translateY(0%); }
                                    .cols {
                                        .col {
                                            .heading .ja {
                                                background-color: $accentcolor;
                                            }
                                            .text {
                                                .highlight::before {
                                                    background-color: $accentcolor;
                                                }
                                            }
                                            .button {
                                                .arrow {
                                                    &::before, &::after {
                                                        transition: 400ms ease-in-out;
                                                    }
                                                    &::before {
                                                        opacity: 0;
                                                        transform: translate(15px, -15px) scale(0.8);
                                                    }
                                                    &::after {
                                                        opacity: 1;
                                                        transform: translate(0, 0) scale(1);
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                            .cols {
                                display: flex;
                                justify-content: space-between;
                                gap: 50px;
                                @include maxwidth(768) {
                                    gap: 25px;
                                }
                                @container (width < 768px) {
                                    & {
                                        flex-direction: column;
                                    }
                                }
                                .col {
                                    &>* { display: block; }
                                    .heading {
                                        display: flex;
                                        flex-direction: column;
                                        align-items: flex-start;
                                        gap: 10px;
                                        .en {
                                            @include ff_en;
                                            font-size: clamp(48px, (64 / 1024 * 100vw), 64px);
                                            font-weight: bold;
                                            line-height: 1;
                                            text-transform: uppercase;
                                        }
                                        .ja {
                                            @include f_all(16);
                                            @include maxwidth(768) { @include f_all(15); }
                                            font-weight: 900;
                                            letter-spacing: 0.10em;
                                            line-height: 1;
                                            display: inline-flex;
                                            align-items: center;
                                            justify-content: center;
                                            padding: 0 6px 2px;
                                            @include maxwidth(768) {
                                                padding-bottom: 1px;
                                            }
                                            box-sizing: border-box;
                                            color: $themetextcolor;
                                            background-color: #000;
                                            min-height: 25px;
                                        }
                                    }
                                    .text {
                                        @include f_all(24);
                                        @include maxwidth(768) { @include f_all(20); }
                                        @include maxwidth(360) { @include f_all(18); }
                                        text-align: left;
                                        margin-top: 0;
                                        .highlight {
                                            &::before { background-color: #000; }
                                        }
                                    }
                                    .button {
                                        @include f_all(20);
                                        font-weight: 900;
                                        line-height: normal;
                                        letter-spacing: 0.05em;
                                        padding-left: 20px;
                                        margin-top: 10px;
                                        position: relative;
                                        @include maxwidth(768) {
                                            @include f_all(18);
                                            margin-top: 20px;
                                        }
                                        .arrow {
                                            position: absolute;
                                            inset: 0.75em auto auto 0;
                                            &::before, &::after {
                                                content: "";
                                                display: block;
                                                position: absolute;
                                                inset: 0;
                                                margin: auto;
                                                width: 13px;
                                                height: 14px;
                                                background: url(../images/arrow-white.svg) no-repeat center / contain;
                                                transition: none;
                                            }
                                            &::before {
                                                opacity: 1;
                                                transform: translate(0, 0) scale(1);
                                            }
                                            &::after {
                                                opacity: 0;
                                                transform: translate(-15px, 15px) scale(0.8);
                                            }
                                        }
                                        .title {}
                                    }
                                }
                            }
                        }
                    }
                }
                .youtube-container {
                    margin-top: 60px;
                    @include maxwidth(768) { margin-top: 30px; }
                    iframe {
                        width: 100%;
                        height: (763 / 1440 * 100vw);
                        max-height: 85vh;
                    }
                }
            }
        }
    }
    .l-bottom {
        .parallax-image {
            height: (300 / 1440 * 100vw);
            min-height: 210px;
            overflow: hidden;
            position: relative;
            & > img {
                width: 100%;
                height: calc(100% + 250px);
                object-fit: cover;
            }
        }
    }
}

#toppageNews {
    padding: 20px 0 50px;
    @include maxwidth(768) { padding-bottom: 20px; }
    position: relative;
    z-index: 0;
    &::before {
        content: "";
        position: absolute;
        z-index: -1;
        inset: auto 0 -275px 0;
        width: 100%;
        height: 850px;
        background: linear-gradient(180deg, #000 0%, #0A224F 130.37%);
        clip-path: polygon(0 25%, 100% 0%, 100% 75%, 0% 100%);
        @include maxwidth(768) {
            inset: auto 0 -223px 0;
            height: 512px;
            clip-path: polygon(0 15%, 100% 0%, 100% 85%, 0% 100%);
        }
    }
    .container {
        @include container(1320, 40);
        @include maxwidth(768) {
            margin-left: 20px;
            margin-right: 20px;
        }
        .head {
            .c-heading {
                .en { color: $themecolor2; }
            }
        }
        .body {
            @include maxwidth(768) { margin-top: 10px; }
            .news-terms {
                @include maxwidth(768) {
                    padding-left: 20px;
                    padding-right: 20px;
                    box-sizing: border-box;
                    margin-left: -20px;
                    margin-right: -20px;
                }
                ul {
                    @include maxwidth(768) {
                        flex-wrap: nowrap !important;
                        gap: 0px !important;
                    }
                    li {
                        width: auto;
                        @include maxwidth(768) {
                            flex: none !important;
                            width: 180px;
                        }
                        a {
                            &.all {}
                            &.current {}
                        }
                    }
                }
            }
            .news-headline {
                @include maxwidth(768) {
                    padding-left: 20px;
                    padding-right: 20px;
                    box-sizing: border-box;
                    margin-left: -20px;
                    margin-right: -20px;
                }
                .headline-items {
                    @include maxwidth(768) {
                        display: flex;
                        flex-wrap: nowrap !important;
                        gap: 0px !important;
                    }
                    .headline-item {
                        @include maxwidth(768) {
                            flex: none !important;
                        }
                        &__link {  }
                    }
                }
            }
        }
    }
}

#toppageInstagram {
    padding: 50px 0 80px;
    @include maxwidth(768) { padding: 20px 0 50px; }
    position: relative;
    .container {
        margin: 0 40px;
        @include maxwidth(768) {
            margin-left: 20px;
            margin-right: 20px;
        }
        text-align: center;
        a {
            display: inline-block;
            @media (any-hover: hover) {
                transition: transform 400ms ease-in-out;
                will-change: transform;
                &:hover { transform: scale(0.97); }
            }
        }
        picture {
            source {}
            & > img {}
        }
    }
}

// ===  Subpage === //

#subpageTopicpath {
    @include f_all(18);
    @include maxwidth(768) { @include f_all(16); }
    font-weight: bold;
    letter-spacing: 0.05em;
    position: relative;
    margin-top: 45px;
    @include maxwidth(768) { margin-top: 35px;}
    .container {
        margin: 0 40px;
        @include maxwidth(768) { margin: 0 20px; }
        position: relative;
        ul {
            li {
                display: inline-flex;
                align-items: center;

                &::after {
                    content: "";
                    flex-shrink: 0;
                    display: block;
                    width: 12px;
                    height: 14px;
                    background: url(../images/arrow-right-white.svg) no-repeat center center / cover;
                    margin: 0 10px;
                }

                &:last-child::after { display: none; }

                &.en {
                    @include ff_en;
                    text-transform: uppercase;
                }
                &.ja {
                    @include f_all(15);
                    @include maxwidth(768) { @include f_all(14); }
                }
            }
        }
    }
}

#subpageHeading {
    margin-top: 50px;
    @include maxwidth(768) { margin-top: 35px; }
    position: relative;
    .container {
        margin: 0 40px;
        @include maxwidth(768) { margin: 0 20px; }
        @include maxwidth(360) { margin: 0 15px; }
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        position: relative;
        .heading {
            @include f_all(16);
            @include maxwidth(768) { @include f_all(14); }
            @include maxwidth(360) { @include f_all(12); }
            font-weight: 900;
            line-height: normal;
            letter-spacing: 0.10em;
            padding: 0 6px 2px;
            @include maxwidth(768) { padding: 0 3px 2px; }
            box-sizing: border-box;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 1.5625em;
            background-color: $accentcolor;
            position: relative;
            z-index: 1;

            &-en {
                color: $themecolor2;
                @include ff_en;
                font-size: clamp(60px, (180 / 1440 * 100vw), 180px);
                @include maxwidth(360) { font-size: 50px; }
                font-weight: bold;
                line-height: 1;
                text-transform: uppercase;

                &.js-wrap-text {
                    .char {
                        &-inner {
                            &-inner {
                                @include mask-text();
                            }
                        }
                    }
                }
            }
        }
    }
}

#subpageContent {
    // margin: 100px 0 120px;
    // @include maxwidth(768) { margin: 80px 0 100px; }
    margin-top: 100px;
    padding-bottom: 120px;
    @include maxwidth(768) { 
        margin-top: 60px;
        padding-bottom: 60px;
    }
    position: relative;
    .container {
        @include container(1360, 40);
        @include maxwidth(768) {
            margin-left: 20px;
            margin-right: 20px;
        }
    }
}

.default {
    @include contentdefault;
    @include eachcss;
}

#subpageNavigation {
    margin: 56px 40px 80px;
    @include maxwidth(768) {
        margin: 40px 20px 60px;
    }
    position: relative;
    .c-col-buttons {  }
    .c-col-button {
        &__link {
            border-color: #404040;
            .en {  }
            .ja { background-color: $themecolor2; }
            .arrow {
                &::before, &::after {
                    background-image: url(../images/arrow-bottom-white.svg);
                }
                &::before {
                    opacity: 1;
                    transform: translate(0, 0) scale(1);
                }
                &::after {
                    opacity: 0;
                    transform: translate(0, -15px) scale(0.8);
                    @include maxwidth(768) {
                        transform: translate(0, -10px) scale(0.8);
                    }
                }
            }
            @media (any-hover: hover) {
                &:hover {
                    .arrow {
                        &::before {
                            opacity: 0;
                            transform: translate(0, 15px) scale(0.8);
                            @include maxwidth(768) {
                                transform: translate(0, 10px) scale(0.8);
                            }
                        }
                        &::after {
                            opacity: 1;
                            transform: translate(0, 0) scale(1);
                        }
                    }
                }
            }
        }
    }
}

.pager {
    text-align: center;
    margin: 40px 0;
    @include f_all(14);
    a,
    span {
        display: inline-block;
        margin: 0 0 0.25em 0.75em;
        min-width: 3em;
        padding: 1em;
        box-sizing: border-box;
        background-color: #afafb0;
        color: #fff;
    }
    .current {
        background-color: $themecolor;
    }
}

.monthly_archive_link {
    @include container(800, 10);
    margin-top: 50px;
    @include f_all(14);
    a.show_archive_links {
        display: block;
        width: 200px;
        height: 30px;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: mix($basetextcolor, $basecolor, 0.1);
        margin: auto;
        border-radius: 30px;
        position: relative;
        &:after {
            content: ">";
            display: inline-block;
            transform: rotateZ(90deg) scaleX(0.5);
            position: absolute;
            right: 30px;
            top: 0;
            bottom: 0;
            margin: auto;
        }
    }
    ul {
        margin-top: 20px;
        display: none;
        &.show {
            display: flex;
        }
        justify-content: center;
        flex-wrap: wrap;
        li {
            margin: 0 5px 10px;
            flex: 0 0 113px;
            text-align: center;
            a {
                display: block;
                background-color: mix($basetextcolor, $basecolor, 0.05);
                padding: 7px 0;
                border-radius: 15px;
            }
        }
    }
}

// Philosophy page MVV sections
#mvv {
    margin: 80px 0;
    @include maxwidth(768) { margin: 60px 0; }
    position: relative;

    .mvv-cols {
        padding: 80px 0;
        @include maxwidth(768) { padding: 60px 0; }
        align-items: flex-end;
        display: flex;
        gap: (80 / 1440 * 100vw);
        margin-right: (105 / 1440 * 100vw);
        @include maxwidth(1024) { gap: (20 / 768 * 100vw); }
        @include maxwidth(768) { margin-right: 20px; }
        .mvv-col {
            &:nth-child(1) {
                // flex-shrink: 0;
                .heading-en {
                    @include ff_en;
                    color: $themecolor2;
                    font-size: clamp(52px, (128 / 1200 * 100vw), 128px);
                    font-weight: bold;
                    line-height: normal;
                    letter-spacing: 0.05em;
                    text-transform: uppercase;
                    position: sticky;
                    top: 1rem;
                    left: 0;
                    writing-mode: vertical-rl;
                    width: 1.5em;
                    & > span {
                        color: transparent;
                        -webkit-text-stroke: 1px #404040;
                        text-stroke: 1px #404040; // fallback for some browsers
                    }
                }
            }
            &:nth-child(2) {
                // flex-grow: 1;
                // flex-basis: 0;
            }
        }
    }

    .mvv-image {
        height: (350 / 1440 * 100vw);
        min-height: 210px;
        margin-right: 40px;
        @include maxwidth(768) { margin-right: 20px; }
        position: relative;
        overflow: hidden;
        display: flex;
        align-items: flex-end;
        &>img { 
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }

    .mvv-images {
        height: (505 / 1440 * 100vw);
        margin: 0 40px;
        @include maxwidth(768) {
            margin: 0;
            height: 95vw;
        }
        position: relative;
        .image {
            position: absolute;
            overflow: hidden;
            display: flex;
            align-items: flex-end;
            &:nth-child(1) {
                inset: 0 0 auto auto;
                width: (940 / 1440 * 100vw);
                // aspect-ratio: 940 / 445;
                height: (445 / 1440 * 100vw);
                @include maxwidth(768) {
                    width: 100%;
                    height: (500 / 768 * 100vw);
                }
            }
            &:nth-child(2) {
                inset: auto auto 0 0;
                z-index: 1;
                width: (470 / 1440 * 100vw);
                // aspect-ratio: 470 / 445;
                height: (445 / 1440 * 100vw);
                @include maxwidth(768) {
                    inset: auto auto 0 (20 / 768 * 100vw);
                    width: (370 / 768 * 100vw);
                    height: (345 / 768 * 100vw);
                }
            }
            &>img {
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
        }
    }

    .mvv-heading {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        position: relative;
        .text {
            @include f_all(16);
            @include maxwidth(768) { @include f_all(15); }
            font-weight: 900;
            letter-spacing: 0.10em;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0 6px 2px;
            @include maxwidth(768) {
                padding: 0 3px 2px;
            }
            box-sizing: border-box;
            color: $accenttextcolor;
            background-color: $accentcolor;
            min-height: 25px;
        }
        .text2 {
            font-size: clamp(28px, (40 / 1024 * 100vw), 40px);
            font-weight: 900;
            line-height: 1.2;
            & > strong {
                font-size: clamp(46px, (128 / 1200 * 100vw), 128px);
                font-weight: 900;
                margin-right: 10px;

                &.js-wrap-text {
                    line-height: 1.1;
                    .char {
                        display: inline-block;
                        &-inner { display: inline-block; }
                    }
                    &.js-scroll-target {
                        .char {
                            overflow: hidden;
                            transform: translateY(0.05em);
                            &-inner {
                                transform: translateY(100%);
                                transition: transform 800ms ease;
                            }
                        }
                        &.act {
                            .char {
                                &-inner { transform: translateY(0); }
                                @for $i from 0 to 20 {
                                    &:nth-child(#{$i + 1}) .char-inner {
                                        transition-delay: #{$i * 80}ms;
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }

    .mvv-text {
        font-size: clamp(20px, (32 / 1024 * 100vw), 32px);
        font-weight: bold;
        line-height: 1.5;
        margin-top: 10px;
        .highlight {
        }
    }
    
    .mvv-list {
        margin: 0 40px 80px;
        @include maxwidth(768) {
            margin: 0 20px 60px;
        }
        position: relative;
        ul {
            display: flex;
            flex-wrap: wrap;
            gap: 80px 50px;
            @include maxwidth(768) {
                gap: 30px 20px;
            }
            counter-reset: mvv-list-num;
            li {
                counter-increment: mvv-list-num;
                flex-basis: calc((100% - (50px * 2)) / 3);
                @include maxwidth(768) {
                    flex-basis: calc((100% - (20px * 1)) / 2);
                }
                @include maxwidth(480) { flex-basis: 100%; }
                &>* { display: block; }
                .title {
                    font-size: clamp(28px, (38 / 1024 * 100vw), 38px);
                    font-weight: bold;
                    line-height: 1.2;
                    display: flex;
                    align-items: flex-start;
                    gap: 0.5em;
                    @include maxwidth(1200) {
                        flex-direction: column;
                        align-items: initial;
                    }
                    &::before {
                        flex-shrink: 0;
                        content: counter(mvv-list-num, decimal-leading-zero);
                        @include ff_en;
                        font-size: clamp(64px, (96 / 1200 * 100vw), 96px);
                        color: $themecolor2;
                        font-weight: 500;
                        line-height: 1;
                        margin-top: -0.05em;
                        @include maxwidth(1200) {
                            margin-top: 0;
                        }
                    }
                }
                .text {
                    @include f_all(16);
                    @include maxwidth(768) { @include f_all(15); }
                    font-weight: bold;
                    line-height: 1.5;
                    margin-top: 10px;
                }

                &.js-scroll-target {
                    opacity: 0;
                    transform: translateY(30px);
                    transition: opacity 800ms ease, transform 800ms ease;
                    &.act {
                        opacity: 1;
                        transform: translateY(0);

                        // 3列レイアウトで各行の最初の3アイテムにdelayを設定
                        @media screen and (min-width: 769px) {
                            @for $i from 1 through 20 {
                                &:nth-child(#{$i}) {
                                    $colIndex: ($i - 1) % 3;
                                    @if $colIndex == 0 {
                                        transition-delay: 0ms;
                                    } @else if $colIndex == 1 {
                                        transition-delay: 150ms;
                                    } @else {
                                        transition-delay: 300ms;
                                    }
                                }
                            }
                        }
                        @media screen and (max-width: 768px) and (min-width: 481px) {
                            @for $i from 1 through 20 {
                                &:nth-child(#{$i}) {
                                    $colIndex: ($i - 1) % 2;
                                    @if $colIndex == 0 {
                                        transition-delay: 0ms;
                                    } @else if $colIndex == 1 {
                                        transition-delay: 150ms;
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }

    }

    #mission {
        position: relative;
        &::before {
            content: "";
            position: absolute;
            inset: auto 0 -147px 0;
            width: 100%;
            height: 295px;
            background-color: #242424;
            clip-path: polygon(0 0, 100% 55%, 100% 100%, 0 45%);
            @include maxwidth(768) {
                inset: auto 0 -120px 0;
                height: 240px;
                clip-path: polygon(0 0, 100% 25%, 100% 100%, 0 75%);
            }
        }
    }
    
    #vision {
        position: relative;
        &::before {
            content: "";
            position: absolute;
            inset: auto 0 -110px 0;
            width: 100%;
            height: 295px;
            background-color: #242424;
            clip-path: polygon(0 55%, 100% 0, 100% 45%, 0% 100%);
            @include maxwidth(768) {
                inset: auto 0 -120px 0;
                height: 240px;
                clip-path: polygon(0 25%, 100% 0, 100% 75%, 0% 100%);
            }
        }
    }
    
    #value {
        position: relative;
        &::before {
            content: "";
            position: absolute;
            inset: auto 0 -173px 0;
            width: 100%;
            height: 295px;
            background-color: #242424;
            clip-path: polygon(0 0, 100% 55%, 100% 100%, 0 45%);
            @include maxwidth(768) {
                inset: auto 0 -120px 0;
                height: 240px;
                clip-path: polygon(0 0, 100% 25%, 100% 100%, 0 75%);
            }
        }
        .slider.swiper {
            .swiper-wrapper {
                .swiper-slide {
                    width: 420px;
                    @include maxwidth(768) { width: 340px; }
                    aspect-ratio: 1;
                    position: relative;
                    & > img {
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                    }
                }
            }
        }
    }
    
    #concept {
        .mvv-cols {
            align-items: initial;
            .mvv-col {
                &:nth-child(1) {
                }
                &:nth-child(2) {
                    margin-top: 25px;
                }
            }
        }

        .c-col-buttons {
            margin-top: 40px;
        }
    }
}

#subpageOriginalContent {
    margin: 60px 0 80px;
    position: relative;

// === concept page ===
    .concept-main-image {
        margin-bottom: 100px;
        position: relative;
        z-index: 0;
        &:before {
            content: "";
            position: absolute;
            z-index: -1;
            inset: auto 0 -65px 0;
            height: 295px;
            background-color: $themecolor;
            clip-path: polygon(100% 0, 100% 25%, 0 100%, 0 76%);
        }
        figure {
            height: (350 / 1440 * 100vw);
            min-height: 350px;
            @include maxwidth(768) { min-height: 280px; }
            margin-right: (40 / 1440 * 100vw);
            @include maxwidth(768) { margin-right: 20px; }
            overflow: hidden;
            display: flex;
            align-items: flex-end;
            position: relative;
            &>img {
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
        }
    }

    .c-subpage-heading {
        font-size: clamp(60px, (128 / 1440 * 100vw), 128px);
        @include maxwidth(360) { font-size: 55px; }
        @include flex_centering;
        position: relative;
        .en {
            @include ff_en;
            font-weight: bold;
            color: $themecolor2;
            text-transform: uppercase;
            text-align: center;
        }
        .ja {
            white-space: nowrap;
            @include f_all(16);
            @include maxwidth(768) { @include f_all(15); }
            @include maxwidth(360) { @include f_all(14); }
            font-weight: 900;
            letter-spacing: 0.10em;
            padding: 0 10px 2px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            box-sizing: border-box;
            background-color: $themecolor;
            min-height: 1.5625em;
            position: absolute;
            inset: auto auto 20px 50%;
            transform: translateX(-50%);
            @include maxwidth(1024) { inset: auto auto 10px 50%; }
            @include maxwidth(768) { inset: auto auto 5px 50%; }
        }
    }

    .container {
        @include container(1280, 40);
        @include maxwidth(768) {
            margin-left: 20px;
            margin-right: 20px;
        }
    }

    #conceptChallenges {
        margin: 100px 0 180px;
        @include maxwidth(768) { margin: 80px 0 120px; }
        position: relative;
        .container {
            .text {
                @include f_all(20);
                @include maxwidth(768) { @include f_all(18); }
                font-weight: bold;
                line-height: 1.8;
                margin-top: 45px;
            }
            .figure {
                margin: 100px 0 30px;
                @include maxwidth(768) { margin-top: 80px; }
                &>img {  }
            }

            .concept-table {
                table {
                    width: 100%;
                    tbody {
                        display: flex;
                        gap: 3px;
                        @include maxwidth(1024) {
                            flex-direction: column;
                            gap: 30px;
                            &>* { flex: none !important; }
                        }
                        tr {
                            flex: 1;
                            th, td { display: block; }
                            &:nth-child(1) th {
                                background: $themecolor;
                            }
                            &:nth-child(2) th {
                                background: linear-gradient(90deg, $themecolor 0%, $themecolor2 100%);
                                @include maxwidth(1024) {
                                    background: linear-gradient(180deg, $themecolor 0%, $themecolor2 100%);
                                }
                            }
                            &:nth-child(3) th {
                                background: $themecolor2;
                            }
                            th {
                                @include f_all(40);
                                font-weight: bold;
                                line-height: 1.2;
                                @include flex_centering;
                                flex-direction: column;
                                gap: 2px;
                                min-height: 120px;
                                background-color: $themecolor;
                                padding-bottom: 0.25em;
                                @include maxwidth(1024) { padding-bottom: 0; }
                                @include maxwidth(768) {
                                    @include f_all(32);
                                    min-height: 100px;
                                }
                                box-sizing: border-box;
                                .subtitle {
                                    @include f_all(16);
                                    font-weight: bold;
                                }
                            }
                            td {
                                margin-top: 20px;
                                @include maxwidth(768) { margin-top: 16px; }
                                .t {
                                    // @include f_all(32);
                                    font-size: clamp(26px, (32 / 1024 * 100vw), 32px);
                                    @include maxwidth(360) { font-size: 22px; }
                                    font-weight: bold;
                                    line-height: 1.6;
                                    text-align: center;
                                    @include flex_centering;
                                    flex-direction: column;
                                    min-height: 3.2em;
                                }
                                .issue {
                                    display: flex;
                                    flex-direction: column;
                                    gap: 4px;
                                    margin-top: 20px;
                                    li {
                                        @include f_all(24);
                                        @include maxwidth(768) { @include f_all(20); }
                                        @include maxwidth(360) { @include f_all(18); }
                                        font-weight: bold;
                                        line-height: 1.6;
                                        @include flex_centering;
                                        color: #000;
                                        background-color: #F6F6F6;
                                        padding: 0.15em 1em;
                                        box-sizing: border-box;
                                        min-height: 2.5em;
                                        text-align: center;
                                        &.mark {
                                            color: #fff;
                                            background-color: #000;
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }

    #conceptBrandImage {
        padding: 125px 0 180px;
        @include maxwidth(768) { padding: 100px 0 120px; }
        background-color: #FFF;
        position: relative;
        .c-subpage-heading {
            position: absolute;
            inset: -0.65em 0 auto 0;
        }
        .container {
            .figure {
                max-width: 840px;
                width: 100%;
                margin: 0 auto;

                &>img {  }

                &.js-scroll-target {
                    position: relative;
                    &::after {
                        content: "";
                        position: absolute;
                        inset: 0;
                        background-color: $themecolor;
                        clip-path: inset(0 0 0 0);
                        transition: clip-path 800ms ease;
                    }
                    &.act {
                        &::after { clip-path: inset(0 0 0 100%); }
                    }
                }
            }
        }
    }

    #conceptManagementPhilosophy {
        padding: 125px 0 158px;
        @include maxwidth(768) { padding: 110px 0; }
        position: relative;
        .c-subpage-heading {
            position: absolute;
            inset: -0.65em 0 auto 0;
        }
        .leadtext {
            font-size: clamp(32px, (76 / 1200 * 100vw), 76px);
            @include maxwidth(360) { font-size: 28px; }
            font-weight: 900;
            line-height: normal;
            text-align: center;
            margin: 0 10px;
            @include maxwidth(360) { margin: 0 5px; }

            &.js-scroll-target {
                .char {
                    display: inline-block;
                    overflow: hidden;
                    &-inner {
                        display: inline-block;
                        transform: translateY(100%);
                        transition: transform 800ms ease;
                        &-inner-inner {  }
                    }
                }
                &.act {
                    .char {
                        &-inner { transform: translateY(0%); }
                        @for $i from 0 to 50 {
                            &:nth-child(#{$i + 1}) .char-inner {
                                transition-delay: #{$i * 80}ms;
                            }
                        }
                    }
                }
            }
        }
    }

    #conceptPointer {
        padding: 110px 0 158px;
        @include maxwidth(768) { padding: 80px 0 120px; }
        box-sizing: border-box;
        color: $basecolor;
        background-color: #FFF;
        position: relative;
        .c-subpage-heading {
            color: #FFF;
            position: absolute;
            inset: -0.65em 0 auto 0;
        }
        .container {
            &>*:not(:first-child) {
                margin-top: 40px;
                @include maxwidth(768) { margin-top: 30px; }
            }
            h3 {
                color: #FFF;
                display: flex;
                flex-direction: column;
                align-items: flex-start;
                padding: 45px 10px 25px calc(50vw - 50%);
                @include maxwidth(768) { padding: 30px 10px 20px calc(50vw - 50%); }
                box-sizing: border-box;
                background-color: $basecolor;
                margin-left: calc(50% - 50vw);
                .en {
                    @include f_all(16);
                    font-weight: 900;
                    line-height: normal;
                    text-transform: uppercase;
                }
                .ja {
                    font-size: clamp(24px, (64 / 1200 * 100vw), 64px);
                    font-weight: 900;
                    line-height: normal;
                    &.js-scroll-target {
                        .char {
                            display: inline-block;
                            overflow: hidden;
                            &-inner {
                                display: inline-block;
                                transform: translateY(100%);
                                transition: transform 800ms ease;
                                &-inner-inner {  }
                            }
                        }
                        &.act {
                            .char {
                                &-inner { transform: translateY(0%); }
                                @for $i from 0 to 50 {
                                    &:nth-child(#{$i + 1}) .char-inner {
                                        transition-delay: #{$i * 80}ms;
                                    }
                                }
                            }
                        }
                    }
                }
            }

            .pointer-list {
                &.basic-pointer {
                    --pointer-list-color: #798b60;
                }
                &.mobile-pointer {
                    --pointer-list-color: #1D2D61;
                }
                position: relative;
                &.js-scroll-target {
                    opacity: 0;
                    transform: translateY(1em);
                    transition: transform 800ms ease, opacity 800ms ease;
                    &.act { opacity: 1; transform: translateY(0%); }
                }
                li {
                    display: flex;
                    margin-top: 2px;
                    counter-increment: pointer-list;
                    @include maxwidth(1024) {
                        flex-direction: column;
                        &>* { flex: none !important; }
                    }
                    .h {
                        flex-shrink: 0;
                        flex-basis: 420px;
                        @include f_all(24);
                        @include maxwidth(768) { @include f_all(20); }
                        font-weight: bold;
                        line-height: 1.6;
                        color: #FFF;
                        @include flex_centering;
                        flex-direction: column;
                        gap: 1px;
                        background-color: var(--pointer-list-color);
                        position: relative;
                        min-height: 95px;
                        @include maxwidth(768) { min-height: 80px; }
                        z-index: 0;
                        &::before {
                            content: "basic."counter(pointer-list, decimal-leading-zero);
                            text-transform: uppercase;
                            @include f_all(16);
                            line-height: 1;
                        }
                        &::after {
                            content: "";
                            position: absolute;
                            z-index: -1;
                            inset: 0;
                            background-color: rgba(#000, 0.1);
                            clip-path: polygon(100% 0, 0% 100%, 100% 100%);
                        }
                    }
                    .d {
                        flex-basis: 860px;
                        padding: 20px;
                        @include maxwidth(768) {
                            padding: 15px 10px;
                        }
                        background-color: #F6F6F6;
                        box-sizing: border-box;
                        p {
                            font-size: clamp(18px, (32 / 1024 * 100vw), 32px);
                            font-weight: bold;
                            line-height: 1.6;
                            text-align: center;
                        }
                    }
                }
                &:nth-of-type(2){
                    li {
                        .h {
                            &::before {
                                content: "mobile."counter(pointer-list, decimal-leading-zero);
                                text-transform: uppercase;
                                @include f_all(16);
                                line-height: 1;
                            }
                        }
                    }
                }
            }
        }
    }

    #conceptManagementVision {
        padding-top: 120px;
        @include maxwidth(768) { padding-top: 100px; }
        position: relative;
        .c-subpage-heading {
            position: absolute;
            inset: -0.65em 0 auto 0;
        }
        .container{
            @include container(1360, 40);
            @include maxwidth(768) {
                margin-left: 20px;
                margin-right: 20px;
            }

            .leadtext {
                font-size: clamp(30px, (72 / 1440 * 100vw), 72px);
                font-weight: 900;
                line-height: 1.2;
                text-align: center;
                &.js-scroll-target {
                    .char {
                        display: inline-block;
                        overflow: hidden;
                        &-inner {
                            display: inline-block;
                            transform: translateY(100%);
                            transition: transform 800ms ease;
                            &-inner-inner {  }
                        }
                    }
                    &.act {
                        .char {
                            &-inner { transform: translateY(0%); }
                            @for $i from 0 to 50 {
                                &:nth-child(#{$i + 1}) .char-inner {
                                    transition-delay: #{$i * 80}ms;
                                }
                            }
                        }
                    }
                }
            }

            .list {
                margin-top: 50px;
                max-width: 737px;
                width: 100%;
                margin-left: auto;
                margin-right: auto;
                li {
                    counter-increment: listnum;
                    font-size: clamp(24px, (40 / 1024 * 100vw), 40px);
                    font-weight: bold;
                    line-height: normal;
                    display: flex;
                    align-items: center;
                    text-align: center;
                    gap: 1em;
                    @include maxwidth(768) {
                        flex-direction: column;
                        gap: 0.2em;
                        &:not(:first-child) { margin-top: 1em; }
                    }
                    &::before {
                        content: counter(listnum, decimal-leading-zero);
                        flex-shrink: 0;
                        @include ff_en;
                        @include f_all(48);
                        font-weight: 500;
                        color: $themecolor2;
                    }
                    .t {
                        flex: 1;
                    }
                }

                &.js-scroll-target {
                    li {
                        opacity: 0;
                        transform: translateY(1em);
                        transition: transform 800ms ease, opacity 800ms ease;
                    }
                    &.act {
                        li { opacity: 1; transform: translateY(0%); }
                        li {
                            @for $i from 0 to 10 {
                                &:nth-child(#{$i + 1}) {
                                    transition-delay: #{$i * 150}ms;
                                }
                            }
                        }
                    }
                }
            }

            .c-col-buttons {
                margin-top: 100px;
                .c-col-button {
                }
            }
        }
    }

// === company page ===
    .company-main-image, .subpage-original-main-image {
        margin-bottom: 100px;
        @include maxwidth(768) {
            margin-bottom: 80px;
        }
        position: relative;
        // z-index: 0;
        z-index: 1;
        &:before {
            content: "";
            position: absolute;
            z-index: -1;
            inset: auto 0 -65px 0;
            height: 295px;
            @include maxwidth(768) {
                height: 260px;
                inset: auto 0 -40px 0;
            }
            background-color: $themecolor;
            clip-path: polygon(100% 0, 100% 25%, 0 100%, 0 76%);
        }
        figure {
            height: (680 / 1440 * 100vw);
            max-height: 680px;
            min-height: 200px;
            margin-right: (40 / 1440 * 100vw);
            overflow: hidden;
            position: relative;
            &>img {
                width: 100%;
                height: 100%;
                object-fit: cover
            }
        }
    }

    .company-main-image {
        figure {
            // background-color: #000;
            @media screen and (min-width: 1340px) {
                @include flex_centering;
                margin-right: 0;
            }
            &>img { max-width: 1280px; }
        }
    }

    #companyGreetings {
        .c-subpage-heading {
        }
        .container {
            .text {
                @include f_all(20);
                font-weight: bold;
                line-height: 1.8;
                margin-top: 50px;
                @include maxwidth(768) { @include f_all(18); margin-top: 40px; }
                &>p:not(:first-child) { margin-top: 1.8em; }
            }
            .sitename {
                text-align: right;
                margin-top: 30px;
                img {
                    width: 270px;
                    @include maxwidth(768) { width: 220px; }
                }
            }
        }
        .l-bottom {
            margin-top: 80px;
            @include maxwidth(768) { margin-top: 60px; }
            .image {
                height: (680 / 1440 * 100vw);
                max-height: 680px;
                min-height: 200px;
                margin-left: (40 / 1440 * 100vw);
                display: flex;
                align-items: flex-end;
                overflow: hidden;
                &>img {
                    width: 100%;
                    height: 100%;
                    object-fit: cover
                }
            }
        }
    }

    #companyOverview {
        margin: 80px 0;
        @include maxwidth(768) { margin: 75px 0; }
        position: relative;
        .c-subpage-heading {
        }
        .container {
            margin-top: 60px;
            @include maxwidth(768) { margin-top: 40px; }
            .wp-block-table {
            }
            .c-col-buttons {
                margin-top: 30px;
            }
        }
    }

    #companyCertification {
        .c-subpage-heading {
        }
        .inner {
            margin-top: 80px;
            @include container(1360, 40);
            @include maxwidth(768) {
                margin-top: 60px;
                margin-left: 20px;
                margin-right: 20px;
            }
            .certification-items {
                .certification-item {
                    &:not(:first-child) {
                        margin-top: 60px;
                        @include maxwidth(768) { margin-top: 40px; }
                    }
                    .cols {
                        display: flex;
                        gap: 50px;
                        margin-left: 40px;
                        @include maxwidth(1024) {
                            flex-direction: column;
                            gap: 20px;
                            margin-left: 0;
                            .col { flex: none !important; }
                        }
                        .col {
                            &:nth-child(1) {
                                flex-basis: 380px;
                            }
                            &:nth-child(2) {
                                flex-grow: 1;
                                flex-basis: 0;
                            }

                            .image {
                                text-align: center;
                                &>img {
                                }
                            }
                            .text {
                                @include f_all(20);
                                @include maxwidth(768) { @include f_all(18); }
                                font-weight: bold;
                                line-height: 1.8;
                                &>*:not(:first-child) { margin-top: 1.4em; }
                            }
                            .c-col-buttons {
                                margin-top: 30px;
                            }
                        }
                    }
                }
            }
        }
    }

    #companyAccessMap {
        margin: 80px 0;
        @include maxwidth(768) { margin: 75px 0; }
        position: relative;
        .c-subpage-heading {
        }
        .inner {
            margin-top: 50px;
            @include container(1340, 40);
            @include maxwidth(768) {
                margin-top: 40px;
                margin-left: 20px;
                margin-right: 20px;
            }
            .access-maps {
                .access-map {
                    &:not(:first-child) {
                        margin-top: 50px;
                        @include maxwidth(768) { margin-top: 35px; }
                    }
                    .cols {
                        display: flex;
                        flex-direction: row-reverse;
                        gap: 60px;
                        @include maxwidth(1024) {
                            flex-direction: column;
                            gap: 20px;
                            &>.col { flex: none !important; }
                        }
                        .col {
                            flex-basis: 50%;

                            &>*:not(:first-child) {
                                margin-top: 20px;
                                @include maxwidth(768) { margin-top: 10px; }
                            }

                            .gmap-embed {
                                height: 475px;
                                position: relative;
                                iframe {
                                    width: 100% !important;
                                    height: 100% !important;
                                }
                            }

                            .title {
                                @include f_all(40);
                                @include maxwidth(768) { @include f_all(32); }
                                font-weight: 900;
                                letter-spacing: 0.05em;
                                line-height: 1.5;
                            }

                            .location {
                                @include f_all(24);
                                @include maxwidth(768) { @include f_all(20); }
                                font-weight: bold;
                                line-height: 1.6;
                                &>*:not(:first-child) { margin-top: 0.3em; }
                            }

                        }
                    }
                }
            }
        }
    }

    #safetyManagementPolicy {
        .container {
            .logo {
                text-align: center;
                margin-top: 50px;
                @include maxwidth(768) { margin-top: 40px; }
            }
            .policy-list {
                @include f_all(24);
                @include maxwidth(768) { @include f_all(20); }
                font-weight: bold;
                line-height: 1.2;
                margin-top: 48px;
                @include maxwidth(768) { margin-top: 40px; }
                li {
                    &:not(:first-child) { margin-top: 20px; }
                    counter-increment: policy-list-num;
                    display: flex;
                    align-items: flex-start;
                    gap: 10px;
                    &::before {
                        content: counter(policy-list-num, decimal-leading-zero)'.';
                        flex-shrink: 0;
                        @include ff_en;
                        @include f_all(32);
                        @include maxwidth(768) { @include f_all(28); }
                        font-weight: 500;
                        color: $themecolor2;
                        margin-top: -0.23em;
                    }
                }
            }
        }
    }

    #safetyManagementInitiatives {
        margin-top: 80px;
        .c-subpage-heading {
        }
        .container {
            margin-top: 50px;
            @include maxwidth(768) { margin-top: 40px; }
            .year-label {
                @include f_all(20);
                @include maxwidth(768) { @include f_all(18); }
                font-weight: bold;
                line-height: 1.8;
                text-align: right;
            }

            .list-group {
                margin-top: 45px;
                @include maxwidth(768) { margin-top: 30px; }
                &>* {
                    margin-top: 20px;
                    @include maxwidth(768) { margin-top: 10px; }
                }
                &>*:not(h4) {
                    margin-left: 50px;
                    @include maxwidth(768) { margin-left: 45px; }
                }
                h4 {
                    @include f_all(24);
                    @include maxwidth(768) { @include f_all(20); }
                    font-weight: bold;
                    line-height: 1.5;
                    display: flex;
                    gap: 13px;
                    margin-top: 40px;
                    @include maxwidth(768) { margin-top: 25px; }
                    &::before {
                        content: attr(data-count)'.';
                        flex-shrink: 0;
                        @include ff_en;
                        @include f_all(32);
                        @include maxwidth(768) { @include f_all(28); }
                        font-weight: 500;
                        line-height: 1;
                        color: $themecolor2;
                    }
                }
                .text {
                    @include f_all(20);
                    @include maxwidth(768) { @include f_all(18); }
                    font-weight: bold;
                    line-height: 1.8;
                    &>p:not(:first-child) { margin-top: 8px; }
                }
                .list {
                    @include f_all(20);
                    @include maxwidth(768) { @include f_all(18); }
                    font-weight: bold;
                    line-height: 1.5;
                    li {
                        padding-left: 50px;
                        @include maxwidth(768) { padding-left: 30px; }
                        box-sizing: border-box;
                        position: relative;
                        &::before {
                            content: "";
                            display: block;
                            width: 10px;
                            height: 10px;
                            background-color: $themecolor2;
                            position: absolute;
                            inset: 0.5em auto auto 25px;
                            @include maxwidth(768) { inset: 0.5em auto auto 10px; }
                        }
                    }
                }
            }

            .goal-table {
                margin-top: 40px;
                table {
                    @include maxwidth(768) { table-layout: auto; }
                    th, td {
                        border: 1px solid $basecolor;
                        @include f_all(16);
                        font-weight: bold;
                        line-height: 1.5;
                        min-width: 5em;
                        padding: 20px 30px;
                        box-sizing: border-box;
                        text-align: center;
                        @include maxwidth(768) {
                            @include f_all(15);
                            padding: 0.5em;
                        }
                    }
                    thead {
                        border: none;
                        th { background-color: #000; }
                    }
                    tbody {
                        td {
                            background-color: #404040;
                            &:first-child {
                                min-width: 180px;
                                text-align: left;
                            }
                        }
                    }
                }
            }
        }
    }

    #freightTransportHandlingBusiness {
        .container {
            margin-top: 50px;
            .text {
                @include f_all(20);
                @include maxwidth(768) { @include f_all(18); }
                font-weight: bold;
                line-height: 1.8;
                &>*:not(:first-child) { margin-top: 1.8em; }
            }

            .group-container {
                @include flex_centering;
                margin: 80px 0;
                @include maxwidth(768) { margin: 60px 0; }
                position: relative;
                .group {
                    max-width: 640px;
                    width: 100%;
                    aspect-ratio: 1;
                    position: relative;
                    background-size: 160px auto;
                    background-position: center;
                    background-repeat: no-repeat;
                    @include maxwidth(768) { background-size: 120px auto; }
                    @include maxwidth(600) { background-size: 100px auto; }
                    @include maxwidth(500) { background-size: 80px auto; }
                    @include maxwidth(360) { background-size: 60px auto; }
                    &::before {
                        content: "";
                        display: inline-block;
                        border: solid 1px #404040;
                        position: absolute;
                        inset: 0;
                        margin: auto;
                        aspect-ratio: 1;
                        border-radius: 50%;
                    }
                    &-item {
                        cursor: grab;
                        width: 240px;
                        @include maxwidth(768) { width: 180px; }
                        @include maxwidth(600) { width: 160px; }
                        @include maxwidth(500) { width: 120px; }
                        @include maxwidth(420) { width: 110px; }
                        @include maxwidth(360) { width: 100px; }
                        &>img {
                        }
                    }
                }
            }

            .wp-block-table.is-style-normal {
                margin: 80px 0;
            }
        }
    }

    #messageRecruitmentVideo {
        margin: 80px 0;
        position: relative;
        &::before {
            content: "";
            position: absolute;
            inset: auto 0 (615 / 1440 * -100vw) 0;
            height: (1500 / 1440 * 100vw);
            background-color: $themetextcolor;
            clip-path: polygon(0 0, 100% 20%, 100% 100%, 0% 100%);
            @include maxwidth(1200) { height: (1500 / 1200 * 100vw); }
            @include maxwidth(1024) { height: (1500 / 1024 * 100vw); }
            @include maxwidth(768) {
                inset: auto 0 (500 / 768 * -100vw) 0;
                height: (1200 / 768 * 100vw);
                min-height: 1000px;
                clip-path: polygon(0 0, 100% 10%, 100% 100%, 0% 100%);
            }
        }
        .container {
            margin-top: 50px;
            .youtube-embed {
                height: 715px;
                @include maxwidth(768) { height: 500px; }
                iframe {
                    width: 100% !important;
                    height: 100% !important;
                }
            }
            .youtube-poster {
                @include flex_centering;
                min-height: 500px;
                &>img {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                }
            }
            .text {
                color: #000;
                font-size: clamp(20px, 3.125vw, 32px);
                font-weight: bold;
                text-align: center;
                line-height: 1.8;
                margin-top: 50px;
            }
        }
    }

    #messageFeatures {
        margin: 80px 0;
        position: relative;
        .container {
            margin-top: 50px;
            .image {
                margin: 0 calc(50% - 50vw);
                height: (680 / 1440 * 100vw);
                max-height: 680px;
                min-height: 200px;
                overflow: hidden;
                display: flex;
                align-items: flex-end;
                &>img {
                    margin-left: (40 / 1440 * 100vw);
                    @include maxwidth(768) { left: 20px; }
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                }
            }
            .text {
                @include f_all(20);
                @include maxwidth(768) { @include f_all(18); }
                font-weight: bold;
                line-height: 1.8;
                margin-top: 40px;
                &>p:not(:first-child) { margin-top: 1.8em; }
            }
        }
    }
    
    #messageWhoThrives {
        margin: 80px 0;
        position: relative;
        .container {
            margin-top: 50px;
            .list {
                @include f_all(20);
                @include maxwidth(768) { @include f_all(18); }
                font-weight: bold;
                line-height: 1.5;
                li {
                    padding: 15px 25px;
                    @include maxwidth(768) { padding: 15px; }
                    box-sizing: border-box;
                    color: #FFF;
                    background-color: #000;
                    display: flex;
                    align-items: flex-start;
                    gap: 13px;
                    &:not(:first-child) { margin-top: 2px; }
                    &::before {
                        content: "";
                        flex-shrink: 0;
                        width: 10px;
                        height: 10px;
                        background-color: $themecolor2;
                        margin-top: 0.5em;
                    }
                }
            }
            .text {
                @include f_all(20);
                @include maxwidth(768) { @include f_all(18); }
                font-weight: bold;
                line-height: 1.8;
                margin-top: 30px;
            }
        }
    }

    #positionsText {
        @include f_all(20);
        @include maxwidth(768) { @include f_all(18); }
        font-weight: bold;
        line-height: 1.8;
        text-align: center;
        margin: 100px 1em 50px;
        &>*:not(:first-child) { margin-top: 1.8em; }
    }

    *[id^="positionsGroup"] {
        margin-top: 50px;
        .container {
            .c-subpage-heading {
                justify-content: flex-start;
                .en {
                    @include maxwidth(360) { font-size: 50px; }
                }
                .ja {
                    inset: auto auto -0.5em 0;
                    transform: translateX(0);
                }
            }
            .wp-block-table {
                margin-top: 30px;
            }

            .back-buttons {
                display: flex;
                flex-direction: column;
                align-items: flex-end;
                margin-top: 10px;
                .c-col-button {
                    display: inline-block;
                    .c-col-button__link {
                        // justify-content: center;
                        justify-content: flex-end;
                        min-width: 380px;
                        @include maxwidth(768) { min-width: 260px; }
                        border-top: none;
                        .arrow {
                            &::before, &::after {
                                background-image: url(../images/arrow-bottom-white.svg);
                                transform: scale(1, -1);
                            }
                            &::after {
                                opacity: 0;
                                transform: translate(0, 15px) scale(1, -1);
                            }
                        }
    
                        @media (any-hover: hover) {
                            &:hover {
                                .arrow {
                                    &::before {
                                        opacity: 0;
                                        transform: translate(0, -15px) scale(1, -1)
                                    }
                                    &::after {
                                        opacity: 1;
                                        transform: translate(0, 0px) scale(1, -1)
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }

}

// === vehicle list page ===
    .vehiclelist-main-image {
        margin-bottom: 100px;
        @include maxwidth(768) {
            margin-bottom: 80px;
        }
        position: relative;
        z-index: 0;
        &:before {
            content: "";
            position: absolute;
            z-index: -1;
            inset: auto 0 -65px 0;
            height: 295px;
            @include maxwidth(768) {
                height: 260px;
                inset: auto 0 -40px 0;
            }
            background-color: $themecolor;
            clip-path: polygon(100% 0, 100% 25%, 0 100%, 0 76%);
        }
        figure {
            height: (680 / 1440 * 100vw);
            max-height: 680px;
            min-height: 200px;
            margin-right: (40 / 1440 * 100vw);
            overflow: hidden;
            position: relative;
            &>img {
                width: 100%;
                height: 100%;
                object-fit: cover
            }
        }
    }
    #Vehiclemodel{
        .container{
            margin-top: 50px;
            .list{
                ul{
                    display: flex;
                    flex-wrap: wrap;
                    // align-items: center;
                    gap: 5px;
                    li{
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        flex: 0 1 calc(100% / 3 - 5px);
                        background-color: #404040;
                        @include f_all(20);
                        font-weight: bold;
                        line-height: 1.5;
                        box-sizing: border-box;
                        padding: 0.8em;
                        min-height: 60px;                       
                        @include maxwidth(1080) {
                            flex: 0 1 calc(100% / 2 - 5px);
                        }
                        @include maxwidth(768) {
                             flex: 0 1 100%;
                            @include f_all(18);
                            min-height: 50px;  
                        }
                        @include maxwidth(350) {
                            @include f_all(16); 
                        }
                    }
                }
            }
            .content {
                margin-top: 20px;
            }
        }
    }

body.page-recruit_voice {
    #subpageContent {
        .container {
            @include container(1360, 40);
            @include maxwidth(768) {
                margin-left: 20px;
                margin-right: 20px;
            }
        }
    }
    
    .voice-terms {
        margin: 30px 0 50px;
    }

}

.voice-headline {
    .headline-items {
        margin-left: 0 !important;
        display: flex;
        flex-wrap: wrap;
        gap: 50px;
        @include maxwidth(768) { gap: 5px; }
        .headline-item {
            list-style: none;
            margin-bottom: 0 !important;
            flex-basis: calc((100% - (50px * 2)) / 3);
            @include maxwidth(1200) {
                flex-basis: calc((100% - (50px * 1)) / 2);
            }
            @include maxwidth(768) { flex-basis: 100%; }
            color: #000;
            padding: 25px 20px;
            box-sizing: border-box;
            position: relative;
            z-index: 0;
            background-repeat: no-repeat;
            background-position: center center;
            background-size: cover;
            &::before {
                content: "";
                position: absolute;
                z-index: -1;
                inset: 0;
                background-color: rgba(#FFF, 0.80);
            }
            .terms {
                @include f_all(16);
                @include maxwidth(768) { @include f_all(15); }
                font-weight: 900;
                line-height: 1;
                display: flex;
                align-items: center;
                flex-wrap: wrap;
                gap: 10px;
                @include maxwidth(768) { gap: 5px; }
                .idx { color: $accentcolor; margin-right: 5px; }
                .term {
                    display: inline-flex;
                    align-items: center;
                    justify-content: center;
                    padding: 0 10px 1px;
                    box-sizing: border-box;
                    color: #FFF;
                    background-color: $themecolor2;
                    min-height: 28px;
                }
            }
            .title {
                @include f_all(64);
                @include maxwidth(768) { @include f_all(48); }
                font-weight: 900;
                line-height: 1.6;
                text-transform: uppercase;
            }
            .content {
                .text {
                    @include f_all(16);
                    @include maxwidth(768) { @include f_all(14); }
                    font-weight: bold;
                    line-height: 1.6;
                    &>*:not(:first-child) { margin-top: 1em; }
                }
                dl.qanda {
                    @include f_all(16);
                    @include maxwidth(768) { @include f_all(14); }
                    font-weight: bold;
                    line-height: 1.5;
                    dt, dd {
                        display: flex;
                        align-items: flex-start;
                        gap: 0.5em;
                        &::before {                                
                            flex-shrink: 0;
                        }
                    }
                    dt {
                        &:not(:first-child) { margin-top: 5px; }
                        &::before { content: "Q ."; }
                    }
                    dd {
                        &::before { content: "A ."; }
                    }
                }
            }
        }
    }
}

body.page-recruit_child {
    // .diagonal要素が#contentラッパー要素をはみ出ないように調整...
    #content {
        position: relative;
        z-index: 0;
        overflow: hidden;
    }
    .diagonal {
        display: block;
        width: 100%;
        height: 295px;
        @include maxwidth(768) { height: 180px; }
        position: absolute;
        transform: translateY(-50%);
        transform-origin: center center;
        z-index: -1;
        will-change: transform;
        backface-visibility: hidden;
        &.right {
            inset: 100vh 0 auto 0;
            background-color: $themecolor;
            clip-path: polygon(0 0, 100% 75%, 100% 100%, 0 25%);
        }
        &.right2 {
            inset: 250vh 0 auto 0;
            background-color: $themecolor;
            clip-path: polygon(0 0, 100% 75%, 100% 100%, 0 25%);
        }
        &.left {
            inset: 250vh 0 auto 0;
            background-color: $themecolor2;
            clip-path: polygon(0 75%, 100% 0%, 100% 25%, 0% 100%);
        }
    }
}