/* 全体を囲うDiv */
#search-agencies-wrapper {
  width: 100%;
  padding: 40px;
  background: #FFDA25;
}

/* 見出し */
#search-agencies-wrapper .header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#search-agencies-wrapper .header h2 {
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  color: #000000;
}

#search-agencies-wrapper .header button::before {
  font-family: "Font Awesome 5 Free";
  font-size: 32px;
  content: "\2b";
  color: #FFFFFF;
  position: relative;
  top: -2px;
}

#search-agencies-wrapper .header button {
  width: 56px;
  height: 56px;
  background: #000000;
  border-radius: 32px;
}

#search-agencies-form.active .header button {
  transform: rotate(45deg);
}

/* Formを囲うDiv */
#search-agencies-form {
  padding: 40px;
  background: #F3F7FB;
  border-radius: 30px;
}

#search-agencies-form form {
  display: none;
}

#search-agencies-form.active form {
  display: block;
}

/* Formの中でFlexとするDiv */
#search-agencies-form .input-wrapper:first-child {
  margin-top: 32px;
}

#search-agencies-form .input-wrapper {
  display: flex;
  gap: 80px;
}

.input-wrapper .title {
  font-weight: 700;
  font-size: 16px;
  line-height: 16px;
  color: #000000;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.input-wrapper .title h3 {
  width: 80px;
}

.input-wrapper .inputs {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.input-wrapper .sub-title {
  font-weight: 500;
  font-size: 13px;
  line-height: 13px;
  color: #000000;
}

.input-group .sub-title {
  margin-top: 24px;
  margin-bottom: 16px;
}

.input-wrapper .inputs label {
  display: flex;
  gap: 8px;
  align-items: center;
  background-color: #FFFFFF;
  color: #000000;
  border-radius: 80px;
  padding: 12px;
  cursor: pointer;
  width: 230px;
  font-weight: 500;
  font-size: 13px;
  border: solid 2px #fff;
}

.input-wrapper .inputs label::before {
  display: flex;
  align-items: center;
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 32px;
  content: "\f111";
  color: #F3F7FB;
}

.input-wrapper .inputs input[type="checkbox"]:checked+label::before {
  content: "\f058";
  color: #1EAEFF;
}

.input-wrapper .inputs input[type="checkbox"]:checked+label {
  border: 2px solid #1EAEFF;
  box-shadow: 0px 10px 32px rgba(0, 0, 0, 0.07);
}

form[name='search-agencies'] hr.input-borderline {
  margin: 32px 0;
  background-color: #DDDDDD;
  height: 1px;
}

/* Submitボタン */
#search-agencies-form .button-wrapper button {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
  width: 400px;
  height: 72px;

  background: #1EAEFF;
  box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.08);
  border-radius: 70px;

  font-weight: 700;
  font-size: 16px;
  line-height: 16px;
}

#search-agencies-form .button-wrapper button::before {
  font-family: "Font Awesome 5 Free";
  font-size: 18px;
  content: "\f002";
  color: #FFFFFF;
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  top: 0;
  height: 100%;
  left: 25px;
}

#search-agencies-form .button-wrapper button span {
  color: #FFFFFF;
}


/*--------------------------------------------------------------*\
$860px
\*---------------------------------------------------------------*/
@media screen and (max-width: 860px) {

  #search-agencies-form .input-wrapper {
    display: block;
  }

  .input-wrapper .inputs>div {
    width: calc((100% - 16px)/2);
  }

  .input-wrapper .inputs label {
    width: 100% !important;
  }

  .input-wrapper .inputs {
    gap: 10px;
    margin-top: 16px;
    margin-left: 0;
    flex-wrap: wrap;
  }
}


/*--------------------------------------------------------------*\
$600px
\*---------------------------------------------------------------*/
@media screen and (max-width: 600px) {

  #search-agencies-wrapper {
    padding: 16px 16px 24px;
  }

  #search-agencies-wrapper .header h2 {
    font-size: 17px;
    line-height: 17px;
  }

  #search-agencies-wrapper .header button::before {
    font-size: 23px;
    top: -3.5px;
    left: 0.5px;
  }

  #search-agencies-wrapper .header button {
    width: 32px;
    height: 32px;
  }

  #search-agencies-form .input-wrapper:first-child {
    margin-top: 24px;
  }

  #search-agencies-form {
    padding: 24px 16px;
  }

  #search-agencies-form .button-wrapper button {
    width: 100%;
    height: 56px;
  }

  .input-wrapper .inputs:first-child {
    margin-top: 16px;
  }

  .input-wrapper .title h3 {
    font-size: 15px;
  }

  .input-wrapper .inputs {
    gap: 6px;
  }

  .input-wrapper .sub-title {
    font-size: 11px;
    line-height: 11px;
  }

  .input-wrapper .inputs>div {
    width: calc((100% - 6px)/2);
  }

  .input-wrapper .inputs label {
    width: 142px;
    padding: 8px;
    gap: 4px;
    font-size: 10px;
  }

  .input-wrapper .inputs label::before {
    font-size: 16px;
  }

  #search-agencies-form .button-wrapper button {
    padding: 0;
  }

  form[name='search-agencies'] hr.input-borderline {
    margin: 24px 0;
  }
}
