// スタイルシート common

@charset "utf-8";

@import "mixin";

html { scroll-behavior: smooth; }

body {
    @include root;
    position: relative;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
}

img,
video {
    max-width: 100%;
    height: auto;
}

:where(figure) { margin: 0; }

// 改行
br {
    &.sp {
        @media screen and (min-width: 769px) { display: none; }
    }
    &.pc {
        @include maxwidth(768) { display: none; }
    }
}

.default {
    @include contentdefault;
    @include eachcss;
}

@mixin mosquito () {
    // background-color: rgba(0, 0, 0, 0.10);
    background-image: radial-gradient(
        rgba($basetextcolor, 1) 30%, transparent 31%),
        radial-gradient(rgba($basetextcolor, 1) 30%,
        transparent 31%
    );
    background-size: 3px 3px;
    background-position: 0 0, 3px 3px;
}

// === Components

#header {
    color: $themetextcolor;
    position: relative;
    .toppage & {
        position: absolute;
        inset: 0 0 auto 0;
    }
    .subpage & { background-color: $themecolor; }
    z-index: 20;
    padding: 23px 0 18px (40 / 1440 * 100vw);
    @include maxwidth(768) { padding: 23px 20px 18px; }
    @include maxwidth(360) { padding-left: 10px; padding-right: 10px; }
    box-sizing: border-box;
    .container {
        display: flex;
        align-items: center;
        .toppage & { align-items: flex-end; }
        .subpage & {
            @include maxwidth(1200) { align-items: flex-start; }
        }
        justify-content: space-between;
        gap: 3rem;
        .l-left {
            .sitename {
                display: inline-flex;
                flex-direction: column;
                gap: 20px;
                .toppage & {
                    gap: 13px;
                    position: absolute;
                    inset: 45px auto auto (40 / 1440 * 100vw);
                    @include maxwidth(1024) { inset: 25px auto auto (40 / 1440 * 100vw); }
                    @include maxwidth(768) { inset: 25px auto auto 20px; }
                    flex-direction: row;
                }
                .outline {
                    @include f_all(12);
                    @include maxwidth(768) { @include f_all(10); }
                    font-weight: bold;
                    line-height: 1.2;
                    .toppage & {
                        @include f_all(16);
                        @include maxwidth(1024) { @include f_all(13); }
                        @include maxwidth(360) { @include f_all(12); }
                        line-height: 1;
                        display: inline-block;
                        width: 1.2em;
                        writing-mode: vertical-rl;
                        letter-spacing: 0.05em;
                        margin-top: 1px;
                    }
                }
                img {
                    .toppage & {
                        width: 128px;
                        @include maxwidth(1024) { width: 100px; } 
                        @include maxwidth(360) { width: 95px; } 
                    }
                    .subpage & {
                        width: 236px;
                        @include maxwidth(768) { width: 210px; }
                    }
                }
            }
        }
        .l-right {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            .links {
                padding-right: 40px;
                box-sizing: border-box;
                @include maxwidth(1200) { padding-right: 100px; }
                @include maxwidth(1024) { display: none !important; }
                .toppage & {
                    overflow: hidden;
                    .link {
                        opacity: 0;
                        transform: translate(0, 100%);
                        transition: 800ms 400ms ease;
                    }
                }
                .toppage.loaded & {
                    .link {
                        opacity: 1;
                        transform: translate(0, 0);
                    }
                }
                .link {
                    &.emuzu {
                        @include ff_en;
                        @include f_all(14);
                        @include maxwidth(768) { @include f_all(12); }
                        font-weight: bold;
                        letter-spacing: 0.03em;
                        box-sizing: border-box;
                        display: inline-flex;
                        align-items: flex-end;
                        &::before {
                            content: "";
                            display: inline-block;
                            width: 28px;
                            aspect-ratio: 28 / 19;
                            margin-right: 13px;
                            background: url(../images/logo-emuzu-white.svg) no-repeat center / contain;
                            @include maxwidth(768) {
                                width: 24px;
                                margin-right: 8px;
                            }
                        }
                        @media (any-hover: hover) {
                            &:hover { opacity: 0.8; }
                        }
                    }
                }
            }
            .menu {
                margin-top: 18px;
                padding: 9px 40px 9px 30px;
                box-sizing: border-box;
                color: $themetextcolor;
                background-color: $themecolor;
                position: relative;
                @include maxwidth(1200) { display: none !important; }
                .toppage & {
                    overflow: hidden;
                    clip-path: inset(0 0 0 100%);
                    transition: 600ms ease;
                }
                .toppage.loaded & {
                    clip-path: inset(0 0 0 0);
                }
                .subpage & {
                    z-index: 0;
                    &::before {
                        content: "";
                        display: block;
                        position: absolute;
                        inset: 0;
                        z-index: -1;
                        background: rgba($themecolor, 0.90);
                        mix-blend-mode: multiply;
                    }
                }
                ul {
                    display: flex;
                    align-items: center;
                    gap: 25px;
                    li {
                        @include f_all(15);
                        font-weight: bold;
                        line-height: 1.5;
                        a {
                            &.form {
                                @include f_all(13);
                                display: inline-flex;
                                align-items: center;
                                justify-content: center;
                                min-width: 160px;
                                min-height: 45px;
                                padding: 0.5em calc(1em + 2px) 0.5em 1em;
                                box-sizing: border-box;
                                color: $themecolor;
                                background-color: $themecolor2;
                                &::before {
                                    content: "";
                                    display: inline-block;
                                    width: 12px;
                                    height: 10px;
                                    margin-right: 7px;
                                    background: url(../images/icon-mail-color-s.svg) no-repeat center / contain;
                                }
                            }

                            @media (any-hover: hover) {
                                &:hover { opacity: 0.8; }
                            }
                        }
                    }
                }
            }
        }
    }
}

// === Global Navigation Toggle Button
#gnavToggleContainer {
    position: fixed;
    top: 20px;
    .admin-bar & { top: 52px; }
    right: 30px;
    @include maxwidth(768) { right: 10px; }
    z-index: 101;
    @media screen and (min-width: 1201px) {
        pointer-events: none;
        opacity: 0;
        transform: translateX(100%);
    }
    transition: 300ms ease;
    .header_scrollout & {
        pointer-events: auto;
        opacity: 1;
        transform: translateX(0%);
    }
}

