/* 检索框 */

.top-searcher {
  position: relative;
  ;
}

.top-searcher-bg {
  width: 100%;
  height: 280px;
  background-image: url(../img/top/bg02.jpg);
  background-position: center;
  /* 背景图水平垂直居中 */
  background-repeat: no-repeat;
  /* 防止图片重复 */
  background-size: cover;
  /* 图片铺满容器，同时保持比例 */
  position: absolute;
  z-index: -1;
}

.top-searcher-box {
  width: 100%;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.top-searcher-box-title {
  padding-top: 32px;
  color: #fff;
  font-size: 32px;
}

.top-searcher-box-form {
  width: 100%;
  background-color: #fff;
  -webkit-box-shadow: 0 4px 4px 0 rgba(0, 0, 0, .25);
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, .25);
  border-radius: 5px;
  margin: 32px 0;
  padding: 20px 20px 20px;
}

.top-searcher-box-form-tab {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.custom-radio {
  display: flex;
  align-items: center;
  cursor: pointer;
  margin-bottom: 8px;
  -webkit-user-select: none; /* Safari */
  user-select: none;
  position: relative;
  margin-right: 30px;
}

.custom-radio input {
  display: none;
  /* 隐藏原生 radio */
}

.radio-mark {
  width: 14px;
  height: 14px;
  border: 2px solid #ccc;
  border-radius: 50%;
  margin-right: 8px;
  position: relative;
  transition: border-color 0.2s, background-color 0.2s;
}

.radio-label {
  font-size: 16px;
}

/* 选中状态 */
.custom-radio input:checked+.radio-mark {
  border-color: #0086f6;
  background-color: #0086f6;
}

/* 选中时文字加粗 */
.custom-radio input:checked+.radio-mark+.radio-label {
  font-weight: bold;
}

.custom-radio input:checked {
  font-weight: bold;
}

.radio-mark::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.2s;
}

/* 选中时显示内部小圆点 */
.custom-radio input:checked+.radio-mark::after {
  transform: translate(-50%, -50%) scale(1);
}

.top-searcher-box-form-condition{
  padding: 0;
  margin-top: 12px;
  display: flex;
}

.top-searcher-box-form-condition-add{
  position: relative;
}

.top-searcher-box-form-condition-add-title{
  position: absolute;
  top: 10px;
  left: 40px;
  color: #a6a6a6;
  font-size: 14px;
  -webkit-user-select: none; /* Safari */
  user-select: none;
  pointer-events: none;
}

.top-searcher-box-form-condition-add-input{
  width: 220px;
  min-height: 60px;
  padding: 22px 20px 0 40px;
  border: 1px solid #d1d1d1;
  font-size: 16px;
}

.top-searcher-box-form-condition-add-input:focus{
  min-height: 60px;
  padding: 0 20px 0 40px;
  border: 1px solid #d1d1d1;
}

.top-searcher-box-form-condition-add-input:focus + .top-searcher-box-form-condition-add-title{
  display: none;
}

.top-searcher-box-form-condition-add-icon{
  width: 20px;
  position: absolute;
  z-index: 100;
  left: 12px;
  top: 20px
}

/* 下拉菜单-机场 */
.top-searcher-box-form-condition-add-dropdown{
  position: absolute;
  top: 60px;
  left: 0;
  z-index: 200;
  overflow: auto;
  width: 500px;
  height: 392px;
  background-color: white;
  -webkit-box-shadow: 0 2px 10px 0 rgba(34, 34, 34, .15);
  box-shadow: 0 2px 10px 0 rgba(34, 34, 34, .15);
  border-radius: 8px;
  display: none;
}

.top-searcher-box-form-condition-add-dropdown-area{
  width: 100%;
}

.top-searcher-box-form-condition-add-dropdown-area-title{
  padding: 8px 16px;
  background-color: #f4f4f4;
  width: 100%;
}

.top-searcher-box-form-condition-add-dropdown-area-lists{
  display: grid;
  -webkit-column-gap: 8px;
  -moz-column-gap: 8px;
  column-gap: 8px;
  row-gap: 4px;
  grid-template-columns: 1fr 1fr;
  margin-top: 8px;
  margin-bottom: 8px;
  grid-template-columns: 1fr 1fr 1fr;
  font-size: 14px;
}

.top-searcher-box-form-condition-add-dropdown-area-list{
  line-height: 28px;
  cursor: pointer;
  min-height: 28px;
  overflow: hidden;
  white-space: nowrap;
  padding: 4px 12px;
}

