/*
プラグイン用のCSS
*/
/***********************************************************
                  Simple Booking Calendar
************************************************************/

.wpsbc-calendars-wrapper {
  color: #000;
}

.wpsbc-calendar {
  margin: 0 auto;
  width: 100% !important;
  border: 1px solid #371E0F !important;
}

/* カレンダー本体のラッパー */
.wpsbc-container {
}

.wpsbc-container[data-columns] .wpsbc-calendars {
  margin-left: unset !important;
  margin-right: unset !important;
}

.wpsbc-container[data-columns] .wpsbc-calendars .wpsbc-calendar {
  float: none !important;
  margin: 0 auto !important;
  border: 0 important;
  max-width: 480px !important;
  padding: 30px;
}

.wpsbc-container .wpsbc-calendars .wpsbc-calendar {
  background-color: #fff !important;
}

/* カレンダーの文字色を変更 */
.wpsbc-container .wpsbc-calendars .wpsbc-calendar table th {
  color: #333 !important;
  font-weight: bold;
  text-align: center;
}

.wpsbc-container .wpsbc-calendars .wpsbc-calendar table td {
  color: #333 !important;
  font-weight: bold;
  text-align: center;
}

/* カレンダーの月を表示しているヘッダ部分 */
.wpsbc-container .wpsbc-calendars .wpsbc-calendar .wpsbc-calendar-header {
  background-color: transparent !important;
  padding: 0 !important;
}

/* カレンダーの月送りのヘッダ部分 */
.wpsbc-container
  .wpsbc-calendars
  .wpsbc-calendar
  .wpsbc-calendar-header
  .wpsbc-calendar-header-navigation {
  line-height: 40px !important;
}

/* カレンダーの月移動の前ボタン */
.wpsbc-container
  .wpsbc-calendars
  .wpsbc-calendar
  .wpsbc-calendar-header
  .wpsbc-calendar-header-navigation
  .wpsbc-prev {
  background-color: transparent !important;
}

.wpsbc-container
  .wpsbc-calendars
  .wpsbc-calendar
  .wpsbc-calendar-header
  .wpsbc-calendar-header-navigation
  .wpsbc-prev
  .wpsbc-arrow {
  border-width: 0 !important;
}

.wpsbc-container
  .wpsbc-calendars
  .wpsbc-calendar
  .wpsbc-calendar-header
  .wpsbc-calendar-header-navigation
  .wpsbc-next {
  background-color: transparent !important;
}

.wpsbc-container
  .wpsbc-calendars
  .wpsbc-calendar
  .wpsbc-calendar-header
  .wpsbc-calendar-header-navigation
  .wpsbc-next
  .wpsbc-arrow {
  border-width: 0 !important;
}

.wpsbc-container
  .wpsbc-calendars
  .wpsbc-calendar
  .wpsbc-calendar-header
  .wpsbc-calendar-header-navigation
  .wpsbc-prev::after {
  content: url("../image/arrow-l.svg");
}

.wpsbc-container
  .wpsbc-calendars
  .wpsbc-calendar
  .wpsbc-calendar-header
  .wpsbc-calendar-header-navigation
  .wpsbc-next::after {
  content: url("../image/arrow-r.svg");
}

/* カレンダーの月を表示しているヘッダ部分の後ろに画像を追加 */
.wpsbc-container
  .wpsbc-calendars
  .wpsbc-calendar
  .wpsbc-calendar-header::after {
  content: url("../image/close.png");
  float: right;
  margin-right: 35px;
  position: relative;
  top: -45px;
}

.wpsbc-container .wpsbc-calendars .wpsbc-calendar-wrapper {
  position: relative;
  top: -25px;
  margin-bottom: -40px;
}

/* カレンダーの該当なし日付の背景を変更 */
.wpsbc-container
  .wpsbc-calendars
  .wpsbc-calendar
  table
  tr
  td
  .wpsbc-date.wpsbc-gap {
  background-color: transparent !important;
}

