@charset "UTF-8";

.u-center {
  display: flex;
  justify-content: center;
}

.calendar-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* スマホでのテーブル最小幅を設定 */
@media (max-width: 768px) {
  .table-schedule {
    min-width: 700px;
  }

  .calendar-container::before {
    content: "横にスクロールできます";
    display: block;
    text-align: center;
    padding: 8px 0;
    font-size: 12px;
    color: #999;
  }
}

.table-schedule {
  border-left: solid 1px #d5d7db;
  border-top: solid 1px #d5d7db;
  width: 100%;
  color: #333;
  font-size: 12px;
  margin-inline: auto;
}

.table-schedule th,
.table-schedule td {
  text-align: center;
  width: calc(100% / 7);
  border-right: solid 1px #d5d7db;
  border-bottom: solid 1px #d5d7db;
}

.table-schedule th {
  border-bottom: none;
  padding: 8px 0 0;
}

.table-schedule .tc_date {
  padding: 8px 0;
}

.table-schedule .tc_sche {
  color: #fff;
  vertical-align: top;
  height: 150px;
}

.table-schedule td span {
  display: block;
  border-radius: 5px;
  padding: 6px 8px;
  font-size: 11px;
  text-align: left;
  margin: 0 5px 2px 0;
}

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

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

.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;
  }
}
