// スタイルシート common

@charset "utf-8";

@import "mixin";

:root {
    --header-h: 0px;
    --mv-foot-h: 0px;
}

html {
    scroll-behavior: smooth;
}

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

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

:where(figure) {
    margin: 0px;
}

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

/* Component */

br.sp {
    @media screen and (min-width: 1025px) {
        display: none !important;
    }
}

br.pc {
    @include maxwidth(1024) {
        display: none !important;
    }
}

#header {
    color: $basetextcolor;
    position: relative;
    body.toppage & {
        color: $themetextcolor;
        position: absolute;
        @include maxwidth(1024) {
            position: relative;
        }
    }
    z-index: 20;
    inset: 0 0 auto 0;
    isolation: isolate;
    &::before {
        content: "";
        pointer-events: none;
        position: absolute;
        z-index: -1;
        inset: 0;
        background-color: $basecolor;
        body.toppage & {
            background: linear-gradient(
                180deg,
                #22232b -31.54%,
                rgba(34, 35, 43, 0) 100%
            );
            @include maxwidth(1024) {
                background: $basecolor;
            }
        }
    }
    .container {
        padding: 40px (40 / 1440 * 100vw) 45px;
        box-sizing: border-box;
        display: flex;
        justify-content: space-between;
        gap: 2rem;
        @include maxwidth(1024) {
            padding-top: 20px;
            padding-bottom: 20px;
        }
        .l-left {
            .sitenmae {
                a {
                    display: flex;
                    flex-direction: column;
                    gap: 10px;
                    @include maxwidth(1024) {
                        gap: 5px;
                    }
                    > img {
                        width: 210px;
                        @include maxwidth(1024) {
                            width: 144px;
                        }
                        &.desktop {
                            @include maxwidth(1024) {
                                display: none !important;
                            }
                        }
                        &.mobile {
                            @media screen and (min-width: 1025px) {
                                display:none !important;
                            }
                        }
                    }
                    .sitedescription {
                        @include f_all(12);
                        @include maxwidth(1024) {
                            @include f_all(10);
                        }
                        font-weight: 500;
                        line-height: 1.3;
                        @include flex_centering;
                        color: $themetextcolor;
                        background-color: $basetextcolor;
                        padding: 0 1em 2px;
                        min-height: 1.667em;
                        box-sizing: border-box;
                    }
                }
            }
        }
        .l-right {
            @include maxwidth(1024) {
                display: none !important;
            }

            body.toppage & {
                opacity: 0;
                transform: translate(0, -20px);
                transition: all 800ms;
            }
            body.toppage.loaded & {
                opacity: 1;
                transform: translate(0, 0px);
            }
            .sns-list {
                display: flex;
                align-items: center;
                justify-content: flex-end;
                gap: 20px;
                li {
                    flex-basis: 20px;
                    a {
                        > img {
                            body.toppage & {
                                filter: brightness(0) invert(1);
                            }
                        }
                        @media (any-hover: hover) {
                            > img {
                                transition: transform 250ms;
                            }
                            &:hover {
                                > img {
                                    transform: translate(0, -2px);
                                }
                            }
                        }
                    }
                }
            }
            .menu {
                margin-top: 20px;
                > ul {
                    display: flex;
                    align-items: flex-end;
                    flex-wrap: wrap;
                    gap: 30px;
                    > li {
                        position: relative;
                        > a {
                            @include f_all(14);
                            font-weight: 500;
                            line-height: 1.3;
                            text-align: center;
                            display: flex;
                            flex-direction: column-reverse;
                            align-items: center;
                            gap: 3px;
                            box-sizing: border-box;
                            position: relative;
                            &::before {
                                content: attr(data-en);
                                @include f_all(9);
                                font-weight: 400;
                                line-height: 1.3;
                                text-transform: uppercase;
                            }
                            &.parent {
                                .txt {
                                    display: inline-flex;
                                    align-items: center;
                                    gap: 5px;
                                    &::after {
                                        content: "";
                                        flex-shrink: 0;
                                        display: block;
                                        width: 11px;
                                        height: 11px;
                                        background: transparent
                                            url(../images/arrow-bottom-b.svg)
                                            center / contain no-repeat;
                                        margin-bottom: 0.15em;
                                        transition: transform 300ms ease;
                                        body.toppage & {
                                            background-image: url(../images/arrow-bottom-w.svg);
                                        }
                                    }
                                }
                                &.is-open .txt::after {
                                    transform: rotate(-180deg);
                                }
                            }

                            &:not([data-en="contact"]) {
                                padding-bottom: 11px;
                                &::after {
                                    content: "";
                                    display: block;
                                    position: absolute;
                                    inset: auto auto 0 50%;
                                    width: 65px;
                                    height: 2px;
                                    transform: translate(-50%, 0) scale(0);
                                    transform-origin: center center;
                                    background: $accentcolor;
                                    transition: transform 300ms ease;
                                }

                                &.current {
                                    &::after {
                                        transform: translate(-50%, 0) scale(1);
                                    }
                                }

                                &.is-open {
                                    &::after {
                                        transform: translate(-50%, 0)
                                        scale(1);
                                    }
                                }

                                @media (any-hover: hover) {
                                    &:hover {
                                        &::after {
                                            transform: translate(-50%, 0)
                                                scale(1);
                                        }
                                    }
                                }
                            }
                            &[data-en="contact"] {
                                @include flex_centering;
                                color: $accenttextcolor;
                                background-color: $accentcolor;
                                min-width: 150px;
                                min-height: 55px;
                                @media (any-hover: hover) {
                                    transition: all 250ms;
                                    &:hover {
                                       filter: brightness(120%);
                                       -webkit-filter: brightness(120%);
                                       box-shadow: 0 10px 20px -5px rgba(0, 0, 0, .20);
                                       transform: translateY(-4px);
                                       border-radius: 100px;
                                    }
                                }
                            }
                        }
                        > ul {
                            display: none;
                            > li {
                                > a {
                                }
                            }
                        }
                    }
                }
                .parent {
                    cursor: pointer;
                }
                .children {
                    position: absolute;
                    top: calc(100% + 12px);
                    left: 50%;
                    z-index: 5;
                    display: block; // フォールバックの display:none を上書き
                    min-width: 200px;
                    background-color: $themecolor2;
                    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);

                    // 初期状態（非表示）
                    opacity: 0;
                    visibility: hidden;
                    pointer-events: none;
                    transform: translate(-50%, -8px);
                    transition: opacity 280ms ease, transform 280ms ease,
                        visibility 280ms ease;

                    &.is-open {
                        opacity: 1;
                        visibility: visible;
                        pointer-events: auto;
                        transform: translate(-50%, 0);
                    }

                    li {
                        a {
                            display: block;
                            white-space: nowrap;
                            @include f_all(13);
                            font-weight: 500;
                            line-height: 1.3;
                            color: $themetextcolor;
                            padding: 11px 24px;
                            transition: background-color 200ms ease,
                                color 200ms ease;
                        }
                        &:not(:last-child) > a {
                            border-bottom: 1px solid rgba(255, 255, 255, 0.12);
                        }
                        @media (any-hover: hover) {
                            a:hover {
                                background-color: rgba(255, 255, 255, 0.08);
                            }
                        }
                    }
                }
            }
        }
    }
}

.gnav-toggle {
    cursor: pointer;
    display: block;
    width: 45px;
    height: 45px;
    background-color: $basetextcolor;
    color: $themetextcolor;
    position: relative;
    body.menu_open & {
        background-color: $accentcolor;
    }
    .b {
        > span {
            display: inline-block;
            width: 20px;
            height: 1px;
            background-color: currentColor;
            position: absolute;
            inset: 0;
            margin: auto;
            @include flex_centering;
            transition: transform 0.3s ease, opacity 0.3s ease;

            &:nth-of-type(1) {
                transform: translate(0, -6px);
            }
            &:nth-of-type(2) {
            }
            &:nth-of-type(3) {
                transform: translate(0, 6px);
            }
        }
    }

    // ハンバーガー → × （メニュー展開中）
    body.menu_open & {
        .b > span {
            &:nth-of-type(1) {
                transform: rotate(45deg);
            }
            &:nth-of-type(2) {
                opacity: 0;
            }
            &:nth-of-type(3) {
                transform: rotate(-45deg);
            }
        }
    }

    &-wrapper {
        position: fixed;
        @include maxwidth(768) {
            position: absolute;
        }
        inset: 30px 20px auto auto;
        z-index: 101;

        @media screen and (min-width: 1025px) {
            opacity: 0;
            transform: translate(100%, 0);
            transition: opacity 200ms, transform 200ms;
            body.header_scrollout & {
                opacity: 1;
                transform: translate(0, 0);
            }
        }

        @media screen and (min-width: 769px) {
            body.admin-bar & {
                top: calc(30px + 32px);
            }
        }

    }
}

