// スタイルシート common

@charset "utf-8";

@import "mixin";

:root {
    --header-height: 120px;
    @include maxwidth(768) { --header-height: 75px; }
    --mv-overlay-height: 0px;
    --mv-info-height: 180px;
    @include maxwidth(768) { --mv-info-height: 150px; }
}

// ScrollTrigger を使用するため、Scriptsで挙動を実装
// html { scroll-behavior: smooth; }

body {
    @include root;
    position: relative;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
}

img,
video {
    max-width: 100%;
    height: auto;
}

:where(figure) { margin: 0; }

body.menu_open { overflow: hidden; }

br.sp {
    @media screen and (min-width: 769px) { display: none !important; }
}

// === 共通パーツ

// 行動喚起スタイル
@mixin cta {
    display: inline-block;
    width: 1em;
    height: 1em;
    &::before,
    &::after {
        content: "";
        display: block;
        width: 10px;
        height: 10px;
        background: url(../images/arrow-right-white.svg) no-repeat center center / contain;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    &::before {
        left: calc(50% - 2px);
    }
    &::after {
        left: calc(50% + 2px);
    }
}

.c-heading {
    @include f_all(16);
    @include maxwidth(768) { @include f_all(14); }
    font-weight: bold;
    line-height: 1.1;
    @include flex_centering;
    text-align: center;
    text-transform: capitalize;
    position: relative;
}

.c-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    @include maxwidth(768) {
        flex-direction: column;
        justify-content: initial;
    }

    &.js-scroll-target {
        .c-button {
            opacity: 0;
            transform: translateY(1rem);
            transition: 1200ms ease-out;
        }
        &.inview {
            .c-button {
                opacity: 1;
                transform: translateY(0rem);
            }
        }
    }
}

.c-button {
    display: inline-block;
    @include maxwidth(768) { width: 100%; }
    position: relative;
    background-color: #000;
    &::before, &::after {
        content: "";
        position: absolute;
        background-color: $themecolor;
        height: 50%;
        transform: scaleY(0);
        transition: transform 400ms ease-out;
    }
    &::before {
        inset: 0 0 auto 0;
        transform-origin: center bottom;
    }
    &::after {
        inset: auto 0 0 0;
        transform-origin: center top;
    }
    @media (any-hover: hover) {
        &:hover {
            &::before, &::after {
                transform: scaleY(1);
            }
        }
    }
    &__link {
        color: $themetextcolor;
        @include f_all(14);
        font-weight: bold;
        line-height: 1.1;
        @include flex_centering;
        min-width: 250px;
        @include maxwidth(768) {
            min-width: initial;
            width: 100%;
        }
        padding: 0.5em 1em;
        box-sizing: border-box;
        min-height: 50px;
        // background-color: #000;
        position: relative;
        z-index: 1;
        transition: background 400ms ease-out;

        &::after {
            content: "";
            display: block;
            width: 12px;
            height: 12px;
            background: url(../images/arrow-right-white.svg) no-repeat center / contain;
            position: absolute;
            top: 0;
            bottom: 0;
            right: 20px;
            margin: auto;
        }

        @media (any-hover: hover) {
            &:hover {
                // transform: translate(0,-5px) scale(1.05);
                // background-color: $themecolor;
            }
        }
    }
}

.gnav-toggle {
    cursor: pointer;
    display: block;
    width: 45px;
    height: 45px;
    background-color: #000;
    transition: 400ms ease-out;
    position: relative;
    .menu_open & {
        background-color: $themetextcolor;
        border-radius: 45px;
    }
    span {
        display: inline-block;
        width: 20px;
        height: 1px;
        background-color: currentColor;
        @include flex_centering;
        @include absolute_centering;
        transition: transform 400ms ease-out, opacity 400ms;
        .menu_open & {
            background-color: $accentcolor;
        }
        &:nth-child(1) {
            transform: translate(0, -6px);
            .menu_open & {
                transform: translate(0, 0px) rotate(145deg);
            }
        }
        &:nth-child(2) {
            .menu_open & {
                opacity: 0;
                transform: translate(100%, 0);
            }
        }
        &:nth-child(3) {
            transform: translate(0, 6px);
            .menu_open & {
                transform: translate(0, 0px) rotate(-145deg);
            }
        }
    }
}

.information-terms {
    position: relative;
    &:has(+ .information-headline) { margin-bottom: 30px; }
    ul {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-end;
        gap: 5px;
        li {
            @include f_all(14);
            @include maxwidth(768) { @include f_all(13); }
            font-weight: bold;
            line-height: 1.1;
            .subpage & {
                @include maxwidth(768) {
                    flex-basis: calc((100% - (5px * 1)) / 2);
                    &:first-child { flex-basis: 100%; }
                }
            }
            a {
                color: $themecolor2;
                @include flex_centering;
                min-width: 150px;
                min-height: 50px;
                background-color: #FFF;
                border-bottom: solid 2px;
                box-sizing: border-box;
                position: relative;
                @include maxwidth(768) {
                    min-height: 45px;
                    .toppage & { min-width: 130px; }
                    .subpage & { min-width: initial; }
                }

                overflow: hidden;
                z-index: 0;
                &::before {
                    content: "";
                    @include absolute_centering;
                    z-index: -1;
                    background-color: $themecolor2;
                    transform: translateY(100%);
                    transition: transform 400ms ease-out, color 400ms ease-out;
                }

                &.current {
                    color: $themetextcolor;
                    border-bottom: none;
                    background-color: #000;
                    transition: 400ms;
                    &::before { display: none; } 
                }

                @media (any-hover: hover) {
                    &:hover {
                        color: $themetextcolor;
                        border-color: $themecolor2;
                        &::before { transform: translateY(0%); }

                        &.current { background-color: $themecolor2; }
                    }
                }

                @media (any-hover: none) {
                    color: $themetextcolor;
                    border-color: $themecolor2;
                    &::before { transform: translateY(0%); }
                }
            }
        }
    }
}

.information-headline {
    position: relative;
    .headline-items {
        .toppage & {
            @media screen and (min-width: 769px) {
                display: flex;
                flex-wrap: wrap;
                gap: 50px 30px;
            }
        }
        .subpage & {
            display: flex;
            flex-wrap: wrap;
            gap: 50px 30px;
            @include maxwidth(768) {
                gap: 40px 20px;
            }
        }
        .headline-item {
            .toppage & {
                @media screen and (min-width: 769px) {
                    flex-basis: calc((100% - (30px * 2)) / 3);
                }
            }
            .subpage & {
                flex-basis: calc((100% - (30px * 3)) / 4);
                @include maxwidth(1200) { flex-basis: calc((100% - (30px * 2)) / 3); }
                @include maxwidth(768) { flex-basis: calc((100% - (20px * 1)) / 2); }
                @include maxwidth(480) { flex-basis: 100%; }
            }
            &__link {
                &>* { display: block; }
                .img {
                    aspect-ratio: 380 / 232;
                    @include maxwidth(768) { aspect-ratio: 300 / 180; }
                    overflow: hidden;
                    position: relative;
                    img {
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                        transition: transform 400ms ease-out;
                    }
                }
                
                .docs {
                    padding-top: 15px;
                    box-sizing: border-box;
                    display: flex;
                    align-items: center;
                    flex-wrap: wrap;

                    .date {
                        @include f_all(14);
                        font-weight: bold;
                        line-height: 1;
                        margin-right: 20px;
                    }
                    
                    .terms {
                        color: $themecolor2;
                        @include f_all(14);
                        font-weight: bold;
                        line-height: 1;
                        display: flex;
                        align-items: center;
                        flex-wrap: wrap;
                        gap: 0.2em;
                        .term {
                            display: inline-flex;
                            align-items: center;
                            &::before {
                                content: "#";
                                margin-right: 0.10em;
                            }
                        }
                    }
                    
                    .title {
                        flex-basis: 100%;
                        @include f_all(14);
                        font-weight: bold;
                        line-height: 1.1;
                        margin-top: 6px;
                    }
                }

                @media (any-hover: hover) {
                    .img > img { transform: scale(1); }
                    &:hover {
                        .img > img { transform: scale(1.2); }
                    }
                }
            }
        }
    }
}

