.discography-archive-wrapper {
    width: var(--section-width);
    margin: 0 auto;
}

.discography-link {
    display: block;
    text-decoration: none;
}

/* Grid レイアウト - デスクトップ: 3列固定, タブレット/スマホ: 2列固定 */
.discography-term-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

/* アイテムの見やすいサイズを指定 */
.discography-item {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.discography-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), 0 1.5px 4px rgba(0, 0, 0, 0.18);
}

.discography-title {
    margin-top: 12px;
    font-size: var(--fs-h5);
    text-align: center;
}

/* タブレット向け: 2列固定, max-width で適度なサイズに */
@media (max-width: 768px) {
    .discography-archive-wrapper {
        width: var(--section-width-mobile);
        padding: 0 15px;
    }

    .discography-term-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        justify-content: center;
    }

    .discography-item img {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.15);
    }
}

/* スマートフォン: 480px～768px でも2列維持 */
@media (max-width: 480px) {
    .discography-archive-wrapper {
        padding: 0 12px;
    }

    .discography-term-list {
        grid-template-columns: repeat(2, 1fr);  /* 2列を維持 */
        gap: 12px;
    }
}

/* 超小型デバイス: 320px 以下で1列に変更 */
@media (max-width: 320px) {
    .discography-term-list {
        grid-template-columns: 1fr;  /* 1列 */
        gap: 12px;
    }
}

/* アクセシビリティ: フォーカスインジケータ */
.discography-link:focus-visible {
    outline: 2px solid var(--color-focus, #666);
    outline-offset: 4px;
}

/* タッチデバイスでのホバー効果無効化 */
@media (hover: none) {
    .discography-link:active {
        opacity: 0.8;
    }
}