/* ================================================= 
   日付・スケジュールエリア 全体
   ================================================== */
.sch-wrapper {
    width: 100%;
    color: var(--color-text-base);
}

/* 月ラベル行（前の月・次の月） */
.sch-month-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--color-highlight);
}

.sch-month-label button {
    background: transparent;
    border: none;
    color: var(--color-text-base);
    cursor: pointer;
    padding: 5px 10px;
    font-size: 14px;
    transition: opacity 0.2s;
}

.selected-date-display {
    margin: 0 0 .8rem;
}

/* --------------------------------------------------
   Swiperスライダー周辺（左右の矢印を横に並べる設定）
   -------------------------------------------------- */
.sch-swiper-outer {
    display: flex;
    align-items: center;
    /* これで左右の矢印と日付の高さを中央に揃えます */
    gap: 10px;
    width: 100%;
    margin-bottom: 20px;
}

/* スライダー本体 */
.sch-date-swiper {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    padding: 0;
    /* paddingを解除してflexで制御 */
}

/* スライダー左右の矢印ボタン（custom-prev / next） */
.custom-prev,
.custom-next {
    position: static;
    /* absoluteを解除して横並びに */
    margin: 0;
    width: 30px;
    height: 70px;
    /* 日付アイテムの高さに合わせる */
    color: var(--color-theme-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transform: none;
    /* scale(0.5)などを解除 */
}

/* Swiperデフォルトの矢印アイコンのサイズ調整 */
.custom-prev::after,
.custom-next::after {
    font-size: 20px !important;
    font-weight: bold;
}

/* 日付アイテム単体 */
.sch-date-item {
    background-color: var(--color-text-dark);
    /*width: 60px !important; */
    border: 2px solid var(--color-text-light);
    border-radius: 5px;
    padding: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-sizing: border-box;
    text-align: center;
}

.sch-date-item span {
    font-size: 11px;
    display: block;
}

/* 選択中の日付 */
.sch-date-item.is-active {
    border-color: var(--color-text-base);
    background: var(--color-highlight);
    color: var(--color-text-dark);
}

/* 矢印が外に飛び出すのを防ぐ */
.sch-swiper-outer {
    position: relative !important;
}

/* 矢印をカレンダーのすぐ横に強制固定 */
.custom-prev,
.custom-next {
    position: relative !important;
    top: 10px !important;
    transform: none !important;
    z-index: 10;
    color: var(--color-text-base) !important;
}


/* --------------------------------------------------
   公演カード
   -------------------------------------------------- */
.sch-card {
    display: flex;
    background-color: rgba(10, 10, 10, 0.5);
    border-radius: 10px;
    margin-bottom: 15px;
    padding: 20px;
    gap: 15px;
}

.sch-thumb {
    width: 150px;
}

.sch-thumb img {
    width: 100%;
    display: block;
}

.sch-content {
    flex: 1;
}

.sch-title {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    word-break: auto-phrase;
}

/* メタ情報（アイコン付） */
.sch-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    display: flex;
    gap: 15px;
    font-size: .8rem;
    color: var(--color-text-base);
}

.sch-meta li {
    position: relative;
    padding-left: 1.2rem;
}

.sch-meta li::before {
    color: var(--color-theme-accent);
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0;
}

.sch-meta li:nth-child(1)::before {
    content: "\f007";
}

/* user */
.sch-meta li:nth-child(2)::before {
    content: "\f017";
}

/* clock */
.sch-meta li:nth-child(3)::before {
    content: "\f279";
}

/* location */

.sch-price {
    font-size: .8rem;
    margin: -.5rem 0 1rem;
}

/* --------------------------------------------------
   時間枠（チケットスロット）
   -------------------------------------------------- */
.sch-slots {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sch-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border: 1px solid #333;
    text-decoration: none;
    color: #fff;
    transition: background 0.2s;
}

.sch-slot:hover {
    background: #222;
}

.sch-slot .status {
    font-size: 18px;
    font-weight: bold;
}

.sch-slot .time {
    font-size: 11px;
}

/* 完売状態 */
.sch-slot.is-soldout {
    color: #444;
    background: #111;
    pointer-events: none;
    border-color: #222;
}

.sch-btn {
    border: 1px solid #333;
    padding: 10px 20px;
    font-size: .8rem;
    margin: 10px 0;
    text-align: center;
}

/* --------------------------------------------------
   モバイル対応
   -------------------------------------------------- */
@media (max-width: 600px) {
    .sch-date-item {
        font-size: 11px;
    }

    .sch-swiper-outer {
        gap: 5px;
    }

    .sch-card {
        display: grid;
        grid-template-columns: 100px 1fr;
        column-gap: 15px;
        row-gap: 2px; 
        padding: 15px;
    }

    .sch-thumb {
        grid-column: 1;
        grid-row: 1 / 5; 
        width: 100%;
        margin: 0;
    }

    .sch-content {
        display: contents; 
    }

    .sch-date, 
    .sch-title, 
    .sch-meta, 
    .sch-price {
        grid-column: 2;
        margin: 0;
    }

    .sch-date {
        font-size: 0.9rem;
        font-weight: bold;
        line-height: 1.2;
    }

    .sch-title {
        font-size: 1.1rem;
        line-height: 1.2;
        margin-bottom: 8px;
    }

    .sch-meta {
        margin-bottom: 5px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .sch-slots {
        grid-column: 1 / 3; 
        width: 100%;
        margin-top: 10px;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 12px;
    }

    /* --- スクロールバー自体の設定（太さと表示） --- */
    .sch-slots::-webkit-scrollbar {
        height: 8px;
        display: block;
    }

    /* --- スクロールバーの「つまみ」部分 --- */
    .sch-slots::-webkit-scrollbar-thumb {
        background-color: var(--color-text-light);
        border-radius: 10px;
    }

    /* --- スクロールバーの通り道（背景） --- */
    .sch-slots::-webkit-scrollbar-track {
        background-color: #424242;
        border-radius: 10px;
    }

    .sch-slot {
        padding: 7px;
    }

    .custom-prev,
    .custom-next {
        width: 25px;
        /* スマホでは矢印エリアを少し狭く */
    }

    .sch-meta {
        flex-wrap: wrap;
        gap: 10px;
        line-height: 1;
    }
}
