.works-archive {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.works-item {
    border-bottom: 1px solid #ddd;
    margin-bottom: 8px;
}

.works-item__header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 8px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.works-item__header:hover {
    background: #f8f8f8;
}

.works-item__thumb img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.works-item__name {
    flex: 1;
    font-size: 1.1rem;
    font-weight: bold;
}

.works-item__icon {
    font-size: 1.4rem;
    color: #999;
}

.works-item__body {
    padding: 20px 8px 32px;
}

.works-item__gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

/* 1枚目を大きくメイン表示 */
.works-item__photo:first-child {
    grid-column: 1 / -1; /* 横幅いっぱい */
}

.works-item__photo:first-child img {
    aspect-ratio: 1/1;
    object-fit: cover;
}
/*
.works-item__photo:first-child img {
    aspect-ratio: 16/9;
}
*/

/* 2枚目以降はサムネイル */
.works-item__photo img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 4px;
}

.works-item__photo img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 4px;
}

.works-item__description {
    line-height: 1.8;
    color: #444;
}

/* worksアーカイブのタイトルエリア */
#top_title_area.l-topTitleArea {
    position: relative;
    width: 100%;
    height: 240px; /* 他の固定ページと同じ高さに合わせる */
    overflow: hidden;
}

@media (max-width: 767px) {
    #top_title_area.l-topTitleArea {
        height: 148.5px; /* スマホ縦画面用高さ */
    }
}

#top_title_area .l-topTitleArea__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#top_title_area .l-topTitleArea__body {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: center;
}

#top_title_area .c-pageTitle {
    color: #fff;
}

#top_title_area .l-topTitleArea__body {
    position: relative;
    z-index: 2;
}

#top_title_area.c-filterLayer {
    isolation: isolate;
}

#top_title_area.c-filterLayer.-texture-dot::after {
    z-index: 1;
}

#top_title_area .l-topTitleArea__body {
    position: relative;
    z-index: 2;
}

/* 本文中のSWELLが自動出力したアーカイブタイトルを非表示にする */
.works-archive__title {
    display: none;
}