// スタイルシート common

@charset "utf-8";

@import "mixin";

:root {
    --header-height: 180px;
    
    @include maxwidth(768) { --header-height: 126px; }

    body.subpage {
        --header-height: 110px;
        @include maxwidth(768) {  --header-height: 85px; }
    }

    --mv-height: 100vh;
    --mv-height: 100svh;
    --mv-hot-news-height: 0px; // JavaScriptで設定
    @include maxwidth(768) {
        --mv-height: calc(100vh - var(--mv-hot-news-height));
        --mv-height: calc(100svh - var(--mv-hot-news-height));
    }
}

html { scroll-behavior: smooth; }

body {
    @include root;
    position: relative;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
}

body.toppage {
    color: $themetextcolor;
    background-color: #031424;
}

img,
video {
    max-width: 100%;
    height: auto;
}

:where(figure) { margin: 0; }

br.sp {
    @media screen and (min-width: 769px) { display: none; }
}
br.pc {
    @media screen and (max-width: 768px) { display: none; }
}   

// === Components

#header {
    // position: fixed;
    position: absolute;
    inset: 0 0 auto 0;
    // .admin-bar & { inset: 32px 0 auto 0; }
    height: var(--header-height);
    z-index: 25;
    box-sizing: border-box;
    transition: all 400ms ease;
    &.is-children-list-open {
        .global-nav {
            color: $basetextcolor;
        }
    }
    .subpage & { color: $basetextcolor; }
    .container {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 2rem;
        padding: 25px (40 / 1440 * 100vw) 25px (20 / 1440 * 100vw);
        box-sizing: border-box;
        position: relative;
        @include maxwidth(1440) { padding-left: 20px; }
        @include maxwidth(768) { padding: 20px; }
        .subpage & {
            align-items: flex-end;
            padding-left: (40 / 1440 * 100vw);
        }
        .sitename {
            flex-shrink: 0;
            a {
                .toppage & {
                    display: block;
                    padding: 15px 20px;
                    @include maxwidth(768) { padding: 10px; }
                    box-sizing: border-box;
                    background-color: $themecolor;
                }
                img {
                    .toppage & {
                        width: 105px;
                        @include maxwidth(768) { width: 60px; }
                    }
                    .subpage & {
                        width: 275px;
                        @include maxwidth(768) { width: 235px; }
                        @include maxwidth(360) { width: 200px; }
                    }
                }
            }
        }
        .menu {
            margin-top: 25px;
            @include maxwidth(1200) { margin-top: 5px; }
            .subpage & {
                margin-top: 0;
                margin-bottom: -5px;
            }
            .toppage & {
                opacity: 0;
                transform: translateY(-10px);
                transition: 400ms 1000ms ease;
            }
            .toppage.loaded & {
                opacity: 1;
                transform: translateY(0px);
            }
            .global-nav {
                @include f_all(15);
                font-weight: bold;
                line-height: 1.3;
                transition: font-size 400ms 0ms ease;
                @include maxwidth(1200) { display: none !important; }
                &>ul {
                    display: flex;
                    align-items: flex-start;
                    gap: 30px;
                    &>li {
                        &>a {
                            display: inline-flex;
                            align-items: center;
                        }
                        &:has(> .current) {
                            // color: $themecolor;
                            padding-bottom: 1.13333em;
                            box-sizing: border-box;
                            position: relative;
                            &::before {
                                content: "";
                                display: inline-block;
                                width: 20px;
                                height: 3px;
                                position: absolute;
                                bottom: 0;
                                left: 50%;
                                background-color: $themecolor;
                                transform: translateX(-50%);
                            }
                        }
                        &>ul {
                            position: absolute;
                            display: none;
                        }
                    }
                }
                .parent {
                    &::after {
                        content: "";
                        flex-shrink: 0;
                        display: inline-block;
                        width: 14px;
                        height: 14px;
                        background: url(../images/arrow-bottom-white.svg) no-repeat center / 6px auto;
                        background-color: $themecolor;
                        margin-top: 0.15em;
                        margin-left: 5px;
                        transition: all 400ms ease;
                    }
                    &.act {
                        &::after {
                            background-color: $accentcolor;
                            transform: rotateX(180deg);
                        }
                    }
                }
            }

            .gnav-toggle {
                @media screen and (min-width: 1201px) {
                    display: none !important;
                }
                .menu_open & { opacity: 0; }
            }
        }
    }
    .children-list {
        position: absolute;
        // border-radius: 5px;
        // inset: 0.5em 0.5em auto;
        inset: 0 0 auto;
        .toppage & {
            padding: calc(var(--header-height) / 1.5) 1em 1em;
        }
        .subpage & {
            padding: var(--header-height) 1em 1em;
        }
        box-sizing: border-box;
        background-color: $basecolor;
        // border-radius: 10px;
        box-shadow: 0 0 10px rgba(#000, 0.25);
        display: none;
        [data-menu] {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 5px;
            justify-content: flex-end;
            position: relative;
            z-index: 10;
            li {
                flex-basis: 10vw;
                min-width: 140px;
                @include f_all(14);
                font-weight: bold;
                text-align: center;
                a {
                    color: $themetextcolor;
                    @include flex_centering;
                    justify-content: flex-end;
                    flex-direction: column;
                    padding-bottom: 30%;
                    box-sizing: border-box;
                    aspect-ratio: 1;
                    position: relative;
                    background-color: $themecolor3;
                    background-size: cover;
                    background-position: center;
                    background-repeat: no-repeat;
                    z-index: 0;
                    &::before {
                        content: "";
                        @include absolute_centering;
                        background-color: rgba(#000, 0.25);
                        z-index: -1;
                        transition: 200ms ease;
                    }
                    &::after {
                        content: "";
                        flex-shrink: 0;
                        display: block;
                        width: 15px;
                        height: 15px;
                        background: url(../images/arrow-right-white.svg) no-repeat left 55% center / 5px auto $basetextcolor;
                        // border: 1px solid #7B7B7B;
                        margin-top: 20px;
                        transition: 200ms ease;
                    }

                    @media (any-hover: hover) {
                        &:hover {
                            &::before {
                                background-color: rgba(#000, 0.5);
                                backdrop-filter: blur(2px);
                            }
                            &::after {
                                background-color: $accentcolor;
                                border-color: $accentcolor;
                            }
                        }
                    }
                }
            }
        }
    }
}

.gnav-toggle {
    color: $themetextcolor;
    cursor: pointer;
    display: block;
    width: 45px;
    height: 45px;
    @include maxwidth(768) {
        width: 40px;
        height: 40px;
    }
    background-color: #000;
    position: relative;
    transition: 400ms ease;
    .menu_open & {
        background-color: $accentcolor;
    }
    .b {
        position: absolute;
        inset: 0;
        span {
            position: absolute;
            inset: 0 0 3px 0;
            margin: auto;
            display: inline-block;
            @include flex_centering;
            width: 20px;
            height: 1px;
            background-color: #FFF;
            transition: 400ms ease;
            .menu_open & { width: 15px; }
            &:nth-child(1) {
                transform: translateY(-6px);
                .menu_open & { transform: translateY(-3px) rotate(145deg); }
            }
            &:nth-child(2) {
                .menu_open & { transform: translateY(-3px) rotate(-145deg); }
            }
        }
    }
    .t {
        position: absolute;
        inset: auto 0 6px 0;
        @include flex_centering;
        &::before {
            content: "MENU";
            @include f_all(8);
            font-weight: bold;
            line-height: 1.3;
            .menu_open & { content: "CLOSE"; }
        }
    }
}

#gnavToggleWrapper {
    position: fixed;
    top: 25px;
    .admin-bar & { top: 57px; }
    right: 20px;
    z-index: 101;
    opacity: 0;
    transform: translateY(-100%);
    transition: 400ms ease;
    .header_scrollout &,
    .menu_open & { opacity: 1; transform: translateY(0%); }
    @include maxwidth(768) { display: none  !important; }
    display: none !important;
}

@keyframes gnavOpenAnime {
    0% { transform: scaleX(0) scaleY(0.01); }
    50% { transform: scaleX(1) scaleY(0.01); }
    100% { transform: scaleX(1) scaleY(1); }
}

@keyframes gnavCloseAnime {
    0% { transform: scaleX(1) scaleY(1); }
    50% { transform: scaleX(1) scaleY(0.01); }
    100% { transform: scaleX(0) scaleY(0.01); }
}

#gnavWrapper {
    position: fixed;
    inset: 0;
    z-index: 100;
    // background-color: rgba($basetextcolor, 0.85);
    pointer-events: none;
    &::before {
        content: "";
        display: block;
        position: absolute;
        inset: 0;
        background-color: rgba($basetextcolor, 0.75);
        transform: scaleX(0) scaleY(0.01);
        transform-origin: left center;
        animation: 800ms ease forwards;
    }
    .menu_open & {
        pointer-events: auto;
        &::before {
            animation-name: gnavOpenAnime;
            transform-origin: left center;
        }
    }
    .menu_close & {
        &::before {
            animation-name: gnavCloseAnime;
            transform-origin: right center;
        }
    }
}

