@charset "UTF-8";

.u-md-hidden {
  display: none;
}

.calendar {
  margin-bottom: 150px;
}

.calendar-legend {
  margin-bottom: 20px;
}

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

.calendar-table-wrap {
  border: 1px solid #5ea8df;
}
.calendar-table {
  width: 100%;
  table-layout: fixed;
}
.calendar-table tr {
  width: 100%;
}
.calendar-table thead th {
  border-right: 1px solid #d8e8f0;
}
.calendar-table tbody th {
  border-right: 1px solid #5ea8df;
}
.calendar-table thead tr:first-child th {
  width: 16%;
}

.calendar-table thead th.sunday,
.calendar-table thead th.holiday,
.calendar-table tbody td:nth-child(8),
.calendar-table tbody th:nth-child(8) {
  border-right: none !important;
}
.calendar-table thead th {
  color: #fff;
  background: #005196;
}
.calendar-table thead th.saturday {
  background: #6bc4f2;
}
.calendar-table thead th.sunday,
.calendar-table thead th.holiday {
  background: #f2945b;
}
.calendar-table th {
  width: 12%;
  font-size: 15.5px;
  font-weight: bold;
  text-align: center;
  line-height: 1.5em;
  padding: 15px 0;
  box-sizing: border-box;
}
.calendar-table td {
  font-size: 15px;
  border-right: 1px solid #5ea8df;
  text-align: center;
  padding: 12px 15px;
  box-sizing: border-box;
}
.calendar-table tbody tr {
  border-bottom: 1px solid #5ea8df;
}
.calendar-table tbody tr:last-child {
  border-bottom: none;
}
.calendar-table tbody th {
  font-size: 16px;
  background: #ecf3f7;
  padding: 12px 16px;
  box-sizing: border-box;
}
.calendar-table tbody th span {
  font-size: 14px;
  font-weight: bold;
}
.calendar-table .td01 span {
  font-size: 18px;
}

.calendar-table td.closed {
  background: #fcdddd;
  color: #fc2424;
}

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

  .calendar-table-wrap:not(:last-child) {
    margin-bottom: 30px;
  }
  .calendar-table th {
    padding: 8px 2px;
    font-size: 2.5vw;
  }
  .calendar-table td {
    font-size: 3.2vw;
    padding: 8px 4px;
  }
  .calendar-table tbody th {
    font-size: 2.5vw;
    padding: 8px 4px;
  }
  .calendar-table tbody th span {
    font-size: 2.5vw;
  }
  .calendar-table .td01 span {
    font-size: 3.5vw;
  }

  .calendar-table td.closed {
    -ms-writing-mode: tb-rl;
    writing-mode: vertical-rl;
    letter-spacing: 1em;
  }
}

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