@charset "Shift_JIS";

/* 月間カレンダー
   ========================================================================== */

.styleguide-scope .jln-room-calendar__monthly {
  position: relative;
  margin-bottom: 20px;
}

.styleguide-scope .jln-room-calendar-body {
  border: 1px solid #e0dbd7;
  border-radius: 4px;
  visibility: hidden;
}

/**
 * ヘッダー
 */

.styleguide-scope .jln-room-calendar__header {
  padding: 4px 12px;
  border-bottom: 1px solid #e0dbd7;
  border-radius: 4px 4px 0 0;
  background-color: #f7f5f2;
}

.styleguide-scope .jln-room-calendar__caption {
  position: relative;
  font-size: 12px;
  font-weight: bold;
  text-align: center;
}

.styleguide-scope .jln-room-calendar__help {
  position: relative;
  display: inline-block;
  font-weight: normal;
}

.styleguide-scope .jln-room-calendar__caption .ji-help-circle-outline {
  cursor: pointer;
  font-size: 12px;
}

/* カレンダーのツールヘルプ */
.styleguide-scope .jln-room-calendar__help-content {
  position: absolute;
  top: -8px;
  left: -51px;
  transform: translateY(-100%);
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.5);
  display: none;
  width: 495px;
  padding: 9px;
  border: 1px solid #bcb6b3;
  border-radius: 4px;
  background: #fff;
  text-align: left;
  z-index: 1;
}

.styleguide-scope
  .jln-room-calendar__caption
  .ji-help-circle-outline:hover
  + .jln-room-calendar__help-content {
  display: block;
}

.styleguide-scope .jln-room-calendar__help-content::before,
.styleguide-scope .jln-room-calendar__help-content::after {
  content: '';
  position: absolute;
  left: 49px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 7px 0 7px;
  border-color: transparent;
}

.styleguide-scope .jln-room-calendar__help-content::before {
  bottom: -8px;
  border-top-color: #bcb6b3;
}

.styleguide-scope .jln-room-calendar__help-content::after {
  bottom: -7px;
  border-top-color: #fff;
}

.styleguide-scope .jln-room-calendar__legend {
  display: flex;
  width: 100%;
  font-size: 11px;
}

.styleguide-scope .jln-room-calendar__legend-item:not(:last-child) {
  margin-right: 8px;
}

.styleguide-scope .jln-room-calendar__notes {
  padding-left: 1em;
  text-indent:-1em;
  font-size: 11px;
}

/* カレンダーのコントロール  */
.styleguide-scope .jln-room-calendar__monthly .calendar-controls {
  width: 100%;
  display: flex;
  align-items: center;
}

.styleguide-scope .jln-room-calendar__monthly .calendar-nav {
  cursor: pointer;
  flex-basis: 16px;
}

.styleguide-scope .jln-room-calendar__monthly .calendar-nav .ji {
  font-size: 18px;
}

.styleguide-scope .jln-room-calendar__monthly .calendar-month {
  flex-grow: 1;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
}

.styleguide-scope .jln-room-calendar__monthly .calendar-prev,
.styleguide-scope .jln-room-calendar__monthly .calendar-next {
  display: flex;
  align-items: center;
  justify-content: center;
}

.styleguide-scope .jln-room-calendar__monthly .calendar-prev.inactive,
.styleguide-scope .jln-room-calendar__monthly .calendar-next.inactive {
  display: none;
}

/* ローディング中は月送りができないようにする */
.styleguide-scope .jsc-room-calendar.is-loading .calendar-nav {
  pointer-events: none;
}

/**
 * カレンダーの本体
 */

.styleguide-scope .jln-room-calendar__monthly .calendar-table {
  table-layout: fixed;
  width: calc(100% - 10px);
  margin: 0 auto;
  border-collapse: collapse;
  font-size: 12px;
}

.styleguide-scope .jln-room-calendar__monthly thead .calendar-cell {
  padding: 3px;
  font-size: 11px;
  font-weight: normal;
  text-align: center;
}

.styleguide-scope
  .jln-room-calendar__monthly
  thead
  .calendar-cell:nth-child(6) {
  color: #1094e7;
}