#gnav {
    @include ff_ja;
    color: $basetextcolor;

    .container {
        @include container(840, 20);
        box-sizing: border-box;
        min-height: 100vh;
        min-height: 100dvh;
        padding-top: 100px;
        padding-bottom: 64px;
        display: flex;
        flex-direction: column;
        gap: 10vh;
        @include maxwidth(768) {
            padding-top: 60px;
            padding-bottom: 100px;
            gap: 50px;
        }

        body.admin-bar & {
            padding-top: calc(100px + 32px);
            @include maxwidth(768) {
                padding-top: calc(60px + 32px);
            }
        }

        .head {
            @include flex_centering;
            gap: 1rem;

            .logo {
                display: inline-block;
                line-height: 0;
                > img {
                    width: auto;
                    height: 50px;
                }
            }
        }

        .body {
            flex: 1 1 auto;
            display: flex;
            flex-direction: column;
            gap: 56px;
            @include maxwidth(768) {
                gap: 30px;
            }
        }
    }

    //メインメニュー（白基調・罫線区切りのリスト）
    .gnav-menu {
        li:has(a[data-en="contact"]) { display: none !important; }
        > ul {
            > li {
                border-bottom: 1px solid rgba($basetextcolor, 0.12);
                &:first-child {
                    border-top: 1px solid rgba($basetextcolor, 0.12);
                }

                > a {
                    @include flex_centering;
                    min-height: 55px;
                    padding: 0.5em 1em;
                    box-sizing: border-box;
                    color: $basetextcolor;
                    text-decoration: none;
                    @include f_all(16);
                    font-weight: 600;
                    line-height: 1.3;
                    position: relative;
                    @include maxwidth(768) {
                        @include f_all(15);
                        min-height: 50px;
                    }

                    //現在地
                    &.current {
                        color: $accentcolor;
                    }

                    //子メニューを持つ親（開閉矢印）
                    &.parent {
                        &::after {
                            content: "";
                            position: absolute;
                            right: 1.2em;
                            top: 50%;
                            width: 12px;
                            height: 12px;
                            margin-top: -6px;
                            background: url(../images/arrow-bottom-b.svg) center /
                                contain no-repeat;
                            transition: transform 0.3s ease;
                        }
                        &.is-open::after {
                            transform: rotate(-180deg);
                        }
                    }

                    @media (any-hover: hover) {
                        transition: background-color 0.25s ease;
                        &:hover {
                            background-color: $themecolor3;
                        }
                    }
                }

                //サブメニュー（.children：クリックでアコーディオン開閉）
                > ul {
                    overflow: hidden;
                    max-height: 0;
                    background-color: rgba($basetextcolor, 0.03);
                    transition: max-height 0.35s ease;

                    &.is-open {
                        max-height: 500px;
                    }

                    li {
                        &:not(:last-child) > a {
                            border-bottom: 1px solid rgba($basetextcolor, 0.08);
                        }
                        a {
                            @include flex_centering;
                            min-height: 45px;
                            padding: 0.5em 1em;
                            box-sizing: border-box;
                            color: rgba($basetextcolor, 0.7);
                            text-decoration: none;
                            @include f_all(14);
                            font-weight: 500;
                            line-height: 1.3;

                            @media (any-hover: hover) {
                                transition: background-color 0.25s ease, color 0.25s ease;
                                &:hover {
                                    color: $basetextcolor;
                                    background-color: $themecolor3;
                                }
                            }
                        }
                    }
                }
            }
        }
    }

    //フッター（連絡先・SNS）
    .foot {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 2rem;
        @include maxwidth(768) {
            flex-direction: column;
            align-items: stretch;
        }

        .gnav-contact {
            display: flex;
            align-items: center;
            gap: 1rem;
            @include maxwidth(768) {
                flex-direction: column;
                align-items: stretch;
            }

            .tel {
                display: flex;
                flex-direction: column;
                gap: 2px;
                color: $basetextcolor;
                text-decoration: none;
                @include maxwidth(768) {
                    align-items: center;
                }
                .num {
                    @include f_all(23);
                    font-weight: 600;
                    line-height: 1.1;
                    padding-left: 26px;
                    position: relative;
                    &::before {
                        content: "";
                        position: absolute;
                        left: 0;
                        top: 50%;
                        transform: translateY(-50%);
                        width: 18px;
                        height: 18px;
                        background-color: $basetextcolor;
                        -webkit-mask: url(../images/icon-tel-w.svg) center / contain
                            no-repeat;
                        mask: url(../images/icon-tel-w.svg) center / contain no-repeat;
                    }
                }
                .time {
                    @include f_all(12);
                    font-weight: 500;
                    color: rgba($basetextcolor, 0.6);
                }
            }

            .form {
                @include flex_centering;
                min-width: 210px;
                min-height: 56px;
                padding: 0 1.5em;
                box-sizing: border-box;
                color: $accenttextcolor;
                background-color: $accentcolor;
                text-decoration: none;
                @include f_all(15);
                font-weight: 600;
                position: relative;
                @include maxwidth(768) {
                    width: 100%;
                    min-height: 50px;
                }

                &::before {
                    content: '';
                    display: block;
                    flex-shrink: 0;
                    width: 13px;
                    height: 10px;
                    background: url(../images/icon-mail-w.svg) center / contain no-repeat;
                    margin-right: 2px;
                    margin-top: 0.25em;
                }
                &::after {
                    content: '';
                    width: 18px;
                    height: 18px;
                    background: $accentcolor url(../images/arrow-right-w.svg) left 15% top 55% / 11px auto no-repeat;
                    position: absolute;
                    inset: 0 10px 0 auto;
                    margin: auto;
                }

                @media (any-hover: hover) {
                    transition: all 250ms;
                    &:hover {
                        filter: brightness(120%);
                        -webkit-filter: brightness(120%);
                        box-shadow: 0 10px 20px -5px rgba(0, 0, 0, .20);
                        transform: translateY(-4px);
                        border-radius: 100px;
                    }
                }
            }
        }

        .sns-list {
            display: flex;
            align-items: center;
            gap: 22px;
            @include maxwidth(768) {
                justify-content: center;
            }
            li {
                line-height: 0;
            }
            a {
                display: inline-block;
                width: 20px;

                > img {
                }

                @media (any-hover: hover) {
                    > img {
                        transition: transform 250ms;
                    }
                    &:hover {
                        transform: translate(0, -2px);
                    }
                }
            }
        }
    }

    //開閉アニメーション用の初期状態（項目スタッガー）
    .gnav-menu > ul > li,
    .foot {
        opacity: 0;
        transform: translateY(16px);
        transition: opacity 0.5s ease, transform 0.5s ease;
    }

    &Wrapper {
        position: fixed;
        inset: 0;
        z-index: 100;
        overflow-y: auto;
        overscroll-behavior: contain;
        background-color: $basecolor;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.45s ease, visibility 0.45s ease;

        -ms-overflow-style: none;
        scrollbar-width: none;
        &::-webkit-scrollbar { display: none; }
    }
}

//メニュー展開中
body.menu_open {
    #gnavWrapper {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    #gnav {
        .gnav-menu > ul > li,
        .foot {
            opacity: 1;
            transform: none;
        }
        @for $i from 1 through 10 {
            .gnav-menu > ul > li:nth-child(#{$i}) {
                transition-delay: #{0.06 + $i * 0.05}s;
            }
        }
        .foot {
            transition-delay: 0.42s;
        }
    }
}

//モーション低減設定の尊重
@media (prefers-reduced-motion: reduce) {
    #gnavWrapper {
        transition: opacity 0.01ms linear, visibility 0.01ms linear;
    }
    #gnav .gnav-menu > ul > li,
    #gnav .foot {
        transition: none;
        opacity: 1;
        transform: none;
    }
}

@keyframes scrolldown_anime {
    0% {
        transform: translate(0, -72px);
    }
    100% {
        transform: translate(0, 0px);
    }
}
@keyframes scrolldown_anime_sp {
    0% {
        transform: translate(0, -42px);
    }
    100% {
        transform: translate(0, 0px);
    }
}
@keyframes zoomUp {
    from { transform: scale(1); }
    to { transform: scale(1.15); }

}

#bgmedia {
    position: fixed;
    inset: 0;
    height: 100vh;
    .swiper {
        &::after {
            content: "";
            pointer-events: none;
            display: block;
            position: absolute;
            z-index: 1;
            inset: 0;
            background: rgba(34, 35, 43, 0.3);
            @include maxwidth(1024) {
                background: rgba(#000, 0.4);
            }
        }
        .swiper-wrapper {
        }
        .swiper-slide {
            height: 100vh;
            height: 100svh;
            min-height: 600px;
            @include maxwidth(1024) {
                height: calc(100vh - (var(--header-h) + var(--mv-foot-h)));
                height: calc(100svh - (var(--header-h) + var(--mv-foot-h)));
                min-height: 400px;
            }

            body.admin-bar & {
                height: calc(100vh - 32px);
                height: calc(100svh - 32px);
                @include maxwidth(1024) {
                    height: calc(100vh - (var(--header-h) + var(--mv-foot-h)) - 32px);
                    height: calc(100svh - (var(--header-h) + var(--mv-foot-h)) - 32px);
                }
            }

            > img {
                width: 100%;
                height: 100%;
                object-fit: cover;
            }

            &-active > img,
            &-duplicate-active > img,
            &-prev > img {
                animation: zoomUp 7s linear 0s normal both;
            }
        }
    }
}

