@charset "utf-8";

/*
##########################################################################
  /schedule ページ専用CSS
##########################################################################*/

/* ==========================================================================
   カレンダーセクション
   ========================================================================== */

.calendar-section {
    margin: 2rem 0 4rem;
    padding: 0 1rem;
}

/* PC用：2カラム横並び */
.calendar-container-pc {
    gap: 2rem;
    justify-content: center;
}

.calendar-wrapper {
    flex: 1;
    max-width: 400px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e8e8e8;
}

/* 年月ヘッダー（PC） */
.calendar-header {
    height: 50px;
    background: #f4f4f4;
    color: #444;
    padding: 0.6rem 0.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e0e0e0;
}

.calendar-header h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.03em;
}

.calendar-header .next-month {
    text-align: center;
    flex: 1;
}

/* ナビボタン */
.nav-btn {
    background: transparent !important;
    border: none;
    padding: 0 !important;
    box-sizing: border-box;
    color: #888;
    width: 28px !important;
    height: 28px !important;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.nav-btn:hover {
    background: #e8e8e8;
    color: #444;
}

.nav-btn-placeholder {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    visibility: hidden;
}

.calendar-grid {
    padding: 0.5rem;
}

/* SP用：スライド式 */
.calendar-container-sp {
    position: relative;
}

.calendar-header-sp {
    background: #f4f4f4;
    color: #444;
    padding: 0.6rem 0.8rem;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e0e0e0;
}

.calendar-slider {
    position: relative;
    background: white;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
    border-top: none;
    overflow: hidden;
}

/* アクティブなスライドは relative → 親が高さを追う（見切れ防止） */
.calendar-slide {
    width: 100%;
    padding: 0.5rem;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.calendar-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.calendar-slide:not(.active) {
    transform: translateX(100%);
}

/* ==========================================================================
   FullCalendar カスタム（.calendar-grid スコープで限定）
   ========================================================================== */

.calendar-grid .fc {
    font-family: inherit;
}

.calendar-grid .fc-toolbar {
    display: none;
}

/* 日付セル：幅と高さを1:1に保つ（正方形） */
.calendar-grid .fc-daygrid-day {
    cursor: pointer;
    transition: background 0.15s;
}

.calendar-grid .fc-daygrid-day:hover {
    background-color: #f0f0f0 !important;
}

.calendar-grid .fc-daygrid-day-frame,
.calendar-container-sp .fc-daygrid-day-frame {
    padding: 1px !important;
    min-height: 0 !important;
    aspect-ratio: 1 / 1 ;
    overflow: hidden;
}
/* 日付番号 */
.calendar-grid .fc-daygrid-day-number {
    font-size: 0.78rem !important;
    font-weight: 500;
    color: #444 !important;
    padding: 1px 4px !important;
    line-height: 1.4;
}

/* 今日 */
.calendar-grid .fc-daygrid-day.fc-day-today {
    background-color: #eaffc3 !important;
}

.calendar-grid .fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
    color: #222 !important;
    font-weight: 700;
}

/* 選択日 */
.calendar-grid .fc-daygrid-day.fc-day-selected {
    background-color: #ffecac !important;
}

.calendar-grid .fc-daygrid-day.fc-day-selected .fc-daygrid-day-number {
    color: white !important;
}

/* 曜日ヘッダー（PC・SP統一） */
.calendar-grid .fc-col-header-cell {
    background: #f4f4f4;
    font-weight: 600;
    padding: 0.25rem 0;
    font-size: 0.72rem;
}

.calendar-grid .fc-col-header-cell .fc-col-header-cell-cushion,
.calendar-grid .fc-col-header-cell a {
    color: #666 !important;
    text-decoration: none;
}

/* 祝日：薄いピンク背景 */
.fc-holiday-bg {
    background-color: rgba(255, 240, 245, 0.7) !important;
    opacity: 1 !important;
    font-size: 0.65rem !important;
    padding-top:1rem;
    color: #f57bc6 !important;
}

/* 祝日の日付番号をローズ系に */
.calendar-grid .fc-daygrid-day:has(.fc-bg-event) .fc-daygrid-day-number {
    color: #f57bc6 !important;
}

/* ==========================================================================
   タイムラインセクション
   ========================================================================== */

.modern-timeline {
    padding: 0 1rem;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: linear-gradient(90deg, #fafcff 0%, #f7faff 50%);
    border: 1px solid #eef5ff;
    border-radius: 5px;
    /* box-shadow: 0 5px 15px rgba(231, 148, 194, 0.1); */
}

.timeline-header .date {
    font-size: 1.5rem;
    font-weight: bold;
    color: #666;
    margin: 0;
}

.timeline-legend {
    display: flex;
    gap: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.legend-color.schedule {
    background: linear-gradient(135deg, #87ceeb 0%, #75c3e2 100%);
}

.legend-color.reservation {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
}

/* セクションタイトル */

.other-schedule a {
    font-size: 0.9rem;
    border:1px solid #e794c2;
    padding: 0.2rem 0.6rem;
    margin-right: 1.5rem;
    background: #fff9fc ;
    color: #e794c2;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}
.other-schedule a:hover {
    color: #e794c2;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}
.other-schedule a:hover {
    border-color: #e794c2;
}

@media (max-width: 768px) {
    .other-schedule {
        margin: auto;
        text-align: center;
        flex-shrink: 0;
    }
    .other-schedule a {
        font-size: 0.7rem;
        white-space: nowrap;
        padding: 0.15rem 0.45rem;
        margin-right: 0.5rem;
    }
    .timeline-legend {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    .legend-item {
        font-size: 0.7rem;
        white-space: nowrap;
    }
}

/* ==========================================================================
   キャストカード
   ========================================================================== */

.equipment-section,
.cast-section {
    margin-bottom: 3rem;
}

/* カードグリッド：180px固定幅で折り返し */
.equipment-grid,
.cast-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* キャストカード：item_card と同じ縦レイアウト */
.cast-card {
    width: 180px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: #1a1a22;
    border: 1px solid #22222c;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.2s, border-color 0.2s;
    text-align: center;
}

.cast-card:hover {
    border-color: rgba(232,0,78,0.35);
    box-shadow: 0 4px 20px rgba(232,0,78,0.12);
    transform: none;
}

/* 画像：角版、縦長（3:4） */
.cast-image {
    width: 100%;
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #0e0e12;
    flex-shrink: 0;
}

.cast-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.cast-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    border: none;
    display: block;
    transition: transform 0.35s ease;
}

.cast-card:hover .cast-image img {
    transform: scale(1.04);
}

/* カード本体（画像下） */
.cast-body {
    padding: 0.4rem 0.5rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
}

.cast-name {
    font-size: 0.82rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.cast-name a  { color: #ededf5; text-decoration: none; }
.cast-name a:hover { color: #e8004e; }
.cast-age { color: #7d7d8e; font-size: 0.75em; }

.cast-category { margin-top: 0.15rem; }
.item-card-link {
    display: inline-block;
    font-size: 0.7rem;
    color: #7d7d8e;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.item-card-link:hover { color: #e8004e; }

.item-card-badges {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}
.item-card-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px; height: 18px;
    border-radius: 50%;
    font-size: 0.6rem;
}
.item-card-badge--fc  { background: rgba(232,0,78,0.2);  color: #f472b6; }
.item-card-badge--opt { background: rgba(234,179,8,0.2);  color: #fbbf24; }
.item-card-badge--cos { background: rgba(99,102,241,0.2); color: #818cf8; }

.cast-status { margin-top: 0.1rem; }

/* ステータスバッジ */
.status-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 700;
    color: white;
}

.status-badge.request  { background: #1a5fa8; }
.status-badge.tel      { background: #a0337a; }
.status-badge.closed   { background: #7a2020; }
.status-badge.holiday  { background: #1a5a56; }
.status-badge.sold     { background: #7a1e22; }
.status-badge.available{ background: #1a5a56; }

/* ==========================================================================
   モダンタイムライン（出勤・予約バー）
   ========================================================================== */

.timeline-container-modern {
    position: relative;
    height: 80px;
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 1rem;
}

.timeline-hours-display {
    display: flex;
    height: 20px;
    background: #e9ecef;
    border-bottom: 1px solid #dee2e6;
}

.hour-number {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    color: #495057;
    border-right: 1px solid #dee2e6;
}

.hour-number:last-child {
    border-right: none;
}

.timeline-background-modern {
    display: flex;
    height: 60px;
    position: relative;
}

.timeline-hour-modern {
    flex: 1;
    position: relative;
    background: #f8f9fa;
    height: 100%;
}

.timeline-half-hour {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
}

.timeline-half-hour.first-half  { left: 0;  background: #f8f9fa; }
.timeline-half-hour.second-half { right: 0; background: #f1f3f4; }

.timeline-bars-modern {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
}

.reservation-bar-modern {
    position: absolute;
    height: 25px;
    top: 30px;
    border-radius: 6px;
    transition: all 0.3s ease;
    pointer-events: auto;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
}

.reservation-bar-modern:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.reservation-bar {
    background: #ff6b6b;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.schedule-bar-modern {
    position: absolute;
    height: 10px;
    bottom: 5px;
    background: #87ceeb;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(135, 206, 235, 0.3);
    transition: all 0.3s ease;
}

.schedule-time,
.reservation-time {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90%;
    text-align: center;
}

/* 出勤時間テキスト */
.work-time-display {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 50vmax;
    text-align: center;
}

.work-time-label {
    font-size: 0.8rem;
    font-weight: bold;
    color: #495057;
    margin-right: 0.5rem;
}

.work-time-text {
    font-size: 0.9rem;
    color: #333;
    font-weight: bold;
}

/* 予約ボタン */
.cast-action {
    margin-top: 1rem;
    text-align: center;
}

.reservation-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #ff9ed2 0%, #e794c2 100%);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(231, 148, 194, 0.3);
}

.reservation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 148, 194, 0.4);
    color: white;
}

/* ==========================================================================
   レスポンシブ
   ========================================================================== */

@media (max-width: 640px) {
    .cast-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    .cast-card {
        width: 100%;
    }
}

@media (max-width: 1024px) {
    .timeline-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .calendar-grid .fc-daygrid-day-number {
        font-size: 0.72rem !important;
    }
}

@media (max-width: 768px) {
    .calendar-grid .fc-daygrid-day-number {
        font-size: 0.65rem !important;
        padding: 1px 2px !important;
    }
}

@media (max-width: 768px) {
    .calendar-section {
        padding: 0 0.5rem;
    }

    .cast-image img {
        width: 100%;
        height: 100%;
    }
}

/* ==========================================================================
   Dark theme overrides
   ========================================================================== */
.equipment-card,
.cast-card {
    background: #1a1a22;
    border: 1px solid #22222c;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    color: #ededf5;
}
.equipment-card:hover,
.cast-card:hover {
    box-shadow: 0 8px 32px rgba(232,0,78,0.15);
    border-color: rgba(232,0,78,0.3);
}
.cast-name a  { color: #ededf5; }
.cast-name a:hover { color: #e8004e; }
.cast-age     { color: #7d7d8e; }
.timeline-container-modern { background: #0e0e12; }
.timeline-hours-display    { background: #131317; border-bottom-color: #22222c; }
.hour-number               { color: #7d7d8e; font-size: 0.6rem; }
.timeline-half-hour        { border-right-color: #22222c; }

/* ==========================================================================
   キャストカードフッター（時間＋ボタン）
   ========================================================================== */
.cast-footer {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.35rem;
    padding-top: 0.4rem;
    border-top: 1px solid #22222c;
}

.work-time-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    background: transparent;
}
.work-time-icon  { color: #9d9db0; font-size: 0.72rem; }
.work-time-text  {
    display: inline-block;
    background: #000;
    color: #FFD700;
    font-weight: 600;
    border-radius: 4px;
    padding: 1px 6px;
    white-space: nowrap;
}

/* ダーク背景のカードではサイズ文字色を上書き */
.cast-footer .item-card-sizes {
    color: #9d9db0;
}

.cast-btns {
    display: flex;
    gap: 0.35rem;
    align-items: center;
    justify-content: center;
}

/* タイムラインボタン */
.timeline-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.28rem 0.6rem;
    background: #1e1e28;
    border: 1px solid #30303e;
    border-radius: 4px;
    color: #ededf5;
    font-size: 0.68rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
    white-space: nowrap;
    flex: 1;
}
.timeline-btn:hover {
    background: #2a2a38;
    border-color: #e8004e;
    color: #e8004e;
}

.reservation-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.28rem 0.6rem;
    background: #e8004e;
    border: none;
    border-radius: 4px;
    color: #fff !important;
    font-size: 0.68rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.18s;
    white-space: nowrap;
    flex: 1;
}
.reservation-btn:hover { background: #c40041; color: #fff !important; }

/* ==========================================================================
   タイムラインモーダル
   ========================================================================== */
.timeline-modal {
    position: fixed;
    inset: 0;
    z-index: 9900;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.timeline-modal[hidden] { display: none !important; }

.timeline-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.75);
    cursor: pointer;
}

.timeline-modal__panel {
    position: relative;
    background: #1a1a22;
    border: 1px solid rgba(232,0,78,0.3);
    border-radius: 14px;
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px;
    box-shadow: 0 16px 60px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.04) inset;
    animation: tl-modal-in 0.28s cubic-bezier(.22,.61,.36,1) both;
}
@keyframes tl-modal-in {
    from { opacity: 0; transform: scale(.95) translateY(12px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.timeline-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
}
.timeline-modal__date {
    font-size: 0.75rem;
    color: #7d7d8e;
    margin-bottom: 2px;
}
.timeline-modal__name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ededf5;
}
.timeline-modal__close {
    background: none;
    border: 1px solid #30303e;
    color: #7d7d8e;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.2s, color 0.2s;
}
.timeline-modal__close:hover { border-color: #e8004e; color: #e8004e; }

.timeline-modal__legend {
    display: flex;
    gap: 1rem;
    margin-bottom: 16px;
    font-size: 0.75rem;
    color: #7d7d8e;
}
.timeline-modal__body .timeline-container-modern {
    margin-top: 0;
}
.timeline-modal__worktime {
    margin-top: 12px;
    font-size: 0.82rem;
    color: #ededf5;
}

/* ==========================================================================
   トップページ 新セクション共通
   ========================================================================== */
.top-section {
    padding: 2.5rem 1rem;
    border-bottom: 1px solid #22222c;
}
.top-section-inner {
    max-width: 1080px;
    margin: 0 auto;
}
.section-title-sub {
    font-size: 0.65em;
    font-weight: 400;
    color: #7d7d8e;
    letter-spacing: 0.1em;
    margin-left: 0.5rem;
}
.top-section-more { text-align: right; margin-top: 1.25rem; }
.top-more-link {
    font-size: 0.82rem;
    color: #e8004e;
    text-decoration: none;
    font-weight: 600;
}
.top-more-link:hover { color: #ff2d6a; }



/* ── ランキング ── */
.top-ranking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}
.top-rank-card {
    background: #131317;
    border: 1px solid #22222c;
    border-radius: 12px;
    padding: 1.25rem 1rem;
}
.top-rank-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ededf5;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(232,0,78,0.3);
}
.top-rank-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.top-rank-item { display: flex; align-items: center; gap: 0.6rem; }
.top-rank-no {
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px;
    border-radius: 50%;
    font-size: 0.7rem; font-weight: 700;
    background: #30303e; color: #7d7d8e;
    flex-shrink: 0;
}
.top-rank-no--1 { background: #c9a227; color: #fff; }
.top-rank-no--2 { background: #8a8a96; color: #fff; }
.top-rank-no--3 { background: #7a4a28; color: #fff; }
.top-rank-cast {
    display: flex; align-items: center; gap: 0.5rem;
    text-decoration: none; flex: 1; min-width: 0;
}
.top-rank-cast img {
    width: 40px; height: 40px;
    border-radius: 50%; object-fit: cover;
    border: 2px solid #22222c;
    flex-shrink: 0;
}
.top-rank-name { font-size: 0.85rem; color: #ededf5; transition: color 0.18s; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-rank-cast:hover .top-rank-name { color: #e8004e; }
.top-rank-more {
    margin-top: 0.75rem;
    text-align: right;
    font-size: 0.78rem;
}
.top-rank-more a { color: #e8004e; text-decoration: none; }
.top-rank-more a:hover { color: #ff2d6a; }