#gnavToggle {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    @include maxwidth(768) {
        width: 45px;
        height: 45px;
    }
    // background-color: $themecolor;
    background-color: $themecolor2;
    border: none;
    position: relative;
    transition: 300ms ease;
    
    &>span {
        display: block;
        width: 20px;
        height: 1px;
        background-color: $themetextcolor;
        position: absolute;
        transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1), opacity 300ms ease, width 300ms ease;
        
        &:nth-child(1) {
            transform: translateY(-7px);
        }
        &:nth-child(2) {
        }
        &:nth-child(3) {
            transform: translateY(7px);
        }
    }
    
    // Hover state
    @media (any-hover: hover) {  }
    
    // Open state - X icon
    .menu_open & {
        background-color: $accentcolor;
        &>span {
            height: 2px;
            &:nth-child(1) {
                width: 22px;
                transform: rotate(45deg);
            }
            &:nth-child(2) {
                width: 0;
                opacity: 0;
            }
            &:nth-child(3) {
                width: 22px;
                transform: rotate(-45deg);
            }
        }
    }
}

// === Global Navigation Fullscreen Overlay
#gnavContainer {
    position: fixed;
    inset: 0;
    z-index: 100;
    // background: url(../images/mosquito.svg) repeat center / contain $themecolor;
    @include mosquito;
    background-color: $themecolor;
    opacity: 0;
    visibility: hidden;
    transition: opacity 400ms ease, visibility 400ms ease;
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    &::-webkit-scrollbar { display: none; }
    
    // Open state
    .menu_open & {
        opacity: 1;
        visibility: visible;
        
        &::before { opacity: 1; }
        &::after { height: 60%; }
    }    
}

#gnav {
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 40px;
    @include maxwidth(768) {
        padding-left: 20px;
        padding-right: 20px;
    }
    box-sizing: border-box;
    position: relative;
    
    .container {
        width: 100%;
        max-width: 480px;
    }

    .gnav-menu {
        // Counter for numbering
        counter-reset: gnav-menu-counter;
        
        ul {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0;
            
            li {
                counter-increment: gnav-menu-counter;
                width: 100%;
                text-align: center;
                opacity: 0;
                transform: translateX(-30px);
                
                .menu_open & {
                    opacity: 1;
                    transform: translateX(0);
                    transition: opacity 500ms ease, transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
                    // Staggered animation with cubic-bezier
                    @for $i from 1 through 7 {
                        &:nth-child(#{$i}) {
                            transition-delay: #{150 + $i * 60}ms;
                        }
                    }
                }
                
                a {
                    color: $themetextcolor;
                    @include f_all(20);
                    @include maxwidth(768) { @include f_all(18); }
                    font-weight: bold;
                    letter-spacing: 0.08em;
                    padding: 0.75rem 40px 1rem;
                    @include flex_centering;
                    flex-direction: column;
                    gap: 0.5em;
                    position: relative;
                    transition: all 300ms ease;
                    
                    // Number prefix
                    &::before {
                        content: counter(gnav-menu-counter, decimal-leading-zero);
                        @include ff_en;
                        @include f_all(12);
                        @include maxwidth(768) { @include f_all(11); }
                        font-weight: 500;
                        color: $themecolor2;
                        flex-shrink: 0;
                        opacity: 0.8;
                        transition: opacity 300ms ease, transform 300ms ease;
                    }
                    
                    // Hover background slide
                    &::after {
                        content: "";
                        position: absolute;
                        inset: 0;
                        background-color: rgba($themecolor2, 0.1);
                        transform: scaleY(0);
                        transform-origin: center top;
                        transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
                        z-index: -1;
                    }
                    
                    @media (any-hover: hover) {
                        &:hover {
                            color: $themecolor2;
                            &::before { opacity: 1; }
                            &::after { transform: scaleY(1); }
                        }
                    }
                    
                    // Contact button style
                    &.form {
                        display: inline-flex;
                        flex-direction: row;
                        margin-top: 30px;
                        padding: 20px 60px;
                        color: $themecolor;
                        background-color: $themecolor2;
                        @include f_all(15);
                        position: relative;
                        overflow: hidden;
                        @include maxwidth(768) {
                            @include f_all(13);
                            margin-top: 20px;
                        }
                        
                        &::before {
                            content: "";
                            opacity: 1;
                            display: inline-block;
                            width: 16px;
                            height: 12px;
                            background: url(../images/icon-mail-color.svg) no-repeat center / contain;
                        }

                        &::after { display: none; }
                        
                        @media (any-hover: hover) {
                            &:hover { opacity: 0.8; }
                        }
                    }
                }
            
            }
        }
    }
}

// Shine animation for contact button
@keyframes shineEffect {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

#mainVisual {
    position: relative;
    .container {
        .slideshow {
            .swiper-wrapper {
                .swiper-slide {
                    height: 100vh;
                    height: 100svh;
                    min-height: 680px;
                    position: relative;
                    
                    .admin-bar & {
                        height: calc(100vh - 32px);
                        height: calc(100svh - 32px);
                    }

                    &>img {
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                    }
                }
            }
            &::after {
                content: "";
                pointer-events: none;
                position: absolute;
                inset: 0;
                z-index: 1;
                // background: url(../images/mosquito.svg) repeat center center / contain rgba(0, 0, 0, 0.15);
                @include mosquito;
            }
        }
        .overlay {
            color: $themetextcolor;
            line-height: 1.2;
            text-align: right;
            position: absolute;
            inset: auto (32 / 1440 * 100vw) 92px (32 / 1440 * 100vw);
            @include maxwidth(768) { inset: auto (20 / 768 * 100vw) 75px (20 / 768 * 100vw); }
            z-index: 1;
            display: inline-flex;
            flex-direction: column;
            gap: 4px;
            .text-en {
                font-size: clamp(24px, (64 / 1440 * 100vw), 64px);
                // @include maxwidth(360) { font-size: 19px; }
                --opacity: 0;
                --scale: 0;
                .loaded & {
                    --opacity: 1;
                    --scale: 1;
                }
                .char {
                    display: inline-block;
                    min-width: 0.25em;
                    transform: scale(var(--scale, 0));
                    opacity: var(--opacity, 0);
                    transition: opacity 800ms cubic-bezier(0.77, 0, 0.175, 1), transform 800ms cubic-bezier(0.39, 0.575, 0.565, 1);
                    transition-delay: calc(0.016s * var(--char-idx));
                }
            }
            .text {
                color: $themecolor2;
                font-size: clamp(14px, (20 / 1200 * 100vw), 20px);
                @include maxwidth(360) { font-size: 12px; }
                font-weight: bold;
                opacity: 0;
                transform: translate(0, -1em);
                transition: 800ms 600ms ease;
                .loaded & {
                    opacity: 1;
                    transform: translate(0, 0);
                }
            }
        }
        .scroll-down {
            color: $themetextcolor;
            position: absolute;
            inset: auto 0 -45px 0;
            @include maxwidth(768) { inset: auto 0 -35px 0; }
            @include flex_centering;
            z-index: 1;
            &__link {
                display: flex;
                flex-direction: column;
                align-items: center;
                gap: 10px;
                &>.t {
                    @include f_all(14);
                    @include maxwidth(768) { @include f_all(11); }
                    font-weight: bold;
                    text-transform: uppercase;
                    display: inline-flex;
                    align-items: center;
                    justify-content: center;
                    padding: 0 14px;
                    @include maxwidth(768) { padding: 0 10px; }
                    box-sizing: border-box;
                    color: $themecolor;
                    background-color: $themecolor2;
                    min-height: 1.57143em;
                    opacity: 0;
                    transition: opacity 800ms 1200ms ease;
                    .loaded & { opacity: 1; }
                }
                &>.b {
                    display: inline-block;
                    width: 1px;
                    height: 0;
                    transition: height 800ms 800ms ease;
                    .loaded & {
                        height: 80px;
                        @include maxwidth(768) { height: 60px; }
                    }
                    background-color: $themecolor2;
                    position: relative;
                    &::before {
                        content: "";
                        display: inline-block;
                        width: 8px;
                        height: 8px;
                        background-color: $themecolor2;
                        position: absolute;
                        inset: -2px auto auto calc(50% - 1px);
                        transform: rotate(-45deg) translateX(-50%);
                    }
                }
            }
        }
    }
}

