// スタイルシート common

@charset "utf-8";

@import "mixin";

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; }

// === Component

// html { scroll-behavior: smooth; }

html, body
{
    --colorBase: $themetextcolor;
    --backgroundColorBase: $themecolor;
    
    color: var(--colorBase);
    background-color: var(--backgroundColorBase);
}

// html:has(body.page-recruit_senior-voice) {
//     scroll-behavior: smooth;
// }

@mixin anyHover {
    @media (any-hover: hover) {
        &:hover {
            filter: opacity(80%);
            -webkit-filter: opacity(80%);
        }
    }
}

.c-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    gap: 2px;
    .ja {
        @include f_all(16);
        font-weight: bold;
        line-height: 1.3;
        @include maxwidth(768) {
            @include f_all(14);
        }
    }
    .en {
        @include ff_en(italic);
        font-size: 82px;
        font-weight: bold;
        text-transform: uppercase;
        @include maxwidth(1200) {
            font-size: clamp(48px, (82 / 1200 * 100vw), 82px);
        }
    }
}

.c-buttons {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 5px;
}

.c-button {
    display: inline-block;
    height: auto;
    @include maxwidth(768) { width: 100%; }
    &__link {
        color: $themetextcolor;
        @include f_all(15);
        font-weight: bold;
        line-height: 1.1;
        @include flex_centering;
        background-color: $themecolor;
        min-width: 280px;
        height: 100%;
        padding: 0.5em 1em;
        box-sizing: border-box;
        min-height: 50px;
        position: relative;
        @include maxwidth(768) {
            @include f_all(14);
            min-width: initial;
        }

        @include anyHover();
    }
}

#loadingScreen {
    position: fixed;
    inset: 0;
    z-index: 102;
    background-color: $themecolor;
    .step {
        @include absolute_centering;
        @include flex_centering;
        flex-direction: column;
        height: 100%;
        transition: opacity 800ms;
        &.step1 {
            &.hidden {
                .text {
                    &>span {
                        transform: translateY(100%);
                    }
                }
            }
            .text {
                @include f_all(24);
                font-weight: bold;
                line-height: 1.3;
                overflow: hidden;
                @include maxwidth(768) {
                    @include f_all(20);
                }

                &>span {
                    display: inline-block; 
                    transition: transform 300ms;
                }
            }
            .progress {
                @include f_all(12);
                font-weight: bold;
                line-height: 1.3;
                margin-top: 30px;
                display: flex;
                flex-direction: column;
                align-items: center;
                gap: 10px;
                overflow: hidden;
                &-bar {
                    display: inline-block;
                    width: 60px;
                    height: 4px;
                    background-color: #000;
                    position: relative;
                    .bar {
                        display: block;
                        position: absolute;
                        top: 0;
                        left: 0;
                        width: 0%;
                        height: 100%;
                        background-color: $accentcolor;
                    }
                }
                &-text {
                    display: inline-flex;
                    align-items: flex-end;
                    .p {
                        &>span {
                            &::before{
                                content: '.';
                                display: inline-block;
                            }   
                            &:nth-of-type(2)::before {
                            }
                            &:nth-of-type(2)::before {
                            }
                        }
                    }
                }
            }
        }
        &.step2 {
            .logo-wrapper {
                position: relative;
                .logo {
                    &>img {
                        width: 536px;
                        @include maxwidth(768) {
                            width: 300px;
                        }
                    }
                }
                .sitename {
                    @include absolute_centering;
                    @include flex_centering;
                    opacity: 0;
                    transform: translateX(1rem);
                    transition: 
                        transform 1000ms,
                        opacity 1000ms
                    ;
                    &>img {
                        width: 380px;
                        @include maxwidth(768) {
                            width: 240px;
                        }
                    }
                }
            }
            &.visit {
                .logo {
                }
                .sitename {
                    opacity: 1;
                    transform: translateX(0);
                }
            }
        }

        &:not(.step1) { opacity: 0; }
    }
}

#header {
    color: $themetextcolor;
    position: absolute;
    z-index: 15;
    inset: 0 0 auto 0;
    .container {
        padding: 40px;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 3rem;
        .subpage & {
            padding: 20px 40px 20px 20px;
        }
        @include maxwidth(768) { padding: 20px !important; }
        .sitename {
            .subpage & a {
                @include flex_centering;
                padding: 20px 15px 15px 20px;
                box-sizing: border-box;
                position: relative;
                &::before {
                    content: "";
                    display: block;
                    @include absolute_centering;
                    background-color: $themetextcolor;
                }
                @media (any-hover: hover) {
                    &:hover::before {
                        filter: brightness(80%);
                        -webkit-filter: brightness(80%);
                    }
                }
            }
            img {
                width: 145px;
                @include maxwidth(768) { width: 120px; }
                position: relative;
            }
        }
        .menu {
            display: flex;
            gap: 30px;
            @include maxwidth(1200) {
                display: none !important;
            }
            .global-nav {
                @include f_all(15);
                font-weight: bold;
                line-height: 1.3;
                padding-top: 1em;
                ul {
                    display: flex;
                    align-items: center;
                    flex-wrap: wrap;
                    gap: 20px;
                    li {
                        a {
                            display: inline-block;
                            padding-bottom: 0.3em;
                            position: relative;
                            &::after{
                                content: '';
                                width: 1em;
                                height: 2px;
                                background-color: $themecolor2;
                                background-color: $accentcolor;
                                position: absolute;
                                left: 0;
                                right: 0;
                                bottom: 0;
                                margin: auto;
                                @media (any-hover: hover) {
                                    transform: scale(0);
                                    transition: transform 300ms;
                                }
                            }
                            @media (any-hover: hover) {
                                &:hover {
                                    &::after {
                                        transform: scale(1)
                                    }
                                }
                            }
                            @include anyHover;
                        }
                    }
                }
            }
            .aside-nav {
                @include f_all(13);
                font-weight: bold;
                line-height: 1.3;
                ul {
                    display: flex;
                    flex-direction: column;
                    gap: 4px;
                    li {
                        a {
                            @include flex_centering;
                            background-color: $themecolor2;
                            min-width: 180px;
                            min-height: 45px;
                            position: relative;
                            &.form {
                                gap: 6px;
                                &::before{
                                    flex-shrink: 0;
                                    content: '';
                                    display: block;
                                    width: 15px;
                                    height: 12px;
                                    background: url(../images/icon-mail-white.svg) no-repeat center/contain;
                                    margin-top: 1px;
                                }
                                &.corp {
                                    background-color: $themecolor;
                                }
                            }

                            @include anyHover;
                        }
                    }
                }
            }
        }
    }
}

#gnavToggle {
    &Wrap {
        position: fixed;
        top: 44px;
        right: 40px;
        z-index: 101;
        @include maxwidth(768) {
            top: 24px;
            right: 20px;
        }

        @media screen and (min-width: 1201px) {
            display: none !important;
        }
    }

    cursor: pointer;
    display: block;
    width: 65px;
    height: 50px;
    background-color: $themecolor2;
    clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
    transition: 200ms;
    .menu_open & {
        background-color: $accentcolor;
    }
    .t {
        color: $themetextcolor;
        @include ff_en(italic);
        @include f_all(11);
        font-weight: 800;
        white-space: nowrap;
        position: absolute;
        top: 14px;
        left: 50%;
        transform: translate(-50%,0);
        &::before{
            content: 'MENU';
            .menu_open & {content: 'CLOSE';}
        }
    }
    .b {
        position: absolute;
        width: 20px;
        bottom: 12px;
        left: calc(50% - 2px);
        transform: translate(-50%,0);
        &>span {
            display: block;
            width: 100%;
            height: 1px;
            background-color: $themetextcolor;
            @include absolute_centering;
            transition: 200ms;
            .menu_open & { width: 55%; }
            &:nth-of-type(1) {
                transform: translate(0px, -4px);
                .menu_open & {
                    transform: translate(0px, -2px) rotate(45deg);
                }
            }
            &:nth-of-type(2) {
                transform: translate(-1px, 0);
                .menu_open & {
                    transform: translate(0px, -2px) rotate(-45deg);
                }
            }
        }
    }
}

