/**
 * Staff Grid Styles
 *
 * @package NONKE_SPA
 * @since 1.0.0
 */

/* スタッフグリッド */
.p-staffGrid,
.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: all 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;
}

.p-staffCard__body {
    padding: 20px;
}

.p-staffCard__name {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #333;
}

.p-staffCard__meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 8px;
    margin-bottom: 16px;
}

.p-staffCard__metaRow {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
    font-size: 14px;
}

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

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

.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-staffCard__shift {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    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;
}

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

@media (max-width: 768px) {
    .p-staffGrid,
    .p-staffList__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .p-staffCard__body {
        padding: 16px;
    }
    
    .p-staffCard__name {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .p-staffCard__metaRow {
        font-size: 13px;
    }
    
    .p-staffCard__button {
        padding: 10px;
        font-size: 13px;
    }
    
    .p-staffCard__shift {
        font-size: 12px;
        padding: 8px;
    }
}