#mainVisual {
    position: relative;
    .container {
        .swiper {
            &::after {
                content: "";
                pointer-events: none;
                display: block;
                position: absolute;
                z-index: 1;
                inset: 0;
                background: rgba(34, 35, 43, 0.3);
                @include maxwidth(1024) {
                    background: rgba(#000, 0.4);
                }
            }
            .swiper-wrapper {
            }
            .swiper-slide {
                height: 100vh;
                height: 100svh;
                min-height: 600px;
                @include maxwidth(1024) {
                    height: calc(100vh - (var(--header-h) + var(--mv-foot-h)));
                    height: calc(100svh - (var(--header-h) + var(--mv-foot-h)));
                    min-height: 400px;
                }

                body.admin-bar & {
                    height: calc(100vh - 32px);
                    height: calc(100svh - 32px);
                    @include maxwidth(1024) {
                        height: calc(100vh - (var(--header-h) + var(--mv-foot-h)) - 32px);
                        height: calc(100svh - (var(--header-h) + var(--mv-foot-h)) - 32px);
                    }
                }

                > img {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                }

                &-active > img,
                &-duplicate-active > img,
                &-prev > img {
                    animation: zoomUp 7s linear 0s normal both;
                }
            }
        }
        .swiper-buttons {
            @include maxwidth(1024) {
                position: absolute;
                inset: auto 0 calc(var(--mv-foot-h) + 20px) 0;
                margin: auto;
                @include flex_centering;
                gap: 5px;
                z-index: 10;
            }

            .button-prev,
            .button-next {
                cursor: pointer;
                display: block;
                width: 45px;
                height: 45px;
                background: $themecolor2 url(../images/arrow-right-w.svg) left 35% center / 20px auto no-repeat;
                position: absolute;
                z-index: 10;
                top: calc(50% + 40px);
                transform: translate(0, -50%);
                @include maxwidth(1024) {
                    width: 20px;
                    height: 20px;
                    background-size: 10px;
                    position: static;
                    transform: translate(0, 0);
                }
                opacity: 0;
                transition: opacity 300ms 1000ms;
                body.loaded & { opacity: 1; }
            }

            .button-prev {
                transform: scale(-1, 1) translate(0, -50%);
                @include maxwidth(1024) {
                    transform: scale(-1, 1) translate(0, 0);
                }
                background-position: left 45% center;
                left: 40px;
            }
            .button-next {
                right: 40px;
            }
        }
        .overlay {
            color: $themetextcolor;
            position: absolute;
            inset: 80px 0 0 0;
            @include flex_centering;
            flex-direction: column;
            z-index: 5;
            padding: 0 20px;
            box-sizing: border-box;
            @include maxwidth(1024) {
                inset: 10px 0 var(--mv-foot-h) 0;
            }
            .leadtext {
                font-size: clamp(25px, (48 / 1200 * 100vw), 48px);
                @include maxwidth(370) {
                    font-size: clamp(20px, (21 / 320 * 100vw), 25px);
                }
                line-height: 1.3;
                text-align: center;
                text-shadow: 0 0 8px rgba(0, 0, 0, 0.25);
                .char {
                    display: inline-block;
                    overflow: hidden;
                    > span {
                        display: inline-block;
                        opacity: 0;
                        transform: translate(0, calc(1em + 5px));
                        transition: transform 600ms calc(var(--i) * 0.05s) cubic-bezier(0.65, 0, 0.35, 1);
                        body.loaded & {
                            opacity: 1;
                            transform: translate(0, 0);
                        }
                    }
                }
            }
            .text {
                font-size: clamp(14px, (20 / 1200 * 100vw), 20px);
                line-height: 1.5;
                text-align: center;
                text-shadow: 0 0 8px rgba(0, 0, 0, 0.25);
                margin-top: 11px;
                @include maxwidth(768) {
                    margin-top: 8px;
                }
                @include maxwidth(360) {
                    font-size: 13px;
                }

                opacity: 0;
                transform: translate(0, 1rem);
                transition: all 500ms 600ms;
                body.loaded & {
                    opacity: 1;
                    transform: translate(0, 0);
                }
            }
            .c-button {
                margin-top: 26px;
                @include maxwidth(768) {
                    margin-top: 16px;
                }
                &__link {
                }

                opacity: 0;
                transform: translate(0, 1rem);
                transition: all 500ms 700ms;
                body.loaded & {
                    opacity: 1;
                    transform: translate(0, 0);
                }
            }
        }
        .l-foot {
            display: contents;
            @include maxwidth(1024) {
                display: block;
                height: 70px;
                background-color: $basecolor;
                position: relative;
            }
            .scrolldown {
                color: $themetextcolor;
                position: absolute;
                z-index: 5;
                inset: auto 50px 0 auto;
                @include maxwidth(1024) {
                    color: $basetextcolor;
                    inset: auto auto -20px 50%;
                    transform: translate(-50%, 0);
                }
                &__link {
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    gap: 0.888em;
                    @include f_all(9);
                    border-radius: 5px 5px 0 0;
                    padding: 8px 8px 0px;
                    box-sizing: border-box;
                    transition: background 300ms ease;
                    @include maxwidth(1024) {
                        font-weight: 500;
                    }
                    .txt {
                        @media screen and (min-width: 1025px) {
                            display: inline-block;
                            width: 1em;
                            writing-mode: vertical-lr;
                        }
                    }

                    &::before {
                        content: "";
                        display: block;
                        width: 8px;
                        height: 8px;
                        background-color: $accentcolor;
                        position: absolute;
                        inset: auto 0 0px 0;
                        margin: auto;
                        animation: scrolldown_anime 3s ease infinite;
                        @include maxwidth(1024) {
                            animation-name: scrolldown_anime_sp;
                        }
                    }
                    &::after {
                        content: "";
                        display: block;
                        width: 1px;
                        height: 80px;
                        background-color: #fff;
                        margin-left: 1px;
                        @include maxwidth(1024) {
                            height: 50px;
                            background-color: $basetextcolor;
                        }
                    }

                    @media (any-hover: hover) {
                        &:hover {
                        }
                    }
                }
            }
        }
    }
    .shifts {
        pointer-events: none;
        width: 100%;
        position: absolute;
        inset: auto auto 0 0;
        z-index: 10;
        @include maxwidth(768) {
            bottom: -20px;
        }
        .shift {
            width: 100%;
            height: calc(100px + 1px);
            margin-bottom: -1px;
            background-color: $basecolor;
            transform: scale(1, 0);
            transform-origin: bottom;
        }
    }
}

#contentFooter {
    position: relative;
    #contentFooterMap {
        pointer-events: none;
        @include flex_centering;
        height: 380px;
        @include maxwidth(1024) {
            height: 250px;
        }
        overflow: hidden;
        position: relative;
        iframe {
            width: 100%;
            height: calc(100% + 300px);
        }
        body.page-company &{
            display: none;
        }
    }
}

#footer {
    color: $themetextcolor;
    padding: 45px 0 35px;
    background-color: $themecolor2;
    position: relative;
    @include maxwidth(768) {
        padding: 40px 0 75px;
    }
    .container {
        @include container(1200, 20);
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        @include maxwidth(1200) {
            justify-content: initial;
            > * {
                flex-basis: 100%;
            }
        }
        .l-left {
            .sitename {
                @include maxwidth(1200) {
                    text-align: center;
                }
                a {
                    > img {
                        width: 210px;
                        @include maxwidth(768) {
                            width: 145px;
                        }
                    }
                }
            }
            .address {
                @include f_all(12);
                font-weight: 500;
                line-height: 1.5;
                margin-top: 10px;
                @include maxwidth(1200) {
                    text-align: center;
                }
                > *:not(:first-child) {
                    margin-top: 1em;
                }

            }
        }
        .l-right {
            @include maxwidth(1200) {
                margin-top: 26px;
            }
            .contact-buttons {
                display: flex;
                align-items: center;
                justify-content: flex-end;
                flex-wrap: wrap;
                gap: 48px;
                @include maxwidth(1200) {
                    justify-content: center;
                    gap: 20px;
                }
                @include maxwidth(768) {
                    justify-content: initial;
                    flex-direction: column;
                }
                .contact-button {
                    @include maxwidth(768) {
                        width: 100%;
                    }
                    &:not(.tel) {
                        .contact-button__link {
                            @include f_all(14);
                            font-weight: 500;
                            line-height: 1.3;
                            @include flex_centering;
                            min-width: 200px;
                            min-height: 55px;
                            color: $accenttextcolor;
                            background-color: $accentcolor;
                            position: relative;
                            .txt {
                                display: inline-flex;
                                align-items: center;
                                flex-wrap: wrap;
                                gap: 4px;
                                &::before {
                                    content: "";
                                    flex-shrink: 0;
                                    display: block;
                                    width: 13px;
                                    height: 10px;
                                    background: transparent
                                        url(../images/icon-mail-w.svg) center /
                                        contain no-repeat;
                                    margin-top: 0.1em;
                                }
                            }
                            &::after {
                                content: "";
                                display: block;
                                width: 11px;
                                height: 11px;
                                background: transparent
                                    url(../images/arrow-right-w.svg) center /
                                    contain no-repeat;
                                position: absolute;
                                inset: 0 1em 0 auto;
                                margin: auto;
                            }

                            @media (any-hover: hover) {
                                transition: all 250ms;
                                &:hover {
                                    filter: brightness(120%);
                                    -webkit-filter: brightness(120%);
                                    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, .20);
                                    transform: translateY(-4px);
                                    border-radius: 100px;
                                }
                            }
                        }
                    }
                    &.tel {
                        .contact-button__link {
                            display: flex;
                            flex-direction: column;
                            align-items: center;
                            position: relative;
                            gap: 4px;
                            text-align: center;
                            .num {
                                @include f_all(24);
                                font-weight: 500;
                                line-height: 1.3;
                                padding-left: 22px;
                                box-sizing: border-box;
                                background: url(../images/icon-tel-w.svg) left
                                    top 55% / 14px auto no-repeat;
                            }
                            .time {
                                @include f_all(13);
                                font-weight: 500;
                                line-height: 1.3;
                            }
                        }
                    }
                }
            }
            .menu,
            .aside-menu {
                @include f_all(13);
                font-weight: 500;
                line-height: 1.3;
                @include maxwidth(1024) {
                    @include f_all(14);
                }
                ul {
                    display: flex;
                    align-items: center;
                    justify-content: flex-end;
                    flex-wrap: wrap;
                    gap: 2.308em;
                    @include maxwidth(1200) {
                        justify-content: center;
                    }
                    @include maxwidth(1024) {
                        flex-direction: column;
                        align-items: initial;
                        justify-content: initial;
                        gap: 3px;
                    }
                    li {
                        a {
                            @include maxwidth(1024) {
                                @include flex_centering;
                                min-height: 40px;
                                color: $themetextcolor;
                                background-color: $basetextcolor;
                            }

                            @media (any-hover: hover) {
                                &:hover { opacity: 0.8; }
                            }
                        }
                    }
                }
            }
            .menu {
                margin-top: 30px;
                ul {
                    li {
                        a {
                        }
                    }
                }
            }
            .aside-menu {
                margin-top: 20px;
                @include maxwidth(1024) {
                    margin-top: 3px;
                }
                ul {
                    li {
                        a {
                        }
                    }
                }
            }
        }
        .l-bottom {
            flex-basis: 100%;
            margin-top: 43px;
            @include maxwidth(1200) {
                margin-top: 20px;
            }
            .copyright {
                text-align: right;
                small {
                    @include f_all(12);
                    font-weight: 500;
                    line-height: 1.3;
                }
            }
        }
    }
}

#footbar {
    @media screen and (min-width: 769px) {
        display: none !important;
    }
    position: fixed;
    inset: auto 0 0 0;
    z-index: 101;
    opacity: 0;
    transform: translate(0, 100%);
    transition: all 250ms;
    body.header_scrollout & {
        opacity: 1;
        transform: translate(0, 0);
    }
    ul {
        display: flex;
        li {
            flex: 1;
            &:has(> .gnav-toggle) {
                flex: 0 0 45px;
            }
            a {
                &:not(.gnav-toggle) {
                    @include f_all(13);
                    font-weight: 500;
                    line-height: 1.3;
                    @include flex_centering;
                    gap: 2px;
                    height: 45px;
                    color: $accenttextcolor;
                    background-color: $accentcolor;
                    position: relative;
                }

                &.tel {
                    flex-direction: column;
                    color: $themetextcolor;
                    background-color: $basetextcolor;
                    .num {
                        @include f_all(15);
                        @include maxwidth(360) {
                            @include f_all(14);
                        }
                        display: inline-flex;
                        align-items: center;
                        gap: 5px;
                        &::before {
                            content: '';
                            flex-shrink: 0;
                            display: block;
                            width: 10px;
                            height: 17px;
                            background: transparent url(../images/icon-tel-w.svg) center / contain no-repeat;
                            margin-top: 0.15em;
                        }
                    }
                    .time {
                        @include f_all(10);
                        @include maxwidth(360) {
                            @include f_all(8);
                        }
                    }
                }
                &.form {
                    &::before {
                        content: '';
                        flex-shrink: 0;
                        display: block;
                        width: 12px;
                        height: 10px;
                        background: transparent url(../images/icon-mail-w.svg) center / contain no-repeat;
                        margin-top: 0.2em;
                    }
                }
                &.gnav-toggle {
                    body.menu_open & {
                        border-left: 1px solid $basecolor;
                    }
                }
            }
        }
    }
}

