/* -----------------------------------------------------------
	.reservebox 空室検索
----------------------------------------------------------- */
/* Reset
--------------------- */
button,
input,
select {
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}

.btn,
button,
input[type=button],
input[type=date],
input[type=password],
input[type=search],
input[type=submit],
input[type=text],
select {
  border-radius: 0;
  border: 1px solid #bbb;
}

.reservebox input[type=date],
.reservebox input[type=password],
.reservebox input[type=search],
.reservebox input[type=text] {
  margin: 0;
  padding: 8px;
  font-size: clamp(1rem, calc(14 / 1800 * 100vw), 1.4rem);
  line-height: 24px;
  height: 42px;
}

select {
  line-height: 40px;
  height: 42px;
  padding-left: 10px;
  background-color: #fff;
  border-radius: 0;
}

input[type=date]:hover,
input[type=password]:hover,
input[type=search]:hover,
input[type=text]:hover,
select:hover {
  border-color: #4d6396;
}

.btn,
button,
input[type=button],
input[type=submit] {
  line-height: 40px;
}

/* iOSでのデフォルトスタイルをリセット */
input[type="submit"],
input[type="button"] {
  border-radius: 0;
  -webkit-box-sizing: content-box;
  -webkit-appearance: button;
  appearance: button;
  border: none;
  box-sizing: border-box;
  cursor: pointer;
}

input[type="submit"]::-webkit-search-decoration,
input[type="button"]::-webkit-search-decoration {
  display: none;
}

input[type="submit"]::focus,
input[type="button"]::focus {
  outline-offset: -2px;
}

/* Construction
--------------------- */
.section.section-reservebox {
  display: grid;
  align-items: center;
  height: 100%;
  margin-top: 1em;
  background: none;
}

.section>.inner {
  position: relative;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.section.section-reservebox>.inner {
  display: grid;
  place-items: center;
  max-width: none;
  height: fit-content;
  padding-bottom: 1rem;
}

.reservebox {
  position: relative;
}

.reservebox form {
  padding-bottom: 0;
}

.reservebox.in {
  display: grid;
  grid-template-columns:max-content 1fr max-content;
  align-items: center;
  justify-content: space-between;
  column-gap: 15px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
}

.reservebox.in form {
  display: flex;
  align-items: flex-end;
  column-gap: 1em;
  transition: .5s;
}

.reservebox.in form.tourlist-form {
  display: block;
}


@media(max-width:800px) {
  .section.section-reservebox {
    grid-template-columns: 100%;
    margin: 0;
  }

  .section.section-reservebox>.inner {
    clear: both;
    width: 100%;
    padding-top: 2.5em;
    padding-bottom: 1em;
  }

  .reservebox.in {
    padding-bottom: 0;
  }

  .reservebox.in form {
    flex-wrap: wrap;
    padding-top: 0;
  }
}

.ui-datepicker {
  font-size: 16px;
}

#ui-datepicker-div {
  top: auto !important;
  bottom: 30px !important;
  z-index: 10000 !important;
}

/* Selecter
--------------------- */
.form_selecter {
  display: block;
  padding: 0;
  width: fit-content;
  height: fit-content;
  color: #fff;
  margin-bottom: 0;
}

