@charset "utf-8";
/* ========================
contents
========================*/
.works__title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 120px;
}

.works__title h2 {
    font-family: var(--serif_en);
    font-size: 3.2rem;
    line-height: 1;
    letter-spacing: 0.02em;
}

.works__title p {
    font-family: var(--serif_ja);
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.08em;
    margin-top: 32px;
}

.works__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 72px;
    max-width: 1360px;
    width: 100%;
    margin: 120px auto 0;
    padding: 0 80px;
}

.works__item {
    display: flex;
    flex-direction: column;
}

.works__item a {
    display: block;
    position: relative;
    overflow: hidden;
}

.works__item a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0);
    transition: background-color 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.works__item a:hover::before {
    background-color: rgba(255, 255, 255, 0.3);
}

.works__item img {
    display: block;
    aspect-ratio: 3 / 2;
    object-fit: cover; 
    width: 100%;
}

.works__item img:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}


.works__item h3 {
    font-family: var(--serif_ja);
    font-size: 1.8rem;
    letter-spacing: 0.08em;
    text-align: left;
    margin-top: 24px;
}

.works__item time {
    font-family: var(--serif_en);
    font-size: 1.6rem;
    font-weight: 700;
    text-align: left;
    color: var(--gray);
    margin-top: 16px;
}

@media screen and (max-width: 768px) {
    .works__title {
        margin-top: 120px;
    }

    .works__grid {
        display: flex;
        flex-direction: column;
        padding: 0;
        margin: 80px auto 0;
    }

    .works__title h2 {
        font-size: 2.8rem;
    }

    .works__title p {
        font-size: 2rem;
        margin-top: 24px;
    }

    .works__item h3 {
        text-align: left;
        font-size: 1.6rem;
        margin: 0 8.5%;
        margin-top: 16px;
    }

    .works__item time {
        margin: 8px 8.5% 0;
    }
}


/* ========================
scroll animation
========================*/
.scroll-infinity {
    width: 100%;
    overflow: hidden;
    margin-top: 240px;
    position: relative;
}

.scroll-infinity__wrap {
  display: flex;
  width: fit-content;
  gap: 0 10px;
}

.scroll-infinity__list {
    display: flex;
    flex: none;
    animation: slide 50s linear infinite;
    gap: 0 10px;
}

.scroll-infinity__item {
    flex: 0 0 auto;
}

.scroll-infinity__item img {
    display: block;
    width: 350px;
    height: 235px;
    object-fit: cover;
}

@keyframes slide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%); 
  }
}