/* カレンダーレイアウト */
.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(image004.png)center right no-repeat;
  display: block;
  background-size: contain;
}
.cell {
  min-height: 6rem;
  border-right: 1px solid #E8E8E8;
  padding: 10px;
  position: relative;
  line-height: 1.7;
  font-size: 11px;
}
.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;
}
/*

x大安…文字の色：赤、背景：ピンク
x一粒万倍日…文字の色：濃いオレンジ、背景：薄いオレンジ
x天赦日…文字色：白、背景：紫
x不成就日…文字の色：黒、背景：薄茶色
x<span class="toranohi">寅の日</span>…文字の色：焦げ茶色、背景：黄色
x<span class="minohi">巳の日</span>…文字の色：緑、背景：薄緑色
x<span class="tsuchinotomi">己巳の日</span>…文字の色：白、背景：緑色
x<span class="tenichi">天一天上</span>…文字の色：青、背景：水色

*/
.daian {
  color: #FF0004;
  background: #F7D3EC;
  padding: 3px;
}
.tsuchinotomi {
  background: #EFFDD7;
  color: #006717;
  padding: 3px;
}
.toranohi {
  background: #FDF2C1;
  color: #27231c;
  padding: 3px;
}
.ichiryu {
  background: #f7e3d1;
  color: #852202;
  padding: 3px;
}
.tensha {
  background: #540482;
  color: #fff;
  padding: 3px;
}
.fujoju {
  background: #dec58d;
  color: #000;
  padding: 3px;
}
.minohi {
  background: #98FA93;
  color: #025D0A;
  padding: 3px;
}
.tenichi {
  background: #C1EBFD;
  color: #00509F;
  padding: 0 0 0 10px;
  display: block;
  position: absolute;
  bottom: 0px;
  width: 100%;
  box-sizing: border-box;
  left: 0px;
  height: 20px;
  line-height: 20px;
}
@media screen and (max-width: 550px) {
  .row:first-child {
    font-size: 1.2rem;
    padding: 10px;
  }
  .yobicell {
    padding: 5px;
    font-size: 70%;
  }
  .cell {
    padding: 3px;
    font-size: 70%;
    min-height: 10rem;
  }
  .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%;
  }
  .calendar01 .cell {
    padding: 3px;
    font-size: 70%;
    min-height: 7.5rem;
  }
  .calendar02 .cell {
    padding: 3px;
    font-size: 70%;
    min-height: 5rem;
  }
  .calendar03 .cell {
    padding: 3px;
    font-size: 70%;
    min-height: 7.5rem;
  }
  .calendar04 .cell {
    padding: 3px;
    font-size: 70%;
    min-height: 6.5rem;
  }
  .calendar05 .cell {
    padding: 3px;
    font-size: 70%;
    min-height: 7.5rem;
  }
  .calendar06 .cell {
    padding: 3px;
    font-size: 70%;
    min-height: 6.5rem;
  }
  .calendar08 .cell {
    padding: 3px;
    font-size: 70%;
    min-height: 7.5rem;
  }
  .calendar09 .cell {
    padding: 3px;
    font-size: 70%;
    min-height: 5.5rem;
  }
  .calendar10 .cell {
    padding: 3px;
    font-size: 70%;
    min-height: 7.5rem;
  }
  .calendar11 .cell {
    padding: 3px;
    font-size: 70%;
    min-height: 5.5rem;
  }
  .calendar12 .cell {
    padding: 3px;
    font-size: 70%;
    min-height: 6rem;
  }
}