/* ========== Schedule ========== */
.schedule {
  padding: 40px 20px 10px;
  background: #fff;
}

.schedule__inner {
  max-width: 1000px;
  margin: 0 auto;
}

/* フィルター */
.schedule__filters {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0 auto 60px;
  width: fit-content;
}

.schedule__filter {
  height: 40px;
  padding: 0 36px;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  line-height: 1;
  background: #fff;
  color: #1a2a3a;
  border: 1px solid #1a2a3a;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  letter-spacing: 0.04em;
  box-sizing: border-box;
}

.schedule__filter.is-active {
  background: #1a3a64;
  color: #fff;
  border-color: #1a3a64;
}

.schedule__filter:hover {
  background: #1a2a3a;
  color: #fff;
}

.schedule__filter-select {
  position: relative;
  height: 40px;
  border: 1px solid #1a2a3a;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
  box-sizing: border-box;
}

.schedule__filter-select select {
  height: 100%;
  padding: 0 40px 0 24px;
  font-size: 15px;
  font-weight: 500;
  background: transparent;
  color: #136db6;
  border: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%231a2a3a' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  letter-spacing: 0.04em;
}

.schedule__filter-select select:focus {
  outline: none;
  background-color: #f0f4f8;
}

/* 見出し */
.schedule__heading {
  font-family: "Noto Serif JP", "Source Han Serif JP", serif;
  font-size: 20px;
  font-weight: 600;
  color: #333;
  text-align: center;
  margin-bottom: 24px;
}

.schedule__no-results {
  text-align: center;
  color: #999;
  font-size: 14px;
  padding: 32px 0;
  border: 1px dashed #ddd;
  border-radius: 4px;
  margin-bottom: 48px;
}

.schedule__empty {
  text-align: center;
  color: #999;
  font-size: 14px;
  padding: 40px 0;
}

/* テーブル */
.schedule__table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 100px;
}

.schedule__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
  table-layout: fixed;
}

.schedule__table thead th {
  background: #1a2a3a;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 10px 4px;
  text-align: center;
  border: 1px solid #676f76;
  white-space: nowrap;
}

.schedule__th-label {
  width: 90px;
}

.schedule__th-year {
  background: #28384a;
  font-weight: 600;
}

.schedule__table tbody td {
  border: 1px solid #ddd;
  padding: 8px 4px;
  text-align: center;
  vertical-align: top;
  font-size: 12px;
  color: #333;
  height: 70px;
}

.schedule__td-label {
  background: #f5f5f5;
  font-weight: 600;
  font-size: 13px;
  vertical-align: middle !important;
  width: 90px;
}

/* セル内 */
a.schedule__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: #f0f4f8;
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  transition: background 0.3s;
}

a.schedule__cell:hover {
  background: #dbe4ef;
}


.schedule__date {
  font-size: 12px;
  font-weight: 500;
  color: #333;
}

.schedule__day {
  font-size: 11px;
  color: #666;
}

.schedule__status {
  font-size: 16px;
  font-weight: 600;
}

.schedule__status.is-available {
  color: #2a8f3f;
}

.schedule__status.is-few {
  color: #d4a017;
}

.schedule__status.is-full {
  color: #c40b0b;
}

@media screen and (max-width: 768px) {
  .schedule__filters {
    flex-wrap: wrap;
  }
}
