/* カレンダー固有のスタイル */
.sakura-calendar-wrapper {
  width: 100%;
  margin-bottom: 20px;
}

.sakura-calendar {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  background: #fff;
}

.calendar-header {
  background: #fddcc4;
  color: white;
  padding: 10px 15px;
  text-align: center;
}

.calendar-title {
  font-size: 18px;
  font-weight: bold;
  color: #EB6C29;
}

.prev-month, .next-month, .today-month {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 14px;
  padding: 0 5px;
}

.today-month {
  margin-left: 5px;
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
  padding: 0 8px;
}

.current-month {
  font-size: 16px;
  min-width: 100px;
  text-align: center;
}

.calendar-table {
  width: 100%;
  border-collapse: collapse;
}

.calendar-table th {
  padding: 10px;
  background: #f5f5f5;
  text-align: center;
  font-weight: normal;
  border-bottom: 1px solid #ddd;
}

.calendar-table td {
  border: 1px solid #ddd;
  height: 80px;
  width: 14.28%;
  vertical-align: top;
  padding: 5px;
  position: relative;
}

.empty-cell {
  background: #f9f9f9;
}

.date-number {
  font-size: 14px;
  margin-bottom: 5px;
  text-align: right;
}

.sunday .date-number {
  color: #e53935;
}

.saturday .date-number {
  color: #1976d2;
}

.events-container {
  font-size: 12px;
  overflow: hidden;
}

.event-item {
  color: white;
  padding: 2px 5px;
  margin-bottom: 2px;
  border-radius: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.more-events {
  text-align: center;
  font-size: 11px;
  color: #666;
  background: #eee;
  padding: 2px;
  border-radius: 2px;
}

.calendar-loading {
  text-align: center;
  padding: 20px;
  color: #666;
}

/* 凡例表示用のスタイル */
.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px;
  border-top: 1px solid #ddd;
  justify-content: center;
}

.legend-item {
  display: flex;
  align-items: center;
  font-size: 12px;
  margin-right: 10px;
}

.legend-color {
  width: 12px;
  height: 12px;
  margin-right: 5px;
  border-radius: 2px;
}

/* カレンダーグループ用スタイル */
.calendar-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}

.calendar-group-title {
  font-size: 16px;
  font-weight: bold;
  margin: 0 0 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid #eaeaea;
  text-align: center;
}

/* レスポンシブ対応 */
@media (max-width: 740px) {
  .calendar-legend {
    justify-content: flex-start;
    padding: 10px 5px;
  }
  
  .calendar-group {
    gap: 15px;
  }
  
  /* SP表示では縦並びに */
  .dr_calendar_flex_list {
    flex-direction: column !important;
  }
  
  .dr_calendar_flex_item,
  .dr_calendar_flex_item.ten {
    width: 100% !important;
    margin-bottom: 20px;
  }
}
