.mendan-body {
  background-color: #FAFAF8; /* アイボリー */
}

.calendar-container { }

/* カレンダーヘッダー */
.calendar-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.calendar-controls {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: stretch;
}

.date-jump-group {
  display: flex;
  gap: 0.5rem;
}

.date-jump-group input {
  flex: 1;
  min-width: 0;
}

/* カレンダーグリッド */
.calendar-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -15px;
  padding: 0 15px;
}

.calendar-grid {
  display: grid;
  gap: 2px;
  background: #E7E5DF;
  border: 1px solid #E7E5DF;
  border-radius: 6px;
  overflow: hidden;
  min-width: 600px;
}

.calendar-cell {
  background: #FAFAF8;
  padding: 8px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  border: 1px solid #E7E5DF;
}

.calendar-cell.header {
  background: #4B5563; /* ダークグレー */
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  border-color: #E7E5DF;
}

.calendar-cell.header.day-sunday {
  background: #F87171; /* くすみ赤 */
}

.calendar-cell.header.day-saturday {
  background: #60A5FA; /* くすみ青 */
}

.calendar-header-month {
  margin-bottom: 2px;
  color: #fff;
}

.calendar-header-day {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #fff;
}

.calendar-day-number {
  font-weight: 700;
}

.calendar-day-week {
  font-size: 0.8rem;
  color: #fff;
}

.calendar-cell.day-sunday {
  background: #F87171; /* くすみ赤 */
  color: #fff;
}

.calendar-cell.day-saturday {
  background: #60A5FA; /* くすみ青 */
  color: #fff;
}

.calendar-cell.time {
  background: #374151; /* グレー */
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  border-color: #E7E5DF;
}

.calendar-cell.available {
  cursor: pointer;
  background: #DCFCE7; /* 薄グリーン */
  color: #1f2b10;
  border-color: #E7E5DF;
}

.calendar-cell.available:hover {
  background: #34D399; /* ミント */
}

.calendar-cell.past {
  color: #888;
  background: #f7f7f7;
  border-color: #E7E5DF;
}

.calendar-slot-indicator.available { 
  color: #2a7a2a;
  font-size: 1.2rem;
}

/* 確認テーブル */
.confirm-table th {
  background: #4B5563; /* ダークグレー */
  color: #fff;
}

/* タブレット以上 */
@media (min-width: 768px) {
  .calendar-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .calendar-header h4 {
    margin-bottom: 0 !important;
  }

  .calendar-controls {
    flex-direction: row;
    align-items: center;
  }

  .date-jump-group input {
    width: 160px;
    flex: initial;
  }

  .calendar-wrapper {
    margin: 0;
    padding: 0;
  }

  .calendar-grid {
    min-width: 0;
  }

  .calendar-cell {
    padding: 10px;
    min-height: 56px;
    font-size: 1rem;
  }

  .calendar-cell.header,
  .calendar-cell.time {
    font-size: 0.9rem;
  }
}

/* スマホ（幅が狭い場合）は曜日を改行して2段表示 */
@media (max-width: 575.98px) {
  .calendar-header-day {
    flex-direction: column;
    line-height: 1.2;
  }

  .calendar-day-week {
    display: block;
  }
}

/* 面談者専用CSS */
.mendan-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
}

.mendan-welcome {
    font-size: 1.5rem;
    font-weight: 600;
}

.reservation-status-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.reservation-detail {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.zoom-info {
    background: #e3f2fd;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.zoom-info-title {
    font-weight: 600;
    color: #1976d2;
    margin-bottom: 15px;
}

.zoom-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #2196f3;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.zoom-link:hover {
    background-color: #1976d2;
}
