﻿.cal * {
  overflow: visible;
}
/* 月 */
.cal-month {
  font-size: var(--fs-m);
  font-weight: 300;
  padding-bottom: 0.5em;
}
.cal-month__m {
  font-size: var(--fs-3l);
  display: inline-block;
  margin-left: 0.25em;
}
.cal-tbl {
  width: 100%;
  min-width: 400px;
  border-collapse: separate;
}
.cal-tbl td {
  width: 14%;
  vertical-align: top;
  line-height: 1.4;
}
.cal-tbl thead td {
  text-align: center;
  font-weight: 400;
  padding: 1em;
  font-size: var(--fs-s);
}
.cal-tbl tbody tr:not(:last-child) td {
  border-bottom: 1px solid rgba(54,65,87,0.15);
}
.cal-tbl tbody td {
  text-align: left;
  padding: 0.5em 0.25em 0.75em 0.25em;
  tap-highlight-color: transparent;
}
.cal-tbl tbody tr:first-child td {
  border-top: 1px solid #364157;
}
/* 日付 */
.cal-tbl .day {
  display: block;
  font-size: var(--fs-3s);
}
.cal-tbl .today {
  font-weight: bold;
}
/* 祝日 */
.cal-tbl .holiday {
  display: block;
  padding-top: 0.5em;
  font-size: var(--fs-min);
  line-height: 1.2;
}
/* スケジュール */
.cal-tbl .sched {
  margin-top: 0.75em;
  padding: 0.25em 0;
  font-size: var(--fs-2s);
}
.cal-tbl .schedBtn {
  margin-top: 0.75em;
  padding: 0.25em;
  text-align: center;
  font-size: var(--fs-2s);
}
@media screen and (max-width:640px) {
  .cal-month__m {
    font-size: var(--fs-2l);
  }
}
@media screen and (max-width:560px) {
  .cal-month__ttl {
    font-size: var(--fs-s);
  }
}
@media (hover: hover) {
  .cal-tbl .js_cal-dlog {
    cursor: pointer;
  }
}

/*----------------------------------------------------------------------------------------------------

  スケジュール色説明
  
----------------------------------------------------------------------------------------------------*/
.cal-sched {
  text-align: left;
  padding-top: 1em;
  line-height: 1.4;
  font-size: var(--fs-s);
}
.cal-sched dt, .cal-sched dd {
  padding-top: 0.75em;
}
.cal-sched dt {
  width: 1.5em;
  float: left;
  clear: both;
  margin-right: -1.5em;
  padding-top: 0.75em;
}
.cal-sched dt .sched-color {
  width: 0.8em;
  height: 0.8em;
  display: inline-block;
  border: 1px solid rgba(54,65,87,0.15);
  box-sizing: content-box;
  vertical-align: middle;
  margin-top: -0.25em;
}
.cal-sched dd {
  padding-left: 1.5em;
}
@media (hover: hover) {
  .cal-sched dd .henko:before {
    content: "マウスオーバー";
  }
}
@media (hover: none) {
  .cal-sched dd .henko:before, .ua-sp .cal-sched dd .henko:before {
    content: "タップ";
  }
}

/*----------------------------------------------------------------------------------------------------

  備考一覧
  
----------------------------------------------------------------------------------------------------*/
.cal-bikouList {
  text-align: left;
  padding-top: 1em;
  line-height: 1.4;
  font-size: var(--fs-s);
}
.cal-bikouList:after {
  content: "";
  display: block;
  height: 0;
  clear: both;
}
.cal-bikouList dt {
  width: 5.5em;
  display: inline-block;
  float: left;
  clear: both;
  margin-right: -6em;
  padding-top: 0.5em;
  text-align: right;
}
.cal-bikouList dd {
  display: block;
  padding-left: 6em;
  padding-top: 0.5em;
}

