* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #f6f7f8;
  color: #222;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}
a { color: inherit; }
.jl-wrap { max-width: 980px; margin: 0 auto; padding: 20px 12px 48px; }
.jl-page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.jl-page-head h1 { margin: 0; font-size: 24px; }
.jl-detail-all { padding: 9px 12px; border: 1px solid #ccd2d8; border-radius: 8px; background: #fff; text-decoration: none; font-size: 14px; }

.jl-month-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
}
.jl-month-nav a, .jl-month-disabled {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  font-size: 13px;
}
.jl-month-prev { justify-self: start; }
.jl-month-next { justify-self: end; }
.jl-month-index { justify-self: center; }
.jl-month-disabled {
  color: #98a2b3;
  background: #f8f9fa;
  width: max-content;
  max-width: 100%;
}
.jl-month-nav .jl-month-disabled:first-child { justify-self: start; }
.jl-month-nav .jl-month-disabled:last-child { justify-self: end; }
.jl-month-jump {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 0 12px;
  margin-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}
.jl-month-chip {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid #d0d5dd;
  border-radius: 999px;
  background: #fff;
  text-decoration: none;
  font-size: 12px;
}
.jl-month-chip.is-current { background: #252a30; border-color: #252a30; color: #fff; font-weight: 700; }
.jl-index-note { margin: 0 0 16px; color: #667085; font-size: 13px; }
.jl-month-list { display: grid; gap: 10px; }
.jl-month-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #d9dde2;
  border-radius: 10px;
  background: #fff;
}
.jl-month-card > div:first-child { display: flex; flex-direction: column; gap: 3px; }
.jl-month-card strong { font-size: 17px; }
.jl-month-card span { color: #667085; font-size: 12px; }
.jl-month-card-links { display: flex; gap: 8px; }
.jl-month-card-links a { padding: 7px 9px; border: 1px solid #d0d5dd; border-radius: 7px; text-decoration: none; font-size: 12px; }

.jl-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid #d9dde2;
  border-left: 1px solid #d9dde2;
  background: #fff;
}
.jl-weekday {
  padding: 8px 4px;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  border-right: 1px solid #d9dde2;
  border-bottom: 1px solid #d9dde2;
  background: #f0f2f4;
}
.jl-day {
  min-height: 105px;
  padding: 7px;
  border-right: 1px solid #d9dde2;
  border-bottom: 1px solid #d9dde2;
  min-width: 0;
}
.jl-day.is-empty { background: #fafafa; }
.jl-day.is-today {
  background: #fff4a8;
  box-shadow: inset 0 0 0 2px #e5bd00;
}
.jl-day-num { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.is-sun .jl-day-num, .jl-weekday.is-sun { color: #b42318; }
.is-sat .jl-day-num, .jl-weekday.is-sat { color: #175cd3; }
.jl-day.is-holiday .jl-day-num { color: #b42318; }
.jl-match-badge {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 8px;
  border-radius: 7px;
  background: #eef7f0;
  border: 1px solid #b7d9bf;
  text-decoration: none;
  line-height: 1.2;
}
.jl-match-league { font-weight: 800; font-size: 13px; }
.jl-match-badge + .jl-match-badge { margin-top: 4px; }
.jl-match-count { font-size: 12px; color: #4b5563; }
.jl-cat-leaguecup { background: #f7f2ff; border-color: #d7c2f1; }
.jl-cat-emperor { background: #fff6ea; border-color: #efd0a2; }
.jl-cat-japan { background: #eef5ff; border-color: #b7cced; }

.jl-date-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #d9dde2;
  border-radius: 10px;
  background: #fff;
  scroll-margin-top: 10px;
}
.jl-date-nav a { padding: 7px 9px; border-radius: 6px; background: #f0f2f4; text-decoration: none; font-size: 13px; }
.jl-date-section { margin: 0 0 26px; scroll-margin-top: 12px; }
.jl-date-heading {
  margin: 0;
  padding: 10px 12px;
  background: #252a30;
  color: #fff;
  font-size: 18px;
  border-radius: 8px 8px 0 0;
}
.jl-date-heading.is-sun { background: #7a271a; }
.jl-date-heading.is-sat { background: #1849a9; }
.jl-match-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 54px;
  align-items: center;
  gap: 10px;
  padding: 13px 12px;
  background: #fff;
  border-left: 1px solid #d9dde2;
  border-right: 1px solid #d9dde2;
  border-bottom: 1px solid #d9dde2;
}
.jl-match-row:last-of-type { border-radius: 0 0 8px 8px; }
.jl-match-time { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.jl-detail-league { display: inline-block; min-width: 30px; padding: 2px 5px; border: 1px solid #cfd5dc; border-radius: 999px; background: #f4f5f6; text-align: center; font-size: 10px; line-height: 1.2; }
.jl-match-teams { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr); align-items: center; gap: 6px; }
.jl-home { text-align: right; font-weight: 700; }
.jl-away { text-align: left; font-weight: 700; }
.jl-vs { text-align: center; color: #667085; font-size: 12px; }
.jl-match-meta { grid-column: 1 / -1; margin-top: 5px; text-align: center; color: #667085; font-size: 12px; }
.jl-source-link { display: inline-flex; justify-content: center; padding: 6px; border: 1px solid #d0d5dd; border-radius: 6px; text-decoration: none; font-size: 12px; }
.jl-back-top { text-align: right; padding-top: 7px; font-size: 12px; color: #667085; }

@media (max-width: 600px) {
  .jl-wrap { padding: 12px 6px 36px; }
  .jl-page-head { align-items: flex-start; }
  .jl-page-head h1 { font-size: 20px; }
  .jl-detail-all { padding: 7px 8px; font-size: 12px; }
  .jl-month-nav { gap: 5px; }
  .jl-month-nav a, .jl-month-disabled { min-height: 38px; padding: 6px; font-size: 11px; }
  .jl-month-card { align-items: flex-start; flex-direction: column; }
  .jl-month-card-links { width: 100%; }
  .jl-month-card-links a { flex: 1; text-align: center; }
  .jl-weekday { font-size: 12px; padding: 6px 2px; }
  .jl-day { min-height: 78px; padding: 4px; }
  .jl-day-num { margin-bottom: 5px; font-size: 12px; }
  .jl-match-badge { padding: 5px 3px; align-items: center; text-align: center; }
  .jl-match-league { font-size: 11px; }
  .jl-match-count { font-size: 10px; }
  .jl-date-heading { font-size: 16px; }
  .jl-match-row { grid-template-columns: 52px minmax(0, 1fr) 42px; gap: 5px; padding: 11px 7px; }
  .jl-match-time { font-size: 15px; }
  .jl-detail-league { font-size: 9px; }
  .jl-match-teams { gap: 3px; }
  .jl-home, .jl-away { font-size: 13px; }
  .jl-match-meta { font-size: 10px; }
  .jl-source-link { font-size: 10px; padding: 5px 3px; }
}