.form_selecter>li {
  color: #FFF;
  display: inline-block;
  text-align: center;
  padding: 0;
  margin: 0;
  cursor: pointer;
  width: -webkit-calc(50% - 1px);
  width: calc(50% - 1px);
  font-size: 14px;
  line-height: 36px;
  height: 36px;
  position: relative;
  vertical-align: top;
  border-radius: 2px 2px 0 0;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.form_selecter>li:first-child {
  margin-right: inherit;
}

.form_selecter>li:last-child {
  margin-left: inherit;
}

.form_selecter>li:last-child:before {
  content: inherit;
}

.form_selecter>li[data-selected='1'] {
  background-color: #00275e;
}

.form_selecter>li[data-selected='0'] {
  height: 34px;
  background-color: #8390a3;
  color: #f1efee;
}

@media(min-width:800px) {
  .form_selecter {}

  .form_selecter li {
    font-size: 14px;
    width: auto;
    padding: 0 10px 0 22px;
    height: auto;
    line-height: normal;
    color: inherit;
    text-shadow: 0 0 1px #fff;
  }

  .form_selecter li:before {
    display: block;
    line-height: 22px;
    text-align: center;
    font-size: 32px;
    margin: 10px 0 6px;
  }

  .form_selecter>li:first-child {
    margin-right: 1px;
  }

  .form_selecter>li:first-child:before {
    content: url(../images/ic_hotel.png);
  }

  .form_selecter>li:last-child {
    margin-left: 1px;
  }

  .form_selecter>li:last-child:before {
    content: url(../images/ic_flight_hotel.png);
  }

  .form_selecter li:last-child {
    padding: 0 15px;
  }

  .form_selecter li[data-selected='0'],
  .form_selecter li[data-selected='1'] {
    height: fit-content;
    margin: 0;
    background-color: transparent;
  }

  .form_selecter li[data-selected='0'] {
    color: #FFF;
  }

  .form_selecter li[data-selected='1'] {
    color: #FFF;
  }

  .form_selecter li:after,
  .form_selecter li[data-selected='1']:after {
    content: "";
    position: absolute;
    left: 0;
    top: 20px;
    display: inline-block;
    border: 1px solid #fff;
    background-color: #fff;
    width: 14px;
    height: 14px;
    margin: 0;
    border-radius: 7px;
    -ms-box-shadow: inset 0 1px 3px #bbb;
    -webkit-box-shadow: inset 0 1px 3px #bbb;
    box-shadow: inset 0 1px 3px #bbb;
  }

  .form_selecter li[data-selected='1']:after {
    background-color: #ef853f;
    border: 1px solid #ef853f;
    -ms-box-shadow: inset 0 0 0 1px #fff;
    -webkit-box-shadow: inset 0 0 0 1px #fff;
    box-shadow: inset 0 0 0 1px #fff;
  }
}

@media(max-width:800px) {
  .form_selecter {
    display: flex;
    width: 100%;
    margin-bottom: 2em;
  }
}


/* Link box
--------------------- */
.reservebox .links {
  font-size: 11px;
  position: relative;
  top: 0;
  right: 0;
  width: 120px;
  text-align: center;
  margin-top: 0;
  padding: 0 0 0 15px;
  border-left: 2px dotted #cec6c0;
}

.reservebox.in .links {
  top: 0;
}

.reservebox .to_airplan,
.reservebox .to_list {
  display: inline-block;
  padding-left: 0;
  padding-right: 0;
  margin: 0;
  min-width: inherit;
}

.reservebox.in .to_airplan,
.reservebox.in .to_list {
  display: block;
  width: auto;
  margin-left: 0;
}

.reservebox.in .to_list {
  margin-bottom: 10px;
}

.linkbox {
  direction: ltr;
  display: block;
  line-height: 38px;
  padding-left: 1em;
  padding-right: 1em;
  text-align: center;
  margin-bottom: 0.5em;
  border-radius: 2px;
  color: #707070;
  border: 1px solid #bebebe;
  background-color: #fff;
  line-height: 1.4;
  padding-top: 9px;
  padding-bottom: 9px;
}

.linkbox:hover {
  border-color: #888;
}

@media(min-width:800px) {
  .linkbox {
    display: inline-block;
    min-width: 220px;
  }
}


/* Confirm & Cancel
--------------------- */
.reservebox .to_check {
  display: block;
  text-align: center;
  margin: 8px auto 0;
  border: 1px solid transparent;
  background-color: transparent;
  margin-bottom: 0;
  width: 99%;
  font-size: 12px;
}

.reservebox.in .to_check {
  position: absolute;
  right: 0;
  bottom: 0;
  margin-bottom: -3em;
  line-height: 1;
  white-space: nowrap;
  padding: 0;
  width: auto;
  min-width: 0;
  border: 0;
  font-size: 11px;
  color: #FFF;
}

.reservebox.in .to_check::before {
  content: url(../images/ic_arrow.png);
  margin-right: 7px;
}

.reservebox.in .to_check:hover {
  background-color: transparent;
  -webkit-box-shadow: none;
  box-shadow: none;
  color: #96784d;
}


/* Airpack (iframe)
--------------------- */
.airpackform {
  justify-self: flex-start;
  position: absolute;
  top: auto;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 2;
  background-color: rgb(109, 174, 179);
  display: none;
}

@media(max-width:800px) {
  .airpackform {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
  }

  .reservebox.in {
    display: block;
    position: relative;
    min-width: inherit;
    height: fit-content;
  }
}

/* 項目文字
--------------------- */
.reservebox>* em {
  display: block;
  font-size: 13px;
  color: #FFF;
  margin-bottom: 5px;
}

.reservebox>*>span {
  color: #333;
  margin-left: 5px;
  font-size: 100%;
}

@media(max-width:800px) {
  .reservebox>* em {
    font-size: 12px;
    line-height: 1;
    padding-bottom: 5px;
    margin-bottom: 0;
  }
}

/* 年月日
--------------------- */
.reservebox form input[type="text"],
.reservebox form select {
  height: 40px;
  line-height: 40px;
  padding: 0 10px;
}

.reservebox .box_day {
  overflow: hidden;
  float: left;
}

.reservebox .box_day label {
  display: flex;
  align-items: center;
  float: left;
}

.reservebox .box_day span {
  font-size: 13px;
  margin: 0 7px;
}

.reservebox .box_day input {
  width: 7rem;
}

.reservebox .box_day input#year {
  width: 10rem;
}

