@charset "UTF-8";

:root {
    --column-count: 5;
    --narrow-column-count: 3;
}

.topImages {
    width: 100%;
    max-width: 1500px;
    display: flex;
    flex-direction: column;
    .topImage {
        /*margin-bottom: 32px;*/
        margin: auto;
    }
    .canpaignImage {
        margin-bottom: 32px;
    }
}

.toInfoButton {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    a {
        padding: 4px 1em;
        background-color: #00ab80;
        color: #fff;
        font-weight: bold;
        transition: .3s;
        &:hover {
            background-color: #008f6a;
        }
    }
}

.inner.productList {
    .productListUL {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(var(--column-count), calc(100% / var(--column-count) - 1px));
        gap: 1px;
        list-style: none;
        padding: 0;
        margin: 0;
        li {
            padding: 5px;
            .productItem {
                display: flex;
                flex-direction: column;
                /* gap: 0.2rem; */
                img {
                    aspect-ratio: 1;
                    object-fit: cover;
                    border-radius: 5%;
                    border: #ddd 1px solid;
                }

                .price {
                    font-weight: bold;
                    margin-bottom: 10px;
                    text-overflow: ellipsis;
                    overflow: hidden;
                    padding-top: 0;
                    /* mask-image: linear-gradient(to right, black 70%, transparent 100%); */
                    .outOfTerm {
                        display: block;
                        text-align: center;
                        color: white;
                        padding: 2px 8px;
                        border-radius: 16px;
                        &.not-started {
                            background: rgba(88, 75, 232, 0.7);
                        }
                        &.finished {
                            background: rgba(232, 75, 115, 0.7);
                        }
                    }
                }
            }
        }

        @media only screen and (width < 1200px) {
            grid-template-columns: repeat(var(--narrow-column-count), calc(100% / var(--narrow-column-count) - 1px));
        }
    }
}