.information-terms {
    position: relative;
    body.subpage & {
        margin-bottom: 30px;
    }
    ul {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 5px;
        li {
            body.subpage & {
                @include maxwidth(768) {
                    flex-basis: calc((100% - 5px) / 2);
                    &:first-of-type {
                        flex-basis: 100%;
                    }
                    a {
                        min-width: initial !important;
                    }
                }
            }
            a {
                @include f_all(14);
                font-weight: 500;
                line-height: 1.3;
                @include flex_centering;
                color: $basetextcolor;
                background-color: $themecolor3;
                min-width: 200px;
                min-height: 45px;
                box-sizing: border-box;
                padding: 0.25em 2em;
                position: relative;
                transition: filter 300ms ease;
                @include maxwidth(768) {
                    min-width: initial;
                    min-height: 40px;
                    padding-left: 1em;
                    padding-right: 1em;
                }

                &::after {
                    content: '';
                    display: block;
                    width: 18px;
                    height: 18px;
                    background: $themecolor3 url(../images/arrow-right-b.svg) left 20% top 55% / 11px auto no-repeat;
                    position: absolute;
                    inset: 0 10px 0 auto;
                    margin: auto;
                    opacity: 0;
                    transform: translate(-4px, 0);
                    transition: all 250ms;
                    @include maxwidth(768) {
                        right: 5px;
                    }
                }

                &.current {
                    color: $themetextcolor;
                    background-color: $themecolor;
                    &::after {
                        background-color: $themecolor;
                        background-image: url(../images/arrow-right-w.svg);
                    }
                }

                @media (any-hover:hover) {
                    transition: filter 200ms;
                    &:hover {
                        filter: brightness(90%);
                        &.current { filter: brightness(120%); }
                        &::after {
                            opacity: 1;
                            transform: translate(0, 0);
                        }
                    }
                }
            }
        }
    }
}

