// スタイルシート common

@charset "utf-8";

@import "mixin";

:root {
    --header-height: 100px;
    @include maxwidth(768) { --header-height: 85px; }
}

html { scroll-behavior: smooth; }

body {
    @include root;
    position: relative;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
}

img,
video {
    max-width: 100%;
    height: auto;
}

:where(figure) { margin: 0; }

.default {
    @include contentdefault;
    @include eachcss;
}

// ==== Components

.c-buttons {
    @include flex_centering;
    flex-wrap: wrap;
    gap: 10px;
}

@keyframes ripple {
	0% {box-shadow: 0 0 0 0 var(--ripple-color, $themecolor);}
	70% {box-shadow: 0 0 0 var(--ripple-size, 8px) transparent;}
	100% {box-shadow: 0 0 0 0 transparent;}
}

.c-button {
    display: inline-block;
    @include maxwidth(768) { width: 100%; }
    &__link {
        color: $themetextcolor;
        @include f_all(14);
        font-weight: 500;
        @include flex_centering;
        background-color: $themecolor;
        padding: 0.5em 38px;
        box-sizing: border-box;
        width: 100%;
        min-width: 280px;
        @include maxwidth(768) { min-width: initial; }
        min-height: 45px;
        overflow: hidden;
        position: relative;

        &::before {
            content: "";
            display: inline-block;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background-color: currentColor;
            position: absolute;
            inset: 50% auto auto 10px;
            transform: translateY(-50%);
            transition: transform 300ms ease;
        }

        &::after {
            content: "";
            display: inline-block;
            width: 6px;
            height: 6px;
            background: url(../images/arrow-color.svg) no-repeat center / contain;
            position: absolute;
            inset: 50% auto auto 16px;
            transform: translateY(-50%);
        }

        @media (any-hover: hover) {
            &:hover {
                animation: ripple 1.5s infinite;
                &::before { transform: translateY(-50%) scale(1.45); }
            }
        }

    }
}

#header {
    height: var(--header-height);
    position: relative;
    .toppage & {
        position: absolute;
        inset: 0 0 auto 0;
    }
    z-index: 20;
    .container {
        .sitename {
            position: absolute;
            .toppage & {
                inset: 10px auto auto 50%;
                transform: translateX(-50%);
                @include maxwidth(1024) {
                    inset: 20px auto auto 20px;
                    transform: translateX(0%);
                }
            }
            .subpage & { inset: 10px auto auto (10 / 1440 * 100vw); }
            a {
                @include flex_centering;
                padding: 15px 33px 10px;
                box-sizing: border-box;
                background-color: $themecolor;
                width: 180px;
                aspect-ratio: 1;
                @include maxwidth(768) {
                    width: 115px;
                    padding-left: 22px;
                    padding-right: 22px;
                }
                @media (any-hover: hover) {
                    &:hover { animation: ripple 1.5s infinite; }
                }
            }
            img {
                // width: 110px;
            }
        }
    }
}

#floatbar {
    // position: absolute;
    position: fixed;
    inset: 30px (30 / 1440 * 100vw) auto auto;
    .admin-bar & { inset: 62px (30 / 1440 * 100vw) auto auto; }
    @include maxwidth(768) {
        inset: 20px 20px auto auto;
        .admin-bar & { inset: 52px 20px auto auto; }
    }
    @include maxwidth(360) {
        inset: 20px 15px auto auto;
        .admin-bar & { inset: 52px 15px auto auto; }
    }
    z-index: 100;
    transition: inset 200ms ease;
    .header_scrollout & { inset: 30px 0px auto auto; }
    .admin-bar.header_scrollout & { inset: 62px 0px auto auto; }
    ul {
        display: flex;
        gap: 5px;
        @include maxwidth(360) {gap: 3px; }
        .header_scrollout & { flex-direction: column; }
        li {
            body.toppage & {
                opacity: 0;
                transform: translate(0, 10px);
                transition: 300ms ease;
            }
            body.toppage.header_scrollout & { transform: translate(10px, 0); }
            body.toppage.loaded & {
                opacity: 1;
                transform: translate(0, 0);
                @for $i from 0 to 3 {
                    &:nth-child(#{$i + 1}) { transition-delay: #{$i * 100 + 800}ms; }
                }
            }
            a {
                &.gnav-toggle {
                    &>span {
                    }
                }
                &:not(.gnav-toggle) {
                    display: block;
                    overflow: hidden;
                    text-indent: -9999px;
                    width: 45px;
                    height: 45px;
                    background-color: $themecolor2 !important;
                    transition:300ms ease;
                    @media (any-hover: hover) {
                        &:hover { background-color: $accentcolor !important; }
                    }
                }
                &.instagram {
                    background: url(../images/logo-instagram-white.svg) no-repeat center / 18px auto;
                }
                &.contact {
                    background: url(../images/icon-mail-white.svg) no-repeat center / 16px auto;
                }
            }
        }
    }
}

#gnavContainer {
    position: fixed;
    inset: 0;
    z-index: 200;
    pointer-events: none;

    // body.menu_open でメニューを表示
    .menu_open & {
        pointer-events: auto;

        #gnav {
            .gnav-overlay { opacity: 1; }
            .gnav-inner { transform: translateX(0); }
        }
    }
}

