@charset "UTF-8";

.calendar-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}

.calendar-nav-title {
  font-size: 18px;
  font-weight: bold;
  min-width: 120px;
  text-align: center;
}

.calendar-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  background-color: #4a90d9;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.calendar-nav-btn:hover:not(:disabled) {
  background-color: #357abd;
}

.calendar-nav-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
}

.calendar-wrap {
  margin-bottom: 150px;
}

.table_work_ca {
  width: 100%;
  margin-inline: auto;
  min-width: 940px;
  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-wrap {
    margin-bottom: 70px;
  }

  .table_work_ca {
    min-width: auto;
    table-layout: fixed;
  }

  .table_work_ca th,
  .table_work_ca td {
    font-size: 10px;
    padding: 2px;
  }

  .table_work_ca .tc_sche {
    height: auto;
    min-height: 60px;
  }

  .table_work_ca td span {
    padding: 3px 2px;
    font-size: 9px;
    margin: 0 0 1px 0;
  }

  .calendar-nav-title {
    font-size: 16px;
    min-width: 100px;
  }

  .calendar-nav-btn {
    padding: 6px 10px;
    font-size: 12px;
  }
}

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