@charset "UTF-8";

/* ---------------- 検索 ------------------*/
.search {
  margin: 110px 0;
}

.search h2 {
  font-size: 2.4rem;
  border-bottom: 1px solid #D5D5D5;
  width: 300px;
  margin: 0 auto 55px auto;
  padding-bottom: 10px;
  text-align: center;
}

#feas-searchform-0 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  width: 100%;
  margin: 25px 0 20px 0;
  box-sizing: border-box;
}

.feas_archive_freeword {
  flex: 1;
  min-width: 200px;
  padding: 20px;
  font-size: 1.6rem;
  border: 1px solid #707070;
  background-color: #F5F5F5;
  border-radius: 5px;
  box-sizing: border-box;
  outline: none;
  margin-right: 5px;
}

.feas-submit-button {
  padding: 16px 14px;
  font-size: 1.8rem;
  border-radius: 5px;
  background-color: #C36A7C;
  color: #fff;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .3s;
}

.search_category {
  padding-top: 0;
  margin-bottom: 15px;
  border: none;
}

.search_category label {
  display: flex;
  align-items: center;
  margin-right: 15px;
  gap: 0 .5em;
  position: relative;
  margin-bottom: .4em;
  padding: 7px 30px;
  border-radius: 25px;
  color: #fff;
  background-color: #D4989C;
  cursor: pointer;
}

.search_category label:has(:checked) {
  background-color: #C36A7C;
  color: #fff;
}

.search_category label:has(:checked)::after {
  position: absolute;
  top: 14px;
  left: 15px;
  transform: rotate(45deg);
  width: 4px;
  height: 8px;
  border: solid #C36A7C;
  border-width: 0 2px 2px 0;
  content: '';
}

.search_category input {
  display: none;
}

.search_category li {
  margin-right: 15px;
  line-height: 1;
}

.search_category li a {
  background-color: #D4989C;
  color: #fff;
  padding: 8px 25px;
  border-radius: 50px;
}

.search_category li a:hover {
  background-color: #C36A7C;
}

.search_sub_category {
  margin-bottom: 50px;
}

.search_sub_category label {
  margin-right: 40px;
  margin-bottom: 10px;
  display: block;
}

.search_btn {
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .3s;
  background-color: #fff;
  margin: 0 auto;
}

.products-search-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.products-search-form .search_fields {
  display: flex;
  gap: 10px;
  align-items: center;
}

.products-search-form .search_fields .search-field {
  flex: 1;
}

.products-search-form .search_category {
  gap: 12px;
  flex-wrap: wrap;
}

.products-search-form .search-parent-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid #D4989C;
  border-radius: 999px;
  cursor: pointer;
  background-color: #D4989C;
  color: #fff;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.products-search-form .search-parent-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  display: none;
  appearance: none;
}

.products-search-form .search-parent-label.is-tab-active {
  background-color: #C36A7C;
  border-color: #C36A7C;
  color: #fff;
}

.products-search-form .search_sub_category {
  width: 100%;
  gap: 16px;
}

.products-search-form .search_sub_group {
  display: none;
  width: 100%;
  gap: 12px;
  flex-wrap: wrap;
}

.products-search-form .search_sub_group.is-active {
  display: flex;
}

.products-search-form .search_sub_group label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 999px;
  cursor: pointer;
}

.products-search-form .search_sub_empty {
  margin: 0;
  color: #666;
}

@media screen and (max-width: 560px) {
  .search {
    margin: 60px 0;
  }

  .search h2 {
    font-size: 2.0rem;
    margin: 0 auto 1em auto;
  }

  .feas_archive_freeword {
    padding: 14px;
    height: 50px;
  }

  .feas-submit-button {
    padding: 12px 20px;
    font-size: 1.6rem;
    height: 50px;
  }

  .search_category {
    flex-wrap: wrap;
    width: 100%;
  }

  .search_category label {
    width: 48%;
    margin-right: 1%;
    gap: 0 .5em;
    padding: 3px 10px;
    text-align: center;
    display: block;
  }

  .search_sub_category label {
    width: 45%;
    margin-right: 5%;
  }

  .search_sub_category {
    margin-bottom: 20px;
  }
}
