
#contents.cate02 #cal{font-size: 16px;}
#contents.cate02 #cal  h2{margin-bottom: 15px;}
#contents #cal table{
  margin: 0 auto;
  border-collapse:collapse; /* セルの境界を結合 */
  border: 2px solid #5FA2EC;
  /* width: 100%; */
  min-width: 1260px;
}

#contents #cal {
  width: 100%;
  position: relative;
  padding: 0;
  padding-bottom: 16px;
    background: linear-gradient(to left, #C3FFFB 0%,#7BB5FF 45%,#7BB5FF 55%,#C3FFFB 100%) no-repeat center center / 220%;
    /* transition: background-position .2s ease-in-out; */
}
#contents #cal.tab1{
  background-position: left;
}
#contents #cal.tab2{
  background-position: right;
}

#contents #cal table th.month{
  width: 100px;
  color: #FFF;
  background: #1CC3C6;}
  #contents #cal table th.month{font-size: 30px; font-family: 'Roboto',sans-serif;}
  #contents #cal table th.month span{font-size: 22px; display: inline-block;}

  #contents #cal .facility-tab2 table th.month{
    background: #01176D;
  }

#contents #cal table thead{height: 50px;}
#contents #cal table thead th{
  height: 50px;
  background: #EEEEEE;
  color: #000;
  font-weight: bold;
  text-align: center;
  vertical-align: middle;
  line-height: 1em;
  min-width: 35px;
}

#contents #cal table thead th span{
  display: block;
  font-size: 14px;
  line-height: 14px;
  margin-top: 3px;
}

#contents #cal table thead th{
  font-size: 24px;
  font-family: 'Roboto',sans-serif;
}
#contents #cal table th,
#contents #cal table td{
  text-align: center;
  vertical-align: middle;}

#contents #cal table td,
#contents #cal table th{
  background: #FFF;
  border: 1px solid #5FA2EC;
  height: 40px;
  font-size: 16px;
}

#contents #cal table td img.left{
  width: 18px;
  position: relative;
  top: 0px;
}

#contents #cal table tr td:nth-child(1){width: 35px;}
/* #contents #cal table tr td:nth-child(2){width: auto; font-size: 14px;} */

#contents #cal table tr td:nth-child(1){
  font-size: 18px;
  font-weight: bold;
  font-family: 'Roboto',sans-serif;}

/* #contents #cal table .sat td:nth-child(1),
#contents #cal table .sat td:nth-child(2){background: #BBDBFF;}
#contents #cal table .sun td:nth-child(1),
#contents #cal table .sun td:nth-child(2){background: #FFCBCE;} */
#contents #cal table .sat{background: #BBDBFF;}
#contents #cal table .sun{background: #FFCBCE;}

#contents #cal .all_pdf{
  width: 370px;height: 40px;
  background: url(../images/cal_all_pdf.svg);
  text-indent: -9999px;
  margin: 20px auto 0 auto;
}
#contents #cal .all_pdf a{display: block; width: 100%; height: 100%;}

#contents #cal table .marugame{line-height: 1.2em;}
#contents #cal table .marugame img{
width: 40px;
display: inline-block;
}
#contents #cal table .marugame p{
  display: inline-block;
  position: relative;
  top: -10px;
}
#contents #cal table .mor img{
  width: 40px;
  display: inline-block;
  position: relative;
  top: -2px;
}
#contents #cal table .mor p{
  display: inline-block;
  position: relative;
  font-size: 14px;
  top: -13px;
}
#contents #cal table .day img{
  width: 32px;
  display: inline-block;
  position: relative;
}
#contents #cal table .day p{
  display: inline-block;
  position: relative;
  font-size: 16px;
  top: -10px;
}

#contents #cal table .nig p{
  display: inline-block;
  position: relative;
  font-size: 16px;
  top: -10px;
}
#contents #cal table .marugame{background:#4956C8; color: #FFF;font-weight: bold; font-size: 16px;}
#contents #cal table .ch{background: #145EA9; color: #FFF;font-weight: bold; font-size: 12px;}
#contents #cal table th.jyogai{background: #5899DC!important; color: #FFF; width: 40px !important; font-size: 14px!important; font-weight: bold; line-height: 1.2;}

#contents #cal table .mor{background: #E5E7FF; width: 65px; color: #000 !important;}
#contents #cal table .day{background: #00B5D1;}
#contents #cal table .nig{background: #4956C8;}
#contents #cal table .mor,
#contents #cal table .day,
#contents #cal table .nig{font-weight: bold; font-size: 12px; color: #FFF;}