#footer {
    background: linear-gradient(180deg, $themecolor 0%, #000 100%);
    position: relative;
    &::after {
        content: "";
        pointer-events: none;
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba($themecolor, 0.60) 0%, rgba($basetextcolor, 0.60) 100%);
        mix-blend-mode: multiply;
    }
    #footerContact {
        color: $themetextcolor;
        padding: 60px 0 50px;
        @include maxwidth(768) { padding: 50px 0 40px; }
        position: relative;
        .bgimage {
            position: absolute;
            inset: 0;
            &>img {
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
        }
        .container {
            @include container(1320, 40);
            z-index: 5;
            @include maxwidth(768) {
                margin-left: 20px;
                margin-right: 20px;
            }
            .head {
                .c-heading { color: currentcolor; }
            }
            .body {
                margin-top: 38px;
                @include maxwidth(768) { margin-top: 30px; }
                .contact-buttons {
                    display: flex;
                    flex-wrap: wrap;
                    gap: 4px 20px;
                    @include maxwidth(1024) {
                        flex-direction: column;
                        &>* { flex: none !important; }
                    }
                }
                .contact-button {
                    flex-basis: calc(50% - 10px);
                    &__link {
                        color: $themecolor;
                        @include f_all(20);
                        @include maxwidth(768) { @include f_all(14); }
                        @include maxwidth(360) { @include f_all(12); }
                        font-weight: bold;
                        @include flex_centering;
                        flex-direction: column;
                        padding: 10px;
                        box-sizing: border-box;
                        min-height: 180px;
                        @include maxwidth(768) { min-height: 120px; }
                        background-color: $themecolor2;
                        position: relative;
                        .title {
                            display: inline-flex;
                            align-items: center;
                            padding: 0.3em 0;
                            gap: 10px;
                            &::after {
                                content: "";
                                flex-shrink: 0;
                                display: inline-block;
                                width: 6px;
                                height: 10px;
                                background: url(../images/arrow-color.svg) no-repeat center center / contain;
                                margin-top: 0.15em;
                            }
                        }
                        &.tel {
                            color: $themetextcolor;
                            background-color: $themecolor;
                            gap: 5px;
                            .num {
                                display: inline-block;
                                @include f_all(40);
                                @include maxwidth(768) { @include f_all(28); }
                                font-weight: bold;
                                padding-left: 35px;
                                background: url(../images/icon-tel-white.svg) no-repeat left top 70% / 25px auto;
                                @include maxwidth(768) {
                                    padding-left: 30px;
                                    background-size: 20px auto;
                                }
                            }
                            .time {
                                @include f_all(18);
                                @include maxwidth(768) { @include f_all(14); }
                                font-weight: 500;
                                .label {
                                    @include f_all(16);
                                    @include maxwidth(768) { @include f_all(12); }
                                    margin-right: 0.65em;
                                }
                            }
                        }
                        &.form {
                            .title {
                                padding-left: 33px;
                                @include maxwidth(768) { padding-left: 30px; }
                                background: url(../images/icon-mail-color.svg) no-repeat left top 70% / 22px auto;
                            }
                        }

                        @media (any-hover: hover) {
                            &:hover { filter: brightness(0.90); }
                        }
                    }
                }
            }
        }
    }
    #footerGoogleMap {
        position: relative;
        z-index: 5;
        height: 320px;
        @include maxwidth(768) { height: 250px; }
        background-color: #555555;
        @include flex_centering;
        overflow: hidden;
        iframe {
            width: 100%;
            height: calc(100% + 400px);
            object-fit: cover;
            padding-top: 90px;
            @include maxwidth(768) { padding-top: 80px; }
        }
        .logo {
            position: absolute;
            inset: 0;
            @include flex_centering;
            a {
                @include flex_centering;
                // width: 100px;
                // aspect-ratio: 1;
                width: 180px;
                @include maxwidth(768) { width: 160px; }
                aspect-ratio: 180 / 80;
                // height: 80px;
                padding: 10px 20px;
                box-sizing: border-box;
                background-color: $themecolor;
                position: relative;
                &::after {
                    content: "";
                    display: block;
                    width: 10px;
                    height: 8px;
                    background-color: $themecolor;
                    clip-path: polygon(50% 100%, 0 0, 100% 0);
                    position: absolute;
                    inset: auto 0 -8px 0;
                    margin: auto;
                }
                
                @media (any-hover: hover) {
                    &:hover {
                        &, &::after { background-color: mix($themecolor, $basecolor, 0.9); }
                    }
                }
            }
        }
    }
    #footerSitemap {
        color: $themetextcolor;
        padding: 65px 0 30px;
        @include maxwidth(768) { padding: 50px 0 25px; }
        position: relative;
        z-index: 5;
        .container {
            @include container(1360, 40);
            display: flex;
            flex-wrap: wrap;
            gap: 0 2rem;
            @include maxwidth(1024) {
                flex-direction: column;
                &>* { flex: none !important; }
            }
            @include maxwidth(768) {
                margin-left: 20px;
                margin-right: 20px;
            }
            .description {
                @include maxwidth(1024) { text-align: center; }
                .sitename {
                    img {
                        width: 220px;
                        @include maxwidth(768) { width: 200px; }
                    }
                }
                .address {
                    @include f_all(13);
                    font-weight: 500;
                    line-height: 1.5;
                    margin-top: 10px;
                }
            }
            .menu {
                flex: 1;
                @include f_all(14);
                font-weight: 500;
                line-height: 2;
                display: flex;
                justify-content: flex-end;
                gap: 60px;
                @include maxwidth(1024) {
                    text-align: center;
                    margin-top: 30px;
                    flex-direction: column;
                    justify-content: initial;
                    align-items: center;
                    gap: 15px;
                }
                .item {
                    ul {
                        &:not(:first-child) {
                            margin-top: 2em;
                            @include maxwidth(1024) { margin-top: 15px; }
                        }
                        li {
                            a {
                                @media (any-hover: hover) {
                                    &:hover { filter: opacity(0.80); }
                                }
                            }
                        }
                    }
                }
            }
            .copyright {
                flex-basis: 100%;
                margin-top: 40px;
                text-align: right;
                @include maxwidth(1024) { text-align: center; }
                @include maxwidth(768) { margin-top: 30px; }
                small {
                    @include f_all(12);
                    @include maxwidth(768) { @include f_all(11); }
                    line-height: 1.8;
                }
            }
        }
    }
}

