#rental-booking-form table.material_contact_form {
  margin-top: 0;
  margin-bottom: 3rem;
}
#rental-booking-form .form-box-wrapper h3 {
    font-size: 1.3rem;
    color: #162a88;
    font-weight: bold;
    vertical-align: bottom;
    text-decoration: underline;
    margin: 2rem 0 1rem;
}
#rental-booking-form .material_contact_form input#姓,#rental-booking-form .material_contact_form input#名,
#rental-booking-form .material_contact_form input#セイ,#rental-booking-form .material_contact_form input#メイ
{
  width: 30%;
  min-width: 300px;
}

#rental-booking-form .rental-period-wrapper .return-date {
  display: flex;
  align-items: center;
}
#rental-booking-form .rental-period-wrapper .return-date p {
  margin: 0;
}
#rental-booking-form input.is-readonly {
  background: #d3d3d3;
}
#rental-booking-form input.date-input {
  width: 200px;
}
#rental-booking-form input.number-input {
  width: 100px;
  outline: none;
  border: 0;
  padding: 10px 10px;
  font-size: 1rem;
  color: #000000;
  border: solid 1px #ccc;
  margin: 0 0 5px;
}
#rental-booking-form .hide {
  display: none!important;
}
/* 確認画面では表示する */
.mw_wp_form.mw_wp_form_confirm #rental-booking-form .hide {
  display: block!important;
}


/* メッセージコンテナのスタイル */
#check_reservation_available {
    margin: 15px 0;
    min-height: 20px;
}

#check_reservation_available p {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    margin: 0;
    display: flex;
    align-items: center;
}

/* 在庫あり（緑） */
.msg-success {
    background-color: #e6f7ed;
    color: #1e7e34;
    border: 1px solid #b7e4c7;
}
.msg-success::before {
    content: '●'; /* もしくはチェックアイコン */
    margin-right: 8px;
}

/* 在庫なし（赤） */
.msg-error {
    background-color: #fff5f5;
    color: #c53030;
    border: 1px solid #feb2b2;
}
.msg-error::before {
    content: '！'; 
    margin-right: 8px;
}

/* 確認中（グレー） */
.msg-checking {
    background-color: #f7fafc;
    color: #4a5568;
    border: 1px solid #e2e8f0;
}

/* ボタンの非活性スタイル */
.send_btn input[type="submit"].disabled,
.send_btn input[type="submit"]:disabled {
    background-color: #a0aec0 !important; /* グレー */
    border-color: #a0aec0 !important;
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
}

@media screen and (max-width: 768px) {
    input[type="email"] {
      width: 100%;
    }
}



/* 期間表示 */
.reservation-period {
  display: flex;
  align-items: center;
  justify-content: center;
}
.reservation-period .show-date {
  position: relative;
  width: 33%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ccc;
  padding: 1rem;
}
.reservation-period .show-date .title {
  margin: 0;
  margin-right: 1rem;
  background: red;
  border-radius: 44px;
  color: white;
  font-size: 10px;
  font-weight: bold;
  padding: 6px 6px 6px 12px;
  text-align: center;
}
.reservation-period .show-date .date {
  width: 8rem;
  padding: unset;
  border: 0;
  margin: 0;
  font-weight: bold;
  font-size: 1.1rem;
}
.reservation-period .show-date .triangle {
  content: '';
  position: absolute;
  border: 31px solid transparent;
  border-left: 15px solid #ccc;
}
.reservation-period .show-date .triangle::after {
  content: '';
  position: absolute;
  border: 31px solid transparent;
  border-left: 15px solid #ffffff;
  top: -31px;
  left: -16px;
}
.reservation-period .show-date .triangle.triangle-left {
  top: -1px;
  left: -1px; 
}
.reservation-period .show-date .triangle.triangle-right {
  top: -1px;
  right: -47px;
}

.reservation-period .show-date.arrive-date {
  z-index: 2;
}
.reservation-period .show-date.start-date {
  margin: 0 0.5rem;
  z-index: 1;
  border: 1px solid #42b3e1;
}
.reservation-period .show-date.start-date .title {
  background: #42b3e1;
}
.reservation-period .show-date.start-date .triangle {
  border-left: 15px solid #42b3e1;
}
.reservation-period .show-date.end-date .title {
  background: #a1a1a2;
  padding: 6px 10px;
}


@media screen and (max-width: 768px) {
  #rental-booking-form .rental-period-wrapper div.return-date {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 2rem;
  }
  /* 期間表示 */
  .reservation-period {
    flex-direction: column;
  }
  .reservation-period .show-date {
    width: 100%;
    margin: 1rem auto;
  }
  .reservation-period .show-date .triangle {
    display: none;
  }
}