#header {
    position: absolute;
    inset: 0 0 auto 0;
    z-index: 26;

    .toppage & {
        color: $themetextcolor;
    }

    // &::before {
    //     content: "";
    //     @include absolute_centering;
    //     background-color: $basecolor;
    // }

    .container {
        height: var(--header-height);
        // padding: 1rem (60 / 1440 * 100vw) 38px;
        padding: 1rem 0 14px;
        box-sizing: border-box;
        display: flex;
        align-items: flex-end;
        @include maxwidth(1024) {
            padding-left: (60 / 1440 * 100vw);
            padding-right: (60 / 1440 * 100vw);
            align-items: flex-start;
            justify-content: flex-end;
        }
        @include maxwidth(768) { padding: 15px; }
        .sitename {
            position: absolute;
            top: 30px;
            left: (40 / 1440 * 100vw);
            z-index: 1;
            @include maxwidth(768) {
                top: 15px;
                left: 15px;
            }
            h1 {
                a {
                    @include flex_centering;
                    padding: 30px 20px 23px;
                    box-sizing: border-box;
                    position: relative;
                    z-index: 0;
                    @include maxwidth(768) {
                        padding: 20px 13px 18px;
                    }
                    &::before {
                        content: "";
                        @include absolute_centering;
                        background-color: $themecolor;
                        z-index: -1;
                    }
                    img {
                        width: 110px;
                        @include maxwidth(768) { width: 74px; }
                    }

                    @media (any-hover: hover) {
                        &::before {
                            backdrop-filter: blur(0px);
                            transition: backdrop-filter 300ms;
                        }
                        &:hover {
                            &::before {
                                background-color: rgba($themecolor, 0.8);
                                backdrop-filter: blur(2px);
                            }
                        }
                    }
                }
            }
        }
        
        .global-nav {
            @include f_all(14);
            font-weight: bold;
            padding: 22px (60 / 1440 * 100vw);
            box-sizing: border-box;
            width: 100%;
            .toppage & {
                background-color: rgba($themecolor2, 0.83);
            }
            @include maxwidth(1024) { display: none !important; }
            & > ul {
                display: flex;
                align-items: center;
                justify-content: flex-end;
                flex-wrap: wrap;
                gap: 20px;
                & > li {
                    position: relative;
                    & > a {
                        display: inline-flex;
                        align-items: center;
                        &.contact {
                            &::before {
                                content: "";
                                flex-shrink: 0;
                                display: block;
                                width: 13px;
                                height: 10px;
                                background: url(../images/icon-mail-color.svg) no-repeat center / contain;
                                margin-top: 1px;
                                margin-right: 4px;
                                .toppage & {
                                    background-image: url(../images/icon-mail-white.svg);
                                }
                            }
                        }
                    }
                    
                    & > ul {
                        display: none;
                        position: absolute;
                    }
                }
            }

            .parent {
                display: inline-flex;
                align-items: center;
                &::after {
                    content: "";
                    flex-shrink: 0;
                    display: inline-block;
                    width: 12px;
                    height: 12px;
                    background: url(../images/arrow-bottom-black.svg) no-repeat center / contain;
                    margin-left: 4px;
                    transition: transform 300ms;

                    .toppage & {
                        background-image: url(../images/arrow-bottom-white.svg);
                    }
                }

                &.open {
                    &::after {
                        transform: translateY(2px) rotateX(-180deg);
                    }
                }
            }

            .children {
                position: absolute;
                z-index: 10;
                top: 1.7em;
                left: 0;
                transform: translateX(-70%);
                padding: 20px 30px;
                box-sizing: border-box;
                background-color: $basecolor;
                color: $basetextcolor;
                border-radius: 5px;
                box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
                visibility: hidden;
                &.open { visibility: visible; }

                &-title {
                    display: flex;
                    align-items: flex-end;
                    gap: 0.7rem;
                    line-height: 1.1;
                    .en {
                        color: $themecolor2;
                        @include f_all(18);
                        font-weight: bold;
                        text-transform: capitalize
                    }
                    .ja {
                        @include f_all(12);
                        font-weight: bold;
                        display: inline-flex;
                        align-items: center;
                        &::after {
                            content: "";
                            flex-shrink: 0;
                            display: block;
                            width: 10px;
                            height: 10px;
                            background: url(../images/arrow-right-black.svg) no-repeat center / contain;
                            margin-left: 0.25em;
                            margin-top: 0.25em;
                        }
                    }
                }

                &-list {
                    margin-top: 1rem;
                    display: flex;
                    gap: 5px;
                    li {
                        // flex-shrink: 0;
                        // flex-basis: 180px;
                        width: 200px;
                        position: relative;
                        overflow: hidden;
                        a {
                            & > * { display: block; }
                            .img {
                                aspect-ratio: 1;
                                background-repeat: no-repeat;
                                background-position: center center;
                                background-size: cover;
                                transition: transform 400ms ease-out;
                            }
                            .title {
                                color: $themetextcolor;
                                @include f_all(12);
                                font-weight: bold;
                                line-height: 1.1;
                                position: absolute;
                                inset: auto 0 0 0;
                                z-index: 1;
                                padding: 1em 10px;
                                box-sizing: border-box;
                                display: flex;
                                align-items: center;
                                justify-content: space-between;
                                gap: 0.5em;
                                background-color: rgba($themecolor2, 0.9);
                                &::after {
                                    content: "";
                                    flex-shrink: 0;
                                    display: block;
                                    width: 10px;
                                    height: 10px;
                                    background: url(../images/arrow-right-white.svg) no-repeat center / contain;
                                }
                            }

                            @media (any-hover: hover) {
                                &:hover {
                                    .img { transform: scale(1.2); }
                                }
                            }
                        }
                    }
                }

            }
        }

        .gnav-toggle {
            color: $themetextcolor;
            &-wrapper {
                @media screen and (min-width: 1025px) { display: none !important; }
            }
        }
    }
}

#sidebar {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 25;
    @include maxwidth(768) {
        position: absolute;
        top: 50vh;
        .subpage & { display: none !important; }
    }
    ul {
        display: flex;
        flex-direction: column;
        gap: 10px;
        li {
            // .toppage & {
            //     transform: translateX(100%);
            //     transition: transform 400ms ease-out;
            // }
            // .toppage.header_scrollout & { transform: translateX(0%); }
            a {
                color: $themetextcolor;
                @include f_all(15);
                font-weight: bold;
                display: flex;
                justify-content: center;
                background-color: $themecolor;
                width: 50px;
                height: 180px;
                padding: 1.1em 0;
                box-sizing: border-box;
                position: relative;
                transition: transform 300ms, background 300ms;

                @include maxwidth(768) {
                    @include f_all(13);
                    padding: 25px 0;
                    width: 45px;
                }
                
                &>span {
                    letter-spacing: 0.30em;
                    display: inline-block;
                    width: 1em;
                    writing-mode: vertical-rl;
                }

                .cta {
                    position: absolute;
                    left: calc(50% - 2px);
                    bottom: 10px;
                    @include maxwidth(768) {
                        bottom: 20px;
                    }
                    transform: translateX(-50%);
                    @include cta;
                }

                @media (any-hover: hover) {
                    &:hover {
                        background-color: $accentcolor;
                        transform: translateX(5px);
                    }
                }
            }
        }
    }
}

