@charset "utf-8";

/*  日程表
------------------------------------------------------------------ */

#schedule button {
  color: #fff;
  font-size: 20px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
}

#schedule p{
  vertical-align: top;
}
#schedule .tit {
  text-align: center;
  margin-bottom: 45px;
  margin-top: 20px;
}
#schedule table {
  width: 100%;
  margin-bottom: 100px;
  text-align: center;
  border: 3px solid #145fba;
  border-collapse:collapse;
}
#schedule table .yearmonth {
  background: #145fba;
  color: #fff;
  font-size: 20px;
}
#schedule table .yearmonth th{
  padding: 10px;
}
#schedule table .yearmonth th:nth-child(1){
  text-align: left;
}
#schedule table .yearmonth th:nth-child(3){
  text-align: right;
}
#schedule table .week th,
#schedule table td{
  width: 14.28%;
  border: 1px solid #bdd1e9;
}
#schedule table .week th{
  padding: 0 2px;
  font-size: 12px;
  color: #fff;
  background: #8b8b8b;
}
#schedule table .week th.sat{ background: #5889c3; }
#schedule table .week th.sun{ background: #cc5859; }

#schedule table td{
  padding: 10px 5px 5px;
}
#schedule table td.gray{
  color: #d4d4d4;
}
#schedule table tr td.today{
  background: #ecf4ff;
  position: relative;
}
#schedule table tr td.today:before{
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 8px 0 8px;
  border-color: #145ebd transparent transparent transparent;
  position: absolute;
  top: 0;
  left: 49%;
  transform: translateX(-49%);
}
#schedule table td.sat{ color: #015fd0; }
#schedule table td.sun{ color: #ea0000; }

#schedule table tr td div{
  min-height: 100px;
  text-align: left;
}
#schedule div p {
  padding: 6px 4px 6px 6px;
  font-size: 0.9em;
  /* letter-spacing: 0.9; */
}


#schedule table .plan{
  margin-top: 5px;
  padding: 5px 6px 4px;
  font-size: 1em;
  font-weight: bold;
  color: #fff;
  border-radius: 4px;
  display: block;
  line-height: 1.2;
  /* background: #f25252; */
}
/*
#schedule table tr td div .plan01{
  background: #f25252;
} */


/* モーダル オーバレイ */
#modal-overlay {
  display: none;
  position: fixed;
  z-index: 300;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.5);
  /* background-color: #000; ※ これは モーダルも透過されてしまう
  opacity: 0.5; */
  
}

/* モーダル設定打ち消し */
/*
.remodal-cancel {
  color: #fff !important;
  background: none !important;
  position: absolute !important;
  left: -12px !important;
  top: -48px !important;
  font-weight: bold !important;
  font-size: 18px !important;
} */

.remodal-cancel {
  color: #fff;
  position: absolute;
  top: -38px;
  left: 0px;
  font-weight: bold;
  font-size: 1.2em;
  background: none;
}

.remodal {
  position: fixed;
  top: 100px;
  left: 50%;
  transform: translate(-50%, 0); /* 中心点を見つけセンターを移動させる */
  width: 600px;
  height: auto;
  z-index: 12;
  padding: 0;
  text-align: left;
  background-color: none;
}
.remodal .scroll-box{
  height: 600px;
  background-color: #fff;
  overflow-y: scroll;
}

.remodal h2{
  padding: 20px 0;
  background: #135fb9;
  color: #fff;
  text-align: center;
  font-size: 20px;
}
.remodal .txt{
  padding: 30px;
}
.remodal h3{
  margin-bottom: 25px;
  padding: 7px 15px;
  color: #fff;
  /* background: #f25252; */
  font-size: 16px;
  border-radius: 7px;
}
.remodal dl{
  padding: 0 10px;
  /*display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(7, 32px) 300px;*/
}

.remodal dl dt{

  max-width: 180px;
  padding: 0 12px;
  font-weight: bold;
}
.remodal dl dd{
  margin-bottom: 12px;
  padding: 5px 0 10px 20px;
  border-bottom: 1px dotted #cdcdcd;
  line-height: 1.5;
}
.remodal dl dd:last-child{
  border-bottom: 0;
}
.remodal dl dt.contents,
.remodal dl dt.contents + dd{
  border-bottom: 0; 
}



@media screen and (max-width: 640px) {

  #schedule table .yearmonth th:nth-child(1),
  #schedule table .yearmonth th:nth-child(3){
    font-size: 16px;
  }
  #schedule table .yearmonth th:nth-child(2){
    font-size: 18px;
  }
  #schedule table tr td div {
    min-height: 50px;
  }
  #schedule table tr td div .plan{
    margin-top: 3px;
    padding: 4px 3px;
    font-size: 12px;
  }
  #schedule .tit {
    margin-bottom: 20px;
  }
  #schedule .tit img {
    max-width: 60%;
  }

  .remodal {
    width: 90%;
    height: 500px;
  }
  .remodal .txt {
    padding: 20px 15px;
  }
  .remodal h2 {
    padding: 14px 0;
    font-size: 17px;
  }
  .remodal h3 {
    margin-bottom: 20px;
    padding: 9px 10px;
    font-size: 15px;
    border-radius: 5px;
    line-height: 1;
  }
  .remodal dl{
    display: block;
  }
  .remodal dl dt{
    width: 100%;
    max-width: 100%;
    padding: 0 8px;
    margin: 12px 0 7px;
    border-bottom: 0;
  }
  .remodal dl dd{
    width: 100%;
    padding: 0 0 10px 0;
    border-bottom: 1px dotted #cdcdcd;
    line-height: 1.3;
  }
  .remodal dl dt.contents,
  .remodal dl dt.contents + dd{
    border-bottom: 0; 
  }


}