#gnav {
    position: relative;
    width: 100%;
    height: 100%;

    .gnav-overlay {
        position: absolute;
        inset: 0;
        background-color: rgba(#000, 0.6);
        backdrop-filter: blur(4px);
        opacity: 0;
        transition: opacity 400ms ease;
    }

    .gnav-inner {
        position: absolute;
        inset: 0 0 0 auto;
        .admin-bar & { inset: 32px 0 0 auto; }
        width: 100%;
        max-width: 600px;
        background: linear-gradient(180deg, mix($themecolor2, $themecolor, 50%) 0%, #000 100%);
        transform: translateX(100%);
        transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        // スクロールバー非表示
        -ms-overflow-style: none;
        scrollbar-width: none;
        &::-webkit-scrollbar { display: none; }
        overscroll-behavior: contain;

        @include maxwidth(768) { max-width: 100%; }
    }

    .gnav-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding: 20px 30px;

        @include maxwidth(768) { padding: 15px 20px; }
    }

    .gnav-logo {
        a {
            --ripple-color: $themecolor;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 120px;
            aspect-ratio: 1;
            padding: 10px 25px;
            box-sizing: border-box;
            background-color: $themecolor;
            @include maxwidth(768) {
                width: 90px;
                padding-left: 15px;
                padding-right: 15px;
            }
            @media (any-hover: hover) {
                &:hover { animation: ripple 1.5s infinite; }
            }
        }

        img {
        }
    }

    .gnav-close {
        --ripple-color: $accentcolor;
        background-color: $accentcolor;
        position: relative;
 
        &>span {
            height: 2px;
            &:nth-child(1) { transform: rotate(45deg); }
            &:nth-child(2) { transform: rotate(-45deg); }
        }
    }

    .gnav-body {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 20px 30px 40px;

        @include maxwidth(768) { padding: 15px 20px 30px; }
    }

    .gnav-menu {
        ul {
            display: flex;
            flex-direction: column;
            li {
                border-bottom: 1px solid rgba($themetextcolor, 0.1);
                &:last-child { border-bottom: none; }
                a {
                    color: $themetextcolor;
                    @include f_all(13);
                    font-weight: 500;
                    display: flex;
                    align-items: baseline;
                    gap: 15px;
                    padding: 20px calc(20px + 1rem) 20px 10px;
                    position: relative;
                    transition: background-color 300ms ease;

                    @include maxwidth(768) {
                        @include f_all(12);
                        padding: 16px 8px;
                    }
        
                    // data-en属性から英語テキストを表示
                    &::before {
                        content: attr(data-en);
                        @include f_all(28);
                        @include maxwidth(768) { @include f_all(22); }
                        font-weight: 300;
                        letter-spacing: 0.05em;
                        text-transform: uppercase;
                        color: $themetextcolor;
                    }
        
                    // 矢印アイコン
                    &::after {
                        content: "";
                        display: block;
                        width: 6px;
                        height: 10px;
                        background: url(../images/arrow2-white.svg) no-repeat center / contain;
                        position: absolute;
                        right: 1rem;
                        top: 50%;
                        margin-top: -4px;
                        transition: transform 300ms ease;
                    }
        
                    @media (any-hover: hover) {
                        &:hover {
                            background-color: rgba($themetextcolor, 0.05);
                            &::after { transform: translateX(4px); }
                        }
                    }
                }
            }
        }
    }

    .gnav-info {
        margin-top: 40px;
        padding-top: 30px;
        @include maxwidth(768) {
            margin-top: 30px;
            padding-top: 20px;
        }
        border-top: 1px solid rgba($themetextcolor, 0.2);

        &__contact { text-align: center; }

        &__tel {
            color: $themetextcolor;
            display: inline-flex;
            align-items: center;
            gap: 10px;

            .icon {
                display: inline-block;
                width: 24px;
                height: 24px;
                @include maxwidth(768) {
                    width: 20px;
                    height: 20px;
                }
                background: url(../images/icon-tel-white.svg) no-repeat center / contain;
            }

            .num {
                @include f_all(32);
                @include maxwidth(768) { @include f_all(26); }
                font-weight: 500;
                letter-spacing: 0.05em;
            }
        }

        &__time {
            color: rgba($themetextcolor, 0.7);
            @include f_all(13);
            @include maxwidth(768) { @include f_all(12); }
            font-weight: 500;
            margin-top: 8px;
            .label { font-size: 0.9em; }
        }

        &__sns {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-top: 25px;

            a {
                display: flex;
                align-items: center;
                justify-content: center;
                width: 45px;
                height: 45px;
                background-color: $themecolor2;
                transition: background 300ms ease;
                
                &.instagram {
                    background: url(../images/logo-instagram-white.svg) no-repeat center / 20px auto;
                    background-color: $themecolor2;
                }

                @media (any-hover: hover) {
                    &:hover { background-color: $accentcolor; }
                }
            }
        }
    }

    .sr-only {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
}

.gnav-toggle {
    cursor: pointer;
    display: block;
    width: 45px;
    height: 45px;
    background-color: $themecolor;
    position: relative;

    --ripple-size: 6px;
    @media (any-hover: hover) {
        &:hover { animation: ripple 1.5s infinite; }
    }

    &>span {
        display: inline-block;
        width: 18px;
        height: 1px;
        background-color: #FFF;
        @include absolute_centering;
        @include flex_centering;
        &:nth-child(1) {
            transform: translateY(-6px);
        }
        &:nth-child(2) {
        }
        &:nth-child(3) {
            transform: translateY(6px);
        }
    }
}

@keyframes mv_text_row_anime {
    0% { transform: scaleX(0); transform-origin: left; }
    50% { transform: scaleX(1); transform-origin: left; }
    50.1% { transform: scaleX(1); transform-origin: right; }
    100% { transform: scaleX(0); transform-origin: right; }
}

#mainVisual {
    position: relative;
    .container {
        .slideshow {
            &.swiper {  }
            .swiper-wrapper {
                .swiper-slide {
                    height: 100vh;
                    height: 100svh;
                    min-height: 600px;

                    .admin-bar & {
                        height: calc(100vh - 32px);
                        height: calc(100svh - 32px);
                    }

                    &>img {
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                    }
                    &::after {
                        content: "";
                        pointer-events: none;
                        position: absolute;
                        inset: 0;
                        background: linear-gradient(180deg, rgba(0, 0, 0, 0.40) 0%, rgba(0, 0, 0, 0.15) 50%, rgba(0, 0, 0, 0.60) 100%);
                    }
                }
            }
        }
        .overlay {
            color: $themetextcolor;
            line-height: 1.2;
            text-align: center;
            position: absolute;
            inset: auto 10px 105px 10px;
            @include maxwidth(768) { inset: auto 5px 80px 5px; }
            display: inline-flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
            @include maxwidth(768) { gap: 5px; }
            margin: auto;
            z-index: 1;
            .text-en {
                font-size: clamp(24px, (64 / 1200 * 100vw), 64px);
                @include maxwidth(375) { font-size: clamp(20px, (24 / 360 * 100vw), 24px); }
                font-weight: 300;
                line-height: 1.1;

                .row {
                    display: inline-block;
                    overflow: hidden;
                    position: relative;

                    &-inner {
                        display: inline-block;
                    }

                    &::before, &::after {
                        content: "";
                        position: absolute;
                        inset: 0;
                        background-color: $basecolor;
                    }

                    &::before {
                        transform: scaleX(1);
                        transform-origin: right;
                        body.loaded & {
                            transform: scaleX(0);
                            transition: 500ms 500ms ease-in-out;
                        }
                    }

                    &::after {
                        background-color: $themecolor;
                        transform: scaleX(0);
                        transform-origin: left;
                        body.loaded & { animation: mv_text_row_anime 1000ms ease-in-out forwards; }
                    }
                }

            }
            .text-ja {
                font-size: clamp(14px, (20 / 1024 * 100vw), 20px);
                font-weight: 500;
                overflow: hidden;

                .inner {
                    display: inline-block;
                    transform: translate(0, 1em);
                    transition: 400ms 800ms ease-in-out;
                    body.loaded & { transform: translate(0, 0); }
                }
            }
        }
        .scroll-down {
            color: $themetextcolor;
            position: absolute;
            z-index: 1;
            inset: auto 0 25px 0;
            @include flex_centering;
            flex-direction: column;
            opacity: 0;
            transform: translate(0, 10px);
            body.loaded & {
                opacity: 1;
                transform: translate(0, 0);
                transition: 300ms 1000ms ease;
            }
            &__link {
                @include f_all(14);
                @include maxwidth(768) { @include f_all(10); }
                font-weight: 500;
                line-height: 1.8;
                text-transform: uppercase;
                display: inline-flex;
                align-items: center;
                flex-direction: column;
                gap: 13px;
                @include maxwidth(768) { gap: 10px; }
                &::after {
                    content: "";
                    flex-shrink: 0;
                    display: block;
                    width: 8px;
                    height: 8px;
                    @include maxwidth(768) {
                        width: 6px;
                        height: 6px;
                    }
                    background-color: $themecolor2;
                    transform: rotate(-45deg);
                }
            }
        }
    }
}

