@charset "UTF-8";

.calendar {
  overflow: hidden;
}

.calendar table {
  width: 100%;
  margin-inline: auto;
  min-width: 940px;
}

.table_work_ca {
  border-left: solid 1px #d5d7db;
  border-top: solid 1px #d5d7db;
}

.table_work_ca th,
.table_work_ca td {
  text-align: center;
  width: calc(100% / 7);
  border-right: solid 1px #d5d7db;
  border-bottom: solid 1px #d5d7db;
  color: #35383b;
  font-size: 12px;
}

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

.table_work_ca .tc_date {
  padding: 8px 0;
}

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

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

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

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

@media screen and (max-width: 768px) {
  .calendar {
    overflow-x: scroll;
  }

  .scroll-hint {
    display: block;
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    padding: 8px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
  }
}

/* デスクトップでは案内テキストを非表示 */
@media screen and (min-width: 769px) {
  .scroll-hint {
    display: none;
  }
}

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