/* 縦長の表紙を切り抜かず、既存Worksの横長枠に収める。 */
.works_slider .works-cover {
    width: 100%;
    max-width: 321px;
    height: auto;
    aspect-ratio: 321 / 246;
    object-fit: contain;
    padding: 12px;
}

.works_slider .works-calendar-triptych {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 7px;
    width: 100%;
    max-width: 321px;
    aspect-ratio: 321 / 246;
    margin: 0 auto;
    padding: 12px;
    background-color: #fff;
    border: 1px solid #ccc;
}

.works_slider .works-calendar-triptych img {
    width: 100%;
    height: auto;
    border: 0;
}

.works_slider .new::before {
    left: max(0px, calc((100% - 321px) / 2));
}

.works_slider .work-caption {
    display: block;
    margin-top: 10px;
    color: #333;
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
}

/* 新旧2冊をPCで並べ、表紙と紹介見出しの位置を揃える。 */
#book-title-works {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

#book-title-works .list_detail.wide {
    width: auto;
    margin: 0;
    padding: 28px;
    justify-content: flex-start;
}

#book-title-works .list_wrapper {
    margin-top: 0;
}

#book-title-works .image_list {
    min-height: 390px;
    margin-bottom: 14px;
    align-items: center;
    justify-content: center;
}

#book-title-works .image_list li {
    margin: 0;
}

/* スマートフォンでは1冊ずつ本文が読める幅にする。 */
@media (max-width: 768px) {
    #book-title-works {
        grid-template-columns: minmax(0, 1fr);
    }

    #book-title-works .list_detail.wide {
        padding: 20px;
    }

    #book-title-works .image_list {
        min-height: auto;
    }
}