#footbar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 25;
    transform: translateY(100%);
    transition: transform 400ms ease-out;
    .header_scrollout & { transform: translateY(0%); }
    @media screen and (min-width: 769px) { display: none !important; }
    ul {
        display: flex;
        gap: 1px;
        li {
            flex-grow: 1;
            flex-basis: auto;
            &:has(> .gnav-toggle), &:has(> #totop) {
                flex-grow: 0;
                flex-shrink: 0;
            }
            a {
                color: $themetextcolor;
                @include f_all(13);
                font-weight: bold;
                line-height: 1.3;
                @include flex_centering;
                background-color: $themecolor;
                min-height: 45px;
                padding: 0.5em 10px;
                box-sizing: border-box;
                position: relative;
                .cta {
                    @include cta;
                    position: relative;
                    inset: auto;
                }
                &.gnav-toggle {
                    width: 45px;
                    background-color: $themecolor2;
                    border-radius: 0px !important;
                }
                &#totop {
                    cursor: pointer;
                    @include f_all(10);
                    text-transform: capitalize;
                    width: 45px;
                    background-color: $themecolor2;
                    flex-direction: column-reverse;
                    padding-top: 1em;
                    gap: 0.1em;
                    .cta {
                        position: relative;
                        inset: auto;
                        transform: rotate(-90deg);
                    }
                }
            }
        }
    }
}

#gnavToggleContainer {
    color: $themetextcolor;
    position: fixed;
    top: 30px;
    .admin-bar & { top: 52px; }
    right: (40 / 1440 * 100vw);
    @include maxwidth(768) {
        top: 15px;
        .admin-bar & { top: 47px; }
        right: 15px;
    }
    z-index: 101;
    pointer-events: none;
    transform: translateX(250%);
    transition: transform 400ms ease-out;
    
    @media screen and (min-width: 769px) {
        .header_scrollout &,
        .menu_open & {
            pointer-events: auto;
            transform: translateX(0%);
        }
    }

    @include maxwidth(768) {
        .menu_open & {
            pointer-events: auto;
            transform: translateX(0%);
        }
    }
    
    .gnav-toggle {  }
}