/*----------------------------------------------------------------------------------------------------

  備考ダイアログ
  
----------------------------------------------------------------------------------------------------*/
.cal-tbl td {
  position: relative;
}
.cal-tbl .js__cal-dlog {
  cursor: pointer;
}
.dlog-wrap {
  cursor: default;
  display: none;
  width: 300%;
  z-index: 90;
  position: absolute;
  left: 50%;
  bottom: 100%;
  margin-bottom: -1px;
  transform: translateX(-50%);
  box-sizing: border-box;
  border: 1px solid rgba(54,65,87,0.5);
  background-color: #fff;
  text-align: left;
}
.dlog-wrap[data-posi="L"] {
  left: 0;
  transform: translateX(0);
}
.dlog-wrap[data-posi="R"] {
  left: inherit;
  right: 1em;
  transform: translateX(0);
}
.dlog-wrap[data-posi="L2"] {
  left: 75%;
}
.dlog-wrap[data-posi="R2"] {
  left: inherit;
  right: -225%;
}
.dlog {
  position: relative;
  box-sizing: border-box;
  padding: 1em;
  color: var(--fc);
}
.dlog:before, .dlog:after {
  content: "";
  border-style: solid;
  border-width: 8px 8px 0 8px;
  border-color: transparent;
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
}
.dlog-wrap[data-posi="L"] .dlog:before, .dlog-wrap[data-posi="L"] .dlog:after {
  left: 16.5%;
}
.dlog-wrap[data-posi="L2"] .dlog:before, .dlog-wrap[data-posi="L2"] .dlog:after {
  left: 42%;
}
.dlog-wrap[data-posi="R"] .dlog:before, .dlog-wrap[data-posi="R"] .dlog:after {
  left: inherit;
  right: 3%;
}
.dlog-wrap[data-posi="R2"] .dlog:before, .dlog-wrap[data-posi="R2"] .dlog:after {
  left: inherit;
  right: 34.5%;
}
.dlog:before {
  border-top-color: rgba(54,65,87,0.5);
}
.dlog:after {
  border-top-color: #fff;
  margin-top: -0.5px;
}
.dlog_hd {
  padding-bottom: 0.5em;
  position: relative;
}
.dlog_hd b {
  font-weight: 400;
}
.dlog_hd .week,
.dlog_ct {
  font-size: var(--fs-2s);
}
.dlog_hd .closeBtn-wrap {
  display: inline-block;
  position: absolute;
  width: 2em;
  height: 2em;
  right: -1em;
  top: -3em;
  margin-right: -1px;
  margin-bottom: -1px;
  cursor: pointer;
}
.dlog_hd .closeBtn {
  content: "";
  display: inline-block;
  width: 100%;
  height: 100%;
  background-color: #fff;
  text-indent: 100%;
  white-space: nowrap;
  overflow: hidden;
}
.dlog_hd .closeBtn span {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  background: #2A3042;
}
.dlog_hd .closeBtn span:before,
.dlog_hd .closeBtn span:after {
  content: "";
  display: inline-block;
  --width: 50%;
  --height: 1px;
  width: var(--width);
  height: var(--height);
  background: #fff;
  position: absolute;
  left: 50%;
  top: 50%;
  margin-top: calc(-1 * var(--height) / 2);
  margin-left: calc(-1 * var(--width) / 2);
}
.dlog_hd .closeBtn span:before {
  transform: rotate(-45deg);
}
.dlog_hd .closeBtn span:after {
  transform: rotate(45deg);
}
@media screen and (max-width:640px) {
  .dlog-wrap {
    width: 400%;
  }
  .dlog-wrap[data-posi="L2"] {
    left: 100%;
  }
  .dlog-wrap[data-posi="R2"] {
    right: -275%;
  }
  .dlog-wrap[data-posi="L2"] .dlog:before, .dlog-wrap[data-posi="L2"] .dlog:after {
    left: 37.5%;
  }
  .dlog-wrap[data-posi="R"] .dlog:before, .dlog-wrap[data-posi="R"] .dlog:after {
    right: 1%;
  }
  .dlog-wrap[data-posi="R2"] .dlog:before, .dlog-wrap[data-posi="R2"] .dlog:after {
    right: 25%;
  }
}
@media (hover: hover) {
  .dlog_hd .closeBtn {
    display: none;
  }
}
