@charset "utf-8";

/**
 *  イベントカレンダー用CSS
 */
.calendar-wrap {
  margin: 0 auto 50px;
  padding-top: 20px;
}
  body.single .calendar-wrap,
  body.index .calendar-wrap {
    border-top: 1px solid #d8d8d8;
  }
  .calendar-wrap > h3 {
    border-left: 5px solid #d59b37;
    padding-left: 16px;
  }
.calendar-control {
  align-items: flex-end;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
}
.calendar-prev,
.calendar-next {
  text-decoration: underline;
}
.calendar-prev:hover,
.calendar-next:hover {
  cursor: pointer;
  text-decoration: none;
}
  body.single .calendar-control,
  body.index .calendar-control {
    max-width: 700px;
  }
  body.single .calendar-month,
  body.index .calendar-month {
    font-size: 24px;
  }


.fc-calendar-container {
  height: 280px;
  margin: 0 auto;
  width: 100%;
}
  body.single .fc-calendar-container,
  body.index .fc-calendar-container {
    max-width: 700px;
  }
  .fc-calendar-container div {
    box-sizing: border-box;
  }
  .fc-calendar .fc-head {
    background: inherit;
    color: inherit;
    font-weight: bold;
    height: 50px;
    line-height: 50px;
  }
  .fc-calendar .fc-body {
    border-color: #d8d8d8;
    height: calc(100% - 50px);
  }
  .fc-calendar .fc-row > div {
    border-color: #d8d8d8;
  }
  .fc-calendar .fc-row > div.fc-today {
    background: inherit;
  }
  .fc-calendar .fc-row > div > span.fc-date {
    color: inherit;
    font-size: inherit;
    font-weight: normal;
    top: 50%;
    left: 50%;
    text-align: center;
    margin: -10px 0 0 -15px;
  }
  .fc-calendar .fc-row > div > span.fc-emptydate {
      visibility: hidden;
  }
  .fc-calendar .fc-row > div.fc-content > span.fc-date {
    color: #d59b37;
    font-weight: bold;
    text-decoration: underline;
  }
  .fc-calendar-events {
    display: none;
  }

#calendar-detail {
  background-color: #fff;
  border: 1px solid #000;
  box-shadow: 0px 2px 3px 1px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
  display: none;
  height: auto;
  position: absolute;
  width: 400px;
}
  #calendar-detail-close {
    background: url(/assets/img/icon-close-white.svg) no-repeat center center #000;
    background-size: 18px;
    height: 30px;
    position: absolute;
    right: 0;
    width: 30px;
  }
  #calendar-detail-content {
    padding: 14px;
  }
    .calendar-detail-date {
      font-size: 20px;
    }
    .calendar-detail-count-num {
      font-size: 18px;
    }
    .calendar-detail-item {
      border-top: 1px solid #aaa;
      margin-left: 5px;
      margin-top: 10px;
      padding-top: 10px;
    }
      .calendar-detail-item-date {
        font-size: 14px;
      }
      .calendar-detail-item-title {
        font-size: 18px;
        font-weight: bold;
      }
      .calendar-detail-item-link {
        color: #d59b37;
        text-decoration: underline;
      }
        .calendar-detail-item-link:hover {
          color: #bb7e23;
          text-decoration: none;
      }
      .calendar-detail-item-term {
        font-size: 12px;
      }

@media screen and (max-width: 1024px) {
  .calendar-control {
    max-width: 480px;
  }
  .fc-calendar-container {
    max-width: 480px;
  }
  .calendar-month {
    font-size: 24px;
  }
}

@media screen and (max-width: 767px) {
  .calendar-month {
    font-size: inherit;
  }
  #calendar-detail {
    margin-right: 20px;
    max-width: 480px;
    width: auto;
  }
}