#gnav {
    color: $themetextcolor;
    position: fixed;
    inset: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -ms-overflow-style: none;
    scrollbar-width: none;
    &::-webkit-scrollbar { display: none; }
    opacity: 0;
    transform: translateY(20px);
    transition: 500ms ease;
    .menu_open & {
        opacity: 1;
        transform: translateY(0px);
        transition-delay: 600ms;
    }
    padding: 20vh 0;
    box-sizing: border-box;
    .container {
        @include container(640, 20);
        .menu {
            &>ul {
                &>li {
                    &:not(:first-child) { margin-top: 2px; }
                    &>a {
                        color: $themetextcolor;
                        @include f_all(16);
                        @include maxwidth(768) { @include f_all(15); }
                        font-weight: bold;
                        line-height: 1.4;
                        @include flex_centering;
                        background-color: #000;
                        min-height: 3em;
                        position: relative;
                        &::after {
                            content: "";
                            display: inline-block;
                            width: 5px;
                            height: 8px;
                            background: url(../images/arrow-right-white.svg) no-repeat center / contain;
                            position: absolute;
                            inset: 0 auto 0 14px;
                            margin: auto;
                        }
                        &.parent {
                            &::after { transform: rotate(90deg); }
                            &.act::after { transform: rotate(-90deg); }
                        }
                    }
                    &>ul {
                        display: flex;
                        flex-wrap: wrap;
                        gap: 2px;
                        margin-top: 2px;
                        &>li {
                            flex-basis: calc((100% - 2px) / 2);
                            @include maxwidth(768) { flex-basis: 100%; }
                            &>a {
                                background-image: none !important;
                                @include f_all(15);
                                @include maxwidth(768) { @include f_all(14); }
                                font-weight: bold;
                                line-height: 1.4;
                                @include flex_centering;
                                background-color: $themecolor3;
                                min-height:3em;
                                position: relative;
                                &::after {
                                    content: "";
                                    display: inline-block;
                                    width: 5px;
                                    height: 8px;
                                    background: url(../images/arrow-right-white.svg) no-repeat center / contain;
                                    position: absolute;
                                    inset: 0 14px 0 auto;
                                    margin: auto;
                                }
                            }
                        }
                    }
                }
            }
        }
        .sns-list {
            @include flex_centering;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 20px;
            li {
                flex-shrink: 0;
                a {
                    display: block;
                    overflow: hidden;
                    text-indent: -9999px;
                    width: 45px;
                    height: 45px;
                    background: no-repeat center / 20px auto $themecolor3;
                    &.instagram { background-image: url(../images/icon-instagram.svg); }
                    &.facebook { background-image: url(../images/icon-facebook.svg); }

                    @media (any-hover: hover) {
                        transition: 200ms ease;
                        &:hover {
                            background-color: $themecolor2;
                        }
                    }
                }
            }
        }
    }
}

#sidebar {
    position: fixed;
    inset: 0 0 0 auto;
    margin: auto;
    z-index: 101;
    pointer-events: none;
    .header_scrollout &,
    .menu_open &
    { pointer-events: auto; }
    @include maxwidth(768) { display: none !important; }
    ul {
        @include flex_centering;
        flex-direction: column;
        gap: 1px;
        height: 100%;
        li {
            opacity: 0;
            transform: translateX(100%);
            transition: 400ms ease;
            .header_scrollout &,
            .menu_open &
            { opacity: 1; transform: translateX(0%); }
            a {
                &.gnav-toggle {  }
                &:not(.gnav-toggle) {
                    @include f_all(16);
                    font-weight: bold;
                    letter-spacing: -0.02em;
                    width: 45px;
                    height: 250px;
                    @include flex_centering;
                    flex-direction: column;
                    padding: 25px 0.5em 40px 0.5em;
                    box-sizing: border-box;
                    color: $accenttextcolor;
                    background-color: $accentcolor;
                    position: relative;
                    &>.txt {
                        display: inline-block;
                        width: 1em;
                        writing-mode: vertical-lr;
                    }
                    &::after {
                        content: "";
                        display: block;
                        width: 20px;
                        height: 20px;
                        background: url(../images/arrow-right-white.svg) no-repeat center center / 5px auto $themecolor3;
                        position: absolute;
                        inset: auto 0 12px 0;
                        margin: auto;
                    }
                }
                @media (any-hover: hover) {
                    transition: 200ms ease;
                    &:hover { transform: translateX(5px); }
                }
            }
        }
    }
}

// アニメーション定義
@keyframes clipPathExpand {
    0% { clip-path: circle(0% at 50% 50%); }
    100% { clip-path: circle(150% at 50% 50%); }
}

@keyframes panEffect {
    0% { transform: translateX(-10vw); }
    100% { transform: translateX(0%); }
}

@keyframes mv_overlay_string_anime {
    0% {
        transform: scaleX(0);
        transform-origin: left center;
    }
    50% {
        transform: scaleX(1);
        transform-origin: left center;
    }
    50.1% {
        transform: scaleX(1);
        transform-origin: right center;
    }
    100% {
        transform: scaleX(0);
        transform-origin: right center;
    }
}

