/* ========================================
   応募者管理画面 専用スタイル
======================================== */

/* ========================================
   2カラムコンテンツ
======================================== */
/* activeクラスがある時のみ表示 */
#section-applicants.active {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 140px); /* ヘッダー＋セクションヘッダーの高さを引く */
  overflow: hidden;
}

#section-applicants .section-header {
  flex-shrink: 0;
}

.applicants-content {
  display: flex;
  flex: 1;
  overflow: hidden;
  min-height: 0; /* flexboxでスクロールを有効にするために必要 */
}

.applicants-list-panel {
  flex: 0 0 60%;
  max-width: 60%;
  padding: 20px;
  overflow: hidden; /* 左側は固定（スクロールなし） */
  border-right: 1px solid #e5e7eb;
  background: #f8fafc;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* 応募者リストのみスクロール可能 */
.applicants-list-panel .applicants-list {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.applicants-detail-panel {
  flex: 0 0 40%;
  max-width: 40%;
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%; /* 親の高さいっぱいに */
}

/* ========================================
   統計カード（コンパクト版）
======================================== */
.stats-cards.compact {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-shrink: 0; /* 固定（縮まない） */
}

.stats-cards.compact .stat-card {
  flex: 1;
  background: #fff;
  border-radius: 8px;
  padding: 12px 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.stats-cards.compact .stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
}

.stats-cards.compact .stat-label {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

.stats-cards.compact .stat-new {
  border-left: 3px solid #f59e0b;
}

.stats-cards.compact .stat-progress {
  border-left: 3px solid #3b82f6;
}

.stats-cards.compact .stat-complete {
  border-left: 3px solid #10b981;
}

/* ========================================
   フィルター（コンパクト版）
======================================== */
.filter-section.compact {
  margin-bottom: 16px;
  flex-shrink: 0;
  background: #f8fafc;
  border-radius: 10px;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
}

.filter-section.compact .filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.filter-select {
  padding: 8px 28px 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%236b7280'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 8px center;
  appearance: none;
  min-width: 100px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-select:hover {
  border-color: #d1d5db;
  background-color: #fafafa;
}

/* 選択中のフィルターをハイライト */
.filter-select.filter-active {
  border-color: #6366f1;
  background-color: #f5f3ff;
  color: #4f46e5;
  font-weight: 500;
}

.filter-input {
  flex: 1;
  min-width: 140px;
  padding: 8px 12px 8px 32px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='%239ca3af'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E") no-repeat 10px center;
  transition: all 0.15s ease;
}

.filter-input:hover {
  border-color: #d1d5db;
}

.filter-select:focus,
.filter-input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.filter-row-checkbox {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
}

/* トグルスイッチ風チェックボックス */
.filter-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  user-select: none;
  padding: 4px 0;
}

.filter-checkbox input[type="checkbox"] {
  position: relative;
  width: 36px;
  height: 20px;
  appearance: none;
  background: #d1d5db;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-checkbox input[type="checkbox"]::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: all 0.2s ease;
}

.filter-checkbox input[type="checkbox"]:checked {
  background: #6366f1;
}

.filter-checkbox input[type="checkbox"]:checked::before {
  transform: translateX(16px);
}

.filter-checkbox span {
  white-space: nowrap;
  font-weight: 500;
}

/* フィルターラベル（オプション） */
.filter-label {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

/* ========================================
   応募者リスト
======================================== */
.applicants-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.applicant-card {
  background: #fff;
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border: 2px solid transparent;
}

.applicant-card:hover {
  background: #f8fafc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.applicant-card.selected {
  border-color: #6366f1;
  background: #f5f3ff;
}

.applicant-card-main {
  flex: 1;
  min-width: 0;
}

.applicant-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.applicant-card-name {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.applicant-card-job {
  font-size: 13px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.applicant-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #94a3b8;
}

.applicant-card-type {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  background: #e0e7ff;
  color: #4338ca;
}

.applicant-card-type.type-line {
  background: #dcfce7;
  color: #166534;
}

.applicant-card-type.type-consult {
  background: #fef3c7;
  color: #92400e;
}

/* 重複バッジ（再応募・NG履歴） */
.duplicate-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  margin-left: 6px;
}

.badge-reapply {
  background: #dbeafe;
  color: #1e40af;
}

.badge-ng-history {
  background: #fecaca;
  color: #991b1b;
}

.badge-ai-interview {
  background: #ede9fe;
  color: #5b21b6;
}

.badge-ai-interview-progress {
  background: #fef3c7;
  color: #92400e;
}

.badge-ai-interview-abandoned {
  background: #fee2e2;
  color: #991b1b;
}

.applicant-card-status {
  flex-shrink: 0;
}

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.status-badge.status-new {
  background: #fef3c7;
  color: #92400e;
}

.status-badge.status-contacted {
  background: #dbeafe;
  color: #1e40af;
}

.status-badge.status-interviewing {
  background: #e0e7ff;
  color: #4338ca;
}

.status-badge.status-interviewed {
  background: #c7d2fe;
  color: #3730a3;
}

.status-badge.status-hired {
  background: #dcfce7;
  color: #166534;
}

.status-badge.status-rejected {
  background: #fee2e2;
  color: #991b1b;
}

.status-badge.status-withdrawn {
  background: #f1f5f9;
  color: #64748b;
}

.status-badge.status-joined {
  background: #a7f3d0;
  color: #065f46;
}

.status-badge.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.status-badge.status-ng {
  background: #fecaca;
  color: #991b1b;
}

.loading-message,
.empty-message {
  text-align: center;
  color: #94a3b8;
  padding: 40px 20px;
}

/* ========================================
   詳細パネル
======================================== */
.detail-empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  padding: 40px;
}

.detail-empty-state .empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.detail-empty-state p {
  font-size: 14px;
}

.detail-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0; /* flexboxでスクロールを有効にするために必要 */
}

.detail-header {
  padding: 16px 20px;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: #fff;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-shrink: 0;
}

.detail-header-info h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.detail-header-info .detail-job {
  margin: 4px 0 0;
  font-size: 13px;
  opacity: 0.8;
}

.btn-close-detail {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
}

.btn-close-detail:hover {
  color: #fff;
}

.detail-scroll-area {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  min-height: 0; /* flexboxでスクロールを有効にするために必要 */
}

/* ========================================
   詳細カード
======================================== */
.detail-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.detail-card:last-child {
  margin-bottom: 0;
}

.detail-card h3 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.detail-item label {
  font-size: 11px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.detail-item span {
  font-size: 14px;
  color: #1e293b;
  word-break: break-all;
}

/* ========================================
   ステータスボタン
======================================== */
.status-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.status-btn {
  padding: 6px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 12px;
  background: #fff;
  cursor: pointer;
  transition: all 0.15s;
}

.status-btn:hover {
  background: #f8fafc;
  border-color: #6366f1;
}

.status-btn.active {
  background: #6366f1;
  color: #fff;
  border-color: #6366f1;
}

.status-btn.status-success.active {
  background: #10b981;
  border-color: #10b981;
}

.status-btn.status-danger.active {
  background: #ef4444;
  border-color: #ef4444;
}

.status-btn.status-muted.active {
  background: #64748b;
  border-color: #64748b;
}

.status-btn.status-joined.active {
  background: #059669;
  border-color: #059669;
}

.status-btn.status-warning.active {
  background: #f59e0b;
  border-color: #f59e0b;
}

.status-btn.status-ng.active {
  background: #dc2626;
  border-color: #dc2626;
}

/* ========================================
   担当者選択
======================================== */
.assignee-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.assignee-row label {
  font-size: 13px;
  color: #64748b;
  flex-shrink: 0;
}

.assignee-row select {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 13px;
}

.btn-icon {
  width: 32px;
  height: 32px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.btn-icon:hover {
  background: #f8fafc;
  border-color: #6366f1;
  color: #6366f1;
}

/* ========================================
   メモ
======================================== */
.detail-card textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 13px;
  resize: vertical;
  font-family: inherit;
  box-sizing: border-box;
}

.detail-card textarea:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

.btn-save-small {
  margin-top: 8px;
  padding: 6px 16px;
  background: #6366f1;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-save-small:hover {
  background: #4f46e5;
}

/* ========================================
   対応履歴
======================================== */
.history-list {
  max-height: 150px;
  overflow-y: auto;
  margin-bottom: 12px;
}

.history-item {
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
}

.history-item:last-child {
  border-bottom: none;
}

.history-date {
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 2px;
}

.history-text {
  color: #374151;
}

.add-history-row {
  display: flex;
  gap: 8px;
}

.add-history-row input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 13px;
}

.btn-add {
  padding: 8px 16px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-add:hover {
  background: #e2e8f0;
}

/* ========================================
   メッセージ
======================================== */
.messages-container {
  max-height: 200px;
  overflow-y: auto;
  background: #f8fafc;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 12px;
}

.message-item {
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 8px;
  max-width: 85%;
}

.message-item:last-child {
  margin-bottom: 0;
}

.message-company {
  background: #6366f1;
  color: #fff;
  margin-left: auto;
}

.message-applicant {
  background: #fff;
  border: 1px solid #e5e7eb;
}

.message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  font-size: 11px;
}

.message-company .message-header {
  color: rgba(255, 255, 255, 0.8);
}

.message-applicant .message-header {
  color: #94a3b8;
}

.message-content {
  font-size: 13px;
  line-height: 1.5;
}

.message-input-row {
  margin-bottom: 8px;
}

.template-select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
}

.message-actions {
  display: flex;
  justify-content: flex-end;
}

.btn-send {
  padding: 8px 24px;
  font-size: 13px;
}

.message-hint {
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
  margin-top: 8px;
  margin-bottom: 0;
}

.no-data {
  color: #94a3b8;
  font-size: 13px;
  text-align: center;
  margin: 0;
  padding: 12px 0;
}

/* ========================================
   ページネーション
======================================== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 16px 0;
}

.page-btn {
  padding: 6px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}

.page-btn:hover:not(:disabled) {
  background: #f8fafc;
  border-color: #6366f1;
}

.page-btn.active {
  background: #6366f1;
  color: #fff;
  border-color: #6366f1;
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ========================================
   インフォボックス
======================================== */
.info-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 14px;
  color: #1e40af;
}