#contents #cal table .ch th,
#contents #cal table .ch td,
#contents #cal table .month,
#contents #cal table .marugame,
#contents #cal table .border,
#contents #cal table th.ch,
#contents #cal table .border td{border-bottom: 4px solid #5FA2EC;}
#contents #cal table td.holy {border-bottom: 2px solid #5FA2EC;}

#contents #cal table .jyogai{
border-bottom: 1px solid #5FA2EC !important;
}
#contents #cal .come{
background: rgba(255,255,255,0.5);
color: #000;
width: 370px;
border-radius: 6px;
padding: 5px;
margin: 10px auto 0 auto;
font-weight: bold;

/* position: sticky;
bottom: 0;
left: 10px; */
}

#contents #cal td{text-align: center; line-height: 1.2em; padding: 5px;}
#contents #cal td.ip{background: #4B5C6D; text-align: center; color: #FFF; font-weight: bold;}
#contents #cal td.sg{background: #F54D4D; text-align: center; color: #FFF; font-weight: bold;}
#contents #cal td.g1{background: #F0BB1C; text-align: center; color: #FFF; font-weight: bold;}
#contents #cal td.g2{background: #77AF4B; text-align: center; color: #FFF; font-weight: bold;}
#contents #cal td.g3{background: #407DCD; text-align: center; color: #FFF; font-weight: bold;}

#contents #cal td.ip img,
#contents #cal td.sg img,
#contents #cal td.g1 img,
#contents #cal td.g2 img,
#contents #cal td.g3 img{margin-left: 3px;}

#contents #cal td.ch{ background: #E5E7FF; color: #000; font-family: 'Roboto',sans-serif; font-weight: normal ; font-size: 20px;}

#contents #cal td.holy{
  background: #CCC; 
  color: #888;
}
#contents #cal td.stop{background: #892006; color: #FFF;}


#contents #cal td img{
  position: relative;
  top:-2px;
  margin-right: 2px;
}

#contents #cal .next{
  background: url(../images/yoso_next.svg) center center no-repeat ;
  width: 20px;
  height: 40px;
  display: block;
}
#contents #cal .next.non,
#contents #cal .prev.non{
  display: none;
}
#contents #cal .prev{
  background: url(../images/yoso_prev.svg) center center no-repeat ;
  width: 20px;
  height: 40px;
  display: block;
}

#contents #cal td a{
  color: #FFF;
}
#contents #cal td a:hover{text-decoration: none;}

#contents #cal .cal_setsu{
  background: none;
  width: 400px;
  margin: 0 auto;
  text-align: center;
  margin-bottom: 8px;
}

#contents #cal .tab{
  display: flex;
  width: 380px;
  margin: 0 auto 10px auto;
}
#contents #cal .tab li{
  background: #2068B1;
  width: calc(100% / 4);
  height: 40px;
  text-align: center;
  line-height: 40px;
  color: #FFF;
  font-family: 'Roboto',sans-serif;
  font-weight: bold;
  margin:0 3px;
  cursor: pointer;
}
#contents #cal .tab li:hover{
  background: #164d85;
}
#contents #cal .tab li.blank{ opacity: 0.3;  pointer-events: none;}

#contents #cal .tab li a {
  color: #FFF;
  text-decoration: none;
  width: 100%;
  display: block;
}

#contents #cal .tab li{font-size: 30px; font-family: 'Roboto',sans-serif;}
#contents #cal .tab li span{font-size: 22px; display: inline-block;}
#contents #cal .tab li.active{
  font-weight: bold;
  background: #1CC3C6;
}
#contents #cal .facility-tab2 .tab li.active{
  font-weight: bold;
  background: #01176D;
}


#cal .cal_month {
  display: none;
  /* overflow-x: scroll; */
}
#cal .cal_month.active {
  display: block;
}

#cal .facility-tab1,
#cal .facility-tab2 {
  display: none;
  margin-bottom: 15px;
}

#cal .facility-tab1.active,
#cal .facility-tab2.active {
  display: block;
  overflow: hidden;
}



#cal .swiper-container {
  width: 100%;
  margin: 0 auto;
}


#cal .tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 5px;
}

