/* ver1 */

#calendar {
  width: 100%;
  margin: 20px auto;
  border: 1px solid #000;
  background-color: white;
  max-width:400px;
}


#month-name {
  text-align: center;
  font-size: 16px;
  border-bottom:1px solid #000;
  font-weight:bold;
  padding:8px 0;
  background: #003e5f;
  color: #fff;
}


.weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  font-weight: bold;
  font-size: 15px;
  text-align: center;
  padding:5px 0;
  background:#e9e9e9;
}


.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}


.day {
  padding: 6px 10px;
  font-size: 15px;
  text-align: center;
  font-weight:bold;
}


.publicholiday {
  padding: 0px 12px;
  font-weight: bold;
  font-size: 15px;
}


.publicholiday .holiday_mark {
  font-size: 24px;
  color: red;
}


.publicholiday li {
  list-style: none;
  padding: 0px 12px;
  font-weight: bold;
  font-size: 15px;
}


.weekdays > div:nth-of-type(7n) {
  color:#16547E;
}


.weekdays > div:nth-of-type(7n-6), .sunday {
  color: red;
}


.saturday {
  color: gray;
}


.today {
  background-color: #ffeb3b;
}