.c-heading {
    color: $themecolor;
    font-size: clamp(48px, (60 / 1200 * 100vw), 60px);
    font-weight: 300;
    text-align: center;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.33333em;

    &::before {
        content: "";
        flex-shrink: 0;
        display: block;
        width: 8px;
        height: 8px;
        background-color: $themecolor2;
        margin: 0 12px;
        transform: rotate(-45deg);
    }
}

.c-buttons {
    @include flex_centering;
    flex-wrap: wrap;
    gap: 10px;
}

.c-button {
    display: inline-block;
    @include maxwidth(768) { width: 100%; }
    &__link {
        @include f_all(14);
        font-weight: 500;
        line-height: 1.2;
        @include flex_centering;
        min-width: 250px;
        @include maxwidth(768) { min-width: initial; }
        min-height: 45px;
        color: $themecolor;
        background-color: $themecolor2;
        position: relative;
        transition: 300ms ease;

        @media (any-hover: hover) {
            &:hover { transform: scale(0.955); }
        }

        &[data-txt] {
            &::before, &::after {
                content: attr(data-txt);
                pointer-events: none;
                position: absolute;
                inset: 0;
                @include flex_centering;
                opacity: 0;
            }
            &::before { transform: translateX(-1.2em); }
            &::after { transform: translateX(1.2em); }
            @media (any-hover: hover) {
                &:hover {
                    &::before, &::after {
                        opacity: 1;
                        transform: translateX(0);
                        transition: 300ms ease;
                    }
                }
            }
        }
    }
}

.term-list {
    @include f_all(14);
    font-weight: bold;
    line-height: 1.2;
    position: relative;
    .subpage & { margin-bottom: 30px; }
    ul {
        .subpage & {
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
        }
        li {
            .subpage & {
                @include maxwidth(768) {
                    flex-basis: calc((100% - (5px * 1)) / 2);
                    &:first-child { flex-basis: 100%; }
                    a { min-width: initial !important;  }
                }
            }
            a {
                @include flex_centering;
                min-width: 160px;
                min-height: 40px;
                padding: 0.5em 1em;
                box-sizing: border-box;
                position: relative;

                color: $themecolor;
                background-color: $themetextcolor;

                .subpage & { background-color: mix($themecolor, $themetextcolor, 0.1); }
                
                &.current {
                    color: $themetextcolor;
                    background-color: $basetextcolor;
                }

                @media (any-hover: hover) {
                    &:hover { filter: brightness(0.90); }
                }
            }
        }
    }
}

.works-headline {
    position: relative;
    .headline-items {
        .subpage & {
            --works-headline-col-gap: 20px;
            @include maxwidth(1024) { --works-headline-col-gap: 10px; }
            display: flex;
            flex-wrap: wrap;
            gap: 40px var(--works-headline-col-gap);
            @include maxwidth(768) { row-gap: 30px; }
        }
        .headline-item {
            .subpage & {
                flex-basis: calc((100% - (var(--works-headline-col-gap) * 3)) / 4);
                @include maxwidth(768) { flex-basis: calc((100% - (var(--works-headline-col-gap) * 2)) / 3); }
                @include maxwidth(768) { flex-basis: calc((100% - (var(--works-headline-col-gap) * 1)) / 2); }
            }
            &__link {
                &>* { display: block; }
                @media (any-hover: hover) {
                    &:hover {
                        .img > img { transform: scale(1.1); }
                    }
                }
                .img,.image {
                    aspect-ratio: 1 / 1;
                    padding-top: 100%;
                    box-sizing: border-box;
                    overflow: hidden;
                    position: relative;
                    &>img {
                        position: absolute;
                        inset: 0;
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                        transition: 300ms ease;
                    }
                }
                .docs {
                    padding-top: 10px;
                    &>* { display: block; }
                    .title {
                        @include f_all(16);
                        @include maxwidth(768) { @include f_all(14); }
                        .subpage & {
                            @include f_all(16);
                            @include maxwidth(768) { @include f_all(14); }
                        }
                        font-weight: bold;
                        line-height: 1.3;
                        text-transform: capitalize;
                    }
                    .terms {
                        @include f_all(12);
                        font-weight: 500;
                        margin-top: 10px;
                        display: flex;
                        flex-wrap: wrap;
                        gap: 0.35em 0.5em;
                        .term {
                            display: inline-flex;
                            align-items: center;
                            justify-content: center;
                            padding: 0.1em 10px 0.2em;
                            box-sizing: border-box;
                            color: $themetextcolor;
                            background-color: $themecolor;
                            min-height: 20px;
                            position: relative;
                        }
                    }
                }

                &.empty {
                    pointer-events: none;
                    opacity: 0.5;
                }
            }
        }
    }
}