.top-searcher-box-form-condition-add-dropdown-area-list:hover{
  background-color: #1ba1ff;
  color: white;
}

.top-searcher-box-form-condition-add-dropdown-area-title-flag{
  background-repeat: no-repeat;
  display: inline-block;
  width: 20px;
  margin-right: 10px;
  height: 15px;
  background-image: url(../img/top/flag.png);
  background-position: -40px -135px;
}

.top-searcher-box-form-condition-add-dropdown-keyword-list{
  padding: 8px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.top-searcher-box-form-condition-add-dropdown-keyword-list-left{
  width: 18px;
  height: 18px;
}

.top-searcher-box-form-condition-add-dropdown-keyword-list-right{
  margin-left: 12px;
}

.top-searcher-box-form-condition-add-dropdown-keyword-list-right-title{
  font-size: 14px;
}

.top-searcher-box-form-condition-add-dropdown-keyword-list-right-sub{
  font-size: 12px;
  color: #A6A6A6;
}

.top-searcher-box-form-condition-add-dropdown-keyword-list:hover{
  background-color: #1891e6;
  color: white;
}

.top-searcher-box-form-condition-add-dropdown-keyword-list:hover .top-searcher-box-form-condition-add-dropdown-keyword-list-right-sub{
  color: white;
}


.top-searcher-box-form-condition-exchange{
  width: 32px;
  height: 32px;
  border-radius: 90%;
  border: 1px solid #d1d1d1;
  background-color: white;
  position: absolute;
  top:50%;
  right: 0;
  transform: translate(50%,-50%);
  z-index: 100;
  cursor: pointer;
  -webkit-user-select: none; /* Safari */
  user-select: none;
}

.top-searcher-box-form-condition-exchange:hover{
  border: 1px solid #1891e6;
}

.top-searcher-box-form-condition-exchange-img{
  width: 60%;
  margin: 20%;
}

.top-searcher-box-form-condition-exchange-img {
  transition: transform 0.3s ease; /* 动画过渡 */
}

.top-searcher-box-form-condition-exchange-img.rotate {
  transform: rotate(180deg);
}


#flag1{
  background-position: -40px -135px;
}

#flag2{
  background-position: -200px -135px
}

#flag3{
  background-position: -240px -255p
}

#flag4{
  background-position: -40px -255px
}

.top-searcher-box-form-btn {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 20px;
}

#direct_flights_only {
  opacity: 0;
  position: absolute;
  z-index: 12;
  width: 16px;
  height: 16px;
}

.direct_flights_only_checkbox_label::before{
  cursor: pointer;
}

.direct_flights_only_checkbox_label{
    cursor: pointer;
}

.direct_flights_only_checkbox input[type=checkbox]:checked+.direct_flights_only_checkbox_label::before {
  display: inline-block;
  content: "✔";
  background-color: #1ba1ff;
  border-color: #1ba1ff;
  color: white;
}

.direct_flights_only_checkbox input[type=checkbox]+.direct_flights_only_checkbox_label::before {
  font-weight: 400;
  font-size: 14px;
  content: " ";
  border: 2px solid #4d4d4d;
  border-radius: 3px;
  display: inline-block;
  text-align: center;
  vertical-align: middle;
  height: 14px;
  line-height: 14px;
  width: 14px;
  margin-top: -4px;
  margin-right: 8px;
}

.top-searcher-box-form-btn-search {
  height: 44px;
  padding: 0 16px;
  border: none;
  border-radius: 3px;
  background: #ffc11c;
  font-size: 16px;
  font-weight: 600;
  line-height: 140%;
  color: #222;
  cursor: pointer;
  white-space: nowrap;
  line-height: 44px;
  width: 250px;
  text-align: center;
  margin-left: 20px;
  transition: all 0.1s;
}

.top-searcher-box-form-btn-search:hover{
  background: #d6a10f;
}

/* 下拉菜单直行便 */
.top-searcher-box-form-condition-cabinclass-dropdown{
  position: absolute;
  top: 60px;
  right: 0;
  z-index: 2;
  overflow: auto;
  width: 360px;
  height: 392px;
  background-color: white;
  -webkit-box-shadow: 0 2px 10px 0 rgba(34, 34, 34, .15);
  box-shadow: 0 2px 10px 0 rgba(34, 34, 34, .15);
  border-radius: 8px;
  display: none;
  padding: 16px;
}

.top-searcher-box-form-condition-cabinclass-dropdown-title{
  font-size: 14px;
  font-weight: bold;
}

