@charset "utf-8";
.page-works {
    background-color: var(--primary-white);
}


/* ========== works page ========== */

.works-page {
    background-color: var(--primary-white);
    padding: 128px 0;
    position: relative;
}

.page-works::before {
    content: '';
    position: absolute;
    top: calc(-187 / 1440 * 100vw);
    left: calc(-182 / 1440 * 100vw);
    width: calc(480 / 1440 * 100vw);
    height: calc(487 / 1440 * 100vw);
    background: url(../images/works/works_laceDustyPink.png);
    background-repeat: no-repeat;
    background-size: contain;
    overflow: hidden;
    pointer-events: none;
    z-index: 100;
}

.page-works::after {
    content: '';
    position: absolute;
    top: calc(-185 / 1440 * 100vw);
    left: calc(138 / 1440 * 100vw);
    width: calc(335 / 1440 * 100vw);
    height: calc(340 / 1440 * 100vw);
    background: url(../images/works/works_lacePink.png);
    background-repeat: no-repeat;
    background-size: contain;
    overflow: hidden;
    pointer-events: none;
    z-index: 200;
}

.works-page__inner {
    margin: 0 auto;
    padding: 0 5.6%;
}

.works-page__heading {
    text-align: center;
}

.works-page__title img {
    width: calc(439 / 1440 * 100vw);
    height: auto;
}

.works-page__filter {
    display: flex;
    gap: calc(16 / 1440 * 100vw);
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: calc(140 / 1440 * 100vw);
    margin-top: 16px;
}

.works-page__filter-btn {
    border-radius: 40px;
    border: 0.5px solid #3C4E46;
    background: none;
    padding: 4px 16px;
    color: var(--primary-darkGreen);
    text-align: center;
    font-family: "Zen Kaku Gothic New";
    font-size: clamp(12px, calc(14 / 1440 * 100vw), 16px);
    line-height: 1.5;
    letter-spacing: 0.02em;
    cursor: pointer;
}

.works-page__filter-btn.is-active {
    border: 0.5px solid var(--primary-palePink);
    background: var(--primary-palePink);
    color: #3C4E46;
}

.works-page__list-wrap {
    width: 100%;
}

.works-page__list {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    opacity: 1;
    transition: opacity 0.24s ease;
}

.works-page__list.is-filtering {
    pointer-events: none;
}

.works-page__list.is-filtering-out {
    opacity: 0;
}

.works-card--sizer {
    width: calc(50% - 40px);
    height: 0;
    margin: 0;
    padding: 0;
}

.works-card {
    width: calc(50% - 40px);
    margin-bottom: 96px;
}

.works-card.sec {
    padding-top: calc(112 / 1440 * 100vw);
}

.works-card__button {
    display: block;
    width: 100%;
    border: none;
    background: none;
    padding: 0;
    cursor: default;
    text-align: left;
}

.works-card__figure {
    margin: 0;
}

.works-card__caption {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
    gap: 4px;
}

.works-card__title {
    color: var(--primary-darkGreen);
    font-size: var(--fz-16);
    line-height: 1.7;
    letter-spacing: 0.04em;
}

.works-card__date {
    color: var(--primary-darkGreen);
    font-family: "Bodoni Moda SC";
    font-size: clamp(12px, calc(14 / 1440 * 100vw), 14px);
    line-height: 1.7;
    letter-spacing: 0.08em;
}

.works-card__category {
    color: var(--primary-dustyPink);
    font-size: clamp(12px, calc(14 / 1440 * 100vw), 14px);
    line-height: 1.5;
    letter-spacing: 0.02em;
}


/*========= SP切り替え ======= */