#mainVisual {
    position: relative;
    z-index: 10;
    .container {
        position: relative;
        .slider {
            &::before, &::after {
                content: "";
                pointer-events: none;
                position: absolute;
                z-index: 2;
            }
            &::before {
                inset: 0;
                background: linear-gradient(180deg, rgba(0, 0, 0, 0.50) 0%, rgba(0, 0, 0, 0.00) 100%);
                @include maxwidth(768) { background: linear-gradient(180deg, rgba(0, 0, 0, 0.80) 0%, rgba(0, 0, 0, 0.20) 100%); }
            }
            &::after {
                height: 50%;
                inset: auto 0 0 0;
                background: linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0.00) 100%);
                @include maxwidth(768) { display: none; }
            }
            &-items {  }
            &-item {
                height: var(--mv-height);
                .admin-bar & { height: calc(var(--mv-height) - 32px); }
                min-height: 600px;
                @include maxwidth(768) { min-height: 400px; }
                overflow: hidden;
                &__inner {
                    display: block;
                    width: 100%;
                    height: 100%;
                    position: relative;
                    &>img {
                        width: calc(100% + 10vw);
                        max-width: initial;
                        height: 100%;   
                        object-fit: cover;
                    }
                }

                // エフェクト付与
                &.swiper-slide {
                    .slider-item__inner { clip-path: circle(0% at 50% 50%); }
                    &.is-animating .slider-item__inner {
                        animation: clipPathExpand 1500ms ease-out forwards;
                    }
                    .slider-item__inner > img.is-animating {
                        animation: panEffect 9000ms linear forwards;
                    }
                    &-active .slider-item__inner { clip-path: circle(150% at 50% 50%); }
                    &-next .slider-item__inner { clip-path: circle(0% at 50% 50%); }
                    &-prev .slider-item__inner { clip-path: circle(150% at 50% 50%); }
                }
            }
            &-pagination {
                position: absolute;
                // inset: auto (25 / 1440 * 100vw) 55px auto;
                inset: 0 (25 / 1440 * 100vw) 0 auto;
                margin: auto;
                z-index: 5;
                width: auto;
                display: flex;
                flex-direction: column;
                justify-content: center;
                flex-wrap: nowrap;
                gap: 10px;
                @include maxwidth(768) {
                    inset: auto auto 20px 50%;
                    transform: translateX(-50%);
                    flex-direction: row;
                }
                .swiper-pagination-bullet {
                    margin: 0;
                    border-radius: 0;
                    opacity: 1;
                    flex-shrink: 0;
                    cursor: pointer;
                    display: block;
                    width: 15px;
                    height: 15px;
                    @include maxwidth(768) { width: 10px; height: 10px; }
                    background-color: #EAEAEA;
                    &-active { background-color: $themecolor2; }
                }
            }
        }
        .overlay {
            color: $themetextcolor;
            position: absolute;
            z-index: 5;
            inset: 50% 20px auto 20px;
            transform: translate(0, -50%);
            display: flex;
            flex-direction: column;
            align-items: center;
            @include maxwidth(768) {
                inset: 45% 20px auto 20px;
                align-items: initial;
            }
            .leadtext {
                font-size: clamp(32px, (64 / 1200 * 100vw), 64px);
                @include maxwidth(360) { font-size: 30px; }
                line-height: 1.3;
                text-align: center;
                .string {
                    display: block;
                    &-inner {
                        display: inline-block;
                        position: relative;
                        &-inner {
                            display: inline-block;
                            opacity: 0;
                            .loaded & {
                                opacity: 1;
                                transition: 0ms 600ms ease;
                            }
                        }
                        &::after {
                            content: "";
                            display: inline-block;
                            position: absolute;
                            inset: 0;
                            background-color: $themecolor;
                            transform: scaleX(0);
                            transform-origin: left center;
                            .loaded & { animation: mv_overlay_string_anime 1200ms ease forwards; }
                        }
                    }
                }
            }
            .text {
                @include f_all(16);
                @include maxwidth(768) { @include f_all(12); }
                font-weight: bold;
                line-height: 1.3;
                margin-top: 10px;
                @include maxwidth(768) { margin-top: 5px; }
                opacity: 0;
                transform: translateY(10px);
                transition: 800ms 600ms ease;
                text-align: center;
                .loaded & { 
                    opacity: 1;
                    transform: translateY(0px);
                }
            }
            .c-button {
                margin-top: 25px;
                @include maxwidth(768) { margin-top: 15px; }
                opacity: 0;
                transform: translateY(10px);
                transition: 800ms 750ms ease;
                .loaded & {
                    opacity: 1;
                    transform: translateY(0px);
                }
                &__link {  }
            }
        }
        .hot-news {
            color: $themetextcolor;
            position: absolute;
            inset: auto auto 55px (36 / 1440 * 100vw);
            z-index: 1;
            @include maxwidth(768) {
                position: relative;
                inset: auto;
                padding: 25px 0px 50px;
                box-sizing: border-box
            }
            &__inner {
                .headline {
                    @include f_all(14);
                    font-weight: bold;
                    line-height: 1.3;
                    @include maxwidth(768) {
                        @include f_all(13);
                        padding: 0 40px;
                        box-sizing: border-box;
                        position: relative;
                    }
                    &.swiper {
                    }
                    .headline-items {
                        @media screen and (min-width: 769px) {
                            flex-direction: column;
                        }
                        &.swiper-wrapper {
                        }
                        .headline-item {
                            @media screen and (min-width: 769px) {
                                &:not(:first-child) { margin-top: 15px; }
                                opacity: 0;
                                transform: translateY(10px);
                                transition: 400ms 1000ms ease;
                                .loaded & {
                                    opacity: 1;
                                    transform: translateY(0px);
                                    @for $i from 0 to 3 {
                                        &:nth-child(#{$i + 1}) {
                                            transition-delay: #{($i * 100ms) + 1000ms};
                                        }
                                    }
                                }
                            }
                            &__link {
                                display: flex;
                                align-items: center;
                                gap: 0 20px;
                                @include maxwidth(768) {
                                    gap: 0 7px;
                                    flex-wrap: wrap;
                                }
                                .date {  }
                                .terms {
                                    @include f_all(10);
                                    display: flex;
                                    flex-wrap: wrap;
                                    gap: 0.25em;
                                    .term {
                                        display: inline-flex;
                                        align-items: center;
                                        justify-content: center;
                                        padding: 0 8px 1px;
                                        box-sizing: border-box;
                                        background-color: $themecolor2;
                                        min-height: 16px;
                                    }
                                }
                                .title {
                                    @include maxwidth(768) {
                                        flex-basis: 100%;
                                        margin-top: 6px;
                                    }
                                }
                                @media (any-hover: hover) {
                                    &:hover { filter: opacity(0.8); }
                                }
                            }
                        }
                    }

                    .headline-pagination {
                        @media screen and (min-width: 769px) { display: none !important; }
                        @include f_all(12);
                        font-weight: bold;
                        line-height: 1.3;
                        margin-top: 1rem;
                        @include flex_centering;
                        gap: 0.25em;
                    }

                    .headline-button {
                        &-prev, &-next {
                            @media screen and (min-width: 769px) { display: none !important; }
                            cursor: pointer;
                            display: block;
                            width: 1rem;
                            height: 1rem;
                            background: url(../images/arrow-right-white.svg) no-repeat center / 5px auto;
                            position: absolute;
                            top: 20%;
                        }
                        &-prev {
                            left: 10px;
                            transform: scale(-1, 1);
                        }
                        &-next { right: 10px; }
                    }
                }
            }
        }
        .scroll-down {
            position: absolute;
            z-index: 1;
            inset: auto auto 0 50%;
            transform: translateX(-50%);
            &__link {
                @include ff_en;
                color: $themetextcolor;
                @include f_all(10);
                font-weight: 300;
                line-height: 1.3;
                text-transform: uppercase;
                display: inline-flex;
                flex-direction: column;
                align-items: center;
                gap: 1em;
                padding-bottom: 22px;
                box-sizing: border-box;
                position: relative;
                @include maxwidth(768) {
                    @include f_all(8);
                    gap: 0;
                }
                .t {  }
                .b {
                    &::before {
                        content: "";
                        display: inline-block;
                        width: 1px;
                        height: 25px;
                        position: absolute;
                        inset: auto auto 0 50%;
                        transform: translateX(-50%);
                        background-color: currentColor;
                        @include maxwidth(768) { height: 10px; }
                    }
                    &::after {
                        content: "";
                        display: inline-block;
                        width: 1px;
                        height: 50px;
                        position: absolute;
                        inset: 100% auto auto 50%;
                        transform: translateX(-50%);
                        background-color: currentColor;
                        @include maxwidth(768) { height: 30px; }
                    }
                }
            }
        }

        .recruit-overlay {
            position: absolute;
            inset: auto (40 / 1440 * 100vw) 55px auto;
            z-index: 1;
            @include maxwidth(1024) { display: none; }
            opacity: 0;
            transform: translateY(10px);
            transition: 400ms 1000ms ease;
            .loaded & {
                opacity: 1;
                transform: translateY(0px);
            }
            &__link {
                display: inline-block;
                padding: 35px 20px 25px;
                box-sizing: border-box;
                color: $accenttextcolor;
                background-color: $accentcolor;
                transition: 200ms ease;
                position: relative;
                &>* {
                    display: block;
                    text-align: center;
                }
                .leadtext {
                    @include f_all(24);
                    font-weight: bold;
                    line-height: 1.3;
                    letter-spacing: -0.02em;
                }
                .btn {
                    @include f_all(15);
                    font-weight: bold;
                    line-height: 1.3;
                    @include flex_centering;
                    color: $themetextcolor;
                    background-color: $themecolor3;
                    padding: 0.5em 40px 0.55em 25px;
                    box-sizing: border-box;
                    min-height: 40px;
                    margin-top: 20px;
                    position: relative;
                    &::after {
                        content: "";
                        display: block;
                        width: 20px;
                        height: 20px;
                        background: url(../images/arrow-right-white.svg) no-repeat center / 5px auto #7b7b7b;
                        position: absolute;
                        inset: 0 12px 0 auto;
                        margin: auto;
                    }
                }
                @media (any-hover: hover) {
                    &:hover {
                        transform: scale(0.97);
                    }
                }
            }
        }
    }
}