.information-headline {
    position: relative;
    .headline-items {
    }
    .headline-item {
        border-bottom: 1px solid #d1d1d6;
        &:last-of-type {
            border-bottom: none;
        }
        &__link {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 20px;
            padding: 21px 60px 22px 40px;
            box-sizing: border-box;
            position: relative;
            transition: opaicty 300ms ease;
            @include maxwidth(768) {
                gap: 10px;
                padding: 18px 40px 18px 10px;
            }

            .date {
                flex-shrink: 0;
                @include f_all(14);
                color: $themecolor2;
                line-height: 1.3;
                font-weight: 600;
                @include maxwidth(768) {
                    @include f_all(13);
                }
            }
            .terms {
                color: $basetextcolor;
                @include f_all(13);
                font-weight: 500;
                line-height: 1;
                display: flex;
                align-items: center;
                flex-wrap: wrap;
                gap: 0.2em;
                margin-right: 25px;
                @include maxwidth(1024) {
                    margin-right: 0px;
                }
                .term {
                    &::before {
                        content: "#";
                    }
                }
            }
            .title {
                color: $themecolor2;
                @include f_all(13);
                line-height: 1.3;
                font-weight: 500;
                @include maxwidth(1024) {
                    flex-basis: 100%;
                }
            }

            &::after {
                content: "";
                display: block;
                width: 11px;
                height: 11px;
                background: transparent url(../images/arrow-right-b.svg)
                    center / contain no-repeat;
                position: absolute;
                inset: 0 40px 0 auto;
                margin: auto;
                @include maxwidth(768) {
                    inset: 0 20px 0 auto;
                }
            }

            @media (any-hover: hover) {
                isolation: isolate;
                &::before {
                    content: '';
                    display: block;
                    position: absolute;
                    z-index: -1;
                    inset: 0;
                    background-color: rgba(#f3f3f3, 0.55);
                    transform: scaleY(0);
                    transform-origin: center bottom;
                    transition: transform 250ms;
                }
                &:hover {
                    &::before {
                        transform: scaleY(1);
                        transform-origin: center top;
                    }
                }
            }
        }
    }

    // 投稿がない場合、
    .noposts {
        @include f_all(15);
        font-weight: 500;
        padding: 1.5em 1em;
        box-sizing: border-box;
        background-color: mix($accentcolor, $basecolor, 0.05);
        background-color: mix($themecolor, $basecolor, 0.05);
        border-radius: 10px;
        text-align: center;
    }

    &.scroll-target {
        .headline-item {
            opacity: 0;
            transform: translate(-10px, 0);
            transition: opacity 800ms, transform 800ms;
        }
        &.active {
            .headline-item {
                opacity: 1;
                transform: translate(0, 0);
                @for $i from 0 to 4 {
                    &:nth-of-type(#{$i + 1}) {
                        transition-delay: #{$i * 0.10s};
                    }
                }
            }
        }
    }
}

.service-terms {
    --gap: 5px;
    @include f_all(16);
    font-weight: 500;
    line-height: 1.3;
    position: relative;
    @include maxwidth(768) {
        @include f_all(14);
    }
    ul {
        margin-left: 0px;
        display: flex;
        align-items: center;
        gap: var(--gap);
        flex-wrap: wrap;
        li {
            list-style: none;
            margin-bottom: 0px;
            a {
                text-decoration: none;
                @include flex_centering;
                border-radius: 5px;
                padding: 0.5em 40px;
                box-sizing: border-box;
                background-color: $themecolor3;
                border: 1px solid;
                min-height: 2.5em;
                position: relative;
                @include maxwidth(768) {
                    padding: 0.5em 1em;
                }

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

.service-forms {
    --gap: 2px;
    color: $basetextcolor;
    @include f_all(18);
    @include maxwidth(768) {
        @include f_all(16);
    }
    @include maxwidth(370) {
        font-size: clamp(12px, (12 / 320 * 100vw), 16px);
    }
    font-weight: 500;
    line-height: 1.3;
    position: relative;
    & + .service-headline {
        margin-top: 20px !important;
    }
    ul {
        display: flex;
        gap: var(--gap);
        @include maxwidth(1024) {
            flex-wrap: wrap;
        }
        li {
            flex: 1;

            @include maxwidth(1024) {
                flex: 0 0 calc((100% - var(--gap)) / 2);
                &:first-child {
                    flex-basis: 100%;
                }
            }
            @include maxwidth(480) {
                &:not(:first-child) a {
                    padding-left: 10px;
                }
            }
            &:first-child a::after {
                left: 0px;
            }
            &:last-child a::after {
                right: 0px;
            }
            a {
                @include flex_centering;
                width: 100%;
                min-height: 55px;
                background-color: $themecolor3;
                position: relative;
                padding: 0 26px;
                box-sizing: border-box;
                text-align: center;
                @include maxwidth(768) {
                    min-height: 50px;
                }

                &::before {
                    content: '';
                    display: block;
                    width: 15px;
                    height: 15px;
                    position: absolute;
                    inset: 0 8px 0 auto;
                    margin: auto;
                    background: transparent url(../images/arrow-bottom-b.svg) center / 9px auto no-repeat;
                }
                &::after {
                    content: '';
                    display: block;
                    height: 2px;
                    background-color: $themecolor;
                    position: absolute;
                    inset: auto calc(var(--gap) * -1) 0 calc(var(--gap) * -1);
                    margin: auto;

                    @include maxwidth(1024) {
                        display: none;
                    }
                }

                &.current {
                    color: $themetextcolor;
                    background-color: $themecolor;
                    &::before {
                        display: none;
                    }
                }

            }
        }
    }
}

.service-headline {
    position: relative;
    body.subpage & {
        margin-top: 35px;
    }
    .headline-title {
		color: $themecolor;
	    @include f_all(19);
		font-weight: 500;
		line-height: 1.3;
		padding-left: 1.316em;
		box-sizing: border-box;
		position: relative;
		@include maxwidth(768) {
		    @include f_all(18);
		}
		&:has(+ .headline-items) {
		    margin-bottom: 1rem;
		}
		&:has(+ .noposts) {
		    margin-bottom: 1rem;
		}
		&::before {
		    content: '';
			display: block;
			width: 10px;
			height: 10px;
			background-color: $themecolor;
			position: absolute;
			inset: 0.45em auto auto 0;
		}
    }
    .headline-items {
        margin-left: 0;
    }
    .headline-item {
        list-style: none;
        margin-bottom: 0px;
        &:not(:first-of-type) {
            margin-top: 10px;
        }
        &__link {
            text-decoration: none;
            display: block;
            // padding: 20px (40 / 1200 * 100%) 20px (20 / 1200 * 100%);
            padding: 20px (40 / 1200 * 100%) 20px (40 / 1200 * 100%);
            box-sizing: border-box;
            background-color: $themecolor3;
            position: relative;
            @include maxwidth(768) {
                padding: 20px 15px;
            }
            @media (any-hover: hover) {
                transition: opacity 250ms;
                .cols .col {
                    .title::before {
                        transition: background 250ms;
                    }
                }
                &:hover {
                    opacity: 0.9;
                    .cols .col {
                        .title::before {
                            background-color: $accentcolor;
                        }
                    }
                }
            }
            > * {
                margin-top: 20px;
                &:first-child {
                    margin-top: 0px;
                }
            }
            .cols {
                display: flex;
                align-items: center;
                // gap: (60 / 1200 * 100%);
                gap: 0;
                @include maxwidth(1024) {
                    display: block;
                }
                .col {
                    &:nth-of-type(1) {
                        // flex-basis: 280px;
                        flex-basis: 0px;
                    }
                    &:nth-of-type(2) {
                        flex: 1;
                        > *:not(:first-child) {
                            margin-top: 15px;
                        }
                    }
                    > :where(*) {
                        display: block;
                    }
                    .thumb {
                        display: none;
                        max-width: 280px;
                        aspect-ratio: 280 / 180;
                        position: relative;
                        &>img {
                            width: 100%;
                            height: 100%;
                            object-fit: cover;
                        }
                    }
                    .title {
                        @include f_all(24);
                        font-weight: 500;
                        line-height: 1.3;
                        display: flex;
                        gap: 15px;
                        @include maxwidth(768) {
                            @include f_all(20);
                            gap: 10px;
                        }
                        &::before {
                            content: '';
                            flex-shrink: 0;
                            display: block;
                            width: 18px;
                            height: 18px;
                            background: $themecolor url(../images/arrow-right-w.svg) left 23% center / 11px auto no-repeat;
                            margin-top: 0.3em;
                            @include maxwidth(768) {
                                margin-top: 0.25em;
                            }
                        }
                    }
                    .terms {
                        @include f_all(14);
                        font-weight: 500;
                        line-height: 1.3;
                        display: flex;
                        align-items: center;
                        gap: 5px;
                        flex-wrap: wrap;
                        @include maxwidth(768) {
                            @include f_all(12);
                        }
                        .term {
                            color: $themetextcolor;
                            padding: 0.2em 1.0715em 0.25em;
                            box-sizing: border-box;
                            background-color: $basetextcolor;
                            @include flex_centering;
                            min-height: 1.786em;
                            border-radius: 5px;
                            position: relative;
                            @include maxwidth(768) {
                                padding-bottom: 0.4em;
                            }

                            &.serviceform {
                                background-color: $themecolor2;
                                &.personal{
                                    background-color: #086DDF;
                                }
                                &.corporate{
                                    background-color: #19887F;
                                }
                            }
                            &.servicetype {
                            }
                        }
                    }
                    .text {
                        color: $themecolor2;
                        @include f_all(14);
                        font-weight: 500;
                        line-height: 1.5;
                        display: -webkit-box;
                        -webkit-box-orient: vertical;
                        -webkit-line-clamp: 3;
                        overflow: hidden;
                    }
                }
            }
            .feature-table {
                width: 100%;
                tr {
                    th, td {
                        color: $themecolor2;
                        @include f_all(14);
                        font-weight: 500;
                        line-height: 1.5;
                        padding: 13px 20px;
                        box-sizing: border-box;
                        @include maxwidth(768) {
                            padding: 10px 1em;
                        }
                    }
                    th {
                        color: $themetextcolor;
                        @include f_all(16);
                        width: 230px;
                        background-color: $basetextcolor;
                        text-align: center;
                        @include maxwidth(768) {
                            @include f_all(14);
                        }
                    }
                    td {
                        background-color: $basecolor;
                        > * {
                            margin: 1em 0;
                            &:first-child { margin-top: 0px; }
                            &:last-child { margin-bottom: 0px; }
                        }
                    }
                    @include maxwidth(768) {
                        &, th, td {
                            display: block !important;
                            width: 100% !important;
                        }
                    }
                }
            }
        }
    }
    .noposts {
        @include f_all(15);
        font-weight: 500;
        line-height: 1.5;
        padding: 1em;
        box-sizing: border-box;
        background-color: #f3f3f3;
        border-radius: 5px;
    }
}

.faq-headline {
    --index-w: 60px;
    @include maxwidth(768) {
        --index-w: 55px;
    }
    position: relative;
    dt, dd {
        @include f_all(15);
        font-weight: 500;
        line-height: 1.3;
        background-color: $themecolor3;
        padding: 20px 20px 20px calc(var(--index-w) + 30px);
        box-sizing: border-box;
        position: relative;
        @include maxwidth(768) {
            @include f_all(14);
            padding: 20px 1em 20px calc(var(--index-w) + 1em);
        }
        &:first-child {
            margin-top: 0px;
        }
        .index {
            padding: 20px 0;
            box-sizing: border-box;
            width: var(--index-w);
            display: flex;
            justify-content: center;
            position: absolute;
            inset: 0 auto 0 0;
            margin: auto;
            color: $themetextcolor;
            background-color: $themecolor;
        }
    }
    dt {
        margin-top: 8px;
        &:has(+ dd) { margin-bottom: 1px; }
        .index {
            background-color: $basetextcolor;
        }
    }
    dd {
        .content {
            > * {
                margin: 1em 0;
                &:first-child { margin-top: 0px; }
                &:last-child { margin-bottom: 0px; }
            }
        }
    }
}

.c-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
    .en {
        @include f_all(10);
        font-weight: 500;
        line-height: 1.3;
        text-transform: uppercase;
    }
    .ja {
        color: $themecolor;
        @include f_all(24);
        font-weight: 500;
        line-height: 1.3;
        text-align: center;
        @include maxwidth(768) {
            @include f_all(20);
        }
    }

    &.is-color-white {
        > * {
            color: $themetextcolor !important;
        }
    }
}

.c-buttons {
    @include flex_centering;
    flex-direction: column;
    gap: 5px;

    &.siblings {
        margin-top: 120px;
        @include maxwidth(768) {
            margin-top: 60px;
        }
        .c-button {
        }
    }
}

.c-button {
    @include button_style;
}

/* Frontapge */

#toppageService {
    // padding: calc(95px + 10vh) 0 95px;
    padding: calc(100px + 15vh) 0 120px;
    position: relative;
    margin-top: -500px;
    opacity: 0;
    visibility: hidden;
    will-change: opacity, visibility;
    z-index: 10;
    @include maxwidth(768) {
        margin-top: calc(-400px - var(--mv-foot-h));
        padding: calc(60px + 20vh + var(--mv-foot-h)) 0 80px;
    }
    @media screen and (max-width: 768px) and (max-height: 670px) {
        padding-top: 265px;
    }
    .container {
        @include container(1200, 20);
        .c-heading {
        }
        .body {
            margin-top: 35px;
            @include maxwidth(768) {
                margin-top: 30px;
            }
            .tab {
            }


            // 2026-11-13 バナー追加
            .group-items {
                --gap: 20px;
                @include maxwidth(1024) {
                    --gap: 10px;
                }
                display: flex;
                gap: var(--gap);
                flex-wrap: wrap;
                position: relative;

                .group-item {
                    flex-basis: calc((100% - var(--gap)) / 2);
                    height: 250px;
                    position: relative;
                    @include maxwidth(1024) { flex-basis: 100%; }
                    @include maxwidth(768) { height: 180px; }

                    &__link {

                        > :where(*) { display: block; }

                        .img {
                            position: absolute;
                            inset: 0;
                            overflow: hidden;

                            &::after {
                                content: '';
                                position: absolute;
                                inset: 0;
                                background-color: rgba(#000, 0.4);
                                transition-property: background, filter;
                                transition: 200ms;
                            }

                            &:not(:has(> img))::after {
                                background-color: $themecolor;
                            }

                            > img {
                                width: 100%;
                                height: 100%;
                                object-fit: cover;
                                transition: transform 200ms;
                            }
                        }
                        .title {
                            color: $themetextcolor;
                            // @include f_all(24);
                            font-size: clamp(18px, (24 / 900 * 100vw), 24px);
                            font-weight: 500;
                            line-height: 1.3;
                            position: absolute;
                            inset: 50% 10px auto 10px;
                            @include flex_centering;
                            gap: 10px;
                            transform: translate(0, -50%);

                            &::after {
                                content: '';
                                flex-shrink: 0;
                                display: inline-block;
                                width: 18px;
                                height: 18px;
                                @include maxwidth(768) {
                                    width: 16px;
                                    height: 16px;
                                }
                                background: $basetextcolor url(../images/arrow-bottom-w.svg) center top 30% / 10px auto no-repeat;
                            }
                        }

                        @media (any-hover: hover) {
                            &:hover {
                                .img > img { transform: scale(1.10); }
                                .img:has(> img)::after { background-color: rgba(#000, 0.55); }
                                .img:not(:has(> img))::after { filter: brightness(120%); }
                            }
                        }

                    }
                }
            }

            // 2026-11-16 追加
            h3 {
                color: $themecolor;
                @include f_all(19);
                font-weight: 500;
                line-height: 1.3;
                text-align: center;
                display: flex;
                flex-direction: column;
                align-items: center;
                gap: 10px;
                margin-block: 110px 40px;
                position: relative;
                @include maxwidth(768) { margin-block: 70px 30px; }

                &::after {
                    content: '';
                    flex-shrink: 0;
                    display: inline-block;
                    width: 10px;
                    height: 10px;
                    background-color: currentColor;
                }
            }

            .external-group-items {
                --gap: 15px;
                display: flex;
                flex-wrap: wrap;
                gap: var(--gap);
                position: relative;
                @include maxwidth(1024) {
                    flex-direction: column;
                    align-items: center;
                }

                .external-group-item {
                    flex-basis: calc((100% - (var(--gap) * 2)) / 3);
                    background-color: #F3F3F3;
                    border-radius: 5px;
                    box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.20);
                    overflow: hidden;
                    position: relative;
                    transition: transform 300ms;
                    will-change: transform;
                    @include maxwidth(1024) {
                        max-width: 390px;
                        width: 100%;
                        margin-inline: auto;
                    }

                    @media (any-hover: hover) {
                        &:hover {
                            transform: scale(1.03);
                            z-index: 10;
                        }
                    }

                    &__link {
                        cursor: pointer;

                        .logo {
                            padding: 10px 30px;
                            box-sizing: border-box;
                            background-color: #fff;
                            height: 105px;
                            @include flex_centering;

                            > img { max-height: 100%; }

                            &:not(:has(> img)) { background-color: $themecolor; }
                        }
                        .title {
                            @include f_all(16);
                            @include maxwidth(360) { @include f_all(15); }
                            font-weight: 500;
                            line-height: 1.3;
                            padding: 1.56em 1.25em;
                            box-sizing: border-box;
                            display: flex;
                            align-items: center;
                            justify-content: space-between;
                            gap: 10px;

                            &::after {
                                content: '';
                                flex-shrink: 0;
                                display: inline-block;
                                width: 18px;
                                height: 18px;
                                background: $themecolor url(../images/arrow-right-w.svg) left 25% center / 10px auto no-repeat;
                                margin-top: 0.2em;
                            }
                        }
                    }
                }
            }

        }
    }
}

#serviceTab {
    position: relative;
    h3 {
        all: unset;
        display: block;
        @include f_all(24);
        color: $themecolor;
        font-weight: 500;
        line-height: 1.3;
        text-align: center;
        margin-top: 120px;
        margin-bottom: 40px;
        @include maxwidth(768) {
            margin-top: 80px;
            margin-bottom: 30px;
        }
        position: relative;
        &::before, &::after {
            display:none !important;
        }
        @include maxwidth(768) {
            @include f_all(20);
        }
    }
    .tab-trigger {
        @include f_all(18);
        font-weight: 500;
        line-height: 1.3;
        display: flex;
        @include maxwidth(768) {
            @include f_all(14);
        }
        a {
            flex: 1;
            @include flex_centering;
            min-height: 55px;
            background-color: $themecolor3;
            padding: 0.2em 1em 0.25em;
            box-sizing: border-box;
            position: relative;
            text-decoration: none !important;
            isolation: isolate;
            @include maxwidth(370) {
                padding-left: 10px;
                padding-right: 10px;
            }
            &::before {
                content: '';
                position: absolute;
                z-index: -1;
                inset: auto 0 0px 0;
                height: 2px;
                background-color: $themecolor;
                transition: height 300ms ease;
            }
            &::after {
                content: '';
                display: block;
                width: 18px;
                height: 18px;
                background: transparent url(../images/arrow-bottom-b.svg) center top 13% / 11px auto no-repeat;
                position: absolute;
                inset: 0 15px 0 auto;
                margin: auto;
                @include maxwidth(768) {
                    display: none !important;
                }
                opacity: 0.3;
            }

            &.current {
                color: $themetextcolor;
                &::before {
                    height: 100%;
                }
                &::after {
                    opacity: 1;
                    background-color: $basetextcolor;
                    background-image: url(../images/arrow-bottom-w.svg);
                }
            }
        }
    }
    .tab-panels {
        position: relative;
        .tab-panel {
            opacity: 0;
            position: absolute;
            inset: 0 auto auto 0;
            padding-top: 30px;
            box-sizing: border-box;
            @include maxwidth(768) {
                padding-top: 20px;
            }

            &.open {
               opacity: 1;
                position: relative;
                inset: initial;
                z-index: 1;

                /* .servicetype-terms ul li,
                .servicecompany-terms ul li
                {
                    opacity: 1 !important;
                    transform: translate(0, 0) !important;
                    transition-delay: calc(var(--i) * 0.10s);
                } */
            }

            > * {
                &:first-child {
                    margin-top: 0px !important;
                }
                &:last-child {
                    margin-bottom: 0px !important;
                }
            }

            .tab-title {
                color: $themecolor;
                @include f_all(19);
                font-weight: 500;
                line-height: 1.3;
                display: flex;
                align-items: flex-start;
                gap: 15px;
                margin-top: 33px;
                margin-bottom: 26px;
                @include maxwidth(768) {
                    @include f_all(15);
                    gap: 10px;
                    margin-top: 30px;
                    margin-bottom: 15px;
                }
                &::before {
                    content: '';
                    flex-shrink: 0;
                    display: block;
                    width: 10px;
                    height: 10px;
                    background-color: currentColor;
                    margin-top: 0.45em;
                    @include maxwidth(768) {
                        margin-top: 0.35em;
                    }
                }
            }

            .servicetype-terms,
            .servicecompany-terms {

                // 投稿が存在しない場合、
                .noposts {
                    @include f_all(15);
                    font-weight: 500;
                    line-height: 1.4;
                    padding: 1em 2em;
                    box-sizing: border-box;
                    border-radius: 1em;
                    border: 2px solid mix($themecolor, $basecolor, 0.1);
                    @include maxwidth(768) {
                        padding: 1em;
                    }
                }
            }

            .servicetype-terms {
                --gap: 14px;
                @include maxwidth(768) {
                    --gap: 10px;
                }
                position: relative;
                ul {
                    margin-left: 0px;
                    display: flex;
                    gap: var(--gap);
                    flex-wrap: wrap;
                    li {
                        list-style: none;
                        margin-bottom: 0px;
                        flex-basis: calc((100% - (var(--gap) * 3)) / 4);
                        @include maxwidth(1200) {
                            flex-basis: calc((100% - (var(--gap) * 2)) / 3);
                        }
                        @include maxwidth(360) {
                            flex-basis: calc((100% - (var(--gap) * 1)) / 2);
                        }
                        /* opacity: 0;
                        transform: translate(0, 20px);
                        transition: all 300ms ease; */
                        a {
                            text-decoration: none !important;
                            @include f_all(16);
                            font-weight: 500;
                            line-height: 1.3;
                            display: flex;
                            align-items: center;
                            gap: 15px;
                            padding: 20px 50px 20px 25px;
                            box-sizing: border-box;
                            height: 100%;
                            border-radius: 5px;
                            box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.20);
                            background: $basecolor;
                            min-height: 80px;
                            position: relative;
                            transition: all 300ms ease;

                            @include maxwidth(1024) {
                                padding: 20px 50px 20px 15px;
                            }
                            @include maxwidth(768) {
                                @include f_all(14);
                                text-align: center;
                                justify-content: flex-end;
                                flex-direction: column;
                                gap: 8px;
                                padding: 20px 10px 10px;
                                min-height: 100px;
                                .txt {
                                    display: inline-block;
                                    min-height: 2em;
                                    @include flex_centering;
                                }
                            }

                            &::after {
                                content: '';
                                display: block;
                                width: 18px;
                                height: 18px;
                                background: $themecolor url(../images/arrow-right-w.svg) left 23% center / 11px auto no-repeat;
                                position: absolute;
                                inset: 0 20px 0 auto;
                                margin: auto;
                                @include maxwidth(768) {
                                    display: none;
                                }
                            }

                            > img {
                                flex-shrink: 0;
                                width: 40px;
                            }
                            .txt {
                            }

                            @media (any-hover: hover) {
                                &:hover {
                                    opacity: 0.8;
                                    transform: translate(0, -5px);
                                    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.20);
                                }
                            }
                        }
                    }
                }
            }
            .servicecompany-terms {
                --gap: 14px;
                @include maxwidth(768) {
                    --gap: 10px;
                }
                position: relative;
                ul {
                    margin-left: 0px;
                    display: flex;
                    flex-wrap: wrap;
                    gap: var(--gap);
                    li {
                        list-style: none;
                        margin: 0px;
                        flex-basis: calc((100% - (var(--gap) * 3)) / 4);
                        @include maxwidth(1200) {
                            flex-basis: calc((100% - (var(--gap) * 2)) / 3);
                        }
                        @include maxwidth(1024) {
                            flex-basis: calc((100% - (var(--gap) * 1)) / 2);
                        }
                        /* opacity: 0;
                        transform: translate(0, 20px);
                        transition: all 300ms ease; */
                        a {
                            text-decoration: none !important;
                            display: flex;
                            flex-direction: column;
                            height: 100%;
                            border-radius: 5px;
                            box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.20);
                            background: $themecolor3;
                            overflow: hidden;
                            position: relative;
                            transition: all 300ms ease;
                            > :where(*) {
                                display: block;
                            }
                            .icon, .logo {
                                @include flex_centering;
                                min-height: 105px;
                                background-color: $basecolor;
                                padding: 10px 20px;
                                box-sizing: border-box;
                                @include maxwidth(768) {
                                    height: calc(62 / 375 * 100vw);
                                    min-height: 62px;
                                }
                                > img {
                                }
                            }
                            .title {
                                @include f_all(16);
                                font-weight: 500;
                                line-height: 1.3;
                                display: flex;
                                align-items: center;
                                padding: 25px 50px 25px 20px;
                                box-sizing: border-box;
                                position: relative;
                                @include maxwidth(768) {
                                    flex: 1;
                                    @include f_all(14);
                                    padding: 10px;
                                    min-height: 2.6em;
                                    @include flex_centering;
                                    min-height: 57px;
                                }
                                &::after {
                                    content: "";
                                    display: block;
                                    width: 18px;
                                    height: 18px;
                                    background: $themecolor url(../images/arrow-right-w.svg) left 23% center / 11px auto no-repeat;
                                    position: absolute;
                                    inset: 0 20px 0 auto;
                                    margin: auto;
                                    @include maxwidth(768) {
                                        display: none;
                                    }
                                }
                            }

                            @media (any-hover: hover) {
                                &:hover {
                                    opacity: 0.8;
                                    transform: translate(0, -5px);
                                    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.20);
                                }
                            }
                        }
                    }
                }
            }
        }
    }
    .c-buttons {
        margin-top: 40px;
        @include maxwidth(768) {
            margin-top: 20px;
        }
    }
}