.styleguide-scope
  .jln-room-calendar__monthly
  thead
  .calendar-cell:nth-child(7) {
  color: #e8104a;
}

.styleguide-scope .jln-room-calendar__monthly tbody .calendar-cell {
  height: 52px;
  padding: 4px 0;
  border-top: 1px solid #e0dbd7;
  text-align: center;
  vertical-align: top;
}

.styleguide-scope .jln-room-calendar__monthly tbody .calendar-annotation {
  color: #5B4843;
  font-size: 10px;
  padding-bottom: 5px;
}

/* カレンダーの最初の週はボーダーを出さない */
.styleguide-scope
  .jln-room-calendar__monthly
  tbody
  tr:first-child
  .calendar-cell {
  border-top: 0;
}

.styleguide-scope .jln-room-calendar__monthly tbody .calendar-cell.inactive,
.styleguide-scope
  .jln-room-calendar__monthly
  tbody
  .calendar-cell.adjacent-month {
  color: #ccc;
}

.styleguide-scope .jln-room-calendar__monthly tbody .calendar-cell.has-stock {
  cursor: pointer;
}

.styleguide-scope .jln-room-calendar__monthly tbody .calendar-date {
  display: block;
  font-size: 12px;
  line-height: 1.2;
}

.styleguide-scope .jln-room-calendar__monthly tbody .calendar-stock {
  display: table;
  width: 100%;
  color: #1558ce;
}

.styleguide-scope
  .jln-room-calendar__monthly
  tbody
  .calendar-stock.out-of-stock {
  color: #3b1800;
}

.styleguide-scope .jln-room-calendar__monthly tbody .calendar-icon {
  font-size: 14px;
  font-style: normal;
}

.styleguide-scope .jln-room-calendar__monthly tbody .calendar-rooms {
  font-size: 10px;
  line-height: 1.2;
}

.styleguide-scope .jln-room-calendar__monthly tbody .calendar-number {
  display: block;
  font-size: 14px;
  font-style: normal;
  font-weight: bold;
}

.styleguide-scope
  .jln-room-calendar__monthly
  tbody
  .calendar-cell.has-stock:hover {
  background: #fef5d8;
}

.styleguide-scope
  .jln-room-calendar__monthly
  tbody
  .calendar-cell.has-stock:hover
  .calendar-stock {
  color: #e77611;
}

/* 土曜日 */
.styleguide-scope .jln-room-calendar__monthly tbody .calendar-dow-6 {
  color: #1094f7;
}

/* 日曜日, 祝日 */
.styleguide-scope .jln-room-calendar__monthly tbody .calendar-dow-0,
.styleguide-scope .jln-room-calendar__monthly tbody .calendar-holiday {
  color: #e8104a;
}

/* チェックイン日 */
.styleguide-scope
  .jln-room-calendar__monthly
  tbody
  .calendar-cell.selected:not(.adjacent-month) {
  pointer-events: none;
  background: #e77611;
}

.styleguide-scope
  .jln-room-calendar__monthly
  tbody
  .calendar-cell.selected:not(.adjacent-month),
.styleguide-scope
  .jln-room-calendar__monthly
  tbody
  .calendar-cell.selected:not(.adjacent-month)
  .calendar-stock {
  color: #fff;
}

/**
 * ローディング
 */

.styleguide-scope .jln-room-calendar__loading {
  position: absolute;
  top: 48px;
  right: 1px;
  bottom: 1px;
  left: 1px;
  border-radius: 0 0 4px 4px;
  background: rgba(255, 255, 255, 0.7);
}

/* スピナー */
.styleguide-scope .jln-room-calendar__loading::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  margin-left: -20px;
  background: url(/assets/img/common/icons/icon_loading_gra_no_animation.svg)
    center no-repeat;
  background-size: contain;
  animation: spinner 1s linear infinite;
}

@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}

/**
 * エラー
 */

.styleguide-scope .jln-room-calendar__error {
  display: none;
  position: absolute;
  top: 48px;
  right: 1px;
  bottom: 1px;
  left: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 0 4px 4px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: bold;
}
