// スタイルシート common

@charset "utf-8";

@import "mixin";

:root {
    --line-color: #06c755;
    --yt-color: #ff0033;
    --base-easing: cubic-bezier(0.85, 0, 0.15, 1);
}

html { scrollbar-gutter: stable; }

body {
    @include root;
    position: relative;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
}

img,
video {
    max-width: 100%;
    height: auto;
}

:where(figure) {
    margin: 0px;
}

.default {
    @include contentdefault;
    @include eachcss;
}

// === Common parts ===

br.sp {
    @media (min-width: 769px) {
        display: none !important;
    }
}

br.pc {
    @media (max-width: 768px) {
        display: none !important;
    }
}

#header {
    position: absolute;
    inset: 0 0 auto 0;
    z-index: 20;
    isolation: isolate;
    body.toppage & {
        color: $themetextcolor;
    }
    body.toppage &::before {
        content: '';
        display: block;
        height: 180px;
        @include maxwidth(768) {
            height: 120px;
        }
        position: absolute;
        z-index: -1;
        inset: 0 0 auto 0;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.00) 100%);
    }
    .container {
        padding: 30px (40 / 1440 * 100vw);
        @include maxwidth(768) {
            padding: 25px 15px;
        }
        box-sizing: border-box;
        position: relative;
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        .l-left {
            padding-left: 10px;
            @include maxwidth(768) {
                padding-left: 0px;
            }
            box-sizing: border-box;
            .sitename {
                display: inline-flex;
                flex-direction: column;
                align-items: flex-start;
                gap: 16px;
                @include maxwidth(768) {
                    gap: 10px;
                }
                .outline {
                    @include f_all(13);
                    font-weight: 500;
                    line-height: 1.5;
                    @include maxwidth(768) {
                        @include f_all(11);
                    }
                    body.subpage & {
                        color: $themecolor;
                    }
                }
                .logo {
                    img {
                        width: 175px;
                        @include maxwidth(768) {
                            width: 138px;
                        }

                        body.toppage & {
                            filter: brightness(0) invert(100%);
                            -webkit-filter: brightness(0) invert(100%);
                        }
                    }
                }
            }
        }
        .l-right {
            @include maxwidth(1024) {
                display: none;
            }
            .buttons {
                display: flex;
                justify-content: flex-end;
                gap: 5px;
                .button {
                    &__link {
                        @include flex_centering;
                        width: 60px;
                        height: 60px;
                        color: $themetextcolor;
                        background-color: $basetextcolor;
                        box-sizing: border-box;
                        img {
                        }
                        @media (any-hover: hover) {
                            transition: background 200ms ease;
                            img { transition: filter 200ms; }
                            &:hover {
                                color: $basetextcolor;
                                background-color: $basecolor;
                                border: 1px solid;
                                img {
                                    filter: brightness(0%);
                                }
                            }
                        }
                    }
                    &.tel {
                        .button__link {
                            width: initial;
                            flex-direction: column;
                            gap: 3px;
                            padding: 5px 25px 0px;
                            .num {
                                @include f_all(18);
                                line-height: 1;
                                padding-left: 1rem;
                                background: url(../images/icon-tel-white.svg) left top 55% / 13px auto no-repeat;
                            }
                            .time {
                                @include f_all(12);
                                line-height: 1.4;
                            }
                            @media (any-hover: hover) {
                                &:hover {
                                    .num { background-image: url(../images/icon-tel-black.svg); }
                                }
                            }
                        }
                    }
                    &.form {
                        .button__link {
                        }
                    }
                    &.line {
                        .button__link {
                            @media (any-hover: hover) {
                                &:hover {
                                    background-color: var(--line-color);
                                    border: none;
                                    img { filter: none; }
                                }
                            }
                        }
                    }
                }
            }
            .menu {
                margin-top: 30px;
                body.subpage & {
                    color: $themecolor;
                }
                nav {
                    > ul {
                        display: flex;
                        flex-wrap: wrap;
                        align-items: center;
                        gap: 1rem 20px;
                        > li {
                            position: relative;
                            > a {
                                @include f_all(15);
                                font-weight: 500;
                                line-height: 1.4;
                            }
                            > ul {
                                display: none;
                            }
                        }
                    }
                    a {
                        display: inline-flex;
                        align-items: center;
                        gap: 2px;
                    }
                    a.parent {
                        &::after {
                            content: '＋';
                            flex-shrink: 0;
                            margin-bottom: 0.15em;
                            transition: transform 400ms var(--base-easing);
                        }
                        &.active {
                            &::after {
                                transform: translate(0.1em, 0.25em) rotateZ(135deg);
                            }
                        }
                    }
                    ul.children {
                        --panel-duration: 500ms;
                        display: block;
                        position: absolute;
                        z-index: 1;
                        inset: calc(100% + 14px) 0 auto auto;
                        min-width: 100%;
                        width: max-content;
                        padding: 8px 6px;
                        max-width: 360px;
                        box-sizing: border-box;
                        color: $themetextcolor;
                        background-color: $basetextcolor;
                        border-top: 2px solid $themecolor2;
                        visibility: hidden;
                        clip-path: inset(0 0 100% 0);
                        transition: clip-path var(--panel-duration) var(--base-easing),
                                    visibility 0s linear var(--panel-duration);

                        > li {
                            opacity: 0;
                            transform: translate(0, -0.4em);
                            transition: opacity 400ms var(--base-easing),
                                        transform 400ms var(--base-easing);
                            > a {
                                @include f_all(14);
                                font-weight: 500;
                                line-height: 1.5;
                                display: flex;
                                align-items: center;
                                padding: 0.65em 20px;
                                box-sizing: border-box;
                                white-space: nowrap;

                                @media (any-hover: hover) {
                                    transition: background 200ms ease;
                                    &:hover {
                                        background-color: $themecolor;
                                    }
                                }
                            }
                        }

                        &.open {
                            visibility: visible;
                            clip-path: inset(0 0 0 0);
                            transition: clip-path var(--panel-duration) var(--base-easing),
                                        visibility 0s;
                            > li {
                                opacity: 1;
                                transform: translate(0, 0);
                                @for $i from 1 through 8 {
                                    &:nth-child(#{$i}) { transition-delay: (75 + $i * 45) * 1ms; }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}

.gnav-toggle-wrapper {
    @media (min-width: 1025px) {
        display: none;
    }
    position: absolute;
    z-index: 101;
    inset: 30px (40 / 1440 * 100vw) auto auto;
    @include maxwidth(768) {
        inset: 25px 15px auto auto;
    }

}

@keyframes kenburns {
    form { transform: sclae(1); }
    to { transform: scale(1.15); }
}

@keyframes scroll_anime {
    0% {
        top: 0%;
        opacity: 0;
    }
    25% {
        top: 0%;
        opacity: 1;
    }
    75% {
        top: calc(100% - var(--scroll-w));
        opacity: 1;
    }
    100% {
        top: calc(100% - var(--scroll-w));
        opacity: 0;
    }
}

@mixin mvHeight() {
    height: 100vh;
    height: 100svh;
    min-height: 480px;
    body.admin-bar & {
        height: calc(100vh - 32px);
        height: calc(100svh - 32px);
    }
}
#mainVisual {
    --mv-buttons-h: 60px;
    @media (max-width: 768px) and (max-height: 400px) {
        --mv-buttons-h: 50px;
    }
    @include mvHeight();
    position: relative;
    .container {
        .overlay {
            color: $themetextcolor;
            position: absolute;
            z-index: 5;
            inset: auto 10px 100px 10px;
            margin: auto;
            @include maxwidth(768) {
                bottom: calc(78px + var(--mv-buttons-h));
            }
            .text {
                font-size: clamp(26px, (80 / 1440 * 100vw), 80px);
                @include maxwidth(360) {
                    font-size: clamp(23px, (23 / 320 * 100vw), 26px);
                }
                line-height: 1.3;
                text-align: center;
            }
        }
        .scroll {
            color: $themetextcolor;
            position: absolute;
            z-index: 5;
            inset: auto auto 0px 50%;
            transform: translate(-50%, 0);
            margin: auto;
            @include maxwidth(768) {
                bottom: var(--mv-buttons-h);
            }
            &__link {
                display: inline-flex;
                flex-direction: column;
                align-items: center;
                gap: 15px;
                @include maxwidth(768) {
                    gap: 12px;
                }
                .t {
                    @include f_all(13);
                    font-weight: 500;
                    line-height: 1;
                    white-space: nowrap;
                    @include maxwidth(768) {
                        @include f_all(10);
                    }
                }
                .b {
                    --scroll-w: 8px;
                    width: var(--scroll-w);
                    height: 35px;
                    position: relative;
                    @include maxwidth(768) {
                        --scroll-w: 6px;
                        height: 33px;
                    }
                    &::before {
                        content: '';
                        display: inline-block;
                        width: 1px;
                        background-color: currentColor;
                        position: absolute;
                        inset: 0 0 0 0;
                        margin: auto;
                    }
                    &::after {
                        content: '';
                        display: inline-block;
                        width: var(--scroll-w);
                        height: var(--scroll-w);
                        background-color: $themecolor2;
                        position: absolute;
                        inset: 0% 0 auto 0;
                        animation: scroll_anime 2s linear infinite forwards;
                    }
                }
            }
        }
        .buttons {
            @media (min-width: 769px) {
                display: none !important;
            }
            position: absolute;
            inset: auto 0 0 0;
            z-index: 5;
            display: flex;
            align-items: flex-end;
            gap: 0px;
            .button {
                flex: 0 0 var(--mv-buttons-h);
                &__link {
                    @include flex_centering;
                    width: 100%;
                    height: var(--mv-buttons-h);
                    color: $themetextcolor;
                    background-color: $themecolor;
                    box-sizing: border-box;
                }

                &.tel {
                    flex: 1;
                    .button__link {
                        flex-direction: column;
                        gap: 3px;
                        padding-top: 5px;
                        .num {
                            @include f_all(18);
                            padding-left: 16px;
                            box-sizing: border-box;
                            background:url(../images/icon-tel-white.svg) left top 55% / 13px auto no-repeat;
                        }
                        .time {
                            @include f_all(12);
                            line-height: 1.4;
                        }
                    }
                }
                &.form {
                    .button__link {
                        background-color: $themecolor2;
                    }
                }
                &.line {
                    .button__link {
                        background-color: var(--line-color);
                    }
                }
            }
        }
    }
}

#contentFooter {
    position: relative;
    z-index: 1;
    #contentFooterContact {
        color: $themetextcolor;
        padding: 80px 0;
        box-sizing: border-box;
        position: relative;
        isolation: isolate;
        @include maxwidth(768) {
            padding: 50px 0;
        }
        .container {
            @include container(1090, 30);
            @include maxwidth(768) {
                margin-left: 15px;
                margin-right: 15px;
            }
            .heading {
            }
            .body {
                margin-top: 40px;
                @include maxwidth(768) {
                    margin-top: 30px;
                }
                .address-items {
                    display: flex;
                    justify-content: center;
                    gap: (140 / 1090 * 100%);
                    @include maxwidth(1024) {
                        flex-direction: column;
                        justify-content: initial;
                        gap: 40px;
                        > .address-item {
                            flex: none !important;
                        }
                    }
                    .address-item {
                        flex-basis: 350px;
                        &__title {
                            @include f_all(15);
                            font-weight: 500;
                            line-height: 2;
                            text-align: center;
                            display: flex;
                            flex-direction: column;
                            align-items: center;
                            gap: 8px;
                            &::after {
                                content: '';
                                display: block;
                                width: 10px;
                                height: 10px;
                                background-color: $themecolor2;
                            }
                        }
                        &__text {
                            @include f_all(14);
                            line-height: 1.4;
                            text-align: center;
                            margin-top: 8px;
                        }
                        &__buttons {
                            display: flex;
                            flex-direction: column;
                            gap: 10px;
                            margin-top: 20px;
                            @include maxwidth(1024) {
                                gap: 5px;
                                margin-top: 15px;
                            }
                            .button {
                                width: 100%;
                                &__link {
                                    @include f_all(14);
                                    line-height: 1.4;
                                    @include flex_centering;
                                    background-color: $basetextcolor;
                                    color: $themetextcolor;
                                    min-height: 80px;
                                    padding: 10px;
                                    box-sizing: border-box;
                                }
                                &.tel {
                                    .button__link {
                                        flex-direction: column;
                                        gap: 6px;
                                        .num {
                                            @include f_all(20);
                                            line-height: 1;
                                            padding-left: 18px;
                                            box-sizing: border-box;
                                            background: url(../images/icon-tel-white.svg) left top 75% / 14px auto no-repeat;
                                        }
                                        .time {
                                            @include f_all(10);
                                            line-height: 1.4;
                                            text-align: center;
                                        }
                                    }
                                }
                                &.google-map {
                                    .button__link {
                                        gap: 6px;
                                        &::before {
                                            content: '';
                                            flex-shrink: 0;
                                            display: inline-block;
                                            width: 14px;
                                            height: 16px;
                                            background: url(../images/icon-pin-white.svg) center / contain no-repeat;
                                            margin-top: 0.05em;
                                        }

                                        .label {
                                            --shift: 150%;
                                            display: inline-block;
                                            position: relative;
                                            overflow: hidden;
                                            .label-inner {
                                                display: inline-block;
                                                transition: transform 400ms var(--base-easing);
                                                &.clone {
                                                    position: absolute;
                                                    inset: 0 auto auto 0;
                                                    transform: translate(0, var(--shift));
                                                }
                                            }
                                        }

                                        @media (any-hover: hover) {
                                            &:hover {
                                                .label {
                                                    .label-inner {
                                                        transform: translate(0, calc(var(--shift) * -1));
                                                        &.clone {
                                                            transform: translate(0,0) !important;
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
                .contact-buttons {
                    --gap: 20px;
                    display: flex;
                    align-items: center;
                    flex-wrap: wrap;
                    gap: var(--gap);
                    margin-top: 40px;
                    @include maxwidth(1024) {
                        --gap: 5px;
                        flex-direction: column;
                        align-items: initial;
                        margin-top: 5px;
                        > * { flex: none !important; }
                    }
                    .contact-button {
                        flex-basis: calc((100% - (var(--gap) * 2)) / 3);
                        &__link {
                            @include f_all(18);
                            font-weight: 500;
                            line-height: 1.4;
                            @include flex_centering;
                            padding: 10px;
                            box-sizing: border-box;
                            background-color: $themecolor;
                            color: $themetextcolor;
                            width: 100%;
                            min-height: 80px;
                            position: relative;
                            @include maxwidth(768) {
                                @include f_all(16);
                            }
                            .label {
                                --shift: 150%;
                                display: inline-block;
                                position: relative;
                                overflow: hidden;
                                .label-inner {
                                    display: inline-block;
                                    transition: transform 400ms var(--base-easing);
                                    &.clone {
                                        position: absolute;
                                        inset: 0 auto auto 0;
                                        transform: translate(0,var(--shift));
                                    }
                                }
                            }
                            @media (any-hover: hover) {
                                transition: background 400ms var(--base-easing);
                                &:hover {
                                    background-color: $themecolor2;
                                    .label {
                                        .label-inner {
                                            transform: translate(0,calc(var(--shift) * -1));
                                            &.clone {
                                                transform: translate(0, 0) !important;
                                            }
                                        }
                                    }
                                }
                            }
                        }
                        &.form {
                            .contact-button__link {
                                gap: 6px;
                                &::before {
                                    content: '';
                                    flex-shrink: 0;
                                    display: inline-block;
                                    width: 16px;
                                    height: 13px;
                                    background: url(../images/icon-mail-white.svg) center / contain no-repeat;
                                }
                            }
                        }
                        &.line {
                            .contact-button__link {
                                flex-direction: column;
                                gap: 3px;
                                background-color: var(--line-color);
                                .label {
                                    --left-margin: 24px;
                                    @media (min-width: 1025px) {
                                        @include f_all(20);
                                    }
                                    padding-left: var(--left-margin);
                                    box-sizing: border-box;
                                    background:url(../images/icon-line-white.svg) left top 60% / 18px auto no-repeat;
                                    .label-inner.clone {
                                        left: var(--left-margin);
                                    }
                                }
                                .text {
                                    @include f_all(12);
                                    line-height: 1.4;
                                }

                                @media (any-hover: hover) {
                                    &:hover {
                                        background-color: color-mix(in srgb, var(--line-color), $themetextcolor 15%);
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
        .bgimg {
            position: absolute;
            z-index: -1;
            inset: 0;
            > img {
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
            &::after {
                content: '';
                position: absolute;
                inset: 0;
                background: rgba(0, 0, 0, 0.60);
            }
        }
    }
}

 #footerWrapper {
     position: relative;
 }

#footer {
    padding: 58px 0 40px;
    color: $themetextcolor;
    background-color: $basetextcolor;
    position: relative;
    border-bottom: 2px solid $basetextcolor;
    @include maxwidth(768) {
        padding: 50px 0 90px;
    }
    .container {
        @include container(1280, 30);
        display: flex;
        flex-wrap: wrap;
        gap: 0 1rem;
        @include maxwidth(1140) {
            flex-direction: column;
            gap: 0px;
        }
        @include maxwidth(768) {
            margin-left: 15px;
            margin-right: 15px;
        }
        .description {
            @include maxwidth(1140) {
                order: 2;
                margin-top: 60px;
            }
            > *:not(:first-child) {
                margin-top: 20px;
            }
            .sitename {
                display: flex;
                flex-direction: column;
                align-items: flex-start;
                gap: 12px;
                @include maxwidth(1140) {
                    align-items: center;
                }
                .outline {
                    @include f_all(13);
                    font-weight: 500;
                    line-height: 1.5;
                    @include maxwidth(1140) {
                        text-align: center;
                    }
                    @include maxwidth(360) {
                        @include f_all(12);
                    }
                }
                .logo {
                    img {
                        width: 153px;
                    }
                }
            }
            .outline {
                @include f_all(14);
                line-height: 1.4;
                @include maxwidth(1140) {
                    text-align: center;
                }
                @include maxwidth(360) {
                    @include f_all(13);
                }
            }
            .address {
                @include f_all(14);
                line-height: 1.4;
                @include maxwidth(1140) {
                    text-align: center;
                }
                @include maxwidth(360) {
                    @include f_all(13);
                }
            }
        }
        .menu {
            flex: 1;
            display: grid;
            grid-template-columns: repeat(3, max-content);
            justify-content: end;
            align-content: start;
            gap: 1rem 80px;
            margin-right: 2rem;
            @include maxwidth(1140) {
                order: 1;
                grid-template-columns: repeat(2, minmax(0, 1fr));
                justify-content: stretch;
                gap: 0 1rem;
                margin-right: 0rem;
            }
            @media (min-width: 1041px) {
                > ul:nth-child(4) {
                    grid-column: 2;
                    grid-row: 1 / span 3;
                }
                > ul:nth-child(5) {
                    grid-column: 3;
                    grid-row: 1 / span 3;
                }
            }
            > ul {
                > li {
                    color: $themecolor2;
                    @include f_all(15);
                    font-weight: 500;
                    line-height: 1.4;
                    &:not(:first-child) {
                        margin-top: 10px;
                    }
                    > a { }
                    > ul {
                        margin-top: 7px;
                        margin-bottom: 1rem;
                        > li {
                            color: $themetextcolor;
                            @include f_all(14);
                            @include maxwidth(360) {
                                @include f_all(13);
                            }
                            font-weight: 500;
                            line-height: 1.8;
                            > a { }
                        }
                    }
                }
            }
            li.line {
                a {
                    padding-left: 20px;
                    box-sizing: border-box;
                    background: url(../images/icon-line-color.svg) left top 55% / 15px auto no-repeat;
                }
            }
            li.yt {
                a {
                    padding-left: 20px;
                    box-sizing: border-box;
                    background: url(../images/icon-yt-color.svg) left top 60% / 15px auto no-repeat;
                }
            }
        }
        .copyright {
            flex-basis: 100%;
            margin-top: 22px;
            text-align: right;
            @include maxwidth(1140) {
                order: 3;
                margin-top: 35px;
                text-align: center;
            }
            small {
                @include f_all(13);
                line-height: 1.4;
                @include maxwidth(768) {
                    @include f_all(11);
                }
                @include maxwidth(360) {
                    @include f_all(10);
                }
            }
        }
    }
}

.gnav-toggle {
    @include f_all(11);
    @include maxwidth(360) {
        @include f_all(10);
    }
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    display: block;
    width: 50px;
    height: 50px;
    color: $themetextcolor;
    position: relative;
    isolation: isolate;
    &::before {
        content: '';
        position: absolute;
        z-index: -1;
        inset: 0;
        background-color: $basetextcolor;
        body.menu_open & {
            background-color: $accentcolor;
        }
    }
    .b {
        > span {
            display: inline-block;
            width: 25px;
            height: 1px;
            background-color:currentColor;
            position: absolute;
            inset: 0 0 30% 0;
            margin: auto;
            transition: transform 200ms ease;
            &:nth-child(1) {
                transform: translate(0, -3px);
                body.menu_open & {
                    transform: translate(0, 0px) rotate(145deg);
                }
            }
            &:nth-child(2) {
                transform: translate(0, 3px);
                body.menu_open & {
                    transform: translate(0, 0px) rotate(-145deg);
                }
            }
        }
    }
    .t {
        position: absolute;
        height: 1em;
        overflow: hidden;
        inset: auto 0 0.8em 0;
        @include flex_centering;
        &::before, &::after {
            position: absolute;
            inset: 50% auto auto 50%;
            transform: translate(-50%, -50%);
            @include flex_centering;
            transition: transform 200ms ease, opcity 200ms ease;
        }
        &::before {
            content: 'MENU';
            body.menu_open & {
                opacity: 1;
                transform: translate(-50%,-50%) translate(0,-1em);
            }
        }
        &::after {
            content: 'CLOSE';
            opacity: 0;
            transform: translate(-50%, -50%) translate(0, 1em);
            body.menu_open & {
                opacity: 1;
                transform: translate(-50%, -50%) translate(0, 0);
            }
        }
    }
}

body.menu_open { overflow: hidden; }
#gnavWrapper {
    position: fixed;
    isolation: isolate;
    z-index: 100;
    inset: 0;
    color: $themetextcolor;
    pointer-events: none;
    clip-path: inset(0 0 0 100%);
    transition: clip-path 800ms var(--base-easing);
    body.menu_open & {
        pointer-events: auto;
        clip-path: inset(0 0 0 0);
    }
    &::before {
        content: '';
        position: absolute;
        z-index: -1;
        inset: 0;
        background-color: $basetextcolor;
    }
    #gnav {
        position: fixed;
        inset: 0;
        body.admin-bar & { top: 32px; }
        overflow-y: auto;
        overscroll-behavior: contain;
        box-sizing: border-box;
        .container {
            @include container(1140, 30);
            @include maxwidth(768) {
                margin-left: 15px;
                margin-right: 15px;
            }
            min-height: 100%;
            padding: 5vh 0;
            box-sizing: border-box;
            display: flex;
            flex-direction: column;
            gap: 2rem;
            .head {
                .sitename {
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    gap: 12px;
                    .outline {
                        @include f_all(10);
                        font-weight: 500;
                        line-height: 1.5;
                    }
                    .logo {
                        img {
                            width: 160px;
                            @include maxwidth(768) {
                                width: 155px;
                            }
                            filter: brightness(0) invert(100%);
                        }
                    }
                }
            }
            .body {
                flex: 1;
                display: flex;
                align-items: center;
                .menu {
                    width: 100%;
                    > ul {
                        border-top: 1px solid rgba(255, 255, 255, 0.16);
                        > li {
                            display: flex;
                            align-items: flex-end;
                            flex-wrap: wrap;
                            gap: 4px 40px;
                            padding: 18px 5px 18px 10px;
                            box-sizing: border-box;
                            border-bottom: 1px solid rgba(255, 255, 255, 0.16);
                            @include maxwidth(1024) {
                                align-items: initial;
                                flex-direction: column;
                                gap: 10px;
                                > * {
                                    flex: none !important;
                                }
                            }
                            // 子メニューの開閉はgrid-template-rowsで行うため、flexではなくgridにする
                            @include maxwidth(768) {
                                display: grid;
                                grid-template-rows: auto 0fr;
                                gap: 0;
                                transition: grid-template-rows 400ms var(--base-easing);
                                &:has(> a.parent.active) {
                                    grid-template-rows: auto 1fr;
                                    > ul.children { padding-top: 12px; }
                                }
                            }

                            > a {
                                @include f_all(20);
                                font-weight: 500;
                                line-height: 1.5;
                                flex: 0 0 (240 / 1200 * 100%);
                                @include maxwidth(768) {
                                    @include f_all(18);
                                    position: relative;
                                    &.parent {
                                        padding-right: 2em;
                                        box-sizing: border-box;
                                        &::after {
                                            content: '＋';
                                            position: absolute;
                                            inset: calc(50% - 0.20em) 10px auto auto;
                                            transform: translate(0, -50%);
                                            transition: transform 400ms var(--base-easing);
                                        }
                                        &.active::after {
                                            transform: translate(0, -50%) rotate(-180deg);
                                        }
                                    }
                                }
                                &[data-en] {
                                    display: flex;
                                    flex-direction: column;
                                    align-items: flex-start;
                                    gap: 2px;
                                    &::before {
                                        content: attr(data-en);
                                        color: $themecolor2;
                                        @include f_all(11);
                                        @include maxwidth(768) {
                                            @include f_all(10);
                                        }
                                        font-weight: 500;
                                        line-height: 1;
                                        text-transform: uppercase;
                                    }
                                }

                                @media (any-hover: hover) {
                                    transition: color 200ms ease;
                                    &:hover {
                                        color: $themecolor2;
                                    }
                                }
                            }

                            > ul {
                                flex: 1;
                                min-width: 0;
                                display: flex;
                                flex-wrap: wrap;
                                gap: 6px 32px;
                                @include maxwidth(768) {
                                    gap: 10px;
                                    min-height: 0;
                                    overflow: hidden;
                                    padding-top: 0;
                                    transition: padding-top 400ms var(--base-easing);
                                }
                                > li {
                                    > a {
                                        @include f_all(14);
                                        font-weight: 500;
                                        line-height: 1.6;
                                        display: inline-flex;
                                        align-items: center;
                                        gap: 0.75em;
                                        @include maxwidth(768) {
                                            @include flex_centering;
                                            @include f_all(13);
                                            color: $basetextcolor;
                                            background-color: $basecolor;
                                            padding: 0 1em 0.1em;
                                            box-sizing: border-box;
                                            border-radius: 1em;
                                            min-height: 26px;
                                            gap: 0.5em;
                                        }

                                        &::before {
                                            content: '';
                                            flex-shrink: 0;
                                            display: inline-block;
                                            width: 4px;
                                            height: 4px;
                                            background-color: $themecolor2;
                                            margin-top: 0.1em;
                                        }

                                        @media (any-hover: hover) {
                                            &:hover {
                                                opacity: 0.8;
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
            .foot {
                display: flex;
                justify-content: space-between;
                align-items: center;
                flex-wrap: wrap;
                gap: 2rem;
                @include maxwidth(768) {
                    flex-direction: column;
                    justify-content: initial;
                    gap: 1.5rem;
                }
                .tel {
                    &__link {
                        display: inline-flex;
                        flex-direction: column;
                        align-items: center;
                        gap: 5px;
                        .num {
                            @include f_all(24);
                            line-height: 1;
                            padding-left: 26px;
                            box-sizing: border-box;
                            background: url(../images/icon-tel-white.svg) left top 75% / 16px auto no-repeat;
                            @include maxwidth(768) {
                                @include f_all(20);
                                padding-left: 18px;
                                background-size: 14px auto;
                            }
                        }
                        .time {
                            @include f_all(12);
                            line-height: 1.4;
                            @include maxwidth(768) {
                                @include f_all(10);
                            }
                        }
                    }
                }
                .buttons {
                    display: flex;
                    gap: 5px;
                    .button {
                        &__link {
                            @include flex_centering;
                            width: 55px;
                            height: 55px;
                            @include maxwidth(768) {
                                width: 50px;
                                height: 50px;
                            }
                            background-color: $themecolor;
                            box-sizing: border-box;
                            @media (any-hover: hover) {
                                transition: background 200ms ease;
                                img { transition: filter 200ms; }
                                &:hover {
                                    background-color: $basecolor;
                                    img { filter: brightness(0%); }
                                }
                            }
                        }
                        &.line {
                            .button__link {
                                @media (any-hover: hover) {
                                    &:hover {
                                        background-color: var(--line-color);
                                        img { filter: none; }
                                    }
                                }
                                @media (any-hover: none) {
                                    background-color: var(--line-color);
                                }
                            }
                        }
                        &.yt {
                            .button__link {
                                @media (any-hover: hover) {
                                    &:hover {
                                        background-color: var(--yt-color);
                                        img { filter: none; }
                                    }
                                }
                                @media (any-hover: none) {
                                    background-color: var(--yt-color);
                                }
                            }
                        }
                    }
                }
            }
        }
    }

}

#track {
    pointer-events: none;
    position: fixed;
    inset: 0 0 0 auto;
    margin: auto;
    z-index: 101;
    @media (min-width: 769px) {
        body.admin-bar & {
            top: 32px;
        }
    }
    @include maxwidth(768) {
        inset: auto 0 0 0;
    }
    #trackInner {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;
        height: 100%;
        gap: 5px;
        @include maxwidth(768) {
            flex-direction: row-reverse;
            gap: 0px;
        }
        .gnav-toggle {
            flex-shrink: 0;
        }
        :where(a:not(.gnav-toggle)) {
            width: 50px;
            height: 180px;
            color: $themetextcolor;
            @include flex_centering;
            position: relative;
            isolation: isolate;
            box-sizing: border-box;
            @include maxwidth(768) {
                flex: 1;
                width: 100%;
                height: 50px;
            }
            @media (min-width: 769px) and (max-height: 600px) {
                display: none !important;
            }
            &::before {
                content: '';
                position: absolute;
                z-index: -1;
                inset: 0;
                background-color: $basetextcolor;
            }
            .t {
                @include f_all(14);
                @include maxwidth(360) {
                    @include f_all(12);
                }
                font-weight: 500;
                @media (min-width: 769px) {
                    line-height: 2em;
                    letter-spacing: 0.15em;
                    writing-mode: vertical-rl;
                }
            }
        }
        .line {
            &::before { background-color: var(--line-color); }
            .t {
                padding-top: 22px;
                background: url(../images/icon-line-white.svg) center top / auto 18px no-repeat;
                @include maxwidth(768) {
                    padding-top: 0.15em;
                    padding-bottom: 0.15em;
                    padding-left: 25px;
                    box-sizing: border-box;
                    background-position: left top 75%;
                }
            }
        }
        .recruit {
            color: $basetextcolor;
            &::before { background-color: $themecolor2; }
            .t {
                padding-top: 20px;
                background: url(../images/icon-recruit-black.svg) center top / auto 15px no-repeat;
                @include maxwidth(768) {
                    padding-top: 0.15em;
                    padding-bottom: 0.15em;
                    padding-left: 25px;
                    box-sizing: border-box;
                    background-position: left top 75%;
                }
            }
        }

        a {
            pointer-events: auto;
            @media (min-width: 769px) {
                transform: translate(100%, 0);
            }
            @media (max-width: 768px) {
                transform: translate(0, 100%);
            }
            transition: transform 200ms ease;

            @media (max-height: 400px) and (max-width: 768px) {
                height: 40px;
                &.gnav-toggle {
                    width: 40px;
                    .t {
                        @include f_all(8);
                    }
                }
            }

            body.header_scrollout & {
                transform: translate(0, 0);
            }
            body.menu_open &:not(.gnav-toggle) {
                @media (min-width: 769px) {
                    transform: translate(100%, 0);
                }
                @media (max-width: 768px) {
                    transform: translate(0, 100%);
                }
            }

            @media (any-hover: hover) and (min-width: 769px) {
                &:hover {
                    transform: translate(3px,0) !important;
                    transition-delay: 0s;
                }
            }
            @media (any-hover: hover) and (max-width: 768px) {
                &:hover {
                    transform: translate(0,2px) !important;
                    transition-delay: 0s;
                }
            }
        }
    }
}

.c-heading {
    color: $themecolor;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 6px;
    position: relative;
    .ja {
        @include f_all(14);
        font-weight: 500;
        line-height: 1.4;
    }
    .en {
        font-size: clamp(40px, (80 / 1200 * 100vw), 80px);
        text-transform: uppercase;
        font-weight: 300;
        line-height: 1.3;
        margin-top: -10px;
    }

    &.is-white-color {
        color: $themetextcolor;
    }
}

.c-buttons {
    @include flex_centering;
    flex-wrap: wrap;
    gap: 10px;
    @include maxwidth(768) {
        gap: 5px;
    }
}

.c-button {
    @include button;

    &.yt {
        .c-button__link {
            &::before {
                content: '';
                flex-shrink: 0;
                display: inline-block;
                width: 15px;
                height: 10px;
                background: url(../images/icon-yt-white.svg) center / contain no-repeat;
            }

            @media (any-hover: hover) {
                &:hover { background-color: var(--yt-color); }
            }

        }
    }
}

.news-terms {
    @include f_all(14);
    font-weight: 500;
    line-height: 1.4;
    position: relative;
    &:has(+ .news-headline) {
        margin-bottom: 10px;
        @include maxwidth(768) { margin-bottom: 5px; }

        body.subpage & {
            margin-bottom: 20px;
        }
    }
    body.toppage & {
        flex-wrap: nowrap;
        margin: 0 calc(50% - 50vw);
        padding: 0 calc(50vw - 50%);
        box-sizing: border-box;
    }
    body.subpage & {
        @include maxwidth(360) {
            @include f_all(13);
        }
    }
    ul {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        @include maxwidth(768) {
            gap: 5px;
        }
        body.toppage & {
            @include maxwidth(768) {
                flex-wrap: nowrap;
                gap: 0px;
            }
        }
        li {
            &.swiper-slide {
                width: auto !important;
            }
            body.subpage & {
                @include maxwidth(768) {
                    flex-basis: calc((100% - 5px) / 2);
                    &:first-child { flex-basis: 100%; }
                    a { min-width: initial !important; }
                }
            }
            a {
                display: flex;
                align-items: center;
                padding: 0.5em calc(20px + 1.40em) 0.5em 20px;
                box-sizing: border-box;
                min-width: 200px;
                min-height: 45px;
                color: $basetextcolor;
                background-color: $themecolor3;
                position: relative;

                &::after {
                    content: '＋';
                    position: absolute;
                    inset: calc(50% - 0.15em) 20px auto auto;
                    transform: translate(0, -50%);
                }

                .label {
                    display: inline-block;
                    position: relative;
                    overflow: hidden;
                    .label-inner {
                        --shift: 150%;
                        display: inline-block;
                        position: relative;
                        transform: translate(0, 0);
                        transition: transform 400ms var(--base-easing);
                        &.clone {
                            position: absolute;
                            inset: 0 auto auto 0;
                            transform: translate(0, var(--shift));
                        }
                    }
                }

                body.subpage & {
                    @include maxwidth(360) {
                        padding-left: 10px;
                    }
                }

                &.current {
                    color: $themetextcolor;
                    background-color: $themecolor;
                }


                @media (any-hover: hover) {
                    transition: border-radius 400ms var(--base-easing), background 400ms var(--base-easing), color 400ms var(--base-easing);
                    &::after { transition: transform 400ms var(--base-easing); }
                    &:hover {
                        border-radius: 10em;
                        color: $themetextcolor;
                        background-color: $themecolor2;
                        &::after { transform: translate(0,calc(-50% + 0.3em)) rotate(180deg); }
                        .label {
                            .label-inner {
                                transform: translate(0, calc(var(--shift) * -1));
                                &.clone {
                                    transform: translate(0, 0) !important;
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}

.news-headline {
    @include f_all(16);
    font-weight: 500;
    line-height: 1.4;
    position: relative;
    @include maxwidth(768) {
        @include f_all(14);
    }
    .headline-items {  }
    .headline-item {
        border-bottom: 1px solid $themecolor3;
        position: relative;
        &__link {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 0 30px;
            padding: 40px calc(40px + 1em) 40px 40px;
            box-sizing: border-box;
            height: 100%;
            position: relative;
            isolation: isolate;
            @include maxwidth(1024) {
                gap: 0 20px;
                padding: 30px calc(20px + 1em) 25px 20px;
            }
            .date { flex-shrink: 0; }
            .terms {
                color: $themecolor;
                line-height: 1;
                display: flex;
                align-items: center;
                flex-wrap: wrap;
                gap: 0.5em 12px;
                .term {
                    display: inline-flex;
                    align-items: center;
                    gap:  10px;
                    &::before {
                        content: '';
                        flex-shrink: 0;
                        display: inline-block;
                        width: 4px;
                        height: 4px;
                        background-color: $themecolor2;
                        margin-top: 0.15em;
                    }
                }
            }
            .title {
                @include maxwidth(1024) {
                    flex-basis: 100%;
                    margin-top: 4px;
                }
            }

            &::before {
                content: '';
                position: absolute;
                z-index: -1;
                inset: 0 0 0 0;
                margin: auto;
                background-color: color-mix(in srgb, $themecolor, transparent 95%);
                transform: scaleX(0);
                transform-origin: 100% 100%;
                transition: opacity 300ms, transform 300ms;
            }
            &::after {
                content: '＋';
                color: $themecolor;
                @include f_all(16);
                position: absolute;
                inset: 50% 40px auto auto;
                transform: translate(0,-50%);
                @include maxwidth(1024) {
                    inset: auto 15px 25% auto;
                    transform: translate(0,0);
                }
            }

            @media (any-hover: hover) {
                &::after { transition: transform 400ms var(--base-easing); }
                &:hover {
                    &::before { transform: scaleX(1); transform-origin: 0% 100%; }
                }
            }

            @media (any-hover: hover) and (min-width: 1025px) {
                &:hover {
                    &::after { transform: translate(0.20em, calc(-50% + 0.20em)) rotate(90deg); }
                }
            }

            @media (any-hover: hover) and (max-width: 1024px) {
                &:hover {
                    &::after { transform: translate(0.15em, 0.15em) rotate(90deg); }
                }
            }

        }
    }
    .noposts {
        padding: 1em 2em;
        box-sizing: border-box;
        isolation: isolate;
        @include maxwidth(768) { padding: 1em 10px; }
        &::before {
            content: '';
            position: absolute;
            z-index: -1;
            inset: 0 0 0 0;
            background-color: color-mix(in srgb, $themecolor, $basecolor 96%);
        }
    }
}

// === Frontpage ===

.first-view {
    margin-top: -100vh;
    margin-top: -100svh;
    body.admin-bar & {
        margin-top: calc(-100vh + 32px);
        margin-top: calc(-100svh + 32px);
    }
    @media (max-height: 480px) {
        margin-top: -480px !important;
    }
    body.admin-bar & {
        @media (max-height: 512px) {
            margin-top: -480px !important;
        }
    }
    position: relative;
    .first-view-spacer  {
        height: 100vh;
    }
    #videoWrap {
        --cover-opacity: 0;
        position: sticky;
        inset: 0 auto auto 0;
        height: 100vh;
        &::before {
            content: '';
            pointer-events: none;
            position: absolute;
            z-index: 2;
            inset: auto 0 0 0;
            background: linear-gradient(180deg, rgba(0, 0, 0, 0.0) 0%, rgba(0, 0, 0, 0.25) 100%);
            height: 50vh;
        }
        &::after {
            content: '';
            pointer-events: none;
            position: absolute;
            z-index: 1;
            inset: 0 0 0 0;
            backdrop-filter: blur(3px);
            background: rgba(#000, 0.55);
            opacity: var(--cover-opacity);
        }
        #slides {
            position: relative;
            height: 100%;
            .swiper-wrapper {
                height: 100%;
                .swiper-slide {
                    height: 100%;
                    &__inner {
                        height: 100%;
                        &>img {
                            width: 100%;
                            height: 100%;
                            object-fit: cover;
                            transform-origin: 50% 50%;
                            will-change: transform;

                            &.is-kenburns {
                                animation: kenburns 6000ms linear forwards;
                            }
                        }
                    }
                }
            }
        }
        .video {
            position: absolute;
            z-index: 1;
            inset: 0 0 0 0;
            video {
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
            &::after {
                content: '';
                position: absolute;
                inset: 0;
                --dot-size: 6px;
                --dot-opacity: 0.35;
                background-image: radial-gradient(#000 30%, transparent 31%);
                background-size: var(--dot-size) var(--dot-size);
                background-position: 0 0, var(--dot-size) var(--dot-size);
                opacity: var(--dot-opacity);
            }
        }
    }
    #toppageAboutus {
    }
}

#toppageAboutus {
    clip-path: inset(0);
    position: relative;
    .sticky-wrapper {
        position: relative;
        .spacer { height: 100vh; }
        .spacer-half { height: 50vh; }
        .sticky-content {
            position: sticky;
            inset: 0 auto auto 0;
            height: 50vh;

            .bgimg {
                --bgimg-cover-opacity: 1;
                position: absolute;
                inset: 0;
                inset: 50% auto auto 50%;
                transform: translate(-50%,-50%);
                width: 100%;
                height: 100%;
                overflow: hidden;
                > img {
                    position: absolute;
                    inset: 0 auto auto 0;
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                }
                &::after {
                    content: '';
                    position: absolute;
                    inset: 0;
                    background: rgba(0, 0, 0, 0.60);
                    backdrop-filter: blur(2px);
                    opacity: var(--bgimg-cover-opacity);
                }
            }

        }
        .smooth-content {
            color: $themetextcolor;
            min-height: 100vh;
            position: relative;
            @include maxwidth(768) {
                padding-top: 8vh;
            }
            @media (max-height: 800px) {
                min-height: 800px;
            }
            .docs {
                margin: 0 30px;
                @include maxwidth(768) {
                    margin: 0 15px;
                }
                position: relative;
                z-index: 10;
                .heading {
                }
                .leadtext {
                    @include f_all(32);
                    line-height: 1.4;
                    text-align: center;
                    margin-top: 40px;
                    @include maxwidth(768) {
                        @include f_all(24);
                        margin-top: 25px;
                    }
                }
                .text {
                    @include f_all(15);
                    font-weight: 500;
                    line-height: 2.3;
                    text-align: center;
                    margin-top: 30px;
                    @include maxwidth(768) {
                        @include f_all(14);
                        line-height: 2;
                        margin-top: 20px;
                    }
                    > p:not(:first-child) { margin-top: 2em; }

                    &.js-scroll-target {
                        opacity: 0;
                        transform: translate(0, 1.2em);
                        transition: opacity 800ms ease-out, transform 800ms ease-out;
                        &.active {
                            opacity: 1;
                            transform: translate(0,0);
                        }
                    }
                }
                .c-buttons {
                    margin-top: 40px;
                    @include maxwidth(768) {
                        margin-top: 30px;
                    }
                }
                .c-button {
                    &__link {
                    }

                    &.js-scroll-target {
                        opacity: 0;
                        transform: translate(0, 1.2em);
                        transition: opacity 800ms ease-out, transform 800ms ease-out;
                        &.active {
                            opacity: 1;
                            transform: translate(0, 0);
                        }
                    }
                }
            }
            .imgs {
                pointer-events: none;
                position: absolute;
                inset: 0;
                z-index: 1;
                .img {
                    position: absolute;
                    overflow: hidden;
                    &:nth-child(1) {
                        width: (330 / 1440 * 100vw);
                        height: (360 / 1440 * 100vw);
                        inset: -25vh auto auto 0;
                        @include maxwidth(768) {
                            width: (160 / 375 * 100vw);
                            height: (160 / 375 * 100vw);
                            inset: -25vh auto auto 0;
                        }
                    }
                    &:nth-child(2) {
                        width: (330 / 1440 * 100vw);
                        height: (340 / 1440 * 100vw);
                        inset: auto 0 15vh auto;
                        @include maxwidth(768) {
                            width: (150 / 375 * 100vw);
                            height: (200 / 375 * 100vw);
                            inset: -20vh 10px auto auto;
                        }
                    }
                    &:nth-child(3) {
                        width: (355 / 1440 * 100vw);
                        height: (333 / 1440 * 100vw);
                        inset: auto auto -25vh (80 / 1440 * 100vw);
                        @include maxwidth(768) {
                            width: (160 / 375 * 100vw);
                            height: (160 / 375 * 100vw);
                            inset: auto auto -28vh 15px;
                        }
                    }
                    > img {
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                    }
                }
            }
        }
    }
    .wide-img-wrapper {
        width: 100%;
        .wide-img {
            // height: 440px;
            max-height: 640px;
            height: (440 / 1440 * 100vw);
            @include maxwidth(768) {
                height: (440 / 768 * 100vw);
                min-height: 320px;
            }
            position: relative;
            clip-path: inset(0);
            > img {
                // position: fixed;
                // inset: 0;
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
        }
    }
}

#toppageService {
    padding: 150px 0 200px;
    position: relative;
    margin-top: -100vh;
    background-color: $basecolor;
    overflow: hidden;
    @include maxwidth(768) {
        padding: 60px 0 calc(8vh + 60px);
    }
    .container {
        max-width: 1340px;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        padding-left: 30px;
        padding-right: 30px;
        box-sizing: border-box;
        position: relative;
        .head {
            display: flex;
            align-items: flex-end;
            flex-wrap: wrap;
            gap: 30px;
            padding-left: 40px;
            box-sizing: border-box;
            @include maxwidth(1024) {
                align-items: initial;
                flex-direction: column;
                gap: 5px;
                padding-left: 0px;
            }
            .heading { align-items: flex-start; }
            .leadtext {
                @include f_all(15);
                font-weight: 500;
                line-height: 2;
                margin-bottom: 0.5em;
                @include maxwidth(1024) {
                    margin-bottom: 0px;
                }
                @include maxwidth(768) {
                    @include f_all(14);
                }
            }
        }
        .body {
            margin-top: 40px;
            @include maxwidth(768) {
                margin-top: 30px;
            }
            .service-items-wrapper {
                padding-left: 40px;
                box-sizing: border-box;
                position: relative;
                isolation: isolate;
                @include maxwidth(1024) {
                    padding-left: 0px;
                    padding-top: 50px;
                }
                @include maxwidth(768) {
                    margin-left: calc(50% - 50vw);
                    margin-right: calc(50% - 50vw);
                }
                .service-items {
                    counter-reset: si;
                    position: relative;
                    .service-item {
                        --cover-opacity: 0;
                        counter-increment: si;
                        color: $themetextcolor;
                        padding: 42px 40px;
                        box-sizing: border-box;
                        isolation: isolate;
                        position: relative;
                        background: center / cover no-repeat;
                        @include maxwidth(1024) {
                            padding-left: 30px;
                            padding-right: 30px;
                        }
                        @include maxwidth(768) {
                            padding: 0px 15px 30px;
                        }
                        @media (min-width: 769px) and (max-height: 600px) {
                            padding-top: 30px;
                            padding-bottom: 20px;
                        }
                        @media (max-width: 768px) and (min-height: 801px) {
                            background-image: none !important;
                        }
                        @media (max-width: 768px) and (max-height: 800px) {
                            padding-top: 30px;
                        }
                        &::before {
                            content: '';
                            pointer-events: none;
                            position: absolute;
                            z-index: -1;
                            inset: 0;
                            background: $basetextcolor;
                            @include maxwidth(768) {
                                top: 40px;
                            }
                            @media (max-width: 768px) and (max-height: 800px) {
                                top: 0;
                                opacity: 0.75;
                            }
                        }
                        &:nth-child(odd)::before {
                            background: linear-gradient(90deg, $basetextcolor 0%, $themecolor 100%);
                        }
                        &:nth-child(even) {
                            &::before {
                                background: linear-gradient(270deg, $basetextcolor 0%, $themecolor 100%);
                            }
                            @media (min-width: 769px) {
                                .cols {
                                    flex-direction: row-reverse;
                                }
                            }
                        }
                        .cols {
                            display: flex;
                            justify-content: space-between;
                            gap: 40px;
                            @include maxwidth(768) {
                                flex-direction: column-reverse;
                                justify-content: initial;
                                gap: 30px;
                                > * {
                                    flex: none !important;
                                    width: 100%;
                                }
                            }
                            @media (max-width: 768px) and (max-height: 800px) {
                                gap: 0px;
                            }
                            @media (max-height: 600px) {
                                align-items: center;
                            }
                            .col {
                                display: flex;
                                justify-content: space-between;
                                flex-direction: column;
                                gap: 1rem;
                                box-sizing: border-box;
                                position: relative;
                                @include maxwidth(768) {
                                    gap: 14px;
                                }
                                @media (max-height: 600px) {
                                    gap: 0.5rem;
                                }
                                &:nth-child(1) {
                                    flex-basis: 515px;
                                    padding-left: (55 / 1160 * 100%);
                                    @include maxwidth(768) {
                                        padding-left: 35px;
                                    }
                                    &::before {
                                        content: 'SERVICE. 'counter(si, decimal-leading-zero);
                                        @include f_all(16);
                                        color: $themecolor2;
                                        position: absolute;
                                        inset: 0 auto auto 0;
                                        writing-mode: vertical-rl;
                                        display: inline-block;
                                        width: 1em;
                                        @include maxwidth(768) {
                                            @include f_all(13);
                                        }
                                    }
                                }
                                &:nth-child(2) {
                                    flex-basis: 605px;
                                }
                                .title {
                                    display: flex;
                                    flex-direction: column;
                                    align-items: flex-start;
                                    gap: 5px;
                                    padding-top: 28px;
                                    @include maxwidth(768) {
                                        padding-top: 0px;
                                    }
                                    @media (max-height: 600px) {
                                        padding-top: 0px;
                                    }
                                    .en {
                                        @include f_all(14);
                                        line-height: 1.4;
                                        text-transform: uppercase;
                                        @media (max-height: 600px) {
                                            @include f_all(12);
                                        }
                                    }
                                    .ja {
                                        font-size: clamp(20px, (32 / 1200 * 100vw), 32px);
                                        line-height: 1.4;
                                        @media (max-height: 600px) {
                                            font-size: 18px;
                                        }
                                    }
                                }
                                .docs {
                                    .text {
                                        @include f_all(15);
                                        font-weight: 500;
                                        line-height: 2;
                                        @include maxwidth(768) {
                                            @include f_all(14);
                                            line-height: 1.8;
                                        }
                                        > p:not(:first-child) {
                                            margin-top: 1em;
                                        }
                                        @media (max-height: 600px) {
                                            @include f_all(12);
                                        }
                                    }
                                    .list {
                                        @include f_all(14);
                                        font-weight: 500;
                                        line-height: 1.4;
                                        margin-top: 20px;
                                        @include maxwidth(768) {
                                            margin-top: 12px;
                                        }
                                        @media (max-height: 600px) {
                                            @include f_all(12);
                                            margin-top: 8px;
                                        }
                                        li {
                                            padding-left: 25px;
                                            box-sizing: border-box;
                                            position: relative;
                                            &:not(:first-child) {
                                                margin-top: 0.6em;
                                                @media (max-height: 600px) {
                                                    margin-top: 0.15em;
                                                }
                                            }
                                            &::before {
                                                content: '';
                                                display: block;
                                                width: 10px;
                                                height: 10px;
                                                background-color: $themecolor2;
                                                position: absolute;
                                                inset: 0.35em auto auto 0;
                                            }
                                        }
                                    }
                                    .c-buttons {
                                        justify-content: flex-start;
                                        flex-direction: column;
                                        align-items: flex-start;
                                        margin-top: 40px;
                                        @include maxwidth(768) {
                                            margin-top: 20px;
                                        }
                                        @media (max-height: 600px) {
                                            margin-top: 12px;
                                        }
                                    }
                                    .c-button {
                                        @include maxwidth(480) { width: 100%; }
                                        &__link {
                                            min-width: 320px;
                                            @media (max-height: 600px) {
                                                @include f_all(12);
                                                min-width: 180px;
                                                min-height: 35px;
                                            }
                                            @include maxwidth(480) {
                                                min-width: initial;
                                                width: 100%;
                                            }
                                        }
                                    }
                                }
                                .img {
                                    aspect-ratio: 1;
                                    @media (max-height: 600px) {
                                        aspect-ratio: 1.5 / 1;
                                    }
                                    @include maxwidth(768) {
                                        aspect-ratio: initial;
                                        width: (345 / 375 * 100vw);
                                        height: (230 / 375 * 100vw);
                                        min-width: 345px;
                                        min-height: 230px;
                                        margin: 0 auto;
                                    }
                                    @media (max-width: 768px) and (max-height: 800px) {
                                        display:none;
                                    }
                                    @include maxwidth(375) {
                                        width: 100%;
                                        min-width: initial;
                                    }
                                    position: relative;
                                    > img {
                                        width: 100%;
                                        height: 100%;
                                        object-fit: cover;
                                    }
                                }
                            }
                        }
                        &::after {
                            content: '';
                            pointer-events: none;
                            position: absolute;
                            inset: 0;
                            background: rgba(0, 0, 0, 0.65);
                            backdrop-filter: blur(2px);
                            opacity: var(--cover-opacity);
                            @include maxwidth(768) {
                                display: none;
                            }
                        }
                    }
                }
                .service-items-pagination {
                    position: absolute;
                    z-index: -1;
                    inset: auto auto 50px 0;
                    display: flex;
                    flex-direction: column;
                    gap: 5px;
                    counter-reset: sip;
                    @include maxwidth(1024) {
                        inset: 0 (50 / 375 * 100vw) auto;
                        flex-direction: row;
                        gap: 20px;
                    }
                    .bullet {
                        counter-increment: sip;
                        cursor: pointer;
                        display: flex;
                        flex-direction: column;
                        gap: 0px;
                        &::before {
                            content: counter(sip, decimal-leading-zero);
                            @include f_all(15);
                            font-weight: 500;
                            line-height: 2;
                        }
                        .bar {
                            display: block;
                            width: 80px;
                            height: 15px;
                            background-color: $themecolor3;
                            position: relative;
                            @include maxwidth(1024) {
                                width: 45px;
                                height: 80px;
                            }
                            &::after {
                                content: '';
                                position: absolute;
                                width: 0%;
                                inset: 0 0 0 auto;
                                background-color: $themecolor2;
                                transition: width 300ms var(--base-easing), height 300ms var(--base-easing);
                                @include maxwidth(1024) {
                                    width: 100%;
                                    inset: auto 0 0 0;
                                    height: 0%;
                                }
                            }
                        }

                        &.active {
                            .bar::after {
                                width: 100%;
                                @include maxwidth(1024) { height: 100%; }
                            }
                        }

                    }
                }
                &.is-stacked {
                    .service-items {
                        display: grid;
                        grid-template-columns: minmax(0, 1fr);
                        .service-item {
                            grid-row: 1;
                            grid-column: 1;
                            min-width: 0;
                            &:nth-child(1) { z-index: 1; }
                            &:nth-child(2) { z-index: 2; }
                            &:nth-child(3) { z-index: 3; }
                            .cols .col:nth-child(2) {
                                @media screen and (max-height: 768px) {
                                    flex-basis: 480px;
                                }
                                @media screen and (max-height: 660px) {
                                    flex-basis: 380px;
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}

#toppageContent {
    color: $themetextcolor;
    background-color: $basetextcolor;
    padding: 80px 0;
    position: relative;
    @include maxwidth(768) {
        padding: 30px 0;
    }
    .container {
        @include container(1280, 30);
        @include maxwidth(768) {
            margin-left: 15px;
            margin-right: 15px;
        }
        .banners {
            display: flex;
            flex-direction: column;
            gap: 10px;
            @include maxwidth(768) {
                gap: 5px;
            }
            .banner {
                min-height: 480px;
                position: relative;
                isolation: isolate;
                @include flex_centering;
                @include maxwidth(768) {
                    min-height: auto;
                }
                .cols {
                    width: 100%;
                    display: flex;
                    justify-content: space-between;
                    align-items: flex-end;
                    padding: 40px;
                    box-sizing: border-box;
                    gap: 1rem;
                    @include maxwidth(1024) {
                        flex-direction: column;
                        justify-content: initial;
                        align-items: initial;
                        gap: 30px;
                        > * {
                            flex: none !important;
                        }
                    }
                    @include maxwidth(768) {
                        padding: 60px 20px;
                    }
                    .col {
                        &:nth-child(1) {
                            flex-basis: 700px;
                        }
                        &:nth-child(2) {
                        }
                        .c-heading {
                            @media (min-width: 1025px) {
                                align-items: flex-start;
                            }
                        }
                        .subbody {
                            margin-top: 30px;
                            @include maxwidth(768) {
                                margin-top: 20px;
                            }
                            .text {
                                @include f_all(15);
                                font-weight: 500;
                                line-height: 2;
                                @include maxwidth(768) {
                                    @include f_all(14);
                                    line-height: 1.8;
                                }
                                > p:not(:first-child) { margin-top: 1em; }

                                &.js-scroll-target {
                                    opacity: 0;
                                    transform: translate(0, 1.2em);
                                    transition: opacity 800ms ease-out, transform 800ms ease-out;
                                    &.active {
                                        opacity: 1;
                                        transform: translate(0, 0);
                                    }
                                }
                            }
                        }
                        .c-buttons {
                        }
                        .c-button {
                            @include maxwidth(768) {
                                width: 100%;
                            }
                            &__link {
                                @include maxwidth(768) {
                                    min-width: initial;
                                }
                            }

                            &.js-scroll-target {
                                opacity: 0;
                                transform: translate(0, 1.2em);
                                transition: opacity 800ms ease-out, transform 800ms ease-out;
                                &.active {
                                    opacity: 1;
                                    transform: translate(0, 0);
                                }
                            }
                        }
                    }
                }
                .img {
                    position: absolute;
                    z-index: -1;
                    inset: 0;
                    > img {
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                    }
                    &::after {
                        content: '';
                        position: absolute;
                        inset: 0;
                        background: rgba(0, 0, 0, 0.60);
                    }
                }
            }
        }
    }
}

#toppageRecruit {
    background-color: $basecolor;
    position: relative;
    .sticky-wrapper {
        position: relative;
        .spacer { height: 100vh; }
        .spacer-half { height: 50vh; }
        .sticky-content {
            position: sticky;
            inset: 0 auto auto 0;
            height: 100vh;
            overflow: hidden;
            .heading.clone {
                position: absolute;
                inset:0;
                @include flex_centering;
                z-index: 2;
                .ja, .en {
                    overflow: hidden;
                    .inner { display: inline-block; }
                }
            }
            .bgimg {
                position: absolute;
                inset: 0;
                .inner {
                    display: block;
                    height: 100%;
                    overflow: hidden;
                    > img {
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                    }
                    .cover {
                        --cover-bg: rgba(0, 0, 0, 0.25);
                        --cover-blur: 0px;
                        position: absolute;
                        inset: 0;
                        background-color: var(--cover-bg);
                        will-change: background;
                        &::after {
                            content: '';
                            position: absolute;
                            inset: 0;
                            backdrop-filter: blur(var(--cover-blur));
                            will-change: backdrop-filter;
                        }
                    }
                }
            }
        }
        .smooth-content {
            margin-top: -10vh;
            margin-bottom: 25vh;
            min-height: 100vh;
            position: relative;
            @include flex_centering;
            @include maxwidth(768) {
                margin-bottom: 8vh;
            }
            .docs {
                max-width: 760px;
                width: 100%;
                padding: 0 30px;
                box-sizing: border-box;
                margin: 0 auto;
                @include maxwidth(768) {
                    padding: 0 15px;
                }
                .docs-inner {
                    --panel-opacity: 1;
                    color: $basetextcolor;
                    padding: 68px (60 / 760 * 100%);
                    box-sizing: border-box;
                    position: relative;
                    isolation: isolate;
                    @include maxwidth(768) {
                        padding: 50px (30 / 345 * 100%) 40px;
                    }

                    &::before {
                        content: '';
                        position: absolute;
                        z-index: -1;
                        inset: 0;
                        background-color: rgba(255, 255, 255, 0.95);
                        backdrop-filter: blur(2px);
                        opacity: var(--panel-opacity);
                    }

                    .c-heading {  }

                    .leadtext {
                        @include f_all(32);
                        line-height: 1.4;
                        text-align: center;
                        margin-top: 30px;
                        @include maxwidth(768) {
                            @include f_all(24);
                            margin-top: 20px;
                        }
                        @include maxwidth(360) {
                            @include f_all(23);
                        }
                    }
                    .text {
                        @include f_all(15);
                        font-weight: 500;
                        line-height: 2.3;
                        margin-top: 20px;
                        text-align: center;
                        @include maxwidth(768) {
                            @include f_all(14);
                            line-height: 1.8;
                            text-align: left;
                        }

                        > p:not(:first-child) { margin-top: 1em; }

                        &.js-scroll-target {
                            opacity: 0;
                            transform: translate(0, 1.2em);
                            transition: opacity 800ms ease-out, transform 800ms ease-out;
                            &.active {
                                opacity: 1;
                                transform: translate(0, 0);
                            }
                        }
                    }
                    .c-buttons {
                        margin-top: 20px;
                        @include maxwidth(768) {
                            flex-direction: column;
                            > * {
                                flex: none !important;
                            }
                        }
                    }
                    .c-button {
                        @include maxwidth(768) { width: 100%; }
                        &__link {
                            @include maxwidth(768) {
                                min-width: initial;
                            }
                        }

                        &.js-scroll-target {
                            opacity: 0;
                            transform: translate(0, 1.2em);
                            transition: opacity 800ms ease-out, transform 800ms ease-out;
                            &.active {
                                opacity: 1;
                                transform: translate(0, 0);
                            }
                        }
                    }
                }
            }
        }
    }
}

#toppageVideo {
    margin-top: -100vh;
    color: $themetextcolor;
    padding: 80px 0 115px;
    background: linear-gradient(180deg, $themecolor 0%, $basetextcolor 100%);
    position: relative;
    @include maxwidth(768) {
        padding: 60px 0 80px;
    }
    .container {
        @include container(1080, 30);
        @include maxwidth(768) {
            margin-left: 15px;
            margin-right: 15px;
        }
        .heading {
        }
        .body {
            margin-top: 50px;
            @include maxwidth(768) {
                margin-top: 30px;
            }
            .video-wrap {
                background-color: #000;
                position: relative;
                iframe {
                    aspect-ratio: 1080 / 600;
                    width: 100% !important;
                    height: 100% !important;
                }

                &.js-scroll-target {
                    opacity: 0;
                    transform: translate(0, 1.2em);
                    transition: opacity 800ms ease-out, transform 800ms ease-out;
                    &.active {
                        opacity: 1;
                        transform: translate(0, 0);
                    }
                }
            }
            .c-buttons {
                margin-top: 50px;
                @include maxwidth(768) {
                    margin-top: 30px;
                }
            }
        }
    }
}

#toppageNews {
    padding: 120px 0 100px;
    position: relative;
    background-color: $basecolor;
    @include maxwidth(768) {
        padding: 40px 0;
    }
    .container {
        @include container(1280, 30);
        @include maxwidth(768) {
            margin-left: 15px;
            margin-right: 15px;
        }
        .heading {
            align-items: flex-start;
        }
        .body {
            margin-top: 30px;
            @include maxwidth(768) {
                margin-top: 20px;
            }
            .news-terms {
                @include maxwidth(768) {
                    ul {
                        gap: 0px;
                    }
                    a { min-width: initial !important; }
                }
            }
            .news-headline {
                margin-top: 10px;
            }
            .c-buttons {
                margin-top: 40px;
                @include maxwidth(768) {
                    margin-top: 30px;
                }
            }
            .c-button {
                &__link {
                }
            }
        }
    }
}

// === Subpage ===

#subpageTopicpath {
    @include f_all(14);
    font-weight: 500;
    line-height: 1.4;
    padding-top: 165px;
    margin-bottom: 40px;
    position: relative;
    @include maxwidth(768) {
        @include f_all(13);
        padding-top: 120px;
        margin-bottom: 30px;
    }
    .container {
        margin: 0 (50 / 1440 * 100vw);
        @include maxwidth(768) {
            margin-left: 15px;
            margin-right: 15px;
        }
        ul {
            li {
                display: inline-flex;

                &::after {
                    content: '－';
                    margin: 0 0.5em;
                }

                &:last-child::after {
                    display: none;
                }

            }
        }
    }
}

#subpageHeading {
    margin: 40px 0 35px;
    position: relative;
    @include maxwidth(768) {
        margin: 35px 0 30px;
    }
    .container {
        margin: 0 (50 / 1440 * 100vw);
        @include maxwidth(768) {
            margin-left: 15px;
            margin-right: 15px;
        }
        .c-heading {
            align-items: flex-start;
            .ja {
                @include maxwidth(480) {
                    font-size: clamp(12px, (12 / 320 * 100vw), 14px);
                }
            }
            .en {
                @include maxwidth(480) {
                    font-size: clamp(24px, (24 / 320 * 100vw), 40px);
                }
            }
        }
    }
}

#subpageNavigation {
    margin: 35px 0 50px;
    position: relative;
    @include maxwidth(768) {
        margin: 30px 0 40px;
    }
    .container {
        margin: 0 (50 / 1440 * 100vw);
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
        @include maxwidth(768) {
            margin-left: 15px;
            margin-right: 15px;
            gap: 5px;
        }
        a {
            @include f_all(14);
            font-weight: 500;
            line-height: 1.4;
            @include flex_centering;
            padding: 0.5em 20px 0.5em 35px;
            box-sizing: border-box;
            min-height: 45px;
            color: $themetextcolor;
            background-color: $themecolor;
            position: relative;
            @include maxwidth(768) {
                padding: 0.5em 12px 0.5em 30px;
                min-height: 40px;
            }

            &::before {
                content: '＋';
                position: absolute;
                inset: calc(50% - 0.15em) auto auto 15px;
                transform: translate(0, -50%);
                @include maxwidth(768) {
                    inset: calc(50% - 0.15em) auto auto 10px;
                }
            }

            .label {
                --shift: 150%;
                display: inline-block;
                position: relative;
                overflow: hidden;
                .label-inner {
                    display: inline-block;
                    position: relative;
                    transition: transform 400ms var(--base-easing);
                    &.clone {
                        position: absolute;
                        inset: 0 auto auto 0;
                        transform: translate(0,var(--shift));
                    }
                }
            }

            @media (any-hover: hover) {
                transition: border-radius 400ms var(--base-easing);
                &:hover {
                    border-radius: 10em;
                    .label {
                        .label-inner {
                            transform: translate(0,calc(var(--shift) * -1));
                            &.clone {
                                transform: translate(0,0) !important;
                            }
                        }
                    }
                }
            }

        }
    }
}

#subpageHeadingVisual {
    margin: 50px 0;
    position: relative;
    @include maxwidth(768) {
        margin: 40px 0;
    }
    .image {
        max-height: 45vh;
        height: 520px;
        @include maxwidth(768) {
            height: (520 / 768 * 100vw);
            min-height: 200px;
        }
        position: relative;
        overflow: hidden;
        > img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }
}

#subpageContent {
    margin: 80px 0 100px;
    position: relative;
    @include maxwidth(768) {
        margin: 60px 0 80px;
    }
    .container {
        @include container(1080, 30);
        @include maxwidth(768) {
            margin-left: 15px;
            margin-right: 15px;
        }

        .block-detail {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            flex-wrap: wrap;
            gap: 0.5rem;
        }

        .sibling-buttons {
            position: relative;
            margin-top: 80px;
            .c-buttons {
                gap: 5px;
                justify-content: flex-start;
                .c-button {
                    flex-basis: calc((100% - (5px * 2)) / 3);
                    @include maxwidth(768) {
                        flex-basis: calc((100% - (5px * 1)) / 2);
                    }
                    &:last-child {
                        flex-basis: 100%;
                        .c-button__link {
                            justify-content: center;
                            min-height: 60px;
                        }
                    }
                    &__link {
                        min-width: initial;
                        min-height: 60px;
                        @include maxwidth(360) {
                            padding-left: 10px;
                            padding-right: calc(10px + 1em);
                            &::after { right: 10px; }
                        }
                        &.current {
                            pointer-events: none;
                            background-color: $themecolor3;
                        }
                    }
                }
            }
        }

    }
}

.pager {
    text-align: center;
    margin: 60px 0 40px;
    @include f_all(13);
    a,
    span {
        display: inline-block;
        margin: 0 0 0.25em 0.75em;
        min-width: 3em;
        padding: 1em;
        box-sizing: border-box;
        background-color: $themecolor3;
    }
    .current {
        color: $themetextcolor;
        background-color: $themecolor;
    }
}

div.monthly_archive_link {
    @include container(800, 10);
    margin-top: 50px;
    @include f_all(14);
    a.show_archive_links {
        display: block;
        width: 200px;
        height: 30px;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: mix($basetextcolor, $basecolor, 0.1);
        margin: auto;
        border-radius: 30px;
        position: relative;
        &:after {
            content: ">";
            display: inline-block;
            transform: rotateZ(90deg) scaleX(0.5);
            position: absolute;
            right: 30px;
            top: 0;
            bottom: 0;
            margin: auto;
        }
    }
    ul {
        margin-top: 20px;
        display: none;
        &.show {
            display: flex;
        }
        justify-content: center;
        flex-wrap: wrap;
        li {
            margin: 0 5px 10px;
            flex: 0 0 113px;
            text-align: center;
            a {
                display: block;
                background-color: mix($basetextcolor, $basecolor, 0.05);
                padding: 7px 0;
                border-radius: 15px;
            }
        }
    }
}