.newstopics-headline {
    position: relative;
    .headline-items {
        .headline-item {
            border-bottom: 1px solid #D9D9D9;
            &:last-child { border-bottom: none; }
            position: relative;
            &__link {
                display: flex;
                align-items: center;
                flex-wrap: wrap;
                gap: 0.5em 20px;
                padding: 27px calc(36px + 1em) 26px 30px;
                @include maxwidth(768) { padding: 15px 30px 15px 10px; }
                box-sizing: border-box;
                transition: background-color 300ms ease;
                .date {
                    flex-shrink: 0;
                    @include f_all(16);
                    font-weight: 500;
                    @include maxwidth(768) { @include f_all(14); }
                }
                .terms {
                    @include f_all(12);
                    font-weight: 500;
                    display: flex;
                    flex-wrap: wrap;
                    gap: 0.5em;
                    .term {
                        flex-shrink: 0;
                        display: inline-flex;
                        align-items: center;
                        justify-content: center;
                        padding: 0.1em 10px 0.15em;
                        box-sizing: border-box;
                        color: $themetextcolor;
                        background-color: $themecolor;
                        min-height: 20px;
                        position: relative;
                    }
                }
                .title {
                    @include f_all(15);
                    font-weight: 500;
                    line-height: 1.8;
                    @include maxwidth(768) {
                        @include f_all(14);
                        flex-basis: 100%;
                    }
                }
                &::after {
                    content: "";
                    display: block;
                    width: 6px;
                    height: 10px;
                    background: url(../images/arrow-color.svg) no-repeat center / contain;
                    position: absolute;
                    inset: 0 30px 0 auto;
                    @include maxwidth(768) { inset: auto 10px 21px auto; }
                    margin: auto;
                    transition: transform 300ms ease;
                }

                @media (any-hover: hover) {
                    &:hover {
                        background-color: rgba($themecolor, 0.1);
                        &::after { transform: translateX(4px); }
                    }
                }

            }
        }
    }
}


// === Toppage

@mixin split_text_anime() {
    &.js-target {
        --opacity: 0;
        --scale: 0;
        &.act {
            --opacity: 1;
            --scale: 1;
        }
        .char {
            display: inline-block;
            transform: scale(var(--scale, 0));
            opacity: var(--opacity, 0);
            transition: opacity 800ms cubic-bezier(0.77, 0, 0.175, 1), transform 800ms cubic-bezier(0.39, 0.575, 0.565, 1);
            transition-delay: calc(0.016s * var(--char-idx));
        }
    }
}

#toppageAbout {
    position: relative;
    .sticky-wrapper {
        position: relative;
        .spacer { height: 100vh; }
        .sticky-content {
            position: sticky;
            inset: 0 auto auto 0;
            height: 100vh;
        }
        .sticky-container {
            position: relative;
            margin-top: -100vh;
        }
    }
    .bgimage {
        position: absolute;
        inset: 0;
        &>img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        &::after {
            content: "";
            pointer-events: none;
            position: absolute;
            inset: 0;
            background: linear-gradient(90deg, rgba(0, 0, 0, 0.40) 0%, rgba(0, 0, 0, 0.60) 100%);
            backdrop-filter: blur(5px);
        }
    }
    .container {
        color: $themetextcolor;
        padding: 420px 0 240px;
        @include maxwidth(768) { padding: 360px 0 210px; }
        @include maxwidth(360) { padding: 320px 0 180px; }
        position: relative;
        z-index: 1;
        .image {
            position: absolute;
            box-sizing: border-box;
            z-index: 0;
            @include maxwidth(768) {
                width: calc(100% - 20px) !important;
                padding-bottom: 10px !important;
            }
            @include maxwidth(360) {
                width: calc(100% - 10px) !important;
            }
            &.js-target {
                overflow: hidden;
                > img { transform: scale(1.15); }
                &.act {
                    > img {
                        clip-path: inset(0 0 0 0) !important;
                        transform: scale(1);
                    }
                }
            }
            &1 {
                inset: 40px 0 auto auto;
                width: (1010 / 1440 * 100vw);
                padding-left: (60 / 1440 * 100vw);
                padding-bottom: 20px;
                @include maxwidth(768) { padding-left:20px; }

                &.js-target {
                    >img { clip-path: inset(0 0 0 100%); }
                    &.act {
                    }
                }
            }
            &2 {
                inset: auto auto -115px 0;
                width: (980 / 1440 * 100vw);
                padding-right: (60 / 1440 * 100vw);
                padding-bottom: 15px;
                @include maxwidth(768) {
                    padding-right:20px;
                    inset: auto auto -75px 0;
                }

                &.js-target {
                    >img { clip-path: inset(0 100% 0 0); }
                    &.act {
                    }
                }
            }
            &::before {
                content: "";
                position: absolute;
                inset: (70 / 1440 * 100vw) 0 0 0;
                z-index: -1;
                background-color: $themecolor;
            }
            &>img {
                width: 100%;
                height: 280px;
                @include maxwidth(768) { height: 240px; }
                @include maxwidth(360) { height: 210px; }
                object-fit: cover;
                transition: 800ms ease;

            }
        }
        .docs {
            text-align: center;
            margin: 0 40px;
            position: relative;
            @include maxwidth(768) { margin: 0 20px; }
            .docs-head {
                .c-heading { color: currentcolor; }
            }
            .docs-body {
                margin-top: 30px;
                @include maxwidth(768) { margin-top: 20px; }
                .leadtext {
                    color: $themecolor2;
                    font-size: clamp(32px, (48 / 1440 * 100vw), 48px);
                    // @include maxwidth(360) { font-size: 28px; }
                    @include maxwidth(375) { font-size: clamp(20px, (32 / 375 * 100vw), 32px); }
                    line-height: 1.3;

                    @include split_text_anime();
                }
                .text {
                    @include f_all(15);
                    font-weight: 500;
                    line-height: 2;
                    margin-top: 20px;
                    @include maxwidth(768) {
                        @include f_all(14);
                        text-align: left;
                        margin-top: 15px;
                    }

                    &>p:not(:first-child) { margin-top: 2em; }

                }
                .c-buttons {
                    margin-top: 30px;
                    @include maxwidth(768) { margin-top: 25px; }
                }
                .c-button {
                    &__link {  }
                }
            }
        }
    }
}

