@charset "utf-8";

:root {
  --red: #e6002d;
  --red-dark: #9e001f;
  --black: #111;
  --panel: #1b1b1b;
  --panel-2: #222;
  --line: #363636;
  --text: #f5f5f5;
  --muted: #999;
  --sat: #75baff;
  --sun: #ff718d;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--black);
  color: var(--text);
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

body {
  overflow: hidden;
}

.calendar-wrap {
  padding: 28px;
}

.calendar-header {
  display: grid;
  grid-template-columns: 120px 1fr 120px;
  align-items: center;
  gap: 16px;
}

.calendar-header h1 {
  margin: 0;
  color: #fff;
  font-size: 25px;
  font-weight: 500;
  text-align: center;
}

.calendar-header h1 span {
  color: #a8a8a8;
  font-size: 15px;
}

.calendar-header h1 strong {
  color: #fff;
  font-size: 38px;
}

.month-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid #454545;
  border-radius: 9px;
  background: #252525;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
}

.month-button:hover,
.month-button:focus-visible {
  border-color: var(--red);
  background: var(--red-dark);
}

.month-button span {
  margin: 0 6px;
  font-size: 23px;
  line-height: 1;
}

.calendar-legend {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  margin: 20px 0 12px;
  color: #aaa;
  font-size: 11px;
}

.calendar-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-today {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--red);
}

.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
  gap: 1px;
}

.weekday {
  padding: 11px 4px;
  background: #292929;
  color: #ddd;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.weekday--sun {
  color: var(--sun);
}

.weekday--sat {
  color: var(--sat);
}

.day-cell {
  position: relative;
  min-width: 0;
  min-height: 154px;
  padding: 10px;
  background: var(--panel);
}

.day-cell--empty {
  background: #151515;
}

.day-cell--today {
  background: linear-gradient(145deg, rgba(230, 0, 45, .19), #1b1b1b 58%);
  box-shadow: inset 0 0 0 2px var(--red);
}

.day-number {
  display: flex;
  align-items: center;
  min-height: 25px;
  gap: 6px;
}

.day-number > span {
  color: #fff;
  font-size: 17px;
  font-weight: 800;
}

.day-number small {
  display: none;
}

.day-cell--sun .day-number > span {
  color: var(--sun);
}

.day-cell--sat .day-number > span {
  color: var(--sat);
}

.day-number em {
  margin-left: auto;
  padding: 3px 6px;
  border-radius: 20px;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}

.day-schedule {
  margin-top: 7px;
}

.day-schedule p,
.date-card__schedule p {
  margin: 0;
}

.day-schedule p + p {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dotted #404040;
}

.schedule-name,
.schedule-time,
.schedule-extra,
.schedule-event {
  display: block;
  overflow-wrap: anywhere;
}

.schedule-name {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.schedule-time {
  margin-top: 1px;
  color: #ff597a;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.schedule-extra {
  color: #bbb;
  font-size: 10px;
}

.schedule-event {
  color: #ffd45f;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
}

.no-schedule {
  color: #666;
  font-size: 10px;
  line-height: 1.5;
}

.month-list {
  display: none;
}

@media only screen and (max-width: 767px) {
  .calendar-wrap {
    padding: 17px 12px 22px;
  }

  .calendar-header {
    grid-template-columns: 74px 1fr 74px;
    gap: 7px;
  }

  .calendar-header h1 {
    font-size: 17px;
  }

  .calendar-header h1 span {
    display: block;
    font-size: 10px;
    line-height: 1;
  }

  .calendar-header h1 strong {
    font-size: 29px;
  }

  .month-button {
    min-height: 39px;
    border-radius: 7px;
    font-size: 11px;
  }

  .month-button span {
    margin: 0 3px;
    font-size: 19px;
  }

  .calendar-legend {
    justify-content: space-between;
    gap: 8px;
    margin: 15px 2px 10px;
    font-size: 9px;
  }

  .month-grid {
    display: none;
  }

  .month-list {
    display: grid;
    gap: 8px;
  }

  .date-card {
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel);
  }

  .date-card--today {
    border-color: var(--red);
    background: linear-gradient(110deg, rgba(230, 0, 45, .23), #1b1b1b 55%);
    box-shadow: inset 3px 0 0 var(--red);
  }

  .date-card__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 78px;
    padding: 10px 6px;
    border-right: 1px solid var(--line);
    background: rgba(255, 255, 255, .025);
  }

  .date-card__date strong {
    color: #fff;
    font-size: 24px;
    line-height: 1;
  }

  .date-card__date > span {
    margin-top: 5px;
    color: #aaa;
    font-size: 10px;
  }

  .date-card--sun .date-card__date strong,
  .date-card--sun .date-card__date > span {
    color: var(--sun);
  }

  .date-card--sat .date-card__date strong,
  .date-card--sat .date-card__date > span {
    color: var(--sat);
  }

  .date-card__date em {
    margin-top: 5px;
    padding: 2px 6px;
    border-radius: 10px;
    background: var(--red);
    color: #fff;
    font-size: 8px;
    font-style: normal;
    font-weight: 700;
  }

  .date-card__schedule {
    display: grid;
    align-content: center;
    gap: 5px;
    min-width: 0;
    padding: 11px 13px;
  }

  .date-card__schedule p {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 8px;
  }

  .date-card__schedule .schedule-name {
    font-size: 13px;
  }

  .date-card__schedule .schedule-time {
    margin: 0;
    font-size: 11px;
    white-space: nowrap;
  }

  .date-card__schedule .schedule-extra,
  .date-card__schedule .schedule-event,
  .date-card__schedule .no-schedule {
    grid-column: 1 / -1;
  }

  .date-card__schedule .schedule-event {
    font-size: 11px;
  }

  .date-card__schedule .no-schedule {
    color: #686868;
    font-size: 10px;
  }
}
