/**
 * 制作実績カルーセル共通スタイル
 * トップページ・サービスページ共通
 */

/* ── カルーセルラッパー ── */
.result-carousel {
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    cursor: grab;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-track > * {
    flex: 0 0 260px;
    scroll-snap-align: start;
}

/* ── ナビゲーションボタン ── */
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 10;
    font-size: 1.2rem;
    line-height: 1;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, box-shadow 0.2s;
}
.carousel-prev:hover,
.carousel-next:hover {
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}
.carousel-prev { left: -16px; }
.carousel-next { right: -16px; }

/* ── カード（top-worksと共通デザイン） ── */
.top-works__card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.top-works__card:hover {
    transform: translateY(-6px);
}

.top-works__card:hover .top-works__thumb img {
    transform: scale(1.05);
}

.top-works__thumb {
    position: relative;
    overflow: hidden;
    margin-bottom: 12px;
    aspect-ratio: 16 / 10;
    background: #e0e0e0;
}

.top-works__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.top-works__tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #1A3A5C;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    letter-spacing: 0.05em;
}

.top-works__name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2D2D2D;
}

.top-works__summary {
    font-size: 0.78rem;
    color: #888;
    line-height: 1.5;
    margin-top: 4px;
}

.top-works__more {
    font-size: 0.9rem;
    font-weight: 600;
    color: #CC0000;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.3s ease;
}
.top-works__more:hover {
    opacity: 0.7;
}

/* ── レスポンシブ ── */
@media (max-width: 480px) {
    .carousel-prev { left: 4px; }
    .carousel-next { right: 4px; }
    .carousel-prev,
    .carousel-next {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .carousel-track > * {
        flex: 0 0 220px;
    }
}