#toppageBusiness {
    margin-top: -100vh;
    color: $themetextcolor;
    padding: 240px 0 100px;
    @include maxwidth(768) { padding: 160px 0 80px; }
    background: linear-gradient(270deg, $basetextcolor 0%, $themecolor 100%);
    position: relative;
    &::before, &::after {
        content: "";
        pointer-events: none;
        position: absolute;
        background-color: $basecolor;
    }
    &::before {
        inset: 0 auto auto 0;
        width: (372 / 1440 * 100vw);
        min-width: 190px;
        aspect-ratio: 1;
        clip-path: polygon(0 0, 0% 100%, 100% 0);
    }
    &::after {
        inset: auto auto 0 0;
        width: (290 / 1440 * 100vw);
        min-width: 290px;
        aspect-ratio: 290 / 100;
        clip-path: polygon(0 0, 0% 100%, 100% 100%);
    }
    .container {
        @include container(1440, 0);
        z-index: 1;
        @include maxwidth(1024) {
            margin-left: 40px;
            margin-right: 40px;
        }
        @include maxwidth(768) {
            margin-left: 20px;
            margin-right: 20px;
        }
        .cols {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-direction: row-reverse;
            gap: 2rem;
            @include maxwidth(1024) {
                flex-direction: column;
                align-items: initial;
                justify-content: initial;
                &>* { flex: none !important; }
            }
            .col {
                &:nth-child(1) {
                    flex-basis: 580px;
                    margin-right: (100 / 1440 * 100vw);
                    @include maxwidth(1024) { margin-right: 0; }
                }
                &:nth-child(2) { flex-basis: 660px; }

                .head {
                    .c-heading {
                        color: currentcolor;
                        @media screen and (min-width: 1025px) {
                            text-align: left;
                            align-items: flex-start;
                        }
                    }
                }
                .body {
                    margin-top: 30px;
                    @include maxwidth(768) { margin-top: 20px; }
                    .leadtext {
                        color: $themecolor2;
                        font-size: clamp(32px, (48 / 1440 * 100vw), 48px);
                        // @include maxwidth(360) { font-size: 28px; }
                        @include maxwidth(375) { font-size: clamp(20px, (32 / 375 * 100vw), 32px); }
                        line-height: 1.3;
                        @include maxwidth(1024) { text-align: center; }

                        @include split_text_anime();
                    }
                    .text {
                        @include f_all(15);
                        font-weight: 500;
                        line-height: 2;
                        margin-top: 16px;
                        @include maxwidth(1024) { text-align: center; }
                        @include maxwidth(768) {
                            @include f_all(14);
                            text-align: left;
                        }

                        &>p:not(:first-child) { margin-top: 2em; }
                    }
                    .c-buttons {
                        margin-top: 30px;
                        @include maxwidth(768) { margin-top: 25px; }
                        @media screen and (min-width: 1025px) {
                            justify-content: flex-start;
                        }
                    }
                    .c-button {
                        &__link {  }
                    }
                }
                .image {
                    width: 100%;
                    max-height: 100vh;
                    aspect-ratio: 660 / 610;
                    position: relative;
                    &>img {
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                    }
                }
            }
        }
    }
}

#toppageWorks {
    padding: 100px 0 70px;
    @include maxwidth(768) { padding: 70px 0 60px; }
    background-color: $themecolor3;
    position: relative;
    .container {
        @mixin toppageWorksContainer {
            max-width: 1400px;
            width: 100%;
            margin-left: auto;
            margin-right: auto;
            padding-left: 40px;
            padding-right: 40px;
            box-sizing: border-box;
            @include maxwidth(768) {
                max-width: 100%;
                width: auto;
                padding-left: 20px;
                padding-right: 20px;
            }
        }
        .head {
            @include toppageWorksContainer();
            .c-heading {
                text-align: left;
                align-items: flex-start;
                &::before { margin-left: 12px; }
            }
        }
        .body {
            margin-top: 50px;
            @include maxwidth(768) { margin-top: 25px; }
            position: relative;
            overflow: hidden;
            .works-terms {
                @include toppageWorksContainer();
                ul {
                    flex-wrap: wrap;
                    gap: 5px;
                    @include maxwidth(1024) {
                        flex-wrap: nowrap;
                        gap: 0;
                    }
                    li { width: auto; }
                }
            }
            .works-headline {
                max-width: 1400px;
                width: 100%;
                margin-left: auto;
                margin-right: auto;
                padding-left: 40px;
                padding-right: 40px;
                box-sizing: border-box;
                overflow: initial !important;
                position: static !important;
                margin-top: 30px;
                @include maxwidth(768) {
                    padding-left: 20px;
                    padding-right: 20px;
                    margin-top: 10px;
                }
                &.js-target {
                    .headline-item {
                        opacity: 0;
                        transform: translate(0, 30px);
                        transition: opacity 800ms cubic-bezier(0.77, 0, 0.175, 1), transform 800ms cubic-bezier(0.39, 0.575, 0.565, 1);
                    }
                    &.act {
                        .headline-item {
                            opacity: 1;
                            transform: translate(0, 0);

                            @for $i from 0 to 12 {
                                &:nth-child(#{$i + 1}) {
                                    transition-delay: $i * 100ms;
                                }
                            }
                        }
                    }
                }
                .headline-items {
                    .headline-item {
                        width: 416px;
                        @include maxwidth(768) { width: 300px; }
                        @include maxwidth(360) { width: 260px; }
                        &__link {  }
                    }
                }
                .headline-button- {
                    &next, &prev {
                        cursor: pointer;
                        display: inline-block;
                        width: 65px;
                        height: 65px;
                        @include maxwidth(768) {
                            width: 45px;
                            height: 45px;
                        }
                        border-radius: 50%;
                        background: url(../images/arrow-white.svg) no-repeat center center / 6px auto;
                        background-color: $basetextcolor;
                        position: absolute;
                        top: 35%;
                        z-index: 5;
                        transition: 200ms ease;
                        @media (any-hover: hover) {
                            &:hover { transform: scale(1.15); }
                        }
                        &.swiper-button-disabled {
                            opacity: 0;
                            visibility: hidden;
                        }
                    }
                    &next {
                        right: (14 / 1440 * 100vw);
                        @include maxwidth(768) { right: 20px; }
                    }
                    &prev {
                        left: (14 / 1440 * 100vw);
                        transform: scale(-1, 1);
                        @include maxwidth(768) { left: 20px; }

                        @media (any-hover: hover) {
                            &:hover { transform: scale(-1, 1) scale(1.15); }
                        }
                    }
                }
                .swiper-scrollbar {
                    position: static;
                    max-width: 550px;
                    width: 100%;
                    margin-top: 50px;
                    margin-left: auto;
                    margin-right: auto;
                    height: 5px;
                    background-color: #D9D9D9;
                    border-radius: 5px;
                    @include maxwidth(1024) { height: 8px; }
                    @include maxwidth(768) {
                        max-width: 100%;
                        width: auto;
                        margin-top: 30px;
                    }
                    &-drag {
                        cursor: grab;
                        background-color: $themecolor;
                        border-radius: 5px;
                    }
                }
            }
            .c-buttons {
                margin: 50px 40px 0;
                @include maxwidth(768) { margin: 40px 20px 0; }
            }
            .c-button {
                &__link {  }
            }
        }
    }
}

