/*─────────────────────────────
  今日の出勤（ショートコード用）
─────────────────────────────*/

.today-staff-grid,
.staff-list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 常に2列表示 */
    gap: 20px;
    margin: 20px 0;
    padding: 0 10px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.staff-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.staff-image {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 136.96%; /* 460:630の比率 (630/460 = 1.3696) */
    overflow: hidden;
}

.staff-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.staff-card:hover .staff-image img {
    transform: scale(1.05);
}

.no-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 16px;
}

.staff-info {
    padding: 15px;
    text-align: center;
}

.staff-name {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.staff-tagline {
    font-size: 13px;
    color: #666;
    margin: 0 0 10px 0;
    font-style: italic;
    line-height: 1.3;
}

.staff-age {
    font-size: 13px;
    color: #888;
    margin: 0 0 12px 0;
}

.staff-schedule-today {
    background: #5a6c57;
    color: white;
    padding: 6px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    margin: 0 0 12px 0;
    display: inline-block;
}

.staff-detail-btn {
    display: inline-block;
    background: #5a6c57;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: background-color 0.3s ease;
}

.staff-detail-btn:hover {
    background: #4a5947;
    color: white;
    text-decoration: none;
}

.no-staff-today,
.no-staff {
    grid-column: 1 / -1; /* 全列をまたぐ */
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

/*─────────────────────────────
  個別スタッフページ（single-staff.php）
─────────────────────────────*/
.staff-single {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.staff-single-content {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 20px;
}

/* 画像エリア */
.staff-images {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin-bottom: 20px;
  padding-bottom: 10px;
}

.staff-image {
  flex: 0 0 auto;
  width: 300px;
}

.staff-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* プロフィール詳細 */
.staff-profile {
  text-align: center;
  margin-bottom: 30px;
}

.staff-profile h1 {
  font-size: 28px;
  margin-bottom: 10px;
  color: #333;
}

.profile-catch {
  font-size: 16px;
  color: #666;
  font-style: italic;
  margin-bottom: 10px;
}

.profile-meta {
  font-size: 14px;
  color: #888;
  margin-bottom: 15px;
}

.profile-sns {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.profile-sns a {
  color: #4a5d3a;
  text-decoration: none;
  font-size: 16px;
  padding: 5px 15px;
  border: 1px solid #4a5d3a;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.profile-sns a:hover {
  background: #4a5d3a;
  color: #fff;
}

/* シフト表 */
.staff-schedule-wrapper {
  margin-bottom: 30px;
}

.staff-schedule-wrapper h2 {
  font-size: 20px;
  margin-bottom: 15px;
  text-align: center;
  color: #333;
}

.staff-schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.staff-schedule-table th,
.staff-schedule-table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
  font-size: 14px;
}

.staff-schedule-table th {
  background: #f5f5f5;
  font-weight: bold;
}

/* 予約ボタン */
.staff-reserve-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-reserve-choice {
  display: inline-block;
  padding: 12px 30px;
  background: #4a5d3a;
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  min-width: 150px;
  text-align: center;
}

.btn-reserve-choice:hover {
  background: #3a4d2a;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/*─────────────────────────────
  予約フォーム
─────────────────────────────*/

.reservation-form {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.form-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.form-section h3 {
    color: #5a6c57;
    border-bottom: 2px solid #5a6c57;
    padding-bottom: 10px;
    margin: 0 0 20px 0;
    font-size: 18px;
}

.form-section label {
    display: block;
    margin-bottom: 15px;
    font-weight: bold;
    color: #333;
}

.required {
    color: #e74c3c;
    margin-left: 5px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    margin-top: 5px;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #5a6c57;
}

.form-buttons {
    text-align: center;
    margin-top: 30px;
}

.submit-btn {
    background: #5a6c57;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background: #4a5947;
}

/* エラーメッセージ */
.wpcf7-not-valid-tip {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
}

.wpcf7-validation-errors {
    background: #fee;
    border: 1px solid #e74c3c;
    color: #e74c3c;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.wpcf7-mail-sent-ok {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

/*─────────────────────────────
  レスポンシブ調整
─────────────────────────────*/

/* スマホでも2列表示を維持 */
@media (max-width: 767px) {
    .today-staff-grid,
    .staff-list-grid {
        grid-template-columns: repeat(2, 1fr); /* スマホでも2列を維持 */
        gap: 10px; /* 狭めのギャップ */
        padding: 0 10px;
        max-width: 100%;
    }
    
    .staff-card {
        border-radius: 8px; /* 少し小さめの角丸 */
    }
    
    .staff-info {
        padding: 10px; /* パディングを小さく */
    }
    
    .staff-name {
        font-size: 14px; /* フォントサイズを小さく */
        margin: 0 0 6px 0;
    }
    
    .staff-tagline {
        font-size: 11px;
        margin: 0 0 8px 0;
    }
    
    .staff-age {
        font-size: 11px;
        margin: 0 0 8px 0;
    }
    
    .staff-schedule-today {
        font-size: 10px;
        padding: 4px 8px;
        margin: 0 0 8px 0;
    }
    
    .staff-detail-btn {
        font-size: 11px;
        padding: 6px 12px;
    }

    .staff-single {
        padding: 10px;
    }
    
    .staff-single-content {
        padding: 15px;
    }
    
    .staff-images {
        flex-direction: column;
        align-items: center;
    }
    
    .staff-image {
        width: 100%;
        max-width: 400px;
    }
    
    .staff-schedule-table {
        font-size: 12px;
    }
    
    .staff-schedule-table th,
    .staff-schedule-table td {
        padding: 5px;
    }
    
    .staff-reserve-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-reserve-choice {
        width: 100%;
        max-width: 300px;
    }

    .reservation-form {
        padding: 15px;
        margin: 10px;
    }
    
    .form-section {
        padding: 15px;
    }
    
    .submit-btn {
        width: 100%;
        padding: 15px;
    }
}

/* 非常に小さいスマホ（320px以下）でも2列を維持 */
@media (max-width: 480px) {
    .today-staff-grid,
    .staff-list-grid {
        grid-template-columns: repeat(2, 1fr); /* 小さいスマホでも2列 */
        gap: 8px; /* さらに狭いギャップ */
        padding: 0 8px;
    }
    
    .staff-info {
        padding: 8px;
    }
    
    .staff-name {
        font-size: 13px;
    }
    
    .staff-tagline {
        font-size: 10px;
    }
    
    .staff-age {
        font-size: 10px;
    }
    
    .staff-schedule-today {
        font-size: 9px;
        padding: 3px 6px;
    }
    
    .staff-detail-btn {
        font-size: 10px;
        padding: 5px 10px;
    }
}

/* タブレット表示 */
@media (min-width: 768px) and (max-width: 1024px) {
    .today-staff-grid,
    .staff-list-grid {
        max-width: 700px;
        gap: 18px;
    }
}