/* カレンダーの通常の背景を変更 */
.wpsbc-container.wpsbc-calendar-1 .wpsbc-legend-item-icon-1 div:first-of-type {
  background-color: transparent !important;
}

/* カレンダーの定休日の背景を変更 */
.wpsbc-container.wpsbc-calendar-1 .wpsbc-legend-item-icon-2 div:first-of-type {
  background-color: #f1e3db !important;
  border-radius: 100%;
  width: 30px;
  height: 30px;
  position: relative;
  top: 5.5%;

  display: block;
  margin: 0 auto;
}

/* カレンダーの営業日でも定休日でもない時の背景色を変更 */
.wpsbc-container.wpsbc-calendar-1 .wpsbc-legend-item-icon-3 div:first-of-type {
  background-color: transparent !important;
}

.wpsbc-date-inner {
  height: 35px !important;
  line-height: 35px !important;
}

/* カレンダーの日付のフォントサイズ */
.wpsbc-container
  .wpsbc-calendars
  .wpsbc-calendar
  table
  tr
  td
  .wpsbc-date-inner
  .wpsbc-date-number {
    font-size: 16px !important;
    font-family: "gill-sans-nova", sans-serif;
    font-weight: 400;
    font-style: normal;
}

/* カレンダーのプルダウンの非表示 */
.wpsbc-calendars-wrapper .wpsbc-select-container select {
  display: none;
}

/* カレンダーのプルダウンの代わりに月の数字を表示する */
.wpsbc-container .wpsbc-select-container::before {
  font-weight: 400;
  font-size: 31px !important;
  color: #371E0F !important;
  display: block;
  position: relative;
  top: 10px;
  padding-bottom: 20px;
  font-family: "gill-sans-nova",sans-serif;
  font-style: normal;
  letter-spacing: 0.05em;
}

.wpsbc-container .wpsbc-select-container::after {
  font-size: 18px;
  display: block;
  color: #6e594f !important;
}

.wpsbc-container[data-current_month="1"] .wpsbc-select-container::before {
  content: "1";
}

.wpsbc-container[data-current_month="2"] .wpsbc-select-container::before {
  content: "2";
}

.wpsbc-container[data-current_month="3"] .wpsbc-select-container::before {
  content: "3";
}

.wpsbc-container[data-current_month="4"] .wpsbc-select-container::before {
  content: "4";
}

.wpsbc-container[data-current_month="5"] .wpsbc-select-container::before {
  content: "5";
}

.wpsbc-container[data-current_month="6"] .wpsbc-select-container::before {
  content: "6";
}

.wpsbc-container[data-current_month="7"] .wpsbc-select-container::before {
  content: "7";
}

.wpsbc-container[data-current_month="8"] .wpsbc-select-container::before {
  content: "8";
}

.wpsbc-container[data-current_month="9"] .wpsbc-select-container::before {
  content: "9";
}

.wpsbc-container[data-current_month="10"] .wpsbc-select-container::before {
  content: "10";
}

.wpsbc-container[data-current_month="11"] .wpsbc-select-container::before {
  content: "11";
}

.wpsbc-container[data-current_month="12"] .wpsbc-select-container::before {
  content: "12";
}

/* デフォルトの曜日表記を非表示にして英語表記の曜日に変更 */
#main_contents .wpsbc-calendar-wrapper thead {
  border-bottom: 1px solid #777 !important;
}

.wpsbc-calendar-wrapper th {
  font-size: 0 !important;
}

