// スタイルシート common

@charset "utf-8";

@import "mixin";

:root {
    --header-height: 0px;
    --mv-sub-height: 0px;

    --loaded-animation-cubic: cubic-bezier(0.33, 1, 0.68, 1);
}

// html { scroll-behavior: smooth; }

body {
    @include root;
    position: relative;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;

    &.subpage {
        padding-top: var(--header-height);
    }
}

video, img {
    max-width: 100%;
    height: auto;
}

:where(figure) { margin: 0; }

@keyframes border_anime1 {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

@keyframes border_anime2 {
    0% { top: -100%; }
    50%, 100% { top: 100%; }
}

@keyframes border_anime3 {
    0% { right: -100%; }
    50%,100% { right: 100%; }
}

@keyframes border_anime4 {
    0% { bototm: -100%; }
    50%, 100% { bottom: 100%; }
}

.default {
    @include contentdefault;
    @include eachcss;
}

br {
    &.sp {
        @media screen and (min-width: 769px) { display: none; }
    }
}

@keyframes loadedAnime {
    0% {
        opacity: 0;
        transform: translate(0,10px);
    }
    100% {
        opacity: 1;
        transform: translate(0,0);
    }
}

// ローディングが終わるまで非スクロール
// noscriptを書いてjsが走らないときでもスクロール可能にする。
body:not(.page-loaded) { overflow-y: hidden; }

body.subpage.page-loaded #mainContainer {
    animation: loadedAnime 750ms var(--loaded-animation-cubic, ease-in-out);
}

// === Components

@keyframes gradient_anime {
    0% { background-position: 0% 0%; }
    25% { background-position: 50% 0%; }
    50% { background-position: 100% 0%; }
    75% { background-position: 50% 0%; }
    100% { background-position: 0% 0%; }
}

@mixin plus {
    content: "＋";
    font-size: 14px;
    font-weight: bold;
    @include flex_centering;
    width: 30px;
    height: 30px;
    padding: 0 0 1px 0;
    box-sizing: border-box;
    background-color: $themecolor;
    color: $themetextcolor;
}

@keyframes loading_shaft_anime {
    50% {
      -webkit-transform: scaleY(1.3);
      -moz-transform: scaleY(1.3);
      -ms-transform: scaleY(1.3);
      -o-transform: scaleY(1.3);
      transform: scaleY(1.3);
    }
}

#loading {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: $basecolor;
    .sitelogo {
        position: fixed;
        z-index: 10;
        inset: 0;
        @include flex_centering;
        flex-direction: column;
        padding-bottom: 10vh;
        @include maxwidth(768) {
            padding-bottom: 4vh;
        }
        box-sizing: border-box;
        .logo {
            > img {
                width: 220px;
                @include maxwidth(768) { width: 180px; }
            }
        }
        .docs {
            width: 100%;
            min-height: 140px;
            @include maxwidth(768) {
                min-height: 170px;
            }
            & > *:not(.bar) {
                margin-left: 20px;
                margin-right: 20px;
            }
        }
        .leadtext {
            @include f_all(24);
            @include maxwidth(768) {
                @include f_all(20);
            }
            color: $themecolor;
            font-weight: bold;
            line-height: 2;
            text-align:center;
            margin-top: 14px;
        }
        .bar {
            --w: 0%;
            display: block;
            width: 100%;
            height: 2px;
            background-color: #f4f4f4;
            position: relative;
            margin-top: 10px;
            overflow: hidden;
            border-radius: 1px;
            &::after {
                content: "";
                position: absolute;
                inset: 0;
                width: var(--w);
                background: linear-gradient(to right, $themecolor, $themecolor2);
                box-shadow: 0 0 8px rgba($themecolor2, 0.55);
                transition: width 0.15s linear;
            }
        }
        .text {
            @include f_all(14);
            @include maxwidth(768) {
                @include f_all(13);
            }
            font-weight: 500;
            line-height: 1.8;
            text-align: center;
            margin-top: 15px;
        }
        .complete {
            @include f_all(16);
            @include maxwidth(768) {
                @include f_all(15);
            }
            font-weight: bold;
            line-height: 2;
            text-align: center;
            margin-top: 20px;
            .ch {
                display: inline-block;
                will-change: transform, opacity, filter;
            }
        }
    }
    &First {
        position: fixed;
        inset: 0;
        @include flex_centering;
        flex-direction: column;
    }
    &Second {
        position: fixed;
        inset: 0;
        @include flex_centering;
        flex-direction: column;
        background: linear-gradient(180deg, $themecolor 0%, $themecolor2 100%);
        opacity: 0;
        visibility: hidden;
        .logo {
            clip-path: inset(100% 0 0 0);
        }
    }
}