#contentFooter {
    color: $themetextcolor;
    background-color: #031424;
    position: relative;
    .subpage & { overflow: hidden; }
    .box {
        --content-footer-box-w: (1132 / 1440 * 100vw);
        --content-footer-box-h: (1212 / 1440 * 100vw);
        pointer-events: none;
        position: absolute;
        inset: ((815 / 1440 * 100vw) * -1) auto auto 0;
        width: 100%;
        height: calc(100% + (815 / 1440 * 100vw));
        overflow: hidden;
        mix-blend-mode: multiply;
        @include maxwidth(768) {
            --content-footer-box-w: (592 / 375 * 100vw);
            --content-footer-box-h: (553 / 375 * 100vw);
            height: calc(100% + (510 / 375 * 100vw));
            inset: ((510 / 375 * 100vw) * -1) auto auto 0;
        }
        &-item {
            display: block;
            width: var(--content-footer-box-w);
            height: var(--content-footer-box-h);
            background-color: #7b7b7b;
            transform: rotate(-112deg);
            position: absolute;
            inset: 0 auto auto (30 / 1440 * 100vw);
            clip-path: polygon(100% 0, 0 0, 0 100%);
            @include maxwidth(768) {
                inset: 0 auto auto (15 / 375 * 100vw);
            }
        }
    }
    #contentFooterContact {
        padding: 80px 0;
        position: relative;
        @include maxwidth(768) {
            padding: 40px 0 60px;
        }
        .container {
            @include container(1280, 40);
            @include maxwidth(768) {
                margin-left: 20px;
                margin-right: 20px;
            }
            .c-heading {
                align-items: center;
                text-align: center;
            }
            .body {
                margin-top: 30px;
                .contact-buttons {
                    display: flex;
                    flex-wrap: wrap;
                    gap: 20px;
                    @include maxwidth(1200) { gap: 10px; }
                    @include maxwidth(768) { gap: 5px; }
                }
                .contact-button {
                    flex-basis: calc((100% - 20px) / 2);
                    &:first-child { flex-basis: 100%; }
                    @include maxwidth(1200) { flex-basis: 100%; }
                    &__link {
                        color: $themetextcolor;
                        @include f_all(20);
                        font-weight: bold;
                        line-height: 1.3;
                        @include flex_centering;
                        background-color: $themecolor3;
                        min-height: 155px;
                        padding: 10px 60px;
                        box-sizing: border-box;
                        position: relative;
                        transition: background 200ms ease-out;
                        @include maxwidth(768) {
                            @include f_all(14);
                            padding: 25px 10px 50px;
                            min-height: 100px;
                        }
                        &::after {
                            content: "";
                            display: block;
                            width: 20px;
                            height: 20px;
                            border: solid 1px #7B7B7B;
                            background: url(../images/arrow-right-white.svg) no-repeat left 55% center / 5px auto;
                            position: absolute;
                            inset: 0 auto 0 30px;
                            margin: auto;
                            @include maxwidth(768) { 
                                inset: auto 0 15px 0;
                            }
                        }

                        &.form {
                            &::before {
                                content: "";
                                flex-shrink: 0;
                                display: inline-block;
                                width: 22px;
                                height: 15px;
                                background: url(../images/icon-mail-white.svg) no-repeat center / contain;
                                margin-right: 10px;
                                margin-top: 0.15em;
                            }
                        }
                        
                        &.address {
                            @include f_all(16);
                            @include maxwidth(768) { @include f_all(13); }
                        }

                        @media (any-hover: hover) {
                            &:hover { background-color: $accentcolor; }
                        }
                    }
                }
            }
        }
    }
}

