// スタイルシート common

@charset "utf-8";

@import "mixin";

html {
    scrollbar-gutter: stable;
    counter-reset: cHeading;
}

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

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

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

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

@mixin leadtext {
    font-size: clamp(16px, (20 / 1024 * 100vw), 20px);
    @include maxwidth(768) { font-size: clamp(15px, (16 / 360 * 100vw), 16px); }
    font-weight: 500;
    line-height: 1.2;
    @include flex_centering;
    &__inner {
        color: $themetextcolor;
        display: inline-block;
        padding: 0.4em 5px 0.4em 15px;
        box-sizing: border-box;
        position: relative;
        isolation:isolate;
        &::before {
            content: '';
            position: absolute;
            z-index: -1;
            inset: 0;
            background-color: $themecolor2;
        }

        &.js-stagger-text {
            --before-w: 0%;
            &::before {
                width: var(--before-w);
            }
        }
    }
}

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

br.pc {
    @media (max-width: 768px) {
        display: none !important;
    }
}

// === Components

#header {
    position: absolute;
    inset: 0 0 auto 0;
    z-index: 20;
    isolation: isolate;
    &::before {
        content: '';
        position: absolute;
        inset: 0 0 auto 0;
        height: 120px;
        z-index: -1;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.50) 0%, rgba(0, 0, 0, 0.00) 100%);
    }
    .container {
        padding: 30px (30 / 1440 * 100vw) 10px;
        box-sizing: border-box;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 2rem;
        @include maxwidth(768) {
            padding: 20px 15px 40px;
        }
        .l-left {
            flex-shrink: 0;
        }
        .l-right {
            margin-right: 20px;
            @include maxwidth(1200) { display: none; }
        }
        .sitename {
            a {
                display: block;
                padding: 16px 30px 14px 25px;
                box-sizing: border-box;
                background-color: #fff;
                @include maxwidth(768) {
                    padding: 12px 23px 10px 18px;
                }
            }
            img {
                width: 258px;
                @include maxwidth(768) {
                    width: 194px;
                }
            }
        }
        .menu {
            color: $themetextcolor;
            @include ff_ja(sans);
            @include f_all(14);
            line-height: 1.2;
            font-weight: bold;
            // counter-reset: menuItem;
            body.subpage & { display: none !important; }
            nav {
                ul {
                    display: flex;
                    flex-wrap: wrap;
                    gap: 2rem;
                    li {
                        counter-increment: menuItem;
                        a {
                            display: inline-flex;
                            align-items: center;
                            flex-direction: column;
                            gap: 5px;
                            // &::before {
                            //     content: counter(menuItem, decimal-leading-zero);
                            //     @include f_all(11);
                            //     font-weight: 500;
                            // }
                            &[data-en] {
                                &::after {
                                    content: attr(data-en);
                                    @include f_all(11);
                                    font-weight: 500;
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}

.gnav-toggle-wrapper {
    position: fixed;
    inset: 30px (50 / 1440 * 100vw) auto auto;
    body.admin-bar & { top: calc(30px + 32px); }
    z-index: 101;

    @media (min-width: 1201px) {
        body.toppage & {
            opacity: 0;
            transform: translate(0, -100%);
            transition: opacity 300ms, transform 300ms;
        }
        body.toppage.header_scrollout &,
        body.toppage.menu_open & {
            opacity: 1;
            transform: translate(0, 0);
        }
    }

    @include maxwidth(768) {
        position: absolute;
        inset: 20px 15px auto auto;
        body.admin-bar & { top: 20px; }
    }

    .gnav-toggle {  }
}

.gnav-toggle {
    cursor: pointer;
    display: block;
    width: 60px;
    height: 60px;
    color: $themetextcolor;
    background-color: $themecolor2;
    @include maxwidth(1200) {
        background-color: $themecolor;
    }
    position: relative;
    transition: background-color 400ms;
    body.menu_open & {
        background-color: $accentcolor !important;
    }
    &:focus-visible {
        outline: 2px solid currentColor;
        outline-offset: 3px;
    }
    .b {
        position: absolute;
        inset: 0 0 0 0;
        > span {
            display: inline-block;
            width: 28px;
            height: 2px;
            background-color: currentColor;
            position: absolute;
            inset: 0 0 25% 0;
            margin: auto;
            transition: transform 400ms cubic-bezier(0.65, 0, 0.35, 1), opacity 200ms;

            &:nth-child(1) {
                transform: translate(0, -7px);
                body.menu_open & { transform: translate(0, 0) rotate(45deg); }
            }
            &:nth-child(2) {
                body.menu_open & { opacity: 0; transform: scaleX(0); }
            }
            &:nth-child(3) {
                transform: translate(0, 7px);
                body.menu_open & { transform: translate(0, 0) rotate(-45deg); }
            }
        }
    }
    .t {
        font-size: 10px;
        font-weight: 600;
        line-height: 1;
        position: absolute;
        inset: auto 0 10px 0;
        margin: auto;
        @include flex_centering;
        &::before {
            content: 'MENU';
        }
        body.menu_open &::before {
            content: 'CLOSE';
        }
    }
}

@keyframes gnavWaterlineUp {
    0%   { transform: translateY(0);     opacity: 0; }
    8%   { opacity: 1; }
    82%  { opacity: 1; }
    100% { transform: translateY(-100%); opacity: 0; }
}

body.menu_open { overflow: hidden; }

#gnavWrapper {
    --gnav-dur: 720ms;
    --gnav-ease: cubic-bezier(0.76, 0, 0.24, 1);
    --gnav-pad-y: 45px;
    --gnav-gap: 50px;
    --gnav-item-gap: 30px;
    --gnav-ja: 26px;
    @media (max-height: 1000px) {
        --gnav-pad-y: 34px;
        --gnav-gap: 36px;
        --gnav-item-gap: 24px;
        --gnav-ja: 24px;
    }
    @media (max-height: 820px) {
        --gnav-pad-y: 24px;
        --gnav-gap: 26px;
        --gnav-item-gap: 10px;
        --gnav-ja: 20px;
    }
    @include maxwidth(768) {
        --gnav-pad-y: 24px;
        --gnav-gap: 1rem;
        --gnav-item-gap: 10px;
        --gnav-ja: 18px;
    }

    position: fixed;
    inset: 0;
    z-index: 100;
    visibility: hidden;
    pointer-events: none;
    transition: visibility var(--gnav-dur);
    body.admin-bar & { top: 32px; }
    body.menu_open & {
        visibility: visible;
        pointer-events: auto;
    }

    &::before {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 1;
        pointer-events: none;
        opacity: 0;
        will-change: transform;
        background: linear-gradient(
            to top,
            $accentcolor 0, $accentcolor 2px,
            rgba($accentcolor, 0.45) 2px, rgba($accentcolor, 0) 28px
        );
        body.menu_open & {
            animation: gnavWaterlineUp var(--gnav-dur) var(--gnav-ease) both;
        }
    }

    #gnav {
        color: $themetextcolor;
        background-color: $themecolor;
        position: absolute;
        inset: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        clip-path: inset(100% 0 0 0);
        transition: clip-path 420ms cubic-bezier(0.65, 0, 0.85, 0.25);
        body.menu_open & {
            clip-path: inset(0 0 0 0);
            transition: clip-path var(--gnav-dur) var(--gnav-ease);
        }

        a:focus-visible {
            outline: 2px solid currentColor;
            outline-offset: 4px;
        }

        .container {
            @include container(1024, 40);
            @include maxwidth(768) {
                margin-left: 20px;
                margin-right: 20px;
            }
            min-height: 100%;
            box-sizing: border-box;
            padding: var(--gnav-pad-y) 0;
            @include maxwidth(768) {
                padding: var(--gnav-pad-y) 0 calc(var(--gnav-pad-y) + 60px);
            }
            display: flex;
            flex-direction: column;
            gap: var(--gnav-gap);

            .sitename,
            .menu > ul > li,
            .foot {
                opacity: 0;
                transform: translate(0, 18px);
                transition: opacity 220ms, transform 220ms;
                body.menu_open & {
                    opacity: 1;
                    transform: translate(0, 0);
                    transition: opacity 500ms, transform 500ms;
                    transition-delay: 470ms;
                }
            }
            @for $i from 1 through 10 {
                .menu > ul > li:nth-child(#{$i}) {
                    body.menu_open & { transition-delay: 470ms + $i * 55ms; }
                }
            }
            .foot {
                body.menu_open & { transition-delay: 900ms; }
            }

            .sitename {
                @media (min-width: 481px) {
                    text-align: center;
                }
                a {
                    display: inline-block;
                    padding: 14px 26px 12px 22px;
                    box-sizing: border-box;
                    background-color: #fff;
                    @include maxwidth(768) {
                        padding: 12px 23px 10px 18px;
                    }
                }
                img {
                    width: 220px;
                    @include maxwidth(768) {
                        width: 200px;
                    }
                }
            }

            .menu {
                flex-grow: 1;
                display: flex;
                align-items: center;
                counter-reset: gnavItem;
                margin-bottom: 10em;
                @include maxwidth(768) {
                    margin-bottom: 2em;
                }
                > ul {
                    width: 100%;
                    columns: 2;
                    column-gap: (80 / 1200 * 100%);
                    @include maxwidth(768) {
                        columns: 1;
                    }
                    > li {
                        counter-increment: gnavItem;
                        break-inside: avoid;
                        -webkit-column-break-inside: avoid;
                        padding-bottom: var(--gnav-item-gap);

                        &:nth-child(4) {
                            break-after: column;
                            @include maxwidth(900) { break-after: auto; }
                        }

                        > a {
                            display: flex;
                            align-items: flex-start;
                            flex-direction: column;
                            gap: 5px;
                            position: relative;
                            padding: 21px 0 3px;
                            font-size: var(--gnav-ja);
                            font-weight: 500;
                            line-height: 1.4;
                            @include maxwidth(768) {
                                padding: 10px 0 2px;
                            }

                            &::before {
                                @include ff_ja(sans);
                                @include f_all(11);
                                font-weight: 500;
                                line-height: 1.2;
                                letter-spacing: 0.08em;
                                transition: color 400ms;
                                content: attr(data-en);
                                color: mix($themecolor2, $themetextcolor, 55%);
                            }

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

                        > ul {
                            margin-top: 15px;
                            padding-left: 1rem;
                            display: flex;
                            flex-direction: column;
                            gap: 10px;
                            > li {
                                > a {
                                    @include ff_ja(sans);
                                    @include f_all(13);
                                    font-weight: 500;
                                    line-height: 1.4;
                                    color: rgba(#CCDDED, 0.85);
                                    display: inline-flex;
                                    align-items: center;
                                    gap: 10px;
                                    transition: color 350ms;
                                    &::before {
                                        content: 'ー';
                                        flex-shrink: 0;
                                        opacity: 0.55;
                                    }
                                    @media (any-hover: hover) {
                                        &:hover {
                                            color: $themetextcolor;
                                            &::before { opacity: 1; }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }

            .foot {
                @include ff_ja(sans);
                margin-top: auto;
                padding-top: 26px;
                border-top: 1px dashed rgba(#CCDDED, 0.3);
                display: flex;
                align-items: flex-end;
                justify-content: space-between;
                flex-wrap: wrap;
                gap: 20px 40px;
                @include maxwidth(768) {
                    align-items: flex-start;
                    flex-direction: column;
                    gap: 20px;
                }

                .contact {
                    display: flex;
                    flex-wrap: wrap;
                    gap: 1rem 45px;
                    .tel {
                        a {
                            display: inline-flex;
                            align-items: flex-start;
                            flex-direction: column;
                        }
                        .name {
                            @include f_all(11);
                            font-weight: 500;
                            line-height: 1.2;
                            color: rgba(#CCDDED, 0.7);
                        }
                        .num {
                            @include f_all(24);
                            font-weight: 500;
                            line-height: 1.2;
                            padding-left: 26px;
                            background: url(../images/icon-tel-white.svg) left top 60% / 20px auto no-repeat;
                        }
                        .time {
                            @include f_all(11);
                            font-weight: 500;
                            line-height: 1.2;
                            color: rgba(#CCDDED, 0.7);
                            margin-top: 6px;
                        }
                    }
                    .address {
                        @include f_all(13);
                        font-weight: 500;
                        line-height: 1.6;
                        align-self: center;
                        color: rgba(#CCDDED, 0.85);
                        padding-left: 22px;
                        background: url(../images/icon-pin-white.svg) left top 5px / 14px auto no-repeat;
                    }
                }

                .asidemenu {
                    @include f_all(12);
                    font-weight: 500;
                    line-height: 1.2;
                    ul {
                        display: flex;
                        flex-wrap: wrap;
                        gap: 10px 25px;
                        li {
                            a {
                                color: rgba(#CCDDED, 0.8);
                                transition: color 350ms;
                                @media (any-hover: hover) {
                                    &:hover { color: $themetextcolor; }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}

body.loading {
    overflow: hidden;
}

body.loading_done {
    #loading { display: none; }
}

@keyframes dot_anime {
    from { opacity: 0; }
    to { opacity: 1; }
}

#loading {
    position: fixed;
    inset: 0;
    body.admin-bar & { top: 32px; }
    z-index: 200;
    overflow: hidden;

    .veil {
        position: absolute;
        inset: 0;
        z-index: 2;
        color: $themetextcolor;
        background: linear-gradient(180deg, $themecolor 0%, $themecolor2 100%);
        @include flex_centering;
        will-change: transform;

        .wave {
            position: absolute;
            inset: auto 0 100% 0;
            height: clamp(44px, (120 / 1440 * 100vw), 120px);
            margin-bottom: -1px;

            svg {
                position: absolute;
                bottom: 0;
                left: 0;
                width: 100%;
                height: 100%;
                fill: $themecolor;
            }
            .wave-back {
                opacity: 0.45;
                bottom: 8px;
                @include maxwidth(768) { bottom: 4px; }
            }
        }

        .per {
            position: relative;
            margin: 0;
            font-size: 14px;
            font-weight: 400;
            line-height: 1.4;
            opacity: 1;
            display: inline-flex;
            align-items: center;
            font-variant-numeric: tabular-nums;

            .num {
                display: inline-block;
                width: 3ch;
                height: 1em;
                overflow: hidden;
                vertical-align: bottom;
                text-align: right;

                .num-track {
                    display: flex;
                    flex-direction: column;
                    will-change: transform;
                    > span {
                        flex: 0 0 1em;
                        height: 1em;
                        line-height: 1;
                    }
                }

            }

            .sign {
                display: inline-block;
                margin-left: 0.15em;
            }

            .label {
                margin-right: 10px;
                .dot {
                    animation: dot_anime 1000ms ease infinite forwards;
                    @for $i from 0 to 3 {
                        &:nth-child(#{$i + 1}) {
                            animation-delay: #{$i * 100}ms;
                        }
                    }
                }
            }
        }
    }
}

#mainVisual {
    position: relative;
    height: 100vh;
    height: 100svh;
    min-height: 700px;
    @include maxwidth(768) { min-height: 600px; }
    body.admin-bar & {
        height: calc(100vh - 32px);
        height: calc(100svh - 32px);
    }
    overflow: hidden;
    .container {
        position: relative;
        height: 100%;
        &::after {
            content: "";
            display: block;
            height: (257 / 667 * 100vh);
            background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.50) 100%);
            position: absolute;
            inset:auto 0 0 0;
            margin: auto;
            // @media (min-width: 768px) { display: none; }
        }

        .video-wrapper {
            --cover-opacity: 0;
            height: 100%;
            position: relative;
            .poster {
                width: 100%;
                height: 100%;
                > img {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                }
            }
            .video {
                position: absolute;
                inset: 0;
                video {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                }
                &::after {
                    content: '';
                    position: absolute;
                    inset: 0;
                    z-index: 1;
                    --dot-size: 6px;
                    --dot-opacity: 0.35;
                    background-image: radial-gradient(#000 30%, transparent 31%);
                    background-size: var(--dot-size) var(--dot-size);
                    background-position: 0 0, var(--dot-size) var(--dot-size);
                    opacity: var(--dot-opacity);
                }
            }
            &::before,
            &::after {
                content: '';
                position: absolute;
                inset: 0;
                z-index: 1;
                pointer-events: none;
            }
            &::before {
                background-color: rgba(#000, 0.05);
                @include maxwidth(768) {
                    background-color: rgba(#000, 0.35);
                }
            }
            &::after {
                backdrop-filter: blur(2px);
                background-color: rgba(#000, 0.65);
                opacity: var(--cover-opacity);
            }
        }
        .overlay {
            color: $themetextcolor;
            position: absolute;
            z-index: 5;
            inset: auto (50 / 1440 * 100vw) 180px;
            display: inline-flex;
            align-items: flex-start;
            flex-direction: column;
            gap: 30px;
            @include maxwidth(1024) {
                bottom: 225px;
            }
            @include maxwidth(768) {
                inset: auto (20 / 375 * 100vw) 225px;
                gap: 20px;
                align-items: initial;
            }
            .text {
                font-size: clamp(24px, (48 / 1200 * 100vw), 48px);
                font-weight: 500;
                line-height: 1.5;
                @include maxwidth(768) {
                    font-weight: 600;
                }
            }
            .c-button {
                &__link {
                }
            }
        }
        .scrolldown {
            color: $themetextcolor;
            position: absolute;
            z-index: 5;
            inset: auto auto 75px 50%;
            transform: translate(-50%, 0);
            @include maxwidth(1024) {
                bottom: 120px;
            }
            // @include maxwidth(768) {
            //     bottom: 20px;
            // }
            &__link {
                font-size: 10px;
                font-weight: 600;
                line-height: 1;
                text-transform: uppercase;
                display: inline-flex;
                align-items: center;
                flex-direction: column;
                gap: 13px;

                .ttl {
                }

                .arr {
                    flex-shrink: 0;
                    display: inline-block;
                    width: 20px;
                    height: 20px;
                    border-radius: 20px;
                    border: 1px solid;
                    position: relative;

                    &::before,
                    &::after {
                        content: '';
                        display: inline-block;
                        width: 7px;
                        height: 4px;
                        background: url(../images/arrow-bottom-white.svg) center / contain no-repeat;
                        position: absolute;
                        inset: 0;
                        margin: auto;
                        transition: opacity 300ms ease-in-out, transform 300ms ease-in-out;
                    }

                    &::before {
                    }
                    &::after {
                        opacity: 0;
                        transform: translate(0, -0.5rem);
                    }

                }

                @media (any-hover: hover) {
                    &:hover {
                        .arr::before {
                            opacity: 0;
                            transform: translate(0, 0.5rem);
                        }
                        .arr::after {
                            opacity: 1;
                            transform: translate(0,0);
                        }
                    }
                }
            }
        }
        .line-news {
            color: $themetextcolor;
            position: absolute;
            z-index: 5;
            isolation: isolate;
            inset: auto 0 0 0;
            padding: 1rem (120 / 1440 * 100vw);
            min-height: 60px;
            box-sizing: border-box;
            @include maxwidth(1200) {
                padding-inline: (40 / 1200 * 100vw);
            }
            &::before {
                content: '';
                position: absolute;
                z-index: -1;
                inset: 0;
                background-color: rgba(#000, 0.5);
            }
            .line-news-container {
                display: flex;
                align-items: center;
                justify-content: space-between;
                gap: 1rem;
                @include maxwidth(1024) {
                    flex-direction: column;
                    justify-content: initial;
                }
            }
            .headline {
                color: $themetextcolor;
                @include maxwidth(1024) {
                    max-width: 768px;
                    width: 100%;
                    margin-inline: auto;
                }
                .headline-items {
                }
                .headline-item {
                    &__link {
                        @include f_all(15);
                        font-weight: 500;
                        line-height: normal;
                        display: flex;
                        align-items: center;
                        @include maxwidth(1024) {
                            flex-wrap: wrap;
                        }
                        @include maxwidth(768) {
                            @include f_all(14);
                        }

                        .terms {
                            flex-shrink: 0;
                            @include ff_ja(sans);
                            @include f_all(13);
                            font-weight: 500;
                            margin-right: 14px;
                            .term {
                                display: inline-flex;
                                align-items: center;
                                gap: 0.25em;
                                &::before {
                                    content: '#';
                                }
                            }
                        }
                        .date {
                            flex-shrink: 0;
                            margin-right: 20px;
                            @include maxwidth(768) {
                                margin-right: 1em;
                            }
                        }
                        .title {
                            overflow: hidden;
                            white-space: nowrap;
                            text-overflow: ellipsis;
                            @include maxwidth(1024) {
                                flex-basis: 100%;
                            }
                        }

                        @media (any-hover: hover) {
                            &:hover {
                                opacity: 0.8;
                            }
                        }
                    }
                }
            }
            .button {
                flex-shrink: 0;
                &__link {
                    @include ff_ja(sans);
                    @include f_all(14);
                    @include maxwidth(768) {
                        @include f_all(13);
                    }
                    font-weight: 400;
                    line-height: 1;
                    display: inline-flex;
                    align-items: center;
                    gap: 0.25em;
                    &::after {
                        content: '>';
                    }
                }
            }
        }
    }
}

#contentFooter {
    color: $basetextcolor;
    position: relative;
    isolation: isolate;
    #contentFooterContact {
        padding-block: 40px 60px;
        position: relative;
        @include maxwidth(768) {
        }
        .container {
            @include container(1200, 40);
            @include maxwidth(768) {
                margin-left: 20px;
                margin-right: 20px;
            }
            .c-heading {
            }
            .body {
                margin-top: 25px;
                .leadtext {
                    @include leadtext();
                }
                .contact-buttons {
                    margin-top: 20px;
                    display: flex;
                    flex-wrap: wrap;
                    gap: 5px;
                    @include maxwidth(1024) {
                        flex-direction: column;
                        > * {
                            flex: none !important;
                        }
                    }
                }
                .contact-button {
                    flex: calc((100% - 5px) / 2);
                    &__link {
                        @include ff_ja(sans);
                        color: $themetextcolor;
                        padding: 8px 5px 5px;
                        box-sizing: border-box;
                        @include flex_centering;
                        flex-direction: column;
                        min-height: 100px;
                        background-color: $themecolor2;
                        position: relative;
                        &.tel {
                            .name {
                                @include f_all(11);
                                font-weight: 500;
                                line-height: 1.2;
                            }
                            .num {
                                @include f_all(24);
                                font-weight: 500;
                                letter-spacing: 0.1em;
                                line-height: 1.2;
                                padding-left: 26px;
                                background: url(../images/icon-tel-white.svg) left top 70% / 20px auto no-repeat;
                            }
                            .time {
                                @include f_all(11);
                                font-weight: 500;
                                line-height: 1.2;
                                margin-top: 6px;
                            }
                        }
                        &.address {
                            .text {
                                @include f_all(16);
                                @include maxwidth(360) {
                                    @include f_all(15);
                                }
                                font-weight: 500;
                                line-height: 1.2;
                                text-align: center;
                            }
                            .map {
                                @include f_all(14);
                                font-weight: 500;
                                line-height: 1.2;
                                display: inline-flex;
                                align-items: center;
                                flex-wrap: wrap;
                                gap: 10px;
                                margin-top: 1em;
                                &::before {
                                    content: '';
                                    display: inline-block;
                                    width: 14px;
                                    height: 16px;
                                    background: url(../images/icon-pin-white.svg) center / contain no-repeat;
                                    margin-top: 0.15em;
                                }
                                .arr {
                                    flex-shrink: 0;
                                    display: inline-block;
                                    width: 20px;
                                    height: 20px;
                                    border-radius: 20px;
                                    border: 1px solid;
                                    position: relative;
                                    transition: border-color 300ms ease-in-out, background 300ms ease-in-out, transform 300ms ease-in-out;
                                    &::before,
                                    &::after {
                                        content: '';
                                        display: inline-block;
                                        width: 4px;
                                        height: 7px;
                                        background: url(../images/arrow-right-white.svg) center / contain no-repeat;
                                        position: absolute;
                                        inset: 0;
                                        margin: auto;
                                        transition: opacity 300ms ease-in-out, transform 300ms ease-in-out;
                                    }
                                    &::before {
                                    }
                                    &::after {
                                        opacity: 0;
                                        transform: translate(-0,5rem,0);
                                    }
                                }
                            }

                            @media (any-hover: hover) {
                                &:hover {
                                    .map .arr {
                                        border-color: $accentcolor;
                                        background-color: $accentcolor;
                                        transform: scale(1.15);
                                    }
                                    .map .arr::before {
                                        opacity: 0;
                                        transform: translate(0.5rem,0);
                                    }
                                    .map .arr::after {
                                        opacity: 1;
                                        transform: translate(0,0);
                                    }
                                }
                            }
                        }
                        &.form {
                            color: $accenttextcolor;
                            background-color: $accentcolor;

                            .title {
                                @include f_all(16);
                                font-weight: bold;
                                line-height: 1.2;
                                display: inline-flex;
                                align-items: center;
                                flex-wrap: wrap;
                                gap: 10px;
                                &::before {
                                    content: '';
                                    display: inline-block;
                                    width: 18px;
                                    height: 14px;
                                    background: url(../images/icon-mail-white.svg) center / contain no-repeat;
                                    margin-top: 0.15em;
                                }
                                .arr {
                                    flex-shrink: 0;
                                    display: inline-block;
                                    width: 20px;
                                    height: 20px;
                                    border-radius: 20px;
                                    border: 1px solid;
                                    margin-top: 0.15em;
                                    position: relative;
                                    transition: border-color 300ms ease-in-out, background 300ms ease-in-out, transform 300ms ease-in-out;
                                    &::before,
                                    &::after {
                                        content: '';
                                        display: inline-block;
                                        width: 4px;
                                        height: 7px;
                                        background:url(../images/arrow-right-white.svg) center / contain no-repeat;
                                        position: absolute;
                                        inset: 0;
                                        margin: auto;
                                        transition: opacity 300ms ease-in-out, transform 300ms ease-in-out;
                                    }
                                    &::before {
                                    }
                                    &::after {
                                        opacity: 0;
                                        transform: translate(-0.5rem,0);
                                    }
                                }
                            }

                            @media (any-hover: hover) {
                                &:hover {
                                    .title .arr { transform: scale(1.15); }
                                    .title .arr::before,
                                    .title .arr::after {
                                    }
                                    .title .arr::before {
                                        opacity: 0;
                                        transform: translate(0.5rem,0);
                                    }
                                    .title .arr::after {
                                        opacity: 1;
                                        transform: translate(0, 0);
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
    .bgimg {
        position: absolute;
        inset: 0 0 0 0;
        z-index: -1;
        > img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        &::after {
            content: '';
            position: absolute;
            inset: 0;
            background-color: rgba(#000, 0.4);
        }
    }
}

#footer {
    color: $themetextcolor;
    background-color: $themecolor;
    padding: 60px 0 40px;
    position: relative;
    @include maxwidth(768) {
        padding-bottom: 90px;
    }
    .container {
        @include container(1200, 40);
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0 2rem;
        @include maxwidth(1140) {
            flex-direction: column;
            justify-content: initial;
            > * {
                flex: none !important;
            }
        }
        @include maxwidth(768) {
            margin-left: 15px;
            margin-right: 15px;
        }
        .description {
            .sitename {
                @include maxwidth(1140) {
                    @include flex_centering;
                }
                a {
                    display: inline-block;
                    padding: 15px 30px 15px 25px;
                    box-sizing: border-box;
                    background-color: #fff;
                }
                img {
                    width: 258px;
                    @include maxwidth(768) { width: 275px; }
                }
            }
            .address {
                @include f_all(14);
                font-weight: 500;
                line-height: 1.4;
                margin-top: 40px;
                @include maxwidth(1140) {
                    margin-top: 20px;
                    text-align: center;
                }
                .address-title {
                    display: block;
                    padding-bottom: 0.75em;
                    margin-bottom: 0.75em;
                    border-bottom: 1px dashed;
                }
                p {
                    &:not(:first-of-type) {
                        margin-top: 0.45em;
                    }
                }
            }
        }
        .menu {
            @include ff_ja(sans);
            display: grid;
            grid-template-columns: repeat(3, auto);
            column-gap: 60px;
            align-items: start;
            @include maxwidth(1140) {
                margin-top: 40px;
                grid-template-columns: 1fr;
                row-gap: 15px;
            }
            > ul {
                > li {
                    @include f_all(14);
                    font-weight: bold;
                    line-height: 1.2;
                    @include maxwidth(768) {
                        @include f_all(13);
                    }
                    &:not(:first-child) {
                        margin-top: 1em;
                        @include maxwidth(1140) { margin-top: 15px; }
                    }
                    > a {
                        display: inline-flex;
                        align-items: center;
                        gap: 10px;
                        .arr {
                            @media (min-width: 1141px) {
                                display: none !important;
                            }
                            display: inline-block;
                            width: 20px;
                            height: 20px;
                            border-radius: 20px;
                            border: 1px solid;
                            position: relative;
                            transition: border-color 300ms ease-in-out, background 300ms ease-in-out, transfrom 300ms ease-in-out;
                            &::before,
                            &::after {
                                content: '';
                                display: inline-block;
                                width: 4px;
                                height: 7px;
                                background: url(../images/arrow-right-white.svg) center / contain no-repeat;
                                position: absolute;
                                inset: 0;
                                margin: auto;
                                transition: opacity 300ms ease-in-out, transform 300ms ease-in-out;
                            }
                            &::before {
                            }
                            &::after {
                                opacity: 0;
                                transform: translate(-0.5rem, 0);
                            }
                        }
                        @media (any-hover: hover) and (max-width: 1140px) {
                            &:hover {
                                .arr {
                                    border-color:transparent;
                                    background-color: $accentcolor;
                                    transform: scale(1.15);
                                }
                                .arr::before {
                                    opacity: 0;
                                    transform: translate(0.5rem,0);
                                }
                                .arr::after {
                                    opacity: 1;
                                    transform: translate(0,0);
                                }
                            }
                        }
                    }
                    > ul {
                        margin-top: 5px;
                        @include maxwidth(1140) {
                            display: flex;
                            flex-wrap: wrap;
                            align-items: center;
                            gap: 5px;
                            margin-top: 10px;
                        }
                        > li {
                            @include f_all(12);
                            font-weight: 500;
                            line-height: 2.5;
                            &::before {
                                content: '－';
                                margin-right: 0.5em;
                            }
                            @include maxwidth(1140) {
                                line-height: 1.2;
                                &::before { display: none; }
                            }
                            > a {
                                @include maxwidth(1140) {
                                    @include flex_centering;
                                    padding: 0.5em 30px 0.5em 20px;
                                    box-sizing: border-box;
                                    color: $basetextcolor;
                                    background-color: #fff;
                                    border-radius: 50px;
                                    min-height: 35px;
                                    position: relative;
                                }

                                .arr {
                                    @media (min-width: 1141px) {
                                        display: none !important;
                                    }

                                    display: inline-block;
                                    width: 4px;
                                    height: 7px;
                                    position: absolute;
                                    inset: 50% 15px auto auto;
                                    transform: translate(0,-50%);
                                    &::before,
                                    &::after {
                                        content: '';
                                        display: inline-block;
                                        width: 4px;
                                        height: 7px;
                                        background: url(../images/arrow-right-black.svg) center / contain no-repeat;
                                        position: absolute;
                                        inset: 0;
                                        margin: auto;
                                        transition: opacity 300ms ease-in-out, transform 300ms ease-in-out;
                                    }
                                    &::before {
                                    }
                                    &::after {
                                        opacity: 0;
                                        transform: translate(-5px, 0);
                                    }
                                }

                                @media (any-hover: hover) {
                                    &:hover {
                                        .arr::before {
                                            opacity: 0;
                                            transform: translate(5px,0);
                                        }
                                        .arr::after {
                                            opacity: 1;
                                            transform: translate(0,0);
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
        .asidemenu {
            flex-basis: 100%;
            margin-top: 1rem;
            @include ff_ja(sans);
            @include f_all(14);
            font-weight: 500;
            line-height: 1.5;
            @include maxwidth(1140) {
                line-height: 1.8;
                margin-top: 20px;
            }
            @include maxwidth(768) {
                @include f_all(13);
            }
            ul {
                display: flex;
                align-items: center;
                justify-content: flex-end;
                flex-wrap: wrap;
                gap: 0 2em;
                @include maxwidth(1140) {
                    flex-direction: column;
                    align-items: flex-end;
                    justify-content: initial;
                }
                li {
                    a {
                    }
                }
            }
        }
        .copyright {
            flex-basis: 100%;
            margin-top: 30px;
            text-align: right;
            @include maxwidth(1140) {
                margin-top: 17px;
            }
            small {
                color: #CCDDED;
                @include f_all(12);
                font-weight: 500;
                line-height: 1.5;
                @include maxwidth(768) {
                    @include f_all(10);
                }
            }
        }
    }
}

.totop-wrapper {
    position: fixed;
    z-index: 25;
    inset: auto 0 0 auto;
    transform: translate(0, 100%);
    transition: transform 300ms;
    body.header_scrollout & {
        transform: translate(0, 0%);
    }
    @include maxwidth(768) { display: none !important; }
}

.totop {
    cursor: pointer;
    @include flex_centering;
    flex-direction: column;
    gap: 8px;
    width: 60px;
    height: 60px;
    @include ff_ja(sans);
    @include f_all(11);
    font-weight: bold;
    text-transform: uppercase;
    color: $accenttextcolor;
    background-color: $accentcolor;
    padding-top: 5px;
    box-sizing: border-box;

    .ttl {  }

    .arr {
        flex-shrink: 0;
        display: inline-block;
        width: 7px;
        height: 4px;
        position: relative;
        &::before,
        &::after {
            content: '';
            display: inline-block;
            width: 7px;
            height: 4px;
            background: url(../images/arrow-bottom-white.svg) center / contain no-repeat;
            position: absolute;
            inset: 0;
            transform:scale(1, -1);
            transition: opacity 300ms ease-in-out, transform 300ms ease-in-out;
        }
        &::before {
        }
        &::after {
            opacity: 0;
            transform: scale(1, -1) translate(0, -5px);
        }
    }

    &:not(:has(> .arr))::before {
        content: '';
        display: inline-block;
        width: 7px;
        height: 4px;
        background: url(../images/arrow-bottom-white.svg) center / contain no-repeat;
        transform:scale(1, -1);
    }

    @media (any-hover: hover) {
        &:hover {
            .arr::before {
                opacity: 0;
                transform: scale(1, -1) translate(0, 5px);
            }
            .arr::after {
                opacity: 1;
                transform: scale(1, -1) translate(0, 0);
            }
        }
    }

}

#track {
    @media (min-width: 769px) {
        display:none !important;
    }

    position: fixed;
    inset: auto 0 0 0;
    z-index: 101;
    opacity: 0;
    transform: translate(0, 100%);
    transition: opacity 300ms ease-in-out, transform 300ms ease-in-out;

    body.header_scrollout & {
        opacity: 1;
        transform: translate(0,0);
    }

    &Inner {
        display: flex;
        align-items: flex-end;
        flex-wrap: nowrap;
        height: 60px;
    }

    a {
        height: 100%;
        &.gnav-toggle {
            body.menu_open & {
                background-color: $themecolor !important;
            }
        }
        &.totpo, &.gnav-toggle {
            flex-shrink: 0;
            flex-basis: 60px;
        }
        &:not(.totop):not(.gnav-toggle) {
            flex: 1;
            color: $themetextcolor;
            @include ff_ja(sans);
            @include f_all(13);
            font-weight: 500;
            line-height: 1.2;
            @include flex_centering;
            gap: 10px;
            background-color: $themecolor2;
            &::after {
                content: '';
                flex-shrink: 0;
                display: inline-block;
                width: 20px;
                height: 20px;
                border-radius: 20px;
                border: 1px solid;
                background:  url(../images/arrow-right-white.svg) center / 4px auto no-repeat;
            }

            &.works {
                &::before {
                    content: '';
                    flex-shrink: 0;
                    display: inline-block;
                    width: 20px;
                    height: 20px;
                    background:url(../images/icon-boat-white.svg) center / contain no-repeat;
                }
            }

        }
    }
}

.c-heading {
    // counter-increment: cHeading;
    display: flex;
    align-items: center;
    flex-direction: column;
    position: relative;
    gap: 0.1rem;
    .ja {
        @include f_all(14);
        font-weight: 500;
        line-height: 1.2;
        display: inline-flex;
        align-items: center;
        flex-direction: column;
        gap: 0.5em;
        @include maxwidth(768) {
            @include f_all(12);
        }
    }
    .en {
        color: $themecolor2;
        font-size: clamp(40px, (64 / 1024 * 100vw), 64px);
        font-weight: 500;
        line-height: 1;
    }

    &.left-align {
        align-items: flex-start;
        .ja {
            gap: 10px;
            flex-direction: row;
            &::before {
            }
        }
        .en {
        }
    }
}

.c-buttons {
    @include flex_centering;
    flex-wrap: wrap;
    gap: 10px;
    @include maxwidth(768) {
        gap: 5px;
    }

    &.back-buttons {
        margin-top: 80px;
        @include maxwidth(768) {
            margin-top: 60px;
        }
    }
}

.c-button {
    @include button;
}

.c-terms {
    @include ff_ja(sans);
    @include f_all(12);
    font-weight: bold;
    line-height: 1.2;
    position: relative;
    ul {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
        @include maxwidth(768) { gap: 5px; }

        li {
            body.subpage & {
                @include maxwidth(768) {
                    flex-basis: calc((100% - 5px) / 2);
                    &:first-child { flex-basis: 100%; }
                }
            }
            a {
                color: $basetextcolor;
                @include flex_centering;
                padding: 0.5em 45px 0.5em 35px;
                box-sizing: border-box;
                min-height: 35px;
                background-color: $themecolor3;
                border-radius: 50px;
                position: relative;
                @include maxwidth(768) {
                    padding: 0.5em 25px 0.5em 15px;
                }

                .ttl {
                }

                .arr {
                    display: inline-block;
                    position: absolute;
                    inset: 50% 15px auto auto;
                    transform: translate(-50%, 0);
                    &::before,
                    &::after {
                        content: '';
                        display: inline-block;
                        width: 4px;
                        height: 7px;
                        background: url(../images/arrow-right-black.svg) center / contain no-repeat;
                        position: absolute;
                        inset: 0 0 0 auto;
                        margin: auto;
                        transition: opacity 300ms ease-in-out, transform 300ms ease-in-out;
                    }
                    &::before {
                    }
                    &::after {
                        opacity: 0;
                        transform: translate(-5px, 0);
                    }
                }

                &:not(:has(> .arr))::after {
                    content: '';
                    display: inline-block;
                    width: 4px;
                    height: 7px;
                    background: url(../images/arrow-right-black.svg) center / contain no-repeat;
                    position: absolute;
                    inset: 0 15px 0 auto;
                    margin: auto;
                }

                &.current {
                    color: $themetextcolor;
                    background-color:$themecolor2;
                    .arr::before, .arr::after { background-image: url(../images/arrow-right-white.svg);  }
                    &:not(:has(> .arr))::after { background-image: url(../images/arrow-right-white.svg);  }
                }

                @media (any-hover: hover) {
                    &:hover {
                        .arr::before {
                            opacity: 0;
                            transform: translate(5px, 0);
                        }
                        .arr::after {
                            opacity: 1;
                            transform: translate(0,0);
                        }
                    }
                }
            }
        }
    }

    &.news-terms {  }
    &.works-terms {  }
}

*[class$="-headline"] {
    .noposts {
        @include ff_ja(sans);
        @include f_all(14);
        font-weight: 500;
        padding: 1.5em 1em;
        box-sizing: border-box;
        background-color: color-mix(in srgb, $themecolor3, $basecolor);
        position: relative;
        border-radius: 10px;
        @include maxwidth(768) {
            padding: 1em;
        }
    }
}

.news-headline {
    position: relative;
    body.subpage & {
        margin-top: 30px;
    }
    .headline-items {
        padding-bottom: 2px;
        body.subpage & {
            @include maxwidth(768) {
                display: flex;
                flex-wrap: wrap;
                gap: 30px 1rem;
            }
        }
    }
    .headline-item {
        position: relative;
        body.subpage & {
            @include maxwidth(768) {
                flex-basis: calc((100% - 1rem)/ 2);
            }
            @include maxwidth(480) {
                flex-basis: 100%;
            }
        }
        &:not(:first-child) {
            margin-top: 5px;
            @include maxwidth(768) { margin-top: 0px; }
        }
        &__link {
            display: flex;
            height: 100%;
            gap: 0 (40 / 1200 * 100%);
            @include maxwidth(768) {
                flex-direction: column;
            }
            > :where(*) { display: block; }
            .arr {
                display: inline-block;
                width: 20px;
                height: 20px;
                border-radius: 20px;
                background-color: $themecolor2;
                position: absolute;
                transition: background 300ms ease-in-out, transform 300ms ease-in-out;
                &::before,
                &::after {
                    content: '';
                    display: inline-block;
                    width: 4px;
                    height: 7px;
                    background: url(../images/arrow-right-white.svg) center / contain no-repeat;
                    position: absolute;
                    inset: 0;
                    margin: auto;
                    transition: opacity 300ms ease-in-out, transform 300ms ease-in-out;
                }
                &::before {
                }
                &::after {
                    opacity: 0;
                    transform: translate(-0.5rem,0);
                }
            }
            .thumb {
                flex-shrink: 0;
                flex-basis: 166px;
                aspect-ratio: 166 / 120;
                overflow: hidden;
                position: relative;
                @include maxwidth(768) {
                    flex: none;
                }
                > img {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                    transition: transform 300ms ease-in-out;
                }
                .arr {
                    @media (min-width: 769px) { display: none !important; }
                    inset: auto 10px 10px auto;
                }
            }
            .docs {
                flex: 1;
                @include f_all(15);
                font-weight: 500;
                line-height: 1.4;
                display: flex;
                align-items: center;
                flex-wrap: wrap;
                gap: 1rem;
                padding: 25px 55px 30px 30px;
                box-sizing: border-box;
                border-bottom: 1px dashed #BCBCBC;
                @include maxwidth(768) {
                    display: block;
                    padding: 15px 10px 10px;
                }
                body.subpage & {
                    @include maxwidth(768) {
                        @include f_all(13);
                    }
                }
                 > :where(*) { display: block; }
                .terms {
                    flex-basis: 100%;
                    @include ff_ja(sans);
                    @include f_all(12);
                    font-weight: bold;
                    line-height: 1.2;
                    display: flex;
                    align-items: center;
                    flex-wrap: wrap;
                    gap: 5px;
                    @include maxwidth(768) {
                        @include f_all(11);
                        position: absolute;
                        inset: 10px 10px auto 10px;
                        justify-content: flex-end;
                    }
                    .term {
                        display: inline-flex;
                        align-items: center;
                        justify-content: center;
                        padding: 0.45em 15px 0.5em;
                        box-sizing: border-box;
                        border-radius: 50px;
                        color: $themetextcolor;
                        background-color: $themecolor;
                        min-height: 35px;
                        @include maxwidth(768) {
                            min-height: 30px;
                            padding-left: 10px;
                            padding-right: 10px;
                        }
                    }
                }
                .date {
                }
                .title {
                    @include maxwidth(768) {
                        flex-basis: 100%;
                        margin-top: 3px;
                    }
                    &__inner {
                        background-image: linear-gradient(currentColor, currentColor);
                        background-position: left bottom;
                        background-size: 0% 1px;
                        background-repeat: no-repeat;
                        transition: background 300ms ease-in-out;
                    }
                }
                .arr {
                    inset: auto 30px 25px auto;
                    @include maxwidth(768) { display: none; }
                }
            }

            @media (any-hover: hover) {
                &:hover {
                    .thumb > img {
                        transform: scale(1.15);
                    }
                    .docs .arr,
                    .thumb .arr {
                        background-color: $accentcolor;
                        transform: scale(1.15);
                    }
                    .docs .arr::before,
                    .thumb .arr::before {
                        opacity: 0;
                        transform: translate(0.5rem,0);
                    }
                    .docs .arr::after,
                    .thumb .arr::after {
                        opacity: 1;
                        transform: translate(0,0);
                    }
                    .docs .title__inner {
                        background-size: 100% 1px;
                    }
                }
            }

        }
    }
}

 .works-headline {
     position: relative;
     body.subpage & {
         margin-top: 30px;
     }
     .headline-items {
         list-style: none;
         margin-left: 0px;
         body.subpage & {
             --gap: 30px;
             display: flex;
             flex-wrap: wrap;
             gap: 40px var(--gap);
         }
     }
     .headline-item {
         margin-bottom: 0px;
         position: relative;
         isolation: isolate;
         body.subpage & {
             width: calc((100% - (var(--gap) * 2)) / 3);
             @include maxwidth(1024) {
                width: calc((100% - var(--gap)) / 2);
             }
             @include maxwidth(480) {
                 width: 100%;
             }
         }
         &__link {
             text-decoration: none !important;
             > :where(*) { display: block; }
             .thumb {
                 // aspect-ratio: 1;
                 padding-top: 100%;
                 box-sizing: border-box;
                 position: relative;
                 overflow: hidden;
                 > img {
                     position: absolute;
                     inset: 0 0 0 0;
                     width: 100%;
                     height: 100%;
                     object-fit: cover;
                     transition: transform 300ms ease-in-out;
                 }
             }
             .terms {
                 @include ff_ja(sans);
                 @include f_all(12);
                 font-weight: bold;
                 line-height: 1.2;
                 position: absolute;
                 inset: 10px 10px auto 10px;
                 margin: auto;
                 display: flex;
                 align-items: center;
                 justify-content: flex-end;
                 flex-wrap: wrap;
                 gap: 5px;
                 @include maxwidth(768) {
                     @include f_all(11);
                 }
                 .term {
                     display: inline-flex;
                     align-items: center;
                     justify-content: center;
                     padding: 0.5em 15px;
                     box-sizing: border-box;
                     min-height: 35px;
                     border-radius: 50px;
                     color: $themetextcolor;
                     background-color: $themecolor2;
                     @include maxwidth(768) {
                         padding-left: 10px;
                         padding-right: 10px;
                         min-height: 30px;
                     }
                 }
             }
             .docs {
                 @include ff_ja(sans);
                 padding: 1rem 0 0;
                 box-sizing: border-box;
                 position: relative;
                 > :where(*) { display: block; }
                 .title {
                     @include f_all(16);
                     font-weight: 500;
                     line-height: 1.2;
                     @include maxwidth(768) { @include f_all(14); }
                 }
                 .detail {
                     @include f_all(15);
                     line-height: 1.2;
                     margin-top: 10px;
                     overflow: hidden;
                     white-space: nowrap;
                     text-overflow: ellipsis;
                     @include maxwidth(768) {
                         @include f_all(13);
                     }
                     body.toppage & {
                         @include maxwidth(768) {
                             display: none;
                         }
                     }
                 }
             }

             @media (any-hover: hover) {
                 .thumb::after {
                     content: 'VIEW MORE';
                     @include ff_ja(sans);
                     color: $themetextcolor;
                     @include f_all(14);
                     font-weight: 500;
                     line-height: 1.2;
                     position: absolute;
                     inset: 0 0 0 0;
                     @include flex_centering;
                     // background-color: rgba(#000, 0.80);
                     background-image: linear-gradient(to bottom , transparent 0% 40%, rgba(#000, 0.80) 60% 100%);
                     background-position: 0 top;
                     background-size: 100% 500%;
                     background-repeat: no-repeat;
                     opacity: 0;
                     transition: opacity 300ms 100ms, background-position 500ms 100ms;
                 }
                 &:hover {
                     .thumb::after { opacity: 1; background-position: 0 bottom; }
                     .thumb > img { transform: scale(1.10); }
                 }
             }

         }
     }
 }

.mouse-stalker {
    position: fixed;
    inset: 0 auto auto 0;
    z-index: 90;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    will-change: transform;
    &--circle {
        --circle-w: 100px;
        width: var(--circle-w);
        height: var(--circle-w);
        margin: calc(var(--circle-w) / 2 * -1) 0 0  calc(var(--circle-w) / 2 * -1);
        background-color: #0469AF;
        mix-blend-mode: color-dodge;
    }
    &--dot {
        --dot-w: 8px;
        width: var(--dot-w);
        height: var(--dot-w);
        margin: calc(var(--dot-w) / 2 * -1) 0 0  calc(var(--dot-w) / 2 * -1);
        background: $accentcolor;
        mix-blend-mode: screen;
    }
}

// === Frontpage

#toppageAdvantage {
    padding-block: 120px 0;
    position: relative;
    isolation: isolate;
    @include maxwidth(768) { padding-block: 100px 0; }
    .container {
        @include container(1200, 40);
        @include maxwidth(768) {
            margin-inline: 20px;
        }
        .c-heading {
        }
        .body {
            margin-top: 30px;
            .leadtext {
                @include leadtext;
            }
            .text {
                @include f_all(14);
                font-weight: 500;
                line-height: 2.2;
                text-align: center;
                margin-top: 30px;
                @include maxwidth(480) {
                    text-align: left;
                }

                p {
                    &:not(:first-child) {
                        margin-top: 2.2em;
                    }
                }
            }
            .advantage-list {
                --gap: 5px;
                margin-top: 50px;
                position: relative;
                @include maxwidth(768) {
                    margin-top: 40px;
                }
                ul {
                    display: flex;
                    gap: var(--gap);
                    flex-wrap: wrap;
                    li {
                        flex-basis: calc((100% - (var(--gap) * 3)) / 4);
                        @include maxwidth(1024) {
                            flex-basis: calc((100% - (var(--gap) * 1)) / 2);
                        }
                        padding: 35px (20 / 1200 * 100%) 28px;
                        box-sizing: border-box;
                        background-color: $themecolor3;
                        position: relative;
                        @include maxwidth(768) {
                            flex-basis: 100%;
                            padding: 30px 10px 25px;
                        }

                        .title {
                            display: flex;
                            flex-direction: column;
                            align-items: center;
                            gap: 10px;

                            .en {
                                @include f_all(12);
                                font-weight: 500;
                                line-height: normal;
                                color: $themecolor2;
                                text-transform: uppercase;
                                @include maxwidth(768) {
                                    @include f_all(10);
                                }
                            }
                            .ja {
                                @include f_all(14);
                                font-weight: bold;
                                line-height: normal;
                                color: $basetextcolor;
                                @include maxwidth(768) {
                                    @include f_all(13);
                                }
                            }
                        }
                        .icon {
                            text-align: center;
                            margin-top: 30px;
                            @include maxwidth(768) {
                                margin-top: 20px;
                            }
                            > img {
                                max-height: 85px;
                                @include maxwidth(768) {
                                    max-height: 60px;
                                }
                            }
                        }
                        .c-button {
                            width: 100%;
                            margin-top: 28px;
                            @include maxwidth(768) {
                                margin-top: 25px;
                            }
                            &__link {
                                min-width: initial;
                            }
                        }
                    }
                }
            }
        }
    }
    .bgimg {
        position: absolute;
        inset: 0;
        z-index: -1;
        > img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            filter: grayscale(100%);
            -webkit-filter: grayscale(100%);
        }
        &::after {
            content: '';
            position: absolute;
            inset: 0;
            background: rgba(255, 255, 255, 0.85);
        }
    }
}

#toppageBusiness {
    color: $themetextcolor;
    padding: 140px 0 90px;
    position: relative;
    isolation: isolate;
    @include maxwidth(768) {
        padding: 80px 0;
    }
    .container {
        @include container(1200, 40);
        @include maxwidth(768) {
            margin-left: 20px;
            margin-right: 20px;
        }
        .c-heading {
        }
        .body {
            margin-top: 30px;
            @include maxwidth(768) { margin-top: 20px; }
            .slider {
                --slider-trstf: cubic-bezier(0.87, 0, 0.13, 1);
                .slider-wrapper {
                    .slider-item {
                        height: 420px;
                        @include maxwidth(1024) {
                            height: (420 / 1024 * 100vw);
                            min-height: 230px;
                        }
                        opacity: 1 !important;
                        clip-path: polygon(0% 0%, 100% 0%, 125% 100%, 0% 100%);
                        transition-property: clip-path;
                        transition-timing-function: var(--slider-trstf);
                        &__inner {
                            height: 100%;
                            > img {
                                width: 100%;
                                height: 100%;
                                object-fit: cover;
                                transition: transform var(--slide-duration, 0ms) var(--slider-trstf);
                            }
                        }

                        &.swiper-slide-active .slider-item__inner {
                        }
                    }
                }
                .slider-pagination {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    gap: 8px;
                    margin-top: 25px;
                    @include maxwidth(768) {
                        margin-top: 20px;
                    }
                    .swiper-pagination-bullet {
                        margin: 0px;
                        width: 12px;
                        height: 12px;
                        border-radius: 12px;
                        @include maxwidth(768) {
                            width: 10px;
                            height: 10px;
                            border-radius: 10px;
                        }
                        background-color: $themecolor3;
                        opacity: 1;
                        &-active {
                            background-color: $accentcolor;
                        }
                    }
                }
            }
            .docs {
                margin-top: 20px;
                @include maxwidth(1024) {
                    margin-top: 30px;
                }
                .cols {
                    display: flex;
                    align-items: flex-end;
                    justify-content: space-between;
                    gap: 2rem;
                    @include maxwidth(1024) {
                        flex-direction: column;
                        align-items: initial;
                        justify-content: initial;
                        gap: 30px;
                        > * { flex: none !important; }
                    }
                    .col {
                        &:nth-child(1) {
                            flex: 1;
                        }
                        &:nth-child(2) {
                            flex-basis: 280px;
                        }
                        .leadtext {
                            @include leadtext;

                            @media (min-width: 1025px) {
                                justify-content: flex-start;
                            }
                        }
                        .text {
                            @include f_all(14);
                            font-weight: 500;
                            line-height: 2;
                            margin-top: 30px;
                            @include maxwidth(768) {
                                margin-top: 20px;
                            }
                            p {
                            }
                        }
                        .c-buttons {
                            flex-direction: column;
                            .c-button {
                                &__link {
                                }
                            }
                        }
                    }
                }
            }
        }
    }
    .bgimg {
        position: absolute;
        inset:0;
        z-index: -1;
        clip-path: inset(0);
        display: flex;
        align-items: flex-end;
        > img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        &::after {
            content: '';
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, 0.50);
            backdrop-filter: blur(4px);
        }
    }
}

#toppageWorks {
    padding-block: 150px 0;
    position: relative;
    @include maxwidth(768) {
        padding-block: 120px 0;
    }
    .container {
        @include container(1200, 40);
        @include maxwidth(768) {
            margin-inline: 20px;
        }
        .c-heading {
        }
        .body {
            margin-top: 40px;
            @include maxwidth(768) { margin-top: 20px; }
            .works-terms {
            }
            .works-headline {
                margin: 30px calc(50% - 50vw) 0;
                padding: 0 5px;
                box-sizing: border-box;
                clip-path: inset(0);
                @include maxwidth(1024) { padding: 0px; }
                .headline-items {
                    display: grid;
                    grid-template-columns: repeat(4, 1fr);
                    grid-auto-rows: 1fr;
                    grid-auto-flow: row dense;
                    gap: 5px;
                    @include maxwidth(1024) {
                        grid-template-columns: repeat(2, 1fr);
                    }
                }
                .headline-item {
                    @media (min-width: 1025px) {
                        &:nth-child(1) { grid-area: 1 / 1 / 3 / 3; }
                        &:nth-child(2) { grid-area: 2 / 3 / 4 / 5; }
                    }
                    @include maxwidth(1024) {
                        &:nth-child(1) { grid-area: 1 / 1 / 3 / 3; }
                        &:nth-child(2) { grid-area: 5 / 1 / 7 / 3; }
                    }
                    &__link {
                        .thumb {
                            @media (min-width: 769px) {
                                padding-top: (280 / 353 * 100%);
                            }
                        }
                        .terms {
                            .term {  }
                        }
                        .docs {
                            @include ff_ja(serif);
                            color: $themetextcolor;
                            position: absolute;
                            inset:auto 0 0 0;
                            padding: 40px 20px 10px;
                            box-sizing: border-box;
                            isolation: isolate;
                            @include maxwidth(768) {
                                padding: 60px 10px 10px 10px;
                            }
                            .title {
                                line-height: 1.4;
                            }
                            .detail {
                                line-height: 1.4;
                                margin-top: 4px;
                                overflow: hidden;
                                .s { font-size: 0.9em; margin-left: 1em; }
                            }
                            &::before {
                                content: '';
                                position: absolute;
                                inset: 0;
                                z-index: -1;
                                background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, #000 100%);
                            }
                        }

                        @media (any-hover: hover) {
                            .docs .detail { height: 0px; }
                            &:hover {
                                .docs .detail { height: auto; }
                            }
                        }
                    }
                }
            }
            .c-buttons {
                margin-top: 45px;
                @include maxwidth(768) { margin-top: 40px; }
                .c-button {
                    &__link {
                    }
                }
            }
        }
    }
}

#toppageTechnology {
    padding-top: 80px;
    color: $themetextcolor;
    background-color: $themecolor;
    position: relative;
    @include maxwidth(768) {
        padding-top: 50px;
    }
    .container {
        @include container(1200, 40);
        @include maxwidth(768) {
            margin-left: 20px;
            margin-right: 20px;
        }
        .c-heading {
        }
        .body {
            margin-top: 36px;
            @include maxwidth(768) {
                margin-top: 25px;
            }
            .leadtext {
                @include leadtext();

                &__inner {
                    color: $basetextcolor;
                    &::before {
                        background-color: $themetextcolor;
                    }
                }
            }
            .technology-list {
                margin: 28px calc(50% - 50vw) 0;
                @include maxwidth(768) {
                    margin-top: 20px;
                }
                ul {
                    display: flex;
                    gap: 5px;
                    @include maxwidth(1140) {
                        flex-direction: column;
                        > * { flex: none !important; }
                    }
                    @include maxwidth(768) { gap: 3px; }
                    li {
                        flex: 1;
                        color: #fff;
                        background-color: #000;
                        padding: 55px 40px 45px;
                        box-sizing: border-box;
                        @include maxwidth(768) {
                            padding: 40px 20px;
                        }
                        .title {
                            text-align: center;
                            display: flex;
                            flex-direction: column;
                            align-items: center;
                            .en {
                                @include ff_ja(sans);
                                @include f_all(11);
                                font-weight: 500;
                                line-height: 1.2;
                                @include maxwidth(768) {
                                    @include ff_ja(serif);
                                }
                            }
                            .ja {
                                font-size: clamp(16px, (20 / 1024 * 100vw), 20px);
                                font-weight: 500;
                                line-height: 1.45;
                                margin-top: 0.5em;
                            }
                            &::after {
                                content: '';
                                display: inline-block;
                                width: 6px;
                                height: 6px;
                                background-color: $accentcolor;
                                transform: rotate(-45deg);
                                margin-top: 10px;
                                @include maxwidth(768) {
                                    margin-top: 15px;
                                }
                            }
                        }
                        .img {
                            margin: 40px -40px 0;
                            height: (520 / 1440 * 100vw);
                            min-height: 250px;
                            @include maxwidth(768) {
                                margin: 10px -20px 20px;
                            }
                            > img {
                                width: 100%;
                                height: 100%;
                                object-fit: cover;
                            }
                        }
                        .text {
                            @include f_all(14);
                            font-weight: 500;
                            line-height: 2;
                            margin-top: 30px;
                            @include maxwidth(768) {
                                margin-top: 20px;
                            }
                            p {
                                &:not(:first-child) { margin-top: 1em; }
                            }
                        }
                        .c-buttons {
                            margin-top: 30px;
                            @include maxwidth(768) { margin-top: 20px; }
                            .c-button {
                                &__link {
                                }
                            }
                        }
                    }
                }
            }
        }
    }
    .wide-img {
        margin-top: 100px;
        height: (350 / 1440 * 100vw);
        min-height: 280px;
        clip-path: inset(0);
        @include maxwidth(768) {
            margin-top: 50px;
        }
        display: flex;
        align-items: flex-end;
        > img {
            // position: fixed;
            // inset: 0 auto auto 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }
}

#toppageAboutus {
    --front-aboutus-gap: 5px;
    padding-block: 150px 0;
    position: relative;
    @include maxwidth(768) {
        --front-aboutus-gap: 3px;
        padding-block: 120px 0;
    }
    .container {
        @include container(1200, 40);
        @include maxwidth(768) {
            margin-left: 20px;
            margin-right: 20px;
        }
        .c-heading {
        }
        .body {
            margin-top: 25px;
            @include maxwidth(768) {
                margin-top: 30px;
            }
            .leadtext {
                @include leadtext()
            }
            .banner-list {
                margin: 30px calc(50% - 50vw) 0;
                position: relative;
                @include maxwidth(768) {
                    margin-top: 20px;
                }
                ul {
                    display: flex;
                    gap: var(--front-aboutus-gap);
                    @include maxwidth(1140) {
                        flex-direction: column;
                        > * { flex: none !important; }
                    }
                    li {
                        flex: 1;
                        height: (250 / 1400 * 100vw);
                        min-height: 250px;
                        position: relative;
                        @include maxwidth(1140) {
                            height: (180 / 375 * 100vw);
                            max-height: 280px;
                            min-height: 180px;
                        }
                        a {
                            > :where(*) { display: block; }
                            .title {
                                color: $themetextcolor;
                                position: absolute;
                                inset: 5px;
                                z-index: 1;
                                @include flex_centering;
                                flex-direction: column;
                                &::before {
                                    content: '';
                                    display: inline-block;
                                    width: 6px;
                                    height: 6px;
                                    background-color: $accentcolor;
                                    transform: rotate(-45deg);
                                }
                                .en {
                                    @include f_all(11);
                                    font-weight: 500;
                                    line-height: 1.45;
                                    margin-top: 10px;
                                }
                                .ja {
                                    font-size: clamp(16px, (20 / 1024 * 100vw), 20px);
                                    font-weight: 500;
                                    line-height: 1.45;
                                    text-align: center;
                                    margin-top: 7px;
                                }
                                .arr {
                                    flex-shrink: 0;
                                    display: inline-block;
                                    width: 20px;
                                    height: 20px;
                                    border-radius: 20px;
                                    margin-top: 14px;
                                    background-color: $themecolor2;
                                    position: relative;
                                    transition: border-color 300ms ease-in-out, background 300ms ease-in-out, transform 300ms ease-in-out;
                                    &::before,
                                    &::after {
                                        content: '';
                                        display: inline-block;
                                        width: 4px;
                                        height: 7px;
                                        background: url(../images/arrow-right-white.svg) center / 4px auto no-repeat;
                                        position: absolute;
                                        inset: 0;
                                        margin: auto;
                                        transition: opacity 300ms ease-in-out, transform 300ms ease-in-out;
                                    }
                                    &::before {
                                    }
                                    &::after {
                                        opacity: 0;
                                        transform: translate(-0.5rem, 0);
                                    }
                                }
                            }
                            .img {
                                position: absolute;
                                inset: 0;
                                // overflow: hidden;
                                > img {
                                    width: 100%;
                                    height: 100%;
                                    object-fit: cover;
                                    // transition: transform 300ms ease-in-out;
                                }
                                &::before {
                                    content: '';
                                    position: absolute;
                                    inset: 0;
                                    background-color: rgba(#000, 0.4);
                                    @include maxwidth(768) {
                                        background-color: rgba(#000, 0.6);
                                    }
                                }
                                &::after {
                                    content: '';
                                    position: absolute;
                                    inset: 0;
                                    background-color: rgba(#000, 0.35);
                                    backdrop-filter: blur(3px);
                                    opacity: 0;
                                    transition: opacity 300ms ease-in-out;
                                }
                            }

                            @media (any-hover: hover) {
                                &:hover {
                                    .arr {
                                        border-color: $accentcolor;
                                        background-color: $accentcolor;
                                        transform: scale(1.15);
                                    }
                                    .arr::before {
                                        opacity: 0;
                                        transform: translate(0.5rem,0);
                                    }
                                    .arr::after {
                                        opacity: 1;
                                        transform: translate(0,0);
                                    }
                                    .img::after { opacity: 1; }
                                    // .img > img { transform: scale(1.10); }
                                }
                            }

                        }
                    }
                }
            }
            .origin-content {
                color: $themetextcolor;
                margin: var(--front-aboutus-gap) calc(50% - 50vw) 0;
                padding: (80 / 1440 * 100vw) 40px (100 / 1440 * 100vw);
                box-sizing: border-box;
                position: relative;
                isolation: isolate;
                // min-height: 100vh;
                // @include flex_centering;
                @include maxwidth(768) {
                    padding: 60px 20px 80px;
                }
                .docs {
                    width: 100%;
                    .title {
                        display: flex;
                        align-items: center;
                        flex-direction: column;
                        &::before {
                            content: '';
                            display: block;
                            width: 6px;
                            height: 6px;
                            background-color: $accentcolor;
                        }
                        .en {
                            @include f_all(11);
                            font-weight: 500;
                            line-height: 1.45;
                            margin-top: 10px;
                        }
                        .ja {
                            font-size: clamp(16px, (20 / 1024 * 100vw), 20px);
                            font-weight: 500;
                            line-height: 1.45;
                            margin-top: 7px;
                        }
                    }
                    .leadtext {
                        @include f_all(20);
                        font-weight: 500;
                        line-height: 1.45;
                        text-align: center;
                        margin-top: 43px;
                    }
                    .text {
                        @include f_all(14);
                        font-weight: 500;
                        line-height: 2;
                        text-align: center;
                        margin-top: 30px;
                        @include maxwidth(768) {
                            line-height: 1.8;
                            margin-top: 20px;
                        }
                        strong {
                            @media (min-width: 769px) {
                                @include f_all(20);
                                font-weight: 500;
                                line-height: 2;
                            }
                        }
                        p:not(:first-child) {
                            margin-top: 2em;
                        }

                        p {
                            overflow: hidden;
                            > .text-inner {
                                display: inline-block;
                            }
                        }
                    }
                    .c-buttons {
                        margin-top: 75px;
                        @include maxwidth(768) {
                            margin-top: 35px;
                        }
                        .c-button {
                            &__link {  }
                        }
                    }
                }
                .bgimg {
                    --cover-o: 0;
                    position: absolute;
                    z-index: -1;
                    inset: 0;
                    > img {
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                    }
                    &::before,
                    &::after {
                        content: '';
                        position: absolute;
                        inset: 0;
                    }
                    &::before {
                        background: linear-gradient(270deg, rgba(0, 0, 0, 0.50) 0%, rgba(0, 0, 0, 0.80) 100%);
                    }
                    &::after {
                        background: radial-gradient(circle, rgba(#000, 0.25) 0%, rgba(#000, 1.0) 100%);
                        opacity: var(--cover-o);
                    }
                }
            }
        }
    }
}

#toppageNews {
    padding: 120px 0 100px;
    position: relative;
    @include maxwidth(768) {
        padding: 60px 0 80px;
    }
    .container {
        padding: 0 (120 / 1440 * 100%);
        box-sizing: border-box;
        position: relative;
        @include maxwidth(1400) {
            padding: 0 40px;
        }
        @include maxwidth(768) {
            padding: 0 20px;
        }
        .head {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 2rem;
            @include maxwidth(1024) {
                flex-direction: column;
                align-items:initial;
                justify-content: initial;
                gap: 30px;
            }
            .c-heading {
            }
            .news-terms {
                flex-basis: (975 / 1200 * 100%);
                padding-top: 45px;
                @include maxwidth(1024) {
                    flex: none;
                    padding-top: 0px;
                }
            }
        }
        .body {
            margin-top: 30px;
            @include maxwidth(768) {
                margin-top: 27px;
            }
            .news-headline {
                @include maxwidth(768) {
                    margin: 0 calc(50% - 50vw);
                    padding: 0 calc(50vw - 50%);
                    box-sizing: border-box;
                }
                .headline-items {
                    @media (min-width: 769px) {
                        display: block;
                    }
                }
                .headline-item {
                    @include maxwidth(768) {
                        width: (280 / 375 * 100vw);
                        height: auto;
                    }
                }
            }
            .c-buttons {
                margin-top: 50px;
                @include maxwidth(768) {
                    margin-top: 25px;
                }
                .c-button {
                    &__link {
                    }
                }
            }
        }
    }
}

// === Subpage

#subpageFirstview {
    color: $themetextcolor;
    padding: 266px (50 / 1440 *100%) 60px;
    box-sizing: border-box;
    position: relative;
    min-height: 420px;
    @include maxwidth(1200) {
        min-height: (420 / 1200 * 100vw);
    }
    isolation: isolate;
    @include maxwidth(768) {
        padding: 180px 20px 40px;
    }
    .docs {
        .c-heading {
            .en { color: $themetextcolor; }
        }
        .navgation {
            margin-top: 60px;
            display: flex;
            align-items: flex-end;
            flex-wrap: wrap;
            gap: 10px 15px;
            @include maxwidth(768) {
                margin-top: 30px;
                gap: 5px;
            }
            a {
                @include ff_ja(sans);
                @include f_all(14);
                font-weight: 500;
                line-height: 1.2;
                @include flex_centering;
                gap: 10px;
                padding: 0.5em 20px 0.5em 15px;
                box-sizing: border-box;
                min-height: 45px;
                color: $themetextcolor;
                background-color: $themecolor2;
                position: relative;
                transition: backgournd 300ms ease-in-out;

                @include maxwidth(768) {
                    @include f_all(13);
                    padding: 0.5em 15px 0.5em 10px;
                    min-height: 35px;
                    gap: 5px;
                }

                .arr {
                    display: inline-block;
                    width: 9px;
                    height: 5px;
                    @include maxwidth(768) {
                        width: 6px;
                        height: 4px;
                    }
                    margin-top: 0.1em;
                    position: relative;
                    &::before, &::after {
                        content: '';
                        display: inline-block;
                        width: 100%;
                        height: 100%;
                        background: url(../images/arrow-bottom-white.svg) center / contain no-repeat;
                        position: absolute;
                        inset: 0;
                        margin: auto;
                        transition: transform 300ms ease-in-out, opacity 300ms ease-in-out;
                    }
                    &::before { }
                    &::after {
                        opacity: 0;
                        transform: translate(0, -0.5em);
                    }
                }

                &:not(:has(> .arr))::before {
                    content: '';
                    flex-shrink: 0;
                    display: inline-block;
                    width: 9px;
                    height: 5px;
                    background: url(../images/arrow-bottom-white.svg) center / contain no-repeat;
                    margin-top: 0.1em;
                    @include maxwidth(768) {
                        width: 6px;
                        height: 4px;
                    }
                }

                @media (any-hover: hover) {
                    &:hover {
                        background-color: $accentcolor;
                        .arr::before {
                            opacity: 0;
                            transform: translate(0, 0.5em);
                        }
                        .arr::after {
                            opacity: 1;
                            transform: translate(0, 0);
                        }
                    }
                }

            }
        }
    }
    .image {
        position: absolute;
        inset: 0;
        z-index: -1;
        > img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        &::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(180deg, rgba(0, 0, 0, 0.50) 0%, rgba(0, 0, 0, 0.25) 100%);
        }
    }
}

#subpageTopicpath {
    @include ff_ja(sans);
    @include f_all(14);
    @include maxwidth(768) {
        @include f_all(12);
    }
    font-weight: 500;
    line-height: 2;
    margin: 20px (50 / 1440 * 100%);
    position: relative;
    @include maxwidth(768) {
        margin-left: 20px;
        margin-right: 20px;
    }
    .container {
        ul {
            li {
                display: inline-flex;
                align-items: center;
                &::after {
                    content: '';
                    flex-shrink: 0;
                    width: 14px;
                    height: 14px;
                    border-radius: 14px;
                    border: 1px solid;
                    background: url(../images/arrow-right-black.svg) center / 3px auto no-repeat;
                    margin: 0.10em 0.715em 0;
                }
                &:last-child::after { display: none; }
            }
        }
    }
}

#subpageContent {
    margin: 60px 0 100px;
    position: relative;
    @include maxwidth(768) {
        margin: 50px 0 80px;
    }
    .container {
        @include container(1080, 40);
        @include maxwidth(768) {
            margin-left: 20px;
            margin-right: 20px;
        }
        .default {
        }

        .single-detail {
            display: flex;
            align-items: flex-end;
            justify-content: flex-end;
            flex-wrap: wrap;
            gap: 1rem;
            margin-top: 20px;
            .terms {
                display: flex;
                align-items: center;
                flex-wrap: wrap;
                gap: 5px;
                .term {
                    text-decoration: none !important;
                    @include ff_ja(sans);
                    @include f_all(12);
                    font-weight: bold;
                    line-height: 1.2;
                    display: inline-flex;
                    align-items: center;
                    justify-content: center;
                    padding: 0.1em 1em 0.15em;
                    box-sizing: border-box;
                    min-height: 2.5em;
                    border-radius: 40px;
                    color: $themetextcolor;
                    background-color: $themecolor;
                    &::before {
                        content: '#';
                        margin-right: 0.15em;
                    }

                    @media (any-hover: hover) {
                        &:hover { opacity: 0.8; }
                    }
                }
            }
            .dete {
            }
        }

        .works-title {
            display: flex;
            flex-direction: column;
            gap: 30px;
            position: relative;
            @include maxwidth(768) {
                gap: 1rem;
            }
            .terms {
                @include ff_ja(sans);
                @include f_all(12);
                font-weight: bold;
                line-height: 1.2;
                display: flex;
                align-items: center;
                flex-wrap: wrap;
                gap: 10px;
                @include maxwidth(768) {
                    @include f_all(11);
                    gap: 5px;
                }
                .term {
                    text-decoration: none;
                    @include flex_centering;
                    padding: 0.5em 15px;
                    box-sizing: border-box;
                    min-height: 35px;
                    border-radius: 50px;
                    background: $themecolor;
                    color: $themetextcolor;
                    @include maxwidth(768) {
                        padding-left: 10px;
                        padding-right: 10px;
                        min-height: 30px;
                    }
                    @media (any-hover: hover) {
                        &:hover { opacity: 0.8; }
                    }
                }
            }
            .works-title-en{
                outline: 1px solid red;
            }
            h2 {
                font-size: clamp(24px, (32 / 1024 * 100vw), 32px);
                font-weight: bold;
                line-height: 1.3;
                color: $themecolor2;
            }
        }

        .works-image {
            > img {
                aspect-ratio: 1080 / 680;
            }
        }

        .works-group {
            padding: 30px;
            box-sizing: border-box;
            background-color: $themecolor3;
            position: relative;
            @include maxwidth(768) {
                padding: 20px 20px 25px;
            }
            &__inner {
                > *:not(:first-child) {
                    margin-top: 20px;
                    @include maxwidth(768) {
                        margin-top: 10px;
                    }
                }
            }

            .leadtext {
                color: $themecolor2;
                font-size: clamp(20px, (24 / 1024 * 100vw), 24px);
                font-weight: 500;
                line-height: 1.5;
            }
            .text {
                @include f_all(14);
                font-weight: 500;
                line-height: 1.8;
            }
        }

        .works-video {
            background-color: #000;
        }

        .works-gallery {
            --gap: 13px;
            display: flex;
            flex-wrap: wrap;
            gap: var(--gap);
            @include maxwidth(768) {
                --gap: 5px;
            }
            &-image {
                flex-basis: calc((100% - (var(--gap) * 3)) / 4);
                @include maxwidth(1024) {
                    flex-basis: calc((100% - (var(--gap) * 1)) / 2);
                }
                background-color: #000;
                a {
                }
                img {
                }

        	    &:has(> a.cbox_attached) {
        		    position: relative;
        			&::after {
        			    content: '';
        				position: absolute;
        				display: inline-block;
        				width: 20px;
        				height: 20px;
        				inset:  auto 10px 10px auto;
        				background: url(../images/icon-lightbox.svg) center / contain no-repeat;
        				@media (any-hover: hover) {
        				    opacity: 0;
        					transition: opacity 300ms;
        				}
        			}
        			@media (any-hover: hover) {
        			    &:hover {
                            opacity: 0.85;
        					&::after { opacity: 1; }
        				}
        			}
        		}

            }
        }

        .works-headline-title {
            all: unset;
            display: block;
            color: $themecolor2;
            font-size: clamp(20px, (24 / 1024 * 100vw), 24px);
            font-weight: 500;
            line-height: 1.3;
            text-align: center;
            margin-top: 80px;
            margin-bottom: 20px;

            &::before { display: none; }
        }

        .works-headline.conn-headline {
            margin-top: 20px;
            .headline-items {
                justify-content: center;
            }
        }

        .works-table {
            table {
                td:first-child {
                    // width: 260px;
                }
                td {
                }
            }
        }


    }
}

#subpageNavigation {
    display: flex;
    gap: 0px;
    flex-wrap: wrap;
    margin-bottom: 80px;
    @include maxwidth(768) {
        margin-bottom: 60px;
    }
    position: relative;
    @include maxwidth(500) {
        gap: 5px;
    }
    a {
        color: $basetextcolor;
        @include f_all(16);
        font-weight: 500;
        line-height: normal;
        @include flex_centering;
        padding: 0.45em 2.18em 0.45em 3.5em;
        box-sizing: border-box;
        background-color: $basecolor;
        height: 100%;
        min-height: 2.5em;
        border-bottom: 2px solid mix($basetextcolor, #fff, 10%);
        position: relative;

        @include maxwidth(500) {
            @include f_all(15);
            color: $themetextcolor;
            // background-color: #A6B6CD;
            background-color: $themecolor2;
            border-bottom: none;
            border-radius: 100px;
            width: 100%;
        }

        &::after {
            content: '';
            display: inline-block;
            height: 2px;
            background-color: $themecolor2;
            position: absolute;
            inset: auto 0 -2px 0;
            transform: scaleX(0);
            transform-origin: right center;
            transition: transform 200ms;
            @include maxwidth(500) {
                display: none;
            }
        }

        .arr {
            display: inline-block;
            position: absolute;
            inset: 0 auto 0 15px;
            margin: auto;
            width: 14px;
            height: 14px;
            border-radius: 14px;
            background-color: $basetextcolor;
            @include maxwidth(500) {
                background-color: transparent;
            }
            &::before,
            &::after  {
                content: '';
                display: block;
                width: 7px;
                height: 4px;
                background: url(../images/arrow-bottom-white.svg) center / contain no-repeat;
                position: absolute;
                inset: 0;
                margin: auto;
                transition: opacity 300ms ease-in-out, transform 300ms ease-in-out;
            }
            &::before {  }
            &::after {
                opacity: 0;
                transform: translate(0, -0.75em);
            }
        }

        @media (any-hover: hover) and (min-width: 501px) {
            &:hover {
                &::after {
                    transform: scaleX(1);
                    transform-origin: left center;
                }
                .arr { background-color: $themecolor2; }
            }
        }
        @media (any-hover: hover) and (max-width: 500px) {
            &:hover { background-color: $themecolor2; }
        }
        @media (any-hover: hover) {
            &:hover {
                .arr::before {
                    opacity: 0;
                    transform: translate(0, 0.75em);
                }
                .arr::after {
                    opacity: 1;
                    transform: translate(0, 0);
                }
            }
        }

    }
}

.pager {
    text-align: center;
    margin: 60px 0 40px;
    @include ff_ja(sans);
    @include f_all(14);
    font-weight: 500;
    a,
    span {
        display: inline-block;
        margin: 0 0 0.25em 0.45em;
        min-width: 3em;
        padding: 0.95em 1em 1em;
        box-sizing: border-box;
        background-color: $themecolor3;
        border-radius: 50px;
    }
    .current {
        color: $themetextcolor;
        background-color: $themecolor;
    }
}

div.monthly_archive_link {
    @include container(800, 10);
    margin-top: 50px;
    @include ff_ja(sans);
    @include f_all(14);
    font-weight: 500;
    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;
            }
        }
    }
}

// ライトボックス スタイル変更
.wp-lightbox-overlay {
    .scrim {
        background-color: rgba(#000, 0.6) !important;
        background-color: transparent !important;
        position: relative;
        isoaltion: isoalte;

        &::before {
            content: '';
            position: absolute;
            inset: 0;
            z-index: -1;
            background-color: rgba(#000, 0.6);
            backdrop-filter: blur(3px);
        }

    }
}
#cboxOverlay {
    opacity: 1 !important;
    background-color: transparent !important;
    isolation: isolate;
    &::before {
        content: '';
        position: absolute;
        inset: 0;
        z-index: -1;
        background-color: rgba(#000, 0.6);
        backdrop-filter: blur(3px);
    }
}


// 修繕船についてページで出力
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
    isolation: isolate;

    &::before {
        content: '';
        position: fixed;
        z-index: -1;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
    }

    opacity: 1;
    visibility: visible;
    transition: opacity 200ms;

    &[hidden] {
        opacity: 0;
        visibility: hidden;

        .lightbox__inner {
            opacity: 0;
            transform: translate(0, 20px);
        }
    }

    &__inner {
        position: relative;
        width: #{'min(90vw, 900px)'};
        margin: auto;
        padding: 20px;
        @include maxwidth(900) {
            padding: (20 / 900 * 100%);
        }
        @include maxwidth(768) {
            padding: 15px;
        }
        box-sizing: border-box;
        background: #fff;

        opacity: 1;
        transform: translate(0, 0);
        transition: opacity 200ms, transform 200ms;

    }

    &__img { display: block; width: 100%; height: auto; }

    &__close {
        @include flex_centering;
        flex-wrap: wrap;
        gap: 10px;
        margin: 16px 0 0 auto;
        padding: 10px 16px 8px;
        border: 1px solid #ddd;
        background: #fff;
        cursor: pointer;
        position: relative;

        @include maxwidth(768) {
            margin-right: auto;
        }

        &::before {
            content: '×';
            display: inline-block;
            margin-top: -0.25em;
        }
    }

    &__body {
        margin-top: 1rem;

        &[hidden] { display: none; }

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

        p {
            margin: 0 0 4px;
            @include f_all(16);
            @include maxwidth(768) {
                @include f_all(14);
            }
            line-height: normal;
            > strong {
                font-size: 1.2em;
                font-weight: bold;
            }
            &:has(> .lightbox__caption) { margin-bottom: 8px; }
        }
    }
    &__caption {
        @include ff_ja(sans);
        @include f_all(12);
        @include maxwidth(768) {
            @include f_all(11);
        }
        font-weight: bold;
        line-height: normal;
        color: $themetextcolor;
        padding: 0.1em 1em 0.15em;
        box-sizing: border-box;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background-color: $themecolor;
        min-height: 2.5em;
        border-radius: 10em;
        position: relative;
    }
}