#toppageAboutus {
    color: $themetextcolor;
    padding: 90px 0;
    box-sizing: border-box;
    position: relative;
    @include maxwidth(768) {
        padding: 80px 0 60px;
    }
    .container {
        @include container(1200, 20);
        z-index: 5;
        .cols {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            flex-direction: row-reverse;
            gap: (120 / 1200 * 100%);
            @include maxwidth(1024) {
                flex-direction: column;
                align-items: initial;
                justify-content: initial;
                gap: 30px;
                > * {
                    flex: none !important;
                }
            }
            .col {
                &:nth-of-type(1) {
                    flex-basis: 480px;

                    &.scroll-target {
                        .text, .c-buttons {
                        }
                        .c-buttons {
                            transition-delay: 200ms;
                        }
                        &.active {
                            .text, .c-buttons {
                                opacity: 1;
                                transform: translate(0, 0);
                            }
                        }
                    }
                }
                &:nth-of-type(2) {
                    flex-basis: 500px;
                }
                .c-heading {
                    @media screen and (min-width: 1025px) {
                        align-items: flex-start;
                        .en {
                        }
                        .ja {
                            text-align: left;
                        }
                    }
                }
                .body {
                    .text {
                        @include f_all(14);
                        font-weight: 500;
                        line-height: 1.8;
                        margin-top: 21px;
                        @include maxwidth(768) {
                            font-weight: 400;
                        }
                        > p:not(:first-child) {
                            margin-top: 1.8em;
                        }

                        &.scroll-target {
                            opacity: 0;
                            transform: translate(0, 10px);
                            transition: transform 800ms, opacity 800ms;
                            &.active {
                                opacity: 1;
                                transform: translate(0, 0);
                            }
                        }
                    }
                    .c-buttons {
                        margin-top: 34px;
                        @media (min-width: 1025px) {
                            flex-direction: row;
                        }
                        @include maxwidth(768) {
                            margin-top: 24px;
                        }

                        .c-button {
                            flex:0 1 calc(50% - 2.5px);
                            @include maxwidth(768) {
                                flex-basis: 100%;
                            }
                            &__link {
                                @media (min-width: 1025px) {
                                    min-width: initial;
                                }
                            }
                        }

                        &.scroll-target {
                            .c-button {
                                opacity: 0;
                                transform: translate(0, 10px);
                                transition: transform 800ms, opacity 800ms;
                                @for $i from 0 to 5  {
                                    &:nth-of-type(#{$i + 1}) {
                                        transition-delay: #{$i * 0.15s};
                                    }
                                }
                            }
                            &.active .c-button {
                                opacity: 1;
                                transform: translate(0, 0);
                            }
                        }
                    }
                    .c-button {
                        &__link {
                        }
                    }
                }
                .img {
                    aspect-ratio: 500 / 446;
                    @include maxwidth(768) {
                        aspect-ratio: 1;
                    }
                    position: relative;
                    > img {
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                    }

                    &.scroll-target {
                        > img {
                            clip-path: inset(100% 0 0 0);
                            transition: clip-path 800ms;
                        }

                        &.active > img {
                            clip-path: inset(0% 0 0 0);
                        }
                    }
                }
            }
        }
    }
    .bgimg {
        pointer-events: none;
        position: absolute;
        inset: 0;
        clip-path: inset(0);
        &::after {
            content: "";
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(4px);
        }
        > img {
            position: fixed;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }
}

