table.top_calendar p{
  margin: 1px;
}

p.cal_am_detail,p.cal_pm_detail,p.notice_detail{
  color: #5b5b5b;
}

p.cal_day {
  font-size: 140%;
  font-weight: bold;
}

.cal_am_title,.cal_pm_title,.cal_all_title{
  padding-top: 2px;
  margin-bottom: 5px!important;
  margin-top: 5px!important;
  font-weight: bold;
  padding-bottom: 1px;
  font-size: 85%;
  color: #5b5b5b;
  background-color: #f9f9f9;
}

/* calendar */
.pre_next_link {
  display: flex;
  /*justify-content: space-between;*/
  justify-content: center;
  padding: 0px 0 0px 0;
  box-sizing: border-box;
  align-items: center;
}
.pre_next_link span {
  display: block;
}
.pre_next_link span.next,
.pre_next_link span.pre {
  width: 22px;
  height: 22px;
  overflow: hidden;
  text-indent: -999999px;
  cursor: pointer;
  position: relative;
  background-color: #999;
  margin: 1px;

  /*border: 1px solid #ccc;*/
  /*font-size: 110%;*/
  /*padding: 3px 10px 3px 10px;*/
  /*text-align: center;*/
}
.pre_next_link span.pre::after,
.pre_next_link span.next::after {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  margin: auto;
  content: "";
  vertical-align: middle;
  width: 8px;
  height: 8px;
  border-top: 1px solid #fff;
  border-right: 1px solid #fff;
}
.pre_next_link span.pre::after {
  left: 4px;
  -webkit-transform: rotate(225deg);
  transform: rotate(225deg);
}
.pre_next_link span.next::after {
  right: 4px;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

.pre_next_link span.present {
  font-weight: bold;
  font-size: 155%;
  margin-right: 20px;
  margin-left: 20px;
}

.calendar_body {
  margin-bottom: 20px;
}
table.top_calendar {
  width: 100%;
  font-size: 80%;
  table-layout: fixed;
}
table.top_calendar,
table.top_calendar tr,
table.top_calendar tr th,
table.top_calendar tr td {
  border-collapse: collapse;
  border: 1px solid #bbbbbb;
}
table.top_calendar tr th,
table.top_calendar tr td {
  padding: 5px 0;
  vertical-align: top;
  text-align: center;
}

table.top_calendar tr {
}
table.top_calendar tr th {
  background-color: #ffc;
  font-size: 140%;
}
table.top_calendar tr td {
  background-color: #ffffff;
}

table.top_calendar tr th.sun,
table.top_calendar tr td.sun {
  color: #e5656a;
}
table.top_calendar tr th.sun {
}
table.top_calendar tr td.sun {
}
table.top_calendar tr th.sat {
}
table.top_calendar tr td.sat {
}
table.top_calendar tr td.cate_1 {
  background-color: #fee3de;
}
table.top_calendar tr td.cate_2 {
  background-color: #deeffe;
}
table.top_calendar tr td.cate_1 a,
table.top_calendar tr td.cate_2 a {
  text-decoration: none;
}

.top_calendar .holiday {
  color: #f45151;
}
.top_calendar .sunday {
  color: #f45151;
}
.top_calendar .saturday {
  color: #0574c1;
}

ul.notice_text {
    display: flex;
    margin-top: 18px;
    font-size: 100%;
    padding-left: 0;
  justify-content: center;
}
@media screen and (max-width: 768px) {
  ul.notice_text {
    display: block;
  }
}

@media screen and (max-width: 480px) {
  table.top_calendar p{
    font-size: 80%;
  }

  p.cal_day {
    font-size: 140%!important;
  }
}

.day_name {
  font-size: smaller;
}

.notice_text {
  margin-bottom: 20px;
}
.notice_text li {
  padding-right: 20px;
}

.notice_text .all_day_icon {
  color: #ffccc2;
}
.notice_text .afternoon_icon {
  color: #bfe1ff;
}
.notice_text .afternoon_close_icon {
  color: #e3fdd6;
}
.notice_text .all_day_icon::after,
.notice_text .afternoon_icon::after,
.notice_text .afternoon_close_icon::after {
  content: ":";
  color: #333;
  padding: 5px;
}

table.top_calendar tr td.gogoshinryoubi {
  background-color: #deeffe;
}

table.top_calendar tr td.kyuushinbi {
  background-color: #fee3de;
}

table.top_calendar tr td.kaigyou {
  background-color: none;
}

table.top_calendar tr td.kyuushin {
  background-color: #fee3de;
}

table.top_calendar tr td.gogokyuushin {
  background-color: #e3fdd6;
}

table.top_calendar tr td.gogoshinryou {
  background-color: #deeffe;
}

/* calendar time */

.time-wrp {
  width: 100%;
  display: block;
  margin: 0 auto;
  max-width: 100%;
  padding: 40px 0;
}

.time-l {
  width: 100%;
  float: none;
  margin-right: 4.5%;
}

.time-l table {
  width: 100%;
}

.time-l table .y1,.time-l table .y2,.time-l table .w1,.time-l table .w2 {
  border-bottom: 1px solid #ccc;
}

.time-l table .y1,.time-l table .y2,.time-l table .y3 {
  background-color: #fffcaa;
  width: 166px;
}

.time-l table .w1,.time-l table .w2,.time-l table .w3 {
  background-color: #f9f9f9;
}

.time-l table td {
  padding: 13px 10px;
  text-align: center;
}

.time-l table .w2,.time-l table .w3 {
  color: #43aff7;
}

.time {
  text-align: center;
  margin-top: 40px;
}

.time img {
  width: 100%;
  max-width: 800px;
}

.time-r {
  display: none;
  max-width: 100%;
  margin: 35px 20%;
  font-size: 80%;
  padding: 10px 30px 30px 30px;
  border: 1px solid #d1d1d1;

}

.time-r h2 {
  text-align: center;
  font-size: 110%;
  margin-bottom: 20px;
  margin-top: 20px;
  font-weight: bold;
  padding-bottom: 15px;
  border-bottom: 1px solid #cbcbcb;
}

.time-r h3 {
  color: #43aff7;
  padding-bottom: 5px;
  margin-top: 28px;
  margin-bottom: 10px;
  border-bottom: 1px solid #cbcbcb;
}

.time-r .t-r {
  color: #fff;
  font-size: 85%;
  padding: 4px 10px;
  background-color: #999999;
}