#footer {
    background: linear-gradient(180deg, $themecolor2 0%, #000 100%);
    position: relative;
    &::after {
        content: "";
        pointer-events: none;
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba($themecolor, 0.50) 0%, rgba(0, 0, 0, 0.50) 100%);
    }
    #footerContact {
        color: $themetextcolor;
        padding: 40px 0;
        position: relative;
        @include maxwidth(1024) {
            padding-top: 50px;
            padding-bottom: 60px;
        }
        .bgimage {
            position: absolute;
            inset: 0;
            &>span {
                display: block;
                width: 100%;
                height: 100%;
                background-repeat: no-repeat;
                background-position: center center;
                background-size: cover;
            }
        }
        .container {
            @include container(1320, 40);
            z-index: 5;
            @include maxwidth(768) {
                margin-left: 20px;
                margin-right: 20px;
            }
            .head {
                .c-heading { color: currentcolor; }
            }
            .body {
                margin-top: 30px;
                @include maxwidth(768) { margin-top: 20px; }
                .contact-buttons {
                    display: flex;
                    flex-wrap: wrap;
                    gap: 4px 20px;
                    @include maxwidth(1024) {
                        flex-direction: column;
                        &>* { flex-basis: 100% !important; width: 100%; }
                    }
                }
                .contact-button {
                    flex-basis: calc(50% - 10px);
                    &__link {
                        color: $themetextcolor;
                        @include f_all(20);
                        @include maxwidth(768) { @include f_all(14); }
                        @include maxwidth(360) { @include f_all(12); }
                        font-weight: bold;
                        @include flex_centering;
                        flex-direction: column;
                        padding: 10px;
                        box-sizing: border-box;
                        min-height: 180px;
                        @include maxwidth(768) { min-height: 120px; }
                        background-color: $themecolor2;
                        @include maxwidth(768) { background-color: $themecolor; }
                        position: relative;
                        transition: 300ms ease;
                        .title {
                            display: inline-flex;
                            align-items: center;
                            padding-top: 0.3em;
                            padding-bottom: 0.3em;
                            gap: 10px;
                            &::after {
                                content: "";
                                flex-shrink: 0;
                                display: inline-block;
                                width: 6px;
                                height: 10px;
                                background: url(../images/arrow2-white.svg) no-repeat center center / contain;
                                margin-top: 0.15em;
                            }
                        }
                        &.tel {
                            background-color: $themecolor;
                            gap: 5px;
                            .num {
                                display: inline-block;
                                @include f_all(40);
                                @include maxwidth(768) { @include f_all(28); }
                                font-weight: bold;
                                padding-left: 30px;
                                background: url(../images/icon-tel-white.svg) no-repeat left top 70% / 25px auto;
                                @include maxwidth(768) {
                                    padding-left: 28px;
                                    background-size: 20px auto;
                                }
                                @include maxwidth(360) {
                                    padding-left: 24px;
                                    @include f_all(26);
                                }
                            }
                            .time {
                                @include f_all(18);
                                @include maxwidth(768) { @include f_all(13); }
                                @include maxwidth(360) { @include f_all(12); }
                                font-weight: 500;
                                .label {
                                    @include f_all(16);
                                    @include maxwidth(768) { @include f_all(12); }
                                    @include maxwidth(360) { @include f_all(11); }
                                }
                            }
                        }
                        &.form {
                            .title {
                                padding-left: 33px;
                                background: url(../images/icon-mail-white.svg) no-repeat left top 70% / 22px auto;
                                @include maxwidth(768) { padding-left: 30px; }
                                @include maxwidth(360) {
                                    padding-left: 24px;
                                    background-size: 18px auto;
                                }
                            }
                        }

                        @media (any-hover: hover) {
                            &:hover { filter: brightness(0.90); }
                        }
                    }
                }
            }
        }
    }
    #footerGoogleMap {
        position: relative;
        z-index: 5;
        height: 320px;
        @include maxwidth(768) { height: 250px; }
        background-color: #555555;
        overflow: hidden;
        @include flex_centering;
        iframe {
            width: 100%;
            height: calc(100% + 400px);
            padding-top: 100px;
        }
        .logo {
            position: absolute;
            inset: 0;
            @include flex_centering;
            a {
                @include flex_centering;
                width: 100px;
                aspect-ratio: 1;
                background-color: $themecolor;
                padding: 20px;
                box-sizing: border-box;
                position: relative;
                @include maxwidth(768) {
                    width: 90px;
                    padding: 15px;
                }

                &::after {
                    content: "";
                    display: block;
                    width: 10px;
                    height: 8px;
                    background-color: $themecolor;
                    clip-path: polygon(50% 100%, 0 0, 100% 0);
                    position: absolute;
                    inset: auto 0 -8px 0;
                    margin: auto;
                }

                --ripple-size: 8px;
                @media (any-hover: hover) {
                    &:hover { animation: ripple 1.5s infinite; }
                }
            }
        }
    }
    #footerSitemap {
        color: $themetextcolor;
        padding: 40px 0 30px;
        @include maxwidth(768) {
            padding-top: 20px;
            background-position: 36px;
        }
        position: relative;
        z-index: 5;
        background: url(../images/footer-transparent.svg) no-repeat right top 40% / 720px auto;
        @include maxwidth(1024) {
            background-position: right bottom;
        }
        @include maxwidth(768) {
            background-size: 355px auto;
        }
        .container {
            @include container(1320, 40);
            display: flex;
            flex-wrap: wrap;
            gap: 0 2rem;
            @include maxwidth(1024) {
                margin-left: 20px;
                margin-right: 20px;
                flex-direction: column;
            }
            .description {
                display: flex;
                align-items: flex-end;
                gap: 30px;
                @include maxwidth(1024) {
                    text-align: center;
                    flex-direction: column;
                    align-items: center;
                    gap: 15px;
                    &>* { flex-basis: 100% !important; }
                }
                @include maxwidth(768) { gap: 8px; }
                .sitename {
                    flex-shrink: 0;
                    a {
                        @include flex_centering;
                        padding: 15px 33px 10px;
                        box-sizing: border-box;
                        background-color: $themecolor;
                        width: 180px;
                        aspect-ratio: 1;
                        @include maxwidth(768) {
                            width: 115px;
                            padding-left: 22px;
                            padding-right: 22px;
                        }
                        @media (any-hover: hover) {
                            &:hover { animation: ripple 1.5s infinite; }
                        }
                    }
                    img {
                        // width: 0px;
                    }
                }
                .address {
                    @include f_all(13);
                    font-weight: 500;
                    line-height: 1.5;

                    .company-name {
                        @include f_all(15);
                        font-weight: bold;
                        margin-bottom: 0.40em;
                    }
                }
            }
            .menu {
                flex: 1;
                @include f_all(14);
                font-weight: bold;
                line-height: 2;
                display: flex;
                justify-content: flex-end;
                gap: 80px;
                margin-top: 20px;
                @include maxwidth(1024) {
                    text-align: center;
                    flex-direction: column;
                    align-items: center;
                    gap: 14px;
                    margin-top: 30px;
                }
                .item {
                    ul {
                        &:not(:first-child) {
                            margin-top: 2em;
                            @include maxwidth(1024) { margin-top: 14px; }
                        }
                        li {
                            a {
                                &:hover { opacity: 0.8; }
                            }
                        }
                    }
                }
            }
            .copyright {
                flex-basis: 100%;
                margin-top: 40px;
                text-align: right;
                @include maxwidth(1024) { text-align: center; }
                small {
                    @include f_all(13);
                    font-weight: bold;
                    line-height: 1.8;
                    @include maxwidth(1024) { font-weight: 500; }
                }
            }
        }
    }
}

