/* 日替わりオリパのスタイル */
#oripa-calendar {
  display: none;
}

.daily-oripa-container {
  background-color: #fff;
  /* border-radius: 8px; */
  /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); */
  /* padding: 20px; */
  margin-bottom: 20px;
}

.daily-oripa-title {
  font-size: 22px;
  color: #333;
  margin-top: 0;
  margin-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 10px;
}

.daily-oripa-date {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
}

.daily-oripa-content {
  line-height: 1.6;
}

.daily-oripa-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 10px  auto;
}

/* オリパカレンダーのスタイル */
.oripa-calendar-container {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
}

.oripa-calendar {
  flex: 1;
  min-width: 300px;
  margin: 0 10px 20px;
}

#daily-oripa-display {
  flex: 2;
  min-width: 300px;
  margin: 0 10px;
}

/* カレンダーのスタイル */
.ui-datepicker {
  width: 100%;
  max-width: 100%;
  padding: 0;
  border: none;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.ui-datepicker-header {
  background: #4a90e2;
  color: white;
  border: none;
  border-radius: 8px 8px 0 0;
  padding: 10px;
}

.ui-datepicker-title {
  font-weight: bold;
}

.calendar-event-title {
  font-size: 7px;
  line-height: 1;
  display: block;
  position: absolute;
  top: 30px;
  font-weight: bold;
  left: 50%;
  width: 100%;
  -webkit-transform: translate(-50%, 0);
  transform: translate(-50%, 0);
}

.ui-datepicker-prev, .ui-datepicker-next {
  cursor: pointer;
  top: 10px !important;
}

.ui-datepicker-calendar {
  width: 100%;
  margin: 0;
  padding: 10px;
}

.ui-datepicker-calendar th {
  padding: 5px;
  font-weight: bold;
  text-align: center;
  background: #f5f5f5;
}

.ui-datepicker-calendar td {
  padding: 2px;
  text-align: center;
}

.ui-datepicker-calendar td a {
  text-align: center;
  padding: 5px;
  display: block;
  text-decoration: none;
  border-radius: 4px;
}

/* イベントがある日のスタイル */
.has-event a {
  background-color: #d4e8ff !important;
  color: #4a90e2 !important;
  font-weight: bold;
  position: relative;
}

.has-event a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background-color: #4a90e2;
  border-radius: 50%;
}

/* イベントタイトル表示 */
.has-event .ui-state-default:after {
  content: attr(title);
  display: block;
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  margin-top: 2px;
  color: #555;
}

/* ツールチップのスタイル */
.ui-tooltip {
  padding: 8px;
  max-width: 300px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

/* 管理画面のスタイル */
.daily-oripa-admin-container {
  margin-top: 20px;
}

.daily-oripa-admin-section {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.daily-oripa-admin-section h2 {
  margin-top: 0;
  color: #4a90e2;
}

.daily-oripa-admin-section code {
  background: #f5f5f5;
  padding: 2px 5px;
  border-radius: 3px;
}

/* レスポンシブデザイン */
@media screen and (max-width: 768px) {
  .oripa-calendar-container {
      flex-direction: column-reverse;
      gap: 20px;
  }
  
  #oripa-calendar, #daily-oripa-display {
      flex: 1 1 100%;
      margin: 0 0 20px;
  }

  /* カレンダーの日付の表示位置を中央にする */
  .calendar-wrapper {
    text-align: center;
    margin-top: 20px;
  }
}

.flatpickr-day {
  border-radius: 0 !important;
  max-width: 50px !important;
  height: 50px !important;
}

.flatpickr-day.selected,
.flatpickr-day.selected .calendar-event-title {
  color: #333 !important;
}

.flatpickr-input {
  border-radius: 0 !important;
}

.dayContainer {
  /* row-gap: 10px !important; */
}

.flatpickr-weekdaycontainer .flatpickr-weekday {
  color: #fff !important;
}

.flatpickr-day:hover {
  background-color: #fff9e5 !important;
}

.daily-oripa-container .wp-block-image {
  margin: 20px auto;
}

.daily-oripa-container .swell-block-button {
  margin-top: 20px;
}

.flatpickr-calendar.arrowTop:before, .flatpickr-calendar.arrowTop:after {
  display: none;
}