#gnav {
    &Wrap {
        position: fixed;
        inset: 0;
        z-index: 100;
        // background-color: $themecolor;
        // background-color: $basecolor;
        opacity: 0;
        visibility: hidden;
        transition: 
            opacity 200ms,
            visibility 200ms
        ;
        &::before{
            content: '';
            @include absolute_centering;
            background-color: $basecolor;
            transform: translateX(100%);
            transition: transform 200ms;
        }
        .menu_open & {
            opacity: 1;
            visibility: visible;
            &::before { transform: translateX(0%); }
        }

        @media screen and (min-width: 1201px) {
            display: none !important;
        }
    }
    position: fixed;
    inset: 0;
    // スクロールバー
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    &::-webkit-scrollbar { display: none; }
    padding: 10vh 0;
    box-sizing: border-box;
    @include flex_centering;

    .container {
        max-width: 640px;
        width: 100%;
        margin: auto;
        padding: 0 20px;
        box-sizing: border-box;
        opacity: 0;
        transform: translateX(20px);
        transition:
            opacity 200ms,
            transform 200ms
        ;
        .menu_open & {
            opacity: 1;
            transform: translateX(0px);
        }
        .head {
            @include flex_centering;
            .sitename {
                a {  }
                img {
                    width: 145px;
                    @include maxwidth(768) { width: 120px; }
                }
            }
        }
        .menu {
            --menuItemBetween: 2px;
            @include maxwidth(768) {
                --menuItemBetween: 1px;
            }
            color: $themetextcolor;
            @include f_all(15);
            @include maxwidth(768) { @include f_all(14); }
            font-weight: bold;
            line-height: 1.4;
            margin-top: 30px;
            ul {
                display: flex;
                flex-direction: column;
                gap: var(--menuItemBetween, 0px);
                &:not(:first-child) { margin-top: var(--menuItemBetween, 0px); }
                li {
                    a {
                        color: $themetextcolor;
                        @include flex_centering;
                        background-color: $themecolor3;
                        min-height: 50px;
                        position: relative;

                        &.form {
                            gap: 8px;
                            background-color: $themecolor2;
                            &::before{
                                flex-shrink: 0;
                                content: '';
                                display: block;
                                width: 15px;
                                height: 12px;
                                background: url(../images/icon-mail-white.svg) no-repeat center / contain;
                                margin-top: 0.2em;
                            }
                            // 法人
                            &.corp {
                            }
                            // 個人
                            &.indi {
                            }
                        }
                    }
                }
            }
        }
    }
}

// 拡大する文字列
.top_firstView__txt {
  position: fixed;
  z-index: 1;
//   top: 50%;
  bottom: 110px;
  left: 50%;
  transform: translate(-50%, 0%) scale(1);
  color: #fff;
  @include ff_ja(serif);
  font-size: clamp(80px,10vw,160px);
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  transform-origin: unset;

  @include maxwidth(768) {
      &.pc { display: none; }
    }
}
// スマホ用クラス
.top_firstView__txt__sp {
    position: fixed;
    z-index: 1;
    top: 0;
    left: 50%;
    width: 100%;
    height: 100%;
    // min-height: 500px;
    transform: translate(-50%, 0%) scale(1);
    color: $themetextcolor;
    @include ff_ja(serif);
    font-size: 80px;
    font-weight: 900;
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
    transform-origin: unset;

    &>span {
        width: 1em;
        writing-mode: vertical-rl;
        display: block;
        position: absolute;
        &:nth-of-type(1) {
            // top: 15vh;
            bottom: 55vh;
            bottom: 55svh;
            // left: 72.5vw;
            left: 70vw;
            @media screen and (max-height: 700px) {
                bottom: 45vh;
                bottom: 45svh;
            }
            @media screen and (max-height: 450px) { 
                bottom: 25vh;
                bottom: 25svh;
            }
        }
        &:nth-of-type(2) {
            top: 55%;
            left: 50%;
            transform: translate(-50%,-50%);
        }
        &:nth-of-type(3) {
            // bottom: 1vh;
            top: 70vh;
            top: 70svh;
            // right: 72.5vw;
            right: 70vw;
            @media screen and (max-height: 700px) {
                top: 60vh;
                top: 60svh;
            }
            @media screen and (max-height: 450px) { 
                top: 40vh;
                top: 40svh;
            }
        }
    }

    @media screen and (min-width: 769px) {
        display: none;
    }

}

#mainVisual {
    position: relative;
    .sticky-wrapper {
        position: relative;
        height: 200vh;
        .sticky-content {
            position: sticky;
            top: 0;
            left: 0;
            overflow: hidden;
            .container {
                position: relative;
                overflow: hidden;
                .image {
                    height: 100vh;
                    height: 100dvh;
                    position: relative;
                    &::after{
                        content: '';
                        @include absolute_centering;
                        border-bottom: 1px solid $themecolor;
                        background: radial-gradient(50% 50% at 50% 50%, rgba($themecolor, 0.80) 0%, #000 100%);
                        mix-blend-mode: overlay;
                        -webkit-mix-blend-mode: overlay;
                    }
                    &>img {
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                    }
                }
                .overlay {
                    &-text {
                        &-s {
                            position: absolute;
                            left: 50%;
                            transform: translateX(-50%);
                            bottom: 40px;
                            @include f_all(20);
                            white-space: nowrap;
                            color: $themetextcolor;
                            font-weight: 900;
                            line-height: 1.3;
                            @include flex_centering;
                            padding: 0 0 0 14px;
                            box-sizing: border-box;
                            background-color: $themecolor;
                            min-height: 36px;
                            @include maxwidth(768) {
                                display: none;
                            }
                        }
                        &-left,
                        &-right {
                            white-space: nowrap;
                            color: $themetextcolor;
                            @include f_all(15);
                            font-weight: 900;
                            line-height: 1.3;
                            min-height: 30px;
                            background-color: $accentcolor;
                            display: flex;
                            align-items: center;
                            padding: 0 20px;
                            box-sizing: border-box;
                            position: absolute;
                            @media screen and (min-width: 769px) { display: none; }
                        }
                        &-left {
                            width: calc(100% - (76 /  375 * 100vw));
                            justify-content: flex-end;
                            left: 0;
                            bottom: 100px;
                            @media screen and (max-height: 450px) { bottom: 60px; }
                        }
                        &-right {
                            width: calc(170 / 375 * 100vw);
                            min-width: 170px;
                            right: 0;
                            bottom: 60px;
                            @media screen and (max-height: 450px) { bottom: 20px; }
                        }
                    }
                }
        
            }
        }
    }
}

