﻿.cals-item {
  overflow: hidden;
}
@media print,screen and (min-width:1381px) {
  .cals-item .cal {
    width: -webkit-calc(50% - 32px);
    width: calc(50% - 32px);
  }
}
@media print,screen and (min-width:641px) and (max-width:1380px) {
  .cals-item .cal {
    width: 47.5%;
  }
}
@media screen and (min-width:641px) {
  .cals-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
  }
}
@media screen and (max-width:640px) {
  .cals-item .cal:not(:first-of-type) {
    display: none;
  }
}

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

  月別表示（矢印移動）
  
----------------------------------------------------------------------------------------------------*/
@media print,screen and (min-width:641px) {
  .month-nav--arrow .p-arrow {
    display: none;
  }
}
@media screen and (max-width:640px) {
  .month-nav--arrow {
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
  }
  .month-nav--arrow .arrow-prev {
    margin-left: auto;
    margin-right: 0.5em;
  }
  .month-nav--arrow .arrow-prev,
  .month-nav--arrow .arrow-next {
    width: 1.75em;
    height: 1.75em;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    cursor: pointer;
    padding: 0.5em;
  }
  .month-nav--arrow .p-arrow {
    width: 100%;
    height: 100%;
  }
  .month-nav--arrow .arrow-prev.disabled,
  .month-nav--arrow .arrow-next.disabled{
    opacity: 0.3;
    cursor: inherit;
  }
}

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

  カレンダー
  
----------------------------------------------------------------------------------------------------*/
.cal * {
  overflow: visible;
}
/* 月 */
.cal-month {
  text-align: left;
  padding-bottom: 0.5em;
}
.cal-month__m {
  display: inline-block;
  margin-left: 0.25em;
}
.cal-month__ttl {
  display: inline-block;
  margin-left: 0.5em;
}
.cal-tbl {
  width: 100%;
  border: 0;
  border-spacing: 0;
  border-collapse: separate;
}
.cal-tbl td {
  width: 14%;
  vertical-align: top;
  line-height: 1.4;
}
.cal-tbl thead td {
  text-align: center;
  font-size: 0.77em;
  font-weight: 400;
  padding: 0.5em 0.5em 0.75em 0.5em;
}
.cal-tbl tbody td {
  border-bottom: 1px solid #e1e1e1;
  text-align: left;
  padding-bottom: 0.5em;
}
.cal-tbl tbody tr:first-child td {
  border-top: 1px solid #141414;
}
.cal-tbl tbody tr td:not(:first-child) {
  padding-left: 1px;
}
/* 日付 */
.cal-tbl .day {
  display: block;
  font-size:0.72em;
  padding: 0.25em 0.5em;
  margin-bottom: 0.5em;
}
.cal-tbl tbody tr td:not(:first-child) .day {
  border-left: 1px solid #e1e1e1;
}
/* 祝日 */
.cal-tbl .holiday {
  display: block;
  font-size:0.66em;
  padding: 0 0.5em;
  margin-top: -0.25em;
  margin-bottom: 0.5em;
  line-height: 1.2;
}
/* スケジュール */
.cal-tbl .sched {
  padding: 0.25em;
  text-align: center;
  font-size:0.66em;
  background-color: #505050 !important;
  color: #fff;
}

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

  スケジュール色説明
  
----------------------------------------------------------------------------------------------------*/
.cal-sched {
  text-align: left;
  padding-top: 1em;
  line-height: 1.4;
}
.cal-sched dt, .cal-sched dd {
  padding-top: 0.25em;
}
.cal-sched dt {
  width: 1.5em;
  float: left;
  clear: both;
  margin-right: -1.5em;
}
.cal-sched dt .sched-color {
  width: 1em;
  height: 1em;
  display: inline-block;
  border: 1px solid #dcdcdc;
  vertical-align: middle;
  margin-top: -0.25em;
}
.cal-sched dd {
  padding-left: 1.5em;
}
.ua-pc .cal-sched dd .henko:before {
  content: "マウスオーバー";
}
.ua-tab .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;
}
.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 #141414;
  background-color: #fff;
  border-radius: 3px;
  text-align: left;
}
.dlog-wrap[data-posi="L"] {
  left: 0;
  transform: translateX(0);
}
.dlog-wrap[data-posi="R"] {
  left: inherit;
  right: 0;
  transform: translateX(0);
}
.dlog-wrap[data-posi="L2"] {
  left: 75%;
}
.dlog-wrap[data-posi="R2"] {
  left: 25%;
}
.dlog {
  position: relative;
  box-sizing: border-box;
  padding: 1em;
  color: #141414;
}
.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: 41.5%;
}
.dlog-wrap[data-posi="R"] .dlog:before, .dlog-wrap[data-posi="R"] .dlog:after {
  left: inherit;
  right: 13%;
}
.dlog-wrap[data-posi="R2"] .dlog:before, .dlog-wrap[data-posi="R2"] .dlog:after {
  left: inherit;
  right: 38%;
}
.dlog:before {
  border-top-color: #141414;
}
.dlog:after {
  border-top-color: #fff;
  margin: -1px 0 0 0;
}
.dlog_hd {
  padding-bottom: 0.5em;
  position: relative;
}
.dlog_hd b {
  font-weight: 400;
}
.dlog_hd .week,
.dlog_ct {
  font-size: 0.9em;
}
.ua-pc .dlog_hd .closeBtn {
  display: none;
}
.dlog_hd .closeBtn {
  display: inline-block;
  position: absolute;
  right: -1.3rem;
  top: -1rem;
  cursor: pointer;
  padding: 0.5em;
}
.dlog_hd .closeBtn span {
  position: relative;
  display: block;
  text-indent: 100%;
  white-space: nowrap;
  overflow: hidden;
  width: 0.9em;
  height: 0.9em; 
}
.dlog_hd .closeBtn span:before,
.dlog_hd .closeBtn span:after {
  content: "";
  display: inline-block;
  --width: 100%;
  --height: 2px;
  width: var(--width);
  height: var(--height);
  background: #141414;
  position: absolute;
  left: 50%;
  top: 50%;
  margin-top: -webkit-calc(-1 * var(--height) / 2);
  margin-top: calc(-1 * var(--height) / 2);
  margin-left: -webkit-calc(-1 * var(--width) / 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="L"] .dlog:before, .dlog-wrap[data-posi="L"] .dlog:after {
    left: 19%;
  }
  .dlog-wrap[data-posi="R"] .dlog:before, .dlog-wrap[data-posi="R"] .dlog:after {
    left: 82%;
  }
  .dlog-wrap[data-posi="L2"] .dlog:before, .dlog-wrap[data-posi="L2"] .dlog:after {
    left: 44%;
  }
  .dlog-wrap[data-posi="R2"] .dlog:before, .dlog-wrap[data-posi="R2"] .dlog:after {
    left: 57%;
  }
  .dlog:before, .dlog:after {
    border-width: 8px;
  }
  .dlog:before, .dlog:after {
    margin-left: -8px;
  }
}