// スタイルシート common

@charset "utf-8";

@import "mixin";

html {
    scrollbar-gutter: stable;
}

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

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

:where(figure) { margin: 0; }

br {
    &.sp {
        @media screen and (min-width: 768px) {
            display: none !important;
        }
    }
    &.pc {
        @include maxwidth(768) {
            display: none !important;
        }
    }
}

// === Component

#header {
    position: absolute;
    inset: 0 0 auto 0;
    margin: auto;
    z-index: 20;
    @include maxwidth(768) {
    }
    .container {
        display: flex;
        justify-content: space-between;
        box-sizing: border-box;
        gap: 3em;
        padding: 30px (30 / 1440 * 100vw) 0;
        @include maxwidth(1024) {
            padding: 10px 15px;
        }
        body.toppage & {
            padding: 45px (30 / 1440 * 100vw) 0 (60 / 1440 * 100vw);
            @include maxwidth(1024) {
                padding: 10px (15 / 375 * 100vw);
            }
        }
        .sitename {
            a {
                @include flex_centering;
                width: 160px;
                height: 160px;
                background-color: $themecolor;
                position: relative;
                @include maxwidth(768) {
                    width: 120px;
                    height: 120px;
                }
            }
            img {
                //width: 92px;
                width: 83px;
                @include maxwidth(768) {
                    //width: 70px;
                    width: 60px;
                }
            }
        }
        .global-nav {
            color: $themecolor;
            body.toppage & {
                color: $themetextcolor;
            }
            body.subpage & {
                padding-top: 15px;
            }
            @include maxwidth(1200) { display: none !important; }
            ul {
                display: flex;
                align-items: center;
                flex-wrap: wrap;
                gap: 35px;
                body.subpage & {
                    &:has(a.active) {
                        li a {
                            color: $themetextcolor;
                        }
                    }
                }
                li {
                    @include f_all(15);
                    font-weight: bold;
                    line-height: 1.2;
                    a {
                        @include flex_centering;
                        padding-top: 23px;
                        box-sizing: border-box;
                        position: relative;
                        &::before {
                            content: attr(data-en);
                            @include f_all(12);
                            white-space: nowrap;
                            font-weight: 500;
                            text-transform: capitalize;
                            position: absolute;
                            top: 0;
                            left: 50%;
                            transform: translateX(-50%);
                        }

                        &[data-en="contact"] {
                            gap: 6px;
                            flex-direction: row-reverse;
                            color: $accenttextcolor;
                            background-color: $accentcolor;
                            width: 180px;
                            height: 58px;
                            padding-top: 1em;
                            &::before {
                                color: $themetextcolor;
                                top: 0.75em;
                            }
                            &::after{
                                content: '';
                                display: block;
                                width: 15px;
                                height: 12px;
                                background: center / contain no-repeat url(../images/icon-mail-white.svg);
                            }
                        }

                        &.parent {
                            &::after {
                                content: '＋';
                            }

                            &.active {
                                &::after {
                                    content: "－";
                                }
                            }
                        }

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

                    &>ul { display: none; }
                }

                &.children {
                    position: absolute;
                    z-index: 20;
                    padding: 15px 20px 10px;
                    box-sizing: border-box;
                    background-color: $basecolor;
                    width: 19rem;
                    .subpage & {
                        background-color: #E9ECF1;
                        margin-top: 1.3rem;
                    }
                    li {
                        &:last-child a {
                            padding-bottom: 0;
                            border-bottom: none;
                        }
                        a {
                            @include f_all(14);
                            text-align: left;
                            display: flex;
                            align-items: center;
                            justify-content: initial;
                            padding: 1.3em 10px 10px 0px;
                            margin-bottom: 10px;
                            box-sizing: border-box;
                            border-bottom: solid 1px #E9ECF1;
                            .subpage & {
                                border-bottom-color: rgba($themecolor, 0.5);
                            }
                            position: relative;
                            &::before {
                                left: 0;
                                transform: translate(0);
                            }
                            &::after{
                                content: '';
                                display: inline-block;
                                width: 6px;
                                height: 10px;
                                background: center / contain no-repeat url(../images/arrow-color.svg);
                                position: absolute;
                                top: 0;
                                right: 0;
                                bottom: 0;
                                margin: auto;
                            }
                        }
                    }
                }
            }
        }
    }
}

