/* ------------------------------
    works
--------------------------------*/
/* header */

@media (min-width: 768px) {
    .l-header__head {
        display: grid;
        grid-template-columns: auto 1fr auto auto;
        grid-template-rows: auto 1fr;
    }

    .l-header .l-header__head:before {
        opacity: 1;
        background: linear-gradient(0deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.6) 50% ,var(--color-white01) 100%);
    }

    .l-header__head .l-header__logo {
        grid-row: 1/3;
    }

    .l-header__head .works_navList {
        grid-column: 2/4;
        grid-row: 2/3;
        display: grid !important;
        grid-template-columns: repeat(10, 121px);
        align-items: center;
        position: relative;
        border-right: 1px solid var(--color-black02-07);
        margin: 20px 0 0 auto;
        z-index: -1;
    }

    .l-header__head .works_navList .item {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        border-left: 1px solid var(--color-black02-07);
    }

    .l-header__head .works_navList .item a {
        color: var(--color-black02);
        font-size: 12px;
        font-weight: 400;
        line-height: 1.5;
        letter-spacing: 0;
        pointer-events: auto;
        transition: opacity .4s var(--ease-out-sine);
    }

    .l-header__head .works_navList .item a:hover {
        opacity: .6;
    }
}

/* contents */
.mo-works .c-hdg-section--highlighted .c-hdg-section__main {
    display: flex;
}

@media (max-width: 767px) {
    .mo-works .c-hdg-section--highlighted .c-hdg-section__main {
        margin: 6px 0 0 0;
    }
}

.mo-works .p-works {
    margin: 134px 0 0;
}

@media (min-width: 768px) {
    .mo-works .p-works {
        margin: 140px 0 0;
    }
}

.mo-works .p-works .p-works__container.l-container {
    padding-inline: 10px;
}

@media (min-width: 768px) {
    .mo-works .p-works .p-works__container.l-container {
        padding-inline: 40px;
    }
}

.mo-works .p-works .categoryList {
    position: relative;
    z-index: 1;
    overflow: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

@media (min-width: 768px) {
    .mo-works .p-works .categoryList {
        margin: 40px 0 0;
    }
}

.mo-works .p-works .categoryList::-webkit-scrollbar {
    display: none
}

.mo-works .p-works .categoryList .l-container__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 34px 0;
}

@media (min-width: 768px) {
    .mo-works .p-works .categoryList .l-container__inner {
        gap: 40px 0;
    }
}

.mo-works .p-works .categoryList .searchBox {
    position: relative;
}

.mo-works .p-works .categoryList .search {
    border: 1px solid var(--color-black02-04);
    width: 100%;
    padding: 12px 15px 12px 45px;
}

@media (min-width: 768px) {
    .mo-works .p-works .categoryList .search {
        padding: 12px 15px 12px 50px;
    }
}

.mo-works .p-works .categoryList .searchBox::before {
    content: "";
    display: block;
    width: 15px;
    height: 15px;
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    background: var(--color-black02-07);
    mask: url(/wp-content/themes/mecdesign/assets/images/pages/icons/icon_search.svg) no-repeat center/contain
}

@media (min-width: 768px) {
    .mo-works .p-works .categoryList .searchBox::before {
        width: 20px;
        height: 20px;
        left: 15px;
    }
}

.mo-works .p-works .categoryList .search::placeholder {
    color: var(--color-black02-07);
    font-size: 12px;
}

@media (min-width: 768px) {
    .mo-works .p-works .categoryList .search::placeholder {
        font-size: 14px;
    }
}

.mo-works .p-works .categoryList__inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 11px;
}

@media (min-width: 768px) {
    .mo-works .p-works .categoryList__inner {
        grid-template-columns: repeat(auto-fit, 174px);
        gap: 10px;
    }
}

.mo-works .p-works .category-ttl {
    grid-column: 1/-1;
    font-size: 14px;
    line-height: 1.5;
    font-family: var(--font-serif);
}

@media (min-width: 768px) {
    .mo-works .p-works .category-ttl {
        font-size: 18px;
    }
}

.mo-works .p-works .categoryBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 25px;
    padding: 0 15px;
    font-size: 11px;
    color: rgba(var(--color-black-rgb), .7);
    letter-spacing: .02em;
    white-space: nowrap;
    background: var(--color-gray03);
    border-radius: 9999px;
}

@media (min-width: 768px) {
    .mo-works .p-works .categoryBtn {
        height: 50px;
        padding: 0 10px;
        font-size: 14px;
    }
}

@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
    .mo-works .p-works .categoryBtn:not(.isActive):hover {
        opacity: .6
    }
}

@media (min-width: 768px) {
    .mo-works .p-works .categoryBtn:not(.isActive) {
        transition: opacity .4s var(--ease-out-sine)
    }
}

.mo-works .p-works .categoryBtn.isActive {
    color: var(--color-white01);
    background: var(--color-red02)
}