#toppageStrengths {
    padding: 105px 0 80px;
    @include maxwidth(768) {
        padding: 20px 0 50px;
    }
    position: relative;
    overflow: hidden;
    .container {
        @include container(1200, 20);
        .group {
            @include maxwidth(768) {
                padding: 50px 20px 40px;
                box-sizing: border-box;
                background-color: $themecolor3;
            }
            .group-inner {
                .c-heading {
                }
                .body {
                    margin-top: 40px;
                    @include maxwidth(768) {
                        margin-top: 30px;
                    }
                    .strength-list {
                        --strength-list-gap: 20px;
                        display: flex;
                        gap: var(--strength-list-gap);
                        @include maxwidth(1024) {
                            --strength-list-gap: 10px;
                            flex-wrap: wrap;
                        }
                        @include maxwidth(768) {
                            --strength-list-gap: 8px;
                            flex-direction: column;
                            > * {
                                flex: none !important;
                            }
                        }
                        li {
                            flex-basis: calc(
                                (100% - (var(--strength-list-gap) * 3)) / 4
                            );
                            background-color: $themecolor3;
                            padding: 15px 15px 30px;
                            box-sizing: border-box;
                            position: relative;
                            @include maxwidth(1024) {
                                flex-basis: calc(
                                    (100% - (var(--strength-list-gap) * 1)) / 2
                                );
                            }
                            @include maxwidth(768) {
                                background-color: transparent;
                                padding: 0px;
                                display: flex;
                                align-items: center;
                                gap: 20px;
                            }
                            .thumb {
                                @include flex_centering;
                                padding: 20px;
                                box-sizing: border-box;
                                background-color: #fff;
                                min-height: 150px;
                                @include maxwidth(768) {
                                    flex-basis: 120px;
                                    min-height: 100px;
                                }
                                @include maxwidth(360) {
                                    flex-basis: 100px;
                                }
                                > img {
                                }
                            }
                            .docs {
                                padding-top: 18px;
                                box-sizing: border-box;
                                @include maxwidth(768) {
                                    flex: 1;
                                }
                                .title {
                                    color: $themecolor;
                                    @include f_all(18);
                                    font-weight: 500;
                                    line-height: 1.3;
                                    text-align: center;
                                    @include maxwidth(768) {
                                        @include f_all(16);
                                        text-align: left;
                                    }
                                }
                                .txt {
                                    color: $themecolor2;
                                    @include f_all(14);
                                    font-weight: 500;
                                    line-height: 1.3;
                                    text-align: center;
                                    min-height: 2.6em;
                                    @include flex_centering;
                                    margin-top: 11px;
                                    @include maxwidth(768) {
                                        justify-content: initial;
                                        text-align: left;
                                        margin-top: 3px;
                                    }
                                }
                            }
                        }

                        &.scroll-target {
                            perspective: 1000px;
                            li {
                                opacity: 0;
                                transform: rotateX(-90deg) translateZ(100px) translate(0, 20px) scale(0.65);
                                transform-style: preserve-3d;
                                transition: transform 1s, opacity 0.8s;
                                transition-delay: calc(var(--idx) * 0.15s);
                            }
                            &.active {
                                li {
                                    opacity: 1;
                                    transform: rotateX(0deg) translateZ(0px) translate(0, 0) scale(1);
                                }
                            }
                        }
                    }
                    .c-buttons {
                        margin-top: 40px;
                        @include maxwidth(768) {
                            margin-top: 20px;
                        }
                    }
                }
            }
        }
    }
}

#toppageFaq {
    color: $themetextcolor;
    padding: 60px 0;
    box-sizing: border-box;
    position: relative;
    background-color: $themecolor2;
    .container {
        @include container(1200, 20);
        .c-heading {
            .en {
            }
            .ja {
            }
        }
        .body {
            margin-top: 26px;
            @include maxwidth(768) {
                margin-top: 20px;
            }
            .ac-menu {
                dl > *:first-child {
                    margin-top: 0px;
                }
                dt,
                dd {
                    --aw: 20px;
                    color: $themecolor2;
                    @include f_all(15);
                    font-weight: 500;
                    line-height: 1.3;
                    padding: 25px 40px;
                    box-sizing: border-box;
                    position: relative;
                    display: flex;
                    align-items: center;
                    gap: 1em;
                    min-height: 70px;
                    @include maxwidth(768) {
                        padding: 15px;
                        gap: 12px;
                    }
                }
                dt {
                    padding-right: calc(40px + 18px + 1em);
                    cursor: pointer;
                    background-color: $themecolor3;
                    margin-top: 5px;
                    transition: opacity 300ms ease;
                    @include maxwidth(768) {
                        padding-right: 45px;
                    }

                    &::before {
                        content: "Q.";
                        flex-shrink: 0;
                        @include f_all(20);
                        font-weight: 500;
                        color: $themecolor;
                    }
                    &::after {
                        content: "";
                        display: block;
                        width: 18px;
                        height: 18px;
                        background: $themecolor
                            url(../images/arrow-bottom-w.svg) center top 23% /
                            11px auto no-repeat;
                        position: absolute;
                        inset: 0 40px 0 auto;
                        margin: auto;
                        transition: transform 300ms ease;
                        @include maxwidth(768) {
                            inset: 0 15px 0 auto;
                        }
                    }
                    &.is-open {
                        &::after {
                            transform: rotate(-180deg);
                        }
                    }

                    @media (any-hover: hover) {
                        &:hover {
                            opacity: 0.9;
                        }
                    }
                }
                dd {
                    background-color: $basecolor;
                    align-items: flex-start;
                    &::before {
                        content: "A";
                        flex-shrink: 0;
                        @include f_all(12);
                        font-weight: 500;
                        width: var(--aw);
                        height: var(--aw);
                        border-radius: var(--aw);
                        background-color: $accentcolor;
                        @include flex_centering;
                        color: $accenttextcolor;
                        padding-bottom: 2px;
                        box-sizing: border-box;
                    }

                    .content {
                        > * {
                            margin: 1em 0;
                            &:first-child { margin-top: 0px; }
                            &:last-child { margin-bottom: 0px; }
                        }
                    }
                }

                &.scroll-target {
                    dt {
                        opacity: 0;
                        transform: translate(0, 10px);
                        transition: opacity 800ms, transform 800ms;
                        transition-delay: calc(var(--i) * 0.15s);
                    }
                    &.active {
                        dt {
                            opacity: 1;
                            transform: translate(0, 1px);
                        }
                    }
                }
            }
            .c-buttons {
                margin-top: 30px;
                @include maxwidth(768) {
                    margin-top: 20px;
                }
            }
            .c-button {
                &__link {
                }
            }
        }
    }
}

#toppageInformation {
    padding: 100px 0;
    position: relative;
    @include maxwidth(768) {
        padding: 60px 0;
    }
    .container {
        @include container(1200, 20);
        .c-heading {
        }
        .body {
            margin-top: 25px;
            @include maxwidth(768) {
                margin-top: 20px;
            }
            .information-terms {
            }
            .information-headline {
                margin-top: 20px;
                @include maxwidth(768) {
                    margin-top: 10px;
                }
                .headline-items {
                }
            }
            .c-buttons {
                margin-top: 30px;
                @include maxwidth(768) {
                    margin-top: 20px;
                }
            }
            .c-button {
                &__link {
                }
            }
        }
    }
}

#toppageRecruit {
    color: $themetextcolor;
    padding: 120px 0 100px;
    position: relative;
    @include maxwidth(768) {
        padding: 40px 0;
    }
    .container {
        @include container(1200, 20);
        z-index: 5;
        .cols {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: (80 / 1200 * 100%);
            @include maxwidth(1024) {
                flex-direction: column;
                align-items: initial;
                justify-content: initial;
                gap: 30px;
                > * {
                    flex: none !important;
                }
            }
            .col {
                &:nth-of-type(1) {
                    order: 2;
                    flex-basis: 480px;
                }
                &:nth-of-type(2) {
                    order: 1;
                    flex-basis: 277px;
                    @include maxwidth(1024) {
                        .image {
                            margin-left: -20px;
                        }
                        .image.scroll-target > img {
                            clip-path: inset(0 100% 0 0);
                        }
                    }
                }
                &:nth-of-type(3) {
                    order: 3;
                    flex-basis: 277px;
                    @include maxwidth(1024) {
                        .image {
                            margin-right: -20px;
                        }
                        .image.scroll-target > img {
                            clip-path: inset(0 0 0 100%);
                        }
                    }
                }
                .c-heading {
                    .ja { @include f_all(24); }
                }
                .body {
                    .text {
                        @include f_all(14);
                        font-weight: 500;
                        line-height: 1.8;
                        text-align: center;
                        margin-top: 16px;
                        @include maxwidth(768) {
                            text-align: left;
                            margin-top: 20px;
                        }

                        &.scroll-target {
                            opacity: 0;
                            transform: translate(0, 10px);
                            transition: opacity 800ms, transform 800ms;
                            &.active {
                                opacity: 1;
                                transform: translate(0, 0);
                            }
                        }
                    }
                    .c-buttons {
                        margin-top: 34px;

                        &.scroll-target {
                            .c-button {
                                opacity: 0;
                                transform: translate(0, 10px);
                                transition: opacity 800ms, transform 800ms;
                                @for $i from 0 to 5 {
                                    &:nth-of-type(#{$i + 1}) {
                                        transition-delay: #{$i * 0.15s};
                                    }
                                }
                            }
                            &.active .c-button {
                                opacity: 1;
                                transform: translate(0, 0);
                            }
                        }
                    }
                    .c-button {
                        &__link {
                        }
                    }
                }
                .image {
                    aspect-ratio: 277 / 480;
                    position: relative;
                    @include maxwidth(1024) {
                        aspect-ratio: 355 / 200;
                    }
                    > img {
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                        @media screen and (min-width: 1025px) {
                            object-position: 32% center;
                        }
                    }

                    &.scroll-target {
                        > img {
                            clip-path: inset(100% 0 0 0);
                            transition: clip-path 800ms;
                        }
                        @include maxwidth(1024) {
                        }
                        &.active > img {
                            clip-path: inset(0% 0% 0% 0%) !important;
                        }
                    }
                }
            }
        }
    }
    .bgimg {
        pointer-events: none;
        position: absolute;
        inset: 0;
        clip-path: inset(0);
        &::after {
            content: "";
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(4px);
        }
        > img {
            position: fixed;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }
}

/* Subpage */

