/* 前のボタン */
.prev-button {
  width: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 22px;
  padding: 0px 10px 0px 5px;
  gap: 8px;
  border-radius: 5px;
  border: 1px solid #161573;
  background-color: #FFFFFF;
  color: #161573;
  font-family: 'Noto Sans JP';
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 140%;
  cursor: pointer;
  box-shadow: none;
}

.prev-button:hover {
  background-color: #f0f0f0; /* ホバー時の背景色を薄い灰色に */
}

.prev-button:disabled {
  width: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 22px;
  padding: 0px 10px 0px 5px;
  gap: 8px;
  border-radius: 5px;
  border: 1px solid var(--fc-event-bg-color);
  background-color: #FFFFFF;
  color: var(--fc-event-bg-color);
  font-family: 'Noto Sans JP';
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 140%;
  box-shadow: none;
  opacity: 0.7;
}

/* 次のボタン */
.next-button {
  width: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 22px;
  padding: 0px 10px 0px 5px;
  gap: 8px;
  border-radius: 5px;
  background-color: var(--fc-event-bg-color);
  color: #fff;
  font-family: 'Noto Sans JP';
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 140%;
  cursor: pointer;
  box-shadow: none;
}

.next-button:hover {
  opacity: 0.7;
}

.next-button:disabled {
  width: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 22px;
  padding: 0px 10px 0px 5px;
  gap: 8px;
  border-radius: 5px;
  background-color: #161573;
  color: #fff;
  font-family: 'Noto Sans JP';
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 140%;
  box-shadow: none;
  opacity: 0.7;
}

/* タイトル */
#month-title {
  font-feature-settings: 'pwid' on;
  font-family: 'Noto Sans JP';
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 140%;
}

.header-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  margin-bottom: 20px;
}

.fc th {
  background-color: #ebebeb;
  height: 41px;
  padding: 0px;
  flex-shrink: 0;
  border: 1px solid #ccc; /* ボーダーの色を指定 */
}

.day-number {
  font-family: 'Noto Sans JP';
  font-size: 14px; /* 日付は14px */
  font-weight: 700;
  line-height: 140%;
}

.fc-timegrid-slot-label {
  text-align: center;
  font-family: 'Noto Sans JP';
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 140%;
}

/* 曜日のスタイル */
.day-weekday {
  font-family: 'Noto Sans JP';
  font-size: 10px; /* 曜日は10px */
  font-weight: 700;
  line-height: 140%;
}

/* 日曜日のスタイル */
.sunday {
  color: #ff7269; /* 日曜日は赤色 */
}

/* 土曜日のスタイル */
.saturday {
  color: #161573; /* 土曜日は青色 */
}

.fc-timegrid-event-harness-inset .fc-timegrid-event {
  box-shadow: none; /* 影を削除 */
}

.fc-timegrid-event .fc-event-main {
  display: flex;
  justify-content: center;
}

.fc-timegrid-slot {
  height: 41px !important;
}

.base-grid {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-family: 'Noto Sans JP';
  font-size: 20px;
  font-style: normal;
  font-weight: 900;
  line-height: 140%;
  border: none;
}

/* バツの色を変更 */
.cross-event {
  background-color: transparent;
  color: #888;
}

/* まるの色を変更 */
.event-item {
  color: #fff; /* 文字色を白に設定（任意） */
  border-radius: 3px;
  cursor: pointer; /* ポインタを表示 */
  margin: 3px;
}

.fc-event .fc-event-main {
  position: relative;
  z-index: 0;
}

.event-item-clicked {
  background-color: var(--fc-event-clicked-bg-color) !important;
}

.fc-timegrid tbody tr:nth-child(even) {
  background-color: #ebebeb; /* 背景色を設定 */
  z-index: 0; /* 偶数行の背景色を下に配置 */
}

/* 奇数行の背景色 */
.fc-timegrid tbody tr:nth-child(odd) {
  background-color: #fff; /* 赤い背景色を設定 */
  z-index: 0; /* 奇数行の背景色を下に配置 */
}

.fc-timegrid td {
  position: relative; /* z-indexを使用するためにrelativeを追加 */
  background-color: transparent; /* 必要に応じて背景色を設定 */
}

.fc-timegrid td::after {
  content: ''; /* 擬似要素を空に設定 */
  position: absolute; /* 絶対位置を指定 */
  top: 0; /* 上端に配置 */
  right: 0; /* 右端に配置 */
  width: 1px; /* 幅を1pxに設定 */
  height: 100%; /* 高さを100%に設定 */
  background-color: #ccc; /* 線の色を指定 */
  z-index: 1; /* z-indexを設定して優先順位を上げる */
}

.fc-theme-standard td {
  border-bottom: 1px solid #ccc;
  border-top: 1px solid #ccc;
  border-left: 0px;
  border-right: 0px;
}

/* カレンダー下に表示する日時のスタイル */
#selected-time {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--complete-date-bg-color);
  border-radius: 8px;
  height: 30px;
  padding: 16px;
  gap: 10px;
  flex-shrink: 0;
  display: none;
  width: 80%;
  margin: 32px auto 0 auto;
}

#selected-time-text {
  color: #000;
  font-family: 'Noto Sans JP';
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 140%; /* 22.4px */
  letter-spacing: 0.8px;
}

.fc-day-today {
  background-color: transparent !important;
}

.fc-event {
  display: flex;
}

#calendar {
  height: 494.5px;
}

#default-calendar-text {
  display: flex;
  justify-content: center;
  color: #e7643d;
  font-feature-settings: 'pwid' on;
  font-family: 'Noto Sans JP';
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 140%;
  margin-top: 25px;
}

