@charset "UTF-8";

.c-calendar .hidden-md {
  display: none;
}

.c-calendar .desc {
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 14px;
}

.calendar-table-wrap:not(:last-child) {
  margin-bottom: 50px;
}

.calendar-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

.calendar-table th,
.calendar-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
}

.calendar-table th {
  background-color: #f2f2f2;
  font-weight: bold;
  width: calc(100% / 8);
}

.calendar-table td {
  vertical-align: top;
  white-space: nowrap;
}

.calendar-table .day {
  margin-bottom: 5px;
}

.calendar-table .off {
  vertical-align: middle;
  color: #cc0000;
  background-color: #ffebeb;
}

.calendar-table .other-month {
  background-color: #f9f9f9;
  color: #999;
}

.calendar-table .day.saturday {
  color: #0059b3;
  background-color: #e6f2ff;
}

.calendar-table .day.sunday,
.calendar-table .day.holiday {
  color: #cc0000;
  background-color: #ffebeb;
}

/* スマホ対応のスタイル */
@media screen and (max-width: 768px) {
  .c-calendar .hidden-md {
    display: block;
  }

  .calendar-table-wrap:not(:last-child) {
    margin-bottom: 30px;
  }

  .calendar-table th,
  .calendar-table td {
    font-size: 11px;
    padding: 4px;
  }

  .calendar-table .day {
    line-height: 1.5;
  }
}

.loading {
  position: relative;
  height: 150px;
}

.loading:before {
  content: "読み込み中";
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 40px);
}

.loading:after {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  width: 50px;
  height: 50px;
  border: 5px solid #000;
  border-right: 5px solid transparent;
  border-radius: 50%;
  animation: loading 2s linear infinite;
}

@keyframes loading {
  0% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.9;
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
    opacity: 0.3;
  }
}
