/* ▼ カード全体（予約1件） */
.reservation-card {
  position: relative;
  background: #f9fcff;
  border-left: 5px solid #007acc;
  margin: 1em 0;
  padding: 1em;
  border-radius: 10px;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s;
}

.reservation-card.today {
  background-color: #fff4e5;
  border-left-color: #ffa500;
}

.reservation-card:hover {
  transform: scale(1.02);
}

/* ▼ 上段：時間とカレンダーリンク（横並び） */
.reservation-weekday-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75em;
  color: #555;
  margin-bottom: 4px;
}

.reservation-time {
  font-weight: bold;
  font-size: 1.3em;
  flex: 1;
}

.calendar-inline {
  font-size: 0.75em;
  color: #777;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.calendar-inline a {
  color: #777;
  text-decoration: underline;
}

.calendar-inline a:hover {
  color: #333;
}

/* ▼ 中段：予約内容 */
.reservation-content {
  margin-top: 0.5em;
  font-size: 1em;
  color: #333;
}

/* ▼ 下段右：予約変更リンク */
.change-reserve-bottom {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: 0.75em;
}

.change-link {
  color: #007acc;
  text-decoration: underline;
}

.change-link:hover {
  color: #005fa3;
}
/* ▼ 追加：右上カレンダー配置 */
.calendar-top-right {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 0.75em;
  color: #555;
  display: flex;
  align-items: center;
  gap: 6px;
}
.calendar-label {
  font-weight: bold;
  color: #333;
}

/* ▼ 追加：右下 予約変更リンク */
.change-reserve-bottom {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: 0.75em;
}

/* ▼ 修正：.reservation-card に position: relative を追加 */
.reservation-card {
  background: #f9fcff;
  border-left: 5px solid #007acc;
  margin: 1em 0;
  padding: 1em;
  border-radius: 10px;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s;
  position: relative;  /* ← ★追加ここ重要 */
}

.reservation-card,
.no-reserve-card,
.reserve-date-header,
.reservation-row,
.reservation-content {
  font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
  font-size: 0.95em; /* .in-clinic-status と同じ */
  color: #333;
}