/* レイアウト全体 */
.calendar-wrapper {
  display: grid;
  gap: 1rem;
}

/* PC: 最大4列 */
@media (min-width: 1024px) {
  .calendar-wrapper {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* スマホ・タブレット: 最大2列 */
@media (max-width: 1023px) {
  .calendar-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 月単位のカレンダーカード */
.calendar-month {
  background: #F9F9F9;
  border: 1px solid #DDD;
  border-radius: 3px;
  padding: 0.5em;
}

/* 月タイトル */
.calendar-title {
  font-size: 0.8em;
  font-weight: bold;
  margin-bottom: 0.3em;
  text-align: center;
}

/* 曜日ヘッダー */
.calendar-weekdays {
  display: grid;
  font-weight: bold;
  gap: 2px;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 0.2em;
  text-align: center;
}

.calendar-weekday {
  background: #D6D1D1;
  border-radius: 2px;
  font-size: 0.6em;
  padding: 2px;
}

/* 日付のマス（7列 × 週数） */
.calendar-grid {
  display: grid;
  gap: 2px;
  grid-template-columns: repeat(7, 1fr);
}

/* 各日付 */
.calendar-day {
  background: #E0E0E0;
  border-radius: 2px;
  cursor: pointer;
  font-size: 0.6em;
  min-height: 2.4em;
  padding: 2px 6px;
  position: relative;
  text-align: center;
}

/* 空白マス（前の月の余白） */
.calendar-day.empty {
  background: transparent;
}

/* 催行マーク */
.mark {
  color: red;
  font-size: 0.8em;
  position: absolute;
  right: 4px;
  top: 4px;
}

/* 区分色の例 */
.zone-a {
  background-color: #44C2C0;
  color: #000;
}
.zone-b {
  background-color: #1E3F93;
  color: #FFF;
}
.zone-c {
  background-color: #8C45B6;
  color: #FFF;
}
.zone-d {
  background-color: #F39C12;
  color: #000;
}
.zone-e {
  background-color: #E67E22;
  color: #FFF;
}
.zone-f {
  background-color: #2ECC71;
  color: #000;
}
.zone-g {
  background-color: #16A085;
  color: #FFF;
}
.zone-h {
  background-color: #D35400;
  color: #FFF;
}







/* 選択範囲用のスタイル */
.calendar-day.range-active {
  position: relative;
}

/* 下段に5pxの黄色ラインを入れる */
.calendar-day.range-active::after {
  background-color: #FFD700; /* ゴールド */
  border-bottom-left-radius: 1px;
  border-bottom-right-radius: 1px;
  bottom: 0;
  content: "";
  height: 10px;
  left: 0;
  position: absolute;
  width: 100%;
}

/* 馬マーク（初日と最終日） */
.calendar-day.range-start::before,
.calendar-day.range-end::before {
  content: "🐎";
  font-size: 1.4em;
  left: 2px;
  position: absolute;
  top: 75%;
  transform: translateY(-50%); /* 正確に中央寄りに */
  z-index: 5;
}
