/*-----------------------
モーダルウィンドウ
-----------------------*/
#cover {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  opacity: 0.2;
  z-index: 5000;
  display: none;
}

#dialog {
  top: 0;
  left: 0;
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 5001;
  display: none;
}
#dialog > div {
  display: table-cell;
  text-align: center;
  vertical-align: middle;
}
#dialog input[type=text], #dialog select {
  width: auto;
}
#dialog label {
  display: block;
}
#dialog input.w50 {
  width: 50px;
}
#dialog input.w120 {
  width: 120px;
}

.modal {
  box-sizing: border-box;
  max-width: 400px;
  overflow-y: auto;
  border-radius: 10px;
  background-color: white;
  border: 1px solid #dddddd;
  padding: 20px;
  text-align: left;
  display: none;
  max-height: 880px;
}
.modal .modal_ttl {
  padding-bottom: 10px;
  margin-top: -10px;
}
.modal .modal_ttl img {
  width: 28px;
  margin-right: 10px;
}
.modal .modal_ttl span {
  font-size: 18px;
  font-weight: bold;
  line-height: 1.3;
}
.modal .modal_date input, .modal .modal_date select {
  font-size: 16px;
  margin-right: 15px;
}
.modal .modal_date input:last-child, .modal .modal_date select:last-child {
  margin-right: 0;
}
.modal .modal_btn .btn {
  width: 120px;
  display: inline-block;
  margin: auto 5px;
}
.modal .modal_btn .btn input {
  width: 120px;
  border-radius: 6px;
  padding: 0.6em;
}
.modal .btn_area {
  text-align: center;
  margin-top: 20px;
}
.modal .btn_area input.button {
  margin: 5px;
  border-radius: 6px;
  padding: 0.6em;
}
.modal .btn_area input.button.button-orange {
  background-color: #65747c;
  border-bottom: 4px solid #384a53;
}
.modal label:first-child {
  margin-top: 0;
}
.modal .point_info {
  border-top: 1px solid #c1c1c1;
  margin: 0 -20px;
  padding: 15px 20px;
  font-size: 1.4rem;
}
.modal .point_info .title {
  font-size: 16px;
  font-weight: bold;
  display: block;
  margin-bottom: 3px;
}
.modal .point_info .title:before {
  content: "■";
  color: #42a837;
  margin-right: 5px;
}
.modal .point_info:first-child {
  border: none;
  padding-top: 0;
}
.modal .point_info:last-child {
  padding-bottom: 0;
}
.modal .small {
  font-size: 0.8em;
}
.modal #search_result img {
  width: 16px;
  vertical-align: baseline;
}