@media(max-width:800px) {

  .reservebox form input[type="text"],
  .reservebox form select {
    height: 30px;
    line-height: 30px;
  }
}

/* datepickerの位置 */
.ui-datepicker-trigger {
  margin: 7px 0 0 4px;
  cursor: pointer;
}

@media(max-width:800px) {
  .ui-datepicker-trigger {
    margin: 0 0 0 auto;
  }
}

/* 泊数、大人数、室数
--------------------- */
.reservebox .box_sta,
.reservebox .box_adu,
.reservebox .box_roo {
  display: flex;
  align-items: center;
}

.reservebox .box_sta em,
.reservebox .box_adu em,
.reservebox .box_roo em {
  font-size: 13px;
  margin: 0 7px;
}

.reservebox .box_sta span,
.reservebox .box_adu span,
.reservebox .box_roo span {
  font-size: 13px;
  margin: 0 7px;
}

.reservebox .box_sta select,
.reservebox .box_adu select,
.reservebox .box_roo select {
  width: 7rem;
  font-size: clamp(1rem, calc(14 / 1800 * 100vw), 1.4rem);
}

@media(max-width:800px) {

  .reservebox .box_sta,
  .reservebox .box_adu,
  .reservebox .box_roo {
    display: grid;
    grid-template-columns: 100px 1fr;
    margin: 0;
    width: 125px;
  }

  .reservebox .box_sta em,
  .reservebox .box_adu em,
  .reservebox .box_roo em {
    grid-column: 1/3;
    font-size: 12px;
    margin: 0;
  }

  .reservebox .box_sta select,
  .reservebox .box_adu select,
  .reservebox .box_roo select {
    width: 100%;
    font-size: 12px;
  }

  .reservebox .box_sta span,
  .reservebox .box_adu span,
  .reservebox .box_roo span {
    font-size: 12px;
    margin: 0 0 0 7px;
  }
}

/* 子供数
--------------------- */
.reservebox .box_chi {
  width: fit-content;
  margin: 0 0 1em;
  font-size: 14px;
}

.reservebox .box_chi a {
  text-decoration: underline;
  color: #FFF;
  cursor: pointer;
}