// 大見出し
.c-heading {
    color: $themecolor2;
    font-size: clamp(80px, (128 / 1440 * 100vw), 128px);
    @include maxwidth(375) { font-size: clamp(64px, (80 / 375 * 100vw), 80px); }
    font-weight: 300;
    letter-spacing: -0.05em;
    text-align: center;
    text-transform: uppercase;
    
    &.js-split-text, .row .js-split-text {
        letter-spacing: 0em;
        span.text {
            margin: 0 -0.08em;
            padding: 0 0.05em;
            box-sizing: border-box;
            display: inline-block;
            overflow: hidden;
            &-inner { display: inline-block; }
        }
    }
    &.js-target, .row .js-target {
        span.text {
            &-inner {
                opacity: 0;
                transform: translateY(1em);
                transition: transform 800ms ease, opacity 300ms ease;
            }
        }
        &.is-active {
            span.text {
                &-inner {
                    opacity: 1;
                    transform: translateY(0);
                }
                @for $i from 1 through 20 {
                    &:nth-child(#{$i}) {
                        .text-inner { transition-delay: $i * 100ms; }
                    }
                }
            }
        }
    }
}

.term-list {
    @include f_all(14);
    font-weight: bold;
    line-height: 1.2;
    position: relative;
    .subpage & { margin-bottom: 30px; }
    ul {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        li {
            .subpage & {
                @include maxwidth(768) {
                    flex-basis: calc((100% - (5px * 1)) / 2);
                    &:first-child { flex-basis: 100% }
                    a { min-width: initial !important }
                }
            }
            a {
                @include flex_centering;
                min-width: 160px;
                min-height: 40px;
                padding: 0.5em 1em;
                box-sizing: border-box;
                position: relative;
                color: $themecolor;
                background-color: #FFF;
                .subpage & { background-color: mix(#FFF, $themecolor, 95%); }
                transition: 300ms ease;
                
                &.current {
                    color: $themetextcolor;
                    background-color: $themecolor;
                }

                @media (any-hover: hover) {
                    &:hover { filter: brightness(0.95); }
                }
            }
        }
    }
}

.works-headline {
    position: relative;
    .headline-items {
        --works-headline-col-gap: 20px;
        @include maxwidth(1024) { --works-headline-col-gap: 10px; }
        .subpage & {
            display: flex;
            flex-wrap: wrap;
            gap: 40px var(--works-headline-col-gap);
            @include maxwidth(768) { row-gap: 30px; }
        }
        .headline-item {
            .subpage & {
                flex-basis: calc((100% - (var(--works-headline-col-gap) * 3)) / 4);
                @include maxwidth(1024) { flex-basis: calc((100% - (var(--works-headline-col-gap) * 2)) / 3); }
                @include maxwidth(768) { flex-basis: calc((100% - (var(--works-headline-col-gap) * 1)) / 2); }
            }
            &__link {
                &>* { display: block; }
                @media (any-hover: hover) {
                    &:hover {
                        .img > img { transform: scale(1.15); }
                    }
                }
                .img {
                    padding-top: 100%;
                    box-sizing: border-box;
                    overflow: hidden;
                    position: relative;
                    &>img {
                        position: absolute;
                        inset: 0;
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                        transition: transform 300ms ease;
                    }
                }
                .docs {
                    padding-top: 12px;
                    @include maxwidth(768) { padding-top: 8px; }
                    &>* { display: block; }
                    .terms {
                        @include f_all(12);
                        font-weight: 500;
                        display: flex;
                        flex-wrap: wrap;
                        gap: 0.5em;
                        .term {
                            display: inline-flex;
                            align-items: center;
                            justify-content: center;
                            padding: 0.15em 10px 0.25em;
                            box-sizing: border-box;
                            color: $themetextcolor;
                            background-color: $themecolor2;
                            min-height: 20px;
                        }
                    }
                    .title {
                        @include f_all(18);
                        @include maxwidth(768) { @include f_all(14); }
                        .subpage & {
                            @include f_all(16);
                            @include maxwidth(768) { @include f_all(14); }
                        }
                        font-weight: bold;
                        line-height: 1.8;
                        margin-top: 2px;
                        text-transform: capitalize;
                    }
                }

                // 空の場合
                &.empty {
                    pointer-events: none;
                    opacity: 0.5;
                }
            }
        }
    }
}

.newstopics-headline {
    position: relative;
    .headline-items {
        .headline-item {
            border-bottom: solid 1px #9CA3AF;
            @include maxwidth(768) {
                &:last-child { border-bottom: none; }
            }
            &__link {
                display: flex;
                align-items: center;
                flex-wrap: wrap;
                gap: 0.45em 20px;
                padding: 30px 45px 30px 10px;
                @include maxwidth(768) { padding: 15px 30px 21px 10px; }
                box-sizing: border-box;
                position: relative;
                transition: background-color 300ms ease;
                @media (any-hover: hover) {
                    &:hover {
                        background-color: rgba($themecolor, 0.05);
                        &::after { transform: translateX(4px); }
                    }
                }
                .date {
                    flex-shrink: 0;
                    @include f_all(16);
                    font-weight: 500;
                    @include maxwidth(768) { @include f_all(14); }
                }
                .terms {
                    @include f_all(12);
                    font-weight: 500;
                    display: flex;
                    flex-wrap: wrap;
                    gap: 0.5em;
                    .term {
                        display: inline-flex;
                        align-items: center;
                        justify-content: center;
                        padding: 0.15em 10px 0.3em;
                        box-sizing: border-box;
                        color: $themetextcolor;
                        background-color: $themecolor2;
                        min-height: 20px;
                    }
                }
                .title {
                    @include f_all(15);
                    font-weight: 500;
                    line-height: 1.3;
                    @include maxwidth(768) {
                        flex-basis: 100%;
                        @include f_all(14);
                    }
                }
                &::after {
                    content: "";
                    display: inline-block;
                    width: 6px;
                    height: 10px;
                    background: url(../images/arrow2-color.svg) no-repeat center center / contain;
                    position: absolute;
                    inset: 1px 30px 0 auto;
                    @include maxwidth(768) { inset: auto 10px 24px auto; }
                    margin: auto;
                    transition: transform 300ms ease;
                }
            }
        }
    }
}

br {
    &.sp {
        @media screen and (min-width: 769px) { display: none; }
    }
    &.pc {
        @include maxwidth(768) { display: none; }
    }
}

// ==== Toppage

#toppageAbout {
    padding-bottom: 120px;
    @include maxwidth(768) { padding-bottom: 100px; }
    position: relative;
    z-index: 1;
    background-color: $basecolor;
    .l-main {
        padding: 80px 0;
        @include maxwidth(768) { padding-bottom: 20px; }
        position: relative;
        .container {
            @include container(1320, 40);
            @include maxwidth(768) {
                margin-left: 20px;
                margin-right: 20px;
            }
            .cols {
                display: flex;
                align-items: center;
                justify-content: space-between;
                gap: 30px;
                @include maxwidth(1024) {
                    flex-direction: column;
                    align-items: initial;
                    justify-content: initial;
                    &>* { flex: none !important; }
                }
                .col {
                    &:nth-child(1) {
                        flex-basis: 500px;
                        margin-left: 20px;
                        @include maxwidth(1024) { margin-left: 0; }
                    }
                    &:nth-child(2) { flex-basis: 720px; }

                    .col-heading {
                        .c-heading {
                            @media screen and (min-width: 1025px) {
                                text-align: left;
                            }
                        }
                    }
                    .col-body {
                        margin-top: 50px;
                        @include maxwidth(1024) { margin-top: 28px; }
                        .leadtext {
                            font-size: clamp(24px, (32 / 1440 * 100vw), 32px);
                            font-weight: 500;
                            line-height: 1.3;
                            @include maxwidth(1024) { text-align: center; }
                        }
                        .text {
                            @include f_all(15);
                            font-weight: 500;
                            line-height: 1.8;
                            margin-top: 25px;
                            @include maxwidth(1024) { margin-top: 15px; text-align: center; }
                            @include maxwidth(768) { @include f_all(14); text-align: left; }

                            &>p:not(:first-child) { margin-top: 1.8em; }
                        }
                        .c-buttons {
                            @media screen and (min-width: 1025px) {
                                justify-content: flex-start;
                            }
                            margin-top: 23px;
                        }
                        .c-button {
                            &__link {  }
                        }
                    }
                    .image {
                        width: 100%;
                        max-height: 100vh;
                        aspect-ratio: 1;
                        position: relative;
                        &>img {
                            width: 100%;
                            height: 100%;
                            object-fit: cover;
                        }
                    }
                }
            }
        }
    }
    .l-bottom {
        .slider {
            .swiper-wrapper {
                .swiper-slide {
                    width: 420px;
                    aspect-ratio: 420 / 400;
                    position: relative;
                    @include maxwidth(768) {
                        width: (221 / 375 * 100vw);
                        min-width: 221px;
                    }
                    &>img {
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                    }

                }
                &.js-target {
                    .swiper-slide {
                        clip-path: inset(100% 0 0 0);
                        transition: clip-path 1000ms ease;
                    }
                    &.is-active {
                        .swiper-slide { clip-path: inset(0 0 0 0); }
                    }
                }
            }
        }
    }
}

#toppageBusiness {
    padding: 80px 0 70px;
    @include maxwidth(768) { padding: 53px 0 60px; }
    position: relative;
    z-index: 1;
    .c-heading {
        position: absolute;
        inset: -0.65em 0 auto 0;
        z-index: 1;
    }
    .bgimage {
        position: absolute;
        inset: 0;
        &>span {
            display: block;
            width: 100%;
            height: 100%;
            background-repeat: no-repeat;
            background-position: center center;
            background-size: cover;
            &::after {
                content: "";
                pointer-events: none;
                position: absolute;
                inset: 0;
                background-color: rgba(#000, 0.40);
            }
        }
    }
    .container {
        @include container(1320, 40);
        @include maxwidth(768) {
            margin-left: 20px;
            margin-right: 20px;
        }
        .business-items {
            display: flex;
            flex-wrap: wrap;
            gap: 10px 40px;
            @include maxwidth(1024) { 
                flex-direction: column;
                &>* { flex: none !important; }
            }

            &.js-target {
                .business-item {
                    opacity: 0;
                    transform: translate(0, 30px);
                    transition: 800ms ease-in-out;
                }
                &.is-active {
                    .business-item {
                        opacity: 1;
                        transform: translate(0, 0);
                        @for $i from 0 to 2 {
                            &:nth-child(#{$i + 1}) { transition-delay: $i * 200ms; }
                        }
                    }
                }
            }
        }
        .business-item {
            flex-basis: calc(50% - 20px);
            padding: 60px 30px 40px;
            @include maxwidth(768) { padding-top: 40px; }
            @include maxwidth(360) { padding-left: 20px; padding-right: 20px; }
            box-sizing: border-box;
            color: $themetextcolor;
            background-color: $themecolor;
            position: relative;
            &>* {
                max-width: 520px;
                width: 100%;
                margin-left: auto;
                margin-right: auto;
            }
            .heading {
                color: $themecolor2;
                @include f_all(24);
                font-weight: bold;
                line-height: 1.1;
                text-align: center;
                @include maxwidth(768) { font-weight: 500; }
            }
            .text {
                @include f_all(15);
                font-weight: 500;
                line-height: 1.8;
                margin-top: 24px;
                @include maxwidth(768) {
                    @include f_all(14);
                    margin-top: 18px;
                }
            }
            .c-buttons {
                margin-top: 23px;
                @include maxwidth(768) { margin-top: 18px; }
            }
            .c-button {
                &__link {
                    --ripple-color: $themecolor2;
                    background-color: $themecolor2;
                    @include maxwidth(768) {
                        --ripple-color: #000;
                        background-color: #000;
                    }
                    &::after {
                         background-image: url(../images/arrow-color2.svg);
                         @include maxwidth(768) { background-image: url(../images/arrow-color.svg); }
                    }
                }
            }
        }
    }
}

#toppageWorks {
    padding: 100px 0;
    @include maxwidth(768) { padding: 80px 0; }
    background-color: $themecolor3;
    position: relative;
    z-index: 1;
    .container {
        @mixin toppageWorksContainer {
            max-width: 1400px;
            width: 100%;
            margin-left: auto;
            margin-right: auto;
            padding-left: 40px;
            padding-right: 40px;
            box-sizing: border-box;
            position: relative;
            @include maxwidth(768) {
                max-width: initial;
                width: auto;
                padding-left: 20px;
                padding-right: 20px;
            }
        }
        .head {
            @include toppageWorksContainer();
            .c-heading { text-align: left; }
        }
        .body {
            padding-bottom: 10px;
            box-sizing: border-box;
            position: relative;
            overflow: hidden;
            margin-top: 40px;
            @include maxwidth(768) { margin-top: 25px; }
            .works-terms {
                @include toppageWorksContainer();
                ul {
                    @include maxwidth(1024) {
                        flex-wrap: nowrap;
                        gap: 0;
                    }
                    li { width: auto; }
                }
            }
            .works-headline {
                max-width: 1400px;
                width: 100%;
                margin-left: auto;
                margin-right: auto;
                padding-left: 40px;
                padding-right: 40px;
                box-sizing: border-box;
                overflow: initial !important;
                position: static !important;
                margin-top: 20px;
                @include maxwidth(768) {
                    max-width: initial;
                    padding-left: 20px;
                    padding-right: 20px;
                    margin-top: 10px;
                }

                &.js-target {
                    .headline-item {
                        opacity: 0;
                        transform: translate(0, 30px);
                        transition: 800ms ease-in-out;
                    }
                    &.is-active {
                        .headline-item {
                            opacity: 1;
                            transform: translate(0, 0);

                            @for $i from 0 to 12 {
                                &:nth-child(#{$i + 1}) { transition-delay: $i * 200ms; }
                            }
                        }
                    }
                }

                .headline-items {
                    .headline-item {
                        width: 416px;
                        @include maxwidth(768) { width: 300px; }
                        @include maxwidth(360) { width: 260px; }
                        &__link {  }
                    }
                }
                .headline-button- {
                    &next, &prev {
                        cursor: pointer;
                        display: inline-block;
                        width: 65px;
                        height: 65px;
                        @include maxwidth(768) {
                            width: 45px;
                            height: 45px;
                        }
                        border-radius: 50%;
                        background: url(../images/arrow2-white.svg) no-repeat center center / 6px auto;
                        background-color: $themecolor;
                        position: absolute;
                        top: 35%;
                        z-index: 5;
                        transition: opacity 200ms ease, transform 300ms ease;
                        &.swiper-button-disabled { opacity: 0; }

                        @media (any-hover: hover) {
                            &:hover { transform: scale(1.15); }
                        }
                    }
                    &next {
                        right: (13 / 1440 * 100vw);
                        @include maxwidth(768) { right: 20px; }
                    }
                    &prev {
                        left: (13 / 1440 * 100vw);
                        @include maxwidth(768) { left: 20px; }
                        transform: scale(-1, 1);
                        @media (any-hover: hover) {
                            &:hover { transform: scale(-1, 1) scale(1.15); }
                        }
                    }
                }
                .swiper-scrollbar {
                    position: static;
                    max-width: 550px;
                    width: 100%;
                    margin-top: 35px;
                    margin-left: auto;
                    margin-right: auto;
                    height: 5px;
                    background-color: #9CA3AF;
                    border-radius: 0;
                    @include maxwidth(1024) { height: 8px; }
                    @include maxwidth(768) {
                        max-width: 100%;
                        width: auto;
                        margin-top: 40px;
                    }
                    &-drag {
                        cursor: grab;
                        background-color: $themecolor;
                        border-radius: 0;
                    }
                }
            }
            .c-buttons {
                margin: 30px 40px 0;
                @include maxwidth(768) { margin: 25px 20px 0; }
            }
            .c-button {
                &__link {  }
            }
        }
    }
}

#toppageRecruit {
    margin-top: -100vh;
    position: relative;
    .sticky-wrapper {
        position: relative;
        .spacer { height: 100vh; }
        .sticky-content {
            position: sticky;
            inset: 0 auto auto 0;
            height: 100vh;
        }
        .sticky-container{
            margin-top: -100vh;
            padding: 80px 0;
            position: relative;
            overflow: hidden;
            @include maxwidth(768) {
                padding-top: 45px;
                padding-bottom: 60px;
            }
            &::before, &::after {
                content: "";
                display: block;
                position: absolute;
                background-color: $themecolor;
                z-index: 1;
            }
            &::before {
                width: (880 / 1200 * 100vw);
                min-width: 355px;
                height: (230 / 1200 * 100vw);
                min-height: 90px;
                inset: 0 auto auto 0;
                clip-path: polygon(0 0, 0% 100%, 100% 0);
            }
            &::after {
                width: (745 / 1200 * 100vw);
                min-width: 430px;
                height: (150 / 1200 * 100vw);
                min-height: 95px;
                inset: auto 0 0 auto;
                clip-path: polygon(100% 100%, 0% 100%, 100% 0);
                overflow: hidden;
            }
        }
    }
    .bgimage {
        position: absolute;
        inset: 0;
        overflow: hidden;
        &>span {
            display: block;
            width: 100%;
            height: 100%;
            background-repeat: no-repeat;
            background-position: center center;
            background-size: cover;
            &::after {
                content: "";
                position: absolute;
                inset: 0;
                background: rgba(0, 0, 0, 0.65);
                backdrop-filter: blur(2.5px);
            }
        }
    }
    .container {
        @include container(1320, 40);
        z-index: 5;
        display: flex;
        gap: 30px;
        @include maxwidth(1200) {
            flex-direction: column;
            &>* { flex: none !important; }
        }
        @include maxwidth(768) {
            margin-left: 20px;
            margin-right: 20px;
        }
        .image {
            flex-basis: 300px;
            height: 510px;
            @include maxwidth(1200) {
                height: (200 / 375 * 100vw);
                max-height: 510px;
                min-height: 200px;
            }
            // aspect-ratio: 300 / 510;
            position: relative;
            &>img {
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
            &.image1 {
                @include maxwidth(1200) { margin-right: -40px; }
                @include maxwidth(768) { margin-right: -20px; }
            }
            &.image2 {
                @media screen and (min-width: 1201px) {
                    margin-top: auto;
                    margin-bottom: 0;
                }
                @include maxwidth(1200) { margin-left: -40px; }
                @include maxwidth(768) { margin-left: -20px; }
            }
        }
        .docs {
            flex: 1;
            padding: 170px 0 125px;
            @include maxwidth(1200) { padding: 20px 0 0; }
            color: $themetextcolor;
            .docs-head {
                .c-heading {  }
            }
            .docs-body {
                margin-top: 40px;
                @include maxwidth(1024) { margin-top: 26px; }
                .leadtext {
                    font-size: clamp(24px, (32 / 1200 * 100vw), 32px);
                    font-weight: 500;
                    line-height: 1.3;
                    text-align: center;
                }
                .text {
                    @include f_all(15);
                    font-weight: 500;
                    line-height: 1.8;
                    text-align: center;
                    margin-top: 25px;
                    @include maxwidth(1024) { margin-top: 20px; }
                    @include maxwidth(768) {
                        @include f_all(14);
                        text-align: left;
                        margin-left: -1px;
                        margin-right: -1px;
                    }

                    &>p:not(:first-child) { margin-top: 1.8em; }
                }
                .c-buttons {
                    margin-top: 33px;
                    @include maxwidth(768) { margin-top: 23px; }
                }
                .c-button {
                    &__link {  }
                }
            }
        }
    }
}

#toppageNewstopics {
    margin-top: -100vh;
    padding: 100px 0 80px;
    @include maxwidth(768) { padding: 60px 0; }
    background-color: $themecolor3;
    position: relative;
    .container {
        @include container(1320, 40);
        @include maxwidth(768) {
            margin-left: 20px;
            margin-right: 20px;
        }
        .head {
            .c-heading {
                text-align: left;

                @include maxwidth(768) {
                    .small { font-size: 0.75em; }
                }
                @include maxwidth(580) {
                    &:has(> .row) {
                        display: flex;
                        flex-direction: column;
                    }
                    .row {
                        &:nth-child(odd) { text-align: left; }
                        &:nth-child(even) { text-align: right; }
                    }
                }
            }
        }
        .body {
            margin-top: 40px;
            @include maxwidth(768) { margin-top: 30px; }
            .cols {
                display: flex;
                justify-content: space-between;
                gap: 10px 30px;
                @include maxwidth(1024) {
                    flex-direction: column;
                    justify-content: initial;
                    &>* { flex: none !important; }
                }
                .col {
                    &:nth-child(1) {
                        flex-basis: 250px;
                        margin-top: 30px;
                        @include maxwidth(1024) { margin-top: 0; }
                    }
                    &:nth-child(2) { flex-basis: 970px; }
                    .newstopics-terms {
                        box-sizing: border-box;
                        @include maxwidth(1024) {
                            margin-left: -40px;
                            margin-right: -40px;
                            padding-left: 40px;
                            padding-right: 40px;
                        }
                        @include maxwidth(768) {
                            margin-left: -20px;
                            margin-right: -20px;
                            padding-left: 20px;
                            padding-right: 20px;
                        }
                        ul {
                            @media screen and (min-width: 1025px) { flex-direction: column; }
                            @include maxwidth(1024) {
                                gap: 0;
                                flex-wrap: nowrap;
                            }
                            li {
                                width: auto;
                                a {
                                    @media screen and (min-width: 1025px) {
                                        font-weight: 500;
                                        min-width: initial;
                                        min-height: 45px;
                                    }
                                }
                            }
                        }
                    }
                    .newstopics-headline {
                        &.js-target {
                            opacity: 0;
                            transform: translate(30px, 0);
                            @include maxwidth(768) { transform: translate(15px, 0); }
                            transition: 800ms ease-in-out;
                            &.is-active {
                                opacity: 1;
                                transform: translate(0, 0);
                                @for $i from 0 to 4 {
                                    &:nth-child(#{$i + 1}) { transition-delay: $i * 200ms; }
                                }
                            }
                        }
                        .headline-items {
                            .headline-item {
                                &__link {  }
                            }
                        }
                    }
                    .c-buttons {
                        justify-content: flex-end;
                        margin-top: 20px;
                        @include maxwidth(768) { margin-top: 15px; }
                    }
                    .c-button {
                        &__link {
                        }
                    }
                }
            }
        }
    }
}

// === Subpage

#subpageHeading {
    padding: 100px 0 57px;
    @include maxwidth(768) { padding: 80px 0 45px; }
    position: relative;
    z-index: 0;
    .heading {
        color: $themetextcolor;
        text-align: center;
        line-height: 1.2;
        .en {
            font-size: 64px;
            font-size: clamp(40px, (64 / 1200 * 100vw), 64px);
            font-weight: 300;
            text-transform: uppercase;
        }
        .ja {
            @include f_all(14);
            font-weight: 500;
        }
    }
    .visual {
        position: absolute;
        inset: 0;
        z-index: -1;
        background-color: $themecolor;
        &>img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        &::after {
            content: "";
            pointer-events: none;
            position: absolute;
            inset: 0;
            background-color: rgba(#000, 0.40);
        }
    }
}

#subpageTopicpath {
    @include f_all(14);
    @include maxwidth(768) { @include f_all(13); }
    font-weight: bold;
    line-height: 1.2;
    margin: 40px 0;
    @include maxwidth(768) { margin: 30px 0; }
    position: relative;
    .container {
        @include container(1200, 40);
        @include maxwidth(768) {
            margin-left: 20px;
            margin-right: 20px;
        }
        ul {
            li {
                display: inline-flex;
                align-items: center;
                &::after {
                    content: "";
                    flex-shrink: 0;
                    display: inline-block;
                    width: 1.15em;
                    height: 1.15em;
                    border-radius: 50%;
                    background: url(../images/arrow-white.svg) no-repeat left 57% top 55% / 5px;
                    background-color: $themecolor;
                    margin: 0 8px;
                }
                &:last-child::after { display: none; }

                a {
                }
            }
        }
    }
}

#subpageContent {
    margin: 50px 0 80px;
    @include maxwidth(768) { margin: 40px 0 60px; }
    position: relative;
    .container {
        @include container(1200, 40);
        @include maxwidth(768) { margin-left: 20px; margin-right: 20px; }

        // Single Page
        #singleTitle {
            .terms {
                @include f_all(12);
                font-weight: 500;
                line-height: 1;
                @include flex_centering;
                flex-wrap: wrap;
                gap: 0.2em 0.4em;
                .term {
                    text-decoration: none !important;
                    color: $themetextcolor;
                    display: inline-flex;
                    align-items: center;
                    justify-content: center;
                    padding: 0.15em 10px 0.25em;
                    box-sizing: border-box;
                    background-color: $themecolor2;
                    min-height: 20px;

                    &::before { content: "#"; margin-right: 0.25em; }

                    @media (any-hover: hover) {
                        &:hover { filter: opacity(0.9); }
                    }
                }
            }
            h3 { margin-top: 10px; }
        }
    }
}