#gnav {
    &Container {
        &::before {
            content: "";
            background-color: rgba(#000, 0.5);
            @include maxwidth(600) {
                background-color: rgba(#000, 0.85);
            }
            @include absolute_centering;
            backdrop-filter: blur(2px);
            opacity: 0;
        }
        position: fixed;
        inset: 0;
        z-index: 100;
        color: $themetextcolor;
        pointer-events: none;
        .menu_open & {
            pointer-events: all;
            &::before {
                opacity: 1;
            }
        }
    }

    width: 380px;
    padding: 10vh 0;
    box-sizing: border-box;
    background-color: $themecolor;
    border-radius: 5px 0 0 5px;
    position: fixed;
    inset: 0 0 0 auto;
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    &::-webkit-scrollbar { display: none; }
    transform: translateX(100%);
    transition: transform 400ms ease-out;

    @include maxwidth(600) {
        width: 100%;
        border-radius: 0;
        inset: 0px;
        background-color: transparent;
        padding-left: 15px;
        padding-right: 15px;
        visibility: hidden;
        transform: translateX(0px);
    }

    .menu_open & {
        transform: translateX(0%);
        @include maxwidth(600) { visibility: visible; }
    }
    
    .container {
        .head {
            .sitename {
                text-align: center;
                img {
                    width: 160px;
                    @include maxwidth(768) { width: 140px; }
                }
            }
        }
        .body {
            margin-top: 2rem;
            .menu {
                &>ul {
                    &>li {
                        // &:first-child a { border-top: none; }
                        &:last-child a {
                            border-bottom: solid 1px mix($themetextcolor, $basetextcolor, 0.95);
                        }
                        &>a {
                            @include f_all(15);
                            @include maxwidth(768) { @include f_all(14); }
                            font-weight: bold;
                            display: flex;
                            align-items: center;
                            justify-content: space-between;
                            padding: 1.25em (20 / 768 * 100vw);
                            @include maxwidth(768) {
                                padding-left: 20px;
                                padding-right: 20px;
                            }
                            box-sizing: border-box;
                            border-top: solid 1px mix($themetextcolor, $basetextcolor, 0.95);
                            position: relative;

                            &::after {
                                content: "";
                                flex-shrink: 0;
                                display: block;
                                width: 12px;
                                height: 12px;
                                background: url(../images/arrow-right-white.svg) no-repeat center / contain;
                            }
                            
                            &.parent {
                                &::after {
                                    background-image: url(../images/arrow-bottom-white.svg);
                                    transition: transform 400ms ease-out;
                                }
                                &.open {
                                    &::after {
                                        transform: rotateX(-180deg);
                                    }
                                }
                            }

                            @media (any-hover: hover) {
                                &:hover {
                                    color: $basetextcolor;
                                    background-color: $basecolor;
                                    &::after { background-image: url(../images/arrow-right-black.svg); }
                                    &.parent::after { background-image: url(../images/arrow-bottom-black.svg); }
                                    &.parent.open {
                                        // color: $themetextcolor;
                                        // background-color: transparent;
                                        // &::after { background-image: url(../images/arrow-bottom-white.svg); }
                                    }
                                }
                            }
                        }
                    }
                }

                .children {
                    &-title { display: none; }
                    &-list {
                        padding: 0.5em 15px 1.5em;
                        @include maxwidth(600) { padding-left: 0; padding-right: 0; }
                        box-sizing: border-box;
                        display: flex;
                        flex-wrap: wrap;
                        gap: 1px;
                        li {
                            @include f_all(13);
                            line-height: 1.3;
                            font-weight: bold;
                            flex-basis: 100%;
                            min-height: 3em;
                            height: auto;
                            a {
                                color: $themetextcolor;
                                @include flex_centering;
                                background-color: #000;
                                @include maxwidth(600) { background-color: $themecolor; }
                                height: 100%;
                                position: relative;
                                .img { display: none; }
                                .title {
                                }

                                &:after {
                                    content: "";
                                    flex-shrink: 0;
                                    display: block;
                                    width: 12px;
                                    height: 12px;
                                    background: url(../images/arrow-right-white.svg) no-repeat center / contain;
                                    margin-left: 0.5em;
                                    margin-top: 0.15em;
                                    @include maxwidth(600) {
                                        position: absolute;
                                        top: 0;
                                        bottom: 0;
                                        right: 1em;
                                        margin: auto;
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}

@mixin mvHeight() {
    // height: calc(100vh - var(--mv-info-height));
    // height: calc(100svh - var(--mv-info-height));
    // .admin-bar & {
    //     height: calc(100vh - var(--mv-info-height) - 32px);
    //     height: calc(100svh - var(--mv-info-height) - 32px);
    // }
    height: 100vh;
    height: 100svh;
    .admin-bar & {
        height: calc(100vh - 32px);
        height: calc(100svh - 32px);
    }
    min-height: 600px;
    @include maxwidth(768) {
        height: calc(100vh - var(--mv-overlay-height));
        height: calc(100svh - var(--mv-overlay-height));
        min-height: 250px;
        .admin-bar & {
            height: calc(100vh - var(--mv-overlay-height) - 32px);
            height: calc(100svh - var(--mv-overlay-height) - 32px);
        }
    }
}

@keyframes zoomIn {
    from { transform: scale(1); }
    to { transform: scale(1.2); }
}

#mainVisual {
    position: relative;
    .container {
        position: relative;
        .mv {
            position: relative;
            &::after {
                content: "";
                pointer-events: none;
                @include absolute_centering;
                z-index: 1;
                background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.25) 100%);
            }
            &.swiper {   
            }
            .swiper-wrapper {
                .swiper-slide {
                    .swiper-slide__inner {
                        @include mvHeight;
                        position: relative;
                        overflow: hidden;
                        img {
                            width: 100%;
                            height: 100%;
                            object-fit: cover;
                        }
                    }
                }
            }
        }
        
        .overlay {
            color: $themetextcolor;
            display: flex;
            flex-direction: column;
            gap: 15px;
            @media screen and (min-width: 769px) {
                position: absolute;
                z-index: 5;
                left: (50 / 1440 * 100vw);
                right: (50 / 1440 * 100vw);
                bottom: calc(var(--mv-info-height) + 47px);
            }
            @include maxwidth(768) {
                color: $themecolor2;
                background-color: $basecolor;
                padding: 25px (15 / 375 * 100vw) 80px;
            }
            .text-en {
                font-size: 84px;
                line-height: 1.1;
                @include maxwidth(1440) {
                    font-size: clamp(32px,(84 / 1440 * 100vw),84px);
                }
                .split-text {
                    @for $i from 1 through 100 {
                        &:nth-child(#{$i + 1}) {
                            .char { transition-delay: #{$i * 0.04}s; }
                        }
                    }
                    .char {
                        transform: translateX(1rem) scale(0.90);
                        transition: transform 800ms, opacity 800ms;
                        .loaded & { 
                            opacity: 1;
                            transform: translateY(0rem) scale(1); 
                        }
                    }
                }
            }
            .text {
                font-size: 28px;
                @include maxwidth(1440) {
                    font-size: clamp(14px,(25 / 1440 * 100vw),28px);
                }
                font-weight: bold;
                line-height: 1.1;
                .split-text {
                    overflow: hidden;
                    @for $i from 1 through 100 {
                        &:nth-child(#{$i + 1}) {
                            .char { transition-delay: #{$i * 0.04 + 1}s; }
                        }
                    }
                    .char {
                        transform: translateY(105%) scale(0.90);
                        transition: transform 800ms;
                        transition-delay: 1s;
                        .loaded & {
                            opacity: 1;
                            transform: translateY(0%) scale(1);
                        }
                    }
                }
            }

            // 分割適用
            .split-text {
                display: inline-block;
                padding-bottom: 0.2em;
                // overflow: hidden;
                margin-bottom: -0.2em;
                .char {
                    display: inline-block;
                    opacity: 0;
                    &.space { min-width: 0.2em; }
                }
            }
        }
        
        .info {
            height: var(--mv-info-height);
            // background-color: $basecolor;
            // position: relative;
            background-color: rgba($themecolor2, 0.83);
            @media screen and (min-width: 769px) {
                color: $themetextcolor;
                position: absolute;
                inset: auto 0 0 0;
                z-index: 1;
            }
            .info-container {
                height: 100%;
                position: relative;
                padding: 30px (80 / 1440 * 100vw) 45px;
                box-sizing: border-box;
                @include maxwidth(768) {
                    padding: 20px (60 / 375 * 100vw);
                    background-color: #F5F5F5;
                }
                .head {
                    @include f_all(17);
                    font-weight: bold;
                    color: $themecolor;
                    line-height: 1.1;
                    text-transform: capitalize;
                    padding-bottom: 0.7rem;
                    box-sizing: border-box;
                    border-bottom: dotted 1px $themetextcolor;
                    width: 500px;
                    @include maxwidth(768) {
                        @include f_all(16);
                        text-align: center;
                        width: 100%;
                        border-color: $basetextcolor;
                    }
                }
                .body {
                    margin-top: 0.75rem;
                    .headline {
                        @include f_all(14);
                        font-weight: bold;
                        line-height: 1.1;
                        @include maxwidth(768) {
                            @include f_all(12);
                            height: 4em;
                        }

                        &.swiper {
                        }
                        
                        .headline-list {

                            @media screen and (min-width: 769px) {
                                display: flex;
                                flex-direction: column;
                                align-items: flex-start;
                                gap: 0.3em;
                            }

                            &.swiper-wrapper {  }
                            
                            .headline-item {
                                &__link {
                                    display: inline-flex;
                                    align-items: center;
                                    gap: 1em 1.5rem;
                                    @include maxwidth(768) {
                                        flex-wrap: wrap;
                                        gap: 0.5em 15px;
                                    }
                                    position: relative;
                                    z-index: 0;

                                    .date {  }
                                    
                                    .terms {
                                        color: $themecolor;
                                        display: inline-flex;
                                        align-items: center;
                                        flex-wrap: wrap;
                                        gap: 10px;
                                        .term {
                                            display: inline-flex;
                                            align-items: center;
                                            &::before {
                                                content: "#";
                                                margin-right: 0.15em;
                                            }
                                        }
                                    }
                                    
                                    .title {
                                        overflow: hidden;
                                        text-overflow: ellipsis;
                                        white-space: nowrap;  
                                        @include maxwidth(768) { flex-basis: 100%; }
                                    }

                                    @media (any-hover: hover) {
                                        padding: 0 0.2rem 0.2rem;
                                        box-sizing: border-box;
                                        &::before {
                                            content: "";
                                            position: absolute;
                                            bottom: 1px;
                                            left: 0;
                                            right: 0;
                                            z-index: -1;
                                            height: 1px;
                                            border-radius: 1px;
                                            background-color: $themecolor;
                                            transition: transform 400ms;
                                            transform: scaleX(0);
                                            transform-origin: center right;
                                        }
                                        &:hover {
                                            &::before {
                                                transform: scaleX(1);
                                                transform-origin: center left;
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                    
                    .headline-pagination {
                        margin-top: 15px;
                        @include flex_centering;
                        gap: 8px;
                        @media screen and (min-width: 769px) { display: none !important; }
                        .swiper-pagination-bullet {
                            display: block;
                            width: 8px;
                            height: 8px;
                            border-radius: 8px;
                            background-color: #545454;
                            &-active { background-color: $themecolor; }
                        }

                    }
                    
                    .headline-button {
                        &-prev, &-next {
                            cursor: pointer;
                            display: block;
                            width: 25px;
                            height: 25px;
                            position: absolute;
                            top: calc(50% + 0.5em);
                            transform: translateY(-50%);
                            background: url(../images/arrow-right-white.svg) no-repeat left 40% center / 10px auto #000;
                            @media screen and (min-width: 769px) { display: none !important; }
                        }
                        &-prev {
                            left: 0;
                            transform: translateY(-50%) scale(-1, 1);
                        }
                        &-next {
                            right: 0;
                        }
                    }

                    .cta-button {
                        position: absolute;
                        top: 50%;
                        inset: 50% (120 / 1440 * 100vw) auto auto;
                        transform: translateY(-50%);
                        z-index: 1;
                        @include maxwidth(1024) { display: none; }
                        &__link {
                            color: $themetextcolor;
                            @include f_all(20);
                            font-weight: bold;
                            line-height: 1;
                            @include flex_centering;
                            flex-direction: column;
                            gap: 10px;
                            min-width: 290px;
                            min-height: 88px;
                            background-color: $themecolor;
                            padding: 10px;
                            box-sizing: border-box;
                            position: relative;
                            .title {
                            }
                            .s {
                                @include f_all(14);
                                text-align: center;
                            }

                            @media (any-hover: hover) {
                                transition: background 300ms;
                                &:hover { background-color: $accentcolor; }
                            }
                        }
                    }
                }
            }
        }
        
        .scroll-down {
            position: absolute;
            inset: auto auto 12px 50%;
            transform: translateX(-50%);
            z-index: 1;
            @include maxwidth(768) {
                bottom: calc(var(--mv-info-height) + 10px);
            }
            .scroll-down__link {
                color: $themetextcolor;
                @include maxwidth(768) { color: $themecolor; }
                @include f_all(14);
                @include maxwidth(768) { @include f_all(11); }
                font-weight: bold;
                text-transform: capitalize;
                display: block;
                padding-bottom: 15px;
                box-sizing: border-box;
                &::before,
                &::after {
                    content: "";
                    display: block;
                    width: 10px;
                    height: 10px;
                    background: url(../images/arrow-bottom-white.svg) no-repeat center / contain;
                    @include maxwidth(768) { background-image: url(../images/arrow-bottom-color.svg); }
                    position: absolute;
                    left: 0;
                    right: 0;
                    bottom: 0;
                    margin: auto;
                }
                &::before { bottom: 4px; }
            }
        }
    }
}

#contentFooter {
    position: relative;
    &Contact {
        color: $themetextcolor;
        padding: 80px 0;
        @include maxwidth(1024) {
            padding: 60px 0 100px;
        }
        box-sizing: border-box;
        position: relative;
        z-index: 1;
        .bg {
            @include absolute_centering;
            z-index: -1;
            background-repeat: no-repeat;
            background-position: center center;
            background-size: cover;
            &::after {
                content: "";
                @include absolute_centering;
                background-color: rgba(#000, 0.6);
            }
        }
        .container {
            @include container(900, 15);
            .head {
                .c-heading {
                }
            }
            
            .body {
                margin-top: 25px;
                @include maxwidth(768) { margin-top: 30px; }
                .contact-buttons {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    gap: 5px;
                    flex-wrap: wrap;
                    @include maxwidth(1024) {
                        flex-direction: column;
                        justify-content: initial;
                    }
                    @include maxwidth(768) {
                        align-items: initial;
                    }
                    .contact-button {
                        display: inline-block;
                        height: auto;
                        &__link {
                            color: $themetextcolor;
                            @include f_all(20);
                            font-weight: bold;
                            line-height: 1.1;
                            text-align: center;
                            @include flex_centering;
                            width: 380px;
                            @include maxwidth(768) { width: 100%; }
                            height: 100%;
                            min-height: 108px;
                            background-color: $themecolor;
                            transition: background 300ms;
                            padding: 10px;
                            box-sizing: border-box;
                            position: relative;
                            &.tel {
                                font-weight: 500;
                                flex-direction: column;
                                background-color: #000;
                                .num {
                                    @include f_all(32);
                                    @include maxwidth(768) { @include f_all(28); }
                                    padding-left: 25px;
                                    background: url(../images/icon-tel-white.svg) no-repeat left top 60% / 20px auto;
                                }
                                .time {
                                    @include f_all(13);
                                    margin-top: 6px;
                                    text-align: center;
                                }
                            }
                            
                            &.form {
                                .title {
                                    padding-left: 30px;
                                    background: url(../images/icon-mail-white.svg) no-repeat left top 60% / 20px auto;
                                }
                            }

                            @media (any-hover: hover) {
                                &:hover {
                                    background-color: $accentcolor;
                                }
                            }
                        }
                    }
                }
            }
        }
    }
    &Track {
        pointer-events: none;
        position: absolute;
        z-index: 0;
        top: -340px;
        right: 0;
        width: 950px;
        height: 716px;
        padding-top: 64px;
        overflow: hidden;
        @include maxwidth(768) {
            top: (340 / 768 * 100vw * -1);
            width: (950 / 768 * 100vw);
            height: (716 / 768 * 100vw);
            padding-top: (64 / 768 * 100vw);
        }
        .road {
            width: 100%;
            height: 100%;
            background-color: #d9d9d9;
            clip-path: polygon(100% 0, 100% 180px, 0 100%, 0 calc(100% - 180px));
            @include maxwidth(768) {
                clip-path: polygon(100% 0, 100% (180 / 768 * 100vw), 0 100%, 0 calc(100% - (180 / 768 * 100vw)));
            }
        }
        .track-item {
            width: 310px;
            position: absolute;
            top: 0;
            right:-100px;
            @include maxwidth(768) {
                width: (310 / 768 * 100vw);
                right: (100 / 768 * 100vw * -1);
            }
        }
    }
}

#footer {
    color: $themetextcolor;
    padding: 60px 0 40px;
    @include maxwidth(768) {
        padding-bottom: 75px;
    }
    box-sizing: border-box;
    background-color: #000;
    position: relative;
    .container {
        @include container(1200, 15);
        .l-top {
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 40px 1rem;
            @include maxwidth(1200) {
                flex-direction: column;
                justify-content: initial;
            }
            .footer-company {
                @include maxwidth(1200) {
                    text-align: center;
                }
                .company-logo {
                    a {  }
                    img { width: 250px; }
                }
                
                .company-info {
                    @include f_all(14);
                    @include maxwidth(360) { @include f_all(13); }
                    line-height: 1.5;
                    margin-top: 10px;
                    &>*:not(:first-child) { margin-top: 0.5em; }
                    p {  }
                }
            }
            
            .footer-menu {
                display: flex;
                flex-wrap: wrap;
                gap: 1rem 140px;
                @include maxwidth(1200) {
                    justify-content: center;
                }
                @include maxwidth(768) {
                    flex-direction: column;
                    justify-content: initial;
                    gap: 20px;
                }
                .menu-item {
                    .menu-title {
                        @include f_all(15);
                        font-weight: bold;
                        line-height: 1.2;
                        text-transform: capitalize;
                        @include maxwidth(768) {
                            color: $themecolor;
                            @include f_all(14);
                            padding-top: 10px;
                            padding-left: 20px;
                            box-sizing: border-box;
                        }
                        &:has(+ ul) {
                            margin-bottom: 12px;
                            @include maxwidth(768) { margin-bottom: 10px; }
                        }
                    }
                    
                    ul {
                        @include f_all(14);
                        font-weight: 500;
                        line-height: 1.8;
                        &:not(:first-child) { margin-top: 1em; }
                        li {
                            a {
                                display: inline-flex;
                                align-items: center;
                                @include maxwidth(768) {
                                    display: flex;
                                    align-items: center;
                                    padding: 0.5em 20px;
                                    box-sizing: border-box;
                                    min-height: 40px;
                                    border-bottom: solid 1px rgba(#BEBEBE, 0.5);
                                }
                                &::after {
                                    content: "";
                                    flex-shrink: 0;
                                    display: block;
                                    width: 10px;
                                    height: 10px;
                                    background: url(../images/arrow-right-white.svg) no-repeat center center / contain;
                                    margin-left: 0.5em;
                                    margin-top: 0.10em;
                                }
                            }
                        }
                    }
                }
            }
        }
        
        .l-foot {
            margin-top: 66px;
            @include maxwidth(768) { margin-top: 20px; }
            .copyright {
                text-align: right;
                @include maxwidth(1200) { text-align: center; }
                small {
                    @include f_all(13);
                    line-height: 1.5;
                }
            }
        }
    }
}

// ===　フロントページ

// 東島商店
#frontAbout {
    padding: 160px 0 (265 / 1440 * 100vw);
    @include maxwidth(768) {
        padding: 100px 0 (240 / 375 * 100vw);
    }
    // padding: 160px 0 265px;
    box-sizing: border-box;
    background-color: $basecolor;
    position: relative;
    .container {
        margin: 0 15px;
        position: relative;
        z-index: 10;
        .logo {
            text-align: center;
            img {
                width: 200px;
                @include maxwidth(768) { width: 160px; }
            }

            &.js-scroll-target {
                clip-path: inset(100% 0 0 0);
                transition: clip-path 1200ms ease-out;
                &.inview { clip-path: inset(0% 0 0 0); }
            }
        }
        
        .text {
            @include f_all(14);
            font-weight: 500;
            line-height: 2;
            text-align: center;
            margin-top: 30px;
            @include maxwidth(768) {
                line-height: 1.8;
                margin-top: 22px;
            }
            &>*:not(:first-child) {
                margin-top: 2em;
            }
            p {  }

            &.js-scroll-target {
                p {
                    mask-size: 0% 100%;
                    mask-repeat: no-repeat;
                    mask-position: left 100%;
                    mask-image: linear-gradient(to right, $basetextcolor 0%, $basetextcolor 100%);
                    transition: mask-size 2000ms ease-out;
                    @for $i from 1 through 5 {
                        &:nth-child(#{$i + 1}) {
                            transition-delay: #{$i * 0.2}s;
                        }
                    }
                }
                &.inview {
                    p { mask-size: 100% 100%; }
                }
            }
        }
        
        .c-buttons {
            margin-top: 37px;
            @include maxwidth(768) { margin-top: 33px; }
            .c-button {
                &__link {  }
            }
        }
    }

    .track {
        pointer-events: none;
        position: absolute;
        left: 0;
        right: 0;
        overflow: hidden;
        .road {
            width: 100%;
            height: 100%;
        }
        .track-item {
            position: absolute;
            top: 0;
            @include maxwidth(768) { max-width: 330px !important; }
            &>img { width: 100%; }
        }
        &.front {
            height: (1090 / 1440 * 100vw);
            bottom: (537 / 1440 * 100vw * -1);
            padding-top: (175 / 1440 * 100vw);
            @include maxwidth(768) {
                height: (320 / 375 * 100vw);
                bottom: (135 / 375 * 100vw * -1);
                padding-top: (40 / 375 * 100vw);
                display: flex;
            }
            .road {
                background-color: #D9D9D9;
                clip-path: polygon(100% 0, 100% 300px, 0 100%, 0 calc(100% - 300px));
                @include maxwidth(1440) {
                    clip-path: polygon(100% 0, 100% (300 / 1440 * 100vw), 0 100%, 0 calc(100% - (300 / 1440 * 100vw)));
                }
                @include maxwidth(768) {
                    clip-path: polygon(100% 0, 100% (200 / 768 * 100vw), 0 100%, 0 calc(100% - (200 / 768 * 100vw)));
                    width: (660 / 375 * 100vw);
                }
            }
            .track-item {
                top: (85 / 1440 * 100vw);
                max-width: 473px;
                width: (473 / 1440 * 100vw);
                @include maxwidth(768) { width: (200 / 375 * 100vw); }
                right: (147 / 1440 * 100vw * -1);
                @include maxwidth(768) { right: (45 / 375 * 100vw * -1); }
            }
            .tree {
                position: absolute;
                top: 0;
                right: (138 / 1440 * 100vw);
                @include maxwidth(768) { right: (20 / 375 * 100vw);}
                &>img {
                    width: (210 / 1440 * 100vw);
                }
            }
        }
        &.back {
            height: (1082 / 1440 * 100vw);
            bottom: (435 / 1440 * 100vw * -1);
            padding-top: (45 / 1440 * 100vw);
            @include maxwidth(768) {
                height: (500 / 375 * 100vw);
                bottom: (175 / 375 * 100vw * -1);
                padding-top: (45 / 768 * 100vw);
            }
            &::after {
                content: "";
                @include absolute_centering;
                background-color: rgba(#fff, 0.6);
            }
            &>*:not(.tree) {
                // filter: opacity(0.5);
                // -webkit-filter: opacity(0.5);
            }
            .road {
                background-color: #E3E3E3;
                clip-path: polygon(0 0, 100% calc(100% - 230px), 100% 100%, 0 230px);
                @include maxwidth(1440) {
                    clip-path: polygon(0 0, 100% calc(100% - (230 / 1440 * 100vw)), 100% 100%, 0 (230 / 1440 * 100vw));
                }
                @include maxwidth(768) {
                    width: (660 / 375 * 100vw);
                    clip-path: polygon(0 0, 100% calc(100% - (180 / 768 * 100vw)), 100% 100%, 0 (180 / 768 * 100vw));
                }
            }
            .track-item {
                max-width: 420px;
                width: (420 / 1440 * 100vw);
                left: (90 / 1440 * 100vw * -1);
                @include maxwidth(768) {
                    width: (193 / 375 * 100vw);
                    left: (50 / 375 * 100vw * -1);
                }
            }
            .tree {
                position: absolute;
                top: (325 / 1440 * 100vw);
                left: (165 / 1440 * 100vw);
                @include maxwidth(768) {
                    top: (150 / 375 * 100vw);
                    left: (65 / 375 * 100vw);
                }
                z-index: 2;
                &>img {
                    width: (210 / 1440 * 100vw);
                }
            }
        }
    }
}

// サービス＆品質
#frontService {
    background-color: $basecolor;
    position: relative;
    z-index: 0;
    .l-top {
        color: $themetextcolor;
        padding: 120px 0 170px;
        @include maxwidth(768) { padding: 50px 0 (70 / 375 * 100vw); }
        background-color: #000;
        position: relative;
        z-index: 5;
        .container {
            @include container(1200, 15);
            z-index: 11;
            .head {
                .c-heading {
                    
                }
            }
            
            .body {
                margin-top: 30px;
                @include maxwidth(768) { margin-top: 20px; }
                .service-list {
                    display: flex;
                    justify-content: center;
                    flex-wrap: wrap;
                    gap: 30px;
                    @include maxwidth(1024) {
                        flex-direction: column;
                        justify-content: initial;
                        &>* {
                            flex-basis: 100% !important;
                            width: 100% !important;
                        }
                    }
                    @include maxwidth(768) { gap: 10px; }
                    .service-item {
                        // flex-basis: calc((100% - (30px * 2)) / 3);
                        flex-basis: 380px;
                        height: auto;
                        position: relative;
                        @include maxwidth(768) { padding-top: (25 / 375 * 100vw); }
                        @include maxwidth(480) { padding-top: 35px; }
    
                        &::before {
                            pointer-events: none;
                            content: attr(data-idx);
                            color: $themecolor;
                            font-size: 84px;
                            white-space: nowrap;
                            position: absolute;
                            top: 15px;
                            left: 20px;
                            z-index: 1;
                            @include maxwidth(768) {
                                font-size: clamp(64px, (84 / 768 * 100vw), 84px);
                                top: 0;
                                left: 0.1em;
                            }
                        }

                        &.js-scroll-target {
                            clip-path: inset(100% 0 100% 0);
                            transition: clip-path 1200ms ease-out;
                            &.inview { clip-path: inset(0% 0 0% 0); }
                        }
    
                        &__link {
                            display: block;
                            aspect-ratio: 380 / 480;
                            @include maxwidth(1024) {
                                aspect-ratio: auto;
                                height: (220 / 375 * 100vw);
                                min-height: 220px;
                            }
                            height: 100%;
                            position: relative;
                            z-index: 0;
                            overflow: hidden;
    
                            .title {
                                @include f_all(24);
                                @include maxwidth(768) { @include f_all(20); }
                                font-weight: bold;
                                text-align: center;
                                line-height: 1.2;
                                @include absolute_centering;
                                @include flex_centering;
                                z-index: 1;
                            }
                            
                            .c-button {
                                position: absolute;
                                z-index: 1;
                                inset: auto 25px 25px;
                                @include maxwidth(768) {
                                    inset: auto 10px 10px;
                                }
                                width: auto;
                                &__link {
                                    width: 100%;
                                    min-width: initial;
                                }
                            }
                            
                            .bg {
                                @include absolute_centering;
                                background-repeat: no-repeat;
                                background-position: center center;
                                background-size: cover;
                                z-index: -1;
                                transition: transform 400ms ease-out;
                                &::after {
                                    content: "";
                                    @include absolute_centering;
                                    background-color: rgba(#000, 0.4);
                                }
                            }
    
                            &::before, &::after {
                                content: "";
                                display: block;
                                width: 100px;
                                height: 60px;
                                background-color: $themecolor2;
                                position: absolute;
                                z-index: 0;
                            }
                            
                            &::before {
                                top: 0;
                                left: 0;
                                clip-path: polygon(0 0, 0% 100%, 100% 0);
                            }
    
                            &::after {
                                bottom: 0;
                                right: 0;
                                clip-path: polygon(100% 0, 0% 100%, 100% 100%);
                            }

                            @media (any-hover: hover) {
                                .bg { transform: scale(1); }
                                &:hover {
                                    .bg { transform: scale(1.2); }
                                    .c-button {
                                        &::before, &::after {
                                            transform: scaleY(1);
                                        }
                                    }
                                }
                            }
    
                        }
                    }
                }
            }
        }
    }
    .l-foot {
        height: (800 / 1440 * 100vw);
        margin-top: (270 / 1440 * 100vw * -1);
        position: relative;
        @include maxwidth(768) {
            height: (300 / 375 * 100vw);
            margin-top: (70 / 375 * 100vw * -1);
        }
        .track {
            pointer-events: none;
            position: absolute;
            left: 0;
            right: 0;
            overflow: hidden;
            .road {
                width: 100%;
                height: 100%;
            }
            .track-item {
                position: absolute;
                top: 0;
                &>img {
                    width: 100%;
                    // height: 100%;
                }
            }
            &.front {
                z-index: 6;
                height: (1090 / 1440 * 100vw);
                bottom: (375 / 1440 * 100vw * -1);
                padding-top: (80 / 1440 * 100vw);
                @include maxwidth(768) {
                    height: (500 / 375 * 100vw);
                    bottom: (243 / 375 * 100vw * -1);
                    padding-top: (40 / 375 * 100vw);
                }
                .road {
                    background-color: #D9D9D9;
                    clip-path: polygon(0 0, 100% calc(100% - 300px), 100% 100%, 0 300px);
                    @include maxwidth(1440) {
                        clip-path: polygon(0 0, 100% calc(100% - (300 / 1440 * 100vw)), 100% 100%, 0 (300 / 1440 * 100vw));
                    }
                    @include maxwidth(768) {
                        width: (662 / 375 * 100vw);
                        clip-path: polygon(0 0, 100% calc(100% - (200 / 768 * 100vw)), 100% 100%, 0 (200 / 768 * 100vw));
                    }
                }
                .track-item {
                    max-width: 473px;
                    width: (473 / 1440 * 100vw);
                    top: (185 / 1440 * 100vw);
                    left: (260 / 1440 * 100vw);
                    @include maxwidth(768) {
                        max-width: 330px;
                        width: (200 / 375 * 100vw);
                        top: (145 / 768 * 100vw);
                    }
                }
                .tree {
                    position: absolute;
                    top: (400 / 1440 * 100vw);
                    right: (300 / 1440 * 100vw);
                    @include maxwidth(768) {
                        top: (315 / 768 * 100vw);
                        right: (40 / 768 * 100vw);
                    }
                    &>img {
                        width: (210 / 1440 * 100vw);
                    }
                }
            }
            &.back {
                height: (1082 / 1440 * 100vw);
                bottom: (90 / 1440 * 100vw * -1);
                @include maxwidth(768) {
                    height: (335 / 375 * 100vw);
                    top: 20vw;
                    bottom: 0;
                    margin: auto;
                }
                &::after {
                    content: "";
                    @include absolute_centering;
                    background-color: rgba(#fff, 0.6);
                }
                .road {
                    background-color: #E3E3E3;
                    clip-path: polygon(100% 0, 100% 300px, 0 100%, 0 calc(100% - 300px));
                    @include maxwidth(1440) {
                        clip-path: polygon(100% 0, 100% (300 / 1440 * 100vw), 0 100%, 0 calc(100% - (300 / 1440 * 100vw)));
                    }
                    @include maxwidth(768) {
                        clip-path: polygon(100% 0, 100% (200 / 768 * 100vw), 0 100%, 0 calc(100% - (200 / 768 * 100vw)));
                    }
                }
            }
        }
    }
}

// 採用
#frontRecruit {
    position: relative;
    .sticky-wrapper {
        position: relative;
        .sticky-content {
            position: sticky;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            height: 100vh;
            .bg {
                @include absolute_centering;
                background-repeat: no-repeat;
                background-position: center center;
                background-size: cover;
                &::after {
                    content: "";
                    @include absolute_centering;
                    background: rgba(#000, 0.60);
                }
            }
        }
        .spacer { height: 100vh; }
    }
    
    .container {
        color: $themetextcolor;
        padding: (200 / 1440 * 100vw) 15px (580 / 1440 * 100vw);
        @include maxwidth(768) {
            padding-top: (270 / 375 * 100vw);
            padding-bottom: (227 / 375 * 100vw);
        }
        margin-top: -100vh;
        position: relative;
        .head {
            .c-heading { color: $themecolor; }
        }
        
        .body {
            margin-top: 28px;
            @include maxwidth(768) { margin-top: 22px; }

            .leadtext {
                @include f_all(24);
                @include maxwidth(768) { @include f_all(20); }
                font-weight: 500;
                line-height: 1.5;
                text-align: center;
                &.js-scroll-target {
                    mask-size: 0% 100%;
                    mask-repeat: no-repeat;
                    mask-position: left 100%;
                    mask-image: linear-gradient(to right, $basetextcolor 0%, $basetextcolor 100%);
                    transition: mask-size 2000ms ease-out;
                    &.inview { mask-size: 100% 100%; }
                }
            }
            
            .text {
                @include f_all(14);
                font-weight: 500;
                text-align: center;
                line-height: 2;
                margin-top: 22px;
                @include maxwidth(768) {
                    line-height: 1.8;
                    margin-top: 15px;
                }
                &>*:not(:first-child) { margin-top: 2em; }
                &.js-scroll-target {
                    &>* {
                        mask-size: 0% 100%;
                        mask-repeat: no-repeat;
                        mask-position: left 100%;
                        mask-image: linear-gradient(to right, $basetextcolor 0%, $basetextcolor 100%);
                        transition: mask-size 2000ms ease-out;
                        @for $i from 1 through 5 {
                            &:nth-child(#{$i + 1}) {
                                transition-delay: #{$i * 0.2}s;
                            }
                        }
                    }
                    &.inview > * { mask-size: 100% 100%; }
                }
            }
            
            .recruit-list {
                margin-top: 22px;
                @include maxwidth(768) { margin-top: 33px; }
                display: flex;
                align-items: center;
                justify-content: center;
                flex-wrap: wrap;
                gap: 15px;
                .recruit-item {
                    display: inline-block;
                    flex-basis: 210px;
                    @include maxwidth(768) {
                        flex-basis: calc((100% - (15px * 1)) / 2);
                    }
                    &.js-scroll-target {
                        opacity: 0;
                        transform: translateY(1rem);
                        transition: 1200ms ease-out;
                        &.inview {
                            opacity: 1;
                            transform: translateY(0rem);
                        }
                    }
                    &__link {
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        flex-direction: column;
                        padding: 23px 10px 10px;
                        box-sizing: border-box;
                        position: relative;

                        .idx {
                            font-size: 48px;
                            @include maxwidth(768) { font-size: clamp(32px, (48 / 768 * 100vw), 48px); }
                        }
                        
                        .title {
                            @include f_all(16);
                            font-weight: bold;
                            line-height: 1.5;
                            text-align: center;
                            margin-top: 23px;
                            @include maxwidth(768) { margin-top: 20px; }
                            @include maxwidth(360) { @include f_all(15); }
                        }
                        
                        .cta {
                            display: inline-block;
                            width: 50px;
                            height: 50px;
                            background: url(../images/arrow-right-white.svg) no-repeat left 45% center / 12px auto;
                            background-color: $themecolor;
                            margin-top: 33px;
                            @include maxwidth(768) {
                                width: 45px;
                                height: 45px;
                                margin-top: 10px;
                            }
                        }

                        z-index: 0;
                        &::before {
                            content: "";
                            @include absolute_centering;
                            z-index: -1;
                            background-color: $themecolor;
                            // border-radius: 5px;
                            transform-origin: center 95%;
                            transition: transform 400ms ease-out;
                        }
                        
                        @media (any-hover: hover) {
                            &::before { transform: scale(0); }
                            &:hover {
                                &::before { transform: scale(1); }
                            }
                        }
                    }
                }
            }
        }

        .images {
            pointer-events: none;
            position: absolute;
            width: 100%;
            left: 0;
            box-sizing: border-box;
            display: flex;
            align-items: center;
            justify-content: space-between;
            &.l-top {
                top: -50px;
                padding-left: 30px;
                align-items: flex-end;
                @include maxwidth(768) {
                    top: (20 / 375 * 100vw * -1);
                    padding-left: (15 / 375 * 100vw);
                }
                .image {
                    width: (300 / 1440 * 100vw);
                    @include maxwidth(768) { width: (140 / 375 * 100vw); }
                    &:nth-child(1) { aspect-ratio: 300 / 480; }
                    &:nth-child(2) {
                        aspect-ratio: 1;
                        margin-bottom: 38px;
                        @include maxwidth(786) { margin-bottom: (30 / 375 * 100vw * -1); }
                    }
                }
            }
            
            &.l-foot {
                bottom: 100px;
                padding-right: 30px;
                @include maxwidth(768) {
                    bottom: (40 / 375 * 100vw * -1);
                    padding-right: (15 / 375 * 100vw);
                    align-items: flex-end;
                    z-index: 20;
                }
                .image {
                    &:nth-child(1) {
                        width: (615 / 1440 * 100vw);
                        aspect-ratio: 615 / 300;
                        @include maxwidth(768) {
                            aspect-ratio: 228 / 140;
                            width: (228 / 375 * 100vw);
                            margin-bottom: (87 / 375 * 100vw);
                            margin-right: (10 / 375 * 100vw * -1);
                        }
                    }
                    &:nth-child(2) {
                        width: (400 / 1440 * 100vw);
                        @include maxwidth(768) { width: (143 / 375 * 100vw); }
                        aspect-ratio: 1;
                    }
                }
            }
            
            .image {
                overflow: hidden;
                &.parallax > img { height: calc(100% + 10vw); }
                &>img {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                }
            }
        }
    }
}

// ニュース＆トピックス
#frontNewstopics {
    margin-top: -100vh;
    padding: 120px 0 100px;
    @include maxwidth(768) { padding: 90px 0 80px; }
    background-color: $basecolor;
    position: relative;
    .sp {
        @media screen and (min-width: 769px) { display: none; }
    }
    .container {
        @include container(1200, 15);
        .head {
            .c-heading {
                color: $themecolor2;
                justify-content: flex-start;
                text-align: left;
            }
        }
        
        .body {
            margin-top: 38px;
            @include maxwidth(768) { margin-top: 30px; }
            .information-terms {
                @include maxwidth(768) {
                    ul {
                        padding-left: 15px;
                        padding-right: 15px;
                        margin-left: -15px;
                        margin-right: -15px;
                    }
                }

                &.js-scroll-target {
                    ul li {
                        opacity: 0;
                        transform: translateX(1rem);
                        transition: 1200ms ease-out;
                    }
                    &.inview {
                        ul li {
                            opacity: 1;
                            transform: translateX(0rem);
                        }
                    }
                }

                ul {
                    @include maxwidth(768) {
                        flex-wrap: nowrap;
                        overflow-x: auto;
                    }
                    li {
                        a {
                            &.current {
                                
                            }
                        }
                    }
                }
            }
            
            .information-headline {
                @include maxwidth(768) {
                    padding-left: 15px;
                    padding-right: 15px;
                    margin-left: -15px;
                    margin-right: -15px;
                }
                .headline-items {
                    &.js-scroll-target {
                        .headline-item {
                            opacity: 0;
                            transform: translateY(1rem);
                            transition: 1200ms ease-out;
                            @for $i from 1 through 3 {
                                &:nth-child(#{$i + 1}) {
                                    transition-delay: #{$i * 0.1}s;
                                }
                            }
                        }
                        &.inview {
                            .headline-item {
                                opacity: 1;
                                transform: translateY(0rem);
                            }
                        }
                    }
                    .headline-item {
                        @include maxwidth(768) { width: 300px; }
                        @include maxwidth(375) { width: (300 / 375 * 100vw); }
                        &__link {
                            .img {
                                img {
                                    
                                }
                            }
                            
                            .docs {
                                .date {
                                    
                                }
                                
                                .terms {
                                    .term {
                                        
                                    }
                                }
                                
                                .title {
                                    
                                }
                            }
                        }
                    }
                }
            }
            
            .c-buttons {
                margin-top: 50px;
                &.sp {
                    
                }
                
                .c-button {
                    &__link {
                        
                    }
                }
            }
        }
    }
}

// ===　サブページ

#subpageHeading {
    position: relative;
    padding-top: var(--header-height);
    .heading {
        color: $themetextcolor;
        line-height: 1.5;
        text-align: center;
        position: absolute;
        inset: calc(var(--header-height) + 40px) 0 0 0;
        @include flex_centering;
        z-index: 5;
        flex-direction: column;
        .en {
            @include f_all(15);
            font-weight: 500;
            text-align: center;
            text-transform: capitalize;
        }
        .ja {
            @include f_all(36);
            @include maxwidth(768) { @include f_all(32); }
            font-weight: bold;
            text-align: center;
        }
    }
    .image {
        height: 250px;
        @include maxwidth(768) { height: 200px; }
        position: relative;
        background-color: #000;
        &::after {
            content: "";
            @include absolute_centering;
            background-color: rgba(#000, 0.4);
        }
        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }
}

#subpageTopicpath {
    margin: 28px 0;
    @include maxwidth(768) { margin: 20px 0; }
    position: relative;
    &.archive .container { @include container(1200, 15); }
    .container {
        @include container(900, 15);
        ul {
            li {
                @include f_all(14);
                font-weight: bold;
                text-transform: capitalize;
                display: inline-flex;
                align-items: center;
                &::after {
                    content: "";
                    flex-shrink: 0;
                    display: block;
                    width: 12px;
                    height: 12px;
                    background: url(../images/arrow-right-black.svg) no-repeat center center / cover;
                    margin: 0.15em 0.25em 0;
                }
                &:last-child::after { display: none; }
            }
        }
    }
}

#subpageContent {
    margin: 65px 0 180px;
    @include maxwidth(768) { margin: 40px 0 (180 / 768 * 100vw); }
    position: relative;
    .container {
        @include container(900, 15);
        .default {
            @include contentdefault;
            @include eachcss;
        }

        // single.phpに追記
        .subpage-header {
            --subapge-header-between: 10px;
            margin-bottom: var(--subapge-header-between);
            & + h3 { margin-top: var(--subapge-header-between); }
            display: flex;
            align-items: flex-end;
            flex-wrap: wrap;
            flex-direction: column;
            justify-content: space-between;
            gap: 0.75rem;
            .terms {
                @include f_all(14);
                @include maxwidth(768) { @include f_all(13); }
                font-weight: 500;
                line-height: 1.1;
                display: flex;
                flex-wrap: wrap;
                gap: 0.5em;
                .term {
                    text-decoration: none;
                    @include flex_centering;    
                    padding: 0 0.5em;
                    box-sizing: border-box;
                    background-color: mix($basetextcolor, $basecolor, 0.1);
                    min-height: 2em;
                    position: relative;
                    &::before {
                        content: "#";
                        margin-right: 0.1em;
                    }
                }
            }
            .date {
                color: mix($basetextcolor, $basecolor, 0.5);
                @include f_all(15);
                @include maxwidth(768) { @include f_all(14); }
                font-weight: 500;
                line-height: 1;
            }
        }
    }
}

#subpageArchiveContent {
    margin: 65px 0 180px;
    position: relative;
    @include maxwidth(786) { margin: 40px 0 (180 / 768 * 100vw); }
    .container {
        @include container(1200, 15);
    }
}

/* Pager */
.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;
    }
}

/* Archivelink */
div.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;
            }
        }
    }
}