.header-menu-children {
    @include maxwidth(1200) {
        display: none !important;
    }
    position: absolute;
    inset: 10px 20px auto 10px;
    body.toppage & {
        inset: 20px 20px auto 20px;
    }
    z-index: 15;
    &.open .inner::before {
        clip-path: inset(0);
    }
    .inner {
        padding: 140px 20px 20px;
        box-sizing: border-box;
        position: relative;
        isolation: isolate;
        &::before {
            content: "";
            position: absolute;
            z-index: -1;
            inset: 0;
            /* background-color: $basetextcolor; */
            background-color: rgba($basetextcolor, 0.7);
            backdrop-filter: blur(4px);
            border-radius: 20px;
            clip-path: inset(0 0 100% 0);
            transition: clip-path 500ms  cubic-bezier(0.87, 0, 0.13, 1);
        }
        .menu-items {
            color: $themetextcolor;
            margin-left: 200px;
        }
        .menu-item {
            opacity: 0;
            visibility: hidden;
            position: absolute;
            inset: auto 0 0 auto;
            pointer-events: none;
            &.active {
                opacity: 1;
                position: static;
                inset: initial;
                pointer-events: auto;
                z-index: 10;
                ul li {
                    opacity: 1;
                    visibility: visible;
                    transform: translate(0,0);
                    @for $i from 0 to 10 {
                        &:nth-of-type(#{$i + 1}) {
                            transition-delay: #{$i * 50}ms;
                        }
                    }
                }
            }
            ul {
                display: flex;
                align-items: flex-end;
                justify-content: flex-end;
                gap: 20px;
                flex-wrap: wrap;
                li {
                    width: 230px;
                    opacity: 0;
                    visibility: hidden;
                    transform: translate(10px, 0);
                    transition: all 500ms;
                    a {
                        > :where(*) { display: block; }
                        .img {
                            aspect-ratio: 1.3 / 1;
                            position: relative;
                            overflow: hidden;
                            > img {
                                width: 100%;
                                height: 100%;
                                object-fit: cover;
                                transition: transform 200ms ease-in-out;
                            }
                        }
                        .title {
                            @include f_all(13);
                            font-weight: bold;
                            line-height: 1.2;
                            padding-top: 0.75em;
                            padding: 0.75em 5px 0 0;
                            box-sizing: border-box;
                            display: flex;
                            align-items: center;
                            justify-content: space-between;
                            gap: 0.5em;
                            &::after {
                                content: "";
                                flex-shrink: 0;
                                display: inline-block;
                                width: 1rem;
                                height: 1rem;
                                border-radius: 1rem;
                                background: $themecolor url(../images/arrow-right-white.svg) center / 5px auto no-repeat;
                                transition: transform 200ms;
                            }
                        }
                        @media (any-hover: hover) {
                            &:hover {
                                .img > img {
                                    transform: scale(1.15);
                                }
                                .title::after {
                                    transform: translate(5px,0);
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}

#mainVisual {
    --mv-bottom-h: 0px;
    @include maxwidth(1024) {
        --mv-bottom-h: 130px;
    }
    position: relative;
    .container {
        position: relative;
        .swiper {
            &-wrapper {
            }
            &-slide {
                height: calc(100vh - var(--mv-bottom-h));
                height: calc(100svh - var(--mv-bottom-h));
                min-height: 840px;
                @include maxwidth(1024) {
                    min-height: 740px;
                }
                @include maxwidth(768) {
                    min-height: 600px;
                }
                position: relative;
                img {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                }
            }
            &-pagination {
                width: auto;
                position: absolute;
                right: (65 / 1440 * 100vw);
                left: auto;
                bottom: 34px;
                display: flex;
                align-items: center;
                gap: 8px;
                @include maxwidth(1024) {
                    position: static;
                    width: 100%;
                    justify-content: center;
                }
                @include maxwidth(768) {
                    gap: 6px;
                }
                &-bullet {
                    margin: 0;
                    opacity: 1;
                    display: inline-block;
                    width: 12px;
                    height: 12px;
                    border-radius: 0px;
                    background-color: $themecolor3;
                    transition: all 200ms;
                    @include maxwidth(768) {
                        width: 8px;
                        height: 8px;
                    }
                    &-active {
                        background-color: $themecolor;
                    }
                }
            }
            &:after {
                content: "";
                position: absolute;
                z-index: 1;
                inset: 0;
                background: linear-gradient(90deg, rgba(0, 0, 0, 0.10) 0%, rgba(0, 0, 0, 0.30) 100%);
            }
        }
        .overlay {
            color: $themetextcolor;
            @include flex_centering;
            position: absolute;
            inset: 170px (120 / 1440 * 100vw) var(--mv-bottom-h) auto;
            margin: auto;
            z-index: 5;
            @include maxwidth(1024) {
                inset: auto (15 / 375 * 100vw) calc(var(--mv-bottom-h) + 30px) auto;
            }
            .text {
                font-size: clamp(30px,(58 / 1200 * 100vw),58px);
                white-space: nowrap;
                font-weight: bold;
                display: flex;
                justify-content: center;
                flex-direction: row-reverse;
                gap: 0.45em;
                .char {
                    display: inline-block;
                    width: 1.5em;
                    writing-mode: vertical-rl;
                    letter-spacing: 0.2em;
                    strong {
                        display: inline-block;
                        padding: 10px 12px calc(10px - 0.2em);
                        box-sizing: border-box;
                        background-color: $themecolor;
                        font-size: 1.05em;
                        font-weight: bold;
                        margin-bottom: 0.2em;
                        @include maxwidth(768) {
                            padding: 5px 6px calc(5px - 0.2em);
                        }
                    }
                }
            }
        }
        .l-bottom {
            height: var(--mv-bottom-h);
            @include maxwidth(1024) {
                padding: 20px 0 0;
                box-sizing: border-box;
                display: flex;
                flex-direction: column;
                justify-content: space-between;
            }
        }
        .scroll-down {
            @media screen and (min-width: 1025px) {
                position: absolute;
                inset: auto 0 0 0;
            }
            @include flex_centering;
            z-index: 5;
            @include maxwidth(1024) {
                position: relative;
                margin-top: 25px;
            }
            &::before, &::after {
                content: "";
                display: inline-block;
                width: 1px;
                height: 26px;
                position: absolute;
                margin: auto;
                @include maxwidth(1024) {
                    height: 30px;
                }
            }
            &::before {
                inset: auto 1px 0 0;
                background-color: $themetextcolor;
                @include maxwidth(1024) {
                    background-color: $themecolor2;
                }
            }
            &::after {
                inset: auto 1px -26px 0;
                background-color: $themecolor2;
                @include maxwidth(1024) {
                    display: none !important;
                }
            }
           &__link {
               color: $themetextcolor;
               @include f_all(14);
               font-weight: bold;
               display: inline-block;
               padding-bottom: 40px;
               position: relative;
               @include maxwidth(1024) {
                   color: $themecolor;
                   padding-bottom: 45px;
               }
               @include maxwidth(768) {
                   @include f_all(12);
               }
               &::before{
                   content: '';
                   display: block;
                   width: 9px;
                   height: 9px;
                   background-color: $themecolor2;
                   transform: rotate(45deg);
                   position: absolute;
                    z-index: 1;
                   inset: auto 0 23px 0;
					animation: moveAndFade 1.5s linear infinite;
					@include maxwidth(1024){
					animation: moveAndFade2 1.5s linear infinite;

					}
                   @include maxwidth(768) {
                       inset: auto 0 25px 0;
                   }
                    margin: auto;
               }
           }
       }
    }
}

@keyframes moveAndFade {
	0% { bottom: 23px; opacity: 1; }
	35% { bottom: 0px; opacity: 1; }
	75% { bottom: -23px; opacity: 0; }
	100% { bottom: 23px; opacity: 0; }
}
@keyframes moveAndFade2 {
	0% { bottom: 25px; opacity: 1; }
	35% { bottom: 12.5px; opacity: 1; }
	75% { bottom: 0px; opacity: 0; }
	100% { bottom: 25px; opacity: 0; }
}

#footer {
    background: linear-gradient(180deg, #FFF 0%, $themecolor3 100%);
    body.toppage & {
        background-color: $themecolor3;
    }
    position: relative;
    z-index: 5;
    .container {
        @include container(1320, 30);
        @include maxwidth(768) {
            margin-right: 15px;
            margin-left: 15px;
        }
    }
    #footerSiblings {
        padding: 40px 0;
        @include maxwidth(768) {
            padding: 35px 0;
        }
        position: relative;
        .container {
            .siblings-list {
                --footer-siblings-gap: 7px;
                @include maxwidth(1024) {
                    --footer-siblings-gap: 4px;
                }
                display: flex;
                flex-wrap: wrap;
                gap: var(--footer-siblings-gap);
                @include maxwidth(768) {
                    margin-left: -15px;
                    margin-right: -15px;
                }
                .siblings-item {
                    flex-basis: calc((100% - (var(--footer-siblings-gap) * 3)) / 4);
                    @include maxwidth(1200) {
                        flex-basis: calc((100% - (var(--footer-siblings-gap) * 2)) / 3);
                    }
                    @include maxwidth(1024) {
                        flex-basis: calc((100% - var(--footer-siblings-gap)) / 2);
                    }
                    @include maxwidth(768) {
                        flex-basis: 100%;
                    }
                    position: relative;
                    &__link {
                        display: flex;
                        flex-direction: column;

                        justify-content: flex-end;
						&.noterm {
	                        justify-content: center;
	                        background-color:$themecolor2;
	                        padding-bottom:0;
	                        .docs::after {
	                        	background-color:$themecolor;
	                        	margin-top:12px;
	                        }
	                        &.current {
	                        	background-color: $basetextcolor;
	                        	.docs::after {
	                        		background-color: $themecolor2;
	                        	}
	                        }
						}

                        padding: 14px 10px;
                        box-sizing: border-box;
                        min-height: 200px;
                        @include maxwidth(768) {
                            min-height: 160px;
                        }
                        > :where(*) { display: block; }
                        .bgimg {
                            position: absolute;
                            inset: 0;
                            overflow: hidden;
                            > img {
                                width: 100%;
                                height: 100%;
                                object-fit: cover;
                                transition: transform 200ms;
                            }
                            &::before, &::after {
                                content: "";
                                position: absolute;
                                inset: 0;
                            }
                            &::before {
                                background: rgba($themecolor, 0.50);
                                mix-blend-mode: overlay;
                            }
                            &::after {
                                background: rgba(#000, 0.50);
                            }
                        }
                        .docs {
                            color: $themetextcolor;
                            display: flex;
                            flex-direction: column;
                            align-items: center;
                            position: relative;
                            > :where(*) { display: block; }
                            .title {
                                @include f_all(20);
                                @include maxwidth(768) {
                                    @include f_all(18);
                                }
                                font-weight: 600;
                                line-height: 1.6;
                                text-align: center;
                            }
                            .terms {
                                margin-top: 13px;
                                display: flex;
                                align-items: center;
                                justify-content: center;
                                flex-wrap: wrap;
                                gap: 10px;
                                .term {
                                    @include f_all(14);
                                    font-weight: bold;
                                    line-height: 1.3;
                                    @include flex_centering;
                                    padding: 0 12px;
                                    box-sizing: border-box;
                                    background-color: $themecolor;
                                    border-radius: 20px;
                                    min-height: 26px;
                                }
                            }
                            &::after {
                                content: "";
                                @include cta();
                                margin-top: 24px;
                                @include maxwidth(768) {
                                    margin-top: 1rem;
                                }
                            }
                        }
                        &.current {
                            pointer-events: none;
                            .bgimg::after {
                                background-color: $basetextcolor;
                            }
                            .docs::after {
                                background-color: $themecolor;
                            }
                        }
                        @media (any-hover: hover) {
                            &:hover {
                                .bgimg > img {
                                    transform: scale(1.15);
                                }
                                .docs::after {
                                    background-color: $accentcolor;
                                }
                            }
                        }
                    }
                }
            }
        }
    }
    #footerContact {
        color: $themetextcolor;
        padding: 65px 0 80px;
        position: relative;
        @include maxwidth(1200) {
            padding-bottom: 50px;
        }
        @include maxwidth(768) {
            padding: 50px 0 43px;
        }
        .bgimg {
            position: absolute;
            inset: 0;
            > img {
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
            &::after {
                content: "";
                position: absolute;
                inset: 0;
                background: rgba(0, 0, 0, 0.40);
            }
        }
        .container {
            .cols {
                display: flex;
                align-items: flex-end;
                justify-content: space-between;
                flex-wrap: wrap;
                gap: 2rem;
                @include maxwidth(1200) {
                    flex-direction: column-reverse;
                    align-items: initial;
                    justify-content: initial;
                    > * { flex: none !important; }
                }
                .col {
                    &:nth-of-type(1) {
                        flex-basis: 320px;
                    }
                    &:nth-of-type(2) {
                        flex-basis: 780px;
                    }
                }
            }
            .sitename {
                @include maxwidth(1200) {
                    @include flex_centering;
                }
                a {
                    @include flex_centering;
                    width: 160px;
                    height: 160px;
                    background-color: $themecolor;
                    position: relative;
                    @include maxwidth(768) {
                        width: 120px;
                        height: 120px;
                    }
                    img {
                        //width: 90px;
                        width: 83px;
                        @include maxwidth(768) {
                            //width: 70px;
                            width: 60px;
                        }
                    }
                }
            }
            .address {
                @include f_all(14);
                font-weight: 500;
                line-height: 1.3;
                margin-top: 15px;
                @include maxwidth(1200) {
                    text-align: center;
                }
                > *:not(:first-of-type) {
                    margin-top: 1em;
                }
            }
            .sns-list {
                margin-top: 15px;
                display: flex;
                flex-wrap: wrap;
                gap: 4px;
                @include maxwidth(1200) {
                    justify-content: center;
                }
                li {
                    a {
                        @include flex_centering;
                        width: 40px;
                        height: 40px;
                        padding: 10px;
                        box-sizing: border-box;
                        background-color: $themecolor;
                        img {
                        }
                        @media (any-hover: hover) {
                            transition: background-color 200ms;
                            &:hover {
                                background-color: $accentcolor;
                            }
                        }
                    }
                }
            }
            .text {
                @include f_all(20);
                font-weight: 600;
                text-align: center;
                @include maxwidth(768) {
                    @include f_all(18);
                }
            }
            .contact-buttons {
                display: flex;
                flex-wrap: wrap;
                gap: 5px;
                margin-top: 25px;
                @include maxwidth(768) {
                    margin-top: 20px;
                }
            }
            .contact-button {
                height: auto;
                flex-basis: calc((100% - 5px) / 2);
                &:first-of-type { flex-basis: 100%; }
                @include maxwidth(768) {
                    flex-basis: 100%;
                }
                &__link {
                    @include f_all(16);
                    font-weight: 600;
                    line-height: 1.2;
                    color: $themetextcolor;
                    @include flex_centering;
                    background-color: rgba(#000, 0.8);
                    padding: 30px 5px 10px;
                    box-sizing: border-box;
                    min-height: 140px;
                    position: relative;
                    @include maxwidth(768) {
                        padding-top: 10px;
                        min-height: 120px;
                    }
                    .title {
                        @media screen and (min-width:  769px) {
                            padding-bottom: 45px;
                            box-sizing: border-box;
                            position: relative;
                        }
                        &::after{
                            content: '';
                            flex-shrink: 0;
                            @include cta($themecolor2);
                            position: absolute;
                            inset: auto 0 0 0;
                            @include maxwidth(768) {
                                inset: 0 25px 0 auto;
                            }
                            margin: auto !important;
                            transition: 200ms ease-in-out;
                        }
                    }
                    &.tel {
                        padding-top: 10px;
                        flex-direction: column;
                        .t {
                            @include f_all(14);
                            font-weight: 500;
                            @include maxwidth(768) {
                                @include f_all(13);
                            }
                        }
                        .num {
                            @include f_all(30);
                            @include maxwidth(768) {
                                @include f_all(24);
                            }
                            font-weight: 500;
                            padding-left: 29px;
                            box-sizing: border-box;
                            background: left top 60% / 21px auto no-repeat url(../images/icon-tel-white.svg);
                            margin-top: 8px;
                            @include maxwidth(768) {
                                padding-left: 20px;
                                background-size: 17px auto;
                            }
                        }
                        .time {
                            @include f_all(13);
                            font-weight: 500;
                            letter-spacing: -0.02em;
                            margin-top: 8px;
                        }
                    }
                    &.form {
                        gap: 12px;
                        .title {
                            padding-left: 35px;
                            background: left top 2px / 23px auto no-repeat url(../images/icon-mail-white.svg);
                            @include maxwidth(768) {
                                padding-left: 27px;
                                background-size: 19px auto;
                            }
                        }
                    }

                    @media (any-hover) {
                        &:hover {
                            .title::after {
                                background-color: $accentcolor;
                            }
                        }
                    }
                }
            }
        }
    }
    #footerSitemap {
        padding: 45px 0 30px;
        position: relative;
        @include maxwidth(768) {
            padding: 20px 0 67px;
        }
        .container {
            .menu {
                color: $themecolor;
                @include f_all(15);
                @include maxwidth(768) {
                    @include f_all(14);
                }
                font-weight: bold;
                line-height: 1.4;
                ul {
                    display: flex;
                    justify-content: flex-end;
                    flex-wrap: wrap;
                    gap: 1em 2em;
                    @include maxwidth(1200) {
                        flex-direction: column;
                        gap: 1px;
                    }
                    li {
                        a {
                           @include maxwidth(1200) {
                                @include flex_centering;
                                background-color: $basecolor;
                                padding: 10px 25px 10px;
                                box-sizing: border-box;
                                min-height: 3em;
                                position: relative;
                                &::after{
                                    content: '';
                                    display: block;
                                    width: 6px;
                                    height: 9px;
                                    background: center / contain no-repeat url(../images/arrow-right-color.svg);
                                    position: absolute;
                                    inset: 0 auto 0 12px;
                                    margin: auto;
                                }
                            }

                            @media (any-hover) {
                                transition: filter 200ms, -webkit-filter 200ms;
                                &:hover {
                                    filter: opacity(0.8);
                                    -webkit-filter: opacity(0.8);
                                }
                            }
                        }
                    }
                }
            }

            .aside-menu {
                margin-top: 25px;
                @include f_all(14);
                font-weight: bold;
                line-height: 1.4;
                @include maxwidth(768) {
                    @include f_all(13);
                    margin-top: 12px;
                }
                ul {
                    display: flex;
                    justify-content: flex-end;
                    flex-wrap: wrap;
                    gap: 1em 2em;
                    @include maxwidth(1200) {
                        flex-direction: column;
                        align-items: center;
                        justify-content: initial;
                        gap: 6px;
                    }
                    li {
                        a {
                            @media (any-hover) {
                                transition: filter 200ms, -webkit-filter 200ms;
                                &:hover {
                                    filter: opacity(0.8);
                                    -webkit-filter: opacity(0.8);
                                }
                            }
                        }
                    }
                }
            }

            .copyright {
                text-align: right;
                margin-top: 13px;
                @include maxwidth(1200) { text-align: center; }
                small {
                    @include f_all(13);
                    font-weight: 600;
                    line-height: 1.4;
                }
            }

        }
    }
}

.gnav-toggle {
    &-wrapper {
        @media screen and (min-width: 769px) {
            position: fixed;
            top: 20px;
            .admin-bar & { top: (20px + 32px); }
        }
        right: 30px;
        @include maxwidth(768) {
            position: absolute;
            top: 20px;
            right: 15px;
            .menu_open & {
                position: fixed;
            }
            .admin-bar.menu_open & {
                top: 52px;
            }
        }
        z-index: 101;

        @media screen and (min-width: 1201px) {
            .gnav-toggle {
                opacity: 0;
                visibility: hidden;
                transform: translateX(1rem);
                transition:
                    opacity 200ms,
                    visibility 200ms,
                    transform 200ms
                ;
                .header_scrollout & {
                    opacity: 1;
                    visibility: visible;
                    transform: translateX(0);
                }
            }
        }
    }

    cursor: pointer;
    display: block;
    width: 50px;
    height: 50px;
    background-color: $accentcolor;
    position: relative;
    .b {
        >span {
            display: inline-block;
            width: 20px;
            height: 1px;
            background-color: $themetextcolor;
            @include absolute_centering;
            @include flex_centering;
            &:nth-of-type(1) {
                transform: translateY(-5px);
                .menu_open & {
                    transform: translateY(-5px) rotate(45deg);
                }
            }
            &:nth-of-type(2) {
                .menu_open & {
                    transform: translateY(-5px) rotate(-45deg);
                }
            }
        }
    }
    .t {
        color: $themetextcolor;
        @include f_all(10);
        font-weight: 800;
        position: absolute;
        inset: auto 0 20% 0;
        @include flex_centering;
        overflow: hidden;
        &::before, &::after {
            transition: transform 200ms;
        }
        &::before {
            content: "Menu";
            display: block;
            body.menu_open & {
                transform: translate(0, -100%);
            }
        }
        &::after {
            content: "Close";
            position: absolute;
            inset: auto 0 0 0;
            @include flex_centering;
            transform: translate(0,100%);
            body.menu_open & {
                transform: translate(0,0);
            }
        }
    }
}

.gnav {
    &-wrapper {
        position: fixed;
        inset: 0;
        z-index: 100;
        background-color: $basetextcolor;
        color: $themetextcolor;
        opacity: 0;
        visibility: hidden;
        transition: 200ms;
        .menu_open & {
            opacity: 1;
            visibility: visible;
        }
    }

    position: fixed;
    .admin-bar & { top: 32px; }
    inset: 0;
    overflow-y: auto;
    &::-webkit-scrollbar { display: none; }
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 8vh 15px;
    box-sizing: border-box;

    .container {
        max-width: 840px;
        width: 100%;
        margin: 0 auto;
        padding: 0 20px;
        box-sizing: border-box;
        position: relative;
        .head {
            .sitename {
                @include flex_centering;
                a {
                    @include flex_centering;
                    width: 160px;
                    height: 160px;
                    background-color: $themecolor;
                    @include maxwidth(768) {
                        width: 120px;
                        height: 120px;
                    }
                }
                img {
                    //width: 90px;
                    width: 80px;
                    @include maxwidth(768) {
                        //width: 70px;
                        width: 60px;
                    }
                }
            }
        }
        .body {
            margin-top: 15px;
            .menu {
                ul {
                    li {
                        &:not(:first-child) { margin-top: 1px; }
                        opacity: 0;
                        transform: translateX(100px);
                        transition: transform 200ms, opacity 200ms;
                        &:has(ul.children.open) {
                            > a { opacity: 0.8; }
                        }
                        .menu_open & {
                            opacity: 1;
                            transform: translateX(0px);
                            @for $i from 0 to 20 {
                                &:nth-child(#{$i + 1}) {
                                    transition-delay: #{$i * 0.10s};
                                }
                            }
                        }
                        a {
                            color: $themetextcolor;
                            @include f_all(15);
                            @include maxwidth(768) {
                                @include f_all(14);
                            }
                            line-height: 1.5;
                            font-weight: 800;
                            display: flex;
                            align-items: center;
                            gap: 12px;
                            background-color: $themecolor;
                            padding: 5px 30px 5px 20px;
                            box-sizing: border-box;
                            min-height: 50px;
                            @include maxwidth(768) {
                                min-height: 45px;
                            }
                            position: relative;
                            &::before {
                                content: '';
                                flex-shrink: 0;
                                display: block;
                                width: 6px;
                                height: 6px;
                                background-color: $themecolor2;
                            }
                            &::after {
                                content: '';
                                display: block;
                                @include cta;
                                transition: 0ms;
                                position: absolute;
                                inset: 0 12px 0 auto;
                                margin: auto !important;
                            }
                            &.parent {
                                &:after {
                                    background-image: url(../images/arrow-bottom-white.svg);
                                    background-size: 9px auto;
                                }
                                &.active {
                                    &::after {
                                        transform: rotate(-180deg);
                                    }
                                }
                            }
                            @media (any-hover: hover) {
                                &:hover {
                                    opacity: 0.8;
                                }
                            }
                        }
                        &>ul { display: none; }
                    }
                    &.children {
                        padding-top: 1px;
                        li {
                            a {
                                font-weight: 600;
                                @include f_all(13);
                                min-height: 40px;
                                color: $basetextcolor;
                                background-color: $basecolor;
                                &::after {
                                    width: 6px;
                                    height: 10px;
                                    border-radius: 0px;
                                    inset: 0 1.5rem 0 auto;
                                    background-color: transparent;
                                    background-image: url(../images/arrow-right-color.svg);
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}

.totop {
    &-wrapper {
        position: fixed;
        bottom: 15px;
        right: 30px;
        z-index: 20;
        @include maxwidth(768) { display: none !important; }
        pointer-events: none;
        .header_scrollout & { pointer-events: auto; }
    }
    cursor: pointer;
    color: $themetextcolor;
    @include f_all(10);
    font-weight: 800;
    text-transform: capitalize;
    @include flex_centering;
    flex-direction: column;
    gap: 0.55em;
    width: 50px;
    height: 50px;
    background-color: $themecolor;
    padding-top: 4px;
    box-sizing: border-box;
    @media screen and (min-width: 769px) {
        opacity: 0;
        visibility: hidden;
        transform: translateX(1rem);
        transition:
            opacity 200ms,
            visibility 200ms,
            transform 200ms,
        ;
        .header_scrollout & {
            opacity: 1;
            visibility: visible;
            transform: translateX(0);
        }
    }
    &::before{
        content: '';
        display: block;
        width: 10px;
        height: 7px;
        background: center / contain no-repeat url(../images/arrow-bottom-white.svg);
        transform: rotate(-180deg);
    }
}

// スマホ幅のみ表示
.footbar {
    @media screen and (min-width: 769px) {
        display: none !important;
    }
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 25;
    transform: translateY(100%);
    transition: transform 500ms;
    .header_scrollout & {
        transform: translateY(0%);
    }
    ul {
        display: flex;
        li {
            flex: auto;
            &:has(> .totop),
            &:has(> .gnav-toggle)
            { flex: 0 0 50px; }

            a:not(.totop):not(.gnav-toggle) {
                color: $themetextcolor;
                @include f_all(15);
                font-weight: bold;
                @include flex_centering;
                padding: 5px;
                box-sizing: border-box;
                gap: 5px;
                height: 50px;
                background-color: $basetextcolor;
                position: relative;
                &::before {
                    content: "";
                    @include cta($basetextcolor);
                    position: absolute;
                    inset: 0 auto 0 0.875em;
                    margin: auto !important;
                }
                @media (any-hover: hover) {
                    &:hover {
                    }
                }
            }
        }
    }
}

.c-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    @include maxwidth(768) {
        align-items: center;
        padding-bottom: 14px;
        box-sizing: border-box;
        position: relative;
    }
    .sub {
        color: $themecolor2;
        @include f_all(14);
        font-weight: 500;
        line-height: 1.5;
        text-transform: capitalize;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        @include maxwidth(768) {
            @include f_all(12);
        }
        &::before{
            content: '';
            flex-shrink: 0;
            display: block;
            width: 6px;
            height: 6px;
            background-color: currentColor;
            transform: rotate(45deg);
            margin-top: 0.05em;
            @include maxwidth(768) {
                margin-top: 0px;
                position: absolute;
                inset: auto 0 0 0;
                margin: auto;
            }
        }
    }
    .main {
        color: $themecolor;
        font-size: clamp(20px,(32 / 1024 * 100vw),32px);
        font-weight: 600;
        line-height: 1.5;
    }
}

.c-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem 2rem;
}

.c-button {
    @include c_button;
}

.cases-terms {
    position: relative;
    &:has(+ .cases-headline) { margin-bottom: 20px; }
    ul {
        .toppage & {
            @media screen and (min-width: 1025px) {
                display: flex;
                gap: 5px;
            }
        }
        .subpage & {
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
        }
        li {
            .toppage & {
                width: auto !important;
                @media screen and (min-width: 769px) {
                    flex: 100%;
                    margin-right: 0 !important;
                }
                @include maxwidth(768) {
                    flex-shrink: 0;
                    flex-grow: 0;
                    flex-basis: 200px;
                }
            }
            .subpage & {
                @include maxwidth(768) {
                    flex-basis: calc((100% - 5px) / 2);
                    &:first-child { flex-basis: 100%; }
                }
            }
            height: auto;
            a {
                color: $basetextcolor;
                text-align: center;
                @include f_all(14);
                font-weight: bold;
                line-height: 1.2;
                @include flex_centering;
                padding: 0.25em 34px;
                box-sizing: border-box;
                height: 100%;
                min-height: 50px;
                border-bottom: solid 1px $themecolor3;
                position: relative;
                @include maxwidth(768) {
                    padding-right: 15px;
                }
                &::before{
                    content: '';
                    display: block;
                    width: 6px;
                    height: 9px;
                    background: center / contain no-repeat url(../images/arrow-right-black.svg);
                    position: absolute;
                    inset: 0 auto 0 17px;
                    margin: auto;
                    @include maxwidth(768) {
                        inset: 0 auto 0 14px;
                    }
                }

                &.current {
                    color: $themecolor;
                    @include f_all(15);
                    &::before {
                        width: 9px;
                        height: 6px;
                        inset: 0 auto 0 15px;
                        background-image: url(../images/arrow-bottom-color.svg);
                    }
                }

                @media (any-hover: hover) {
                    transition: filter 200ms, -webkit-filter 200ms;
                    &:hover {
                        filter: opacity(0.8);
                        -webkit-filter: opacity(0.8);
                    }
                }
            }
        }
    }

    &__children {
        @include f_all(14);
        font-weight: bold;
        line-height: 1.2;
        position: relative;
        margin-top: 20px;
        ul {
            @media screen and (min-width: 1025px) {
                flex-wrap: wrap !important;
                li {
                    margin-top: 5px;
                }
            }
            li {
                display: inline-block;
                width: auto;
                flex-shrink: 0;
                a {
                    color: $themecolor;
                    @include flex_centering;
                    gap: 0.25em;
                    padding: 0 12px;
                    box-sizing: border-box;
                    background-color: $themecolor3;
                    min-height: 45px;
                    @include maxwidth(768) {
                        min-height: 55px;
                    }
                    position: relative;

                    &:not(.all) {
                        &::before {
                            content: '#';
                            margin-right: 0.05em;
                        }
                    }

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

                    @media (any-hover: hover) {
                        &:hover {
                            color: $themetextcolor;
                            background-color: $themecolor;
                        }
                    }
                }
            }
        }
    }

    // 子ターム
    &-children {
        margin-top: 10px;
        &:has(+ .cases-headline) { margin-bottom: 20px; }
        ul {
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
            li {
                a {
                    color: $themetextcolor;
                    @include f_all(14);
                    font-weight: bold;
                    line-height: 1.2;
                    @include flex_centering;
                    padding: 12px;
                    box-sizing: border-box;
                    background-color: $themecolor2;
                    min-height: 40px;
                    position: relative;

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

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

.noposts {
    padding: 2em 2em;
    @include maxwidth(768) {
        padding: 1em 10px;
    }
    box-sizing: border-box;
    background-color: mix($themecolor, $themetextcolor, .1);
    text-align: center;
	color:$themecolor;
	font-size: 15px;
	font-weight: 600;
	line-height: 150%;
}
// 求人情報の場合は特に強調して表示
.jobs-headline .noposts {
	font-size: 20px;
}

.cases-headline {
    position: relative;
    .headline-items {
        body.subpage & {
            --cases-headline-items-gap: 10px;
            display: flex;
            flex-wrap: wrap;
            gap: 40px var(--cases-headline-items-gap);
        }
    }
    .headline-item {
        body.subpage & {
            flex-basis: calc((100% - (var(--cases-headline-items-gap) * 3)) / 4);
            @include maxwidth(1024) { flex-basis: calc((100% - (var(--cases-headline-items-gap) * 2)) / 3); }
            @include maxwidth(768) { flex-basis: calc((100% - var(--cases-headline-items-gap)) / 2); }
        }
        &__link {
            text-decoration: none !important;
            @media (any-hover: hover) {
                &:hover {
                    .image > img { transform: scale(1.15); }
                    .image::before {
                        background-color: rgba(#000, 0.45);
                    }
                    .image::after {
                        background-color: $accentcolor;
                    }
                }
            }
            &>* { display: block; }
            .image {
                padding-top: (380 / 420 * 100%);
                box-sizing: border-box;
                position: relative;
                overflow: hidden;
                isolation: isolate;
                >img {
                    position: absolute;
                    z-index: -1;
                    top: 0;
                    left: 0;
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                    transition: transform 300ms;
                }
                &::before {
                    content: "";
                    position: absolute;
                    inset: 0;
                    background-color: transparent;
                    transition: background-color 200ms;
                }
                &::after {
                    content: "";
                    @include cta;
                    position: absolute;
                    inset: auto 10px 10px auto;
                    body.subpage & {
                        @include maxwidth(768) {
                            inset: auto 5px 5px auto;
                        }
                    }
                }
            }
            .title {
                @include f_all(16);
                font-weight: bold;
                line-height: 1.5;
                margin-top: 10px;
                @include maxwidth(768) { @include f_all(15); }
            }
            .terms {
                margin-top: 5px;
                display: flex;
                align-items: center;
                flex-wrap: wrap;
                gap: 2px;
                padding-left: 10px;
                box-sizing: border-box;
                position: relative;
                &::before {
                    content: "";
                    flex-shrink: 0;
                    display: inline-block;
                    width: 6px;
                    height: 6px;
                    background-color: $themecolor2;
                    position: absolute;
                    inset: 0.45em auto auto 0;
                }
                .term {
                    @include f_all(12);
                    font-weight: 500;
                    flex-shrink: 0;
                    line-height: 1.2;
                    display: inline-flex;
                    align-items: center;
                    justify-content: center;
                    padding: 2px 4px 4px;
                    box-sizing: border-box;
                    color: $basetextcolor;
                    background-color: $themecolor3;
                    min-height: 20px;
                }
            }
        }
    }

    body.subpage &.output-post-list {
        .headline-items {
            --cases-headline-items-gap: 30px;
            @include maxwidth(1024) {
                --cases-headline-items-gap: 10px;
                justify-content: center;
            }
        }
        .headline-item {
            flex-basis: calc((100% - (var(--cases-headline-items-gap) * 2)) / 3);
            @include maxwidth(1024) {
                flex-basis: calc((100% - (var(--cases-headline-items-gap) * 1)) / 2);
            }
            @include maxwidth(480) {
                flex-basis: 100%;
            }
            &__link {
            }
        }
    }
}

.news-terms {
    position: relative;
    &:has(+ .news-headline) { margin-bottom: 20px; }
    ul {
        .toppage & {
            @media screen and (min-width: 1025px) {
                display: flex;
                flex-wrap: wrap;
                gap: 5px;
            }
        }
        .subpage & {
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
        }
        li {
            .toppage & {
                @media screen and (min-width: 1025px) {
                    margin-right: 0px !important;
                }
            }
            .subpage & {
                @include maxwidth(768) {
                    flex-basis: calc((100% - 5px) / 2);
                    &:first-child { flex-basis: 100%; }
                    a { min-width: initial; }
                }
            }
            width: auto;
            a {
                color: $themecolor;
                @include f_all(14);
                font-weight: bold;
                line-height: 1.2;
                @include flex_centering;
                padding: 0.5em 12px;
                box-sizing: border-box;
                background-color: $themecolor3;
                min-height: 45px;
                position: relative;

                &.all {
                    &::before{
                        content: '';
                        display: block;
                        width: 6px;
                        height: 9px;
                        background: center / contain no-repeat url(../images/arrow-right-color.svg);
                        margin-right: 7px;
                        margin-top: 0.1em;
                    }
                }
                &.current {
                    color: $themetextcolor;
                    background-color: $themecolor;
                    &::before {
                        width: 9px;
                        height: 6px;
                        background-image: url(../images/arrow-bottom-white.svg);
                    }
                }

                &:not(.all) {
                    &::before {
                        content: "#";
                        margin-right: 0.15em;
                    }
                }

                @media (any-hover: hover) {
                    transition: filter 200ms, -webkit-filter 200ms;
                    &:hover {
                        filter: opacity(0.8);
                        -webkit-filter: opacity(0.8);
                    }
                }
            }
        }
    }
}

.news-headline {
    position: relative;
    .headline-items {  }
    .headline-item {
        &__link {
            text-decoration: none !important;
            color: $basetextcolor;
            display: flex;
            gap: 25px;
            min-height: 90px;
            padding: 25px 120px 15px 0;
            box-sizing: border-box;
            border-bottom: solid 1px $themecolor3;
            position: relative;
            transition: 200ms;
            @include maxwidth(768) {
                flex-direction: column;
                gap: 4px;
                padding: 14px 50px 14px 10px;
            }

            :where(span) { display: block; }

            .l-left {
                flex-shrink: 0;
            }
            .l-right {
                flex: 1;
            }

            .date {
               @include f_all(14);
               font-weight: 600;
               line-height: 1.2;
            }

            .title {
                @include f_all(14);
                font-weight: bold;
                line-height: 1.5;
            }

            .terms {
                display: flex;
                align-items: center;
                flex-wrap: wrap;
                gap: 2px;
                padding-left: 10px;
                box-sizing: border-box;
                margin-top: 8px;
                position: relative;
                &::before {
                    content: "";
                    display: inline-block;
                    width: 6px;
                    height: 6px;
                    background-color: $themecolor2;
                    position: absolute;
                    inset: 0.45em auto auto 0;
                }
                .term {
                    @include f_all(12);
                    font-weight: 500;
                    line-height: 1.2;
                    display: inline-flex;
                    align-items: center;
                    justify-content: center;
                    padding: 2px 4px 3px;
                    box-sizing: border-box;
                    background-color: $themecolor3;
                    min-height: 20px;
                }
            }

            &::after {
                content: "";
                @include cta;
                position: absolute;
                inset: 0 40px 0 auto;
                margin: auto !important;
                @include maxwidth(768) {
                    inset: 0 5px 0 auto;
                }
            }

            @media (any-hover: hover) {
                &:hover {
                    @media screen and (min-width: 769px) {
                        padding-left: 0.65em;
                    }
                    &::after {
                        background-color: $accentcolor;
                    }
                }
            }

        }
    }

    &.output-post-list {
        .headline-item {
            &__link {
                .terms {
                    .term {
                        all: unset;
                        @include f_all(14);
                        @include maxwidth(768) {
                            @include f_all(13);
                        }
                        font-weight: bold;
                        line-height: 1.2;
                        color: $themecolor2;
                        &::after {
                            content: " / ";
                        }
                        &:last-of-type::after { display: none; }
                    }
                }
            }
        }
    }
}

//.job-headline {
.jobs-headline {
    position: relative;
    &.output-post-list {
        .headline-items {
        }
    }
    .headline-items {
        --job-headline-items-gap: 30px;
        @include maxwidth(1024) {
            --job-headline-items-gap: 10px;
        }
        display: flex;
        flex-wrap: wrap;
        gap: var(--job-headline-items-gap);
    }
    .headline-item {
        flex-basis: calc((100% - (var(--job-headline-items-gap) * 2)) / 3);
        @include maxwidth(1024) {
            flex-basis: 100%;
        }
        &__link {
            text-decoration: none !important;
            display: block;
            padding: 30px 7.3% 20px;
            @include maxwidth(768) {
                padding: 25px 20px;
            }
            box-sizing: border-box;
            background-color: #F3F6F8;
            > :where(*) { display: block; }
            .title {
                @include f_all(20);
                @include maxwidth(768) {
                    @include f_all(18);
                }
                font-weight: bold;
                line-height: 1.5;
                color: $themecolor;
            }
            .terms {
                margin-top: 12px;
                display: flex;
                align-items: center;
                flex-wrap: wrap;
                gap: 4px;
                .term {
                    @include f_all(14);
                    @include maxwidth(768) {
                        @include f_all(12);
                    }
                    font-weight: bold;
                    line-height: 1;
                    @include flex_centering;
                    color: $themetextcolor;
                    background-color: $themecolor;
                    padding: 0px 12px 1px;
                    box-sizing: border-box;
                    border-radius: 20px;
                    min-height: 1.9em;
                }
            }
            table {
                margin-top: 12px;
                width: 100%;
                tbody {
                    tr {
                        th,td {
                            padding: 0;
                            @include f_all(15);
                            @include maxwidth(768) {
                                @include f_all(14);
                            }
                            font-weight: 500;
                            line-height: 1.5;
                            background-color: transparent !important;
                            box-sizing: border-box;
                            position: relative;
                            padding: 0 !important;
                        }
                        th {
                            width: 80px;
                            color: $themecolor;
                            font-weight: bold;
                            &::after {
                                content: ":";
                                position: absolute;
                                inset: 0 0.7em 0 auto;
                                margin: auto;
                            }
                        }
                        td {
                        }
                    }
                }
            }
			div.item_heading {
                @include f_all(15);
                @include maxwidth(768) { @include f_all(14); }
                color: $themecolor;
                font-weight: bold;
                margin-top:25px;
			}
			div.description {
			    @include f_all(14);
			    @include maxwidth(768) {
			        @include f_all(13);
			    }
			    font-weight: 500;
			    line-height: 1.5;
			    margin-top: 13px;
			    & > * {
			    	margin-block: 1em;
			    	&:first-child { margin-top: 0; }
			    	&:last-child { margin-bottom: 0; }
			    }
			    ul {
			    	margin-left:1em !important;
			    	li { margin: 0; line-height:1.1;}
				}
			}
            //.text {
            //    @include f_all(14);
            //    @include maxwidth(768) {
            //        @include f_all(13);
            //    }
            //    font-weight: 500;
            //    line-height: 1.5;
            //    margin-top: 13px;
            //}
            //.list {
            //    @include f_all(14);
            //    @include maxwidth(768) {
            //        @include f_all(13);
            //    }
            //    font-weight: 500;
            //    line-height: 1.5;
            //    margin-top: 8px;
            //}
            .c-buttons {
                display: flex;
                justify-content: flex-end;
                margin-top: 40px;
                @include maxwidth(1024) {
                    margin-top:1rem;
                }
                .c-button {
                    &__link {
                        @include f_all(14);
                        @include maxwidth(768) {
                            @include f_all(13);
                        }
                    }
                }
            }
            @media (any-hover: hover) {
                &:hover {
                    .c-button__link {
                        &::after {
                            background-color: $accentcolor;
                        }
                    }
                }
            }
        }
    }
}

// === Toppage

#toppageConcept {
    padding: 150px 0;
    @include maxwidth(768) { padding: 45px 0 50px; }
    position: relative;
    isolation: isolate;
    &::before {
        content: "";
        position: absolute;
        z-index: -1;
        inset: 0px;
        background: linear-gradient(180deg, $basecolor 0%, $themecolor3 100%);
    }
    .container {
        @include container(1320, 20);
        .cols {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-direction: row-reverse;
            gap: 2rem;
            @include maxwidth(1024) {
                flex-direction: column;
                align-items: initial;
                justify-content: initial;
                gap: 40px;
                &>* {
                    flex: none !important;
                }
            }
            .col {
                &:nth-of-type(1) {
                    flex-basis: 560px;
                    @include maxwidth(1024) {
                        max-width: 615px;
                        width: 100%;
                        margin: 0 auto;
                        padding: 0 25px;
                        box-sizing: border-box;
                    }
                }
                &:nth-of-type(2) { flex-basis: 620px; }

                .c-heading {
                    @include maxwidth(1024) { align-items: center; }
                    .sub {
                        @include maxwidth(1024) {
                            flex-direction: column;
                            align-items: center;
                        }
                    }
                    .main {
                        @include maxwidth(1024) {
                            text-align: center;
                            padding-left: 0.5em;
                        }
                    }
                }

                .text {
                    @include f_all(15);
                    font-weight: 500;
                    line-height: 2;
                    margin-top: 30px;
                    @include maxwidth(1024) {
                        text-align: center;
                    }
                    @include maxwidth(768) {
                        @include f_all(14);
                    }

                    >*:not(:first-child) {
                        margin-top: 2em;
                    }
                }

                .c-buttons {
                    margin-top: 40px;
                    @include maxwidth(1024) {
                        flex-direction: column;
                        align-items: flex-end;
                    }
                    @include maxwidth(768) { margin-top: 45px; }
                }

                .image {
                    padding-top:100%;
                    box-sizing: border-box;
                    position: relative;
                    @include maxwidth(1024) {
                        margin-left: -20px;
                        margin-right: -20px;
                    }
                    >img {
                        position: absolute;
                        top: 0;
                        left: 0;
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                    }
                }
            }
        }
    }
}

#toppageBusiness {
    padding-top: 80px;
    position: relative;
    @include maxwidth(768) {
        padding-top: 40px;
    }
    .container {
        margin-left: 5px;
        margin-right: 5px;
        .head {
            .c-heading {
                align-items: center;
                text-align: center;
                padding-bottom: 15px;
                .sub {
                    &::before {
                        position: absolute;
                        inset: auto 0 0 0;
                        margin: auto;
                    }
                }
                .main {
                }
            }
        }
        .body {
            margin-top: 15px;
            .leadtext {
                color: $themecolor;
                font-size: clamp(18px,(24 / 1024 * 100vw),24px);
                font-weight: 600;
                text-align: center;
                line-height: 1.5;
            }
            .companies {
                --companies-gap: 5px;
                color: $themetextcolor;
                margin: 18px var(--companies-gap) 0;
                @media screen and (min-width: 1025px) {
                    display: grid;
                    grid-template-columns: repeat(4, 1fr);
                    grid-template-rows: repeat(5, 1fr);
                    grid-gap: var(--companies-gap);
                    height: 100vh;
                    min-height: 600px;
                }
                @include maxwidth(768) {
                    margin-top: 10px;
                }
                li {
					// アニメーション用ここから
					clip-path: inset(0 0 100% 0);
					will-change: clip-path;
					transform: translateY(40px);
					// ここまで
                    @media screen and (min-width: 1025px) {
                        &:nth-of-type(1) { grid-area: 1 / 1 / 3 / 3; }
                        &:nth-of-type(2) { grid-area: 1 / 3 / 4 / 4; }
                        &:nth-of-type(3) { grid-area: 1 / 4 / 4 / 5; }
                        &:nth-of-type(4) { grid-area: 3 / 1 / 6 / 2; }
                        &:nth-of-type(5) { grid-area: 3 / 2 / 6 / 3; }
                        &:nth-of-type(6) { grid-area: 4 / 3 / 6 / 5; }
                    }
                    @include maxwidth(1024) {
                        &:not(:first-child) {
                            margin-top: var(--companies-gap);
                        }
                    }
                    position: relative;
                    a {
                        @include maxwidth(1024) {
                            display: flex;
                            justify-content: center;
                            min-height: 360px;
                            padding: 15px 15px 55px;
                            box-sizing: border-box;
                            position: relative;
                        }
                        > :where(*) {
                            display: block;
                        }
                        .bgimg {
                            position: absolute;
                            inset: 0;
                            overflow: hidden;
                            > img {
                                width: 100%;
                                height: 100%;
                                object-fit: cover;
                                transition: transform 500ms;
                            }
                            &::after {
                                content: "";
                                position: absolute;
                                inset: 0;
                                background: rgba(0, 0, 0, 0.55);
                                transition: background 500ms;
                            }
                        }
                        .docs {
                            position: relative;
                            @include flex_centering;
                            flex-direction: column;
                            height: 100%;
                            > :where(*) {
                                display: block;
                            }
                            > *:not(.idx) {
                                max-width: 340px;
                                width: 100%;
                                margin: 0 auto;
                                padding: 0 10px;
                                box-sizing: border-box;
                            }
                            .idx {
                                @include f_all(12);
                                font-weight: bold;
                                @media screen and (min-width: 1025px) {
                                    position: absolute;
                                    inset: 10px auto auto 1rem;
                                    br { display: none !important; }
                                }
                                @include maxwidth(1024) {
                                    line-height: 1.5;
                                    margin-bottom: 5px;
                                    text-align: center;
                                }
                            }
                            .logo {
                                width: auto;
                                display: inline-flex;
                                align-items: center;
                                justify-content: center;
                                padding: 13px 20px;
                                box-sizing: border-box;
                                margin: 0 10px;
                                background-color: $themecolor3;
                                min-height: 120px;
                                @include maxwidth(1024) {
                                    margin: 0px;
                                }
                                @include maxwidth(768) {
                                    padding: 10px 16px;
                                    background-color: $themetextcolor;
                                }
                                > img {
                                }
                            }
                            .text {
                                @include f_all(15);
                                font-weight: 600;
                                line-height: 1.6;
                                text-align: center;
                                margin-top: 22px;
                                @include maxwidth(768) {
                                    margin-top: 12px;
                                }
                            }
                            .terms {
                                @include flex_centering;
                                flex-wrap: wrap;
                                gap: 10px;
                                margin-top: 19px;
                                @include maxwidth(768) {
                                    margin-top: 13px;
                                }
                                &::before {
                                    content: "取り扱い事業・サービス";
                                    flex-basis: 100%;
                                    @include f_all(14);
                                    font-weight: bold;
                                    line-height: 1.3;
                                    text-align: center;
                                    @include flex_centering;
                                    padding: 0.5em 1em;
                                    box-sizing: border-box;
                                    background-color: $basetextcolor;
                                    margin-bottom: 10px;
                                    @include maxwidth(768) {
                                        margin-bottom: 5px;
                                    }
                                }
                                .term {
                                    @include f_all(14);
                                    font-weight: bold;
                                    display: inline-flex;
                                    align-items: center;
                                    justify-content: center;
                                    padding: 0.15em 12px 0.3em;
                                    box-sizing: border-box;
                                    border-radius: 20px;
                                    min-height: 26px;
                                    background-color: $themecolor;
                                }
                            }
                        }
                        &::after {
                            content: "";
                            @include cta;
                            position: absolute;
                            inset: auto 10px 10px auto;
                        }

                        @media (any-hover: hover) {
                            &:hover {
                                .bgimg > img { transform: scale(1.15); }
                                .bgimg::after { background-color: rgba(#000, 0.8); }
                                &::after { background-color: $accentcolor; }
                            }
                        }

                    }
                }
            }
        }
    }
}

#toppageCases {
    padding: 80px 0 120px;
    position: relative;
    z-index: 1;
    @include maxwidth(768) { padding: 60px 0 100px; }
    .container {
        @include container(1320, 30);
        @include maxwidth(768) {
            margin-left: 15px;
            margin-right: 15px;
        }
        .head {
            .c-heading {  }
        }
        .body {
            margin-top: 30px;
            @include maxwidth(768) { margin-top: 20px; }
            .tab {
                &-trigger {
                    padding-bottom: 2px;
                    margin: 0 calc(50% - 50vw);
                    padding-left: calc(50vw - 50%);
                    padding-right: calc(50vw - 50%);
                    box-sizing: border-box;
                }
                &-border {
                    display: inline-block;
                    height: 4px;
                    @include maxwidth(768) {
                        height: 3px;
                    }
                    background-color: $themecolor;
                    position: absolute;
                    z-index: 10;
                    inset: auto auto 0 0;
                    transition: transform 400ms ease-out;
                }
                &-panels {
                    position: relative;
                }
                &-panel {
                    position: absolute;
                    inset: 0 auto auto 0;
                    width: 100%;
                    opacity: 0;
                    visibility: hidden;
                    pointer-events: none;
                    &.open {
                        position: static;
                        opacity: 1;
                        visibility: visible;
                        pointer-events: auto;
                    }

                    // --- stagger アニメーション対象 ---
                    .cases-terms__children li,
                    .headline-item {
                        opacity: 0;
                        transform: translate(30px, 0);
                        transition:
                            opacity 420ms cubic-bezier(0.7, 0, 0.84, 0),
                            transform 550ms cubic-bezier(0.7, 0, 0.84, 0);
                        transition-delay: calc(var(--i, 0) * 45ms);
                        will-change: opacity, transform;
                    }
                    &.open {
                        .cases-terms__children li,
                        .headline-item {
                            opacity: 1;
                            transform: translate(0, 0);
                        }
                    }

                    .cases-terms__children {
                        margin-left: calc(50% - 50vw);
                        margin-right: calc(50% - 50vw);
                        padding-left: calc(50vw - 50%);
                        padding-right: calc(50vw - 50%);
                        box-sizing: border-box;
                    }

                    .cases-headline {
                        margin: 38px calc(50% - 50vw) 0;
                        @include maxwidth(768) {
                            margin-top: 20px;
                        }
                        padding:0 calc(50vw - 50%) 0;
                        box-sizing: border-box;

                        .headline-items {
                        }

                        .headline-item {
                            width: 420px;
                            @include maxwidth(768) {
                                width: 315px;
                            }
                        }

                        .headline-buttons {
                            display: flex;
                            align-items: center;
                            justify-content: flex-end;
                            gap: 5px;
                            margin-bottom: 20px;
                            @include maxwidth(768) {
                                display: none;
                            }
                        }

                        .headline-button {
                            &-prev,
                            &-next {
                                cursor: pointer;
                                flex-shrink: 0;
                                display: block;
                                width: 50px;
                                height: 50px;
                                border-radius: 50px;
                                background: center / 6px auto no-repeat url(../images/arrow-right-color2.svg) $basecolor;
                                border: solid 1px $themecolor2;
                                position: static;
                                @include maxwidth(480) {
                                }

                                &.swiper-button-disabled {
                                    pointer-events: none;
                                    opacity: 0.5;
                                }

                                @media (any-hover: hover) {
                                    &:hover {
                                        background-color: $themecolor2;
                                        background-image: url(../images/arrow-right-white.svg);
                                    }
                                }

                            }
                            &-prev {
                                transform: scale(-1, 1);
                            }
                            &-next {
                            }
                        }

                    }
                }
            }
            .c-buttons {
                margin-top: 40px;
                @include maxwidth(768) {
                    margin-top: 35px;
                }
                justify-content: flex-end;
            }
        }
    }
}

#toppageRecruit {
    margin-top: -65vh;
    position: relative;
    .bg-color { background-color: $basetextcolor; }

    .message {
        color: $themetextcolor;
        font-size: clamp(28px,(64 / 1200 * 100vw),64px);
        white-space: nowrap;
        position: absolute;
        z-index: 20;
        overflow: hidden;
        width: 100%;
        left: 0;
        display: flex;
        padding-bottom: 0.25em;
        opacity: 0;
        .t { display: inline-block; }
        &.__right {
            top: 15vh;
            @include maxwidth(768) {
                top: 30vh;
            }
            justify-content: flex-end;
            .t { transform: translateX(100%) }
        }
        &.__left {
            bottom: 15vh;
            @include maxwidth(768) {
                bottom: 30vh;
            }
            .t { transform: translateX(-100%) }
        }
    }

    .sticky {
        &-wrapper {
            position: relative;
            isolation: isolate;
            .spacer {
                height: 150vh;
                &.small { height: 100vh; }
            }
        }
        &-content {
            position: sticky;
            top: 0;
            left: 0;
            @include flex_centering;
            height: 100vh;
            // overflow: hidden;
            .image {
                --reveal: 0;
                @include absolute_centering;
                @include flex_centering;
                &__inner {
                    width: 100%;
                    height: 100%;
                    position: relative;
                    overflow: hidden;
                    clip-path: inset(calc((1 - var(--reveal)) * 50%) 0 calc((1 - var(--reveal)) * 50%) 0);
                    @include maxwidth(768) {
                        clip-path: inset(calc((1 - var(--reveal)) * 50%) 0 calc((1 - var(--reveal)) * 50%) 0);
                    }
                    &::after{
                        content: '';
                        @include absolute_centering;
                        background: rgba(0,0,0,0.6);
                        @include maxwidth(768) {
                            background: rgba(0,0,0,0.65);
                        }
                        opacity: var(--reveal);
                        pointer-events: none;
                    }
                    > img {
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                        filter: blur(24px) grayscale(1) brightness(0.85);
                        transform: scale(1.15);
                        will-change: filter, transform;
                    }
                }
            }
        }
    }

    .container {
        margin-top: -150vh;
        color: $themetextcolor;
        position: relative;
        z-index: 10;
        @include maxwidth(768) {
        }
        .sp-image {
            @media screen and (min-width: 1025px) {
                display: none;
            }
        }
        &__inner {
            max-width: 850px;
            width: 100%;
            margin-left: auto;
            margin-right: auto;
            padding: 50vh 25px 40vh;
            box-sizing: border-box;
            position: relative;
            z-index: 10;
            @include maxwidth(1024) {
                padding-top: 60vh;
                padding-bottom: 60vh;
                // 最小高さを設ける
                min-height: 1700px;
                @include flex_centering;
                flex-direction: column;
            }
            @include maxwidth(768) {
                padding-left: 15px;
                padding-right: 15px;
                padding-bottom: 30vh;
            }
            .head {
                will-change: transform;
                .c-heading {
                    align-items: center;
                    padding-bottom: 10px;
                    box-sizing: border-box;
                    .sub {
                        &::before {
                            position: absolute;
                            inset: auto 0 0 0;
                            margin: auto;
                        }
                    }
                    .main {
                        color: currentColor;
                        text-align: center;
                        margin-top: 10px;

                        br.sp {
                            @media screen and (min-width: 769px) {
                                display: none !important;
                            }
                        }
                    }
                }
            }
            .body {
                margin-top: 20px;
                @include maxwidth(768) {
                    margin-top: 12px;
                }
                will-change: transform;
                .text {
                    @include f_all(15);
                    font-weight: 500;
                    line-height: 2;
                    text-align: center;
                    @include maxwidth(768) {
                        @include f_all(14);
                    }

                    > *:not(:first-child) {
                        margin-top: 2em;
                    }
                }
                .buttons {
                    --recruit-buttons-gap: 5px;
                    margin-top: 40px;
                    @include maxwidth(768) {
                        margin-top: 20px;
                    }
                    display: flex;
                    flex-wrap: wrap;
                    gap: var(--recruit-buttons-gap);
                }
                .button {
                    flex-basis: calc((100% - (var(--recruit-buttons-gap) * 2)) / 3);
                    @include maxwidth(768) {
                        flex-basis: calc((100% - var(--recruit-buttons-gap)) / 2);
                    }
                    will-change: transform, opacity, filter;
                    &__link {
                        color: $themetextcolor;
                        display: flex;
                        align-items: center;
                        flex-direction: column;
                        justify-content: space-between;
                        gap: 5px;
                        padding: 50px 10px;
                        box-sizing: border-box;
                        height: 100%;
                        background-color: $themecolor2;
                        border-radius: 5px;
                        min-height: 250px;
                        position: relative;
                        transition: transform 320ms ease, background-color 320ms ease, box-shadow 320ms ease;
                        @include maxwidth(768) {
                            padding: 15px 10px;
                            min-height: 170px;
                        }
                        .title {
                            transition: transform 320ms ease;
                        }
                        .idx {
                            @include f_all(24);
                        }
                        .title {
                            display: inline-flex;
                            flex-direction: column;
                            align-items: center;
                            padding-bottom: 40px;
                            position: relative;
                            .en {
                                @include f_all(14);
                                font-weight: 800;
                                text-transform: capitalize;
                                text-align: center;
                                @include maxwidth(768) { @include f_all(12); }
                            }
                            .ja {
                                @include f_all(14);
                                font-weight: bold;
                                text-align: center;
                                line-height: 1.5;
                                margin-top: 5px;
                                min-height: 2em;
                                @include maxwidth(768) {  }
                            }
                            &::after{
                                content: '';
                                flex-shrink: 0;
                                @include cta($themecolor);
                                position: absolute;
                                bottom: 0;
                                left: 0;
                                right: 0;
                                margin: auto;
                            }
                        }

                        @media (any-hover: hover) {
                            &:hover {
                                transform: translateY(-3px);
                                box-shadow: 0 18px 30px -12px rgba(0,0,0,0.4);
                                .title { transform: translateY(-2px); }
                            }
                        }
                    }
                }
            }
        }
        .images {
            pointer-events: none;
            position: absolute;
            inset: 0 auto auto 0;
            width: 100%;
            height: 100%;
            .image {
                position: absolute;
                z-index: 1;
                box-sizing: border-box;
                @include maxwidth(768) {
                    min-width: initial !important;
                    min-height: initial !important;
                }
                &:nth-of-type(1) {
                    inset: 0 auto auto (30 / 1440 * 100vw);
                    width: (300 / 1440 * 100vw);
                    height: (480 / 1440 * 100vw);
                    min-width: 300px;
                    min-height: 480px;
                    @include maxwidth(768) {
                        inset: 5% auto auto (10 / 375 * 100vw);
                        width: 200px;
                        height: 280px;
                    }
                }
                &:nth-of-type(2) {
                    inset: 10% 0 auto auto;
                    width: (300 / 1440 * 100vw);
                    height: (300 / 1440 * 100vw);
                    min-width: 300px;
                    min-height: 300px;
                    @include maxwidth(768) {
                        inset: 15% (10 / 375 * 100vw) auto auto;
                        width: 200px;
                        height: 200px;
                    }
                }
                &:nth-of-type(3) {
                    inset: auto auto 15% 0;
                    z-index: 1;
                    width: (615 / 1440 * 100vw);
                    height: (300 / 1440 * 100vw);
                    min-width: 615px;
                    min-height: 300px;
                    @include maxwidth(768) {
                        inset: auto auto 10% 0;
                        width: 280px;
                        height: 180px;
                    }
                }
                &:nth-of-type(4) {
                    inset: auto (30 / 1440 * 100vw) 18% auto;
                    width: (400 / 1440 * 100vw);
                    height: (400 / 1440 * 100vw);
                    min-width: 400px;
                    min-height: 400px;
                    @include maxwidth(768) {
                        inset: auto (30 / 1440 * 100vw) 15% auto;
                        width: 200px;
                        height: 200px;
                    }
                }
                &>img {
                    position: absolute;
                    top: 0;
                    left: 0;
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                    transform: scale(1.3);
                    transition: transform 1100ms cubic-bezier(.2,.8,.2,1);
                    will-change: transform;
                }

                overflow: hidden;
                clip-path: inset(50% 50% 50% 50% round 2px);
                box-shadow: 0 0 0 rgba(0,0,0,0);
                transition: clip-path 900ms cubic-bezier(.2,.8,.2,1),
                            box-shadow 900ms ease;

                &.visi {
                    clip-path: inset(0 0 0 0 round 2px);
                    box-shadow: 0 18px 40px -10px rgba(0,0,0,0.45);
                    > img { transform: scale(1.0); }
                }

            }
        }
        .wideimg {
            width: 100%;
            height: (320 / 1440 * 100vw);
            min-height: 320px;
            @include maxwidth(768) {
                height: (200 / 375 * 100vw);
                min-height: 200px;
            }
            clip-path: inset(0);
            > img {
                position: fixed;
                inset: 0 auto auto 0;
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
        }
    }
}

#toppageLatestnews {
    margin-top: -100vh;
    padding: 80px 0 100px;
    @include maxwidth(768) {
        padding: 40px 0 60px;
    }
    position: relative;
    background-color: $basecolor;
    z-index: 2;
    .container {
        @include container(1320,30);
        @include maxwidth(768) {
            margin-left: 15px;
            margin-right: 15px;
        }
        .head {
            .c-heading {  }
        }
        .body {
            margin-top: 25px;
            @include maxwidth(768) {
                margin-top: 20px;
            }
            .news-terms {
                margin-left: calc(50% - 50vw);
                margin-right: calc(50% - 50vw);
                padding-left: calc(50vw - 50%);
                padding-right: calc(50vw - 50%);
                box-sizing: border-box;
            }
            .news-headline {
                margin-top: 30px;
                @include maxwidth(768) {
                    margin-top: 20px;
                }
            }
            .c-buttons {
                margin-top: 30px;
                margin-right: 40px;
                @include maxwidth(768) {
                    margin-top: 20px;
                    margin-right: 0px;
                }
                justify-content: flex-end;
            }
        }
    }
}

// === Subpage

.subpage #content {
    padding: 210px 0 80px;
    box-sizing: border-box;
    position: relative;
    @include maxwidth(1024) {
        padding-top: 190px;
    }
    @include maxwidth(768) {
        padding: 150px 0 60px;
    }
}

#subpageTopicpath {
    @include ff_ja(noto);
    color: $basetextcolor;
    @include f_all(15);
    font-weight: bold;
    line-height: 1.3;
    @include maxwidth(768) {
        @include f_all(13);
    }
    .container {
        padding: 0 (30 / 1440 * 100vw);
        box-sizing: border-box;
        position: relative;
        ul {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            li {
                display: inline-flex;
                align-items: center;
                &::after{
                    content: '';
                    flex-shrink: 0;
                    display: block;
                    width: 6px;
                    height: 9px;
                    background: center / contain no-repeat url(../images/arrow-right-black.svg);
                    margin: 0.15rem 10px 0;
                }
                &:last-of-type::after { display: none; }
                &:last-of-type { color: $themecolor; }
            }
        }
    }
}

#subpageHeading {
    margin-top: 20px;
    @include maxwidth(768) {
        margin-top: 1rem;
    }
    position: relative;
    .container {
        margin: 0 10px;
        .c-heading {
            padding-bottom: 25px;
            align-items: center;
            .sub {
                text-transform: capitalize;
                &::before {
                    position: absolute;
                    inset: auto 0 0 0;
                    margin: auto;
                }
            }
            .main {
                font-size: clamp(24px,(32 / 1024 * 100vw),32px);
            }
        }
    }
}

#subpageWideHeading {
    font-size: clamp(18px,(24 / 1024 * 100vw),24px);
    margin: 22px 0 40px;
    padding: 1.25em 0.84em;
    box-sizing: border-box;
    min-height: 4.17em;
    color: $themetextcolor;
    background-color: $themecolor;
    position: relative;
    h2, h3 {
        font-weight: 600;
        line-height: 1.5;
        text-align: center;
    }
}

#subpageTerms {
	display:flex;
	flex-wrap:wrap;
	justify-content:center;
	gap: 6px 10px;
	a {
		display:flex;
		background-color:$themecolor;
		color:$themetextcolor;
		font-size: 12px;
		font-weight: 700;
		height:26px;
		padding-inline:12px;
		align-items:center;
		border-radius:26px;
	}
}

#subpageContent {
	margin-top: 80px;
	@include maxwidth(768) {
		margin-top: 50px;
	}
	position: relative;
	z-index: 1;
	.container {
		@include container(1320, 30);
		@include maxwidth(768) {
			margin-left: 15px;
			margin-right: 15px;
		}
		.default {
			@include contentdefault;
			@include eachcss;



			.gc-navigation {
				display:flex;
				flex-wrap:wrap;
				--gc-nav-gap: 5px;
				gap: var(--gc-nav-gap);
				div.item {
					//display: block;
					flex: 0 0 auto;
					flex-basis: calc((100% - (var(--gc-nav-gap) * 3)) / 4);
					@include maxwidth(1024) {
						flex-basis: calc((100% - (var(--gc-nav-gap) * 2)) / 3);
					}
					@include maxwidth(768) {
						flex-basis: calc((100% - (var(--gc-nav-gap) * 1)) / 2);
					}
					a {
						all: unset;
						&::after { all: unset; }
						text-decoration: none;
						cursor: pointer;
						@include f_all(14);
						font-weight: bold;
						line-height: 1.2;
						color: $themecolor;
						background-color: $themecolor3;
						@include flex_centering;
						padding: 10px 20px 10px 40px;
						box-sizing: border-box;
						width: 100%;
						min-height: 60px;
						@include maxwidth(768) {
							min-height: 50px;
						}
						position: relative;
						&::before {
							content: "";
							display: block;
							width: 9px;
							height: 6px;
							background: transparent url(../images/arrow-bottom-color.svg) center / contain no-repeat;
							position: absolute;
							inset: 0 auto 0 20px;
							margin: auto;
						}

						@media (any-hover: hover) {
							transition: 200ms;
							&:hover {
								color: $themecolor3;
								background-color: $themecolor;
								&::before {
									background-image: url(../images/arrow-bottom-white.svg);
								}
							}
						}
					}
				}
			}
		}
	}
}

#subpageArchiveContent {
    margin-top: 80px;
    // margin-top: 100px;
    position: relative;
    z-index: 1;
    .container {
        @include container(1140, 20);
    }
}

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


div.archive_termlist {
	font-size: 14px;
	@include maxwidth(800){ font-size: 12px; }
	& > ul {
		a, span.label {
			display:flex;
			align-items:center;
			justify-content:center;
			height: 45px;
			font-weight: bold;
			padding:10px 5px;
			box-sizing: border-box;
			@include maxwidth(800){
				height:28px;
			}
			&.current {
				background-color:$themecolor;
				color:$themetextcolor;
			}
		}
		a {
			background-color:mix($themecolor, $themetextcolor, .1);
			color: $themecolor;
		}
		span.label {
			height: auto;
			background-color: $themecolor;
			color:$themetextcolor;
		}
	}
	&.news {
		margin-bottom:40px;
		& > ul {
			gap: 4px;
			display:flex;
			flex-wrap:wrap;
			& > li {
				flex: 0 0 calc((100% - 4px * 4) / 5);
				@include maxwidth(800){
					flex-basis: calc((100% - 4px * 3) / 4);
				}
				@include maxwidth(640){
					flex-basis: calc((100% - 4px * 2) / 3);
				}
				@include maxwidth(440){
					flex-basis: calc((100% - 4px * 1) / 2);
				}
			}
		}
	}
	&.jobs {
		margin-bottom:40px;
		& > ul {
			gap: 4px;
			display:flex;
			flex-wrap:wrap;
			a, span.label {
				height:40px;
				border-radius:40px;
				&.current {
					background-color:$themecolor2;
				}
			}
			& > li {
				flex: 0 0 calc((100% - 4px * 4) / 5);
				@include maxwidth(950){
					flex: 0 0 auto;
					width:auto;
					a {
						padding-inline:15px;
						height:30px;
					}
				}
				@include maxwidth(400){
					flex-basis:calc((100% - 4px) / 2);
					&:first-child {
						flex-basis: 100%;
					}
				}
			}
		}
	}
	&.cases {
		margin-bottom:40px;
		& > ul {
			& > li {
				display:flex;
				gap: 2px;
				margin-bottom:4px;
				//& > a,
				@include maxwidth(800){
					display:block;
				}
				& > a.all {
					flex: 0 0  100%;
					background-color:transparent;
					color:$themecolor;
					border:1px solid mix($themecolor, $themetextcolor , .25);
					height:45px;
				}
				& > span.label {
					flex: 0 0 calc((100% - 2px * 4) / 5);
				}
				& > ul {
					flex: 1 1 auto;
					display:flex;
					flex-wrap:wrap;
					gap: 2px;
					@include maxwidth(800){
						margin-top:1px;
					}
					& > li {
						flex: 0 0 calc((100% - 2px * 4) / 5);
						@include maxwidth(1200){
							flex: 0 0 calc((100% - 2px * 3) / 4);
						}
						@include maxwidth(800){
							flex: 0 0 calc((100% - 2px * 2) / 3);
						}
						@include maxwidth(520){
							//flex: 0 0 calc((100% - 2px * 1) / 2);
							flex: 0 0 auto;
							a { padding-inline:10px ;}
						}
						& > a.all {
						}
						& > a {
						}
					}
				}
			}
		}
	}
}