.wpsbc-calendar-wrapper th::after {
  font-size: 15px;
  font-family: "gill-sans-nova", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.wpsbc-calendar-wrapper th:nth-child(1)::after {
  content: "mon";
}

.wpsbc-calendar-wrapper th:nth-child(2)::after {
  content: "tue";
}

.wpsbc-calendar-wrapper th:nth-child(3)::after {
  content: "wed";
}

.wpsbc-calendar-wrapper th:nth-child(4)::after {
  content: "thu";
}

.wpsbc-calendar-wrapper th:nth-child(5)::after {
  content: "fri";
}

.wpsbc-calendar-wrapper th:nth-child(6)::after {
  content: "sat";
}

.wpsbc-calendar-wrapper th:nth-child(7)::after {
  color: #f00;
  content: "sun";
}

@media screen and (max-width: 540px) {
  .wpsbc-calendars-wrapper {
    padding-top: 0;
  }

  .wpsbc-date-inner {
    height: 25px !important;
    line-height: 25px !important;
  }

  .wpsbc-container .wpsbc-select-container::before {
    font-size: 28px;
    display: block;
    position: relative;
    top: 10px;
  }

  .wpsbc-container .wpsbc-select-container::after {
    font-size: 15px;
    display: block;
  }

  .wpsbc-container
    .wpsbc-calendars
    .wpsbc-calendar
    .wpsbc-calendar-header
    .wpsbc-calendar-header-navigation {
    line-height: 28px !important;
    position: relative;
    top: -10px;
  }

  .wpsbc-container
    .wpsbc-calendars
    .wpsbc-calendar
    table
    tr
    td
    .wpsbc-date-inner
    .wpsbc-date-number {
    font-size: 13px !important;
    font-weight: 400;
  }

  .wpsbc-container
    .wpsbc-calendar-1
    .wpsbc-legend-item-icon-1
    div:first-of-type {
    border-radius: 100%;
    width: 20px;
    height: 20px;
    left: 28.5%;
  }

  .wpsbc-container.wpsbc-calendar-1
    .wpsbc-legend-item-icon-2
    div:first-of-type {
    width: 22px;
    height: 22px;
  }

  .wpsbc-container
    .wpsbc-calendars
    .wpsbc-calendar
    .wpsbc-calendar-header::after {
    content: url("../image/close.png");
  }

  .wpsbc-container[data-columns] .wpsbc-calendars {
    margin-left: initial !important;
    margin-right: initial !important;
  }

  .wpsbc-container[data-columns] .wpsbc-calendars .wpsbc-calendar {
    width: 90%;
    padding: 15px;
  }

  .wpsbc-container
    .wpsbc-calendars
    .wpsbc-calendar
    .wpsbc-calendar-header::after {
    top: -44px;
  }
  .wpsbc-container[data-columns] .wpsbc-calendars .wpsbc-calendar {

    max-width: 360px !important;
}
}
@media screen and (max-width: 400px) {
  .wpsbc-container .wpsbc-select-container::before{
    top: 0;
    padding-bottom: 0;
  }
  body:not(.wp-admin) a.wpsbc-next::before {
    right: 20px !important;
}
}
body:not(.wp-admin) div.wpsbc-calendar ul.wpsbc-weekdays li:after {
  color: #371E0F !important;
  font-size: 15px !important;
  font-family: "gill-sans-nova",sans-serif;
  font-weight: 400;
  font-style: normal;
}
body:not(.wp-admin) div.wpsbc-calendar ul.wpsbc-weekdays li:nth-of-type(7)::after {
  content: "sun";
  color: red !important;
}
body:not(.wp-admin) div.wpsbc-calendar ul.wpsbc-weekdays {
  border-bottom: 1px solid #000 !important;
}
body:not(.wp-admin) div.wpsbc-calendar ul li .wpsbc-day-split-day, .wpsbc-select-status .wpsbc-day-split-day{
  color: #371E0F !important;
  font-size: 16px !important;
  font-family: "gill-sans-nova",sans-serif !important;
}
body:not(.wp-admin) div.wpsbc-calendar div.wpsbc-heading a{
  position: relative;
}
body:not(.wp-admin) a.wpsbc-next::before {
  content: url("../image/close.png") !important;
  right: 30px !important;
  top: -4px;
}
body:not(.wp-admin) div.wpsbc-calendar div.wpsbc-heading {
  width: calc(100% - 50px) !important;
}
body:not(.wp-admin) div.wpsbc-calendar ul li.status-1 {
  background-color: #fccabd !important;
}