/**
 * コンテンツスライダーブロック CSS
 */

.cs-section {
    padding: 72px 0 80px;
    overflow: hidden;
    color: #e8dfc8;
}

/* ==========================================================================
   セクションヘッダー
   ========================================================================== */

.cs-section__head {
    max-width: 1200px;
    margin: 0 auto 36px;
    padding: 0 48px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.cs-section__label {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cs-section__en {
    font-size: 9px;
    letter-spacing: .42em;
    color: #ff5b2d;
    font-weight: 700;
    text-transform: uppercase;
}

.cs-section__ja {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: .2em;
    color: #e8dfc8;
    margin: 0;
}

/* ==========================================================================
   ナビボタン
   ========================================================================== */

.cs-nav {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.cs-nav__btn {
    width: 44px;
    height: 44px;
    border: 1.5px solid rgba(232, 223, 200, .2);
    background: transparent;
    color: #e8dfc8;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    position: relative;
    overflow: hidden;
}

.cs-nav__btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(200, 160, 74, .08);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s;
}

.cs-nav__btn:hover {
    border-color: #c8a04a;
    color: #c8a04a;
}

.cs-nav__btn:hover::before {
    transform: scaleX(1);
}

.cs-nav__btn:disabled {
    opacity: .25;
    cursor: not-allowed;
}

.cs-nav__btn:disabled:hover {
    border-color: rgba(232, 223, 200, .2);
    color: #e8dfc8;
}

.cs-nav__btn:disabled:hover::before {
    transform: scaleX(0);
}

/* ==========================================================================
   スライダー トラック
   ========================================================================== */

.cs-track-wrap {
    padding-left: max(48px, calc((100% - 1200px) / 2 + 48px));
    cursor: grab;
    user-select: none;
}

.cs-track-wrap:active {
    cursor: grabbing;
}

.cs-track {
    display: flex;
    gap: 16px;
    transition: transform .45s cubic-bezier(.4, 0, .2, 1);
    will-change: transform;
}

/* ==========================================================================
   カード
   ========================================================================== */

.cs-card {
    flex: 0 0 auto;
    width: 320px;
    position: relative;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
}

.cs-card:hover {
    transform: translateY(-6px);
}

.cs-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.cs-card__img {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: #1a1208;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    transition: transform .5s ease;
}

.cs-card:hover .cs-card__img {
    transform: scale(1.05);
}

.cs-card__img-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .2);
    font-size: 12px;
    letter-spacing: .16em;
    background: radial-gradient(ellipse at 45% 45%, rgba(160, 60, 10, .45), #0c0906);
}

.cs-card__caption {
    padding: 16px 4px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cs-card__caption-en {
    font-size: 8px;
    letter-spacing: .35em;
    color: #ff5b2d;
    font-weight: 700;
    text-transform: uppercase;
}

.cs-card__caption-ja {
    font-size: 13px;
    letter-spacing: .14em;
    color: rgba(232, 223, 200, .75);
    margin: 0;
}

.cs-card__caption-desc {
    font-size: 11px;
    line-height: 1.7;
    color: rgba(232, 223, 200, .45);
    letter-spacing: .06em;
    margin: 6px 0 0;
}

/* ==========================================================================
   プログレスバー
   ========================================================================== */

.cs-progress {
    max-width: 1200px;
    margin: 32px auto 0;
    padding: 0 48px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.cs-progress__track {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, .08);
    position: relative;
    overflow: hidden;
}

.cs-progress__fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #c8390e;
    transition: width .45s cubic-bezier(.4, 0, .2, 1);
}

.cs-progress__count {
    font-size: 10px;
    color: rgba(232, 223, 200, .35);
    letter-spacing: .15em;
    white-space: nowrap;
    flex-shrink: 0;
}

.cs-progress__count em {
    font-style: normal;
    color: #c8a04a;
}

/* ==========================================================================
   SP (≤768px)
   ========================================================================== */

@media (max-width: 768px) {
    .cs-section {
        padding: 52px 0 60px;
    }

    .cs-section__head {
        padding: 0 20px;
        margin-bottom: 28px;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .cs-track-wrap {
        padding-left: 20px;
    }

    .cs-card {
        width: 200px;
    }

    .cs-progress {
        padding: 0 20px;
        margin-top: 24px;
    }
}

/* ==========================================================================
   ライトモード
   ========================================================================== */

.cs-section--light {
    color: #333;
}

.cs-section--light .cs-section__ja {
    color: #333;
}

.cs-section--light .cs-nav__btn {
    border-color: rgba(0, 0, 0, .15);
    color: #333;
}

.cs-section--light .cs-nav__btn:hover {
    border-color: #c8a04a;
    color: #c8a04a;
}

.cs-section--light .cs-nav__btn:disabled {
    opacity: .25;
}

.cs-section--light .cs-nav__btn:disabled:hover {
    border-color: rgba(0, 0, 0, .15);
    color: #333;
}

.cs-section--light .cs-card__img {
    background-color: #f0f0f0;
}

.cs-section--light .cs-card__img-placeholder {
    color: rgba(0, 0, 0, .2);
    background: radial-gradient(ellipse at 45% 45%, rgba(200, 180, 140, .3), #f0ede6);
}

.cs-section--light .cs-card__caption-ja {
    color: rgba(0, 0, 0, .7);
}

.cs-section--light .cs-card__caption-desc {
    color: rgba(0, 0, 0, .45);
}

.cs-section--light .cs-progress__track {
    background: rgba(0, 0, 0, .08);
}

.cs-section--light .cs-progress__count {
    color: rgba(0, 0, 0, .35);
}
