hr {
    margin: 7%;
}

.flex-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem 1.5rem;
    justify-items: start;
    justify-content: start;
    width: 100%;
    box-sizing: border-box;
}

.flex-container .item {
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    max-width: 16rem;
    min-width: 0;
}

.jacket {
    width: 100%;
    max-width: 16rem;
    height: auto;
    display: block;
}

.album-title {
    width: 100%;
    max-width: 16rem;
    text-align: center;
    box-sizing: border-box;
}

/* タブレット以上: 列幅に応じて3列以上まで自動で増やす */
@media screen and (min-width: 768px) {
    .flex-container {
        grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
    }
}

@media screen and (max-width: 767.98px) {
    .flex-container .item {
        max-width: 100%;
    }

    .jacket {
        max-width: 100%;
    }

    .album-title {
        max-width: 100%;
    }
}