#footer {
    color: $themetextcolor;
    background-color: $themecolor;
    padding: 45px 0 34px;
    position: relative;
    @include maxwidth(768) {
        padding: 40px 0 65px;
    }
    .container {
        @include container(1280, 40);
        @include maxwidth(768) {
            margin-left: 20px;
            margin-right: 20px;
        }
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0 1rem;
        @include maxwidth(1200) { display: block; }
        .description {
            @include maxwidth(1200) { text-align: center; }
            .sitename {
                img { }
            }
            .address {
                @include f_all(14);
                font-weight: bold;
                line-height: 1.3;
                margin-top: 10px;
                &>p:not(:first-child) { margin-top: 10px; }
                
                @include maxwidth(768) {
                    @include f_all(13);
                    margin-top: 12px;
                }

                br.sp {
                    @media screen and (min-width: 1201px) { display: none; }
                    @media screen and (max-width: 1201px) { display: block; }
                }
            }
            .sns-list {
                margin-top: 20px;
                display: flex;
                align-items: center;
                flex-wrap: wrap;
                gap: 8px;
                @include maxwidth(1200) {
                    justify-content: center;
                }
                li {
                    flex-shrink: 0;
                    a {
                        display: block;
                        overflow: hidden;
                        text-indent: -9999px;
                        width: 45px;
                        height: 45px;
                        background: no-repeat center / 20px auto $themecolor3;
                        &.instagram { background-image: url(../images/icon-instagram.svg); }
                        &.facebook { background-image: url(../images/icon-facebook.svg); }

                        @media (any-hover: hover) {
                            transition: 200ms ease;
                            &:hover {
                                background-color: $themecolor2;
                            }
                        }
                    }
                }
            }
        }
        .menu {
            @include f_all(14);
            font-weight: bold;
            line-height: 2;
            display: flex;
            flex-wrap: wrap;
            gap: 80px;
            @media (any-hover: hover) {
                a:hover { filter: opacity(0.8); }
            }
            @include maxwidth(1200) {
                display: block;
                margin-top: 15px;
            }
            @include maxwidth(768) {
                @include f_all(13);
            }
            .item {
                &:not(:first-child) {
                    @include maxwidth(1200) { margin-top: 1px; }
                }
                ul {
                    display: flex;
                    flex-direction: column;
                    li {
                        &:not(:first-child) {
                            @include maxwidth(1200) { margin-top: 1px; }
                        }
                        a {
                            display: inline-flex;
                            align-items: center;
                            @include maxwidth(1200) {
                                @include flex_centering;
                                background-color: $themecolor3;
                                min-height: 45px;
                                position: relative;
                                &::before { display: none !important; }
                                &::after {
                                    content: "";
                                    display: inline-block;
                                    width: 5px;
                                    height: 8px;
                                    background: url(../images/arrow-right-white.svg) no-repeat center / contain;
                                    position: absolute;
                                    inset: 0 auto 0 1em;
                                    margin: auto;
                                }
                            }
                            @include maxwidth(768) {
                                min-height: 40px;
                            }
                        }
                    }
                }
                &>ul {
                    &:not(:first-child) {
                        margin-top: 2em;
                        @include maxwidth(1200) { margin-top: 1px; }
                    }
                    &>li {
                        &>a {
                        }
                        &>ul {
                            @include maxwidth(1200) { margin-top: 1px; }
                            &>li {
                                &>a {
                                    &::before {
                                        content: "";
                                        flex-shrink: 0;
                                        display: inline-block;
                                        width: 4px;
                                        height: 4px;
                                        background-color: currentColor;
                                        margin-right: 10px;
                                        margin-top: 0.15em;
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
        .copyright {
            text-align: right;
            flex-basis: 100%;
            margin-top: 40px;
            @include maxwidth(1200) {
                margin-top: 20px;
                text-align: center;
            }
            small {
                @include f_all(12);
                font-weight: bold;
                line-height: 1.8;
            }
        }
    }
}

#totop {
    cursor: pointer;
    color: $themetextcolor;
    @include f_all(8);
    text-transform: uppercase;
    font-weight: bold;
    @include flex_centering;
    flex-direction: column;
    gap: 8px;
    width: 45px;
    height: 45px;
    padding-top: 10%;
    box-sizing: border-box;
    background-color: $themecolor3;
    &::before {
        content: "";
        display: inline-block;
        width: 8px;
        height: 5px;
        background: url(../images/arrow-bottom-white.svg) no-repeat center / contain;
        transform: scale(1, -1);
    }
}

#footbar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 102;
    transform: translateY(100%);
    transition: 200ms ease;
    .menu_open &,
    .header_scrollout & { transform: translateY(0%); }

    @media screen and (min-width: 769px) { display: none; }
    ul {
        display: flex;
        li {
            flex: 1;
            &:has(> a.gnav-toggle),
            &:has(> a#totop) {
                flex-shrink: 0;
                flex-grow: 0;
            }
            a {
                &:not(.gnav-toggle):not(#totop) {
                    color: $themetextcolor;
                    @include f_all(13);
                    font-weight: bold;
                    @include flex_centering;
                    gap: 5px;
                    padding: 5px;
                    box-sizing: border-box;
                    background-color: $themecolor2;
                    min-height: 45px;
                    position: relative;
                    &::after {
                        content: "";
                        flex-shrink: 0;
                        display: block;
                        width: 5px;
                        height: 8px;
                        background: url(../images/arrow-right-white.svg) no-repeat center / contain;
                    }
                }
                &.gnav-toggle {
                    width: 45px;
                    height: 45px;
                }
                &#totop {
                    .menu_open & { display: none; }
                }
            }
        }
    }
}

@keyframes heading_en_string_anime {
    0% {
        transform: scaleX(0);
        transform-origin: left center;
    }
    50% {
        transform: scaleX(1);
        transform-origin: left center;
    }
    50.1% {
        transform: scaleX(1);
        transform-origin: right center;
    }
    100% {
        transform: scaleX(0);
        transform-origin: right center;
    }
}

.c-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    .en {
        @include ff_en;
        font-size: clamp(36px, (60 / 1200 * 100vw), 60px);
        @include maxwidth(360) { font-size: 30px; }
        line-height: 1.3;
        text-transform: uppercase;
        letter-spacing: -0.02em;
        & .s { font-size: 0.75em; }
        position: relative;
        .inner {
            opacity: 0;
            transition: 0ms 400ms ease;
        }
        &::after {
            content: "";
            display: inline-block;
            position: absolute;
            inset: 0;
            background-color: $themecolor;
            transform: scaleX(0);
            transform-origin: left center;
        }
    }
    .ja {
        @include f_all(14);
        @include maxwidth(768) { @include f_all(13); }
        font-weight: bold;
        line-height: 1.3;
        opacity: 0;
        transform: translateY(-5px);
        transition: 800ms 400ms ease;
    }

    &.inview {
        .en {
            .inner { opacity: 1; }
            &::after {
                animation: heading_en_string_anime 800ms ease forwards;
            }
        }
        .ja {
            opacity: 1;
            transform: translateY(0px);
        }
    }
}

.c-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    @include maxwidth(768) { gap: 5px; }
}

.c-button {
    display: inline-block;
    @include maxwidth(768) { width: 100%; }
    &__link {
        color: $themetextcolor;
        @include f_all(14);
        font-weight: bold;
        line-height: 1.3;
        @include flex_centering;
        min-width: 220px;
        min-height: 45px;
        padding: 0.2em 1em 0.2em calc(1em + 10px);
        box-sizing: border-box;
        background-color: $themecolor;
        position: relative;
        z-index: 0;
        transition: 400ms ease;
        @include maxwidth(768) {
            @include f_all(13);
            min-height: 40px;
            min-width: initial;
        }

        &::after {
            content: "";
            display: inline-block;
            width: 5px;
            height: 8px;
            background: url(../images/arrow-right-white.svg) no-repeat center / contain;
            position: absolute;
            inset: 0.15em auto 0 1em;
            margin: auto;
            transition: transform 200ms ease;
        }

        @media (any-hover: hover) {
            &:hover {
                background-color: $accentcolor;
                &::after { transform: translateX(2px); }
            }
        }
    }
}

.products-terms {
    position: relative;
    &:has(+ .products-headline) { margin-bottom: 30px; }
    ul {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
        @include maxwidth(1024) { gap: 8px; }
        @include maxwidth(768) { column-gap: 4px; }
        li {
            @include f_all(14);
            @include maxwidth(768) { @include f_all(13); }
            font-weight: bold;
            line-height: 1.3;
            a {
                color: $themetextcolor;
                @include flex_centering;
                // min-width: 220px;
                min-width: 205px;
                min-height: 45px;
                padding: 0.2em 1em 0.2em calc(1em + 10px);
                box-sizing: border-box;
                background-color: $themecolor2;
                position: relative;
                z-index: 0;
                @include maxwidth(768) {
                    min-width: auto;
                    min-height: 40px;
                    border-radius: 50px;
                    padding: 0.2em 25px 0.2em 30px;
                }

                &::after {
                    content: "";
                    display: block;
                    width: 5px;
                    height: 8px;
                    background: url(../images/arrow-right-white.svg) no-repeat center / contain;
                    position: absolute;
                    inset: 0 auto 0 1em;
                    margin: auto;
                    transition: 200ms ease;
                }

                
                &.current {
                    background-color: #000;
                    &::after { background-image: url(../images/arrow-right-white.svg); }
                }

                @media (any-hover: hover) {
                    &:hover {
                        color: $themetextcolor;
                        filter: opacity(0.8);
                        &::after { transform: translateX(2px); }
                    }
                }
            }
        }
    }
}

.products-headline {
    position: relative;
    .headline-items {
        --headline-items-col-gap: 30px;
        @include maxwidth(1024) { --headline-items-col-gap: 10px; }
        display: flex;
        flex-wrap: wrap;
        gap: 50px var(--headline-items-col-gap);
        @include maxwidth(1024) { gap: 35px var(--headline-items-col-gap); }

        .headline-item {
            flex-basis: calc((100% - (var(--headline-items-col-gap) * 3)) / 4);
            @include maxwidth(768) {
                flex-basis: calc((100% - (var(--headline-items-col-gap) * 1)) / 2);
            }
            .headline-item__link {
                &>* { display: block; }
                .image {
                    padding-top: 100%;
                    box-sizing: border-box;
                    position: relative;
                    overflow: hidden;
                    &::before {
                        content: "more";
                        color: $themetextcolor;
                        @include f_all(20);
                        @include maxwidth(768) { @include f_all(18); }
                        font-weight: 500;
                        text-transform: uppercase;
                        display: inline-block;
                        position: absolute;
                        top: 50%;
                        left: 50%;
                        transform: translate(-50%, -50%);
                        padding-right: 0.75em;
                        background: url(../images/arrow-right-white.svg) no-repeat right top 60% / 5px auto;
                        z-index: 1;
                        clip-path: inset(0 100% 0 0);
                        transition: clip-path 400ms ease-out;
                    }
                    &>img {
                        position: absolute;
                        inset: 0;
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                        transition: transform 400ms ease-out;
                    }
                    &::after {
                        content: "";
                        display: block;
                        @include absolute_centering;
                        background-color: rgba(#000, 0.80);
                        backdrop-filter: blur(4px);
                        opacity: 0;
                        transition: opacity 200ms ease-out;
                    }
                }
                .docs {
                    &>* { display: block; }
                    .terms {
                        color: $themetextcolor;
                        @include f_all(12);
                        font-weight: bold;
                        line-height: 1.5;
                        display: flex;
                        flex-wrap: wrap;
                        gap: 5px;
                        padding-top: 14px;
                        .term {
                            display: inline-flex;
                            align-items: center;
                            justify-content: center;
                            padding: 0 8px 1px;
                            box-sizing: border-box;
                            background-color: $themecolor2;
                            min-height: 20px;
                            position: relative;
                        }
                    }
                    .title {
                        @include f_all(16);
                        @include maxwidth(768) { @include f_all(15); }
                        font-weight: bold;
                        line-height: 1.5;
                        padding-top: 5px;
                    }
                }

                @media (any-hover: hover) {
                    &:hover {
                        .image {
                            &::before { clip-path: inset(0 0 0 0); }
                            &>img { transform: scale(1.1); }
                            &::after { opacity: 1; }
                        }
                    }
                }
            }
        }
    }
}

.newstopics-terms {
    position: relative;
    &:has(+ .newstopics-headline) { margin-bottom: 30px; }
    ul {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
        @include maxwidth(768) {
            gap: 8px 4px;
        }
        li {
            @include f_all(14);
            font-weight: bold;
            line-height: 1.3;
            @include maxwidth(768) { @include f_all(13); }
            a {
                color: $themetextcolor;
                @include flex_centering;
                min-width: 250px;
                min-height: 45px;
                padding: 0.4em 1em 0.5em;
                @include maxwidth(768) {
                    min-width: initial;
                    min-height: 40px;
                    padding: 0.4em 20px 0.5em 30px;
                    border-radius: 50px;
                }
                box-sizing: border-box;
                background-color: $themecolor2;
                position: relative;

                &::after {
                    content: "";
                    display: block;
                    width: 5px;
                    height: 8px;
                    background: url(../images/arrow-right-white.svg) no-repeat center / contain;
                    position: absolute;
                    inset: 0 auto 0 1em;
                    margin: auto;
                }

                &.current {
                    font-weight: bold;
                    background-color: #000;
                }

                &.all { letter-spacing: -0.05em; }

                @media (any-hover: hover) {
                    &:hover { filter: opacity(0.8); }
                }
            }
        }
    }
}

.newstopics-headline {
    position: relative;
    .headline-items {
        .headline-item {
            .headline-item__link {
                @include f_all(14);
                font-weight: bold;
                line-height: 1.3;
                display: flex;
                align-items: center;
                padding: 30px 45px 30px 30px;
                box-sizing: border-box;
                border-bottom: solid 1px rgba(#7B7B7B, 0.3);
                @include maxwidth(768) {
                    @include f_all(13);
                    padding: 12px 25px 20px 10px;
                    flex-wrap: wrap;
                }
                position: relative;
                z-index: 0;
                &::before {
                    content: "";
                    display: block;
                    @include absolute_centering;
                    z-index: -1;
                    background-color: #000;
                    .subpage & { background-color: rgba(#000, 0.05); }
                    transform: scaleY(0);
                    transform-origin: center bottom;
                    transition: transform 400ms ease-out;
                }
                .date {
                    margin-right: 17px;
                    @include maxwidth(768) { margin-right: 7px; }
                }
                .terms {
                    color: $themetextcolor;
                    @include f_all(10);
                    font-weight: bold;
                    display: flex;
                    align-items: center;
                    flex-wrap: wrap;
                    gap: 0.5em;
                    margin-top: 1px;
                    margin-right: 50px;
                    @include maxwidth(768) {
                        margin-right: 0;
                    }
                    .term {
                        display: inline-flex;
                        align-items: center;
                        justify-content: center;
                        padding: 0 8px 1px;
                        box-sizing: border-box;
                        background-color: $themecolor2;
                        min-height: 16px;
                    }
                }
                .title {
                    @include maxwidth(768) {
                        flex-basis: 100%;
                        margin-top: 6px;
                    }
                }
                &::after {
                    content: "";
                    display: block;
                    width: 5px;
                    height: 8px;
                    background: url(../images/arrow-right-white.svg) no-repeat center / contain;
                    position: absolute;
                    inset: 0 30px 0 auto;
                    @include maxwidth(768) { inset: auto 15px 25px auto; }
                    margin: auto;
                    transition: transform 200ms ease-out;
                }
                @media (any-hover: hover) {
                    &:hover {
                        &::before {
                            transform: scaleY(1);
                            transform-origin: center top;
                        }
                        &::after { transform: translateX(2px); }
                    }
                }
            }
        }
    }
}

// === Toppage

@keyframes aboutusSlideAnime {
    from { clip-path: circle(0% at 50% 50%); }
    to { clip-path: circle(100% at 50% 50%); }
}

#toppageAboutus {
    padding: 180px 0 155px;
    background-color: #000;
    box-sizing: border-box;
    position: relative;
    @include maxwidth(768) {
        padding: 80px 0 50px;
    }
    .bgimage {
        position: absolute;
        inset: 0;
        background-repeat: no-repeat;
        background-position: center center;
        background-size: cover;
        &::after {
            content: "";
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, 0.50);
            backdrop-filter: blur(2.5px);
        }
    }
    .box {
        --aboutus-box-w: (1212 / 1440 * 100vw);
        --aboutus-box-h: (1132 / 1440 * 100vw);
        @include maxwidth(768) {
            --aboutus-box-w: (553 / 375 * 100vw);
            --aboutus-box-h: (592 / 375 * 100vw);
        }
        pointer-events: none;
        position: absolute;
        inset: 0 0 (720 / 1440 * 100vw) auto;
        z-index: 1;
        width: 100%;
        height: calc(100% + (720 / 1440 * 100vw));
        overflow: hidden;
        mix-blend-mode: multiply;
        @include maxwidth(768) {
            inset: 0 0 (280 / 375 * 100vw) auto;
            height: calc(100% + (280 / 375 * 100vw));
        }
        &-item {
            width: var(--aboutus-box-w);
            height: var(--aboutus-box-h);
            background-color: #7b7b7b;
            position: absolute;
            inset: auto (140 / 1440 * 100vw * -1) (210 / 1440 * 100vw) auto;
            @include maxwidth(768) {
                inset: auto (30 / 375 * 100vw) (90 / 375 * 100vw) auto;
            }
            clip-path: polygon(0 0, 0% 100%, 100% 100%);
            transform: rotate(-68deg);
        }
    }
    .container {
        @include container(1200, 40);
        @include maxwidth(768) {
            margin-left: 20px;
            margin-right: 20px;
        }
        z-index: 5;
        .cols {
            display: flex;
            justify-content: space-between;
            gap: 30px 2rem;
            @include maxwidth(1024) {
                flex-direction: column;
                &>* {
                    flex-basis: 100% !important;
                    width: 100% !important;
                }
            }
            .col {
                &:nth-child(1) {
                    flex-basis: 480px;
                    margin-top: 40px;
                    @include maxwidth(1024) { margin-top: 0px; }
                }
                &:nth-child(2) {
                    flex-basis: 580px;
                    width: 0px;
                }
                .c-heading {
                }
                .body {
                    margin-top: 35px;
                    @include maxwidth(768) { margin-top: 25px; }
                    .leadtxt {
                        @include f_all(24);
                        font-weight: bold;
                        line-height: 1.3;
                        @include maxwidth(768) {
                            @include f_all(20);
                        }
                    }
                    .txt {
                        @include f_all(14);
                        font-weight: bold;
                        line-height: 2;
                        margin-top: 15px;
                        @include maxwidth(768) { line-height: 1.8; }
                        &>p:not(:first-child) {
                            margin-top: 2em;
                            @include maxwidth(768) { margin-top: 1.8em; }
                        }
                    }
                    .c-buttons {
                        margin-top: 30px;
                        .c-button {  }
                    }

                    &.js-target {
                        &>* {
                            opacity: 0;
                            transform: translateY(10px);
                            transition: 800ms ease;
                        }
                        &.inview > * {
                            opacity: 1;
                            transform: translateY(0px);
                            @for $i from 0 to 3 {
                                &:nth-child(#{$i + 1}) {
                                    transition-delay: #{$i * 200ms};
                                }
                            }
                        }
                    }
                }
                .slider {
                    .images {
                        .image {
                            aspect-ratio: 1;
                            position: relative;
                            @include maxwidth(1024) {
                                max-height: 80vh;
                            }
                            &>img {
                                width: 100%;
                                height: 100%;
                                object-fit: cover;
                            }

                            &.is-animating {
                                &>img {
                                    animation: aboutusSlideAnime 1500ms ease-out forwards;
                                }
                            }
                        }
                    }
                    .pagination {
                        display: flex;
                        align-items: center;
                        justify-content: flex-end;
                        flex-wrap: wrap;
                        gap: 10px;
                        margin-top: 30px;
                        @include maxwidth(768) {
                            justify-content: center;
                            margin-top: 15px;
                        }
                        .swiper-pagination-bullet {
                            margin: 0;
                            border-radius: 0px;
                            opacity: 1;
                            display: block;
                            width: 15px;
                            height: 15px;
                            @include maxwidth(768) { width: 10px; height: 10px; }
                            background-color: #EAEAEA;
                            &-active { background-color: $themecolor2; }
                        }
                    }
                }
            }
        }
    }
}

#toppageBusiness {
    margin: 60px 0 80px;
    @include maxwidth(768) { margin: 50px 0 40px; }
    position: relative;
    z-index: 2;
    .container {
        @include container(1280, 40);
        @include maxwidth(768) {
            margin-left: 10px;
            margin-right: 10px;
        }
        .head {
            @media screen and (min-width: 769px) { display: none !important; }
            .c-heading {
                align-items: center;
            }
        }
        .box {
            padding: 30px 20px 50px;
            box-sizing: border-box;
            background-repeat: no-repeat;
            background-position: center center;
            background-size: cover;
            position: relative;
            z-index: 0;
            @include maxwidth(768) {
                padding: 20px;
                margin-top: 25px;
            }
            &::before {
                content: "";
                position: absolute;
                inset: 0;
                z-index: -1;
                background: rgba(0, 0, 0, 0.50);
                @include maxwidth(768) {
                    background: transparent;
                    backdrop-filter: grayscale(100%);
                    -webkit-backdrop-filter: grayscale(100%);
                }
            }
            &-heading {
                align-items: center;
                @include maxwidth(768) { display: none !important; }
            }
            &-body {
                margin-top: 25px;
                @include maxwidth(768) { margin-top: 0; }
                .biz-buttons {
                    display: flex;
                    justify-content: center;
                    flex-wrap: wrap;
                    gap: 7px;
                    @include maxwidth(768) {
                        flex-direction: column;
                        justify-content: initial;
                        gapp: 5px;
                        &>* { flex: none !important; }
                    }
                }
                .biz-button {
                    counter-increment: biz-button-num;
                    flex-basis: 250px;
                    @include maxwidth(768) {
                        max-width: 285px;
                        width: 100%;
                        margin-left: auto;
                        margin-right: auto;
                    }
                    &.js-target {
                        clip-path: circle(0% at 50% 50%);
                        transition: 1200ms ease;
                        &.inview {
                            clip-path: circle(100% at 50% 50%);
                        }
                    }
                    &__link {
                        color: $themetextcolor;
                        @include f_all(20);
                        font-weight: bold;
                        line-height: 1.3;
                        @include flex_centering;
                        flex-direction: column;
                        aspect-ratio: 1;
                        background-color: $themecolor3;
                        position: relative;
                        z-index: 0;
                        @include maxwidth(768) {
                            aspect-ratio: auto;
                            padding: 50px 10px 40px;
                            background-color: rgba($themecolor, 0.95);
                        }
                        &::before {
                            content: counter(biz-button-num, decimal-leading-zero);
                            @include f_all(13);
                            font-weight: bold;
                            line-height: 1.3;
                            color: $themecolor2;
                            transition: 200ms ease;
                        }
                        .bgimg {
                            position: absolute;
                            inset: 0;
                            z-index: -1;
                            clip-path: circle(0% at 50% 50%);
                            transition: clip-path 400ms ease-out;
                            background-color: $themecolor;
                            background-repeat: no-repeat;
                            background-position: center center;
                            background-size: cover;
                            &::after {
                                content: "";
                                position: absolute;
                                inset: 0;
                                background-color: rgba(#000, 0.25);
                            }
                        }
                        .title { margin-top: 7px; }
                        .cta {
                            flex-shrink: 0;
                            display: inline-block;
                            width: 20px;
                            height: 20px;
                            border: solid 1px #7b7b7b;
                            box-sizing: border-box;
                            margin-top: 37px;
                            background: url(../images/arrow-right-white.svg) no-repeat left 55% center / 5px auto transparent;
                            transition: 200ms ease-out;
                            @include maxwidth(768) {
                                margin-top: 20px;
                            }
                        }

                        @media (any-hover: hover) {
                            &:hover {
                                &::before { color: $themetextcolor; }
                                .bgimg { clip-path: circle(100% at 50% 50%); }
                                .cta {
                                    background-color: $accentcolor;
                                    border-color: transparent;
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}

#toppageProducts {
    margin: 80px 0;
    @include maxwidth(768) { margin-top: 40px; }
    position: relative;
    .container {
        position: relative;
        z-index: 5;
        .c-heading { align-items: center; }
        .body {
            margin-top: 35px;
            .products-terms {
                @include container(1280, 40);
                @include maxwidth(768) {
                    margin-left: 20px;
                    margin-right: 20px;
                }
                &.js-target {
                    li {
                        opacity: 0;
                        transform: translateX(5px);
                        transition: 800ms ease;
                    }
                    &.inview li {
                        opacity: 1;
                        transform: translateX(0px);
                    }
                }
            }
            .products-headline {
                padding-left: (80 / 1440 * 100vw);
                padding-right: (80 / 1440 * 100vw);
                @include maxwidth(1440) {
                    padding-left: 40px;
                    padding-right: 40px;
                }
                @include maxwidth(768) {
                    padding-left: 20px;
                    padding-right: 20px;
                }
                box-sizing: border-box;
                .headline-items {
                    display: inline-flex !important;
                    width: auto !important;
                    flex-wrap: nowrap !important;
                    gap: 0px !important;
                    padding: 40px 10px 60px 40px;
                    @include maxwidth(768) {
                        padding: 20px 0px 50px 20px;
                    }
                    box-sizing: border-box;
                    &::before {
                        content: "";
                        @include absolute_centering;
                        background-color: #000;
                        z-index: 0;
                    }
                    .headline-item {
                        flex-basis: auto !important;
                        width: (300 / 1440 * 100vw);
                        min-width: 300px;
                        @include maxwidth(360) { min-width: 240px; }
                        .headline-item__link {  }
                    }
                }

                &.js-target {
                    .headline-item {
                        .image {
                            clip-path: circle(20% at 50% 50%);
                            transition: 1200ms ease;
                        }
                        .docs > * {
                            opacity: 0;
                            transform: translateY(-5px);
                            transition: 800ms 600ms ease;
                        }
                    }
                    &.inview .headline-item {
                        .image {
                            clip-path: circle(100% at 50% 50%);
                        }
                        .docs > * {
                            opacity: 1;
                            transform: translateY(0px);
                            &.terms { transition-delay: 750ms; }
                        }
                    }
                }
            }
            .c-buttons {
                justify-content: center;
                margin: 30px 20px 0;
                @include maxwidth(768) { margin-top: 20px; }
                .c-button {  }
            }
        }
    }
}

#toppageRecruit {
    padding: 100px 0 125px;
    box-sizing: border-box;
    position: relative;
    @include maxwidth(768) { padding: 50px 0; }
    &::before, &::after {
        content: "";
        display: block;
        position: absolute;
        width: 560px;
        height: 470px;
        @include maxwidth(1024) {
            width: (200 / 375 * 100vw);
            height: (168 / 375 * 100vw);
        }
        background-color: #000;
        z-index: 1;
    }
    &::before {
        inset: 0 auto auto 0;
        clip-path: polygon(0 0, 0% 100%, 100% 0);
    }
    &::after {
        inset: auto 0 0 auto;
        clip-path: polygon(100% 100%, 0% 100%, 100% 0);
    }
    .bgimage {
        @include absolute_centering;
        z-index: 0;
        background-repeat: no-repeat;
        background-position: center center;
        background-size: cover;
        &::after {
            content: "";
            @include absolute_centering;
            background: rgba(#000, 0.50);
            backdrop-filter: blur(2px);
        }
    }
    .container {
        @include container(1280, 40);
        @include maxwidth(768) {
            margin-left: 20px;
            margin-right: 20px;
        }
        z-index: 5;
        .c-heading {  }
        .body {
            --recruit-content-between: 10px;
            @include maxwidth(768) {
                --recruit-content-between: 7px;
            }
            margin-top: 70px;
            @include maxwidth(768) { margin-top: 35px; }
            .docs {
                padding: 60px 20px 90px;
                box-sizing: border-box;
                background: rgba($themecolor, 0.90);
                position: relative;
                @include maxwidth(768) {
                    padding: 50px 20px 25px;
                    margin: 0 -20px;
                }
                .leadtxt {
                    @include f_all(24);
                    font-weight: bold;
                    line-height: 1.3;
                    text-align: center;
                    @include maxwidth(768) {
                        @include f_all(20);
                    }
                }
                .txt {
                    @include f_all(14);
                    font-weight: bold;
                    line-height: 2;
                    text-align: center;
                    margin-top: 20px;
                    @include maxwidth(768) {
                        text-align: left;
                        line-height: 1.8;
                    }
                    &>p:not(:first-child) {
                        margin-top: 2em;
                        @include maxwidth(768) { margin-top: 1.8em; }
                    }
                }

                &.js-target {
                    &>* {
                        opacity: 0;
                        transform: translateY(10px);
                        transition: 800ms ease;
                    }
                    &.inview > * {
                        opacity: 1;
                        transform: translateY(0px);
                        @for $i from 0 to 3 {
                            &:nth-child(#{$i + 1}) {
                                transition-delay: #{$i * 200ms};
                            }
                        }
                    }
                }
            }
            .recruit-buttons {
                margin-top: var(--recruit-content-between);
                display: flex;
                gap: var(--recruit-content-between);
                @include maxwidth(1024) {
                    flex-wrap: wrap;
                }
                .recruit-button {
                    flex-grow: 1;
                    flex-basis: (100% / 5);
                    @include maxwidth(1024) {
                        flex-grow: 0;
                        flex-basis: calc((100% - (var(--recruit-content-between) * 1)) / 2);
                        &:first-child { flex-basis: 100%; }
                    }
                    .recruit-button__link {
                        @include flex_centering;
                        width: 100%;
                        justify-content: center;
                        flex-direction: column;
                        background-color: $themecolor3;
                        aspect-ratio: 1;
                        padding: 60px 10px 50px;
                        @include maxwidth(1024) {
                            aspect-ratio: auto;
                            padding-bottom: 40px;
                            min-height: 165px;
                        }
                        @include maxwidth(768) {
                            padding: 35px 10px 25px;
                        }
                        box-sizing: border-box;
                        height: 100%;
                        position: relative;
                        z-index: 0;
                        .bgimg {
                            position: absolute;
                            inset: 0;
                            background-color: $themecolor;
                            z-index: -1;
                            background-repeat: no-repeat;
                            background-position: center center;
                            background-size: cover;
                            clip-path: circle(0% at 50% 50%);
                            transition: clip-path 400ms ease-out;
                            &::after {
                                content: "";
                                display: block;
                                @include absolute_centering;
                                background-color: rgba(#000, 0.25);
                            }
                        }
                        .title {
                            display: inline-flex;
                            flex-direction: column;
                            align-items: center;
                            gap: 5px;
                            .ja {
                                color: $themecolor2;
                                @include f_all(13);
                                @include maxwidth(768) { @include f_all(12); }
                                font-weight: bold;
                                line-height: normal;
                                text-align: center;
                                transition: 200ms ease;
                            }
                            .en {
                                word-break: break-all;
                                @include f_all(20);
                                font-weight: bold;
                                text-transform: uppercase;
                                line-height: 1.2;
                                text-align: center;
                                min-height: 2em;
                                @include maxwidth(768) {
                                    @include f_all(16);
                                    min-height: initial;
                                }
                            }
                        }
                        .cta {
                            flex-shrink: 0;
                            display: inline-block;
                            width: 20px;
                            height: 20px;
                            border: solid 1px #7B7B7B;
                            background: url(../images/arrow-right-white.svg) no-repeat center / 5px auto transparent;
                            margin-top: 10px;
                        }

                        @media (any-hover: hover) {
                            &:hover {
                                .bgimg { clip-path: circle(100% at 50% 50%); }
                                .title .ja { color: $themetextcolor; }
                                .cta {
                                    border-color: transparent;
                                    background-color: $accentcolor;
                                }
                            }
                        }
                    }

                    &.js-target {
                        clip-path: circle(0% at 50% 50%);
                        transition: 1200ms ease;
                        &.inview { clip-path: circle(100% at 50% 50%); }
                    }
                }
            }
        }
    }
}

#toppageNewstopics {
    padding: 100px 0 120px;
    position: relative;
    z-index: 1;
    @include maxwidth(768) {
        padding: 30px 0 60px;
    }
    .container {
        @include container(1280, 40);
        @include maxwidth(768) {
            margin-left: 20px;
            margin-right: 20px;
        }
        .head {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 2rem;
            @include maxwidth(768) {
                justify-content: center;
            }
            .c-heading {
                @include maxwidth(768) {
                    align-items: center;
                    margin: 0 -20px;
                }
            }
            .c-button {
                margin-top: 2rem;
                @include maxwidth(1024) { display: none !important; }
                .c-button__link {  }
            }
        }
        .body {
            margin-top: 70px;
            @include maxwidth(768) { margin-top: 25px; }
            .cols {
                display: flex;
                justify-content: space-between;
                gap: 2rem;
                @include maxwidth(1024) {
                    flex-direction: column;
                    justify-content: initial;
                    &>* {
                        flex-basis: 100% !important;
                        width: 100%;
                    }
                }
                .col {
                    &:nth-child(1) {
                        flex-basis: 250px;
                    }
                    &:nth-child(2) {
                        flex-basis: 900px;
                    }
                    .newstopics-terms {
                        @media screen and (min-width: 769px) { margin-bottom: 0; }
                        // ul { gap: 5px; }
                        &.js-target {
                            li {
                                opacity: 0;
                                transform: translateX(5px);
                                transition: 800ms ease;
                            }
                            &.inview {
                                li {
                                    opacity: 1;
                                    transform: translateX(0px);
                                    @for $i from 0 to 10 {
                                        &:nth-child(#{$i + 1}) {
                                            transition-delay: #{$i * 150ms};
                                        }
                                    }
                                }
                            }
                        }
                    }
                    .newstopics-headline {
                        .headline-items {
                            .headline-item {
                                .headline-item__link { }
                            }
                        }
                        &.js-target {
                            .headline-item {
                                opacity: 0;
                                transform: translateY(10px);
                                transition: 1200ms ease;
                            }
                            &.inview .headline-item {
                                opacity: 1;
                                transform: translateY(0px);
                                @for $i from 0 to 4 {
                                    &:nth-child(#{$i + 1}) {
                                        transition-delay: #{$i * 200ms};
                                    }
                                }
                            }
                        }
                    }
                }
            }
            .c-buttons {
                align-items: center;
                justify-content: center;
                margin-top: 30px;

                @media screen and (min-width: 1025px) { display: none !important; }
            }
        }
    }
}

#toppageSlider {
    position: relative;
    .swiper {
        .swiper-wrapper {
            .swiper-slide {
                width: (467 / 1440 * 100vw);
                min-width: 467px;
                @include maxwidth(768) {
                    width: (290 / 375 * 100vw);
                    min-width: 290px;
                }
                aspect-ratio: 467 / 320;
                position: relative;
                &>img {
                    width: 100%;
                    height: 100%;
                    object-fit: cover
                }
            }
        }
    }
}

// === Subpage

.subpage #content & {
    color: $basetextcolor;
    background-color: $basecolor;
    position: relative;
    z-index: 5;
}

#subpageHeading {
    padding-top: var(--header-height);
    position: relative;
    .image {
        position: absolute;
        inset: var(--header-height) 0 0 0;
        box-sizing: border-box;
        margin: auto;
        &::after {
            content: "";
            @include absolute_centering;
            background: rgba(0, 0, 0, 0.50);
            backdrop-filter: blur(2.5px);
        }
        &>img {
            width: 100%;
            height: 100%;
            object-fit: cover
        }
    }
    .container {
        @include container(1140, 40);
        @include maxwidth(768) {
            margin-left: 20px;
            margin-right: 20px;
        }
        padding: 65px 0;
        box-sizing: border-box;
        @include maxwidth(768) {
            padding: 50px 0;
        }
        .c-heading {
            color: $themetextcolor;
            .en {  }
            .ja {  }
        }
    }
}

#subpageTopicpath {
    color: $themecolor;
    @include f_all(14);
    font-weight: bold;
    line-height: 1.3;
    position: relative;
    margin: 60px 0 40px;
    @include maxwidth(768) { margin: 35px 0; }
    .container {
        @include container(1140, 40);
        @include maxwidth(768) {
            margin-left: 20px;
            margin-right: 20px;
        }
        ul {
            li {
                display: inline-flex;
                align-items: center;
                text-transform: uppercase;
                &::after {
                    content: "";
                    flex-shrink: 0;
                    display: block;
                    width: 5px;
                    height: 8px;
                    background: url(../images/arrow-right-color.svg) no-repeat center / contain;
                    margin: 0.1em 10px 0;
                }
                &:last-child::after { display: none; }
            }
        }
    }
}

#subpageContent {
    margin-top: 40px;
    padding-bottom: 100px;
    @include maxwidth(768) {
        margin-top: 30px;
        padding-bottom: 80px;
    }
    position: relative;
    .container {
        @include container(1140, 40);
        @include maxwidth(768) {
            margin-left: 20px;
            margin-right: 20px;
        }
        .default {
            @include contentdefault;
            @include eachcss;
        }
    }
}

.pager {
    text-align: center;
    margin: 40px 0;
    @include f_all(14);
    font-weight: 500;
    a,
    span {
        display: inline-block;
        margin: 0 0 0.15em 0.3em;
        min-width: 3em;
        padding: 1em;
        border-radius: 3em;
        box-sizing: border-box;
        background-color: #afafb0;
        color: #fff;
    }
    .current { background-color: $themecolor; }
}

.monthly_archive_link {
    @include container(800, 10);
    margin-top: 50px;
    @include f_all(14);
    font-weight: 500;
    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;
            }
        }
    }
}


body.single-products {

    // カテゴリー
    .block-terms {
        margin-bottom: 10px !important;
        &+ .block-main-image { margin-top: 10px !important; }

        @include f_all(12);
        font-weight: bold;
        line-height: 1.5;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 5px;
        .term {
            text-decoration: none !important;
            color: $themetextcolor;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0 8px 2px;
            box-sizing: border-box;
            background-color: $themecolor2;
            min-height: 20px;
            position: relative;
        }
    }

    // メイン画像
    .block-main-image {
        aspect-ratio: 1.618 / 1;
        background-color: #fff;
        text-align: center;
        @include maxwidth(768) {
            aspect-ratio: 1.414 / 1;
        }
        &>img {
            width: auto;
            height: 100%;
            object-fit: cover;
        }
    }

    // ギャラリー
    .block-gallery {
        --block-gallery-gap: 30px;
        @include maxwidth(1024) {
            --block-gallery-gap: 7px;
        }
        display: flex;
        flex-wrap: wrap;
        gap: var(--block-gallery-gap);
        &-item {
            flex-basis: calc((100% - (var(--block-gallery-gap) * 3)) / 4);
            @include maxwidth(768) { flex-basis: calc((100% - (var(--block-gallery-gap) * 1)) / 2); }
            &>img {
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
        }
    }
}

// 子ページ一覧リンク
#pageLinks {
    margin-top: 80px !important;
    h3, h4 { margin-bottom: 20px; }
    .c-buttons { gap: 5px; }
    .c-button {
        flex-basis: calc((100% - 5px) / 2);
        @include maxwidth(768) { flex-basis: 100%; }
        &.current {
            pointer-events: none;
            filter: grayscale(100%);
        }
        &__link {
            text-decoration: none !important;
            min-width: initial;
        }
    }
}

#printHeadlineProducts {
    .headline-items {
        margin-left: 0 !important;
    }
    .headline-item {
        list-style: none;
        margin-bottom: 0 !important;
        &__link {
            text-decoration: none !important;
            .image {
                &::before { @include f_all(16); }
            }
            .docs {
                .terms {  }
                .title { @include f_all(14); }
            }
        }
    }
}