/**
 * Schedule Page Styles
 *
 * @package NONKE_SPA
 * @since 1.0.0
 */

/* ==========================================================================
   日付選択セクション
   ========================================================================== */
.p-scheduleDate {
    padding: 40px 0 20px;
    background: rgba(0, 0, 0, 0.1);
}

.p-scheduleDate__selector {
    display: flex;
    justify-content: center;
    gap: 5px;
    flex-wrap: nowrap;
}

.p-scheduleDate__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 5px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    min-width: 50px;
    flex-shrink: 0;
}

.p-scheduleDate__item:hover {
    border-color: #303c09;
    background: #f8f8f8;
}

.p-scheduleDate__item.is-selected {
    background: #303c09;
    color: #fff;
    border-color: #303c09;
}

.p-scheduleDate__item.is-today {
    border-color: #fff5b8;
}

.p-scheduleDate__item.is-today.is-selected {
    background: #303c09;
    border-color: #fff5b8;
    box-shadow: 0 0 0 3px #fff5b8;
}

.p-scheduleDate__day {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
}

.p-scheduleDate__weekday {
    font-size: 10px;
}

/* ==========================================================================
   スタッフ一覧セクション
   ========================================================================== */
.p-staffList {
    padding: 0 0 60px 0;
}

.p-staffList__title {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #303c09;
}

.p-staffList__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* スタッフカード */
.p-staffCard {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.p-staffCard:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.p-staffCard__image {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.p-staffCard__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.p-staffCard__image:hover img {
    transform: scale(1.05);
}

.p-staffCard__body {
    padding: 20px;
}

.p-staffCard__name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #303c09;
}

/* 出勤時間表示 */
.p-staffCard__shift {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 10px 0;
    background: #fff5b8;
    border-radius: 4px;
    margin-bottom: 15px;
    font-weight: 700;
    color: #303c09;
    white-space: nowrap;
    font-size: 14px;
}

.p-staffCard__shift i {
    font-size: 12px;
}

.p-staffCard__meta {
    margin-bottom: 20px;
}

.p-staffCard__metaRow {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
}

.p-staffCard__metaRow:last-child {
    border-bottom: none;
}

.p-staffCard__metaRow span:first-child {
    color: #666;
}

.p-staffCard__metaRow span:last-child {
    font-weight: 500;
}

.p-staffCard__button {
    display: block;
    width: 100%;
    padding: 12px;
    background: #303c09;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.p-staffCard__button:hover {
    background: #1f2806;
}

/* データなし */
.p-staffList__nodata {
    text-align: center;
    padding: 80px 20px;
}

.p-staffList__nodata p {
    font-size: 18px;
    color: #666;
}

/* ==========================================================================
   レスポンシブ対応
   ========================================================================== */
@media (max-width: 1024px) {
    .p-staffList__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .p-scheduleDate {
        padding: 30px 0 15px;
    }
    
    .p-scheduleDate__selector {
        gap: 3px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 15px;
        margin: 0 -15px;
    }
    
    .p-scheduleDate__item {
        padding: 8px 4px;
        min-width: 45px;
    }
    
    .p-scheduleDate__day {
        font-size: 12px;
    }
    
    .p-scheduleDate__weekday {
        font-size: 9px;
    }
    
    .p-staffList {
        padding: 40px 0;
    }
    
    .p-staffList__title {
        font-size: 20px;
        margin-bottom: 30px;
    }
    
    .p-staffList__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .p-staffCard__body {
        padding: 15px;
    }
    
    .p-staffCard__name {
        font-size: 18px;
    }
    
    .p-staffCard__shift {
        font-size: 12px;
        padding: 8px 8px 0;
    }
    
    .p-staffCard__metaRow {
        font-size: 13px;
    }
}

/* ==========================================================================
   印刷対応
   ========================================================================== */
@media print {
    .p-scheduleDate {
        display: none;
    }
    
    .p-staffList__grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .p-staffCard {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .p-staffCard__button {
        display: none;
    }
}