@charset "utf-8";
/*============= 
article header
============= */
.article__header {
    padding: 20px 0 30px 0;
}

/* headline PC */
@media screen and (min-width:769px) {
    .article__header {
        padding: 20px 0 60px 0;
    }
}
/* pc 769px */

/*============= 
topics
============= */
.topics__list {
    list-style: none;
    padding: 0 6.1% 60px 6.1%;
    margin: 0 auto;
}

.topics__item {
    margin-bottom: 24px;
}

.topics__item a {
    display: block;
    text-decoration: none;
}

.topics__inner {
    position: relative;
    overflow: hidden;
}

.topics__inner img {
    width: 100%;
    height: auto;
    display: block;
}

.topics__inner p {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-family: jaf-domus-titling-web, sans-serif;
    font-weight: 200;
    font-style: normal;
    font-size: 2.4rem;
    color: var(--primary-white);
    z-index: 2;
    transition: color 0.3s;
}

.topics__inner::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(247, 146, 152, 0.85);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
}

.topics__item a:hover .topics__inner::after,
.topics__item a:focus-visible .topics__inner::after {
    opacity: 1;
}

.topics__item a:hover .topics__inner p,
.topics__item a:focus-visible .topics__inner p {
    color: var(--primary-black);
}

@media (hover: none) {
    .topics__item a:active .topics__inner::after {
        opacity: 1;
}

    .topics__item a:active .topics__inner p {
        color: var(--primary-black);
}
}

/* topics PC */
@media screen and (min-width:769px) {
    .topics__list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        padding: 0 5.3% 80px 5.3%;
        gap: 24px;
    }

    .topics__item {
        margin: 0;
    }

    .topics__inner p {
        font-size: 3rem;
    }
}
/* pc 769px */

/*============= 
 works category
============= */
/* grid */
.works__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 12px;
    list-style: none;
    padding: 0;
    margin: 0;
    padding: 0 6.1%;
}

.works__item {
    position: relative;
}

.works__trigger {
    position: relative;
    width: 100%;
    aspect-ratio: 302 / 368;
    padding: 0;
    border: none;
    background: none;
    cursor: url("../images/cursor-modal.svg") 16 16, zoom-in;
    overflow: hidden;
}

/* thumbnail size */
.works__trigger img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter 0.3s ease;
}

/* thumbnail hover */
@media (hover: hover) {
    .works__trigger:hover img {
        filter: brightness(0.75);
    }
}

/* modal window */
.modal {
    position: fixed;
    inset: 0;
    background: var(--primary-white);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.modal.is-open {
    opacity: 1;
    visibility: visible;
}

.modal__inner {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0 6.5% 40px 6.5%;
    overflow-y: auto;
}

.modal__close {
    position: fixed;
    top: 16px;
    right: 16px;
    border: none;
    background: none;
    cursor: pointer;
    z-index: 10;
}

.modal__close img {
    width: 35px;
    height: 35px;
    transition: filter 0.3s ease;
}

@media (hover: hover) {
    .modal__close:hover img {
        filter: invert(1);
    }
}

.modal__content {
    margin: 0 auto;
    padding-top: 60px;
}

.modal__img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.modal__text {
    margin-top: 24px;
}

.modal__title {
    font-size: 2rem;
    font-family: jaf-domus-titling-web, sans-serif;
    font-weight: 200;
    font-style: normal;
    margin-bottom: 16px;
}

.modal__desc {
    font-size: 1.6rem;
    line-height: 1.7;
}

/* back to work btn */
.animate-link {
    padding-bottom: 5px;
    position: relative;
    font-family: jaf-domus-titling-web, sans-serif;
    font-weight: 200;
    font-style: normal;
}

.animate-link::before {
    background: var(--primary-black);
    content: '';
    width: 100%;
    height: 1px;
    position: absolute;
    left: 0;
    bottom: 0;
    transform-origin: right top;
    transform: scale(0, 1);
    transition: transform 0.3s;
}

.animate-link:hover::before {
    transform-origin: left top;
    transform: scale(1, 1);
}

.back__btn {
    display: flex;
    justify-content: center;
    margin: 30px 0 60px 0;
}

/* coming soon */
.works__coming-soon {
    width: 100%;
    aspect-ratio: 302 / 368;
    background-color: var(--tertiary-pink);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.works__coming-soon span {
    font-size: 1.6rem;
    color: var(--primary-gray);
    line-height: 1;
    font-family: jaf-domus-titling-web, sans-serif;
    font-weight: 200;
    font-style: normal;
}

.works__item--comingSoon {
    display: none;
}

.works__item--comingSoon:nth-last-child(1) {
    display: block;
}

/* works category PC */
@media screen and (min-width: 769px) {
    .works__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px 24px;
        padding: 0 5.3%;
    }

    .modal__inner {
        padding: 0 100px 16px 100px;
    }
    
    .modal__content {
        padding-top: 64px;
        display: flex;
        justify-content: center;
        gap: 100px;
        align-items: center;
        max-width: none;
    }

    .modal__img {
        max-width: 50vw;
        max-height: 85vh;
        width: auto;
        height: auto;
        margin: 0;
    }

    .modal__text {
        display: block;
        margin: 0;
    }

    .modal__title {
        font-size: 2.4rem;
        max-width: none;
        margin-bottom: 60px;
    }

    .modal__close {
        top: 36px;
        right: 80px;
    }

    .modal__close img {
        width: 45px;
        height: 45px;    
    }

    .animate-link {
        font-size: 1.8rem;
    }

    .back__btn {
        margin: 60px 0 80px 0;
    }

    .works__coming-soon span {
        font-size: 1.8rem;
    }

    .graphics .works__item--comingSoon:nth-last-child(-n + 3),
    .artProjects .works__item--comingSoon:nth-last-child(-n + 3) {
        display: block;
    }
}
