/* カレンダーレイアウト */
.calendar {
  display: grid;
  border: 1px solid #ccc;
}
.row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.row:first-child {
  font-size: 3rem;
  color: #263761;
  padding: 1rem;
  font-weight: bold;
  background: url(image007.png)center right no-repeat;
  display: block;
  background-size: contain;
}
.cell {
  min-height: 10rem; /* セルの高さ */
  border-right: 1px solid #E8E8E8;
  padding: 10px;
  position: relative; /* イベントを追加するための相対位置指定 */
}
.cell:nth-child(7n), .datecell:nth-child(7n) {
  border-right: none;
}
.yobicell {
  padding: 10px;
  position: relative; /* イベントを追加するための相対位置指定 */
  background: #F4F9FC;
  font-weight: bold;
  border-top: 1px solid #ccc;
  border-right: 1px solid #ccc;
}
.yobicell:last-child {
  border-right: none;
}
.datecell {
  padding: 10px;
  position: relative;
  text-align: right;
  font-weight: bold;
  color: #0458A2;
  border-top: 1px solid #ccc;
  border-right: 1px solid #E8E8E8;
}
/* 日にちのスタイル */
.cell .date {
  font-weight: bold;
}
/* イベントスタイル */
.cell .event {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background-color: #f2f2f2;
  font-size: 12px;
  padding: 2px 5px;
}
.cellctns {
  display: block;
}
.textcenter {
  text-align: center !important;
}
.red {
  color: #FF0004;
  background: #F7D3EC;
}
.green {
  background: #EFFDD7;
  color: #006717;
}
.yellow {
  background: #FDF2C1;
  color: #825805;
}

@media screen and (max-width: 768px) {
  .row:first-child {
    font-size: 1.2rem;
    padding: 10px;
  }
  .yobicell {
    padding: 5px;
    font-size: 80%;
  }
  .cell {
    padding: 5px;
    font-size: 80%;
    min-height: 5rem;
  }
  .datecell {
    padding: 5px;
    position: relative;
    text-align: right;
    font-weight: bold;
    color: #0458A2;
    border-top: 1px solid #ccc;
    border-right: 1px solid #E8E8E8;
    font-size: 80%;
  }
}