#cal .cal_tab {
  width: 120px;
  height: 60px;
  background-color: gray;
  margin: 0 3px;
  cursor: pointer;
  color: #FFF;
  text-align: center;
  display: flex;
  justify-content: center;align-items: center;
  flex-direction: column;
  line-height: 1em;
  font-weight: bold;
  position: relative
}
#cal .cal_tab p.jyo{
  background: #FFF; text-align: center; border-radius: 14px;  line-height: 14px; color: #5899DC; width: 90px; position: absolute !important;
  top: 5px !important;
  font-size: 12px;
}


#cal .cal_tab.tab01{background:#4956C8;}
#cal .cal_tab.tab02{background:#5899DC;}
#cal .cal_tab.tab03{background:#5899DC;}
#cal .cal_tab.tab02 p,
#cal .cal_tab.tab03 p{top: 8px; position: relative;}

#cal .cal_tab.active {
  position: relative;
  top: 5px;
}

#cal .slide2 td{
  width: 68px;
}

#cal .slide3 td{
  width: 75px;
}


#contents #cal .facility-tab{
  display: flex;
  justify-content: space-between;
  margin: 8px 0 20px;
  padding: 0 8px;
}
#contents #cal .facility-tab li a{
  display: block;
  width: 188px;
  height: 3lh;
  border-radius: 64px;
  background: #fff;
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  line-height: 15px;
  color: #000;
  text-decoration: none;
  box-shadow: rgba(0,0,61,.25) 0 3px 6px;
  transition: margin,opacity .2s;
  position: relative;
  padding: 8px 0 2px;
}
#contents #cal .facility-tab li a span {
  font-size: 14px;
}
#contents #cal .facility-tab li a::after{
  content: "";
  position: absolute;
  width: 14px;
  height: 6px;
  clip-path: polygon(0 0,100% 0,50% 100%);
  right: calc(50% - 7px);
  bottom: 6px; margin: auto;
}
#contents #cal .facility-tab li a.active{
  pointer-events: none;
  border: 3px solid;
  margin: -3px;
}
#contents #cal .facility-tab li a:not(.active){
  opacity: .5;
}
#contents #cal .facility-tab li:nth-of-type(1) a span{color: #1CC3C6;}
#contents #cal .facility-tab li:nth-of-type(1) a{border-color: #1CC3C6;}
#contents #cal .facility-tab li:nth-of-type(1) a::after{background: #1CC3C6;}
#contents #cal .facility-tab li:nth-of-type(2) a span{color: #0051A1;}
#contents #cal .facility-tab li:nth-of-type(2) a{border-color: #0051A1;}
#contents #cal .facility-tab li:nth-of-type(2) a::after{background: #0051A1;}

#contents #cal .scroll-area {
  padding-bottom: 20px;
}

/* #contents #cal .facility-tab2 .scroll-area {
  min-height: 600px;
} */

#contents #cal .simplebar-scrollbar::before { background: #fff;}
#contents #cal .simplebar-scrollbar.simplebar-visible::before {opacity: 1;}

#contents #cal .simplebar-content-wrapper {
  position: relative;
}

#contents #cal table th.month,
#contents #cal table th.jyogai,
#contents #cal table .marugame th,
#contents #cal table tr.mor > th,
#contents #cal table tr.day > th,
#contents #cal table tr.nig > th {
  position: sticky;
  left: 1px;
  /* background: #fff; */
  z-index: 5;
  border: 2px solid #5FA2EC;
}

#contents #cal .facility-tab1 table tr.day > th,
#contents #cal .facility-tab1 table tr.nig > th {
  left: 43px;
}
#contents #cal .facility-tab1 table tr.day > th::after,
#contents #cal .facility-tab1 table tr.nig > th::after {
  border-right: 3px solid #5FA2EC;
}

#contents #cal table .day th, #contents #cal table .nig th {
    width: calc(100px - 40px - 4px);
}

#contents #cal table .marugame th {
  background: #4956C8;
  min-height: 100px;
  font-size: 14px;
  line-height: 1.2;
  padding: 0 0 4px;
}
/* #contents #cal table .day th:first-child {
  width: 35px;
} */
#contents #cal table .day th,
#contents #cal .facility-tab2 table .day th {
  background: #00b5d1;
}
#contents #cal table .mor th {
  background: #e5e7ff;
}
#contents #cal table .nig th {
  background: #4956C8;
}

#contents #cal table td img {
  width: 15px !important;
}

#contents #cal table th.month::after,
#contents #cal table tbody th::after {
  content: '';
  position:absolute;
  top:-2px;
  left: -2px;
  width:100%;
  height:100%;
  border: 2px solid #5FA2EC;
  pointer-events: none;
}

#contents #cal table {
  border-spacing: 0 !important;
}