@media screen and (max-width: 768px) {
    .works-page {
        padding: 86px 0;
    }
    .works-page__title img {
        width: calc(164 / 375 * 100vw);
    }
    .page-works::before {
        position: absolute;
        top: calc(-64 / 375 * 100vw);
        left: calc(-64 / 375 * 100vw);
        width: calc(160 / 375 * 100vw);
        height: calc(160 / 375 * 100vw);
        background: url(../images/works/works_laceDustyPink.png);
        background-repeat: no-repeat;
        background-size: contain;
        overflow: hidden;
        pointer-events: none;
        z-index: 100;
    }
    .page-works::after {
        content: '';
        position: absolute;
        top: calc(-58 / 375 * 100vw);
        left: calc(38 / 375 * 100vw);
        width: calc(111 / 375 * 100vw);
        height: calc(113 / 375 * 100vw);
        background: url(../images/works/works_lacePink.png);
        background-repeat: no-repeat;
        background-size: contain;
        overflow: hidden;
        pointer-events: none;
        z-index: 200;
    }
    .works-card--sizer {
        width: calc(50% - 8px);
    }
    .works-card {
        width: calc(50% - 8px);
        margin-bottom: 40px;
    }
    .works-card__caption {
        margin-top: 4px;
        gap: 2px;
    }
    .works-card__title {
        font-size: var(--fz-14sp);
        line-height: 1.7;
        letter-spacing: 0.02em;
    }
    .works-page__filter {
        gap: calc(8 / 375 * 100vw);
        flex-wrap: wrap;
        margin-bottom: calc(56 / 375 * 100vw);
        margin-top: 42px;
    }
    .works-page__filter-btn {
        padding: 4px 12px;
        font-size: var(--fz-12sp);
        letter-spacing: 0.02em;
    }
}


/* ======= モーダル ========= */

.works-modal[hidden] {
    display: none;
}

.works-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow: scroll;
}

.works-modal__overlay {
    position: fixed;
    inset: 0;
    background: rgba(159, 128, 135, 0.48);
}

.works-modal__content {
    position: relative;
    z-index: 1;
    width: calc(343 / 375 * 100vw);
    max-width: 480px;
    background: var(--primary-white);
    border-radius: 20px;
    overflow: scroll;
}


/* modal animation window */

.works-modal.is-opening .works-modal__overlay,
.works-modal.is-open .works-modal__overlay {
    animation: modalFadeIn 0.28s ease forwards;
}

.works-modal.is-opening .works-modal__content,
.works-modal.is-open .works-modal__content {
    animation: modalContentIn 0.32s cubic-bezier(.22, 1, .36, 1) forwards;
}


/* close */

.works-modal.is-closing .works-modal__overlay {
    animation: modalFadeOut 0.24s ease forwards;
}

.works-modal.is-closing .works-modal__content {
    animation: modalContentOut 0.24s ease forwards;
}

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

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

@keyframes modalContentIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes modalContentOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
}

.works-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 2;
}

.works-modal__close img {
    display: block;
    width: 100%;
    height: auto;
}

.works-modal__body {
    padding: 56px 16px 20px;
}

.works-modal__figure {
    margin: 0;
}

.works-modal__image-wrap {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
}

.works-modal__image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 76dvh;
    margin: 0 auto;
}

.works-modal__caption {
    margin-top: 16px;
}

.works-modal__title {
    margin: 0;
    color: var(--primary-darkGreen);
    font-size: var(--fz-14sp);
    line-height: 1.7;
    letter-spacing: 0.04em;
}

.works-modal__date {
    margin-top: 6px;
    color: var(--primary-darkGreen);
    font-family: "Bodoni Moda SC";
    font-size: clamp(10px, calc(10 / 375 * 100vh), 12px);
    line-height: 1.7;
    letter-spacing: 0.08em;
}

.works-modal__nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px 16px;
}

.works-modal__prev,
.works-modal__next {
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #C08996;
    font-family: Italiana;
    font-size: var(--fz-12sp);
    line-height: 1.5;
    letter-spacing: 0.05em;
}

body.is-fixed {
    overflow: hidden;
}

@media screen and (max-width: 768px) {
    .works-card__button {
        cursor: pointer;
    }
    .works-card.sec {
        padding-top: calc(32 / 375 * 100vw);
    }
}