/* 基本スタイル (Basic styles) */
.reservation-container {
    /* background-color: #1a1a1a; */
    color: #ffffff;
    font-family: 'Arial', sans-serif;
}

/* スタッフカードスタイル (Staff card styles) */
.yuyue-staff-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* PC端显示5个 */
    gap: 12px; /* 减小间距 */
    max-width: 800px; /* 最大宽度800px */
    margin: 0 auto;
    padding: 20px 0;
}

.yuyue-staff-card {
    width: 100%; /* 使用100%宽度适应grid */
    max-width: 150px; /* 最大宽度150px */
    height: 240px; /* 稍微减小高度 */
    background: #1a1a1a;
    border: 1px solid #333;
    border-top-left-radius: 10px;
    border-bottom-right-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    margin: 0 auto; /* 居中对齐 */
}

.yuyue-staff-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.staff-photo {
    width: 100%;
    height: 65%; /* 调整照片区域高度 */
    overflow: hidden;
    position: relative;
}

.staff-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-info {
    padding: 8px 10px; /* 调整内边距 */
    height: 35%; /* 调整信息区域高度 */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.staff-name {
    font-weight: bold;
    color: #fff;
    font-size: 14px; /* 稍微减小字体 */
    margin-bottom: 5px;
    line-height: 1.2;
}

.staff-tag {
    display: inline-block;
    background: #007cba;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px; /* 减小标签字体 */
    margin: 2px 3px 2px 0;
}

.staff-details {
    font-size: 12px; /* 减小详情字体 */
    color: #ccc;
    line-height: 1.3;
}

/* 出勤カレンダー (Attendance calendar) */
.attendance-calendar {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
}

.calendar-header {
    display: grid;
    grid-template-columns: 120px repeat(7, 1fr);
    /* background: #2a2a2a; */
    position: sticky;
    top: 0;
    z-index: 10;
}

.calendar-body {
    max-height: 400px;
    overflow: auto;
}

.calendar-row {
    display: grid;
    grid-template-columns: 120px repeat(7, 1fr);
    border-bottom: 1px solid #333;
}

.staff-header {
    background: #2a2a2a;
    /* padding: 10px; */
    display: flex;
    align-items: center;
    position: relative;
}

.staff-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.staff-name-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px;
    font-size: 12px;
    text-align: center;
}

/* 予約フォーム (Reservation form) */
.reservation-form {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #333;
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #fff;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    background: #2a2a2a;
    border: 1px solid #555;
    border-radius: 5px;
    color: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 5px rgba(0, 124, 186, 0.5);
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

.submit-btn {
    background: #007cba;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background: #005a87;
}

/* レスポンシブデザイン (Responsive design) */
@media (max-width: 768px) {
    .yuyue-staff-list {
        grid-template-columns: repeat(3, 1fr); /* 手机端显示3个 */
        gap: 8px; /* 手机端更小间距 */
        padding: 15px 10px;
    }
    
    .yuyue-staff-card {
        max-width: none; /* 手机端不限制最大宽度 */
        height: 220px; /* 手机端稍小高度 */
    }
    
    .staff-name {
        font-size: 13px;
    }
    
    .staff-details {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .yuyue-staff-list {
        gap: 6px;
        padding: 10px 5px;
    }
    
    .yuyue-staff-card {
        height: 200px;
    }
}

/* ユーザーセンター (User center) */
.user-center {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #333;
}

.user-center h2 {
    color: #fff;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.user-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.user-menu-item {
    background: #2a2a2a;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.user-menu-item:hover,
.user-menu-item.active {
    background: #007cba;
}

/* スタッフ詳細ページ (Staff detail page) */
.staff-detail {
    background: #1a1a1a;
    color: #fff;
}

.staff-detail-photo {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.staff-detail-info {
    padding: 20px;
    background: #2a2a2a;
    border-radius: 10px;
    margin-bottom: 20px;
}

.reviews-section {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.review-item {
    background: #1a1a1a;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 10px;
    border-left: 3px solid #007cba;
}

/* 第三者リンク関連スタイル (External link related styles) */
.external-link-indicator {
    font-size: 12px;
    opacity: 0.7;
    margin-left: 5px;
    color: #007cba;
}

.yuyue-staff-card.has-external-link {
    position: relative;
}

.yuyue-staff-card.has-external-link::after {
    content: "🔗";
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 14px;
    opacity: 0.6;
    background: rgba(0, 0, 0, 0.7);
    padding: 2px 4px;
    border-radius: 3px;
    z-index: 1;
}

.yuyue-staff-card.has-external-link:hover::after {
    opacity: 1;
    background: rgba(0, 124, 186, 0.8);
}

/* ホバーエフェクトの改善 (Improved hover effects) */
.yuyue-staff-card.has-external-link:hover {
    border-color: #007cba;
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.4);
}