#subpageTopicpath {
    color: $themetextcolor;
    @include f_all(14);
    font-weight: 500;
    line-height: 1.3;
    padding: 16px (40 / 1440 * 100vw);
    box-sizing: border-box;
    background-color: $basetextcolor;
    position: relative;
    @include maxwidth(768) {
        @include f_all(12);
        padding: 1em (10 / 375 * 100vw);
    }
    ul {
        li {
            display: inline-flex;
            align-items: center;
            &::after {
                content: '';
                flex-shrink: 0;
                display: block;
                width: 18px;
                height: 18px;
                background: $themecolor url(../images/arrow-right-w.svg) left 23% center / 11px auto no-repeat;
                margin: 0 20px;
                @include maxwidth(768) {
                    margin: 0 1em;
                }
            }
            &:last-of-type::after {
                display: none;
            }
            a {
            }
        }
    }
}

#subpageHeading {
    color: $themetextcolor;
    padding: 80px 20px;
    box-sizing: border-box;
    /* min-height: 300px; */
    position: relative;
    .visual {
        position: absolute;
        inset: 0;
        &::after {
            content: '';
            pointer-events: none;
            display: block;
            position: absolute;
            inset: 0;
            background-color: rgba(#000, 0.35);
        }
        > img {
            width: 100%;
            height: 100%;
            object-fit:cover;
        }
    }
    .docs {
        @include flex_centering;
        flex-direction: column;
        position: relative;
        .docs-heading {
            .terms {
                @include flex_centering;
                flex-wrap: wrap;
                gap: 5px;
                margin-bottom: 6px;
                .term {
                    @include f_all(14);
                    @include maxwidth(768) {
                        @include f_all(13);
                    }
                    font-weight: 500;
                    line-height: 1.3;
                    @include flex_centering;
                    background-color: $themecolor;
                    padding: 0.2em 1.429em;
                    min-height: 2.143em;
                    box-sizing: border-box;
                }
            }
            .ja {
                font-size: clamp(28px, (40 / 1024 * 100vw), 40px);
                text-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
                @include maxwidth(370) {
                    font-size: clamp(22px, (22 / 320 * 100vw), 28px);
                }
                .small {
                    display: inline-block;
                    font-size: 0.75em;
                    margin-left: 0.35em;
                }
            }
        }
        .docs-body {
            p {
                @include f_all(15);
                @include maxwidth(768) {
                    @include f_all(14);
                }
                font-weight: 500;
                line-height: 1.5;
                text-align: center;
                margin-top: 0.75em;
                > *:not(:first-child) {
                    margin-top: 2em;
                }
            }
            .terms {
                display: flex;
                align-items: center;
                justify-content: center;
                flex-wrap: wrap;
                gap: 5px;
                margin-top: 1rem;
                max-width: 800px;
                width: 100%;
                margin-left: auto;
                margin-right: auto;
                .term {
                    @include f_all(14);
                    font-weight: 500;
                    line-height: 1;
                    display: inline-flex;
                    align-items: center;
                    justify-content: center;
                    padding: 0.1em 15px 0.2em;
                    box-sizing: border-box;
                    color: $themetextcolor;
                    background-color: $basetextcolor;
                    border-radius: 5px;
                    min-height: 1.78em;

                    &.serviceform {
                        background-color: $themecolor2;
                    }
                    &.personal{
                        background-color: #086DDF;
                    }
                    &.corporate{
                        background-color: #19887F;
                    }

                    @media (any-hover: hover) {
                        transform: translate(0, 0);
                        transition: filter 300ms, transform 300ms;
                        &:hover {
                            filter: brightness(120%);
                            transform: translate(0, -2px);
                        }
                    }
                }
            }
        }
    }
}

#subpageContent {
    margin: 80px 0px 100px;
    position: relative;
    @include maxwidth(768) {
        margin: 60px 0px 80px;
    }
    .container {
        @include container(1200, 20);

        .service-block-contact {
            text-align: center;
            margin-top: 50px;
            > * {
                margin-top: 28px;
                &:first-child {
                    margin-top: 0px;
                }
            }
        }


        .single-detail {
            > *:not(:first-child) {
                margin-top: 10px;
                @include maxwidth(768) {
                    margin-top: 5px;
                }
            }
            .terms {
                display: flex;
                align-items: center;
                justify-content: flex-end;
                flex-wrap: wrap;
                gap: 5px;
                .term {
                    text-decoration: none !important;
                    @include f_all(13);
                    font-weight: 500;
                    line-height: 1;
                    @include flex_centering;
                    padding: 0.4em 1em calc(0.4em + 1px) 0.75em;
                    box-sizing: border-box;
                    color: $themetextcolor;
                    background-color: $themecolor;
                    border-radius: 1em;
                    position: relative;
                    @include maxwidth(768) {
                        @include f_all(12);
                    }

                    &::before {
                        content: '#';
                        margin-right: 0.15em;
                    }

                    // サービス投稿タイプ
                    &[class*="service"] {
                        @include f_all(14);
                        font-weight: 500;
                        border-radius: 5px;
                        background-color: $basetextcolor;
                        min-height: 25px;

                        &.serviceform {
                            background-color: $themecolor2;
                        }
                    }

                    @media (any-hover: hover) {
                        transform: translate(0, 0);
                        transition: filter 300ms, transform 300ms;
                        &:hover {
                            filter: brightness(120%);
                            transform: translate(0, -2px);
                        }
                    }
                }
            }
            .dete {
            }
        }
    }
}

.pager {
    text-align: center;
    margin: 40px 0;
    @include f_all(14);
    a,
    span {
        display: inline-block;
        margin: 0 0 0.25em 0.75em;
        min-width: 3em;
        padding: 1em;
        box-sizing: border-box;
        background-color: #afafb0;
        color: #fff;
    }
    .current {
        background-color: $themecolor;
    }
}

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

body.tax-servicetype #subpageContent .default {
    .group {
        padding: 40px (40 / 1200 * 100%) 30px;
        box-sizing: border-box;
        background-color: #f3f3f3;
        position: relative;
        @include maxwidth(768) {
            padding: 25px 20px 20px;
        }

        &__inner {
            > * {
                margin: 10px 0;
                &:first-child {
                    margin-top: 0px;
                }
                &:last-child {
                    margin-bottom: 10px;
                }
            }
        }

        h3 {
            all: unset;
            display: flex;
            align-items: flex-start;
            gap: 15px;
            @include f_all(19);
            font-weight: 500;
            line-height: 1.3;
            color: $themecolor;

            &::before {
                content: '';
                display: block;
                flex-shrink: 0;
                width: 10px;
                height: 10px;
                background-color: currentColor;
                margin-top: 0.5em;
            }

            &::after { display: none; }

        }
        .group-leadtext {
            @include f_all(16);
            font-weight: 600;
            line-height: 1.5;
        }
        .group-text {
            @include f_all(15);
            font-weight: 500;
            line-height: 1.5;
            > *:not(:first-child) {
                margin-top: 1em;
            }
        }
        .group-links {
            margin-top: 20px;
        }
    }
    .concerns-items {
        --concerns-gap: 20px;
        @include maxwidth(1200) {
            --concerns-gap: 10px;
        }
        @include maxwidth(480) {
            --concerns-gap: 5px;
        }
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: var(--concerns-gap);
        margin-left: 0px;
        list-style: none;
        .concerns-item {
            margin-bottom: 0px;
            flex-basis: calc((100% - (var(--concerns-gap) * 3)) / 4);
            @include maxwidth(1024) {
                flex-basis: calc((100% - var(--concerns-gap)) / 2);
            }
            @include maxwidth(480) {
                flex-basis: 100%;
            }
            background-color: #f3f3f3;
            padding: 80px 15px 27px;
            box-sizing: border-box;
            position: relative;
            @include maxwidth(768) {
                padding-top: 75px;
            }
            .index {
                position: absolute;
                inset: 0 0 auto 0;
                height: 60px;
                display: flex;
                align-items: center;
                justify-content: center;
                flex-direction: column;
                gap: 0.15em;
                color: $themetextcolor;
                background-color: $basetextcolor;
                @include maxwidth(768) {
                    height: 55px;
                }
                .t {
                    @include f_all(10);
                    font-weight: 500;
                    text-transform: uppercase;
                    line-height: 1;
                }
                .n {
                    @include f_all(20);
                    font-weight: 500;
                    line-height: 1;
                }
            }
            .title {
                color: $themecolor;
                font-size: 18px;
                @include maxwidth(768) {
                    font-size: 16px;
                }
                font-weight: 500;
                line-height: 1.3;
                text-align: center;
            }
            .text {
                color: $themecolor2;
                font-size: 14px;
                @include maxwidth(768) {
                    font-size: 13px;
                }
                font-weight: bold;
                line-height: 1.3;
                text-align: center;
                margin-top: 10px;
            }
        }
    }

    .contact-group {
        margin-top: 50px;
        @include maxwidth(768) {
            margin-top: 40px;
        }

        &__inner {
            > * {
                margin: 28px 0;
                @include maxwidth(768) {
                    margin: 20px 0;
                }
                &:first-child {
                    margin-top: 0px;
                }
                &:last-child {
                    margin-bottom: 0px;
                }
            }
        }

        .leadtext {
            @include f_all(24);
            font-weight: 600;
            line-height: 1.3;
            text-align: center;
            @include maxwidth(768) {
                @include f_all(20);
            }
        }
        .text {
            @include f_all(15);
            font-weight: 500;
            line-height: 1.5;
            text-align: center;
            @include maxwidth(768) {
                @include f_all(14);
            }

            > *:first-child {
                margin-top: 1em;
            }
        }
        .c-buttons {
            .c-button {
                &.contact {
                }
                &__link {
                }
            }
        }
    }
}

.service-headline-tabs {
    position: relative;
    .tab_trigger {
        --gap: 5px;
        @include f_all(16);
        @include maxwidth(768) {
            @include f_all(14);
        }
        font-weight: 500;
        line-height: 1.3;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: var(--gap);
        .tab_item {
            text-decoration: none;
            cursor: pointer;
            @include flex_centering;
            border-radius: 5px;
            padding: 0.5em 40px;
            box-sizing: border-box;
            background-color: $themecolor3;
            border: 1px solid;
            min-height: 2.5em;
            position: relative;
            @include maxwidth(768) {
                padding: 0.5em 1em;
            }

            &.current {
                color: $themetextcolor;
                border-color: $themecolor;
                background-color: $themecolor;
            }
        }
    }
    .tab_content {
        .noposts {
            @include f_all(16);
            font-weight: 500;
            line-height: 1.3;
            padding: 1.5em 2em;
            box-sizing: border-box;
            background-color: $themecolor3;
            margin-top: 20px;
            display: flex;
            align-items: center;
            min-height: 5em;
            @include maxwidth(768) {
                padding: 1em;
            }
        }
    }
}
