.bg-season-history {
  --season-paper: #fffdf8;
  --season-text: #24211d;
  --season-muted: #6b645a;
  --season-line: #ded6c9;
  --season-accent: #8c2f39;
  --season-accent-soft: #f4e1e3;

  width: 100%;
  color: var(--season-text);
}

.season-history-heading {
  margin-bottom: 20px;
}

.season-history-label {
  margin: 0 0 6px !important;
  color: var(--season-accent) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: .16em;
  line-height: 1.4 !important;
}

.season-history-heading h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.35;
}

.season-history-heading > p:last-child {
  margin: 10px 0 0;
  color: var(--season-muted);
  font-size: 14px;
  line-height: 1.8;
}

.season-table-wrapper {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--season-line);
  border-radius: 14px;
  background: var(--season-paper);
  box-shadow: 0 10px 30px rgba(36, 33, 29, .06);
}

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

.season-table th,
.season-table td {
  padding: 14px 10px;
  border-bottom: 1px solid var(--season-line);
  text-align: left;
  vertical-align: top;
  font-size: 12.5px;
  line-height: 1.65;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  line-break: strict;
}

.season-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #302b27;
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .03em;
}

.season-table th:nth-child(1),
.season-table td:nth-child(1) {
  width: 9%;
}

.season-table th:nth-child(2),
.season-table td:nth-child(2) {
  width: 13%;
}

.season-table th:nth-child(3),
.season-table td:nth-child(3) {
  width: 22%;
}

.season-table th:nth-child(4),
.season-table td:nth-child(4) {
  width: 23%;
}

.season-table th:nth-child(5),
.season-table td:nth-child(5) {
  width: 33%;
}

.season-table tbody tr:nth-child(even) {
  background: #faf7f1;
}

.season-table tbody tr:hover {
  background: #f5eee5;
}

.season-table tbody tr:last-child td {
  border-bottom: 0;
}

.season-number {
  display: inline;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--season-text);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .03em;
}

.patch-note-title {
  color: #6f2630;
  font-size: 11.5px;
  font-weight: 750;
  line-height: 1.55;
  text-decoration: underline;
  text-decoration-color: rgba(111, 38, 48, .42);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.patch-note-title:hover {
  color: var(--season-accent);
  text-decoration-color: currentColor;
}

.current-season {
  background: var(--season-accent-soft) !important;
}

.current-season .season-number {
  background: transparent;
  color: var(--season-accent);
}

@media (max-width: 700px) {
  .season-history-heading {
    margin-bottom: 16px;
  }

  .season-history-heading h2 {
    font-size: clamp(23px, 7vw, 30px);
  }

  .season-table-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 10px;
  }

  .season-table {
    width: 100%;
    min-width: 0;
    table-layout: auto;
  }

  .season-table,
  .season-table tbody,
  .season-table tr,
  .season-table td {
    display: block;
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
  }

  .season-table thead {
    display: none;
  }

  .season-table tbody tr {
    padding: 0;
    border-bottom: 1px solid var(--season-line);
  }

  .season-table tbody tr:last-child {
    border-bottom: 0;
  }

  .season-table td,
  .season-table td:nth-child(n) {
    display: grid;
    grid-template-columns: minmax(72px, 88px) minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
    padding: 7px 14px;
    border: 0;
    font-size: 13px;
    line-height: 1.6;
    overflow: visible;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .season-table td:first-child {
    padding-top: 14px;
  }

  .season-table td:last-child {
    padding-bottom: 14px;
  }

  .season-table td::before {
    min-width: 0;
    color: var(--season-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .05em;
    line-height: 1.6;
  }

  .season-table td > * {
    min-width: 0;
    max-width: 100%;
  }

  .season-table td:nth-child(1)::before {
    content: "シーズン";
  }

  .season-table td:nth-child(2)::before {
    content: "開始";
  }

  .season-table td:nth-child(3)::before {
    content: "テーマ / 名前";
  }

  .season-table td:nth-child(4)::before {
    content: "パッチノート";
  }

  .season-table td:nth-child(5)::before {
    content: "主な要素";
  }

  .season-number {
    display: inline;
    width: auto;
    min-width: 0;
    padding: 0;
    font-size: 12px;
  }

  .patch-note-title {
    display: inline;
    max-width: 100%;
    font-size: 12px;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

@media (max-width: 420px) {
  .season-table td,
  .season-table td:nth-child(n) {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 8px;
    padding-right: 12px;
    padding-left: 12px;
    font-size: 12.5px;
  }

  .season-table td::before {
    font-size: 9.5px;
  }
}
