// スタイルシート common

@charset "utf-8";

@import "mixin";

body {
    @include root;
    position: relative;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
}

figure,
figcaption {
    margin: 0;
}

img,
video {
    max-width: 100%;
    height: auto;
}

//====================================================================================//
html,
body {
    // background-color: $basetextcolor;
    background-color: $themecolor1;
    #wrapper {
        background-color: $basecolor;
    }
}

body.menu_open {
    // グローバルナビゲーションが開いた時はスクロールできないようにする
    overflow-y: hidden;
}

// CSS Animation
@keyframes scrollAnim {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(40px);
    }
}

/* グローバルナビゲーションに関わる要素 */
// サイト全体
#wrapper {
    transition-property: transform, filter;
    transition-duration: 0.5s;
    position: relative;
    &::before {
        content: "";
        @include absolute_centering;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        opacity: 0;
        z-index: 50;
        visibility: hidden;
        transition-property: opacity, visibility;
        transition-duration: 0.5s;
    }
    body.menu_open & {
        transform: translateX(clamp(-30vw, -25rem, -100vw)) translateZ(-100vw);
        @include maxwidth(768) {
            transform: none;
        }
        &::before {
            opacity: 1;
            visibility: visible;
        }
        // filter: blur(3px);
        // -webkit-filter: blur(3px);
    }
}

// グローバルナビゲーション
#gnavWrapper {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    opacity: 0;
    visibility: hidden;
    z-index: 100;
    transition-property: opacity, visibility;
    transition-duration: 0.5s;
    background-color: rgba($basetextcolor, 0.7);
    body.menu_open & {
        opacity: 1;
        visibility: visible;
    }
    #gnav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        margin: auto;
        z-index: 1;
        width: clamp(30vw, 25rem, 100vw);
        @include maxwidth(768) {
            width: 100%;
        }
        padding: 80px 50px;
        overflow-y: auto;
        @include maxwidth(768) {
            padding-left: 20px;
            padding-right: 20px;
        }
        box-sizing: border-box;
        transform: translateX(100%);
        transition-property: transform;
        transition-duration: 0.5s;
        body.menu_open & {
            transform: translateX(0);
        }
        background-color: $basetextcolor;
        @include maxwidth(768) {
            background-color: rgba($basetextcolor, 0.85);
        }
        &::before {
            content: "";
            @include absolute_centering;
        }
        .gnav {
            &-container {
                position: relative;
            }
            &-header {
                display: flex;
                align-items: center;
                justify-content: space-between;
                gap: 1em;
                a {
                    img {
                        width: 160px;
                    }
                }
                .gnav-toggle {
                }
            }
            &-menu {
                color: $themetextcolor;
                @include f_all(14);
                font-weight: 500;
                margin-top: 40px;
                ul {
                    li {
                        &:not(:first-child) {
                            margin-top: 10px;
                        }
                        &::before {
                            content: "";
                            height: 1px;
                            background-color: $themecolor;
                            position: absolute;
                            bottom: 0;
                            left: 0;
                            right: 0;
                            margin: auto;
                            transform: scaleX(0);
                            transform-origin: right center;
                            transition-property: transform;
                            transition-duration: 0.5s;
                        }
                        a {
                            display: flex;
                            align-items: center;
                            padding: 1em 15px 1em 5px;
                            box-sizing: border-box;
                            border-bottom: solid 1px rgba($themetextcolor, 0.5);
                            position: relative;
                            transition-property: background-color;
                            transition-duration: 0.3s;
                            &:hover,
                            &:focus {
                                background-color: rgba($basecolor, 0.2);
                                &::after {
                                    transform: translateX(3px);
                                }
                            }
                            &::before {
                                content: "";
                                display: inline-block;
                            }
                            &::after {
                                content: "";
                                display: inline-block;
                                width: 8px;
                                height: 8px;
                                background: url(../images/arrow-white.svg) no-repeat center center/contain;
                                position: absolute;
                                top: 0;
                                bottom: 0;
                                right: 5px;
                                margin: auto;
                                transition-property: transform;
                                transition-duration: 0.3s;
                            }
                        }
                    }
                }
                & > ul {
                    & > li {
                        & > a {
                            &::before {
                                width: 12px;
                                height: 12px;
                                background: url(../images/mark-white.svg) no-repeat center center/contain;
                                margin-right: 8px;
                            }
                        }
                        & > ul {
                            &:not(:first-child) {
                                margin-top: 10px;
                            }
                            & > li {
                                & > a {
                                    &::before {
                                        content: "-";
                                        margin-left: 0.25em;
                                        margin-right: 0.8em;
                                    }
                                }
                            }
                        }
                    }
                }
            }
            &-sns {
                margin-top: 25px;
                ul {
                    display: flex;
                    align-items: center;
                    justify-content: flex-end;
                    @include maxwidth(768) {
                        justify-content: center;
                    }
                    flex-wrap: wrap;
                    gap: 0.55em;
                    li {
                        flex-shrink: 0;
                        a {
                            display: block;
                            border-radius: 9999px;
                            overflow: hidden;
                            text-indent: -9999px;
                            background: no-repeat center center/20px auto $basecolor;
                            &.instagram {
                                width: 35px;
                                height: 35px;
                                background-image: url(../images/icon-instagram-black.svg);
                            }
                            &:hover {
                                opacity: 0.8;
                            }
                        }
                    }
                }
            }
        }
    }
}

/* Component
    ==================================================================*/
// グロバールナビゲーション開閉
.gnav-toggle {
    a {
        @include flex_centering;
        min-width: 80px;
        min-height: 40px;
        background-color: #e6e5ef;
        border-radius: 50px;
        padding: 6px 16px 6px 26px;
        box-sizing: border-box;
        position: relative;
        transition: 0.3s;
        body.menu_open & {
            background-color: $themecolor !important;
        }
        &:hover,
        &:focus {
            opacity: 0.8 !important;
        }
        &::after {
            content: "";
            display: inline-block;
            width: 12px;
            height: 12px;
            border-radius: 9999px;
            background: url(../images/mark-black.svg) no-repeat center center/contain transparent;
            body.menu_open & {
                background-image: url(../images/mark-white.svg);
            }
            position: absolute;
            top: 0;
            bottom: 0;
            left: 6px;
            margin: auto;
        }
        span.t {
            color: $basetextcolor;
            @include f_all(13);
            font-weight: 700;
            transition: 0.3s;
            body.menu_open & {
                color: $themetextcolor;
            }
            &::before {
                content: "Menu";
                body.menu_open & {
                    content: "Close";
                }
            }
        }
    }
}
// 大見出し
.common-heading {
    color: $themecolor;
    @include flex_centering;
    flex-direction: column;
    &::before,
    &::after {
        content: "";
        display: inline-block;
    }
    &::before {
        width: 12px;
        height: 12px;
        border-radius: 9999px;
        background: url(../images/mark-white.svg) no-repeat center center/contain $themecolor;
        margin-bottom: 8px;
    }
    &::after {
        width: 1px;
        height: 20px;
        background-color: currentColor;
        margin-top: 10px;
    }
    h2 {
        color: currentColor;
        @include f_all(12);
        line-height: 1;
        font-weight: 700;
        display: inline-flex;
        align-items: center;
        flex-direction: column;
        &::after {
            content: attr(data-en);
            color: $basetextcolor;
            @include f_all(20);
            @include maxwidth(768) {
                @include f_all(18);
            }
            text-transform: capitalize;
            margin-top: 6px;
        }
    }
    &.--horizontal {
        flex-direction: row;
        align-items: flex-end;
        justify-content: flex-start;
        &::before {
            margin-bottom: 0.15em;
            margin-right: 10px;
        }
        &::after {
            width: 20px;
            height: 1px;
            margin-top: 0;
            margin-left: 10px;
            margin-bottom: 0.5em;
        }
        h2 {
            align-items: flex-start;
            &::after {
            }
        }
    }
    &.--color-white {
        color: $themetextcolor;
        &::before {
        }
        &::after {
        }
        h2 {
            &::after {
                color: currentColor;
            }
        }
    }
}

