

/* ========================= カテゴリ看板スライダー ========================= */
.cat-hero {
    --kw: 21vw;
    --kgap: 5px;
    position: relative;
    margin-left: calc(50% - 50vw);
    padding: 0 0 40px;
    overflow: hidden;
}
.cat-hero.is-gone { display: none; }

/* ---- 並び ---- */
.cat-hero__track {
    display: flex;
    gap: var(--kgap);
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overscroll-behavior-x: contain;
    touch-action: pan-y;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
}
.cat-hero__track::-webkit-scrollbar { display: none; }
.cat-hero__track.is-drag { cursor: grabbing; }

.cat-hero__track > li {
    flex: 0 0 var(--kw);
    min-width: 0;
}
.cat-hero__track a { display: block; text-decoration: none; color: #333; }

.cat-hero__img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #E8E8E8;
    transition: opacity .2s ease;
    -webkit-user-drag: none;
    user-select: none;
}
.cat-hero__track a:hover .cat-hero__img { opacity: .85; }

.cat-hero__name { display: none; }
.cat-hero--name .cat-hero__name {
    display: block;
    font-size: 12.5px;
    line-height: 1.6;
    letter-spacing: .5px;
    margin: 9px 0 0;
    padding: 0 2px;
}
.cat-hero--name .cat-hero__track a:hover .cat-hero__name { color: #4B6092; }

/* ---- 読み込み中 ---- */
.cat-hero__skeleton {
    display: flex;
    gap: var(--kgap);
    list-style: none;
    margin: 0;
    padding: 0;
}
.cat-hero__skeleton > li {
    flex: 0 0 var(--kw);
    aspect-ratio: 1 / 1;
    background: linear-gradient(100deg,
        #EDEDED 28%, #F7F7F7 46%, #EDEDED 64%);
    background-size: 240% 100%;
    animation: catHeroShine 1.9s ease-in-out infinite;
}
.cat-hero__skeleton > li:nth-child(2) { animation-delay: .12s; }
.cat-hero__skeleton > li:nth-child(3) { animation-delay: .24s; }
.cat-hero__skeleton > li:nth-child(4) { animation-delay: .36s; }
.cat-hero__skeleton > li:nth-child(5) { animation-delay: .48s; }
.cat-hero__skeleton > li:nth-child(6) { animation-delay: .60s; }
@keyframes catHeroShine {
    0%   { background-position: 160% 0; }
    100% { background-position: -60% 0; }
}
@media (prefers-reduced-motion: reduce) {
    .cat-hero__skeleton > li { animation: none; background: #EDEDED; }
}
.cat-hero.is-ready .cat-hero__skeleton { display: none; }
.cat-hero__track { display: none; }
.cat-hero.is-ready .cat-hero__track { display: flex; }

/* ---- ドット ---- */
.cat-hero__dots {
    display: flex;
    justify-content: center;
    gap: 9px;
    list-style: none;
    margin: 17px 0 0;
    padding: 0;
    min-height: 9px;
}
.cat-hero__dots button {
    width: 9px; height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #D2D2D2;
    cursor: pointer;
    transition: background .2s ease;
}
.cat-hero__dots button:hover { background: #ABABAB; }
.cat-hero__dots button.is-on { background: #3C3C3C; }
.cat-hero__still {
    display: block;
}
/* ---- タブレット ---- */
@media screen and (max-width: 1080px) {
    .cat-hero { --kw: 32vw; }
}
/* ---- スマートフォン ---- */
@media screen and (max-width: 680px) {
    .cat-hero { --kw: 68vw; --kgap: 9px; padding: 0 0 20px; }
    .cat-hero__dots { margin: 13px 0 0; gap: 7px; }
    .cat-hero__dots button { width: 7px; height: 7px; }
    .cat-hero--name .cat-hero__name { font-size: 11.5px; }
    .cat-hero__img {
        border-radius: 5px;
    }
}
