@charset "UTF-8";

/* ▼ 外側 */
.calendar-title {
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #2e4d38;
}

/* ▼ カレンダー外枠（スマホ縮小） */
#calendar-wrapper {
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
}

#reserve-calendar {
  transform-origin: top left;
  width: 900px;
  font-family: "Helvetica", sans-serif;
}

/* ▼ ヘッダー */
.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: nowrap;
  gap: 10px;
}

.calendar-header h2 {
  flex: 1;
  text-align: center;
  font-size: 25px !important;
  color: #2e4d38;
  white-space: nowrap;
}

.calendar-header button {
  background: #fff;
  color: #2e4d38;
  border: 1px solid #cdd9d0;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  white-space: nowrap;
  transition: 0.2s;
}

.calendar-header button:hover {
  background: #59b9c6;
  color: #fff;
}

/* ▼ スマホ表示調整 */
@media (max-width: 480px) {
  .calendar-header h2 {
    font-size: 24px !important;
  }	
  .calendar-header button {
    font-size: 12px;
    padding: 4px 8px;
  }
}

/* ▼ カレンダー枠 */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border: 1px solid #e5e5e5;
  width: 100%;
}
.calendar-grid > div {
  border: 1px solid #e5e5e5;
  padding: 6px;
  min-height: 70px;
  background: #fff;
  font-size: 12px;
  box-sizing: border-box;
}
.calendar-day strong {
  font-size: 13px;
}

/* 今日のハイライト */
.calendar-day.today {
  background: #fff9c4;
  border: 2px solid #fbc02d;
}

.events {
  margin-top: 3px;
  font-size: 11px;
}

/* ▼ ルーム別デザイン */
.room-a { background: #ff9999; border-left: 4px solid #ff9999; }
.room-b { background: #fddea5; border-left: 4px solid #fddea5; }
.room-c { background: #badcad; border-left: 4px solid #badcad; }

.event-item {
  padding: 3px 4px;
  margin-top: 2px;
  border-radius: 4px;
  color: #333;
}
.event-room {
  display: inline-block;
  background: rgba(0,0,0,0.25);
  color: #fff;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 10px;
}