#footer {
    color: var(--colorSub);
    background-color: var(--backgroundColorSub);
    .subpage & {
        color: $basetextcolor;
        background-color: $basecolor;
    }
    padding: 100px 0 40px;
    @include maxwidth(768) { padding: 60px 0 70px; }
    position: relative;
    .toppage & {
        padding-top: 260px;
        @include maxwidth(768) { padding-top: 200px; }
    }
    .subpage & { padding-top: 60px; }
    .container {
        @include container(1280, 30);
        .l-top {
            .c-heading {  }
            .contact-buttons {
                display: flex;
                flex-wrap: wrap;
                gap: 5px;
                margin-top: 20px;
                @include maxwidth(768) {
                    flex-direction: column;
                    gap: 2px;
                    &>* {
                        flex-basis: 100%;
                        width: 100%;
                    }
                }
                .contact-button {
                    flex-basis: 100%;
                    &__link {
                        color: $themetextcolor;
                        line-height: 1.3;
                        @include flex_centering;
                        flex-direction: column;
                        background-color: $themecolor3;
                        padding: 10px;
                        box-sizing: border-box;
                        min-height: 120px;
                        position: relative;
                        @include maxwidth(768) {
                            min-height: 100px;
                        }
                        &.tel {
                            gap: 3px;
                            .num {
                                @include ff_en();
                                @include f_all(34);
                                font-weight: 800;
                                padding-left: 28px;
                                background: url(../images/icon-tel-white.svg) no-repeat left top 60%/20px auto;
                                @include maxwidth(768) {
                                    @include f_all(30);
                                }
                            }
                            .time {
                                @include f_all(14);
                                @include maxwidth(768) {
                                    @include f_all(13);
                                }
                                font-weight: bold;
                                &::before{
                                    content: '受付';
                                    display: inline-flex;
                                    align-items: center;
                                    justify-content: center;
                                    padding: 0 12px;
                                    box-sizing: border-box;
                                    background-color: $themecolor2;
                                    min-height: 26px;
                                    margin-right: 10px;
                                    @include maxwidth(768) {
                                        min-height: 21px;
                                    }
                                }
                            }
                        }
                        &.form {
                            background-color: $themecolor2;
                            gap: 10px;
                            @include maxwidth(768) {
                                gap: 8px;
                                padding-top: 1rem;
                            }
                            .title {
                                @include f_all(20);
                                @include maxwidth(768) {
                                    @include f_all(16);
                                }
                                font-weight: bold;
                                padding-left: 23px;
                                background: url(../images/icon-mail-white.svg) no-repeat left top 60%/17px auto;
                                display: inline-flex;
                                align-items: center;
                                gap: 10px;
                                &::after{
                                    content: '';
                                    flex-shrink: 0;
                                    display: block;
                                    width: 10px;
                                    height: 17px;
                                    background: url(../images/arrow-white.svg) no-repeat center/contain;
                                    margin-top: 3px;
                                }
                            }
                            .term {
                                @include f_all(14);
                                @include maxwidth(768) {
                                    @include f_all(13);
                                }
                                font-weight: bold;
                                display: inline-flex;
                                align-items: center;
                                justify-content: center;
                                padding: 0 18px 1px;
                                box-sizing: border-box;
                                // background-color: $themecolor2;
                                background-color: $themecolor;
                                min-height: 26px;
                                position: relative;
                                @include maxwidth(768) {
                                    min-height: 21px;
                                }
                            }
                        }

                        @include anyHover;
                    }
                }
            }
        }
        .l-foot {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0 3rem;
            flex-wrap: wrap;
            margin-top: 60px;
            @include maxwidth(1200) {
                flex-direction: column;
                align-items: initial;
                justify-content: initial;
                gap: 0px;
            }
            .menu {
                @include f_all(15);
                font-weight: bold;
                line-height: 1.3;
                @include maxwidth(1200) {
                    max-width: 800px;
                    width: 100%;
                    margin-left: auto;
                    margin-right: auto;
                }
                &>*:not(:first-child) {
                    margin-top: 15px;
                    @include maxwidth(1200) {
                        margin-top: 1px;
                    }
                }
                ul {
                    display: flex;
                    align-items: center;
                    flex-wrap: wrap;
                    gap: 15px 25px;
                    @include maxwidth(1200) {
                        flex-direction: column;
                        justify-content: center;
                        gap: 1px;
                    }
                    li {
                        @include maxwidth(1200) {
                            width: 100%;
                        }
                        a {
                            @include maxwidth(1200) {
                                @include f_all(14);
                                font-weight: bold;
                                line-height: 1.3;
                                display: flex;
                                align-items: center;
                                justify-content: space-between;
                                gap: 1em;
                                padding: 0 1em;
                                box-sizing: border-box;
                                background-color: #fff;
                                min-height: 36px;
                                position: relative;
                                &::after{
                                    flex-shrink: 0;
                                    content: '';
                                    display: block;
                                    width: 6px;
                                    height: 10px;
                                    background: url(../images/arrow-color.svg) no-repeat center / contain;
                                }
                            }

                            @include anyHover;
                        }
                    }
                }
                .global {
                }
                .aside {
                }
            }
            .desc {
                display: flex;
                align-items: flex-end;
                gap: 20px;
                @include maxwidth(1200) {
                    flex-direction: column;
                    align-items: center;
                    margin-top: 24px;
                }
                .sitename {
                    flex-shrink: 0;
                    img {
                        width: 145px;
                        @include maxwidth(768) { width: 120px; }
                    }
                }
                .address {
                    @include f_all(14);
                    font-weight: bold;
                    line-height: 1.3;
                }
            }
            .copyright {
                text-align: right;
                flex-basis: 100%;
                margin-top: 30px;
                @include maxwidth(1200) {
                    text-align: center;
                }
                @include maxwidth(768) {
                    margin-top: 12px;
                }
                small {
                    @include f_all(13);
                    @include maxwidth(768) { @include f_all(12); }
                    font-weight: bold;
                    line-height: 1.8;
                }
            }
        }
    }
}

#footBar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 30;
    transform: translate(0, 100%);
    transition: transform 200ms;
    .header_scrollout & {
        transform: translate(0, 0);
    }

    @media screen and (min-width: 769px) {
        display: none !important;
    }
    ul {
        display: flex;
        li {
            flex-grow: 1;
            flex-basis: auto;
            &:has(> #totop)  {
                flex: 0 0 45px;
            }
            a {
                color: $themetextcolor;
                @include f_all(13);
                font-weight: bold;
                line-height: 1.3;
                @include flex_centering;
                height: 45px;
                background-color: $themecolor2;
                box-sizing: border-box;
                position: relative;
                &#totop {
                    cursor: pointer;
                    @include ff_en(italic);
                    @include f_all(10);
                    font-weight: bold;
                    padding-top: 5px;
                    background-color: $themecolor;
                    flex-direction: column;
                    gap: 5px;
                    &::after{
                        content: '';
                        display: block;
                        width: 6px;
                        height: 10px;
                        background: url(../images/arrow-white.svg) no-repeat center / contain;
                        transform: rotate(-90deg);
                    }
                }
                &.form {
                    gap: 6px;
                    &::before{
                        content: '';
                        flex-shrink: 0;
                        display: block;
                        width: 15px;
                        height: 12px;
                        background: url(../images/icon-mail-white.svg) no-repeat center / contain;
                        margin-top: 0.15em;
                    }
                }
            }
        }
    }
}