.info-box p {
  margin: 0;
}

.info-box strong {
  font-weight: 600;
}

/* ========================================
   レスポンシブ
======================================== */
@media (max-width: 1200px) {
  .applicants-list-panel {
    flex: 0 0 55%;
    max-width: 55%;
  }

  .applicants-detail-panel {
    flex: 0 0 45%;
    max-width: 45%;
  }
}

@media (max-width: 992px) {
  .applicants-content {
    flex-direction: column;
  }

  .applicants-list-panel,
  .applicants-detail-panel {
    flex: none;
    max-width: 100%;
    width: 100%;
  }

  .applicants-list-panel {
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
    max-height: 50vh;
  }

  .applicants-detail-panel {
    min-height: 50vh;
  }

  .detail-empty-state {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .stats-cards.compact {
    flex-wrap: wrap;
  }

  .stats-cards.compact .stat-card {
    flex: 0 0 calc(50% - 6px);
  }

  .filter-section.compact .filter-row {
    flex-wrap: wrap;
  }

  .filter-select {
    flex: 0 0 calc(50% - 4px);
    min-width: auto;
  }

  .filter-input {
    flex: 0 0 100%;
    margin-top: 8px;
  }
}

/* ========================================
   設定セクション
======================================== */
.settings-section {
  padding: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.settings-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: #1e293b;
}

.settings-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.settings-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
}