.calendar-icon {
  background-image: var(--complete-calender-icon-image);
  width: 30px;
  height: 30px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

#error_message_available_time {
  display: none !important;
}

.calendar-error-box {
  margin-top: 10px;
}

/* .form-calendar-margin-bottom {
  margin-bottom: 32px;
} */

.form-calendar-margin-top {
  margin-top: 24px;
}

@keyframes rotation {
  0% {
    transform: rotate(0);
  }

  100% {
    transform: rotate(360deg);
  }
}

form .form .mc-loading {
  position: relative;
}

form .form #reservation.over_lay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #405771;
  opacity: 0.7;
  z-index: 10;
}

form .form .mc-loading::before {
  content: url('../img/form/loading.svg');
  position: absolute;
  top: calc(50% - 59px);
  left: calc(50% - (59px / 2));
  width: 59px;
  height: 59px;
  z-index: 20;

  animation: 3s linear infinite rotation;
}

form .form .mc-loading::after {
  content: '空き時間を探しています...';
  position: absolute;
  top: 59%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  z-index: 20;
  color: #ffffff;
  font-family: Noto Sans JP;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0.05em;
  text-align: center;
  white-space: nowrap;
}

.mc_form_container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  /* justify-content: space-between; */
}

.mc-button {
  background-color: initial;
  padding: 0 0px;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.intention-button {
  background-color: initial;
  padding: 0 0px;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.mc-icon-box {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.intention-icon-box {
  width: 24px;
  height: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mc-icon {
  width: 8px;
  height: 8px;
  border-top: 3px solid #FFFFFF;
  border-right: 3px solid #FFFFFF;
  transform: rotate(135deg);
}

.intention-icon {
  width: 8px;
  height: 8px;
  border-top: 3px solid #FFFFFF;
  border-right: 3px solid #FFFFFF;
  transform: rotate(135deg);
}

form .intention_submit:disabled .intention-icon {
  width: 8px;
  height: 8px;
  border-top: 3px solid #A9A9A9;
  border-right: 3px solid #A9A9A9;
  transform: rotate(45deg);
}

.mc-right_arrow {
  transform: translateX(-25%) rotate(45deg);
}

/* 無効状態のアイコン */
.mc-button .submit:disabled .mc-right_arrow {
  border-top: 3px solid #cccccc;
  border-right: 3px solid #cccccc;
}

/* 空き時間検索ボタン */
#mc_search_address {
  width: 145px;
  height: 54px;
  padding: 5px;
  align-items: center;
  flex-shrink: 0;
  border-radius: 8px;
  /* background: #ffbd12; */
  color: #FFFFFF;
  text-align: center;
  box-shadow: none;
  /* m_b */
  font-family: 'Noto Sans JP';
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 140%; /* 19.6px */
  letter-spacing: 0.7px;
}

#mc_search_address:disabled {
  width: 145px;
  height: 54px;
  padding: 5px;
  align-items: center;
  flex-shrink: 0;
  border-radius: 8px;
  color: var(--90, #333);
  text-align: center;
  box-shadow: none;
  /* m_b */
  font-family: 'Noto Sans JP';
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 140%; /* 19.6px */
  letter-spacing: 0.7px;
}

/* チェックボックス */
.form fieldset label.mc_check_label:has(input)::before {
  content: '';
  background: url('../img/form/small_nonChecked.svg') no-repeat;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.form fieldset label.mc_check_label:has(input:checked)::before {
  background: url('../img/form/small_checked.svg') no-repeat;
}

.form fieldset label.mc_check_label {
  background: #fff;
  flex-direction: row;
  align-items: center;
  user-select: none;
}

.form fieldset label.mc_check_label {
  align-items: center;
  user-select: none;
}

@media screen and (max-width: 600px) {
  /* 前のボタン */
  .prev-button {
    width: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 22px;
    padding: 0px 10px 0px 5px;
    gap: 8px;
    border-radius: 5px;
    border: 1px solid #007FDD;
    background-color: #fff;
    color: #007FDD;
    font-family: 'Noto Sans JP';
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 140%;
    cursor: pointer;
    box-shadow: none;
  }

  .prev-button:hover {
    background-color: #f0f0f0; /* ホバー時の背景色を薄い灰色に */
  }

  .prev-button:disabled {
    width: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 22px;
    padding: 0px 10px 0px 5px;
    gap: 8px;
    border-radius: 5px;
    border: 1px solid #007FDD;
    background-color: #f0f0f0;
    color: #007FDD;
    font-family: 'Noto Sans JP';
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 140%;
    box-shadow: none;
    opacity: 0.7;
  }

  /* 次のボタン */
  .next-button {
    width: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 22px;
    padding: 0px 10px 0px 5px;
    gap: 8px;
    border-radius: 5px;
    background-color: #007FDD;
    color: #fff;
    font-family: 'Noto Sans JP';
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 140%;
    cursor: pointer;
    box-shadow: none;
  }

  .next-button:hover {
    opacity: 0.7;
  }

  .next-button:disabled {
    width: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 22px;
    padding: 0px 10px 0px 5px;
    gap: 8px;
    border-radius: 5px;
    background-color: #007FDD;
    color: #fff;
    font-family: 'Noto Sans JP';
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 140%;
    box-shadow: none;
    opacity: 0.7;
  }

  /* タイトル */
  #month-title {
    font-feature-settings: 'pwid' on;
    font-family: 'Noto Sans JP';
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 140%;
  }

  .mc-icon-box {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    height: 24px;
    width: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

@media screen and (max-width: 430px) {
  .intention-button {
    background-color: initial;
    padding: 0 15px;
    display: flex;
    flex-direction: row;
    justify-content: center;
  }
}