// ターム一覧
.term-list {
    position: relative;
    ul {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        li {
            a {
                color: $themetextcolor;
                @include f_all(15);
                font-weight: bold;
                line-height: 1.1;
                @include flex_centering;
                padding: 0.5em 30px;
                @include maxwidth(768) {
                    padding-left: 12px;
                    padding-right: 12px;
                }
                box-sizing: border-box;
                background-color: $themecolor3;
                min-height: 45px;
                position: relative;

                &.current {
                    background-color: $accentcolor !important;
                }

                @include anyHover;
            }
        }
    }
}

// 施工事例一覧
.case-headline {
    position: relative;
    .subpage & { margin-top: 30px; }
    .headline-items {
        .toppage & {  }
        .subpage & {
            display: flex;
            flex-wrap: wrap;
            gap: 25px 10px;
            @include maxwidth(768) { column-gap: 5px; }
        }
    }
    .headline-item {
        .subpage & {
            width: calc((100% - (10px * 3)) / 4);
            @include maxwidth(1200) { width: calc((100% - (10px * 2)) / 3); }
            @include maxwidth(768) { width: calc((100% - 5px) / 2); }
            height: auto;
        }
        &__link {
            display: block;
            height: 100%;
            position: relative;
            &>* { display: block; }
            @media (any-hover: hover) {
                &:hover {
                    .image > img {
                        transform: scale(1.2);
                    }
                    .image::after {
                        background-color: rgba(#000, .6);
                    }
                }
            }
            .image {
                .toppage & { height: 100%; }
                .subpage & { padding-top: 95%; }
                box-sizing: border-box;
                overflow: hidden;
                position: relative;
                &::after{
                    content: '';
                    @include absolute_centering;
                    background-color: rgba(#000, 0.3);
                    transition: background 300ms;
                    .subpage & { content: none; }
                }
                &>img {
                    position: absolute;
                    top: 0;
                    left: 0;
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                    transform: scale(1);
                    transition: transform 300ms;
                }
            }
            .docs {
                box-sizing: border-box;
                .toppage & {
                    padding: 14px 20px;
                    color: $themetextcolor;
                    position: absolute;
                    left: 0;
                    right: 0;
                    bottom: 0;
                    margin: 0 auto;
                    z-index: 1;
                    @include maxwidth(1024) {
                        padding: 5px;
                        top: 0;
                        display: flex;
                        flex-direction: column;
                        justify-content: space-between;
                    }
                }
                .subpage & { padding-top: 10px; }
                &>* {
                    display: block;
                    &:not(:first-child) {
                        margin-top: 8px;
                    }
                }
                .terms {
                    color: $themetextcolor;
                    @include f_all(13);
                    @include maxwidth(768) {
                        @include f_all(12);
                    }
                    font-weight: bold;
                    line-height: 1.3;
                    display: flex;
                    flex-wrap: wrap;
                    gap: 0.25em;
                    .term {
                        display: inline-flex;
                        align-items: center;
                        justify-content: center;
                        padding: 0 10px 1px;
                        box-sizing: border-box;
                        min-height: 22px;
                        background-color: $accentcolor;
                        position: relative;
                        @include maxwidth(768) {
                            padding-left: 6px;
                            padding-right: 6px;
                            min-height: 19px;
                        }
                    }
                }
                .title {
                    @include f_all(15);
                    font-weight: bold;
                    line-height: 1.5;
                    @include maxwidth(768) {
                        @include f_all(12);
                    }
                    .toppage & {
                        overflow: hidden;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                    }
                }
            }
        }
    }
}

// お知らせ一覧
.news-headline {
    position: relative;
    .subpage & { margin-top: 30px; }
    .headline-items {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        gap: 5px;
        @include maxwidth(768) { gap: 2px; }
    }
    .headline-item {
        &__link {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            box-sizing: border-box;
            position: relative;
            .toppage & {
                color: $themetextcolor;
                background-color: $themecolor3;
                padding: 25px 80px 25px 50px;
                @include maxwidth(768) { padding: 22px 20px; }
            }
            .subpage & {
                border-bottom: solid 1px;
                padding: 20px 50px 20px 22px;
                @include maxwidth(768) { padding: 20px 10px; }
            }
            .date {
                @include ff_en(italic);
                @include f_all(16);
                font-weight: bold;
                margin-right: 20px;
                @include maxwidth(768) {
                    @include f_all(15);
                }
            }
            .terms {
                color: $themetextcolor;
                @include f_all(13);
                font-weight: bold;
                display: inline-flex;
                flex-wrap: wrap;
                @include maxwidth(768) {
                    @include f_all(12);
                }
                .term {
                    display: inline-flex;
                    align-items: center;
                    justify-content: center;
                    padding: 0 10px;
                    box-sizing: border-box;
                    background-color: $accentcolor;
                    min-height: 22px;
                    height: 100%;
                    position: relative;
                    @include maxwidth(768) {
                        padding: 0 6px;
                        min-height: 19px;
                    }
                }
            }
            .title {
                flex-basis: 100%;
                @include f_all(14);
                font-weight: bold;
                line-height: 1.4;
                margin-top: 4px;
                @include maxwidth(768) {
                    line-height: 1.5;
                    margin-top: 6px;
                    padding-right: 1em;
                    box-sizing: border-box;
                    position: relative;
                }
                &::after{
                    content: '';
                    display: block;
                    width: 10px;
                    height: 16px;
                    background: url(../images/arrow-white.svg) no-repeat center/contain;
                    .subpage & {
                        background-image: url(../images/arrow-color.svg);
                    }
                    position: absolute;
                    top: 0;
                    bottom: 0;
                    right: 40px;
                    .subpage & {
                        right: 20px;
                    }
                    margin: auto;
                    @include maxwidth(768) {
                        width: 6px;
                        height: 10px;
                        right: 0px !important;
                        top: 0.4em;
                        bottom: auto;
                        margin: 0;
                    }
                }
            }

            @include anyHover;
        }
    }
}

// === Toppage Sections

// STARTについて
#toppageAboutus {
    padding: 220px 0 190px;
    @include maxwidth(1024) {
        padding: (83 / 375 * 100%) 0 (190 / 375 * 100%);
    }
    position: relative;
    margin-top: -50vh;
    z-index: 1;
    .container {
        text-align: center;
        .docs {
            padding: 0 30px;
            box-sizing: border-box;
            @include maxwidth(1024) {
                padding-top: 50px;
                padding-bottom: 50px;
            }
            .logo {
                &>img {
                    width: 260px;
                    @include maxwidth(768) { width: 200px; }
                }
            }
            .leadtext {
                color: $accentcolor;
                @include f_all(24);
                font-weight: bold;
                line-height: 1.5;
                margin-top: 50px;
                @include maxwidth(768) {
                    @include f_all(20);
                    margin-top: 40px;
                }
            }
            .text {
                @include f_all(14);
                font-weight: bold;
                line-height: 1.8;
                margin-top: 26px;
                @include maxwidth(768) {
                    line-height: 1.6;
                    margin-top: 20px;
                }
                br.sp {
                    @media screen and (min-width: 769px) {
                        display: none !important;
                    }
                }
            }
            .c-buttons {
                margin-top: 50px;
                @include maxwidth(768) { margin-top: 40px; }
                .c-button {
                    &__link {
                        border: solid 1px var(--colorBase, $themecolor);
                    }
                }
            }
        }
        .images {
            padding-left: (18 / 375 * 100%);
            box-sizing: border-box;
            position: relative;
            @media screen and (min-width: 1025px) {
                display: none !important;
            }
            .image {
                &__inner {
                    box-sizing: border-box;
                    overflow: hidden;
                    position: relative;
                    &>img {
                        position: absolute;
                        top: 0;
                        left: 0;
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                    }
                }
            }
            &.__top {
                .image {
                    &:nth-of-type(1) {
                        width: ((222 / 375) * 100%);
                        position: absolute;
                        top: (60 / 375 * -100%);
                        right: 0;
                        z-index: 1;
                        .image__inner {
                            padding-top: (204 / 222 * 100%);
                        }
                    }
                    &:nth-of-type(2) {
                        width: ((210 / 375) * 100%);
                        .image__inner {
                            padding-top: (320 / 210 * 100%);
                        }
                    }
                }
            }
            &.__foot {
                .image {
                    &:nth-of-type(1) {
                        width: (210 / 375 * 100%);
                        position: absolute;
                        top: (40 / 375 * 100%);
                        right: 0;
                        z-index: 1;
                        .image__inner {
                            padding-top: (320 / 210 * 100%);
                        }
                    }
                    &:nth-of-type(2) {
                        width: (240 / 375 * 100%);
                        .image__inner {
                            padding-top: (190 / 240 * 100%);
                        }
                    }
                }
            }
        }
    }
    .follow-images {
        pointer-events: none;
        @include maxwidth(1024) {
            display: none !important;
        }
        .item {
            display: flex;
            flex-direction: column;
            gap: 30px;
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            margin: auto;
            width: (360 / 1440 * 100vw);
            max-width: 360px;
            &:nth-of-type(1) {
                left: 0;
                .image {
                    width: 95%;
                    &:nth-of-type(1) {
                        padding-top: (313 / 340 * 100%);
                        margin-left: auto;
                        margin-right: 0;
                    }
                    &:nth-of-type(2) {
                        padding-top: (550 / 318 * 100%);
                    }
                }
            }
            &:nth-of-type(2) {
                right: 0;
                .image {
                    &:nth-of-type(1) {
                        padding-top: (450 / 340 * 100%);
                        width: 95%;
                        margin-left: auto;
                        margin-right: 0;
                    }
                    &:nth-of-type(2) {
                        padding-top: (311 / 360 * 100%);
                    }
                }
            }
            .image {
                position: relative;
                overflow: hidden;
                &>img {
                    position: absolute;
                    // top: 0;
                    bottom: 0; // origin bottom
                    left: 0;
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                }
            }
        }
    }
}

// 取り扱いサービス紹介
#toppageService {
    --service-item-color1: #1D4DB9;
    --service-item-color2: #225DB5;
    --service-item-color3: #286EB2;
    --service-item-color4: #2D7EAE;
    --service-item-color5: #328EAA;
    --service-item-color6: #389FA7;
    --service-item-color7: #3DAFA3;

    scroll-margin-top: -40vh;
    margin-top: -40vh;
    @include maxwidth(1024) {
        scroll-margin-top: 0;
        margin-top: 0;
    }
    position: relative;
    
    .sticky-wrapper {
        @media screen and (min-width: 1025px) {
            height: 700vh;
            position: relative;
        }
        .sticky-content {
            --circleX: 50%;
            @media screen and (min-width: 1025px) {
                position: sticky;
                top: 0;
                left: 0;
                height: 100vh;
                overflow: hidden;
            }
            // transform-style: preserve-3d;

            &::before{
                content: '';
                position: absolute;
                top: 0;
                right: -50vh;
                height: 100vh;
                aspect-ratio: 1;
                background-color: $themecolor3;
                border-radius: 50%;
                transform: translateX(var(--circleX));
                transition: transform 500ms;
                @include maxwidth(1024) {
                    display: none !important;
                }
            }

            @include maxwidth(1024) {
                padding: 50px 30px 40px;
                box-sizing: border-box;
            }
            
            &.show {
                &::before {
                    transform: translateX(0);
                }
                .nav {
                    // opacity: 1;
                    // transform: translateX(0rem);
                }
            }


            .c-buttons {
                &.pc {
                    @media screen and (max-width: 1024px) {
                        display: none !important;
                    }
                }
                &.sp {
                    @media screen and (min-width: 1025px) {
                        display: none !important;
                    }
                }
            }
            .c-button {
                &__link {
                    background-color: #000;
                }
            }
        }
    }
    .nav {
        @media screen and (min-width: 1025px) {
            position: absolute;
            z-index: 1;
            top: 0;
            bottom: 0;
            left: (80 / 1440 * 100vw);
            margin: auto;
        }
        display: flex;
        justify-content: center;
        flex-direction: column;
        &>*:not(:first-child) { margin-top: 30px; }
        // opacity: 0;
        // transform: translateX(-2rem);
        // transition: opacity 1000ms, transform 1000ms;
        .c-heading {
        }
        .nav-list {
            counter-reset: service-nav;
            @include maxwidth(1024) {
                display: flex;
                flex-wrap: wrap;
                gap: 6px;
            }
            @include maxwidth(768) {
                gap: 5px;
            }
            .nav-item {
                counter-increment: service-nav;
                &:not(:first-of-type) {
                    margin-top: 5px;
                    @include maxwidth(1024) { margin-top: 0; }
                }
                @for $i from 0 to 7 {
                    &:nth-of-type(#{$i + 1}) .nav-item__link::before {
                        background-color: var(--service-item-color#{$i + 1});
                    }
                }
                &__link {
                    cursor: pointer;
                    color: var(--colorBase);
                    @include f_all(20);
                    font-weight: bold;
                    line-height: 1.3;
                    display: flex;
                    align-items: center;
                    transition: font-size 500ms;
                    &::before {
                        flex-shrink: 0;
                        content: counter(service-nav, decimal-leading-zero);
                        color: $themetextcolor;
                        @include ff_en(italic);
                        @include f_all(24);
                        font-weight: bold;
                        @include flex_centering;
                        width: 50px;
                        height: 50px;
                        @include maxwidth(768) {
                            width: 40px;
                            height: 40px;
                        }
                        background-color: $themecolor;
                        margin-right: 40px;
                        @include maxwidth(1024) {
                            margin: 0;
                        }
                    }
                    .title, .arrow {
                        filter: brightness(50%);
                        -webkit-filter: brightness(50%);
                        transition: 
                            filter 500ms,
                            -webkit-filter 500ms
                        ;
                    }
                    .arrow {
                        flex-shrink: 0;
                        margin-left: 15px;
                        margin-top: 0.15em;
                        path {
                            fill: var(--colorBase);
                            opacity: 0;
                            transform: translateX(-1em);
                            transition:
                                opacity 500ms,
                                transform 500ms,
                            ;
                            &:nth-of-type(2) {
                                transition-delay: 150ms;
                            }
                        }
                    }
                    @include maxwidth(1024) {
                        .title, .arrow { display: none; }
                    }
                    &.current {
                        font-size: 1.3em;
                        .title, .arrow {
                            filter: brightness(100%);
                            -webkit-filter: brightness(100%);
                        }
                        .arrow path {
                            opacity: 1;
                            transform: translateX(0);
                        }
                    }

                    @include anyHover;
                }
            }
        }
        .c-buttons {
            align-items: flex-start;
            margin-top: 40px;
            @include maxwidth(1024) { margin-top: 30px; }
        }
    }
    .service-cards {
        @media screen and (min-width: 1025px) {
            @include flex_centering;
            position: absolute;
            top: 0;
            bottom: 0;
            right: (80 / 1440 * 100vw);
            z-index: 10;
            overflow: initial !important;
        }
        @include maxwidth(1024) {
            margin-top: 30px;
            margin-left: -30px;
            margin-right: -30px;
            position: relative;
        }
        &__inner {
            @media screen and (min-width: 1025px) {
                gap: 4rem;
                aspect-ratio: 1;
                border-radius: 50%;
                flex-flow: column;
                justify-content: center;
                align-items: flex-start;
                // width: 250rem;
                width: (4000 / 1440 * 100vw);
                display: flex;
                position: absolute;
                left: 0;
                transform: 
                    translate3d(0px, 0px, 0px)
                    scale3d(1, 1, 1)
                    rotateX(0deg)
                    rotateY(0deg)
                    rotateZ(-65deg)
                    skew(0deg)
                ;
                transform-style: preserve-3d;
                height: auto;
            }
        }
        .card-trigger {
        }
        .service-card {
            position: relative;
            padding-left: 90px;
            @include maxwidth(1440) {
                padding-left: (90 / 1440 * 100vw);
            }
            box-sizing: border-box;
            backface-visibility: hidden;
            -webkit-backface-visibility: hidden;
            @media screen and (min-width: 1025px) {
                width: 20%;
                left: -20%;
                overflow: hidden;
                height: auto;
                &:nth-of-type(1) {
                    transform: translate(88%, -5%) rotate(45deg);
                }
                &:nth-of-type(2) {
                    transform: translate(40%, -18%)rotate(30deg);
                }
                &:nth-of-type(3) {
                    transform: translate(10%, -14%)rotate(15deg);
                }
                &:nth-of-type(4) {
                }
                &:nth-of-type(5) {
                    transform: translate(10%, 14%)rotate(-15deg);
                }
                &:nth-of-type(6) {
                    transform: translate(40%, 18%)rotate(-30deg);
                }
                &:nth-of-type(7) {
                    transform: translate(88%, 5%) rotate(-45deg);
                }
            }
            @include maxwidth(1024) {
                padding-left: 0;
                position: absolute;
                width: 100%;
                // min-height: 490px;
                &:nth-of-type(1) { position: static; }
                &:nth-of-type(2) { top: 10px; z-index: 1; }
                &:nth-of-type(3) { top: 20px; z-index: 2; }
                &:nth-of-type(4) { top: 30px; z-index: 3; }
                &:nth-of-type(5) { top: 40px; z-index: 4; }
                &:nth-of-type(6) { top: 50px; z-index: 5; }
                &:nth-of-type(7) { top: 60px; z-index: 6; }

                &.visible {
                    opacity: 1 !important;
                    visibility: visible !important;
                }
                &.active {
                    // opacity: 1 !important;
                    // visibility: visible !important;
                    .image::after { opacity: 0 !important; } 
                }

                padding-left: 30px;
                padding-right: 30px;
                box-sizing: border-box;
                &::before{
                    content: '';
                    position: absolute;
                    left: 0;
                    right: 0;
                    bottom: 0;
                    height: calc(100% - 100px);
                }
            }
            @for $i from 0 to 7 {
                &:nth-of-type(#{$i + 1}) .card-title::after {
                    background-color: var(--service-item-color#{$i + 1});
                }
                &:nth-of-type(#{$i + 1}) .idx_sp {
                    color: var(--service-item-color#{$i + 1});
                }
                &:nth-of-type(#{$i + 1})::before {
                    background-color: var(--service-item-color#{$i + 1});
                }
                &:nth-of-type(#{$i + 1}) .image::after {
                    background-color: var(--service-item-color#{$i + 1});
                }
            }
            @include maxwidth(1024) {
                &>* {
                    max-width: 500px;
                    width: 100%;
                    margin: auto;
                }
            }
            .card-title {
                color: $themetextcolor;
                // @include f_all(32);
                font-size: clamp(24px, (28 / 1440 * 100vw), 28px);
                white-space: nowrap;
                font-weight: bold;
                padding-top: 40px;
                @include maxwidth(1440) {
                    padding-top: (40 / 1440 * 100vw);
                }
                display: inline-flex;
                flex-direction: column;
                align-items: center;
                position: absolute;
                top: 0;
                bottom: 0;
                left: 0;
                margin: auto;
                @include maxwidth(1024) { display: none !important; }
                &::before {
                    content: attr(data-index);
                    text-combine-upright: all; // 数字を縦表示
                    font-size: 2em;
                    @include ff_en(italic);
                    font-weight: bold;
                    display: inline-block;
                    width: 1.1em;
                    margin-bottom: 0.4em;
                    position: relative;
                    z-index: 1;
                }
                &>span {
                    display: inline-block;
                    width: 1em;
                    writing-mode: vertical-rl;
                    letter-spacing: 0.3em;
                    position: relative;
                    z-index: 1;
                }
                &::after {
                    content: '';
                    display: inline-block;
                    width: 75%;
                    @include absolute_centering;
                }
            }
            .card-docs {
                position: relative;
                .image {
                    padding-top: (480 / 680 * 100%);
                    box-sizing: border-box;
                    position: relative;
                    &::after{
                        content: '';
                        @include absolute_centering;
                        opacity: 0.8;
                        transition: opacity 500ms;
                        @media screen and (min-width: 1025px) { display: none !important; }
                    }
                    &>img {
                        position: absolute;
                        top: 0;
                        left: 0;
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                    }
                    .idx_sp {
                        // color: $themecolor;
                        @include f_all(40);
                        @include ff_en(italic);
                        font-weight: bold;
                        position: absolute;
                        z-index: 5;
                        bottom: 10px;
                        left: 15px;
                        @media screen and (min-width: 1025px) {
                            display: none !important;
                        }
                    }
                }
                .overlay {
                    color: $themetextcolor;
                    padding: 20px 30px 30px;
                    box-sizing: border-box;
                    background-color: rgba(#000, 0.8);
                    display: flex;
                    align-items: center;
                    gap: 40px;
                    position: absolute;
                    left: 0;
                    right: 0;
                    bottom: 0;
                    z-index: 1;
                    @media screen and (min-width: 1025px) {
                        &>* {
                            max-width: 620px;
                            width: 100%;
                            margin-left: 0;
                            margin-right: auto;
                        }
                    }
                    @include maxwidth(1024) {
                        position: static;
                        flex-direction: column;
                        gap: 0px;
                        align-items: flex-start;
                        background-color: transparent;
                        padding: 20px 0;
                    }
                    .card-title_sp {
                        @include f_all(20);
                        font-weight: bold;
                        line-height: 1.3;
                        @media screen and (min-width: 1025px) {
                            display: none !important;
                        }
                    }
                    .text {
                        @include f_all(16);
                        font-weight: 500;
                        line-height: 1.5;
                        @include maxwidth(1024) { margin-top: 4px; }
                        @include maxwidth(768) {
                            @include f_all(14);
                        }
                    }
                    .button {
                        flex-shrink: 0;
                        display: inline-block;
                        @include f_all(15);
                        font-weight: bold;
                        @include maxwidth(1024) {
                            margin-top: 15px;
                            width: 100%;
                        }
                        &__link {
                            text-transform: uppercase;
                            @include flex_centering;
                            min-width: 120px;
                            min-height: 72px;
                            background-color: $themecolor;
                            @include maxwidth(1024) {
                                min-width: initial;
                                min-height: 50px;
                            }

                            @include anyHover;
                        }
                    }
                }
            }
        }
    }
}

// 施工・納入事例
#toppageCase {
    padding: 5vh 0 240px;
    position: relative;
    z-index: 1;
    @include maxwidth(1024) {
        padding: 80px 0;
    }
    .container {
        @include container(1280, 30);
        .head {
            .c-heading {  }
        }
        .body {
            margin-top: 15px;
            @include maxwidth(1024) { margin-top: 20px; }
            .case-terms {  }
            .case-headline {
                margin-top: 10px;
                padding-top: (845 / 1280 * 100%);
                position: relative;
                @include maxwidth(1024) { margin-top: 20px; }
                @include maxwidth(600) { padding-top: (800 / 315 * 100%); }
                .headline-items {
                    @include absolute_centering;
                    display: grid;
                    grid-template-columns: repeat(12, 1fr);
                    grid-template-rows: repeat(8, 1fr); 
                    gap: 4px;
                    @include maxwidth(600) {
                        grid-template-columns: repeat(2, 1fr);
                        grid-template-rows: repeat(12, 1fr);
                        gap: 2px;
                    }
                }
                .headline-item {
                    &:nth-of-type(1) { grid-area: 1 / 1 / 6 / 7; }
                    &:nth-of-type(2) { grid-area: 4 / 7 / 9 / 13; }
                    &:nth-of-type(3) { grid-area: 1 / 7 / 4 / 10; }
                    &:nth-of-type(4) { grid-area: 1 / 10 / 4 / 13; }
                    &:nth-of-type(5) { grid-area: 6 / 1 / 9 / 4; }
                    &:nth-of-type(6) { grid-area: 6 / 4 / 9 / 7; }
                    @include maxwidth(600) {
                        &:nth-of-type(1) { grid-area: 1 / 1 / 5 / 3; }
                        &:nth-of-type(2) { grid-area: 9 / 1 / 13 / 3; }
                        &:nth-of-type(3) { grid-area: 5 / 1 / 7 / 2; }
                        &:nth-of-type(4) { grid-area: 5 / 2 / 7 / 3; }
                        &:nth-of-type(5) { grid-area: 7 / 1 / 9 / 2; }
                        &:nth-of-type(6) { grid-area: 7 / 2 / 9 / 3; } 
                    }
                    &__link {  }
                }
            }
            .c-buttons {
                margin-top: 40px;
                @include maxwidth(768) { margin-top: 20px; }
            }
        }
    }
}

// 採用情報
#toppageRecruit {
    --recruit-wrapper: 40px;
    position: relative;
    margin-top: -25vh;
    @include maxwidth(1024) {
        --recruit-wrapper: 0px;
        margin-top: 40px;
    }
    .sticky-wrapper {
        height: 500vh;
        position: relative;
        @include maxwidth(1024) {
            height: 300vh;
        }
    }
    .sticky-content {
        position: sticky;
        top: 0;
        left: 0;
        height: 100vh;
        // padding: var(--recruit-wrapper) calc(var(--recruit-wrapper) / 1440 * 100%);
        // box-sizing: border-box;
        @include flex_centering;
        .switch-images {
            position: absolute;
            inset: var(--recruit-wrapper);
            @include maxwidth(1024) {
                pointer-events: none;
                z-index: 10;
            }
            @media screen and (max-width: 1024px) and (max-height: 600px) { display: none !important; }
            .image {
                --filter: 0px;
                @include absolute_centering;
                width: 40%;
                height: 40%;
                opacity: 0;
                @include maxwidth(1024) {
                    top: 200px;
                    bottom: auto;
                    width: 100%;
                    height: auto;
                    // padding-top: (250 / 375 * 100%);
                    height: 250px;
                    box-sizing: border-box;
                }
                @include maxwidth(768) { top: 130px; }
                &:nth-of-type(1) {
                    opacity: 1;
                    z-index: 1;
                }
                &:nth-of-type(2) { z-index: 2; }
                &:nth-of-type(3) { z-index: 3; }
                &::after{
                    content: '';
                    @include absolute_centering;
                    background-color: rgba(#000, .20);
                    backdrop-filter: blur(var(--filter));
                    -webkit-backdrop-filter: blur(var(--filter));
                    @include maxwidth(1024) {
                        backdrop-filter: none;
                        -webkit-backdrop-filter: none;
                    }
                }
                &>img {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                    filter: grayscale(100%);
                    -webkit-filter: grayscale(100%);
                    @include maxwidth(1024) {
                        filter: grayscale(0%);
                        -webkit-filter: grayscale(0%);
                        position: absolute;
                        top: 0;
                        left: 0;
                    }
                }
            }
        }
        .container {
            overflow: hidden;
        }
    }
    .container {
        max-width: 1500px;
        width: 100%;
        margin: auto;
        padding: 0 80px;
        box-sizing: border-box;
        position: relative;
        z-index: 5;
        @include maxwidth(1024) {
            max-width: initial;
            padding: 0 30px;
        }
        @include maxwidth(768) {
            padding: 0 15px;
        }
        .columns {
            display: flex;
            flex-direction: row-reverse;
            justify-content: space-between;
            gap: 40px;
            clip-path: var(--clipPath);
            will-change: clip-path;
            @include maxwidth(1024) {
                display: block;
            }
            .column {
                &:nth-of-type(1) {
                    flex-basis: 600px;
                    @include maxwidth(1024) {
                        position: relative;
                        z-index: 1;
                    }
                }
                &:nth-of-type(2) {
                    flex-basis: 635px;
                    @include maxwidth(1024) {
                        position: absolute;
                        top: 0;
                        bottom: 0;
                        left: 30px;
                        right: 30px;
                    }
                    @include maxwidth(768) {
                        left: 15px;
                        right: 15px;
                    }
                }
                .docs {
                    overflow: hidden;
                    color: $themetextcolor;
                    padding: 65px 50px 40px;
                    box-sizing: border-box;
                    position: relative;
                    @include maxwidth(1024) {
                        padding-left: 30px;
                        padding-right: 30px;
                    }
                    @include maxwidth(768) {
                        padding: 30px;
                    }
                    height: 77vh;
                    @include maxwidth(1024) {
                        height: calc(100vh - 30px);
                    }
                    &-container { height: 100%; }
                    &-inner {  }
                    &::before{
                        content: '';
                        @include absolute_centering;
                        background-color: rgba(#000, .65);
                    }
                    &>* { position: relative; }
                    &-head {
                        .c-heading {
                            @include maxwidth(1024) {
                                align-items: center;
                            }
                        }
                    }
                    &-body {
                        margin-top: 30px;
                        .fixed-images {
                            @media screen and (min-width: 1025px) {
                                display: none !important;
                            }
                            padding-top: (250 / 375 * 100%);
                            box-sizing: border-box;
                            position: relative;
                            margin: 0 -60px;
                            .fixed-image {
                                @include absolute_centering;
                                &>img {
                                    width: 100%;
                                    height: 100%;
                                    object-fit: cover;
                                }
                            }
                        }
                        .spacer {
                            display: block;
                            // padding-top: (250 / 315 * 100%);
                            height: 250px;
                            box-sizing: border-box;
                            @media screen and (min-width: 1025px) { display: none !important; }
                            @media screen and (max-width: 1024px) and (max-height: 600px) { display: none !important; }
                        }
                        .leadtext {
                            @include f_all(24);
                            font-weight: bold;
                            line-height: 1.5;
                            @include maxwidth(1024) {
                                text-align: center;
                                margin-top: 20px;
                            }
                            @include maxwidth(768) {
                                @include f_all(20);
                            }
                        }
                        .text {
                            @include f_all(14);
                            font-weight: bold;
                            line-height: 1.8;
                            margin-top: 25px;
                            @include maxwidth(1024) { text-align: center; }
                            @include maxwidth(768) { line-height: 1.6; }

                            br.sp {
                                @media screen and (min-width: 769px) {
                                    display: none !important;
                                }
                            }
                        }
                        .c-buttons {
                            margin-top: 40px;
                            .c-button {
                                width: 100%;
                                &__link {
                                    color: var(--colorBase);
                                    background-color: var(--backgroundColorBase);
                                    min-width: initial;
                                }
                            }
                        }
                    }
                }
                .image {
                    height: 100%;
                    position: relative;
                    @include maxwidth(1024) {
                        &::after{
                            content: '';
                            @include absolute_centering;
                            background-color: rgba(#000, .65);
                        }
                    }
                    &>img {
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                        @include maxwidth(1024) {
                            filter: grayscale(100%);
                            -webkit-filter: grayscale(100%);
                        }
                    }
                }
            }
        }
    }
}

// 新着情報
#toppageNews {
    padding: 150px 0 280px;
    position: relative;
    @include maxwidth(768) {
        padding: 80px 0 200px;
    }
    .container {
        @include container(1280, 30);

        // ボタン要素を位置切替
        .__desktop {
            @include maxwidth(1024) { display: none !important; }
        }
        .__mobile {
            @media screen and (min-width: 1025px) { display: none !important; }
        }

        .columns {
            display: flex;
            justify-content: space-between;
            gap: 3rem;
            @include maxwidth(1024) {
                flex-direction: column;
                justify-content: initial;
                gap: 1rem;
                &>* {
                    flex: none !important;
                    width: 100%;
                }
            }
            .column {
                &:nth-of-type(1) {
                    flex-basis: 230px;
                    .c-heading {  }
                    .c-button {
                        margin-top: 20px;
                        width: 100%;
                        &__link { min-width: initial; }
                    }
                }
                &:nth-of-type(2) { flex-basis: 870px; }

                .term-list {
                    ul {
                        li {
                            a {
                                &.current {}
                            }
                        }
                    }
                }

                .headline { margin-top: 6px; }

                .c-button {
                    &__link { background-color: #000; }

                    &.__mobile {
                        width: 100%;
                        margin-top: 20px;
                        @include maxwidth(768) { margin-top: 10px; }
                    }
                }
            }
        }
    }
    .mask-image {
        // 画像最大高さ設定
        --maskImageHeight: 360px;
        @include maxwidth(768) {
            --maskImageHeight: 280px;
        }
        position: absolute;
        left: (40 / 1440 * 100%);
        right: (40 / 1440 * 100%);
        bottom: calc(var(--maskImageHeight) / 2 * -1);
        height: var(--maskImageHeight);
        &>img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }
}

// === Subpage

// 見出し画像
#subpageHeadingVisual {
    position: relative;
    &::after{
        content: '';
        @include absolute_centering;
        background: linear-gradient(
            0deg,
            rgba($themecolor, 0.65) 0%,
            rgba(#000, 0.65) 100%
        );
    }
    &>img {
        width: 100%;
        height: 140px;
        object-fit: cover;
    }
}

// サブページ設定上書き
.subpage #content {
    color: $basetextcolor;
    background-color: $basecolor;
    padding-top: 80px;
    padding-bottom: 40px;
    @include maxwidth(768) { padding-top: 60px; }
}

// 大見出し
#subpageHeading {
    position: relative;
    .container {
        @include container(1090, 30);
        .c-heading {  }
    }
}

// パンくずリスト
#subpageTopicpath {
    margin: 30px 0;
    position: relative;
    .container {
        @include container(1090, 30);
        ul {
            li {
                @include f_all(14);
                font-weight: bold;
                line-height: 1.8;
                text-transform: uppercase;
                display: inline-flex;
                align-items: center;
                &::after{
                    flex-shrink: 0;
                    content: '';
                    display: block;
                    width: 6px;
                    height: 10px;
                    background: url(../images/arrow-color.svg) no-repeat center / contain;
                    margin: 0 0.5em;
                }
                &:last-of-type::after { display: none; }
                a {  }
            }
        }
    }
}

// コンテンツ
#subpageContent {
    margin-top: 30px;
    position: relative;
    .container {
        @include container(1090, 30);
        .default {
            @include contentdefault;
            @include eachcss;

            & > * {
                &:not(h1, h2, h3, h4, h5, h6) {
                    max-width: 980px;
                    width: 100%;
                    margin-left: auto;
                    margin-right: auto;
                }
            }
        }
    }
}

// ページャー
.pager {
    text-align: center;
    margin-top: 40px;
    @include f_all(14);
    display: flex;
    justify-content: center;
    gap: 2px;
    &>* {
        &:first-child {
            border-radius: 2em 0 0 2em;
            padding-left: 2em;
        }
        &:last-child {
            border-radius: 0 2em 2em 0;
            padding-right: 2em;
        }
    }
    a, span {
        display: inline-block;
        // margin: 0 0 0.25em 0.75em;
        min-width: 3em;
        padding: 1em;
        box-sizing: border-box;
        // background-color: mix($basetextcolor, $basecolor, 0.1);
        background-color: #fff;
    }
    .current {
        color: $themetextcolor;
        background-color: $themecolor;
    }
}

// 月別アーカイブ
.monthly_archive_link {
    @include container(800, 10);
    margin-top: 50px;
    @include f_all(14);
    a.show_archive_links {
        display: block;
        width: 200px;
        height: 30px;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: mix($basetextcolor, $basecolor, 0.1);
        margin: auto;
        border-radius: 30px;
        position: relative;
        &:after {
            content: ">";
            display: inline-block;
            transform: rotateZ(90deg) scaleX(0.5);
            position: absolute;
            right: 30px;
            top: 0;
            bottom: 0;
            margin: auto;
        }
    }
    ul {
        margin-top: 20px;
        display: none;
        &.show {
            display: flex;
        }
        justify-content: center;
        flex-wrap: wrap;
        li {
            margin: 0 5px 10px;
            flex: 0 0 113px;
            text-align: center;
            a {
                display: block;
                background-color: mix($basetextcolor, $basecolor, 0.05);
                padding: 7px 0;
                border-radius: 15px;
            }
        }
    }
}

// Single page タイトル記事情報
.page-information {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    position: relative;
    gap: 1rem;
    &__terms {
        margin-left: 0 !important;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.3em;
    }
    &__term {
        list-style: none;
        margin: 0 !important;
        &__link {
            text-decoration: none !important;
            color: $themetextcolor;
            @include f_all(13);
            font-weight: bold;
            line-height: 1.1;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0 10px 1px;
            box-sizing: border-box;
            background-color: $accentcolor;
            min-height: 22px;
            position: relative;

            @media (any-hover: hover) {
                transition: filter 200ms, -webkit-filter 200ms;
                &:hover {
                    filter: opacity(80%);
                    -webkit-filter: opacity(80%);
                }
            }
        }
    }

    &__time {
        @include ff_en(italic);
        @include f_all(15);
        color: $themecolor;
    }
}