:root {
  --calendar-font-color: #1a1a1a;
}

.btn {
  border: none;
  border-radius: 0.5rem;
  display: inline-block;
  padding: 0.5rem 2rem;
  text-decoration: none;
}
.btn--white {
  background: #fff;
  border: 1px solid #1C4268;/*#03A9F4*/
  border-radius: 0.5rem;
  color: #03A9F4;
}
.mt1 {
  margin-top: 1rem;
}
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
li {
  box-sizing: border-box;
}
.calendar li:last-child {
/*  border-right: 1px solid #A7A7A7;*/
}
.calendar li:last-child,
.calendar li:last-child .calendar__date {
  color: #6fb5ff;
}
.calendar li:first-child,
.calendar li:first-child .calendar__date,
.calendar li.holiday .calendar__date {
  color: #ff838b;
}
.calendar li.out_month {
  /*background: #f7f7f7;*/
  visibility: hidden;
}
.reserve_calendar .calendar li.out_month.calendar__week {
  visibility: visible;
  height: auto;
}
.calendar li.today,
.calendar li.disabled {
  /*background: #eee;*/
}
.calendar li.out_range {
  /*background: #ddd;*/
}
.calendar li.click {
  cursor: pointer;
}
.calendar li.click.disabled {
  cursor: default;
}
.calendar--week {
  /*border-top: 1px solid #A7A7A7;*/
}
.calendar.calendar--week li {
  background: none;
  padding: 0.5rem 0;
  height: auto;
  font-size: 14px;
  color: var(--calendar-font-color);
}
.reserve_calendar .calendar__date {
/*  position: absolute;
  top: 0.5rem;
  left: 0.5rem;*/
  display: flex;
  justify-content: center;
  font-weight: bold;
}
.calendar li.out_month .calendar__date {
  font-size: 80%;
  visibility: hidden;
}
.reserve_calendar .calendar__status {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "メイリオ", sans-serif;
  font-weight: bold;
}
.calendar-note {
  font-family: "メイリオ", sans-serif;
}

#calender_back, #calender_next, #schedule_back {
  cursor: pointer;
}
.btn_hidden {
  visibility: hidden;
}
.reserve {
  display: flex;
  padding: 0;
  margin-top: 4px;
  align-items: stretch;
  min-height: 40px;
  justify-content: space-between;
}
.reserve li {
  display: flex;
  align-items: center;
}
/*.reserve li:nth-child(1) {*/
.reserve li.ship_time {
  width: 9em;
}
/*.reserve li:nth-child(2) {*/
.reserve li.ship_name {
  width: calc(100% - 29em);
  word-wrap: break-word;
}
.reserve li:nth-child(1).ship_name,
.reserve li:nth-last-child(3).ship_name {
  width: calc(100% - 20em);
}
.reserve li:nth-child(1):nth-last-child(3).ship_name {
  width: calc(100% - 11em);
}
/*.reserve li:nth-child(3) {*/
.reserve li.tide {
  width: 9em;
  text-align: center;
}
.reserve .status {
  width: 4em;
  justify-content: center;
  font-family: "メイリオ", sans-serif;
}
.reserve {
  padding-left: 0.5em;
}
.reserve_row {
  border: 1px solid #A7A7A7;
  border-radius: 8px;
}
.reserve_row .ship_time_start,
.reserve_row .ship_time_end {
  display: inline-block;
  /*width: 3em;*/
  width: 2.5em;
  text-align: right;
}
.reserve_row.disabled {
  background: #eeeeee;
}
.reserve_row.click {
  cursor: pointer;
}

.reserve-title-mb {
  display: none;
}

@media screen and (max-width: 767px) {
  .reserve-title {
    display: none;
  }
  .reserve {
    flex-wrap: wrap;
    font-size: 15px;
  }
  .reserve li {
    width: 50% !important;
    flex: none;
    display: block;
  }
  .reserve_row .ship_time_start, .reserve_row .ship_time_end {
    width: auto;
  }
  .tide {
    text-align: left !important;
  }
  .status {
    text-align: left !important;
  }
  
  .reserve-title-mb {
    display: block;
    font-weight: bold;
  }
}