.common-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
}
// ボタン
.common-button {
    // _mixin.scss 内に記述
    @include create_button();

    // ホバー時に色を反転
    &.has-hover-color-white {
        &::before,
        &::after {
            background-color: $themetextcolor;
        }
        &:hover,
        &:focus {
            .common-button__link {
                color: $themetextcolor !important;
                &::before {
                    background-image: url(../images/mark-white.svg) !important;
                }
                &::after {
                    background-image: url(../images/arrow-white.svg) !important;
                }
            }
        }
    }
}

.common-term-list {
    --list-gap: 18px;
    color: $basetextcolor;
    @include f_all(13);
    font-weight: 700;
    line-height: 1.2;
    position: relative;
    ul {
        display: flex;
        flex-wrap: wrap;
        gap: 10px var(--list-gap);
        li {
            border-bottom: solid 1px $themecolor1;
            @include maxwidth(768) {
                flex-basis: calc((100% - var(--list-gap)) / 2);
            }
            a {
                display: flex;
                align-items: center;
                padding: 10px 20px 10px 5px;
                box-sizing: border-box;
                position: relative;
                transition-property: background-color;
                transition-duration: 0.3s;
                &.current {
                    pointer-events: none;
                    color: $themetextcolor;
                    background-color: $themecolor;
                    &::before {
                        background-image: url(../images/mark-white.svg);
                    }
                    &::after {
                        background-image: url(../images/arrow-white.svg);
                    }
                }
                &:hover,
                &:focus {
                    background-color: rgba($basetextcolor, 0.05);
                    &::after {
                        transform: translateX(3px);
                    }
                }
                &::before,
                &::after {
                    content: "";
                    display: inline-block;
                }
                &::before {
                    width: 12px;
                    height: 12px;
                    border-radius: 9999px;
                    background: url(../images/mark-black.svg) no-repeat center center/contain;
                    margin-right: 12px;
                    @include maxwidth(360) {
                        margin-right: 6px;
                    }
                }
                &::after {
                    width: 8px;
                    height: 8px;
                    background: url(../images/arrow-black.svg) no-repeat center center/contain;
                    position: absolute;
                    top: 0;
                    bottom: 0;
                    right: 5px;
                    margin: auto;
                    transition-property: transform;
                    transition-duration: 0.3s;
                }
            }
        }
    }
}