.reservebox .box_chi strong {
  margin: 0 3px;
  font-weight: normal;
}

/* ボタン
--------------------- */
.reservebox .btn_submit {
  display: grid;
  justify-items: flex-start;
  position: relative;
  width: max-content;
  margin-left: 1em;
  overflow: visible;
}

.reservebox form .btn_submit input {
  width: fit-content;
  color: #fff;
  background: #f60;
  border: none;
  font-size: 16px;
  text-align: center;
  margin: 23px 0 0;
  cursor: pointer;
  padding: 0 1em;
  box-sizing: border-box;
}

.reservebox .cancel {
  clear: both;
  padding: 5px 0 0;
  text-align: right;
  font-size: 11px;
}

@media(max-width:800px) {
  .reservebox .box_day {
    float: inherit;
    width: 100%;
    margin-right: 0;
    margin-bottom: 0;
    order: -1;
  }

  .reservebox .box_day label {
    width: 30%;
  }

  .reservebox .box_day input {
    width: 100%;
  }

  .reservebox .box_day input#year {
    width: 100%;
  }

  .reservebox .box_sta {
    flex-wrap: wrap;
    margin: 0;
  }

  .reservebox .box_chi {
    width: fit-content;
    font-size: 12px;
    margin: 0 0 9px 1em;
  }

  .reservebox .box_roo {
    order: -1;
  }

  .reservebox form .btn_submit input {
    margin: 1em 0;
    width: 100%;
    float: inherit;
  }

  .reservebox .to_list {
    width: 45%;
  }

  .reservebox .to_airplan {
    width: 50%;
    margin-left: 2.5%;
  }

  .reservebox .to_check {
    width: inherit;
  }

  .reservebox.in .to_check::before {
    content: url(../images/ic_arrow.png);
    margin-right: 7px;
  }

  .reservebox .btn_submit {
    width: 100%;
    margin-left: 0;
  }

}



/* Child Panel
--------------------- */
#layer {
  display: none;
  /* 初期表示は非表示 */
  position: absolute;
  left: 0px;
  top: 0px;
  width: 100%;
  height: 100%;
}

#popup {
  display: none;
  /* 初期表示は非表示 */
  position: absolute;
  padding: 1em 2em;
  left: 20%;
  top: 58%;
  /*width: 600px;*/
  width: fit-content;
  height: fit-content;
  background-color: #fff;
  opacity: 0.9;
  border-radius: 5px;
  text-align: center;
  z-index: 100;
}

#popup .box_pan {
  /*width: 120p*/
  width: fit-content;
  margin: 0 1em 0 0;
  padding: 0;
  text-align: center;
  font-size: 14px;
  float: left;
}

#popup input#close {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  border: 0px;
  width: 20px;
  height: 20px;
  background: url(../images/ico_close.png) left top no-repeat;
  background-size: 20px 20px;
}

#popup em,
#popup span {
  color: #333;
}

#popup select {
  width: 110px;
}

@media(max-width:800px) {
  #popup {
    top: auto;
    bottom: 50px;
    left: 0;
    width: 100%;
    height: fit-content;
    padding: 2em 1em 0;
  }

  #popup .box_pan {
    width: 50%;
    text-align: left;
    margin: 0 0 2em;
  }

  #popup em,
  #popup span {
    font-size: 11px;
  }

  .reservebox.in form {
    row-gap: 1em;
    column-gap: 0;
    margin-left: inherit;
    margin-right: inherit;
  }

  .reservebox.in .links {
    position: inherit;
    top: inherit;
    right: inherit;
    width: inherit;
    padding: inherit;
    border-left: inherit;
  }

  .reservebox.in .to_airplan,
  .reservebox.in .to_list {
    display: block;
    margin-left: 0;
    text-align: center;
  }

  .reservebox.in .to_list {
    margin-bottom: 10px;
  }

  .reservebox.in .to_check {
    position: inherit;
    right: inherit;
    top: inherit;
    display: inherit;
  }
}