@charset "UTF-8";
/*
 * レオ歯科クリニック カレンダー専用スタイル
 * FullCalendar v6 + iCalendar
 */

/* ========== カレンダー本体 ========== */
.leo-cal-compact {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  color: #734c23;
  font-size: 14px;
  box-sizing: border-box;
}
.leo-cal-compact *,
.leo-cal-compact *::before,
.leo-cal-compact *::after {
  box-sizing: border-box;
}
.leo-cal-compact .fc {
  border: 1px solid #e0cdba;
  border-radius: 4px;
  overflow: hidden;
  background-color: #f9f0e8;
}

/* ヘッダー（月名・矢印） */
.leo-cal-compact .fc .fc-toolbar.fc-header-toolbar {
  background-color: #e0cdba;
  margin: 0;
  padding: 4px 6px;
  min-height: 0;
}
.leo-cal-compact .fc .fc-toolbar-chunk {
  display: flex;
  align-items: center;
}
.leo-cal-compact .fc .fc-toolbar-title {
  color: #734c23;
  font-size: 15px;
  font-weight: 500;
  margin: 0 6px;
}
.leo-cal-compact .fc .fc-button-primary {
  background-color: transparent;
  border: none;
  border-radius: 0;
  color: #734c23;
  box-shadow: none;
  padding: 2px 8px;
  font-size: 16px;
  line-height: 1;
  text-shadow: none;
  font-weight: 500;
  outline: none;
}
.leo-cal-compact .fc .fc-button-primary:hover,
.leo-cal-compact .fc .fc-button-primary:not(:disabled):active,
.leo-cal-compact .fc .fc-button-primary:focus,
.leo-cal-compact .fc .fc-button-primary:focus-visible {
  background-color: rgba(115, 76, 35, 0.15);
  color: #734c23;
  border: none;
  box-shadow: none;
  outline: none;
}
.leo-cal-compact .fc .fc-button-primary:disabled {
  color: #c7a988;
  background: transparent;
  border: none;
  box-shadow: none;
  opacity: 1;
}

/* 曜日ヘッダ */
.leo-cal-compact .fc .fc-col-header-cell {
  background-color: #e0cdba;
  padding: 0;
}
.leo-cal-compact .fc .fc-col-header-cell-cushion {
  color: #734c23;
  text-decoration: none;
  padding: 4px 0;
  font-weight: 500;
  font-size: 13px;
}

/* 罫線・本体 */
.leo-cal-compact .fc-theme-standard td,
.leo-cal-compact .fc-theme-standard th,
.leo-cal-compact .fc-theme-standard .fc-scrollgrid {
  border-color: #e0cdba;
}
.leo-cal-compact .fc .fc-daygrid-day {
  background-color: #f9f0e8;
}
.leo-cal-compact .fc .fc-daygrid-day-number {
  color: #734c23;
  text-decoration: none;
  padding: 2px 5px;
  font-size: 13px;
}
.leo-cal-compact .fc .fc-daygrid-day-top {
  justify-content: flex-start;
  padding: 0;
}
.leo-cal-compact .fc .fc-day-other .fc-daygrid-day-top {
  opacity: 0.35;
}

/* 日曜=赤、土曜=青 */
.leo-cal-compact .fc .fc-col-header-cell.fc-day-sun .fc-col-header-cell-cushion,
.leo-cal-compact .fc .fc-daygrid-day.fc-day-sun .fc-daygrid-day-number {
  color: #c0392b;
}
.leo-cal-compact .fc .fc-col-header-cell.fc-day-sat .fc-col-header-cell-cushion,
.leo-cal-compact .fc .fc-daygrid-day.fc-day-sat .fc-daygrid-day-number {
  color: #2c5f8d;
}

/* 日付セルの高さ */
.leo-cal-compact .fc .fc-daygrid-day-frame {
  min-height: 30px;
  padding: 0;
  position: relative;
}

/* 背景色：休診ピンク／お知らせ黄色 */
.leo-cal-compact .fc .fc-daygrid-day.day-holiday {
  background-color: #fbd5db !important;
}
.leo-cal-compact .fc .fc-daygrid-day.day-note {
  background-color: #fff5b3 !important;
  cursor: pointer;
}
.leo-cal-compact .fc .fc-daygrid-day.day-note:hover {
  background-color: #ffe97a !important;
}

/* 本日：背景色なし */
.leo-cal-compact .fc .fc-day-today {
  background-color: transparent !important;
}

/* イベント本体は非表示（背景色のみで表現） */
.leo-cal-compact .fc-daygrid-event-harness,
.leo-cal-compact .fc-daygrid-day-events,
.leo-cal-compact .fc-daygrid-day-bottom {
  display: none !important;
}

/* ========== 凡例 ========== */
.leo-cal-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: #734c23;
  margin-top: 8px;
  line-height: 1.5;
}
.leo-cal-legend .sw {
  display: inline-block;
  width: 11px;
  height: 11px;
  border: 1px solid rgba(115, 76, 35, 0.3);
  margin-right: 4px;
  vertical-align: -1px;
}

/* ========== 注意書き ========== */
.leo-cal-note-text {
  margin: 6px auto 0;
  max-width: 300px;
  width: 100%;
  font-size: 12px;
  color: #734c23;
  line-height: 1.5;
  text-align: center;
  box-sizing: border-box;
}

/* ========== モーダル ========== */
.leo-cal-modal-backdrop {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.45);
  z-index: 9998;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.leo-cal-modal-backdrop.is-open {
  display: flex;
}
.leo-cal-modal {
  background-color: #fffaf5;
  border: 1px solid #e0cdba;
  border-radius: 6px;
  max-width: 400px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  color: #734c23;
}
.leo-cal-modal-head {
  background-color: #e0cdba;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.leo-cal-modal-date {
  font-size: 16px;
  font-weight: 500;
}
.leo-cal-modal-close {
  background: transparent;
  border: none;
  color: #734c23;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.leo-cal-modal-close:hover { opacity: 0.6; }
.leo-cal-modal-body {
  padding: 16px;
}
.leo-cal-modal-event {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px dashed #e0cdba;
}
.leo-cal-modal-event:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
  padding: 1%;
}
.leo-cal-modal-title {
  font-size: 15px;
  font-weight: 500;
  color: #b1440e;
  margin-bottom: 8px;
}
.leo-cal-modal-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #734c23;
  white-space: pre-wrap;
  word-break: break-word;
}
.leo-cal-modal-empty {
  font-size: 14px;
  color: #a87b4a;
  font-style: italic;
}
