/* カスタムカレンダーのスタイル */
.custom-calendar {
  font-family: 'Noto Sans JP', sans-serif;
  width: 100%;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

/* カレンダーヘッダー */
.calendar-header {
  background-color: var(--primary-color);
  color: white;
  padding: 10px 15px;
  border-radius: 10px 10px 0 0;
  text-align: center;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.month-title {
  font-size: 1.2rem;
  margin: 0;
  flex: 1;
}

/* 月切り替えボタン */
.month-nav-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 1rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
  margin: 0 5px;
}

.month-nav-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.month-nav-btn.current-month {
  font-size: 0.8rem;
  width: 50px;
  height: 25px;
  border-radius: 12px;
}

/* 曜日の行 */
.weekdays-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: 500;
  background-color: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

.weekday {
  padding: 8px 0;
  font-size: 0.9rem;
}

.weekday.sunday {
  color: #ff6b6b;
}

.weekday.saturday {
  color: #339af0;
}

/* 日付グリッド */
.days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.day {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  transition: background-color 0.2s;
  font-size: 0.95rem;
}

.day:hover {
  background-color: rgba(103, 242, 226, 0.1);
}

.day.empty {
  background: none;
  cursor: default;
}

.day.sunday {
  color: #ff6b6b;
}

.day.saturday {
  color: #339af0;
}

.day.today {
  background-color: rgba(103, 242, 226, 0.2);
  font-weight: bold;
}

.day.selected {
  background-color: var(--primary-color);
  color: white !important;
  border-radius: 50%;
  font-weight: bold;
}

.day.selected.sunday,
.day.selected.saturday {
  color: white !important;
}

/* 記録マーク */
.day .record-mark {
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 10px;
  color: var(--primary-color);
}

.day.selected .record-mark {
  color: white;
}

/* レスポンシブ対応 */
@media (max-width: 480px) {
  .day {
    height: 35px;
    font-size: 0.9rem;
  }
  
  .weekday {
    font-size: 0.8rem;
  }
}