.calendar-area {
  overflow-x: auto;
}
.calendar__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.calendar__nav__month {
  font-size: 24px;
  color: var(--calendar-font-color);
  height: 50px;
  line-height: 50px;
  text-align: center;
  margin: 0;
}
.reserve_calendar .calendar {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 0 30px;
}
.reserve_calendar .calendar li {
  /*border-left: 1px solid #A7A7A7;*/
  /*border-bottom: 1px solid #A7A7A7;*/
  flex: none;
  width: calc(100% / 7);
  height: 72px;
  text-align: center;
  position: relative;
}
.calendar li:nth-child(7n) {
  /*border-right: 1px solid #A7A7A7;*/
}
.calendar .calendar__week {
  background: #EBF9FF;
  padding: 0.5rem 0;
  height: auto;
}
.calendar__gray {
  background: #ccc;
}
.wb-keep {
  word-break: keep-all;
}
.calendar_inner {
  height: 600px;
  overflow: hidden;
  position: relative;
}
.calendar_back, .calendar_next, .schedule_back {
  cursor: pointer;
}
.reserve-btn {
  width: 7em;
  justify-content: flex-end;
}
.reserve-btn-inner {
  display: flex;
  padding: 0 8px;
  background: #030d2e;
  color: #fff;
  text-align: center;
  border-radius: 0 8px 8px 0;
  height: 100%;
  align-items: center;
}
.reserve_row.disabled .reserve-btn {
  visibility: hidden;
}
.reserve_calendar .calendar_tab {
  display: flex;
  justify-content: space-around;
}
.reserve_calendar .calendar_tab > div {
  width: 48%;
  margin: 0 1%;
  background: #f6f5f4;
  padding: 0 30px 30px;
  flex: none;
}

@media screen and (max-width:1159px) {
  .calendar li {
    height: 10vw;
  }
  .calendar_inner {
    height: 50vw;
  }
}
@media screen and (max-width:960px) {
  .calendar li {
    height: 13vw;
  }
  .calendar_inner .calendar li {
    min-height: 80px;
  }
  .calendar_inner {
    height: 65vw;
    min-height: 400px;
  }
  .reserve_calendar .calendar_tab {
    display: block;
  }
  .reserve_calendar .calendar_tab > div {
    width: 98%;
  }
}
@media screen and (max-width:767px) {
  .btn {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .calendar__nav__month {
    font-size: 1.3rem;
  }
  .reserve {
    padding: 4px 8px;
  }
  .reserve li.reserve-btn {
    width: 100% !important;
    text-align: center;
  }
  .reserve-btn-inner {
    border-radius: 8px;
    display: inline-block;
    padding: 8px;
    height: auto;
  }
}
/* modal */
.calendar-modal {
  position: fixed;
  top: calc(50vh - 300px);
  right: calc(50vw - 400px);
  z-index: 9999;
  background: #fff;
  display: none;
}
.calendar-modal.active {
  display: block;
}
.calendar-modal #iframe {
  width: 800px;
  height: 600px;
  border: none;
}
.calendar-modal-bg {
  background: rgba(0, 0, 0, 0.5);
  width: 100vw;
  height: 100vh;
  top: 0;
  right: 0;
  position: fixed;
  z-index: 9998;
  display: none;
}
.calendar-modal-bg.active {
  display: block;
}
.calendar-modal__close {
  position: absolute;
  right: 0;
  height: 40px;
  width: 40px;
  top: -40px;
  cursor: pointer;
}
.close-bar1,
.close-bar2 {
  display: block;
  width: 40px;
  border-top: 4px solid #fff;
  position: absolute;
  top: 17px;
  right: 0;
}
.close-bar1 {
  transform: rotate(45deg);
}
.close-bar2 {
  transform: rotate(-45deg);
}
@media screen and (max-width:960px) {
  .calendar-modal {
    top: 0;
    right: 0;
  }
  .calendar-modal #iframe {
    width: 100vw;
    height: 100vh;
  }
  .calendar-modal__close {
    top: 0;
    right: 16px;
  }
  .close-bar1,
  .close-bar2 {
    border-color: #ccc;
  }
}
/* modal end */

/* bootstrap対策 */
section {
  z-index: auto;
}