#toppageRecruit {
    color: $themetextcolor;
    padding: 120px 0 18px;
    @include maxwidth(768) { padding: 80px 0 18px; }
    background: linear-gradient(270deg, $themecolor 0%, $basetextcolor 100%);
    position: relative;
    &::before, &::after {
        content: "";
        pointer-events: none;
        position: absolute;
        background-color: $basecolor;
    }
    &::before {
        inset: 0 0 auto auto;
        width: (372 / 1440 * 100vw);
        // min-width: 372px;
        aspect-ratio: 1;
        clip-path: polygon(100% 0, 0 0, 100% 100%);
    }
    &::after {
        inset: auto 0 0 0;
        width: 100%;
        aspect-ratio: 1440 / 490;
        clip-path: polygon(100% 0, 0 100%, 100% 100%);
        background-color: $themecolor3;
    }
    .container {
        @include container(1440, 0);
        z-index: 1;
        @include maxwidth(1024) { margin-left: 40px; margin-right: 40px; }
        @include maxwidth(768) { margin-left: 20px; margin-right: 20px; }
        .cols {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 2rem;
            @include maxwidth(1024) {
                flex-direction: column;
                align-items: initial;
                justify-content: initial;
                &>* { flex: none !important; }
            }
            .col {
                &:nth-child(1) {
                    flex-basis: 580px;
                    margin-left: (100 / 1440 * 100vw);
                    @include maxwidth(1024) { margin-left: 0; }
                }
                &:nth-child(2) { flex-basis: 660px; }
                
                .head {
                    .c-heading {
                        color: currentcolor;
                        @media screen and (min-width: 1025px) {
                            text-align: left;
                            align-items: flex-start;
                        }
                    }
                }
                .body {
                    margin-top: 37px;
                    @include maxwidth(768) { margin-top: 25px; }
                    .leadtext {
                        color: $themecolor2;
                        font-size: clamp(32px, (48 / 1440 * 100vw), 48px);
                        @include maxwidth(768) { font-size: 27px; }
                        @include maxwidth(375) { font-size: clamp(20px, (27 / 375 * 100vw), 27px); }
                        line-height: 1.3;
                        @include maxwidth(1024) { text-align: center; }

                        @include split_text_anime();
                    }
                    .text {
                        @include f_all(15);
                        font-weight: 500;
                        line-height: 2;
                        margin-top: 30px;
                        @include maxwidth(1024) { text-align: center; }
                        @include maxwidth(768) {
                            text-align: left;
                            @include f_all(14);
                            margin-top: 20px;
                        }

                        &>p:not(:first-child) { margin-top: 2em; }
                    }
                    .c-buttons {
                        margin-top: 30px;
                        @media screen and (min-width: 1025px) { justify-content: flex-start; }
                    }
                    .c-button {
                        &__link {  }
                    }
                }
                .image {
                    width: 100%;
                    max-height: 100vh;
                    aspect-ratio: 660 / 610;
                    position: relative;
                    &>img {
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                    }
                }
            }
        }
    }
    .slider {
        margin-top: 60px;
        @include maxwidth(768) { margin-top: 20px; }
        z-index: 1;
        .swiper-wrapper {
            .swiper-slide {
                width: 400px;
                @include maxwidth(768) {
                    // width: 221px;
                    width: (221 / 375 * 100vw);
                    min-width: 221px;
                }
                aspect-ratio: 1;
                &>img {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                }
            }

            &.js-target {
                .swiper-slide {
                    clip-path: inset(100% 0 0 0);
                    transition: clip-path 600ms ease;
                }
                &.act {
                    .swiper-slide { clip-path: inset(0 0 0 0); }
                }
            }
        }
    }
}

#toppageNewstopics {
    padding: 80px 0 100px;
    @include maxwidth(768) { padding: 60px 0; }
    background-color: $themecolor3;
    position: relative;
    .container {
        @include container(1320, 40);
        @include maxwidth(768) { margin-left: 20px; margin-right: 20px; }
        .head {
            .c-heading {
                color: $themecolor;
                text-align: left;
                align-items: flex-start;

                @include maxwidth(420) {
                    .rows {
                        width: 100%;
                        display: flex;
                        flex-direction: column;
                        .row {
                            &:nth-child(odd) { text-align: left; }
                            &:nth-child(even) { text-align: right; }
                        }
                    }
                }
            }
        }
        .body {
            margin-top: 28px;
            @include maxwidth(768) { margin-top: 20px; }
            .cols {
                display: flex;
                justify-content: space-between;
                gap: 10px 2rem;
                @include maxwidth(1024) {
                    flex-direction: column;
                    justify-content: initial;
                    &>* { flex: none !important; }
                }
                .col {
                    &:nth-child(1) {
                        flex-shrink: 0;
                        flex-basis: 250px;
                        margin-top: 30px;
                        @include maxwidth(1024) { margin-top: 0; }
                    }
                    &:nth-child(2) { flex-basis: 900px; }

                    .newstopics-terms {
                        box-sizing: border-box;
                        @include maxwidth(1024) {
                            margin-left: -40px;
                            margin-right: -40px;
                            padding-left: 40px;
                            padding-right: 40px;
                        }
                        @include maxwidth(768) {
                            margin-left: -20px;
                            margin-right: -20px;
                            padding-left: 20px;
                            padding-right: 20px;
                        }
                        ul {
                            @media screen and(min-width: 1025px) {
                                flex-direction: column;
                                flex-wrap: wrap;
                                row-gap: 5px;
                            }
                            li {
                                width: auto;
                                a {
                                    @media screen and(min-width: 1025px) {
                                        font-weight: 500;
                                        min-height: 45px;
                                    }
                                }
                            }
                        }
                    }
                    .c-buttons {
                        margin-top: 5px;
                        flex-direction: column;
                        gap: 5px;
                        @include maxwidth(1024) { display: none; }
                    }
                    .c-button {
                        width: 100%;
                        &__link { min-width: initial; }
                    }
                    .newstopics-headline {
                        &.js-target {
                            .headline-item {
                                opacity: 0;
                                transform: translate(30px, 0);
                                @include maxwidth(768) { transform: translate(15px, 0); }
                                transition: opacity 800ms cubic-bezier(0.77, 0, 0.175, 1), transform 800ms cubic-bezier(0.39, 0.575, 0.565, 1);
                            }
                            &.act {
                                .headline-item {
                                    opacity: 1;
                                    transform: translate(0, 0);

                                    @for $i from 0 to 12 {
                                        &:nth-child(#{$i + 1}) {
                                            transition-delay: $i * 100ms;
                                        }
                                    }
                                }
                            }
                        }
                        .headline-items {
                            .headline-item {
                                &__link {  }
                            }
                        }
                    }
                }
            }
            .c-buttons.sp {
                margin-top: 20px;
                @media screen and (min-width: 1025px) { display: none; }
            }
        }
    }
}

