.swiper{
    overflow:hidden;
}
.swiper.main-slider {
    width: 100%;
    max-width: 100%;
    padding: 4px;
    border:solid 1px var(--d-color-thin-3);
}

.main-slider .swiper-slide {
    width: 100% !important; /* ← ここが重要 */
    min-height: unset !important;
}

.main-slider .swiper-slide img {
    display: block;
    width: 100%;
    height: auto;
}
.main-slider .swiper-wrapper{
    margin: 0;
}
.thumbnail-grid{
    display: flex;
    flex-wrap:wrap;
    width: 100%;
    justify-content: space-between;
    padding: 1em;
    background-color: var(--d-color-thin-4);
    border-left:solid 1px var(--d-color-thin-3);
    border-right:solid 1px var(--d-color-thin-3);
    border-bottom:solid 1px var(--d-color-thin-3);
    margin : 0 0 2em;
}
.thumbnail-grid .thumb-item{
    margin: 0 0 .5em;
}
.thumbnail-grid .thumb-item:nth-of-type(5),
.thumbnail-grid .thumb-item:nth-of-type(6),
.thumbnail-grid .thumb-item:nth-of-type(7),
.thumbnail-grid .thumb-item:nth-of-type(8){
    margin: 0;
}
.thumbnail-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.thumb-item {
    cursor: pointer; /* ポインターにする */
    transition: opacity 0.3s ease; /* フェード効果 */
}

.thumb-item:hover {
    opacity: 0.6; /* 薄くする */
}