.common-headline {
    &[data-post-type="properties"] {
        --properties-width: 100%;
        body.subpage & {
            --properties-column-gap: 10px;
            --properties-width: calc((100% - (var(--properties-column-gap) * 2)) / 3);
            @include maxwidth(1200) {
                --properties-width: calc((100% - var(--properties-column-gap)) / 2);
            }
            @include maxwidth(768) {
            }
            @include maxwidth(420) {
                --properties-width: 100%;
            }
            &.--pickup {// 事業案内 ピックアップ
                --properties-width: calc((100% - (var(--properties-column-gap) * 3)) / 4);
                @include maxwidth(768) {
                    --properties-width: calc((100% - var(--properties-column-gap)) / 2);
                }
                ul {
                    li {
                        a {
                            .docs {
                                padding-top: 10px;
                                .title {
                                    @include f_all(14);
                                }
                                .terms {
                                    @include f_all(11);
                                }
                            }
                        }
                    }
                }
            }
        }
        ul,
        .swiper-wrapper {
            body.subpage & {
                display: flex;
                flex-wrap: wrap;
                gap: 50px var(--properties-column-gap);
            }
            li,
            .swiper-slide {
                width: var(--properties-width);
                a {
                    & > * {
                        display: block;
                    }
                    &:hover,
                    &:focus {
                        .thumb {
                            & > span {
                                transform: scale(1.1);
                            }
                        }
                        .docs {
                            .title {
                                text-decoration: underline;
                            }
                        }
                    }
                    .thumb {
                        padding-top: 64%;
                        @include maxwidth(768) {
                            padding-top: 73%;
                        }
                        position: relative;
                        overflow: hidden;
                        & > span {
                            display: block;
                            height: 100%;
                            background-size: cover;
                            background-position: center center;
                            background-repeat: no-repeat;
                            @include absolute_centering;
                            transition-property: transform;
                            transition-duration: 0.3s;
                        }
                    }
                    .docs {
                        padding-top: 20px;
                        @include maxwidth(768) {
                            padding-top: 15px;
                        }
                        position: relative;
                        & > * {
                            display: block;
                        }
                        .title {
                            @include f_all(16);
                            @include maxwidth(420) {
                                @include f_all(15);
                            }
                            font-weight: 700;
                            line-height: 1.2;
                        }
                        .terms {
                            color: $themecolor;
                            @include f_all(13);
                            font-weight: 700;
                            line-height: 1.2;
                            margin-top: 6px;
                            .term {
                                &:not(:first-child:last-child) {
                                    margin-right: 1em;
                                    margin-bottom: 0.15em;
                                }
                                &::before {
                                    content: "#";
                                    margin-right: 0.1em;
                                }
                            }
                        }
                    }
                }
            }
        }
        &.--top {
            --properties-width: calc((500 / 1440) * 100vw);
            @include maxwidth(768) {
                --properties-width: calc(100% - 20px);
            }
            .properties-swiper {
                .swiper-wrapper {
                    .swiper-slide {
                        a {
                            .thumb {
                                & > span {
                                }
                            }
                            .docs {
                                .title {
                                }
                                .terms {
                                    .term {
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
    &[data-post-type="newstopics"] {
        ul {
            li {
                &:not(:first-child) {
                    margin-top: 20px;
                }
                a {
                    display: block;
                    border-left: solid 2px $themecolor1;
                    border-bottom: solid 1px $themecolor1;
                    height: 100%;
                    box-sizing: border-box;
                    padding: 8px 10px 8px 30px;
                    @include maxwidth(768) {
                        padding: 8px 10px 8px 20px;
                    }
                    body.subpage & {
                        padding-top: 20px;
                        padding-bottom: 20px;
                    }
                    &:hover,
                    &:focus {
                        span.docs {
                            .title > span::after {
                                transform: translate(3px, -50%);
                            }
                        }
                    }
                    span.docs {
                        display: flex;
                        align-items: center;
                        flex-wrap: wrap;
                        position: relative;
                        .date {
                            flex-shrink: 0;
                            @include f_all(14);
                            line-height: 1;
                            font-weight: 900;
                            margin-right: 15px;
                            time {
                            }
                        }
                        .terms {
                            flex-shrink: 0;
                            color: $themetextcolor;
                            @include f_all(12);
                            line-height: 1;
                            font-weight: 700;
                            margin-right: 14px;
                            @include maxwidth(768) {
                                margin-right: 0;
                            }
                            .term {
                                display: inline-flex;
                                align-items: center;
                                justify-content: center;
                                padding: 3px 12px 4px;
                                box-sizing: border-box;
                                background-color: $themecolor;
                                &:not(:first-child:last-child) {
                                    margin-right: 0.15em;
                                    margin-bottom: 0.15em;
                                }
                            }
                        }
                        .title {
                            @include f_all(14);
                            line-height: 1.8;
                            font-weight: 700;
                            line-height: normal;
                            box-sizing: border-box;
                            padding-right: 25px;
                            position: relative;
                            @include maxwidth(768) {
                                flex-basis: 100%;
                                margin-top: 0.6em;
                            }
                            & > span {
                                display: inline;
                                &::after {
                                    content: "";
                                    display: inline-block;
                                    width: 8px;
                                    height: 8px;
                                    background: url(../images/arrow-black.svg) no-repeat center center/contain;
                                    position: absolute;
                                    top: 50%;
                                    right: 0px;
                                    transform: translateY(-50%);
                                    transition-property: transform;
                                    transition-duration: 0.3s;
                                }
                            }
                        }
                    }
                }
            }
        }
        &.--top {
            ul {
                display: flex;
                flex-wrap: wrap;
                li {
                    flex: calc(100% / 3);
                    @include maxwidth(1200) {
                        flex: 100%;
                    }
                    &:not(:first-child) {
                        @media screen and (min-width: 1201px) {
                            margin-top: 0;
                        }
                    }
                    a {
                        @media screen and(min-width: 1201px) {
                            padding: 10px calc((60 / 1440) * 100vw) 10px 30px;
                            border-bottom: none;
                        }
                        &:hover,
                        &:focus {
                            @media screen and(min-width: 1201px) {
                                .title > span::after {
                                    transform: translateX(3px) !important;
                                }
                            }
                        }
                        .date {
                            time {
                            }
                        }
                        .terms {
                            .term {
                            }
                        }
                        .title {
                            flex-basis: 100%;
                            margin-top: 0.6em;
                            @media screen and (min-width: 1201px) {
                                padding-right: 0 !important;
                            }
                            & > span {
                                &::after {
                                    @media screen and (min-width: 1201px) {
                                        margin-left: 0.5em;
                                        margin-bottom: 0.05em;
                                        position: initial !important;
                                        transform: translateY(0) !important;
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}

// スクロールエフェクト用クラス
// data-effectで用途を変更。
.js-scroll-object {
    --scroll-object-duration: 1s;
    &[data-effect="normal"] {
        opacity: 0;
        transform: translateY(30px);
        transition-property: opacity, transform;
        transition-duration: var(--scroll-object-duration);
        &.is-active {
            opacity: 1;
            transform: translateY(0);
        }
    }
    &[data-effect="stagger"] {
        & > * {
            opacity: 0;
            transform: translateY(30px);
            transition-property: opacity, transform;
            transition-duration: var(--scroll-object-duration);
        }
        &.is-active > * {
            opacity: 1;
            transform: translateY(0);
            @for $el from 0 to 10 {
                &:nth-child(#{$el + 1}) {
                    transition-delay: $el * 0.1s;
                }
            }
        }
    }
    // 一行ニュース
    &[data-effect="lineNews"] {
        opacity: 0;
        transform: translateX(-80%);
        transition-property: opacity, transform;
        transition-duration: var(--scroll-object-duration);
        & > * {
            opacity: 0;
        }
        &.is-active {
            opacity: 1;
            transform: translateX(0);
            & > * {
                opacity: 1;
                transition-duration: calc(var(--scroll-object-duration) / 2);
                transition-delay: calc(var(--scroll-object-duration));
            }
        }
    }
}

/* Header */
header {
    #header {
        position: absolute;
        left: 0;
        right: 0;
        top: 5vh;
        margin: auto;
        z-index: 20;
        body.subpage & {
            top: 0;
        }
        .container {
            color: $themetextcolor;
            padding: 14px 40px 14px 60px;
            @include maxwidth(768) {
                padding: 10px 20px;
            }
            background-color: rgba(#000, 0.5);
            body.subpage & {
                padding-top: 40px;
                background-color: rgba(#000, 0.85);
            }
            display: flex;
            align-items: flex-end;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 1em;
            .header {
                &-sitename {
                    h1 {
                        a {
                            img {
                                width: 164px;
                            }
                        }
                    }
                }
                &-body {
                    flex: auto;
                    display: flex;
                    align-items: center;
                    justify-content: flex-end;
                    overflow: hidden;
                    .gnav-toggle {
                        flex-shrink: 0;
                        transition: 0.3s;
                        body.menu_open & {
                            opacity: 0;
                            visibility: hidden;
                            transform: translateX(100%);
                        }
                    }
                }
                &-menu {
                    margin-right: 40px;
                    @include maxwidth(1200) {
                        display: none;
                    }
                    nav {
                        ul {
                            display: flex;
                            align-items: center;
                            column-gap: 24px;
                            li {
                                @include f_all(14);
                                font-weight: 700;
                                display: inline-flex;
                                align-items: center;
                                a {
                                    &::before {
                                        content: "";
                                        display: inline-block;
                                        width: 12px;
                                        height: 12px;
                                        border-radius: 9999px;
                                        background: url(../images/mark-gray.svg) no-repeat center center/contain $basetextcolor;
                                        margin-right: 4px;
                                        margin-top: 0.15em;
                                    }
                                    &:hover {
                                        opacity: 0.8;
                                    }
                                    &.current-page {
                                        pointer-events: none;
                                        color: $themecolor;
                                        &::before {
                                            background-image: url(../images/mark-color.svg);
                                            background-color: $themecolor1;
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}

// その他ボタン
aside {
    #aside {
        position: fixed;
        right: 20px;
        bottom: 25px;
        z-index: 40;
        display: flex;
        opacity: 0;
        visibility: hidden;
        transition-property: opacity, visibility;
        transition-duration: 0.3s;
        body.menubutton_scrollout & {
            opacity: 1;
            visibility: visible;
        }
        @include maxwidth(768) {
            flex-direction: column;
            right: 15px;
            bottom: 20px;
        }
        & > * {
            overflow: hidden;
            a {
                opacity: 0;
                transform: translate(100%, 0);
                transition-property: opacity, transform;
                transition-duration: 0.3s;
            }
            body.menubutton_scrollout & {
                a {
                    opacity: 1;
                    transform: translate(0, 0);
                }
                @for $i from 0 to 2 {
                    &:nth-child(#{$i + 1}) a {
                        transition-delay: $i * 0.1s;
                    }
                }
            }
            &:not(:last-child) {
                margin-right: 5px;
                @include maxwidth(768) {
                    margin-right: 0;
                    margin-bottom: 5px;
                }
            }
        }
        .gnav-toggle {
            a {
                body.menu_open & {
                    opacity: 0;
                    transform: translate(100%, 0);
                }
                @include maxwidth(768) {
                    background-color: rgba($themecolor1, 0.85);
                }
            }
        }
        .totop {
            color: $basetextcolor;
            @include f_all(13);
            font-weight: 700;
            text-transform: capitalize;
            a {
                @include flex_centering;
                padding: 5px 10px;
                min-height: 40px;
                box-sizing: border-box;
                background-color: $themecolor1;
                border-radius: 50px;
                @include maxwidth(768) {
                    background-color: rgba($themecolor1, 0.85);
                }
                &:hover {
                    opacity: 0.8;
                    &::before {
                        transform: translateY(-3px) rotate(-90deg);
                    }
                }
                &::before {
                    content: "";
                    display: inline-block;
                    width: 8px;
                    height: 8px;
                    background: url(../images/arrow-black.svg) no-repeat center center/contain;
                    transform: rotate(-90deg);
                    margin-right: 6px;
                    transition-property: transform;
                    transition-duration: 0.3s;
                }
            }
        }
    }
}

/* メインビジュアル */
#mainVisual {
    position: relative;
    div.container {
        position: relative;
        .swiper {
            height: 100vh;
            min-height: 600px;
            &.hero-swiper {
            }
            &-wrapper {
            }
            &-slide {
                overflow: hidden;
                height: 100%;
                &-inner {
                    height: 100%;
                    position: relative;
                    &::before {
                        content: "";
                        @include absolute_centering;
                        background-color: rgba(#000000, 0.2);
                        z-index: 2;
                    }
                    img {
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                    }
                }
            }
        }
        .hero-pagination {
            position: absolute;
            top: auto;
            left: auto;
            right: 20px;
            bottom: 60px;
            bottom: calc((60 / 1440) * 100vw);
            @include maxwidth(768) {
                bottom: 40px;
            }
            z-index: 2;
            width: auto;
            display: flex;
            flex-direction: column;
            row-gap: 12px;
            .swiper-pagination-bullet {
                margin: 0;
                flex-shrink: 0;
                color: $basetextcolor;
                font-weight: 900;
                font-size: clamp(12px, 0.8vw, 30px);
                width: clamp(30px, 2vw, 60px);
                height: clamp(30px, 2vw, 60px);
                border-radius: 9999px;
                background: rgba($themetextcolor, 0.8);
                transition: 0.3s;
                position: relative;
                opacity: 1;
                &::before {
                    position: absolute;
                    top: 0;
                    right: 0;
                    bottom: 0.15em;
                    left: 0.08em;
                    margin: auto;
                    @include flex_centering;
                }
                &-active {
                    color: $themetextcolor;
                    background: rgba($basetextcolor, 0.9);
                }
                &:nth-child(1) {
                    &::before {
                        content: "Ⅰ";
                    }
                }
                &:nth-child(2) {
                    &::before {
                        content: "Ⅱ";
                    }
                }
                &:nth-child(3) {
                    &::before {
                        content: "Ⅲ";
                    }
                }
                &:nth-child(4) {
                    &::before {
                        content: "Ⅳ";
                    }
                }
                &:nth-child(5) {
                    &::before {
                        content: "Ⅴ";
                    }
                }
            }
        }
        .overlay {
            color: $themetextcolor;
            @include f_all(20);
            @include maxwidth(768) {
                @include f_all(18);
            }
            line-height: 1;
            font-weight: 700;
            letter-spacing: 0.35em;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            @media screen and(max-height: 700px) {
                top: 60%;
            }
            z-index: 1;
            &-inner {
                padding: 40px 28px calc(40px - 1em);
                @include maxwidth(768) {
                    padding: 30px 30px calc(30px - 1em);
                }
                box-sizing: border-box;
                position: relative;
                &::before {
                    content: "";
                    @include absolute_centering;
                    background: rgba(0, 0, 0, 0.4);
                    background-blend-mode: multiply;
                }
            }
            &-text {
                display: flex;
                align-items: flex-start;
                flex-direction: row-reverse;
                column-gap: calc(14px + 0.2em);
                @include maxwidth(768) {
                    column-gap: calc(10px + 0.2em);
                }
                position: relative;
                span.strs {
                    display: inline-block;
                    width: 1em;
                    writing-mode: vertical-rl;
                    text-orientation: upright;
                    white-space: nowrap;
                }
            }
        }
        .scroll {
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 1;
            margin: auto;
            display: flex;
            align-items: flex-end;
            justify-content: center;
            height: 45px;
            &::before {
                content: "";
                display: inline-block;
                width: 13px;
                height: 13px;
                background: url(../images/mark-white.svg) no-repeat center center/contain;
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                margin: auto;
                z-index: 1;
                animation: scrollAnim 1.5s forwards infinite;
            }
            a {
                display: inline-block;
                white-space: nowrap;
                overflow: hidden;
                text-indent: -9999px;
                width: 1px;
                height: 40px;
                background-color: $themetextcolor;
            }
        }
    }
}

// 一行ニュース
#lineNews {
    padding-top: 40px;
    @include maxwidth(768) {
        padding-top: 50px;
    }
    .container {
        --common-padding: calc((120 / 1440) * 100vw);
        @include maxwidth(768) {
            --common-padding: 30px;
        }
        @include maxwidth(360) {
            --common-padding: 20px;
        }
        & > * {
            padding-left: var(--common-padding);
            box-sizing: border-box;
        }
        .heading {
            h2 {
            }
        }
        .body {
            width: calc(100% - var(--common-padding));
            background-color: $themecolor1;
            padding-top: 20px;
            padding-bottom: 20px;
            padding-right: 18px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            margin-top: 42px;
            @include maxwidth(1024) {
                width: auto;
                flex-direction: column;
                justify-content: center;
                padding-top: 40px;
                padding-right: var(--common-padding);
                padding-bottom: 20px;
            }
            @include maxwidth(768) {
                margin-top: 26px;
            }
            .common-headline {
                ul {
                    li {
                        a {
                            // 打消しスタイル
                            padding: 0;
                            border-left: none;
                            border-bottom: none;
                            &:hover,
                            &:focus {
                                span.title > span::after {
                                    transform: translate(3px) !important;
                                }
                            }
                            span.date {
                                font-weight: 700;
                            }
                            span.title {
                                padding-right: 0px;
                                & > span {
                                    text-decoration: underline !important;
                                    &::after {
                                        margin-left: 0.5em;
                                        margin-bottom: 0.05em;
                                        position: initial !important;
                                        transform: translateY(0) !important;
                                    }
                                }
                            }
                        }
                    }
                }
            }
            .common-buttons {
                @include maxwidth(1024) {
                    flex-basis: 100%;
                    justify-content: center;
                    margin-top: 15px;
                }
            }
        }
    }
}

#contentFooter {
    position: relative;
    #contentFooterContact {
        position: relative;
        @include maxwidth(1200) {
            padding: 100px 60px;
            box-sizing: border-box;
        }
        @include maxwidth(768) {
            padding-top: 60px;
            padding-left: 20px;
            padding-right: 20px;
        }
        .bgImage {
            @include absolute_centering;
            overflow: hidden;
            & > span {
                display: block;
                width: 100%;
                height: 100%;
                background-size: cover;
                background-position: center center;
                background-repeat: no-repeat;
                &::before {
                    content: "";
                    @include absolute_centering;
                    background-color: rgba(#000000, 0.5);
                }
            }
        }
        .container {
            color: $themetextcolor;
            display: flex;
            position: relative;
            $bordercolor: rgba($themetextcolor, 0.5);
            @include maxwidth(1200) {
                flex-direction: column;
            }
            & > * {
                flex-basis: 50%;
                @include maxwidth(1200) {
                    flex-basis: auto;
                }
                &:nth-child(1) {
                    border-right: 1px solid $bordercolor;
                    @include maxwidth(1200) {
                        border-right: none;
                    }
                }
            }
            .head {
                display: flex;
                align-items: center;
                padding-left: calc((120 / 1440) * 100%);
                @include maxwidth(1200) {
                    padding-left: 0;
                }
                box-sizing: border-box;
                .heading {
                    h2 {
                    }
                }
            }
            .body {
                @include maxwidth(1200) {
                    margin-top: 30px;
                }
                .contact-buttons {
                    @include maxwidth(1200) {
                        border: solid 1px $bordercolor;
                    }
                }
                .contact-button {
                    &:not(:first-child) {
                        border-top: 1px solid $bordercolor;
                    }
                    &__link {
                        --contact-link__maragin: calc((120 / 1440) * 100vw);
                        @include maxwidth(768) {
                            --contact-link__maragin: 20px;
                        }
                        @include maxwidth(360) {
                            --contact-link__maragin: 0.8em;
                        }
                        @include f_all(13);
                        line-height: normal;
                        font-weight: 700;
                        display: flex;
                        align-items: center;
                        flex-wrap: wrap;
                        padding-top: 20px;
                        padding-bottom: 20px;
                        padding-left: 60px;
                        padding-right: var(--contact-link__maragin);
                        box-sizing: border-box;
                        min-height: 120px;
                        @include maxwidth(1200) {
                            padding-left: var(--contact-link__maragin);
                        }
                        @include maxwidth(768) {
                            flex-direction: column;
                            align-items: center !important;
                            justify-content: center !important;
                        }
                        &:hover,
                        &:focus {
                            .common-button {
                                &::before,
                                &::after {
                                    background-color: $themetextcolor;
                                    transform: scaleX(1);
                                }
                                &__link {
                                    background-color: transparent;
                                    &::before {
                                    }
                                    &::after {
                                        transform: translateX(3px);
                                    }
                                }
                            }
                        }
                    }
                    &.--address {
                        .contact-button__link {
                            justify-content: space-between;
                            gap: 15px 1em;
                            .address {
                                font-weight: 700;
                                @include maxwidth(768) {
                                    text-align: center;
                                }
                                p {
                                    br.sp {
                                        display: none;
                                        @include maxwidth(768) {
                                            display: block;
                                        }
                                    }
                                }
                            }
                            .common-button {
                            }
                        }
                    }
                    &.--tel {
                        .contact-button__link {
                            justify-content: center;
                            align-items: flex-start;
                            flex-direction: column;
                            span.telnum {
                                @include f_all(12);
                                font-weight: 700;
                                line-height: 1;
                                strong {
                                    @include f_all(30);
                                    @include maxwidth(420) {
                                        @include f_all(28);
                                    }
                                    @include maxwidth(360) {
                                        @include f_all(26);
                                    }
                                    font-weight: 700;
                                    margin-left: 5px;
                                }
                            }
                            span.teltime {
                                @include f_all(13);
                                @include maxwidth(420) {
                                    @include f_all(12);
                                }
                                font-weight: 700;
                                line-height: 1.2;
                                margin-top: 8px;
                            }
                        }
                    }
                    &.--form {
                        .contact-button__link {
                            justify-content: space-between;
                            gap: 23px 1em;
                            @include maxwidth(1024) {
                                padding-top: 40px;
                            }
                            span.t {
                                display: inline-flex;
                                align-items: center;
                                &::before {
                                    content: "";
                                    display: inline-block;
                                    width: 16px;
                                    height: 11px;
                                    background: url(../images/icon-mail-white.svg) no-repeat center center/contain;
                                    margin-right: 12px;
                                    @include maxwidth(768) {
                                        margin-right: 9px;
                                    }
                                    margin-top: 0.05em;
                                }
                            }
                            span.common-button {
                            }
                        }
                    }
                }
            }
        }
    }
}

/* フッター */
footer {
    #footer {
        padding-top: 60px;
        padding-bottom: 80px;
        @include maxwidth(768) {
            padding-top: 50px;
        }
        box-sizing: border-box;
        background-color: $basetextcolor;
        position: relative;
        div.container {
            color: $themetextcolor;
            @include container(1200, 60);
            display: flex;
            flex-wrap: wrap;
            @include maxwidth(1200) {
                & > * {
                    flex-basis: 100% !important;
                }
            }
            @include maxwidth(768) {
                margin-left: 20px;
                margin-right: 20px;
            }
            .footer {
                &-description {
                    flex-basis: 282px;
                }
                &-sitename {
                    @include maxwidth(1200) {
                        @include flex_centering;
                    }
                    a {
                        img {
                            width: 164px;
                            @include maxwidth(420) {
                                width: 150px;
                            }
                        }
                    }
                }
                &-address {
                    @include f_all(13);
                    line-height: 1.5;
                    margin-top: 8px;
                    @include maxwidth(1200) {
                        text-align: center;
                        margin-top: 10px;
                    }
                }
                &-menu {
                    flex-grow: 1;
                    flex-basis: auto;
                    display: flex;
                    justify-content: flex-end;
                    @include maxwidth(1200) {
                        display: block;
                        margin-top: 30px;
                    }
                    div.menu {
                        @include f_all(14);
                        line-height: 1.2;
                        @media screen and (min-width: 1201px) {
                            min-width: 80px;
                            &:not(:last-child) {
                                margin-right: 60px;
                            }
                        }
                        @include maxwidth(1200) {
                            &:not(:first-child) {
                                margin-top: 1px;
                            }
                        }
                        a.instagram {
                            &::before {
                                width: 15px;
                                height: 15px;
                                background: url(../images/icon-instagram-white.svg) no-repeat center center/contain;
                                margin-right: 5px;
                                @include maxwidth(1200) {
                                    background-image: url(../images/icon-instagram-black.svg);
                                }
                            }
                        }
                        & > ul {
                            & > li {
                                &:not(:first-child) {
                                    margin-top: 1em;
                                    @include maxwidth(1200) {
                                        margin-top: 1px;
                                    }
                                }
                                & > a {
                                    display: inline-flex;
                                    align-items: center;
                                    &::before {
                                        content: "";
                                        display: inline-block;
                                        width: 12px;
                                        height: 12px;
                                        background: url(../images/mark-white.svg) no-repeat center center/contain;
                                        margin-right: 8px;
                                        @include maxwidth(1200) {
                                            background-image: url(../images/mark-black.svg);
                                        }
                                    }
                                }
                                & > ul {
                                    padding-top: 10px;
                                    @include maxwidth(1200) {
                                        padding-top: 1px;
                                    }
                                    & > li {
                                        @media screen and (min-width: 1201px) {
                                            line-height: 2;
                                        }
                                        @include maxwidth(1200) {
                                            &:not(:first-child) {
                                                margin-top: 1px;
                                            }
                                        }
                                        & > a {
                                            display: inline-flex;
                                            align-items: center;
                                            &::before {
                                                content: "-";
                                                margin-left: 0.2em;
                                                margin-right: 0.8em;
                                                @include maxwidth(1200) {
                                                    content: "";
                                                    display: inline-block;
                                                    width: 10px;
                                                    height: 1px;
                                                    background-color: currentColor;
                                                    margin-left: 0;
                                                    margin-right: 0.6em;
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                        @include maxwidth(1200) {
                            color: $basetextcolor;
                            font-weight: 500;
                            ul {
                                li {
                                    a {
                                        display: flex !important;
                                        padding: 0.5em 35px 0.5em 20px;
                                        box-sizing: border-box;
                                        background-color: $themetextcolor;
                                        min-height: 45px;
                                        position: relative;
                                        &::after {
                                            content: "";
                                            display: inline-block;
                                            width: 8px;
                                            height: 8px;
                                            background: url(../images/arrow-black.svg) no-repeat center center/contain;
                                            position: absolute;
                                            top: 0;
                                            bottom: 0;
                                            right: 20px;
                                            margin: auto;
                                            transition-property: transform;
                                            transition-duration: 0.3s;
                                        }
                                        &:hover,
                                        &:focus {
                                            opacity: 0.8;
                                            &::after {
                                                transform: translateX(3px);
                                            }
                                        }
                                    }
                                }
                            }
                            & > ul {
                                & > li {
                                    & > a {
                                    }
                                    & > ul {
                                        & > li {
                                            & > a {
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
                &-banner {
                    flex-basis: 100%;
                    margin-top: 25px;
                    ul {
                        display: flex;
                        align-items: center;
                        justify-content: flex-end;
                        flex-wrap: wrap;
                        gap: 5px 15px;
                        @include maxwidth(1200) {
                            flex-direction: column;
                            justify-content: flex-start;
                        }
                        li {
                            a {
                                &>img {  }
                            }
                        }
                    }
                }
                &-copyRight {
                    flex-basis: 100%;
                    display: flex;
                    justify-content: flex-end;
                    // margin-top: 80px;
                    margin-top: 35px;
                    @include maxwidth(1200) {
                        justify-content: center;
                        // margin-top: 40px;
                    }
                    small {
                        @include f_all(12);
                        font-weight: 300;
                    }
                }
            }
        }
    }
}

/* Content
    ==================================================================*/
#content {
    /* TopPage
    ==================================================================*/
    #toppageService {
        padding-top: 92px;
        @include maxwidth(768) {
            padding-top: 68px;
        }
        position: relative;
        .container {
            @include container(1200, 60);
            @include maxwidth(768) {
                margin-left: 20px;
                margin-right: 20px;
            }
            .heading {
                .leadtext {
                    @include f_all(18);
                    @include maxwidth(420) {
                        @include f_all(16);
                    }
                    font-weight: 700;
                    display: flex;
                    justify-content: center;
                }
            }
            .body {
                margin-top: 30px;
                @include maxwidth(768) {
                    margin-top: 20px;
                }
                .service-list {
                    ul {
                        display: flex;
                        flex-wrap: wrap;
                        --service-list-gap: 13px;
                        @include maxwidth(768) {
                            --service-list-gap: 5px;
                        }
                        gap: var(--service-list-gap);
                        li {
                            flex-basis: calc((100% - (var(--service-list-gap) * 3)) / 4);
                            @include maxwidth(1200) {
                                flex-basis: calc((100% - (var(--service-list-gap) * 1)) / 2);
                            }
                            @include maxwidth(768) {
                                flex-basis: 100%;
                                min-height: 120px;
                            }
                            overflow: hidden;
                            position: relative;
                            a {
                                & > * {
                                    display: block;
                                }
                                &:hover,
                                &:focus {
                                    .thumb {
                                        & > span {
                                            transform: scale(1.1);
                                        }
                                    }
                                    .title {
                                        color: $basetextcolor;
                                        background-color: rgba($themetextcolor, 0.5);
                                        &::after {
                                            transform: translateX(3px);
                                            @media screen and (min-width: 769px) {
                                                background-image: url(../images/arrow-black.svg);
                                            }
                                            @include maxwidth(768) {
                                                background-color: $themecolor;
                                            }
                                        }
                                    }
                                }
                                .thumb {
                                    padding-top: 100%;
                                    @include maxwidth(768) {
                                        padding-top: 35.8%;
                                    }
                                    overflow: hidden;
                                    box-sizing: border-box;
                                    & > span {
                                        @include absolute_centering;
                                        display: block;
                                        height: 100%;
                                        background-size: cover;
                                        background-position: center center;
                                        background-repeat: no-repeat;
                                        transition-property: transform;
                                        transition-duration: 0.3s;
                                    }
                                }
                                .title {
                                    color: $themetextcolor;
                                    @include f_all(14);
                                    line-height: 1.2;
                                    font-weight: 700;
                                    display: flex;
                                    align-items: center;
                                    justify-content: space-between;
                                    gap: 1em;
                                    background-color: $basetextcolor;
                                    padding: 0.8em 20px;
                                    box-sizing: border-box;
                                    min-height: 60px;
                                    position: absolute;
                                    right: 0;
                                    bottom: 0;
                                    left: 0;
                                    z-index: 1;
                                    transition-duration: 0.3s;
                                    @include maxwidth(768) {
                                        color: $themetextcolor;
                                        @include f_all(15);
                                        line-height: normal;
                                        text-align: center;
                                        top: 0;
                                        margin: auto;
                                        justify-content: center;
                                        min-height: auto;
                                        background-color: rgba($basetextcolor, 0.5);
                                    }
                                    &::after {
                                        content: "";
                                        display: inline-block;
                                        width: 10px;
                                        height: 11px;
                                        background: url(../images/arrow-white.svg) no-repeat center center/contain;
                                        transition-duration: 0.3s;
                                        @include maxwidth(768) {
                                            width: 40px;
                                            height: 40px;
                                            border-radius: 9999px;
                                            background-size: 8px;
                                            background-color: $basetextcolor;
                                            position: absolute;
                                            right: 8px;
                                            bottom: 8px;
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }

    #toppageBusiness {
        padding-top: 100px;
        @include maxwidth(786) {
            padding-top: 50px;
        }
        position: relative;
        .container {
            .heading.common-heading {
                &::after {
                    @include maxwidth(768) {
                        height: 20px;
                    }
                }
            }
            .body {
                margin-top: 18px;
                @include maxwidth(1024) {
                    margin-top: 0;
                }
                .business-card__list {
                    --business-padding: 80px calc((120 / 1440) * 100vw) 57px;
                    @include maxwidth(1024) {
                        --business-padding: 120px 60px 80px;
                    }
                    @include maxwidth(768) {
                        --business-padding: 120px 20px 80px;
                    }
                    ul {
                        li {
                            counter-increment: listnum;
                            position: relative;
                            @include maxwidth(1024) {
                                &::before,
                                &::after {
                                    position: absolute;
                                    z-index: 1;
                                    left: 0;
                                    right: 0;
                                    margin: auto;
                                }
                                &::before {
                                    content: counter(listnum, decimal-leading-zero);
                                    color: $themetextcolor;
                                    @include f_all(16);
                                    font-weight: 900;
                                    top: 35px;
                                    display: flex;
                                    justify-content: center;
                                    opacity: 0;
                                    transform: translateY(100%);
                                    transition-property: opacity, transform;
                                    transition-duration: 1s;
                                }
                                &::after {
                                    content: "";
                                    display: inline-block;
                                    width: 1px;
                                    height: 20px;
                                    background-color: $themetextcolor;
                                    top: 0;
                                }
                            }
                            &.is-active {
                                a {
                                    .docs-container {
                                        &::before {
                                            opacity: 1;
                                            transform: translateX(0);
                                        }
                                    }
                                }
                                @include maxwidth(1024) {
                                    &::before {
                                        opacity: 1;
                                        transform: translateY(0);
                                    }
                                }
                            }
                            a {
                                & > * {
                                    display: block;
                                }
                                &:hover,
                                &:focus {
                                    .bgImage {
                                        & > span {
                                            transform: scale(1.1);
                                        }
                                    }
                                    .docs {
                                        .common-button {
                                            &::before,
                                            &::after {
                                                transform: scaleX(1);
                                            }
                                            &__link {
                                                background-color: transparent;
                                                &::before {
                                                }
                                                &::after {
                                                    transform: translateX(3px);
                                                }
                                            }
                                        }
                                    }
                                }
                                .bgImage {
                                    @include absolute_centering;
                                    overflow: hidden;
                                    clip-path: inset(0);
                                    & > span {
                                        position: fixed;
                                        inset: 0;
                                        display: block;
                                        width: 100%;
                                        height: 100%;
                                        background-size: cover;
                                        background-position: center center;
                                        background-repeat: no-repeat;
                                        transition-property: transform;
                                        transition-duration: 0.3s;
                                    }
                                }
                                .docs {
                                    width: 50%;
                                    overflow: hidden;
                                    padding: var(--business-padding);
                                    box-sizing: border-box;
                                    background-color: rgba(#000000, 0.5);
                                    @include maxwidth(1024) {
                                        background-color: rgba(#000000, 0.6);
                                    }
                                    position: relative;
                                    @include maxwidth(1024) {
                                        width: 100%;
                                    }
                                    &-container {
                                        color: $themetextcolor;
                                        display: block;
                                        // max-width: 285px;
                                        max-width: calc((285 / 1440) * 100vw);
                                        width: 100%;
                                        margin-left: auto;
                                        margin-right: 0;
                                        @include maxwidth(1024) {
                                            max-width: 600px;
                                            margin-right: auto;
                                        }
                                        .common-buttons {
                                            margin-top: 20px;
                                            @include maxwidth(1024) {
                                                @include flex_centering;
                                                margin-top: 30px;
                                            }
                                        }
                                        &::before {
                                            content: counter(listnum, decimal-leading-zero);
                                            @include f_all(320);
                                            color: rgba(#ced7dc, 0.2);
                                            @include maxwidth(1024) {
                                                color: rgba($themetextcolor, 0.08);
                                            }
                                            font-weight: 700;
                                            position: absolute;
                                            top: 0;
                                            bottom: 0.15em;
                                            left: -0.28em;
                                            margin: auto;
                                            @include flex_centering;
                                            opacity: 0;
                                            transform: translateX(-100%);
                                            transition-property: transform;
                                            transition-duration: 1s;
                                        }
                                    }
                                    &-heading {
                                        @include f_all(18);
                                        line-height: 1.2;
                                        font-weight: 700;
                                        @include maxwidth(1024) {
                                            @include flex_centering;
                                        }
                                    }
                                    &-text {
                                        @include f_all(14);
                                        line-height: 1.8;
                                        display: block;
                                        margin-top: 14px;
                                        @include maxwidth(1024) {
                                            @include flex_centering;
                                            margin-top: 20px;
                                        }
                                    }
                                }
                            }
                            &:nth-child(odd) {
                                a .docs {
                                    margin-left: 0;
                                    margin-right: auto;
                                }
                            }
                            &:nth-child(even) {
                                a .docs {
                                    margin-right: 0;
                                    margin-left: auto;
                                }
                            }
                        }
                    }
                }
            }
        }
    }

    #toppageProperties {
        padding-top: 90px;
        padding-bottom: 96px;
        @include maxwidth(768) {
            padding-top: 53px;
            padding-bottom: 80px;
        }
        position: relative;
        --properties-side-margin: calc((120 / 1440) * 100%);
        @include maxwidth(1024) {
            --properties-side-margin: 60px;
        }
        @include maxwidth(768) {
            --properties-side-margin: 20px;
        }
        .container {
            .head {
                padding-left: var(--properties-side-margin);
                padding-right: var(--properties-side-margin);
                box-sizing: border-box;
                display: flex;
                align-items: center;
                justify-content: space-between;
                .heading.common-heading {
                    flex-shrink: 0;
                }
                .common-buttons {
                }
            }
            .body {
                .common-term-list {
                    padding-top: 32px;
                    padding-left: var(--properties-side-margin);
                    padding-right: var(--properties-side-margin);
                    box-sizing: border-box;
                    ul {
                        li {
                            a {
                            }
                        }
                    }
                }
                .common-headline.--top[data-post-type="properties"] {
                    margin-top: 30px;
                    @include maxwidth(768) {
                        margin-top: 20px;
                    }
                    .swiper.properties-swiper {
                        padding-left: var(--properties-side-margin);
                        padding-right: var(--properties-side-margin);
                        box-sizing: border-box;
                        .swiper-wrapper {
                            .swiper-slide {
                                a {
                                    .thumb {
                                        & > span {
                                        }
                                    }
                                    .docs {
                                        .title {
                                        }
                                        .terms {
                                            .term {
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }

    #toppageAboutus {
        padding: 100px 60px;
        @include maxwidth(768) {
            padding-left: 20px;
            padding-right: 20px;
        }
        box-sizing: border-box;
        position: relative;
        .bgImage {
            overflow: hidden;
            @include absolute_centering;
            clip-path: inset(0);
            & > span {
                position: fixed;
                inset: 0;
                display: block;
                width: 100%;
                height: 100%;
                background-size: cover;
                background-position: center center;
                background-repeat: no-repeat;
                &::before {
                    content: "";
                    @include absolute_centering;
                    background-color: rgba(#000000, 0.5);
                    @include maxwidth(1024) {
                        background-color: rgba(#000000, 0.6);
                    }
                }
            }
        }
        .container {
            position: relative;
            .heading.common-heading {
            }
            .body {
                color: $themetextcolor;
                // 途中まで可変で対応。
                width: clamp(360px, 25vw, 600px);
                @include maxwidth(768) {
                    width: 100%;
                    max-width: 600px;
                }
                margin-top: 20px;
                margin-left: auto;
                margin-right: auto;
                .leadtext {
                    @include f_all(18);
                    @include maxwidth(420) {
                        @include f_all(16);
                    }
                    line-height: normal;
                    font-weight: 700;
                    display: flex;
                    justify-content: center;
                }
                .text {
                    @include f_all(14);
                    line-height: 1.8;
                    margin-top: 10px;
                }
                .common-buttons {
                    justify-content: center;
                    margin-top: 20px;
                }
            }
        }
    }

    #toppageNewstopics {
        padding-top: 100px;
        padding-bottom: 96px;
        @include maxwidth(786) {
            padding-top: 53px;
            padding-bottom: 70px;
        }
        position: relative;
        .container {
            @include container(1200, 60);
            @include maxwidth(768) {
                margin-left: 20px;
                margin-right: 20px;
            }
            .head {
                display: flex;
                align-items: center;
                justify-content: space-between;
                flex-wrap: wrap;
                gap: 1em;
                @include maxwidth(360) {
                    flex-direction: column;
                    justify-content: center;
                }
                .common-heading {
                    flex-shrink: 0;
                }
                .common-buttons {
                }
            }
            .body {
                margin-top: 50px;
                @include maxwidth(360) {
                    margin-top: 30px;
                }
                .headline.--top[data-post-type="newstopics"] {
                }
            }
        }
    }

    #toppageInstagram {
        padding-bottom: 60px;
        @include maxwidth(1200) {
            padding-bottom: 0;
        }
        position: relative;
        .container {
            @include container(1200, 60);
            @include maxwidth(1200) {
                margin-left: 0;
                margin-right: 0;
            }
            .group {
                padding: 40px calc((90 / 1440) * 100vw) 58px;
                @include maxwidth(1200) {
                    padding-left: 60px;
                    padding-right: 60px;
                }
                @include maxwidth(768) {
                    padding: 50px 20px;
                }
                box-sizing: border-box;
                background-color: $themecolor;
                &-container {
                    .head {
                        display: flex;
                        align-items: center;
                        justify-content: space-between;
                        .heading {
                            flex-shrink: 0;
                            display: inline-flex;
                            align-items: center;
                            &::before,
                            &::after {
                                content: "";
                                display: inline-block;
                            }
                            &::before {
                                width: 15px;
                                height: 15px;
                                background: url(../images/icon-instagram-white.svg) no-repeat center center/contain;
                                margin-right: 10px;
                                margin-bottom: 0.25em;
                            }
                            &::after {
                                width: 20px;
                                height: 1px;
                                background-color: $themetextcolor;
                                margin-left: 10px;
                                margin-bottom: 0.3em;
                            }
                            h2 {
                                img {
                                }
                            }
                        }
                        .common-button {
                            @include maxwidth(768) {
                                display: none;
                            }
                        }
                    }
                    .body {
                        margin-top: 20px;
                        ul {
                            display: flex;
                            justify-content: center;
                            flex-wrap: wrap;
                            gap: 20px;
                            @include maxwidth(768) {
                                gap: 10px;
                            }
                            li {
                                flex-basis: calc((100% - (20px * 3)) / 4);
                                @include maxwidth(786) {
                                    flex-basis: calc((100% - 10px) / 2);
                                }
                                a {
                                    img {
                                        width: 100%;
                                        height: 100%;
                                        object-fit: cover;
                                    }
                                }
                            }
                        }

                        .common-buttons.--mobile {
                            @media screen and (min-width: 769px) {
                                display: none;
                            }
                            justify-content: center;
                            margin-top: 20px;
                        }
                    }
                }
            }
        }
    }

    /* SubPage
    ==================================================================*/
    body.subpage & {
        --site-margin: calc((120 / 1440) * 100%);
        @include maxwidth(1200) {
            --site-margin: 60px;
        }
        @include maxwidth(768) {
            --site-margin: 20px;
        }
        padding-top: 125px;
        position: relative;
        &::before {
            content: "";
            display: inline-block;
            width: 40px;
            @include maxwidth(768) {
                width: 10px;
            }
            background-color: $themecolor1;
            position: absolute;
            top: 0;
            bottom: 0;
            left: 0;
            margin: auto;
        }
    }
    /* SubpageContent */
    #subpageContent {
        padding-top: 60px;
        padding-bottom: 120px;
        @include maxwidth(768) {
            padding-top: 45px;
            padding-bottom: 80px;
        }
        position: relative;
        .container {
            @include container(1260, 60);
            @include maxwidth(768) {
                margin-left: 20px;
                margin-right: 20px;
            }
            display: flex;
            @include maxwidth(1024) {
                display: block;
            }
            .default {
                @include contentdefault;
                @include eachcss;
                a:hover {
                    opacity: 0.8;
                }
            }
            #defaultWrapper {
                flex-basis: 800px;
                position: relative;
                z-index: 1;
                min-height: 400px;
                @include maxwidth(1024) {
                    margin-left: auto;
                    margin-right: auto;
                }
                &.has-archive {
                    // アーカイブページのみ幅を変更
                    body.post-type-archive-properties &,
                    body.tax-propertiescategory & {
                        flex-basis: 100% !important;
                    }

                    /* サイドバーを消す */
                    .common-term-list,
                    .monthly_archive_link {
                        display: none;
                        @include maxwidth(1024) {
                            display: block;
                        }
                    }
                    .common-headline {
                        @include maxwidth(1024) {
                            margin-top: 40px;
                        }
                    }
                }
            }
            #subpagePageslug {
                position: absolute;
                top: 0;
                bottom: 0;
                right: -1%;
                margin: auto;
                @include maxwidth(1024) {
                    display: none;
                }
                .page-slug {
                    &-text {
                        color: #f8f9fa;
                        // @include f_all(180);
                        font-size: clamp(100px, 10vw, 150px);
                        font-weight: 700;
                        white-space: nowrap;
                        width: 1em;
                        writing-mode: vertical-rl;
                        text-transform: capitalize;
                    }
                }
            }
            #sidebar {
                flex-shrink: 0;
                flex-basis: 180px;
                margin-right: 50px;
                @include maxwidth(1024) {
                    display: none;
                }
                .sidebar-container {
                    position: sticky;
                    top: 8vh;
                    body.admin-bar & {
                        top: calc(8vh + 32px);
                    }
                    @include f_all(13);
                    font-weight: 500;
                    ul {
                        li {
                            a {
                                display: flex;
                                align-items: center;
                                padding: 10px 20px 10px 5px;
                                box-sizing: border-box;
                                border-bottom: solid 1px $themecolor1;
                                position: relative;
                                transition: 0.3s;
                                &:hover,
                                &:focus {
                                    background-color: mix($themecolor, $basecolor, 0.1);
                                }
                                &::before,
                                &::after {
                                    content: "";
                                    display: inline-block;
                                }
                                &::after {
                                    width: 8px;
                                    height: 8px;
                                    background: url(../images/arrow-black.svg) no-repeat center center/contain;
                                    position: absolute;
                                    top: 0;
                                    bottom: 0;
                                    right: 5px;
                                    margin: auto;
                                    transition: 0.3s;
                                }
                            }
                        }
                    }
                    & > ul {
                        &:not(:first-child) {
                            margin-top: 1em;
                        }
                        & > li {
                            & > a {
                                &.ttl {
                                    @include f_all(14);
                                    font-weight: 700;
                                    &::before {
                                        flex-shrink: 0;
                                        width: 12px;
                                        height: 12px;
                                        border-radius: 9999px;
                                        background: url(../images/mark-color.svg) no-repeat center center/contain $basecolor;
                                        margin-right: 12px;
                                    }
                                    &::after {
                                        body.menubutton_scrollout.page &  {
                                            transform: rotate(-90deg) !important;
                                        }
                                    }
                                    &.current {
                                        // color: currentColor;
                                        // pointer-events: none;
                                        // background-color: transparent;
                                        // border-color: $themecolor1;
                                        // &::before {
                                        // }
                                        // &::after {
                                        //     background-image: url(../images/arrow-black.svg);
                                        //     transform: rotate(0);
                                        // }
                                    }
                                }
                                &::before {
                                    width: 1em;
                                    height: 1px;
                                    background-color: currentColor;
                                    margin-right: 0.8em;
                                }
                                &.current,
                                &[aria-current="page"] {
                                    pointer-events: none;
                                    color: $themetextcolor;
                                    background-color: $themecolor;
                                    border-color: $themecolor;
                                    &::after {
                                        background-image: url(../images/arrow-white.svg);
                                        transform: rotate(0);
                                    }
                                }
                                // H4
                                &.label_4 {
                                    &::before {
                                        content: '-';
                                        width: auto;
                                        height: auto;
                                        background: none;
                                    }
                                    &.current {
                                    }
                                }
                                &.is_same {
                                    &::after {
                                        transform: rotate(0deg);
                                    }
                                }
                                &.is_non_active {
                                    &::after {
                                        transform: rotate(90deg);
                                    }
                                }
                                &.is_active {
                                    &::after {
                                        transform: rotate(-90deg) !important;
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
    /* SubpageHeading */
    #subpageHeading {
        position: relative;
        .container {
            padding-left: var(--site-margin);
            .common-heading {
                h2 {
                }
            }
        }
    }
    /* TopicPath */
    #subpageTopicPath {
        @include f_all(14);
        line-height: 1.2;
        @include maxwidth(520) {
            @include f_all(12);
        }
        text-transform: capitalize;
        font-weight: 700;
        width: calc(100% - var(--site-margin));
        margin-top: 24px;
        position: relative;
        div.container {
            padding-top: 15px;
            padding-bottom: 15px;
            padding-left: var(--site-margin);
            padding-right: 1em;
            box-sizing: border-box;
            background-color: $themecolor1;
            ul {
                padding-left: 30px;
                li {
                    display: inline-flex;
                    align-items: center;
                    &::after {
                        content: "";
                        width: 5px;
                        height: 8px;
                        background: url(../images/arrow-single-black.svg) no-repeat center center/contain;
                        margin-right: 0.45em;
                        margin-left: 0.7em;
                        margin-top: 0.2em;
                    }
                    &:last-child {
                        &::after {
                            display: none;
                        }
                    }
                    a {
                    }
                }
            }
        }
    }
    /* Pager */
    div.pager {
        text-align: center;
        margin: 60px 0 40px;
        @include f_all(13);
        a,
        span {
            display: inline-block;
            margin: 0 0 0.25em 0.75em;
            min-width: 3em;
            padding: 1em;
            box-sizing: border-box;
            color: $basetextcolor;
            background-color: $themecolor1;
            border-radius: 10px;
        }
        & .current {
            color: $themetextcolor;
            background-color: $themecolor;
        }
    }
    /* Archivelink */
    div.monthly_archive_link {
        @include container(800, 10);
        margin-top: 50px;
        @include f_all(13);
        a.show_archive_links {
            font-weight: 600;
            display: block;
            width: 200px;
            height: 30px;
            display: flex;
            justify-content: center;
            align-items: center;
            background-color: mix($themecolor1, $basecolor, 0.7);
            margin: auto;
            border-radius: 50px;
            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 {
                    font-weight: 500;
                    display: block;
                    background-color: mix($themecolor1, $basecolor, 0.7);
                    padding: 7px 0;
                    border-radius: 50px;
                }
            }
        }
    }
}
#subpageContent{
    .container{
        .default.page-business_child{
            figure.is-style-businessflow{
                table{
                    tbody{
                        tr{
                            display: flex;
                            align-items: center;
                            margin-bottom: 1.5em;
                            @include maxwidth(680) {
                                display: block;
                            }
                            &:last-child{
                                // margin-bottom: 0;
                            }
                            td{
                                background-color: #fff;
                                border: none;
                                @include f_all(14,"",18);
                                min-height: 90px;
                                display: flex;
                                align-items: center;
                                // box-sizing: border-box;
                                @include maxwidth(680) {
                                    min-height: auto;
                                    @include f_all(14,"",20);
                                }
                                &:first-child{
                                    color: $basetextcolor;
                                    font-weight: bold;
                                    background-color: #dce3e6;
                                    flex: 0 1 35%;
                                    padding: 1em 2em 1em 4em!important;
                                    border: 1px solid #dce3e6;
                                    position: relative;
                                    @include maxwidth(680) {
                                        padding: 1em 1em 1em 4em!important;
                                    }
                                    strong{
                                        position: absolute;
                                        z-index: 1;
                                        color: #fff;
                                        left: 1.45em;
                                    }
                                    &::after{
                                        content: "";
                                        position: absolute;
                                        width: 2em;
                                        height: 2em;
                                        background-color: $basetextcolor;
                                        top: calc(50% - 1em);
                                        left: 1em;
                                    }
                                }
                                &:nth-child(2){
                                    flex: 0 1 65%;
                                    padding: 1em 2em 1em 2em!important;
                                    border: 1px solid #CED7DC;
                                    text-align: justify;
                                    @include maxwidth(680) {
                                        padding: 1em!important;
                                    }
                                }
                            }
                            &:not(:first-child){
                                td{
                                    &:first-child{
                                        &::before{
                                            content: "";
                                            position: absolute;
                                            width: 1px;
                                            height: 1.4em;
                                            border-left: 3px dotted $themecolor1;
                                            top: -1.55em;
                                            left: 1.8em;
                                            @include maxwidth(680) {
                                                left: 0;
                                                right: 0;
                                                margin: auto;
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}

// json形式で取得したエムズ記事をスタイルするクラス
// エムズのサイトからとっているのがわかるようにスタイルはエムズのをほぼコピー
.json-headline {
    font-family: Lato, "メイリオ", sans-serif;
    ul {
        display: flex;
        flex-wrap: wrap;
        gap: 30px 10px;
        margin-left: 0 !important;
        li {
            list-style: none;
            flex-basis: calc((100% - (10px * 3)) / 4);
            @include maxwidth(768) {
                flex-basis: calc((100% - 10px) / 2);
            }
            a {
                text-decoration: none !important;
                &:hover {
                }
                .thumb {
                    padding-top: 100%;
                    position: relative;
                    & > span {
                        @include absolute_centering;
                        display: block;
                        height: 100%;
                        background-size: cover;
                        background-position: center center;
                        background-repeat: no-repeat;
                    }
                }
                .docs {
                    padding-top: 10px;
                    & > * {
                        display: block;
                    }
                    .terms {
                        @include f_all(11);
                        letter-spacing: 0.04em;
                        line-height: 1.27273;
                        opacity: 0.5;
                        .term {
                        }
                    }
                    .title {
                        @include f_all(14);
                        letter-spacing: 0.04em;
                        line-height: 1.28571;
                        margin-top: 5px;
                    }
                }
            }
        }
    }
}