// === Subpage
#subpageHeading {
    --subpage-heading-foot-between: 16px;
    color: $themetextcolor;
    padding: 50px 10px calc(60px + var(--subpage-heading-foot-between));
    box-sizing: border-box;
    @include maxwidth(768) {
        padding-top: 50px;
        padding-bottom: calc(50px + var(--subpage-heading-foot-between));
    }
    position: relative;
    z-index: 0;
    background-color: $themecolor;
    .heading {
        display: flex;
        flex-direction: column;
        align-items: center;
        &::before {
            content: "";
            flex-shrink: 0;
            display: block;
            width: 8px;
            height: 8px;
            background-color: $themecolor2;
            transform: rotate(-45deg);
            margin-bottom: 14px;
            @include maxwidth(768) { margin-bottom: 13px; }
        }
        .en {
            font-size: clamp(42px, (64 / 1440 * 100vw), 64px);
            @include maxwidth(360) { font-size: 38px; }
            text-transform: uppercase;
            line-height: 1.2;
            text-align: center;
        }
        .ja {
            @include f_all(14);
            font-weight: bold;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0.1em 15px 0.15em;
            box-sizing: border-box;
            min-height: 22px;
            color: $themecolor;
            background-color: $themecolor2;
            @include maxwidth(768) {
                @include f_all(13);
                min-height: 20px;
                padding-left: 10px;
                padding-right: 10px;
            }
        }
    }
    .visual {
        position: absolute;
        inset: 0 0 var(--subpage-heading-foot-between) 0;
        z-index: -1;
        &>img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        &::after {
            content: "";
            pointer-events: none;
            position: absolute;
            inset: 0;
            z-index: 1;
            // background: url(../images/mosquito-sp.svg) repeat center / contain rgba(0, 0, 0, 0.15);
            @include mosquito;
        }
    }

    &::after {
        content: "";
        display: block;
        width: 1px;
        height: 50px;
        @include maxwidth(768) { height: 40px; }
        background-color: $themecolor2;
        position: absolute;
        inset: auto 0 var(--subpage-heading-foot-between) 0;
        margin: auto;
        z-index: 1;
    }
}

#subpageTopicpath {
    @include f_all(14);
    @include maxwidth(768) { @include f_all(13); }
    font-weight: bold;
    line-height: 1.4;
    margin: 30px 0;
    @include maxwidth(768) { margin: 25px 0; }
    position: relative;
    .container {
        @include container(1200, 40);
        @include maxwidth(768) { 
            margin-left: 20px;
            margin-right: 20px;
        }
        ul {
            li {
                display: inline-flex;
                align-items: center;
                &::after {
                    content: "";
                    display: inline-block;
                    width: 6px;
                    height: 10px;
                    background: url(../images/arrow-black.svg) no-repeat center center / contain;
                    margin: 0.1em 0.75em 0;
                }
                &:last-child::after { display: none; }
            }
        }
    }
}

#subpageContent {
    margin: 40px 0 100px;
    @include maxwidth(768) { margin-bottom: 80px; }
    position: relative;
    .container {
        @include container(1200, 40);
        @include maxwidth(768) { margin-left: 20px; margin-right: 20px; }
        div.default {
            #singleTitle {
                .terms {
                    @include f_all(12);
                    font-weight: 500;
                    line-height: 1;
                    @include flex_centering;
                    flex-wrap: wrap;
                    gap: 0.25em 0.4em;
                    .term {
                        text-decoration: none !important;
                        display: inline-flex;
                        align-items: center;
                        justify-content: center;
                        padding: 0.1em 10px 0.15em;
                        box-sizing: border-box;
                        color: $themetextcolor;
                        color: $themetextcolor;
                        background-color: $basetextcolor;
                        min-height: 20px;
                        position: relative;
                        &::before { content: "#"; margin-right: 0.25em; }
                        &:hover { opacity: 0.8; }
                    }
                }
                h3 { margin-top: 10px; }
            }
            // single 施工事例
			table.single_works_spec {
				width: 100%;
				th {
					width: clamp(0px, 16.67vw, 240px);
                    box-sizing: border-box;
                    font-weight: 700;
                    background-color: $basetextcolor;
                    color: $basecolor;
                    @include maxwidth(800){
                        width: 100%;
                    }
				}
                tr{
                    > *{
                        @include f_all(15);
                        line-height: 130%;
                        padding: 1em;
                        @include maxwidth(800){
                            @include f_all(14);
                        }
                    }
                    th{}
                    td{
                        background-color: mix($basecolor,$basetextcolor,0.95);
                    }
                    @include maxwidth(800){
                        display: flex;
                        flex-direction: column;
                    }
                }
			}
			div.single_works_gallery {
				display:flex;
				flex-wrap:wrap;
				gap: 16px;
				div.item { flex: 0 0 calc((100% - 16px * 4) / 5);
                    a{
                        display: block;
                        width: 100%;
                        height: 100%;
                        img{
                            width: 100%;
                            height: 100%;
                            object-fit: cover;
                        }
                    }
                }
				@include maxwidth(800){
					gap: 5px;
					div.item { flex: 0 0 calc((100% - 5px * 4) / 5); }
				}
				@include maxwidth(500){
					gap: 16px;
					div.item { flex: 0 0 calc((100% - 16px * 1) / 2); }
				}
			}
        }
    }
}


.pager {
    text-align: center;
    margin: 40px 0;
    @include f_all(14);
    font-weight: 500;
    a,
    span {
        display: inline-block;
        margin: 0 0 0.25em 0.75em;
        min-width: 3em;
        padding: 1em;
        box-sizing: border-box;
        background-color: mix($themecolor, $themetextcolor, 0.1);
    }
    .current {
        color: #fff;
        background-color: $themecolor;
    }
}

.monthly_archive_link {
    @include container(800, 10);
    margin-top: 50px;
    @include f_all(14);
    a.show_archive_links {
        display: block;
        width: 200px;
        height: 30px;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: mix($basetextcolor, $basecolor, 0.1);
        margin: auto;
        border-radius: 30px;
        position: relative;
        &:after {
            content: ">";
            display: inline-block;
            transform: rotateZ(90deg) scaleX(0.5);
            position: absolute;
            right: 30px;
            top: 0;
            bottom: 0;
            margin: auto;
        }
    }
    ul {
        margin-top: 20px;
        display: none;
        &.show {
            display: flex;
        }
        justify-content: center;
        flex-wrap: wrap;
        li {
            margin: 0 5px 10px;
            flex: 0 0 113px;
            text-align: center;
            a {
                display: block;
                background-color: mix($basetextcolor, $basecolor, 0.05);
                padding: 7px 0;
                border-radius: 15px;
            }
        }
    }
}