.settings-description {
  color: #64748b;
  font-size: 14px;
  margin: 0 0 20px;
}

/* カレンダー連携リスト */
.calendar-integrations-list {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.calendar-integration-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.calendar-integration-item:last-child {
  border-bottom: none;
}

.calendar-integration-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.calendar-integration-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.calendar-integration-details h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}

.calendar-integration-details p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #64748b;
}

.calendar-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.calendar-status.connected {
  background: #dcfce7;
  color: #166534;
}

.calendar-status.not-connected {
  background: #f1f5f9;
  color: #64748b;
}

.btn-connect-calendar {
  padding: 8px 16px;
  background: #4285f4;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}

.btn-connect-calendar:hover {
  background: #3367d6;
}

.btn-disconnect-calendar {
  padding: 8px 16px;
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-disconnect-calendar:hover {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fecaca;
}

/* リマインダー設定 */
.reminder-settings {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reminder-option {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reminder-option label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
}

.time-input {
  padding: 4px 8px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  font-size: 13px;
}

/* ========================================
   面談情報・ボタン
======================================== */
.interview-info {
  margin-bottom: 12px;
}

.interview-scheduled {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 12px;
}

.interview-scheduled h4 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: #166534;
}

.interview-scheduled p {
  margin: 4px 0;
  font-size: 13px;
  color: #374151;
}

/* 面談情報レイアウト改善 */
.interview-datetime {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #bbf7d0;
}

.interview-date-text {
  font-size: 15px;
  font-weight: 600;
  color: #166534;
}

.interview-time-text {
  font-size: 18px;
  font-weight: 700;
  color: #15803d;
}

.interview-info-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.interview-info-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.interview-info-row .info-label {
  font-size: 13px;
  color: #6b7280;
  min-width: 70px;
  flex-shrink: 0;
}

.interview-info-row .info-value {
  font-size: 14px;
  font-weight: 500;
  color: #1f2937;
}

.interview-meet {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px dashed #d1d5db;
  flex-wrap: wrap;
}

.interview-meet .meet-link {
  font-size: 13px;
  color: #2563eb;
  word-break: break-all;
  text-decoration: none;
}

.interview-meet .meet-link:hover {
  text-decoration: underline;
}

.btn-schedule {
  width: 100%;
  padding: 10px 16px;
  font-size: 14px;
}

/* ========================================
   面談設定モーダル
======================================== */
.modal-large {
  max-width: 700px;
  width: 95%;
}

.radio-group,
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.radio-group label,
.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
}

.form-hint {
  font-size: 12px;
  color: #94a3b8;
  margin: 4px 0 0;
}

/* 週ナビゲーション */
.week-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.week-navigation span {
  font-size: 15px;
  font-weight: 500;
  color: #1e293b;
  min-width: 150px;
  text-align: center;
}

/* 空き時間グリッド（コンテナ） */
.availability-grid {
  max-height: 300px;
  overflow: auto;
  padding: 4px;
}

/* 空き時間週表示（横並び） */
.availability-week {
  display: flex;
  gap: 8px;
  min-width: max-content;
}

.availability-day {
  background: #f8fafc;
  border-radius: 8px;
  padding: 8px;
  min-width: 100px;
  flex-shrink: 0;
}

.day-header {
  text-align: center;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
}

.day-slots {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 200px;
  overflow-y: auto;
}

.availability-day-header {
  text-align: center;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
}

.availability-day-header .day-name {
  font-size: 12px;
  color: #64748b;
  display: block;
}

.availability-day-header .day-date {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}

.availability-slots {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 200px;
  overflow-y: auto;
}

.slot-btn {
  padding: 8px 4px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  font-size: 12px;
  color: #374151;
  cursor: pointer;
  transition: all 0.15s;
}

.slot-btn:hover {
  background: #eff6ff;
  border-color: #3b82f6;
}

.slot-btn.selected {
  background: #3b82f6;
  color: #fff;
  border-color: #3b82f6;
}

.slot-btn:disabled {
  background: #f1f5f9;
  color: #94a3b8;
  cursor: not-allowed;
  border-color: #e5e7eb;
}

.no-slots {
  text-align: center;
  color: #94a3b8;
  font-size: 12px;
  padding: 16px 4px;
}

/* 選択された日時表示 */
.selected-slot {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 500;
  color: #1e40af;
}

/* ========================================
   モーダル追加スタイル
======================================== */
.modal-content.modal-large .modal-body {
  max-height: 60vh;
  overflow-y: auto;
}

.form-group select,
.form-group input[type="text"],
.form-group input[type="datetime-local"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 14px;
}

.form-group select:focus,
.form-group input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}