.top-searcher-box-form-condition-cabinclass-dropdown-title-sub{
  font-size: 10px;
  font-weight: normal;
  color: #A6A6A6;
  margin-top: 5px;
}

.top-searcher-box-form-condition-cabinclass-dropdown-lists{
  width: 100%;
  margin-bottom: 20px;
}

.top-searcher-box-form-condition-cabinclass-dropdown-list{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.top-searcher-box-form-condition-cabinclass-dropdown-list-title{
  width: 100%;
}

.top-searcher-box-form-condition-cabinclass-dropdown-list-title-word{
  font-size: 16px;
}

.top-searcher-box-form-condition-cabinclass-dropdown-list-title-sub{
  font-size: 10px;
  color: #A6A6A6;
}

.top-searcher-box-form-condition-cabinclass-dropdown-list-counter{
  width: 60%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-searcher-box-form-condition-cabinclass-dropdown-list-counter-btn{
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #d1d1d1;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  cursor: pointer;
  color: #717171;
  font-weight: 700;
  font-size: 20px;
  -webkit-user-select: none; /* Safari */
  user-select: none;
}

.top-searcher-box-form-condition-cabinclass-dropdown-list-counter-btn:hover{
    border: 1px solid #1891e6;
}

.top-searcher-box-form-condition-cabinclass-dropdown-list-counter-num{

}

.top-searcher-box-form-condition-cabinclass-dropdown-list-counter-btn-img{
  width: 20px;
}

.top-searcher-box-form-condition-cabinclass-dropdown-select{
  width: 100%;
  height: 44px;
  font-size: 16px;
  border-radius: 3px;
  border: 1px solid #a6a6a6;
  background: #fff;
  padding: 0 10px;
  margin: 16px 0;
  color: #444;
}

.top-searcher-box-form-condition-cabinclass-dropdown-excute{
  border: none;
  background: #1891e6;
  border-radius: 3px;
  color: #fff;
  padding: 0 16px;
  height: 44px;
  font-size: 16px;
  font-weight: 600;
  line-height: 140%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  cursor: pointer;
}

/* お知らせ */
.top-notice {
  width: 100%;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.top-notice-title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-right: 1px dashed #aaa;
  padding-right: 15px;
}

.top-notice-title-mark {
  background-color: #fb0;
  color: white;
  font-size: 14px;
  width: 18px;
  height: 18px;
  text-align: center;
  line-height: 18px;
  border-radius: 90%;
}

.top-notice-title-word {
  margin-left: 10px;
}

.top-notice-list {
  color: #1ba1ff;
  -webkit-user-select: none;
  /* Safari */
  user-select: none;
  cursor: pointer;
}


/* banner */

.top-banner {
  width: 100%;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 30px;
}

.top-banner-img {
  width: 100%;
  cursor: pointer;
  transition: all 0.1s;
}

.top-banner-img2{
  display: none;
}

.top-banner-img:hover {
  opacity: 0.8;
}

/* 特集 */

.top-special {
  width: 100%;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.top-special-title {
  padding: 20px 0 16px;
  font-size: 24px;
  font-weight: bold;
}

.top-special-lists {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-special-list {
  width: 32%;
  cursor: pointer;
}

.top-special-list-img{
  width: 100%;
  transition: all 0.1s;
}

.top-special-list-img:hover {
  opacity: 0.8;
}

/* 人気フライト */

.top-hot {
  width: 100%;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 30px;
}

.top-hot-title {
  padding: 20px 0 16px;
  font-size: 24px;
  font-weight: bold;
}

.top-hot-lists {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-hot-list {
  width: 238px;
  height: 162px;
  position: relative;
}

.top-hot-list-title{
  position: absolute;
  z-index: 100;
  font-size: 24px;
  color: white;
  font-weight: bold;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
}

#top-hot-list-img1::before{
  background-image: url(../img/top/sh.jpg);
}

#top-hot-list-img2::before{
  background-image: url(../img/top/seoul.jpg);
}

#top-hot-list-img3::before{
  background-image: url(../img/top/taiwan.jpg);
}

#top-hot-list-img4::before{
  background-image: url(../img/top/hk.jpg);
}

.top-hot-list-img {
  position: relative;
  width: 100%;
  height: 162px;
  cursor: pointer;
  overflow: hidden; /* 防止图片放大溢出 */
}

.top-hot-list-img::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transition: transform 0.5s ease;
}

.top-hot-list-img:hover::before {
  transform: scale(1.2); /* 只放大背景图 */
}

/* 格安航空券リスト */

