/* カレンダーレイアウト */
.calendar {
    display: grid;
    border: 1px solid #ccc;
    min-height: inherit;
}
.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(image001.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;
}
.fujoju {
  background: #dec58d;
  color: #000;
  padding: 3px;
}
.fujoju {
  background: #dec58d;
  color: #000;
  padding: 3px 3px 3px 0px;
}
.tenichi {
  background: #C1EBFD;
  color: #00509F;
  padding: 0px;
  display: block;
  position: absolute;
  bottom: 0px;
  width: 100%;
  box-sizing: border-box;
  left: 0px;
  height: 18px;
  line-height: 18px;
}
.minohi {
  background: #98FA93;
  color: #025D0A;
  padding: 3px;
}
@media screen and (max-width: 768px) {
  .row:first-child {
    font-size: 1.2rem;
    padding: 10px;
  }
  .yobicell {
    padding: 5px;
    font-size: 80%;
  }
  .cell {
    padding: 2px;
    font-size: 65%;
    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%;
  }
}