/* HIDESIGN TOP: ACFで選んだWORKSのアイキャッチ画像 */
.top-works__card[href] {
    display: block;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.top-works__media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1.55 / 1;
    overflow: hidden;
    background: #a5a5a5;
}

.top-works__image {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.top-works__card[href]:focus-visible {
    outline: 2px solid #222;
    outline-offset: 4px;
}

@media screen and (max-width: 800px) {
    .top-works__media {
        aspect-ratio: 16 / 9;
    }
}