#header {
    position: fixed;
    inset: 0 0 auto 0;
    .admin-bar & { inset: 32px 0 auto 0; }
    z-index: 20;
    height: var(--header-height);
    transition: transform 0.3s ease;

    &.is-hidden { transform: translateY(-100%); }

    body.menu_open & { transform: translateY(0) !important; }

    isolation: isolate;

    &::before {
        content: "";
        pointer-events: none;
        position: absolute;
        z-index: -1;
        inset: 0 0 auto 0;
        height: 150px;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.50) 0%, rgba(0, 0, 0, 0.00) 100%);
        display: none;
        body.toppage & {
            display: block;
        }
    }

    .container {
        opacity: 0;
        body.page-loaded & {
            opacity: 1;
            transition: opacity 300ms ease-in-out;
        }
        body.page-loaded.stop-animation & { animation: none; }
        padding: 25px (30 / 1440 * 100vw) 18px;
        @include maxwidth(768) {
            padding: 15px 15px 10px 15px;
        }
        box-sizing: border-box;
        background-color: $basecolor;
        body.toppage & {
            color: $themetextcolor;
            background-color: transparent;
            transition: color 300ms ease;
            &:has(+ #childrenHeader.open) {
                color: $basetextcolor;
            }
        }
        body.toppage.menu_open & {
            background-color: $basecolor;
        }
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 2rem;
        position: relative;
        z-index: 5;
        .sitename {
            flex-shrink: 0;
            a {  }
            img {
                width: 220px;
                @include maxwidth(768) { width: 150px; }
            }
        }
        .menu {
            @include f_all(14);
            font-weight: bold;
            line-height: 1;
            @include maxwidth(1140) { display: none !important; }
            nav {
                &>ul {
                    display: flex;
                    align-items: center;
                    gap: 25px;
                    &>li {
                        position: relative;
                        // body.toppage & {
                        //     opacity: 0;
                        //     visibility: hidden;
                        //     transform: translate(0, -10px);
                        //     transition: 500ms 850ms ease-in-out;
                        // }
                        // body.toppage.page-loaded & {
                        //     opacity: 1;
                        //     visibility: visible;
                        //     transform: translate(0, 0);

                        //     @for $i from 0 to 10 {
                        //         &:nth-child(#{$i + 1}) { transition-delay: #{($i * 100) + 850}ms; }
                        //     }
                        // }
                        &>a {
                            display: inline-flex;
                            align-items: center;
                            gap: 4px;

                            @media (any-hover: hover) {
                                &:hover { opacity: 0.8; }
                            }

                            &.form {
                                @include f_all(13);
                                @include flex_centering;
                                width: 140px;
                                min-height: 42px;
                                color: $themetextcolor;
                                background-color: $themecolor;
                                position: relative;

                                &::before {
                                    content: "";
                                    display: block;
                                    width: 13px;
                                    height: 10px;
                                    background: url(../images/icon-mail-white.svg) no-repeat center / contain;
                                    margin-right: 4px;
                                    margin-top: 0.15em;
                                }

                                @media (any-hover: hover) {
                                    transition: opacity 300ms ease;
                                    &:hover { opacity: 0.8; }
                                }
                            }

                            &.parent {
                                &::after {
                                    @include plus;
                                    flex-shrink: 0;
                                    font-size: 10px;
                                    width: 15px;
                                    height: 15px;
                                    padding: 0 1px 1px 0;
                                    transition: background 300ms ease;
                                }
                                &.act::after {
                                    content: "－";
                                    transform: rotate(180deg);
                                    background-color: $accentcolor;
                                    transition-property: background, transform;
                                }
                            }

                        }
                        &>ul {
                            display: none;
                        }
                    }
                }

            }
        }
        a#gnavToggle {
            cursor: pointer;
            @include f_all(8);
            font-weight: bold;
            line-height: 1;
            display: block;
            width: 40px;
            height: 40px;
            color: $themetextcolor;
            background-color: $themecolor;
            position: relative;
            body.menu_open & {
                background-color: $accentcolor;
            }
            @media screen and (min-width: 1141px) { display: none !important; }
            .b {
                span {
                    display: inline-block;
                    width: 15px;
                    height: 1px;
                    background-color: currentColor;
                    position: absolute;
                    inset: 0 0 2px 0;
                    margin: auto;
                    transition: transform 300ms ease;
                    &:nth-child(1) {
                        transform: translate(0, -5px);
                        body.menu_open & {
                            transform: translate(0, -5px) rotate(45deg);
                        }
                    }
                    &:nth-child(2) {
                        body.menu_open & {
                            transform: translate(0, -5px) rotate(-45deg);
                        }
                    }
                }
            }
            .t {
                position: absolute;
                inset: auto 0 0.8em 0;
                @include flex_centering;
                &::before {
                    content: "MENU";
                    body.menu_open & { content: "CLOSE"; }
                }
            }
        }
    }
    #childrenHeader {
        position: absolute;
        inset: var(--header-height) 0 auto 0;
        inset: 0 0 auto 0;
        z-index: 0;
        overflow: hidden;
        height: 0;
        &::before {
            content: "";
            display: block;
            position: absolute;
            inset: 0;
            z-index: -1;
            background: linear-gradient(180deg, #FFF 0%, rgba(255, 255, 255, 0.98) 100%);
        }
        .childrenHeader-menu {
            display: none;
            padding: 20px (30 / 1440 * 100vw);
            padding: calc(var(--header-height) + 32px) (30 / 1440 * 100vw) 20px;
            box-sizing: border-box;
            ul {
                display: flex;
                justify-content: flex-end;
                // flex-wrap: wrap;
                gap: 15px;
                li {
                    flex-basis: 180px;
                    position: relative;

                    opacity: 0;
                    transform: translateY(10px);
                    transition: opacity 0.3s ease, transform 0.3s ease;
                    &.stagger-in {
                        opacity: 1;
                        transform: translateY(0);
                    }
                    a {
                        &>* { display: block; }
                        .img {
                            padding-top: 100%;
                            box-sizing: border-box;
                            position: relative;
                            overflow: hidden;
                            &>img {
                                position: absolute;
                                inset: 0;
                                width: 100%;
                                height: 100%;
                                object-fit: cover;
                                transition: transform 300ms ease;
                            }
                        }
                        .title {
                            @include f_all(14);
                            font-weight: bold;
                            line-height: 1.2;
                            margin-top: 10px;
                            padding-left: 15px;
                            padding-bottom: 0.35em;
                            box-sizing: border-box;
                            position: relative;
                            &::before {
                                content: "";
                                display: inline-block;
                                width: 6px;
                                height: 6px;
                                border-radius: 6px;
                                background-color: $themecolor;
                                position: absolute;
                                inset: 0.5em auto auto 0px;
                            }
                            &::after {
                                content: "";
                                display: block;
                                width: 100%;
                                height: 1px;
                                background-image: linear-gradient(to right, $themecolor 0%, transparent 100%);
                                position: absolute;
                                inset: auto 0 0 0;
                                opacity: 0;
                                transform: scaleX(0.5);
                                transform-origin: left;
                                transition: transform 300ms ease, opacity 300ms ease;
                            }
                        }
                        @media (any-hover: hover) {
                            &:hover {
                                .img > img {
                                    transform: scale(1.10);
                                }
                                .title::after {
                                    opacity: 1;
                                    transform: scaleX(1);
                                    transform-origin: right;
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}

#gnavContainer {
    position: fixed;
    inset: var(--header-height) 0 0 0;
    body.admin-bar & {
        inset: calc(var(--header-height) + 32px) 0 0 0;
    }
    z-index: 100;
    overflow-y: auto;

    // シンプルなダーク背景 - 物流企業らしい実直さ
    background-color: $basetextcolor;

    // 初期状態 - 非表示
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    // body.menu_open で表示
    body.menu_open & {
        opacity: 1;
        visibility: visible;
    }

    // スクロールバーのカスタマイズ
    -ms-overflow-style: none;
    scrollbar-width: none;
    &::-webkit-scrollbar { display: none; }
    overscroll-behavior: contain;

    #gnav {
        position: relative;
        z-index: 1;
        min-height: 100%;
        display: flex;
        flex-direction: column;

        .container {
            padding: 40px 20px 80px;
            @include maxwidth(768) {
                padding-bottom: 60px;
            }
            flex: 1;
            display: flex;
            flex-direction: column;

            .gnav-menu {
                flex: 1;

                > ul {
                    // メニューアイテム
                    > li {
                        position: relative;
                        border-bottom: 1px solid rgba(#fff, 0.12);

                        // スタガードアニメーション用
                        opacity: 0;
                        transform: translateX(-20px);
                        transition: opacity 0.5s ease, transform 0.5s ease;

                        @for $i from 1 through 10 {
                            &:nth-child(#{$i}) {
                                transition-delay: #{$i * 0.06}s;
                            }
                        }

                        body.menu_open & {
                            opacity: 1;
                            transform: translateX(0);
                        }

                        // メインリンク
                        > a {
                            display: flex;
                            justify-content: space-between;
                            align-items: center;
                            padding: 18px 20px;
                            @include maxwidth(768) { padding: 1em; }
                            box-sizing: border-box;
                            color: $themetextcolor;
                            font-weight: 600;
                            @include f_all(15);
                            letter-spacing: 0.02em;
                            line-height: 1.3;
                            text-decoration: none;
                            position: relative;

                            // ホバーエフェクト - テーマカラーのアクセントライン
                            &::before {
                                content: "";
                                position: absolute;
                                left: 0;
                                top: 50%;
                                width: 3px;
                                height: 0;
                                background: $themecolor;
                                transform: translateY(-50%);
                                transition: height 0.3s ease;
                            }

                            @media (any-hover: hover) {
                                &:hover::before {
                                    height: 24px;
                                }
                            }
                        }

                        // ================================
                        // アコーディオン（子メニューあり）
                        // ================================
                        &.haschild {
                            > a {
                                padding-right: 40px;

                                // アコーディオンアイコン
                                &::after {
                                    content: "＋";
                                    @include flex_centering;
                                    position: absolute;
                                    right: 0;
                                    top: 50%;
                                    width: 32px;
                                    height: 32px;
                                    transform: translateY(-50%);
                                    background-color: rgba(#fff, 0.1);
                                    border-radius: 50%;
                                    transition: background 0.3s ease, transform 0.3s ease;
                                }
                            }

                            // オープン時
                            &.open { padding-bottom: 1.5rem; }
                            &.open > a {
                                &::after {
                                    content: "－";
                                    background: rgba(#fff, 0.2);
                                }
                            }
                        }

                        // ================================
                        // 子メニュー
                        // ================================
                        > ul {
                            max-height: 0;
                            overflow: hidden;
                            transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                                        padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
                            padding: 0 0 0 16px;
                            margin-left: 8px;
                            border-left: 1px solid rgba(#fff, 0.15);

                            li {
                                opacity: 0;
                                transform: translateY(-8px);
                                transition: opacity 0.3s ease, transform 0.3s ease;

                                @for $i from 1 through 10 {
                                    &:nth-child(#{$i}) {
                                        transition-delay: #{$i * 0.04}s;
                                    }
                                }

                                a {
                                    display: inline-flex;
                                    align-items: center;
                                    gap: 10px;
                                    padding: 12px 0;
                                    color: rgba($themetextcolor, 0.85);
                                    @include f_all(14);
                                    font-weight: 500;
                                    text-decoration: none;
                                    transition: color 0.2s ease, transform 0.2s ease;

                                    // 矢印アイコン
                                    &::before {
                                        content: "";
                                        width: 6px;
                                        height: 6px;
                                        border-right: 1.5px solid currentColor;
                                        border-bottom: 1.5px solid currentColor;
                                        transform: rotate(-45deg);
                                        opacity: 0.6;
                                        transition: transform 0.2s ease, opacity 0.2s ease;
                                    }

                                    @media (any-hover: hover) {
                                        &:hover {
                                            color: $themetextcolor;
                                            transform: translateX(4px);

                                            &::before {
                                                opacity: 1;
                                                transform: rotate(-45deg) translate(2px, 2px);
                                            }
                                        }
                                    }
                                }
                            }
                        }

                        // オープン時の子メニュー
                        &.open > ul {
                            max-height: 500px;
                            padding: 8px 0 16px 16px;

                            li {
                                opacity: 1;
                                transform: translateY(0);
                            }
                        }
                    }
                }
            }

            .gnav-contact {
                margin-top: 40px;
                @include flex_centering;
                opacity: 0;
                transform: translateY(20px);
                transition: opacity 0.5s ease 0.4s, transform 0.5s ease 0.4s;

                body.menu_open & {
                    opacity: 1;
                    transform: translateY(0);
                }

                a.form {
                    @include f_all(14);
                    font-weight: bold;
                    @include flex_centering;
                    gap: 6px;
                    padding: 0.5em 1em;
                    box-sizing: border-box;
                    min-width: 280px;
                    @include maxwidth(768) {
                        width: 100%;
                        min-width: initial;
                    }
                    min-height: 45px;
                    color: $themetextcolor;
                    background-color: $themecolor;
                    text-decoration: none;
                    position: relative;
                    transition: background-color 0.3s ease, border-color 0.3s ease;

                    // 箱アイコン（左）
                    &::before {
                        content: "";
                        flex-shrink: 0;
                        display: block;
                        width: 16px;
                        height: 17px;
                        background: url('../images/icon-box-white.svg') no-repeat center / contain;
                    }

                    // 外部リンクアイコン（右）
                    &::after {
                        content: "";
                        flex-shrink: 0;
                        display: block;
                        width: 14px;
                        height: 14px;
                        background: url('../images/icon-tab-white.svg') no-repeat center / contain;
                    }

                    @media (any-hover: hover) {
                        &:hover { opacity: 0.8; }
                    }
                }
            }

            .gnav-sns {
                display: flex;
                justify-content: center;
                gap: 8px;
                margin-top: 25px;
                padding: 0;
                list-style: none;
                opacity: 0;
                transform: translateY(20px);
                transition: opacity 0.5s ease 0.5s, transform 0.5s ease 0.5s;

                body.menu_open & {
                    opacity: 1;
                    transform: translateY(0);
                }

                li a {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    width: 45px;
                    height: 45px;
                    text-indent: -9999px;
                    background: $themecolor;
                    position: relative;
                    transition: opacity 0.3s ease;

                    background-repeat: no-repeat;
                    background-position: center;
                    background-size: 14px auto;
                    &.instagram { background-image: url('../images/logo-instagram-white.svg'); }
                    &.x { background-image: url('../images/logo-x-white.svg'); }

                    @media (any-hover: hover) {
                        &:hover { opacity: 0.8; }
                    }
                }
            }
        }
    }
}

@keyframes wheel {
    0% {
        opacity: 1;
        top: 15%;
    }
    75% {
        opacity: 1;
        top: calc(75% - 7px);
    }
    100% {
        opacity: 0;
        top: calc(90% - 7px);
    }
}

#mainVisual {
    position: relative;
    z-index: 0;
    opacity: 0;
    transform: translate(0,10px);
    transition: 750ms var(--loaded-animation-cubic, ease-in-out);
    body.page-loaded & {
        opacity: 1;
        transform: translate(0,0);
    }
    .l-main {
        /* height: calc(100vh - (var(--header-height) + var(--mv-sub-height)));
        height: calc(100svh - (var(--header-height) + var(--mv-sub-height)));
        min-height: 340px;
        @include maxwidth(768) { min-height: 280px; }

        body.admin-bar & {
            height: calc(100vh - (var(--header-height) + var(--mv-sub-height) + 32px));
            height: calc(100svh - (var(--header-height) + var(--mv-sub-height) + 32px));
            min-height: calc(340px + 32px);
            @include maxwidth(768) { min-height: (280px - 32px); }
        } */

        height: 100vh;
        height: 100svh;
        min-height: 600px;
        @include maxwidth(1024) {
            height: calc(100vh - var(--mv-sub-height));
            height: calc(100svh - var(--mv-sub-height));
            min-height: 380px;
        }

        body.admin-bar & {
            height: calc(100vh - 32px);
            height: calc(100svh - 32px);
            min-height: calc(600px - 32px);
            @include maxwidth(1024) {
                height: calc(100vh - var(--mv-sub-height) - 32px);
                height: calc(100svh - var(--mv-sub-height) - 32px);
                min-height: calc(380px - 32px);
            }
        }


        position: relative;
        #videoContainer {
            height: 100%;
            position: relative;
            .poster {
                height: 100%;
                &>img {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                }
            }
            .video {
                position: absolute;
                inset: 0;
                &>video {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                }
                &::after {
                    content: "";
                    position: absolute;
                    inset: 0;
                    background-image:
                        radial-gradient($basetextcolor 30%, transparent 31%),
                        radial-gradient($basetextcolor 30%, transparent 31%);
                    background-size: 3px 3px;
                    background-position: 0 0, 3px 3px;
                }
            }

            &::after {
                content: "";
                pointer-events: none;
                position: absolute;
                inset: 0;
                z-index: 1;
                background: linear-gradient(
                    180deg,
                    rgba($basetextcolor, 0.10) 0%,
                    rgba($basetextcolor, 0.40) 50%,
                    rgba($basetextcolor, 0.10) 100%
                );
            }
        }
        .overlay {
            color: $themetextcolor;
            position: absolute;
            inset: 0 15px 0 15px;
            z-index: 5;
            @include flex_centering;
            flex-direction: column;
            padding-bottom: calc(var(--mv-sub-height) / 2);
            @include maxwidth(1024) {
                padding-bottom: 0px;
                padding-top: calc(var(--header-height) / 1.5);
            }
            &-title {
                font-size: clamp(28px, (48 / 1200 * 100vw), 48px);
                font-weight: bold;
                line-height: 1.3;
                @include maxwidth(768) { line-height: 1.6; }
                text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
                text-align: center;
                //opacity: 0;
                //transform: translate(0, 10px);
                //transition: 500ms ease-in-out;
                body.page-loaded & {
                    //opacity: 1;
                    //transform: translate(0, 0);
                }

                &>span {
                    font-size: 0.9375em;
                    line-height: 1;
                    display: inline-flex;
                    align-items: center;
                    justify-content: center;
                    padding: 4px 12px 9px;
                    @include maxwidth(768) { padding: 3px 7px 6px; }
                    box-sizing: border-box;
                    margin: 0 0.2em;
                    position: relative;
                    z-index: 0;
                    &::before {
                        content: "";
                        position: absolute;
                        z-index: -1;
                        inset: 0;
                        background: linear-gradient(to right, $themecolor 0%, $themecolor2 100%);
                        //clip-path: inset(0 100% 0 0);
                        //transition: clip-path 500ms 350ms ease-in-out;
                        //body.page-loaded & { clip-path: inset(0 0 0 0); }
                    }
                    &:nth-of-type(odd)::before { background: linear-gradient(to right, $themecolor 0%, $themecolor2 100%); }
                    &:nth-of-type(even)::before { background: linear-gradient(to right, $themecolor2 0%, $themecolor 100%); }
                    @for $span from 0 to 5 {
                        &:nth-of-type(#{$span + 1})::before { transition-delay: #{($span * 350) + 350}ms; }
                    }

                }
            }
            &-subtitle {
                @include f_all(20);
                font-weight: 900;
                line-height: 1.3;
                text-align: center;
                text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
                margin-top: 13px;
                @include maxwidth(768) {
                    @include f_all(14);
                    font-weight: bold;
                    margin-top: 5px;
                }

                //opacity: 0;
                //transform: translate(0,10px);
                //transition: 500ms 900ms ease-in-out;
                body.page-loaded & {
                    //opacity: 1;
                    //transform: translate(0,0);
                }
            }
            .c-button {
                margin-top: 16px;
                @include maxwidth(768) { margin-top: 13px; }

                //opacity: 0;
                //visibility: hidden;
                //transform: translate(0,10px);
                //transition: 500ms 1000ms ease-in-out;
                body.page-loaded & {
                    //opacity: 1;
                    //visibility: visible;
                    //transform: translate(0,0);
                }

                &__link {  }
            }
        }
    }
    .l-sub {
        height: var(--mv-sub-height);
        position: relative;
        @media screen and (min-width: 1025px) {
            position: absolute;
            inset: auto 0 0 0;
        }
        z-index: 5;
        .inner {
            padding: 20px (30 / 1440 * 100vw);
            box-sizing: border-box;
            position: relative;
            @include maxwidth(768) { padding: 24px 15px 10px; }
            .cols {
                display: flex;
                justify-content: space-between;
                gap: 2rem;
                @include maxwidth(1024) {
                    flex-direction: column;
                    justify-content: initial;
                    gap: 0px;
                    &>* { flex: none !important; }
                }
                .col {
                    flex-basis: 50%;
                    @include maxwidth(1024) { display: contents; }
                    .headline {
                        margin-top: 30px;
                        max-width: 600px;
                        width: 100%;
                        margin-left: 0;
                        @include maxwidth(1024) {
                            order: 1;
                            margin-top: 0;
                            margin-left: auto;
                            padding: 0 35px;
                            box-sizing: border-box;
                        }
                        &-items {
                            @media screen and (min-width: 1025px) {
                                display: flex;
                                flex-direction: column;
                                gap: 10px;
                            }
                        }
                        &-item {
                            color: $themetextcolor;
                            @include maxwidth(1024) {
                                color: $basetextcolor;
                            }
                            width: 100%;
                            &__link {
                                display: flex;
                                align-items: center;
                                flex-wrap: wrap;
                                gap: 0.5em 20px;
                                .terms {
                                    flex-shrink: 0;
                                    flex-basis: 125px;
                                    @include maxwidth(1024) {
                                        flex-shrink: 1;
                                        flex-basis: auto;
                                    }
                                    display: flex;
                                    align-items: center;
                                    flex-wrap: wrap;
                                    gap: 0.25em;
                                    .term {
                                        @include f_all(13);
                                        font-weight: bold;
                                        line-height: 1.2;
                                        display: inline-flex;
                                        align-items: center;
                                        justify-content: center;
                                        padding: 0.1em 10px 0.15em;
                                        box-sizing: border-box;
                                        color: $themetextcolor;
                                        min-height: 22px;
                                        background-color: $basetextcolor;
                                        @include maxwidth(768) {
                                            @include f_all(10);
                                            padding: 0.1em 6px 0.15em;
                                            min-height: 18px;
                                        }

                                        &.important {
                                            color: $accenttextcolor;
                                            background-color: $accentcolor;
                                        }
                                    }
                                }
                                .title {
                                    @include f_all(14);
                                    font-weight: bold;
                                    line-height: 1.3;
                                    @include maxwidth(1024) { flex-basis: 100%; }
                                    @include maxwidth(768) {
                                        @include f_all(13);
                                        line-height: 1.2;
                                    }
                                }

                                @media (any-hover: hover) {
                                    &:hover { opacity: 0.8; }
                                }

                                &.important { color: $accentcolor; }

                            }
                        }
                        &-pagination,
                        &-button-prev,
                        &-button-next {
                            @media screen and (min-width: 1025px) { display: none !important; }
                        }
                        &-pagination {
                            @include flex_centering;
                            gap: 4px;
                            margin-top: 12px;
                            .swiper-pagination-bullet {
                                margin: 0;
                                flex-shrink: 0;
                                width: 8px;
                                height: 8px;
                                border-radius: 0px;
                                background-color: #878787;
                                &-active {
                                    background-color: $themecolor;
                                }
                            }
                        }
                        &-button-prev,
                        &-button-next {
                            cursor: pointer;
                            display: block;
                            width: 15px;
                            height: 15px;
                            background: url(../images/arrow-right-white.svg) no-repeat center center / 4px auto;
                            background-color: $themecolor;
                            position: absolute;
                            z-index: 10;
                        }
                        &-button-prev {
                            inset: 40% auto auto 0;
                            transform: scale(-1, 1);
                        }
                        &-button-next {
                            inset: 40% 0 auto auto;
                        }
                    }
                    .scroll-down {
                        margin-top: 45px;
                        @include maxwidth(1024) {
                            order: 3;
                            margin-top: 24px;
                        }
                        &__link {
                            color: $themetextcolor;
                            @include f_all(13);
                            font-weight: bold;
                            line-height: 1.5;
                            text-transform: uppercase;
                            display: inline-flex;
                            align-items: center;
                            gap: 0.95em;
                            @include maxwidth(1024) {
                                color: $themecolor;
                            }
                            @include maxwidth(768) {
                                @include f_all(10);
                                gap: 0.5em;
                            }
                            .i {
                                flex-shrink: 0;
                                display: block;
                                width: 18px;
                                height: 35px;
                                border-radius: 70px;
                                background-color: $themetextcolor;
                                position: relative;
                                @include maxwidth(1024) {
                                    border: 1px solid;
                                }
                                @include maxwidth(768) {
                                    width: 15px;
                                    height: 28px;
                                }
                                &::before {
                                    content: "";
                                    width: 3px;
                                    height: 7px;
                                    @include maxwidth(768) {
                                        width: 2.5px;
                                        height: 6px;
                                    }
                                    position: absolute;
                                    top: 10%;
                                    left: 50%;
                                    transform: translateX(-50%);
                                    background-color: $themecolor;
                                    border-radius: 50px;
                                    opacity: 1;
                                    animation: wheel 2s infinite;
                                }
                            }
                            .t {  }
                        }
                    }
                    .featured-news {
                        max-width: 500px;
                        width: 100%;
                        margin-left: auto;
                        margin-right: 0px;
                        background-color: #FFF;
                        display: flex;
                        box-shadow: 2px 2px 8px 0 rgba(0, 0, 0, 0.25);
                        @include maxwidth(1024) {
                            order: 2;
                            margin-top: 24px;
                            margin-right: auto;
                        }
                        // opacity: 0;
                        // visibility: hidden;
                        // transform: translate(10px,0);
                        // margin-right: -10px;
                        transition:
                            // opacity 500ms 850ms ease-in-out,
                            // visibility 500ms 850ms ease-in-out,
                            // margin 500ms 850ms ease-in-out,
                            transform 300ms ease-in-out
                        ;
                        // body.page-loaded & {
                        //     opacity: 1;
                        //     visibility: visible;
                        //     margin-right: 0;
                        // }
                        &::before {
                            content: "featured news";
                            @include f_all(13);
                            font-weight: bold;
                            flex-shrink: 0;
                            width: 20px;
                            @include flex_centering;
                            color: $themetextcolor;
                            background-color: $themecolor;
                            writing-mode: vertical-rl;
                            text-transform: uppercase;
                            @include maxwidth(768) {
                                @include f_all(10);
                                width: 16px;
                            }
                        }
                        @media (any-hover: hover) {
                            transform-origin: center center;
                            &:hover { transform: scale(0.96); }
                        }
                        &__link {
                            width: 100%;
                            @include flex_centering;
                            flex-direction: column;
                            min-height: 200px;
                            position: relative;
                            @include maxwidth(768) { min-height: 136px; }

                            .logo {
                                &>img {
                                    width: 396px;
                                    @include maxwidth(768) { width: 272px; }
                                }
                            }
                            .text {
                                @include f_all(16);
                                font-weight: bold;
                                line-height: 1.5;
                                text-align: center;
                                margin-top: 12px;
                                @include maxwidth(768) {
                                    @include f_all(11);
                                }
                            }

                            &::after {
                                @include plus;
                                position: absolute;
                                inset: auto 10px 10px auto;
                                @include maxwidth(768) {
                                    font-size: 10px;
                                    width: 20px;
                                    height: 20px;
                                }
                            }

                        }
                    }
                }
            }
        }
    }
}

#totopContainer {
    position: fixed;
    inset: auto 0 0 auto;
    z-index: 25;

    transform: translate(0, 100%);
    transition: transform 300ms ease;
    body.header_scrollout & { transform: translate(0, 0); }
}
a#totop {
    cursor: pointer;
    color: $themetextcolor;
    @include f_all(10);
    font-weight: 500;
    text-transform: uppercase;
    @include flex_centering;
    flex-direction: column;
    gap: 5px;
    width: 45px;
    height: 45px;
    background-color: $themecolor2;
    &::before {
        content: "";
        flex-shrink: 0;
        display: block;
        width: 8px;
        height: 8px;
        background: url(../images/arrow-top.svg) no-repeat center center / contain;
    }

    @media (any-hover: hover) {
        transition: filter 300ms ease;
        &:hover {filter: brightness(0.90); }
    }
}

#contentFooter {
    padding: 60px 0 40px;
    color: $themetextcolor;
    background-color: $basetextcolor;
    position: relative;
    @include maxwidth(768) { padding: 40px 0 20px; }
    #contentFooterContact {
        position: relative;
        .container {
            @include container(1320, 30);
            @include maxwidth(768) {
                margin-right: 15px;
                margin-left: 15px;
            }
            .contact-buttons {  }
            .contact-button {
                &:not(:first-child) { margin-top: 10px; }
                &__link {
                    display: block;
                    padding: 40px 60px 60px;
                    @include maxwidth(1024) {
                        padding: 20px 25px 85px;
                    }
                    box-sizing: border-box;
                    background-color: #19191B;
                    position: relative;
                    &>* {
                        &:not(:first-child) {
                            margin-top: 20px;
                            @include maxwidth(768) { margin-top: 15px; }
                        }
                    }

                    .c-heading {
                    }
                    .text {
                        display: block;
                        @include f_all(14);
                        font-weight: bold;
                        line-height: 2;
                        @include maxwidth(768) { @include f_all(13); line-height: 1.5; }
                    }

                    &::after {
                        @include plus;
                        font-size: 16px;
                        width: 45px;
                        height: 45px;
                        position: absolute;
                        inset: 0 40px 0 auto;
                        margin: auto;
                        @include maxwidth(1024) {
                            font-size: 13px;
                            inset: auto 25px 20px auto;
                        }
                    }

                    @media (any-hover: hover) {
                        &::after {
                            transition: background 300ms ease;
                        }
                        &:hover {
                            opacity: 0.8;
                            &::after {
                                background-color: $accentcolor;
                                transform: rotate(90deg);
                                transition-property: background, transform;
                            }
                        }
                    }

                }
            }
        }
    }
}

#footer {
    padding: 40px 0;
    @include maxwidth(768) {
        padding: 20px 0 40px;
    }
    color: $themetextcolor;
    background-color: $basetextcolor;
    position: relative;
    margin-top: -1px;
    .container {
        @include container(1320, 30);
        @include maxwidth(768) {
            margin-right: 15px;
            margin-left: 15px;
        }
        display: flex;
        justify-content: space-between;
        gap: 0 2rem;
        flex-wrap: wrap;
        @include maxwidth(1140) {
            display: block;
        }
        .description {
            .sitename {
                img {
                    @include maxwidth(768) { width: 180px; }
                }
            }
            .address {
                @include f_all(14);
                font-weight: 500;
                line-height: 1.5;
                margin-top: 12px;
                @include maxwidth(768) {
                    @include f_all(13);
                    margin-top: 15px;
                }
            }
            .sns-list {
                display: flex;
                gap: 5px;
                flex-wrap: wrap;
                margin-top: 15px;
                li {
                    a {
                        display: block;
                        overflow: hidden;
                        text-indent: -9999px;
                        width: 45px;
                        height: 45px;
                        color: $themetextcolor;
                        background: no-repeat center center / 14px auto $themecolor;

                        &.instagram {
                            background-image: url(../images/logo-instagram-white.svg);
                        }
                        &.x {
                            background-image: url(../images/logo-x-white.svg);
                        }

                        @media (any-hover: hover) {
                            transition: filter 300ms ease;
                            &:hover { filter: brightness(0.90); }
                        }

                    }
                }
            }
        }
        .menu {
            @include f_all(14);
            font-weight: 500;
            line-height: 2.2;
            display: flex;
            gap: 100px;
            @include maxwidth(1140) {
                flex-wrap: wrap;
                gap: 2rem;
                margin-top: 40px;
            }
            @include maxwidth(768) {
                @include f_all(13);
                line-height: 1.3;
            }
            &-item {
                @include maxwidth(1140) {
                    flex-basis: calc((100% - 2rem) / 2);
                }
                @include maxwidth(768) {
                    flex-grow: 1;
                }
                ul {
                    &:not(:first-child) {
                        margin-top: 20px;
                        @include maxwidth(1140) { margin-top: 27px; }
                    }
                    li {
                        @include maxwidth(768) {
                            &:not(:first-child) { margin-top: 1em; }
                        }
                        a {
                            @media (any-hover: hover) {
                                &:hover { opacity: 0.8; }
                            }
                            &.form {
                                @include f_all(13);
                                font-weight: bold;
                                @include flex_centering;
                                gap: 4px;
                                padding: 0.5em 10px;
                                box-sizing: border-box;
                                min-width: 250px;
                                @include maxwidth(768) { min-width: initial; }
                                min-height: 45px;
                                color: $themetextcolor;
                                background-color: $themecolor;
                                position: relative;

                                &::before, &::after {
                                    content: "";
                                    flex-shrink: 0;
                                    display: block;
                                    background: no-repeat center center / contain;
                                }
                                &::before {
                                    width: 14px;
                                    height: 15px;
                                    background-image: url(../images/icon-box-white.svg);
                                }
                                &::after {
                                    width: 12px;
                                    height: 12px;
                                    background-image: url(../images/icon-tab-white.svg);
                                }

                                @media (any-hover: hover) {
                                    transition: opacity 300ms ease;
                                    &:hover { opacity: 0.8; }
                                }
                            }
                        }
                    }
                }
            }
        }
        .copyright {
            flex-basis: 100%;
            color: #878787;
            text-align: right;
            margin-top: 40px;
            @include maxwidth(1140) {
                margin-top: 20px;
                text-align: center;
            }
            small {
                @include f_all(13);
                @include maxwidth(768) { @include f_all(12); }
                font-weight: 500;
                line-height: 1.5;
            }
        }
    }
}

.c-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    .en {
        // font-size: 64px;
        font-size: clamp(48px, (64 / 1200 * 100vw), 64px);
        font-weight: 300;
        line-height: 1.5;
        text-transform: uppercase;

        color: transparent;
        background: linear-gradient(
            to right,
            $themecolor,
            $themecolor2,
            $accentcolor
        );
        background-repeat: repeat;
        background-size: 300%;
        background-clip: text;
        -webkit-background-clip: text;
        animation: gradient_anime 10s linear infinite;
        will-change: background;
    }
    .ja {
        @include f_all(14);
        font-weight: bold;
        line-height: normal;
    }
}

.c-buttons {
    @include flex_centering;
    gap: 10px;
    @include maxwidth(768) { gap: 5px; }
}

.c-button {
    @include commonButton;
}

.business-headline {
    position: relative;
    .headline-items {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        @include maxwidth(1024) { gap: 5px; }
        .headline-item {
            flex-basis: calc((100% - (10px * 3)) / 4);
            @include maxwidth(1300) { flex-basis: calc((100% - (10px * 2)) / 3); }
            @include maxwidth(1024) { flex-basis: calc((100% - (5px * 1)) / 2); }
            @include maxwidth(768) { flex-basis: 100%; }
            position: relative;
            counter-increment: buz-num;
            &::before {
                content: counter(buz-num, decimal-leading-zero);
                font-size: 48px;
                color: $themetextcolor;
                font-weight: 300;
                position: absolute;
                z-index: 1;
                inset: 14px auto auto 10px;
                writing-mode: vertical-rl;
                width: 1em;
                @media screen and (min-width: 1025px) { display: none; }

                body.subpage & { display: none !important; }
            }
            &__link {
                &>* { display: block; }
                .image {
                    padding-top: 100%;
                    @include maxwidth(1024) {
                        padding-top: 0;
                        height: 220px;
                    }
                    box-sizing: border-box;
                    position: relative;
                    &>img {
                        position: absolute;
                        inset: 0;
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                    }
                    &::after {
                        content: "";
                        position: absolute;
                        inset: auto 0 0 0;
                        height: 55%;
                        background: linear-gradient(180deg, rgba(51, 51, 51, 0.00) 0%, #151515 100%);
                    }
                }
                .docs {
                    color: $themetextcolor;
                    position: absolute;
                    z-index: 1;
                    inset: auto 0 0 0;
                    padding: 10px 45px 10px 10px;
                    box-sizing: border-box;
                    .title {
                        display: block;
                        @include f_all(18);
                        font-weight: bold;
                        line-height: normal;
                        &__inner {
                            display: block;
                            &-text {
                                display: inline-block;
                            }
                        }
                    }
                    .terms {
                        @include f_all(12);
                        font-weight: 500;
                        line-height: 1;
                        display: flex;
                        align-items: center;
                        flex-wrap: wrap;
                        gap: 4px 2px;
                        margin-top: 10px;
                        .term {
                            display: inline-flex;
                            align-items: center;
                            justify-content: center;
                            padding: 0.15em 0.5em 0.2em 0.75em;
                            box-sizing: border-box;
                            color: $themetextcolor;
                            background-color: $basetextcolor;
                            border-radius: 15px;
                            min-height: 24px;
                            &::before { content: "#"; margin-right: 0.25em; }
                        }
                    }
                }

                &::before {
                    content: "VIEW MORE";
                    color: $themetextcolor;
                    @include f_all(16);
                    font-weight: bold;
                    text-align: center;
                    white-space: nowrap;
                    position: absolute;
                    z-index: 2;
                    inset: 50% auto auto 50%;
                    transform: translate(-50%, 0.5em);
                    opacity: 0;
                    transition: 300ms ease;
                    @include maxwidth(1024) { display: none; }
                }

                &::after {
                    @include plus;
                    position: absolute;
                    inset: auto 10px 10px auto;
                }

                &.current {
                    pointer-events: none;
                    .image::after {
                        height: 100%;
                        background: rgba($themecolor, 0.80);
                    }
                    &::after { opacity: 0; }
                }

                @media (any-hover: hover) {
                    &:hover {
                        .image::after {
                            height: 100%;
                            background: rgba($themecolor, 0.80);
                            transition: background 300ms ease;
                        }

                        &::before {
                            opacity: 1;
                            transform: translate(-50%, 0);
                        }
                        &::after {
                            background-color: #000;
                            transform: rotate(90deg);
                            transition: 300ms ease;
                        }
                    }
                }

            }
        }
    }
}

.group-headline {
    position: relative;
    .headline-items {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        @include maxwidth(1024) { gap: 5px; }
        .headline-item {
            flex-basis: calc((100% - (15px * 3)) / 4);
            @include maxwidth(1300) { flex-basis: calc((100% - (15px * 2)) / 3); }
            @include maxwidth(1024) { flex-basis: calc((100% - (5px * 1)) / 2); }
            @include maxwidth(768) { flex-basis: 100%; }
            &__link {
                display: flex;
                flex-direction: column;
                height: 100%;
                transition: 300ms ease;
                body.subpage & { box-shadow: 2px 2px 8px 0 rgba(0, 0, 0, 0.25); }
                &>* { display: block; }

                &.current {
                    pointer-events: none;
                    filter: brightness(0.85);
                    .image::after { opacity: 0; }
                }

                .image {
                    aspect-ratio: 320 / 140;
                    background-color: #FFF;
                    position: relative;
                    &>img {
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                    }
                    &::after {
                        @include plus;
                        position: absolute;
                        inset: auto 10px 10px auto;
                    }
                }
                .docs {
                    flex: 1;
                    display: flex;
                    justify-content: center;
                    flex-direction: column;
                    padding: 15px;
                    box-sizing: border-box;
                    color: $themetextcolor;
                    background-color: rgba($basetextcolor, 0.8);
                    body.archive & {
                        background-color: rgba($basetextcolor, 1.0);
                    }
                    @include maxwidth(768) {
                        padding: 12px 15px 15px;
                    }
                    .title {
                        @include f_all(16);
                        font-weight: bold;
                        line-height: normal;

                        &__inner {
                            display: block;
                            &-text { display: inline-block; }
                        }
                    }
                    .terms {
                        @include f_all(12);
                        font-weight: 500;
                        line-height: 1;
                        display: flex;
                        align-items: center;
                        flex-wrap: wrap;
                        gap: 5px;
                        margin-top: 10px;
                        .term {
                            display: inline-flex;
                            align-items: center;
                            justify-content: center;
                            padding: 0.15em 14px 0.2em;
                            box-sizing: border-box;
                            color: $themetextcolor;
                            background-color: #151515;
                            border-radius: 15px;
                            min-height: 24px;
                            &::before { content: "#"; margin-right: 0.25em; }
                        }
                    }
                }

                @media (any-hover: hover) {
                    &:hover {
                        transform: scale(0.95);
                        filter: brightness(0.95);
                        .image::after {
                            transform: rotate(90deg);
                            transition: 300ms ease;
                        }
                        body.subpage & { box-shadow: none !important; }
                    }
                }

            }
        }
    }
}

.term-list {
    position: relative;
    &:has(+ .headline) { margin-bottom: 30px; }
    ul {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        @include maxwidth(768) { gap: 8px; }
        li {
            @include maxwidth(768) {
                flex-basis: calc((100% - 8px) / 2);
                &:has(> .all) { flex-basis: 100%; }
            }
            a {
                @include f_all(14);
                @include maxwidth(768) { @include f_all(13); }
                font-weight: 500;
                line-height: 1.2;
                @include flex_centering;
                color: $themecolor;
                background-color: #F0F0F0;
                border-radius: 45px;
                padding: 0.5em 30px;
                box-sizing: border-box;
                min-width: 195px;
                height: 100%;
                @include maxwidth(768) { min-width: initial; }
                min-height: 40px;
                position: relative;

                &::before {
                    content: "＋";
                    font-size: 13px;
                    position: absolute;
                    inset: 50% auto auto 1em;
                    transform: translate(0, -50%);
                }

                @media (any-hover: hover) {
                    transition: filter 300ms ease;
                    &:hover {
                        filter: brightness(0.90);
                        &::before {
                            transform: translate(0, -50%) rotate(-90deg);
                            transition: transform 300ms ease;
                        }
                    }
                }

                &.current {
                    color: $themetextcolor;
                    background-color: $themecolor;

                    // お知らせ > 重要 (ターム)
                    &.important {
                        color: $accenttextcolor;
                        background-color: $accentcolor;
                    }
                }

            }
        }
    }
}

.news-headline {
    position: relative;
    .headline-items {
        .headline-item {
            border-bottom: 1px solid #F0F0F0;
            &:first-child { border-top: 1px solid #F0F0F0; }
            box-sizing: border-box;
            &__link {
                @include f_all(14);
                @include maxwidth(768) { @include f_all(13); }
                font-weight: bold;
                line-height: 1.3;
                display: flex;
                gap: 0.5em 30px;
                padding: 33px 55px 25px 0;
                box-sizing: border-box;
                position: relative;
                @include maxwidth(768) {
                    flex-wrap: wrap;
                    padding: 10px 45px 10px 15px;
                }
                .date {  }
                .terms {
                    @include f_all(13);
                    @include maxwidth(768) { @include f_all(10); }
                    font-weight: bold;
                    line-height: 1.2;
                    display: flex;
                    align-items: center;
                    flex-wrap: wrap;
                    gap: 0.25em;
                    .term {
                        display: inline-flex;
                        align-items: center;
                        justify-content: center;
                        padding: 0.1em 10px 0.15em;
                        box-sizing: border-box;
                        color: $themetextcolor;
                        min-height: 22px;
                        background-color: $basetextcolor;
                        @include maxwidth(768) {
                            padding-left: 6px;
                            padding-right: 6px;
                            min-height: 18px;
                        }

                        &.important {
                            color: $accenttextcolor;
                            background-color: $accentcolor;
                        }
                    }
                }
                .title {
                    @include maxwidth(768) {
                        flex-basis: 100%;
                        min-height: 2em;
                    }
                }

                &::after {
                    @include plus;
                    font-size: 10px;
                    width: 15px;
                    height: 15px;
                    position: absolute;
                    inset: 0 15px 0 auto;
                    @include maxwidth(768) { inset: 0 10px 0 auto; }
                    margin: auto;
                    transition: none;
                }

                @media (any-hover: hover) {
                    z-index: 0;
                    &::before {
                        content: "";
                        position: absolute;
                        inset: 0;
                        background-image: linear-gradient(
                            to right,
                            rgba($themecolor2, 0.10) 0%,
                            transparent 100%
                        );
                        z-index: -1;
                        opacity: 0;
                        transform: scaleX(0.5);
                        transform-origin: left;
                        transition: transform 300ms ease, opacity 300ms ease;
                    }
                    &:hover {
                        // opacity: 0.8;
                        &::before { opacity: 1; transform: scaleX(1); transform-origin: right; }
                        &::after {
                            transform: rotate(90deg);
                            background-color: $accentcolor;
                            transition: 300ms ease;
                        }
                    }
                }

                &.important { color: $accentcolor; }

            }
        }
    }
}

.recruit-headline {
    position: relative;
    .headline-items {
        .headline-item {
            @media (any-hover: hover) {
                transition: transform 300ms ease;
                &:hover { transform: scale(0.95); }
            }
            &__link {
                &>* { display: block; }
                .image {
                    aspect-ratio: 1;
                    position: relative;
                    &>img {
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                        filter: grayscale(100%);
                    }
                    &::after {
                        content: "";
                        position: absolute;
                        inset: 0;
                        background-color: #FFF;
                        transition: background 300ms ease;
                    }
                }
                .title {
                    color: $basetextcolor;
                    text-align: center;
                    position: absolute;
                    inset: 0;
                    @include flex_centering;
                    flex-direction: column;
                    .en {
                        @include f_all(32);
                        font-weight: 300;
                        line-height: 1.3;
                        color: $themecolor;
                        text-transform: uppercase;
                        @include flex_centering;
                        min-height: 2em;
                        margin-bottom: 10px;
                    }
                    .ja {
                        @include f_all(14);
                        font-weight: bold;
                        line-height: normal;
                    }
                }

                &::after {
                    @include plus;
                    background-color: #000;
                    position: absolute;
                    inset: auto 10px 10px auto;
                }

                @media (any-hover: hover) {
                    &:hover {
                        .image::after {
                            background-color: rgba(#000, 0.8);
                        }
                        .title {
                            color: $themetextcolor;
                            .en { color: currentColor; }
                        }
                        &::after {
                            transform: rotate(90deg);
                            background-color: $accentcolor;
                            transition: 300ms ease;
                        }
                    }
                }
            }

            // 画面中央に来たら(toppage)
            &.is-center {
                .headline-item__link {
                    .image::after { background-color: rgba(#000, 0.8); }
                    .title {
                        color: $themetextcolor;
                        .en { color: currentColor; }
                    }
                    &::after {
                        transform: rotate(90deg);
                        background-color: $accentcolor;
                        transition: 300ms ease;
                    }
                }
            }

        }
    }
}

.salesoffice-headline {
    position: relative;
    .headline-items {
    }
    .headline-item {
        &:not(:first-child) { margin-top: 10px; }
    }
}

// === Frontpage

@mixin splitText() {
    &.js-split-text {
        .strs {
            display: inline-block;
            &__inner { display: inline-block; }
        }

        &.js-target {
            .strs {
                overflow: hidden;
                &__inner {
                    transform: translate(0,1.25em);
                    transition: transform 800ms ease-in-out;
                }
            }
            &.is-active {
                .strs {
                    &__inner { transform: translate(0,0); }
                    @for $str from 0 to 50 {
                        &:nth-child(#{$str + 1}) .strs__inner { transition-delay: #{$str * 50}ms; }
                    }
                }
            }
        }
    }
}

#toppageBusiness {
    margin: 80px 0;
    @include maxwidth(1024) { margin-bottom: 0; }
    @include maxwidth(768) { margin: 40px 0 0; }
    position: relative;
    .sticky-wrapper {
        position: relative;
        .sticky-container {
            @include maxwidth(1024) {
                position: sticky;
                inset: 0 auto auto 0;
                height: 100vh;
            }
        }
        .sticky-content {
           @include maxwidth(1024) { margin-top: -100vh; }
        }
    }
    .bgimage {
        position: absolute;
        inset: 0 0 auto 0;
        height: 545px;
        @include maxwidth(1024) { height: 80vh; }
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 100px), 0% 100%);
        @include maxwidth(768) { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 0% 100%); }
        overflow: hidden;
        &>img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        &::after {
            content: "";
            position: absolute;
            inset: 0;
            background: linear-gradient(
                90deg,
                rgba(0, 0, 0, 0.80) 0%,
                rgba(0, 0, 0, 0.15) 100%
            );
            background-blend-mode: hard-light;
        }
    }
    .container {
        @include container(1320, 30);
        padding-top: 100px;
        @include maxwidth(1024) { padding-bottom: 80px; }
        @include maxwidth(768) {
            margin-right: 15px;
            margin-left: 15px;
            padding-top: 30px;
            padding-bottom: 60px;
        }
        .heading {  }
        .body {
            //margin-top: 20px;
            //@include maxwidth(768) { margin-top: 13px; }
            .leadtext {
                color: $themetextcolor;
                // font-size: 32px;
                font-size: clamp(24px, (32 / 1200 * 100vw), 32px);
                font-weight: 500;
                line-height: 1.3;

                @include splitText;
            }
            .c-buttons {
                justify-content: flex-start;
                // margin-top: 22px;
                margin-top: 14px;
                @include maxwidth(768) { flex-direction: column; margin-top: 10px; }
                &.js-target {
                    .c-button {
                        opacity: 0;
                        visibility: hidden;
                        transform: translate(0, 10px);
                        transition: 1200ms ease-in-out;
                    }
                    &.is-active {
                        .c-button {
                            opacity: 1;
                            visibility: visible;
                            transform: translate(0,0);

                            @for $btn from 0 to 5 {
                                &:nth-child(#{$btn + 1}) { transition-delay: #{$btn * 100}ms; }
                            }
                        }
                    }
                }
            }
            .c-button {
                &__link {
                }
            }
            .business-headline {
                margin-top: 40px;
                @include maxwidth(768) { margin-top: 24px; }
                .headline-items {
                    &.js-target {
                        .headline-item {
                            opacity: 0;
                            visibility: hidden;
                            transform: translate(0, 10px);
                            transition:
                                opacity 1200ms ease-in-out,
                                visibility 1200ms ease-in-out,
                                transform 1200ms ease-in-out
                            ;
                            &__link {
                                .docs {
                                    .title {
                                        &__inner {
                                            overflow: hidden;
                                            &-text {
                                                transform: translate(0, 1.75em) rotate(5deg);
                                                transition: 800ms 500ms ease-in-out;
                                            }
                                        }
                                    }
                                    .terms {
                                        .term {
                                            opacity: 0;
                                            transform: translate(0,1em);
                                        }
                                    }
                                }
                            }
                        }
                        &.is-active {
                            .headline-item {
                                opacity: 1;
                                visibility: visible;
                                transform: translate(0, 0);

                                &__link {
                                    .docs {
                                        .title{
                                            &__inner {
                                                &-text {
                                                    opacity: 1;
                                                    transform: translate(0,0) rotate(0deg);
                                                }
                                            }
                                        }
                                        .terms {
                                            .term {
                                                opacity: 1;
                                                transform: translate(0, 0);
                                                transition: 800ms 500ms ease-in-out;
                                            }
                                        }
                                    }
                                }

                                // 遅延実装
                                @for $i from 0 to 10 {
                                    &:nth-child(#{$i + 1}) {
                                        transition-delay: #{$i * 100}ms;
                                        .title__inner {
                                            @for $text from 0 to 3 {
                                                &:nth-child(#{$text + 1}) .title__inner-text {
                                                    transition-delay: #{(($i * 100) + 500) + ($text * 100)}ms;
                                                }
                                            }
                                        }
                                        .term {
                                            @for $term from 0 to 10 {
                                                &:nth-child(#{$term + 1}) {
                                                    transition-delay: #{($term * 100) + (($i * 100) + 500)}ms;
                                                }
                                            }
                                        }
                                    }
                                }

                            }
                        }
                    }
                }
                .headline-item {
                    &__link {
                    }
                }
            }
        }
    }
}

#toppageGroup {
    position: relative;
    .sticky-wrapper {
        position: relative;
        .spacer { @include maxwidth(1024) { height: 100vh; } }
        .sticky-container {
            @include maxwidth(1024) {
                position: sticky;
                inset: 0 auto auto 0;
                height: 100vh;
            }
        }
        .sticky-content {
            padding: 60px 0 88px;
            @include maxwidth(1024) { margin-top: -100vh; }
            @include maxwidth(768) { padding: 20px 0 60px; }
        }
    }
    .bgimage {
        position: absolute;
        inset: 0;
        &>img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        &::before, &::after {
            content: "";
            position: absolute;
            inset: 0;
        }
        &::before {
            background: $themecolor2;
            mix-blend-mode: overlay;
        }
        &::after {
            background: rgba(0, 0, 0, 0.15);
            backdrop-filter: blur(2px);
        }
    }
    .container {
        @include container(1320, 30);
        @include maxwidth(768) {
            margin-left: 15px;
            margin-right: 15px;
        }
        .heading {
            text-align: center;
            align-items: center;
        }
        .body {
            //margin-top: 42px;
            //@include maxwidth(768) { margin-top: 25px; }
            margin-top: 20px;
            @include maxwidth(768) { margin-top: 12px; }
            .group-headline {
                .headline-items {
                    &.js-target {
                        .headline-item {
                            opacity: 0;
                            visibility: hidden;
                            transform: translate(0,10px);
                            transition: 1200ms ease-in-out;

                            &__link {
                                .docs {
                                    .title {
                                        &__inner {
                                            overflow: hidden;
                                            &-text {
                                                transform: translate(0, 1.75em) rotate(5deg);
                                                transition: 800ms 500ms ease-in-out;
                                            }
                                        }
                                    }
                                    .term {
                                        opacity: 0;
                                        transform: translate(0,10px);
                                    }
                                }
                            }
                        }

                        &.is-active {
                            .headline-item {
                                opacity: 1;
                                visibility: visible;
                                transform: translate(0,0);

                                &__link {
                                    .docs {
                                        .title {
                                            &__inner {
                                                &-text {
                                                    transform: translate(0,0) rotate(0deg);
                                                }
                                            }
                                        }
                                        .term {
                                            opacity: 1;
                                            transform: translate(0, 0);
                                            transition: 800ms 500ms ease-in-out;
                                        }
                                    }
                                }

                                @for $item from 0 to 20 {
                                    &:nth-child(#{$item + 1}) {
                                        transition-delay: #{$item * 100}ms;
                                        .title__inner {
                                            @for $text from 0 to 3 {
                                                &:nth-child(#{$text + 1}) {
                                                    .title__inner-text { transition-delay: #{(($item * 100) + 500) + ($text * 100)}ms; }
                                                }
                                            }
                                        }
                                        .term {
                                            @for $term from 0 to 10 {
                                                &:nth-child(#{$term + 1}) {
                                                    transition-delay: #{(($item * 100) + 500) + ($term * 100)}ms;
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
                .headline-item {
                    &__link {
                    }
                }
            }
        }
    }
}

#toppageSalesoffice {
    color: $themetextcolor;
    padding: 100px 0;
    position: relative;
    background-color: $basecolor;
    @include maxwidth(1024) { margin-top: -100vh; }
    @include maxwidth(768) {
        // margin-bottom: 30px;
        padding: 75px 0 80px;
    }
    .bgimage {
        position: absolute;
        inset: 0;
        @include maxwidth(768) { inset: 30px 0 0 0; }
        clip-path: polygon(0 0, 100% 100px, 100% 100%, 0 calc(100% - 100px));
        @include maxwidth(768) {
            clip-path: polygon(0 0, 100% (25 / 375 * 100vw), 100% 100%, 0 calc(100% - (25 / 375 * 100vw)));
        }
        overflow: hidden;
        &>img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center 85%;
            @include maxwidth(768) { object-position: center center; }
        }
        &::after {
            content: "";
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, 0.70);
        }

        &.js-target {
            > img, &::after {
                clip-path: inset(0 100% 0 0);
                transition: clip-path 1200ms ease-in-out;
            }
            &.is-active {
                > img, &::after { clip-path: inset(0 0% 0 0); }
            }
        }
    }
    .container {
        @include container(810, 30);
        @include maxwidth(768) {
            margin-left: 15px;
            margin-right: 15px;
        }
        .heading {
            align-items: center;
            text-align: center;
            .en {  }
            .ja {
                //margin-top: 10px;
                //@include maxwidth(768) { margin-top: 5px; }
                margin-top: 5px;

                &.js-target {
                    clip-path: polygon(0 0, 0 0, 0 0);
                    transition: clip-path 1200ms ease-in-out;
                    &.is-active { clip-path: polygon(0 0, 200% 0, 0 200%); }
                }
            }
        }
        .body {
            margin-top: 35px;
            @include maxwidth(768) { margin-top: 20px; }
            .salesoffice-terms {
                ul {
                    li {
                        a {
                            background-color: #fff;
                        }
                    }

                    &.js-target {
                        li {
                            opacity: 0;
                            visibility: hidden;
                            transform: translate(0,10px);
                            transition: 1200ms ease-in-out;
                        }
                        &.is-active {
                            li {
                                opacity: 1;
                                visibility: visible;
                                transform: translate(0, 0);

                                @for $i from 0 to 10 {
                                    &:nth-child(#{$i + 1}) { transition-delay: #{$i * 100}ms; }
                                }
                            }
                        }
                    }
                }
            }
            .c-buttons {
                margin-top: 28px;
                @include maxwidth(768) { margin-top: 20px; }

                &.js-target {
                    .c-button {
                        opacity: 0;
                        visibility: hidden;
                        transform: translate(0,10px);
                        transition: 1200ms ease-in-out;
                    }
                    &.is-active {
                        .c-button {
                            opacity: 1;
                            visibility: visible;
                            transform: translate(0,0);

                            @for $btn from 0 to 5 {
                                &:nth-child(#{$btn + 1}) { transition-delay: #{$btn * 100}ms; }
                            }
                        }
                    }
                }
            }
            .c-button {
                &__link {
                }
            }
        }
    }
}

#toppageAboutus {
    padding: 63px 0 120px;
    @include maxwidth(768) { padding: 45px 0 80px; }
    position: relative;
    background-color: $basecolor;
    .sticky-wrapper {
        position: relative;
        .sticky-container {
            position: sticky;
            inset: 0 auto auto 0;
            // min-height: 100vh;
            @include flex_centering;
        }
    }
    .container {
        @include container(1320, 30);
        @include maxwidth(768) {
            margin-left: 15px;
            margin-right: 15px;
        }
        .cols {
            display: flex;
            flex-direction: row-reverse;
            align-items: flex-end;
            justify-content: space-between;
            gap: 30px;
            @include maxwidth(1024) {
                flex-direction: column;
                align-items: initial;
                justify-content: initial;
                gap: 20px;
                &>* { flex: none !important; }
            }
            .col {
                &:nth-child(1) {
                    flex-basis: 512px;
                    margin-bottom: 50px;
                    margin-right: 100px;
                    @include maxwidth(1440) { margin-right: (100 / 1440 * 100vw); }
                    @include maxwidth(1200) { margin-right: 0px; }
                    @include maxwidth(1024) { margin-bottom: 0px; }
                }
                &:nth-child(2) {
                    flex-basis: 560px;
                    @include flex_centering;
                }
                .heading {
                    @include maxwidth(1024) {
                        align-items: center;
                        text-align: center;
                    }
                }
                .body {
                    margin-top: 8px;
                    @include maxwidth(1024) { margin-top: 6px; }
                    .leadtext {
                        // @include f_all(32);
                        font-size: clamp(22px, (32 / 1200 * 100vw), 32px);
                        font-weight: 500;
                        line-height: 1.3;
                        @include maxwidth(768) { margin-right: -10px; }

                        @include splitText;
                    }
                    .text {
                        @include f_all(14);
                        font-weight: bold;
                        line-height: 2;
                        margin-top: 13px;
                        &>p:not(:first-child) { margin-top: 2em; }
                        @include maxwidth(768) {
                            margin-top: 10px;
                        }

                        &.js-target {
                            clip-path: polygon(0 0, 0 0, 0 0);
                            transition: clip-path 1200ms ease-in-out;
                            &.is-active { clip-path: polygon(0 0, 200% 0, 0 200%); }
                        }
                    }
                    .c-buttons {
                        justify-content: flex-start;
                        margin-top: 23px;
                        @include maxwidth(768) { flex-direction: column; }

                        &.js-target {
                            .c-button {
                                opacity: 0;
                                visibility: hidden;
                                transform: translate(0, 10px);
                                transition: 1200ms ease-in-out
                            }
                            &.is-active {
                                .c-button {
                                    opacity: 1;
                                    visibility: visible;
                                    transform: translate(0, 0);

                                    @for $btn from 0 to 5 {
                                        &:nth-child(#{$btn + 1}) { transition-delay: #{$btn * 100}ms; }
                                    }
                                }
                            }
                        }
                    }
                    .c-button {
                        &__link {
                        }
                    }
                }
                .image {
                    aspect-ratio: 560 / 520;
                    @include maxwidth(768) { aspect-ratio: 1; }
                    max-height: 100vh;
                    position: relative;
                    &>img {
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                    }
                }
            }
        }
    }
}

@keyframes  loop_text_anime {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-100%); }
}

@keyframes bg_recruit_gradient_anime {
    0% { background-position: 0% 0%; }
    50% { background-position: 0% 100%; }
    100% { background-position: 0% 0%; }
}

@keyframes _anim-text {
    100% {
      background-position: 0% -200%;
    }
  }

#bgRecruit {
    pointer-events: none;
    position: fixed;
    inset: 0;
    .is {
        display: flex;
        flex-wrap: nowrap;
        height: 100%;
        position: relative;
        z-index: 2;
        .i {
            flex: 1;
            height: 100%;
            transform: scale(1, 0);
            transform-origin: center bottom;
            &::after {
                content: "";
                position: absolute;
                inset: 0;
                background: rgba(255, 255, 255, 0.01);
                backdrop-filter: blur(1px);
            }

            // background-image: linear-gradient(-180deg in oklch longer hue, oklch(0.4 0.1 360deg), oklch(0.4 0.1 0deg));
            background: repeating-linear-gradient(0deg, #b81a22 0%, $themecolor2 100%);
            background: linear-gradient(0deg, #b81a22 0%, $themecolor2 100%);
            background-repeat: repeat;
            background-size: auto;
            background-clip: border-box;
            background-repeat: repeat;
            background-size: 100% 300%;
            animation: bg_recruit_gradient_anime 20s linear infinite;
            will-change: background;
        }
    }
    .bg-text {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        overflow: hidden;
        z-index: 5;
        .inner {
            display: inline-flex;
            align-items: center;
            font-size: clamp(52px, (64 / 1200 * 100vw), 64px);
            white-space: nowrap;
            font-weight: 300;
            line-height: 1;
            color: #FFF;
            .text {
                padding-left: 1.5em;
                animation: loop_text_anime 15s linear infinite;
                overflow: hidden;
                p {
                }
            }
        }
    }
    .bg-circle {
        position: absolute;
        inset: 0;
        z-index: 4;
        opacity: 0;
        transform: scale(2);
        .circle {
            position: absolute;
            inset: 50% auto auto 50%;
            transform: translate(-50%, -50%);
            .image {
                position: absolute;
                transform-origin: center center;
                @include maxwidth(768) {
                    width: (45 / 375 * 100vw) !important;
                    height: (63 / 375 * 100vw) !important;
                    // width: 45px !important;
                    // height: 63px !important;
                }
                &>img {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                }
            }

            &.__f {
                width: 700px;
                @include maxwidth(768) { width: (400 / 375 * 100vw); }
                // @include maxwidth(768) { width: 400px; }
                aspect-ratio: 1;
                .image {
                    width: 80px;
                    height: 113px;
                }
            }
            &.__s {
                width: 900px;
                @include maxwidth(768) { width: (600 / 375 * 100vw); }
                // @include maxwidth(768) { width: 625px; }
                aspect-ratio: 1;
                .image {
                    width: 90px;
                    height: 127px;
                }
            }
        }
    }
}

#toppageRecruit {
    // margin-top: -75vh;
    margin-top:40vh;
    .sticky-wrapper {
        position: relative;

        .heading {
            align-items: center;
            text-align: center;
            .en {
                color: $themetextcolor;
                animation: none;
                background: none;
            }
            .leadtext {
                white-space: nowrap;
                font-size: clamp(22px, (32 / 1200 * 100vw), 32px);
                font-weight: 500;
                line-height: 1.3;
                text-align: center;
                margin-top: 10px;
                @include maxwidth(768) { margin-top: 0; }
            }
        }

        .spacer {
            height: 100vh;
            &.__f { height: 10vh; }
        }

        .sticky-container {
            pointer-events: none;
            height: 100vh;
            position: sticky;
            z-index: 10;
            inset: 0 auto auto 0;
            overflow: hidden;
            color: $themetextcolor;
            // @include flex_centering;

            .heading {
                pointer-events: none;
                // position: absolute;
                position: fixed;
                inset: 50% auto auto 50%;
                transform: translate(-50%, -50%);
            }
        }

        .container {
            color: $themetextcolor;
            // padding: 40% 0 0;
            box-sizing: border-box;
            position: relative;
            z-index: 0;
            &::before {
                content: "";
                position: absolute;
                z-index: -1;
                inset: -10vw 0 0 0;
                background: linear-gradient(
                    to bottom,
                    transparent 0%,
                    rgba(0, 0, 0, 0.60) 40%,
                    rgba(0, 0, 0, 0.60) 100%,
                );
                backdrop-filter: blur(5px);
            }
            .inner {
                padding: 4vh 0 8vh;
                @media screen and (max-height: 600px) { padding: 2vh 0 4vh; }
                @include maxwidth(1024) { padding: 2vh 0 4vh; }
                // position: relative;
                min-height: 100vh;
                @include flex_centering;
                box-sizing: border-box;
                position: sticky;
                inset: 0 auto auto 0;
                overflow: hidden;
                &-inner {
                    width: 100%;
                    position: relative;
                }
            }

            .heading {
                align-items: center;
                text-align: center;
                .en {
                    color: $themetextcolor;
                    animation: none;
                    background: none;
                }
                .leadtext {
                    font-size: clamp(22px, (32 / 1200 * 100vw), 32px);
                    font-weight: 500;
                    line-height: 1.3;
                    text-align: center;
                    margin-top: 10px;
                    @include maxwidth(768) { margin-top: 0; }
                }
            }
            .body {
                .recruit-headline {
                    margin-top: 42px;
                    @include maxwidth(768) { margin-top: 20px; }
                    @media screen and (max-height: 600px) { margin-top: 1rem; }
                    overflow: hidden;
                    .headline-items {
                        // padding: 0 (60 / 1440 * 100vw);
                        // padding: 0 40vh;
                        padding: 0 40vw;
                        box-sizing: border-box;
                        display: inline-flex;
                        flex-wrap: nowrap;
                        gap: 20px;
                        @include maxwidth(768) {
                            padding: 0 15px;
                            gap: 10px;
                        }
                        .headline-item {
                            width: (320 / 1440 * 100vw);
                            min-width: 320px;
                            position: relative;
                            &__link {
                                @media screen and (max-height: 600px) {
                                    .image { aspect-ratio: 1.5 / 1; }
                                    .title .en { @include f_all(28); }
                                    .title .ja { @include f_all(13); }
                                }
                                @media screen and (max-height: 400px) {
                                    .image { aspect-ratio: 2 / 1; }
                                    .title .en {  }
                                    .title .ja {  }
                                }
                            }
                        }
                    }
                }
                .c-buttons {
                    margin: 40px 15px 0;
                    @include maxwidth(768) { margin-top: 25px; }
                    @media screen and (max-height: 600px) { margin-top: 20px; }
                }
                .c-button {
                    &__link {
                        text-transform: uppercase;
                        @media (any-hover: hover) {
                            transition: background 200ms ease;
                            &:hover { background-color: $accentcolor; }
                        }
                    }
                }
            }
            .bgtext {
                position: absolute;
                inset: 0;
                z-index: -1;
                .text {
                    white-space: nowrap;
                    font-size: clamp(120px, (200 / 1440 * 100vw), 200px);
                    @media screen and (max-height: 600px) { font-size: 90px !important; }
                    @media screen and (max-height: 400px) { font-size: 80px !important; }
                    color: rgba($themetextcolor, 0.2);
                    font-weight: 300;
                    line-height: 1;
                    position: absolute;
                    &1 {
                        inset: 0em auto auto -0.15em;
                        @include maxwidth(768) { inset: -0.15em auto auto -0.15em; }
                    }
                    &2 { inset: auto -0.75em -0.05em auto; }
                    &.pc {
                        @include maxwidth(1024) { display: none; }
                    }
                    &.sp {
                        @media screen and (min-width: 1025px) { display: none; }
                    }
                }
            }
        }
    }
}

#toppageNews {
    margin-top: -100vh;
    padding: 70px 0 90px;
    background-color: $basecolor;
    position: relative;
    @include maxwidth(768) {
        padding: 30px 0;
    }
    .container {
        @include container(1320, 30);
        @include maxwidth(768) {
            margin-left: 15px;
            margin-right: 15px;
        }
        .cols {
            display: flex;
            justify-content: space-between;
            gap: 2rem;
            @include maxwidth(1024) {
                flex-direction: column;
                justify-content: initial;
                gap: 20px;
                &>* { flex: none !important; }
            }
            .col {
                &:nth-child(1) {
                    flex-basis: 210px;
                }
                &:nth-child(2) {
                    flex-basis: 940px;
                    margin-top: 50px;
                    @include maxwidth(1024) { margin-top: 0; }
                }
                .c-heading {  }
                .news-terms {
                    margin-top: 18px;
                    @include maxwidth(768) {
                        margin-top: 10px;
                        margin-left: -15px;
                        margin-right: -15px;
                        padding-left: 15px;
                        padding-right: 15px;
                        box-sizing: border-box;
                    }
                    ul {
                        @include maxwidth(768) {
                            gap: 0;
                            flex-wrap: nowrap !important;
                        }
                        li {
                            @media screen and (min-width: 1025px) { width: 100%; }
                            @include maxwidth(1024) {
                                flex-basis: auto !important;
                                width: auto;
                            }
                            a {
                                @include maxwidth(1024) {
                                    min-width: 120px;
                                    padding-left: 50px;
                                    padding-right: 40px;
                                }
                            }
                        }

                        &.js-target {
                            li {
                                opacity: 0;
                                visibility: hidden;
                                transform: translate(0, 10px);
                                transition: 1200ms ease-in-out;
                            }
                            &.is-active {
                                li {
                                    opacity: 1;
                                    visibility: visible;
                                    transform: translate(0, 0);

                                    @for $li from 0 to 10 {
                                        &:nth-child(#{$li + 1}) { transition-delay: #{$li * 100}ms; }
                                    }
                                }
                            }
                        }

                    }
                }
                .news-headline {
                    .headline-items {
                        &.js-target {
                            .headline-item {
                                opacity: 0;
                                visibility: hidden;
                                transform: translate(0, 10px);
                                transition: 1200ms ease-in-out;
                            }
                            &.is-active {
                                .headline-item {
                                    opacity: 1;
                                    visibility: visible;
                                    transform: translate(0, 0);

                                    @for $item from 0 to 4 {
                                        &:nth-child(#{$item + 1}) { transition-delay: #{$item * 100}ms; }
                                    }
                                }
                            }
                        }
                    }
                    .headline-item {
                        @include maxwidth(768) {
                            &:first-child { border-top: none; }
                            &:last-child { border-bottom: none; }
                        }
                        &__link {  }
                    }
                }
                .c-buttons {
                    justify-content: flex-end;
                    margin-top: 30px;
                    @include maxwidth(768) {
                        flex-direction: column;
                        justify-content: initial;
                        margin-top: 10px;
                    }

                    &.js-target {
                        .c-button {
                            opacity: 0;
                            visibility: hidden;
                            transform: translate(0, 10px);
                            transition: 1200ms ease-in-out;
                        }
                        &.is-active {
                            .c-button {
                                opacity: 1;
                                visibility: visible;
                                transform: translate(0, 0);

                                @for $btn from 0 to 5 {
                                    &:nth-child(#{$btn + 1}) { transition-delay: #{$btn * 100}ms; }
                                }
                            }
                        }
                    }
                }
                .c-button {
                    &__link {
                        // .border { --c-button-border-color: $themecolor2; }
                    }
                }
            }
        }
    }
}


// === Subpage

@mixin subpage_container() {
    @include container(1360, 30);
    @include maxwidth(768) {
        margin-left: 15px;
        margin-right: 15px;
    }
}

#subpageTopicpath {
    margin: 25px 0 50px;
    position: relative;
    .container {
        @include subpage_container;
        ul {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            flex-wrap: wrap;
            row-gap: 0.5rem;
            li {
                @include f_all(14);
                @include maxwidth(768) { @include f_all(13); }
                font-weight: 500;
                color: #878787;
                display: inline-flex;
                align-items: center;
                &::after {
                    content: "";
                    flex-shrink: 0;
                    display: block;
                    width: 0.85714em;
                    height: 1px;
                    background-color: $themecolor;
                    margin: 0 0.71428em;
                }
                &:last-child::after { display: none; }
                a {
                    &:hover { opacity: 0.8; }
                }
                &.current a { color: $basetextcolor; font-weight: bold; }
            }
        }
    }
}

#subpageHeading {
    margin: 50px 0 20px;
    position: relative;
    .container {
        @include subpage_container;
        .en {
            font-size: clamp(48px, (64 / 1440 * 100vw), 64px);
            font-weight: 300;
            text-align: center;
            text-transform: uppercase;
            color: transparent;
            background: linear-gradient(to right, $themecolor, $themecolor2, $accentcolor);
              background-repeat: repeat;
              background-size: auto;
              background-clip: border-box;
            background-repeat: repeat;
            background-size: 300%;
            background-clip: text;
            -webkit-background-clip: text;
            animation: gradient_anime 10s linear infinite;
            will-change: background;
            // 切れてしまうフォントがあるため調整
            padding-bottom: 0.2em;
            margin-bottom: -0.2em;
        }
        .ja {
            font-size: clamp(24px, (32 / 1200 * 100vw), 32px);
            font-weight: 500;
            line-height: 1.3;
            display: flex;
            align-items: center;
            gap: 0.78125em;
            padding: 1.1875em (35 / 1440 * 100vw) 1.25em calc(50vw - 50%);
            @include maxwidth(768) { padding-right: 0.5em; }
            box-sizing: border-box;
            color: $themetextcolor;
            background: linear-gradient(-90deg, $themecolor 0%, $themecolor2 100%);
            position: relative;
            margin: 1.71875em auto auto calc(50% - 50vw);
            &::before {
                content: "";
                flex-shrink: 0;
                display: block;
                width: 1rem;
                height: 1rem;
                background-color: currentColor;
                clip-path: polygon(0 0, 0% 100%, 100% 50%);
                margin-top: 0.1em;
            }
        }

        .terms {
            @include f_all(14);
            font-weight: 500;
            line-height: 1;
            margin: 20px 0;
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 0.25em;

            .term {
                text-decoration: none;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                gap: 0.25em;
                padding: 0.5em 1em;
                box-sizing: border-box;
                border-radius: 15px;
                color: $themetextcolor;
                background-color: $basetextcolor;
                min-height: 24px;
                &::before { content: "#"; }

                &.important { background-color: $accentcolor; }

                @media (any-hover: hover) {
                    &:hover { opacity: 0.8; }
                }
            }
        }

    }
}

#subpageIndex {
    margin-top: 20px;
    position: relative;
    .container {
        @include subpage_container;
        padding: 25px 40px 30px;
        @include maxwidth(768) { padding: 20px; }
        box-sizing: border-box;
        background-color: #EDF0F6;
        .title {
            @include f_all(20);
            @include maxwidth(768) { @include f_all(18); }
            font-weight: bold;
            text-transform: uppercase;
            margin-bottom: 1rem;
        }
        ul {
            li {
                @include f_all(15);
                font-weight: bold;
                line-height: 1.8;
                a {
                    color: $themecolor;

                    &:hover { opacity: 0.8; }
                }
            }
        }
    }
}

#subpageContent {
    margin: 40px 0 80px;
    @include maxwidth(768) { margin: 30px 0 60px; }
    position: relative;
    .container {
        @include subpage_container;

        .default {
            .wp-block-buttons{
                &:last-child{
                    margin-top: 50px;
                    @include maxwidth(768) { margin-top: 40px; }
                }
            }
        }
    }


}

#subpageContent,
#relatedItems {
    .headline-title {
        @include f_all(24);
        font-weight: bold;
        line-height: normal;
        color: $themecolor;
        display: flex;
        align-items: center;
        flex-direction: column;
        gap: 14px;
        position: relative;
        //margin-bottom: 40px;
        margin-bottom: 20px;
        &::before {
            content: "";
            flex-shrink: 0;
            display: block;
            width: 10px;
            height: 10px;
            background-color: currentColor;
            clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
            margin-top: 0.1em;
        }
    }
}

.pager {
    text-align: center;
    margin: 40px 0;
    @include f_all(13);
    a,
    span {
        text-decoration: none;
        display: inline-block;
        margin: 0 0 0.25em 0.25em;
        min-width: 3em;
        border-radius: 3em;
        padding: 0.65em 1em;
        box-sizing: border-box;
        background-color: #F0F0F0;
        color: color-mix(in srgb, $basetextcolor 80%, #F0F0F0 20%);
    }
    .current {
        color: #fff;
        background-color: $themecolor !important;
    }
}

.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;
            }
        }
    }
}


// 兄弟ページリンク
#siblings {
    margin-top: 60px;
    @include maxwidth(768) { margin-top: 50px; }
    position: relative;
    .c-buttons {
        flex-direction: column;
        gap: 5px;
    }
    .c-button {
        width: 100%;
        &__link {
            min-width: initial;
            &.current {
                pointer-events: none;
                background-color: #878787;
                filter: brightness(85%);
            }
        }
    }
}

// ページ内記事リンク
#pageRelated {
    margin-top: 80px;
    .headline-title {  }
    .headline {  }
}

#relatedItems {
    padding: 50px 0 80px;
    position: relative;
    background-color: #EDF0F6;
    margin-top: 40px;
    .container {
        @include subpage_container;
        &>*:first-child { margin-top: 0 !important; }
        &>.headline-title {
            margin-top: 50px;
        }
    }
}

body.post-type-archive-salesoffice {
    .office-sidebar {
        position: fixed;
        inset: 50% auto auto 0;
        transform: translateY(-50%);
        z-index: 20;
        ul {
            li {
                a {
                    text-decoration: none !important;
                }
            }
        }
    }
}





// == 募集職種・要項 投稿タイプ

.recruitment-terms {
    ul {
        margin-left: 0;
        li {
            list-style: none;
            margin-bottom: 0;
            @media screen and (min-width: 769px) {
                &:has(> a.all) {
                    flex-basis: 100%;
                    display: flex;
                }
            }
            a {
                text-decoration: none;
                @media screen and (min-width: 769px) {
                    min-width: 112px;
                }
            }
        }
    }
}

.recruitment-headline {
    --recruitment-headline-gap: 13px;
    @include maxwidth(768) { --recruitment-headline-gap: 5px; }
    position: relative;
    .headline-items {
        margin-left: 0;
        display: flex;
        flex-wrap: wrap;
        gap: var(--recruitment-headline-gap);
    }
    .headline-item {
        list-style: none !important;
        margin-bottom: 0;
        flex-basis: calc((100% - (var(--recruitment-headline-gap) * 3)) / 4);
        @include maxwidth(1200) { flex-basis: calc((100% - (var(--recruitment-headline-gap) * 2)) / 3); }
        @include maxwidth(768) { flex-basis: calc((100% - (var(--recruitment-headline-gap))) / 2); }
        @include maxwidth(420) { flex-basis: 100%; }
        &__link {
            text-decoration: none;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            gap: 30px;
            padding: 15px;
            box-sizing: border-box;
            background-color: #F0F0F0;
            height: 100%;
            position: relative;
            @include maxwidth(768) {
                gap: 1rem;
                padding: 10px;
            }
            .l-top {
                > :where(*) { display: block; }
            }
            .l-bottom {
                display: flex;
                flex-direction: column;
                gap: 5px;
            }
            .img {
                height: 140px;
                @include maxwidth(768) { height: 120px; }
                background-color: #FFF;
                > img {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                }
            }
            .title {
                @include f_all(16);
                @include maxwidth(768) { @include f_all(15);}
                font-weight: bold;
                line-height: 1.3;
                margin-top: 0.90em;
            }
            .terms {
                margin-top: 13px;
                display: flex;
                align-items: center;
                flex-wrap: wrap;
                gap: 5px;
                .term {
                    @include f_all(11);
                    font-weight: 500;
                    line-height: 1;
                    display: inline-flex;
                    align-items: center;
                    justify-content: center;
                    color: $themetextcolor;
                    background-color: $basetextcolor;
                    padding: 0.15em 10px 0.25em;
                    box-sizing: border-box;
                    min-height: 24px;
                    gap: 0.5em;
                    border-radius: 15px;
                    &::before { content: "#"; }
                }
            }
            .c-button {
                display: block;
                &__link { min-width: initial; min-height: 40px; }
            }
            @media (any-hover: hover) {
                &:hover {
                    .c-button__link {
                        &::after {
                            transform: rotate(90deg);
                            transition: transform 300ms ease;
                        }
                    }
                }
            }
        }
    }
}