.mo-works .p-works .categoryList .c-btn-primary {
    margin: 11px auto;
}

@media (min-width: 768px) {
    .mo-works .p-works .categoryList .c-btn-primary {
        margin: 0 auto;
    }
}

/* sp */
@media (max-width: 767px) {
    .mo-works .p-works .categoryList .c-btn-primary {
        color: var(--color-black02);
    }
}

.mo-works .p-works .categoryList .c-btn-close--theme-black {
    margin: 0 auto;
}

.mo-works .p-works .p-works__container {
    margin: 20px 0 0;
}

@media (min-width: 768px) {
    .mo-works .p-works .p-works__container {
        margin: 116px 0 0;
    }
}

.mo-works .p-works .searchCategory {
    font-size: 12px;
    letter-spacing: 0;
    line-height: 1.5;
    margin: 0 0 0 10px;
}

@media (min-width: 768px) {
    .mo-works .p-works .searchCategory {
        font-size: 13px;
        margin: 0 0 0 120px;
    }
}

.mo-works .p-works .gallery-layouts {
    margin: 12px 0 0;
}

@media (min-width: 768px) {
    .mo-works .p-works .gallery-layouts {
        margin: 16px 0 0;
    }
}

.mo-works .p-works .gallery-layout__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px 0;
}

.mo-works .p-works .gallery-layout {
    width: 100%;
}

@media (min-width: 768px) {
    .mo-works .p-works .gallery-layout__inner {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.875vw;
    }
}

@media (min-width: 768px) and (max-width: 1300px) {
    .mo-works .p-works .gallery-layout__inner {
        gap: 30px;
    }
}

.mo-works .p-works [class*="gallery-layout__item"] {
    aspect-ratio: 750/1432;
    overflow: hidden;
}

@media (min-width: 768px) {
    .mo-works .p-works .gallery-layout__item--size-column-1 {
        grid-column: span 1;
        aspect-ratio: 493.32/800;
    }

    .mo-works .p-works .gallery-layout__item--size-column-2 {
        grid-column: span 2;
        aspect-ratio: 1016.67/800;
    }

    .mo-works .p-works .gallery-layout__item--size-column-3 {
        grid-column: span 3;
        aspect-ratio: 1540/800;
    }
}

.mo-works .p-works .work {
    display: block;
    position: relative;
    height: 100%;
}

.mo-works .p-works .work__visual {
    position: relative;
    height: 100%;
}

.mo-works .p-works .work__visual:before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    content: "";
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    opacity: 1;
    z-index: 2;
}

.mo-works .p-works .work__visual picture {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.mo-works .p-works .work__visual picture::before,
.mo-works .p-works .work__visual picture::after {
    position: absolute;
    left: 0;
    width: 100%;
    height: 130px;
    content: "";
    background: linear-gradient(180deg, #000 0%, transparent 100%);
    opacity: .5;
    transition: opacity 0.3s;
    z-index: 1;
}

.mo-works .p-works .work__visual picture::after {
    bottom: 0;
    transform: rotate(180deg);
}

@media (min-width: 768px) {
    .mo-works .p-works .work__visual picture::before,
    .mo-works .p-works .work__visual picture::after {
        height: 300px;
    }
}

.mo-works .p-works .work__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 768px) {
    .mo-works .p-works .work__visual img {
        transition: filter .6s var(--ease-out-sine), transform .6s var(--ease-out-sine);
    }
}

.mo-works .p-works .work__visual.is-active:before {
    opacity: 0;
    transition: opacity .4s var(--ease-out-sine)
}

.mo-works .p-works .work__contents {
    position: absolute;
    bottom: 20px;
    left: 15px;
    z-index: 2;
}

@media (min-width: 768px) {
    .mo-works .p-works .work__contents {
        bottom: 30px;
        left: 30px;
    }
}

.mo-works .p-works .work__sub-ttl {
    font-family: var(--font-serif);
    font-size: 13px;
    color: var(--color-white01-06);
    letter-spacing: 0;
}

@media (min-width: 768px) {
    .mo-works .p-works .work__sub-ttl {
        font-size: 15px
    }
}

.mo-works .p-works .work__main-ttl {
    margin: 7px 0 0;
    font-family: var(--font-serif);
    font-size: 18px;
    color: var(--color-white01);
    font-weight: 400;
    letter-spacing: 0;
}

@media (min-width: 768px) {
    .mo-works .p-works .work__main-ttl {
        margin: 3px 0 0;
        font-size: 20px
    }
}

.mo-works .p-works .work__info {
    margin: 7px 0 0;
    font-size: 10px;
    color: var(--color-white01);
    letter-spacing: 0
}

@media (min-width: 768px) {
    .mo-works .p-works .work__info {
        margin: 4px 0 0;
        font-size: 12px
    }
}

@media (hover: hover) and (pointer: fine) {
    .mo-works .p-works .work:hover .work__visual img {
        filter: brightness(120%);
        transform: scale(1.05)
    }
}

/* float-btn */
.js-init-scroll-active-btn {
    visibility: hidden;
    opacity: 0;
    transition: visibility .3s var(--ease-out-sine), opacity .3s var(--ease-out-sine)
}

.js-init-scroll-active-btn.isActive {
    visibility: visible;
    opacity: 1
}

.p-float-btn,
.p-float-btn--circle-typography {
    position: fixed;
    right: 5px;
    bottom: 15px;
    z-index: 2;
    width: 137.5px;
    height: 137.5px;
    overflow: hidden
}

@media (min-width: 768px) {
    .p-float-btn,
    .p-float-btn--circle-typography {
        right: 50px;
        bottom: 30px;
        width: 196px;
        height: 196px
    }
}

.p-float-btn__container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    /* transform: translate(20px) */
}

