@charset "UTF-8";

.calendar-btn {
  text-align: center;
}
.calendar-btn.--mt {
  margin-top: 40px;
}

.calendar-btn .btn-col{
  display: flex;
  justify-content: center;
  gap: 20px;
}

.calendar-container table {
  border: 1px solid #c6c6c6;
}

.calendar-container th {
  font-size: 14px;
  font-weight: normal;
  text-align: center !important;
  width: calc(100% / 8);
}

.calendar-container th:first-child {
  border-left: none;
}

.calendar-container .tc_date {
  padding: 5px 0;
  font-size: 12px;
  text-align: center;
}

.calendar-container .tc_date:first-child {
  border-left: none;
}

.calendar-container .tc_sche {
  vertical-align: top;
  border-left: solid 1px #c6c6c6;
  border-bottom: solid 1px #c6c6c6;
  padding: 2px;
  height: 150px;
}

.calendar-container .tc_sche:first-child {
  border-left: none;
}

.calendar-container tr:last-child .tc_sche {
  border-bottom: none;
}

.calendar-container .tc_sche.closed-day {
  background: #fcdddd;
  color: #fc2424;
  vertical-align: middle;
}

.calendar-container td.saturday,
.calendar-container th.saturday {
  color: #0059b3;
  background-color: #e6f2ff;
}

.calendar-container td.sunday,
.calendar-container th.sunday,
.calendar-container td.holiday {
  color: #cc0000;
  background-color: #ffebeb;
}

.calendar-container td span {
  color: #fff;
  display: block;
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 11px;
  text-align: left;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  .calendar-btn .btn-col{
    flex-direction: column;
  }

  .calendar-container {
    width: 100%;
    overflow-x: visible;
  }

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

  .calendar-container th {
    font-size: 10px;
    padding: 4px 2px;
    line-height: 1.2;
    word-wrap: break-word;
    width: 4em;
  }

  .calendar-container th.closed-day-header {
    width: 1.5em;
  }

  .calendar-container .tc_date {
    font-size: 10px;
    padding: 3px 2px;
  }

  .calendar-container .tc_sche {
    height: 100px;
    padding: 1px;
  }

  .calendar-container td span {
    font-size: 10px;
    padding: 2px 3px;
    margin: 0 0 2px 0;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.3;
    border-radius: 3px;
  }
  .calendar-container .tc_sche.closed-day {
    font-size: 12px;
    -ms-writing-mode: tb-rl;
    writing-mode: vertical-rl;
  }
}

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