.pager {
    text-align: center;
    margin: 40px 0;
    @include f_all(13);
    font-weight: 500;
    a,
    span {
        display: inline-block;
        margin: 0 0 0.25em 0.45em;
        min-width: 3em;
        padding: 1em;
        box-sizing: border-box;
        background-color: mix($basetextcolor, $themetextcolor, 0.1);
    }
    .current {
        color: #fff;
        background-color: $themecolor;
    }
}

.monthly_archive_link {
    @include container(800, 10);
    margin-top: 50px;
    @include f_all(14);
    a.show_archive_links {
        display: block;
        width: 200px;
        height: 30px;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: mix($basetextcolor, $basecolor, 0.1);
        margin: auto;
        border-radius: 30px;
        position: relative;
        &:after {
            content: ">";
            display: inline-block;
            transform: rotateZ(90deg) scaleX(0.5);
            position: absolute;
            right: 30px;
            top: 0;
            bottom: 0;
            margin: auto;
        }
    }
    ul {
        margin-top: 20px;
        display: none;
        &.show {
            display: flex;
        }
        justify-content: center;
        flex-wrap: wrap;
        li {
            margin: 0 5px 10px;
            flex: 0 0 113px;
            text-align: center;
            a {
                display: block;
                background-color: mix($basetextcolor, $basecolor, 0.05);
                padding: 7px 0;
                border-radius: 15px;
            }
        }
    }
}