@media (min-width: 768px) {
    .p-float-btn__container {
        transform: translate(0)
    }
}

.p-float-btn__circle-typography {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    pointer-events: none
}

.p-float-btn__circle-typography img {
    width: 137.5px;
    animation: loop-circle 30s linear infinite
}

@media (min-width: 768px) {
    .p-float-btn__circle-typography img {
        width: 193px
    }
}

.p-float-btn__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 112px;
    height: 112px;
    background: var(--color-white01-08);
    border-radius: 50%
}

@media (min-width: 768px) {
    .p-float-btn__inner {
        width: 160px;
        height: 160px
    }
}

.p-float-btn__txt {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px 0 0
}

@media (min-width: 768px) {
    .p-float-btn__txt {
        margin: 20px 0 0
    }
}

.p-float-btn__txt .sub-txt {
    font-family: var(--font-serif);
    font-size: 9px;
}

@media (min-width: 768px) {
    .p-float-btn__txt .sub-txt {
        font-size: 11px
    }
}

.p-float-btn__txt .main-txt {
    margin: 5px 0 0;
    font-family: var(--font-en);
    font-size: 16.5px;
    font-weight: 500;
    letter-spacing: .08em
}

@media (min-width: 768px) {
    .p-float-btn__txt .main-txt {
        font-size: 22px;
        transition: letter-spacing .5s var(--ease-out-sine)
    }
}

.p-float-btn__icon {
    width: 20px;
    height: 20px;
    margin: 5px 0 0;
    display: flex;
    align-items: center;
    justify-content: center
}

@media (min-width: 768px) {
    .p-float-btn__icon {
        width: 30px;
        height: 30px;
        transform: translateY(-50%) rotate(45deg);
        -webkit-mask-image: linear-gradient(#000 0%, #000 33%, transparent 33%, transparent 100%);
        mask-image: linear-gradient(#000 0%, #000 33%, transparent 33%, transparent 100%);
        -webkit-mask-size: 100% 300%;
        mask-size: 100% 300%;
        -webkit-mask-position: 0% 0%;
        mask-position: 0% 0%;
        transition: mask-position .5s var(--ease-out-sine);
        margin: 20px 0 0
    }
}

.p-float-btn__icon:before {
    width: 15px;
    height: 15px;
    background: url(/wp-content/themes/mecdesign/assets/images/pages/icons/icon_search.svg) no-repeat center/contain;
    content: ""
}

@media (min-width: 768px) {
    .p-float-btn__icon:before {
        width: 25px;
        height: 25px;
        transform: rotate(-45deg)
    }
}

.p-float-btn--circle-typography {
    pointer-events: none;
    mix-blend-mode: difference
}

@media (hover: hover) and (pointer: fine) {
    .p-float-btn:hover .p-float-btn__txt .main-txt,
    .p-float-btn--circle-typography:hover .p-float-btn__txt .main-txt {
        letter-spacing: .125em
    }

    .p-float-btn:hover .p-float-btn__icon,
    .p-float-btn--circle-typography:hover .p-float-btn__icon {
        -webkit-mask-position: 0% 150%;
        mask-position: 0% 150%
    }
}

/* modal */
.modalBox {
    display: none;
    position: fixed;
    z-index: 3;
    left: 0;
    top: 0;
    padding: 139px 0 0;
    min-height: 100vh;
    height: 100%;
    width: 100%;
    overflow: auto;
    background-color: var(--color-gray02);
}

@media (min-width: 768px) {
    .modalBox {
        padding: 120px 0 0;
    }
}

.modalContent {
    background-color: var(--color-gray02);
    animation-name: modalopen;
    animation-duration: 1s;
    width: 100%;
    padding: 0 0 70px;
}

@media (min-width: 768px) {
    .modalContent {
        padding: 0 0 90px;
    }
}

@keyframes modalopen {
    from { opacity: 0; }
    to { opacity: 1; }
}