.top-featured {
  background-color: #f7f7f7;
  border-top: 1px solid #e4e4e4;
  margin-top: 60px;
  height: 200px;
}




@media screen and (max-width: 767px){
  .top-hot-lists {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .top-searcher-box-title {
    padding: 26px 4% 0 4%;
    color: #fff;
    font-size: 24px;
  }

  .top-searcher-box-form-condition{
    padding: 0;
    margin-top: 12px;
    display: flex;
    flex-direction: column;
  }

  .top-searcher-box-form {
    width: 92%;
    background-color: #fff;
    -webkit-box-shadow: 0 4px 4px 0 rgba(0, 0, 0, .25);
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, .25);
    border-radius: 5px;
    margin: 20px auto;
    padding: 20px 20px 20px;
  }

  .top-searcher-box-form-condition-add{
    margin: 0 !important;
  }

  .top-searcher-box-form-condition-add-input{
    width: 100% !important;
    min-height: 60px;
    padding: 22px 20px 0 40px;
    border: 1px solid #d1d1d1 !important;
    font-size: 16px;
    margin-top: 10px;
  }

  .top-searcher-box-form-condition-add-input:focus{
    min-height: 60px;
    padding: 0 20px 0 40px;
    border: 1px solid #d1d1d1;
  }

  .direct_flights_only_checkbox_label{
    font-size: 14px;
  }

  .top-searcher-box-form-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    margin-top: 14px;
  }

  .top-searcher-box-form-btn-search {
    width: 100%;
    height: 44px;
    padding: 0 16px;
    border: none;
    border-radius: 3px;
    background: #ffc11c;
    font-size: 16px;
    font-weight: 600;
    line-height: 140%;
    color: #222;
    cursor: pointer;
    white-space: nowrap;
    line-height: 44px;
    text-align: center;
    margin-left: 0;
    transition: all 0.1s;
    margin-top: 14px;
  }

  .top-notice {
    width: 92%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }

  .top-notice-title-word{
    display: none;
  }

  .top-special{
    width: 92%;
  }

  .top-hot{
    width: 92%;
  }

  .top-searcher-box-form-condition-add-title{
    position: absolute;
    top: 18px;
    left: 40px;
    color: #a6a6a6;
    font-size: 14px;
    -webkit-user-select: none; /* Safari */
    user-select: none;
    pointer-events: none;
  }

  .top-searcher-box-form-condition-add-icon{
    width: 20px;
    position: absolute;
    z-index: 100;
    left: 12px;
    top: 30px
  }

  .top-searcher-box-form-condition-add-dropdown{
    position: absolute;
    top: 70px;
    left: 0;
    z-index: 200;
    overflow: auto;
    width: 100%;
    height: 392px;
    background-color: white;
    -webkit-box-shadow: 0 2px 10px 0 rgba(34, 34, 34, .15);
    box-shadow: 0 2px 10px 0 rgba(34, 34, 34, .15);
    border-radius: 8px;
    display: none;
  }

  .top-searcher-box-form-condition-cabinclass-dropdown{
    position: absolute;
    top: 70px;
    right: 0;
    z-index: 2;
    overflow: auto;
    width: 100%;
    height: 392px;
    background-color: white;
    -webkit-box-shadow: 0 2px 10px 0 rgba(34, 34, 34, .15);
    box-shadow: 0 2px 10px 0 rgba(34, 34, 34, .15);
    border-radius: 8px;
    display: none;
    padding: 16px;
  }

  .top-searcher-box-form-condition{
    padding: 0;
    margin-top: 0;
    display: flex;
  }

  .top-banner-img{
    display: none;
  }

  .top-special-list{
    width: 100%;
  }

  .top-banner-img2{
    display: block;
    width: 92%;
    margin-left: auto;
    margin-right: auto;
  }

  .top-hot-list {
    width: 100%;
    height: 162px;
    position: relative;
    margin-top: 10px;
  }

  .top-searcher-box-form-condition-exchange{
    width: 32px;
    height: 32px;
    border-radius: 90%;
    border: 1px solid #d1d1d1;
    background-color: white;
    position: absolute;
    top:106%;
    left: 50%;
    transform: translate(-50%,-50%);
    z-index: 100;
    cursor: pointer;
    -webkit-user-select: none; /* Safari */
    user-select: none;
  }

  .top-searcher-box-form-condition-exchange-img{
    width: 60%;
    margin: 20%;
    transform: rotate(90deg);
  }

  .top-searcher-box-form-condition-exchange-img.rotate {
    transform: rotate(270deg);
  }

}