@charset "utf-8";
/*<input>の style="width は削除する*/
/*ボタンは<label>を設定する。ボタンの間は全角スペースで空ける*/
/*項目名の改行は<br class="pc">とする*/
/*<p>タグ登場順でfloatのため、崩れ<p>は、直前<p>内に入れて<span>タグにする（改行される）*/
/*<hr>はコメントアウト*/

/*共通
-----------------------*/
#bform {
  margin: 20px auto 0;
}
#bform > p {
  width: 700px;
  margin: 0 auto;
}
#bform > p#privacy {
  width: 560px;
  margin: 20px auto 40px;
  padding: 10px;
  background-color: #eee;
  border-radius: 8px;
  text-align: center;
}

/*フォーム入力エリア*/
#bform .inqform {
  width: 700px;
  margin: 15px auto;
}
#bform input[type="text"],
#bform input[type="tel"],
#bform input[type="email"],
#bform textarea,
#bform select {
  margin: 0 0 5px;
  padding: 5px;
  font-size: 1.8rem;
  height: 1.2;
  font-family: Verdana, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro",
    "メイリオ", Meiryo, "ＭＳ Ｐゴシック", sans-serif;
  ime-mode: active;
  border: 1px solid #666;
  transition: all 0.3s ease;
}
#bform input[type="text"]:focus,
#bform input[type="tel"]:focus,
#bform input[type="email"]:focus,
#bform textarea:focus {
  background-color: #dff6fd;
  border-color: #065fe1;
}
#bform input[type="checkbox"],
#bform input[type="radio"] {
  vertical-align: middle;
  margin-bottom: 3px;
  margin-right: 4px;
  transform: scale(1.4);
  cursor: pointer;
}
#bform label {
  cursor: pointer;
  display: inline-block;
  padding: 3px;
}

#bform input[type="checkbox"] + label:after {
  content: "";
  display: block;
}

/*入力サイズ*/
#bform input[type="text"] {
  width: 300px;
}
#bform input[maxlength="2"] {
  width: 2.2em;
}
#bform input[maxlength="3"] {
  width: 3em;
}
#bform input[maxlength="4"] {
  width: 4em;
  margin-left: 3px;
}
#bform input[size="10"] {
  width: 150px;
}
#bform input[size="20"] {
  width: 300px;
}
#bform input[size="30"] {
  width: 400px;
  display: block;
}
#bform textarea {
  width: 400px;
  display: block;
}

/*仕切り線*/
#bform .inqform > p:before {
  clear: both;
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin: 12px 0 10px;
  border-bottom: 2px solid #ddd;
}
/*項目名列*/
#bform .inqform > p:nth-child(odd) {
  clear: both;
  float: left;
  width: 290px;
  padding-bottom: 12px;
  line-height: 1.4;
  font-weight: bold;
}
#bform .inqform > p:nth-child(odd) span.f {
  display: block;
  font-weight: normal;
  font-size: 1.4rem;
}
/*入力欄列*/
#bform .inqform > p:nth-child(even) {
  float: left;
  width: 410px;
}
#bform .inqform > p:nth-child(even) span {
  display: block;
  margin: 10px 0 15px;
  line-height: 1.4;
}

/*送信ボタン*/
#bform .inqform + input[type="hidden"] + p {
  clear: both;
  width: 700px;
  margin: 0 auto;
  padding: 30px 0;
  text-align: center;
  border-top: 2px solid #ddd;
}
#bform input[type="submit"] {
  padding: 12px 50px;
  font-size: 2.1rem;
  cursor: pointer;
  background-color: #feffff;
  border: 3px solid #1b5fe1;
  border-radius: 5px;
  box-shadow: 5px 5px 10px #ccc;
  transition: all 0.4s ease;
}
#bform input[type="submit"]:hover,
#bform input[type="submit"]:active {
  background-color: #b6f5fe;
  border-color: #35d1e6;
  box-shadow: none;
}

/*必須*/
span.must {
  display: inline-block;
  margin-left: 4px;
  padding: 4px 5px;
  font-size: 1.2rem !important;
  color: #fff;
  font-weight: normal;
  background-color: #cc3333;
  border-radius: 5px;
  line-height: 1.1;
  vertical-align: middle;
}

.inqform b {
  font-weight: normal;
}

/* sp */
@media screen and (min-width: 0px) and (max-width: 767px) {
  #bform {
    margin-left: 5%;
    margin-right: 5%;
  }
  #bform > p {
    width: 100%;
  }
  #bform > p#privacy {
    width: 100%;
    margin: 20px auto 40px;
  }

  /*フォーム入力エリア*/
  #bform .inqform {
    width: 100%;
  }
  #bform input[type="text"],
  #bform textarea,
  #bform select {
    margin: 0 0 5px;
    padding: 5px;
    font-size: 1.8rem;
    height: 1.2;
    font-family: Verdana, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro",
      "メイリオ", Meiryo, "ＭＳ Ｐゴシック", sans-serif;
    ime-mode: active;
  }

  /*入力サイズ*/
  #bform input[type="text"] {
    width: 100%;
  }
  #bform input[maxlength="2"] {
    width: 2.2em;
  }
  #bform input[maxlength="3"] {
    width: 3em;
  }
  #bform input[maxlength="4"] {
    width: 4em;
    margin-left: 3px;
  }
  #bform input[size="30"] {
    width: 100%;
  }
  #bform textarea {
    width: 100%;
  }

  /*仕切り線*/
  #bform .inqform > p:before {
    clear: both;
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    margin: 12px 0 10px;
    border-bottom: 2px solid #ddd;
  }
  /*項目名列*/
  #bform .inqform > p:nth-child(odd) {
    clear: both;
    width: 100%;
    float: none;
    padding-bottom: 0;
  }
  /*入力欄列*/
  #bform .inqform > p:nth-child(even) {
    float: none;
    width: 100%;
    padding: 0 10px;
  }
  #bform .inqform > p:nth-child(even):before {
    margin: 0 0 10px;
    border-bottom: none;
  }

  /*送信ボタン*/
  #bform .inqform + input[type="hidden"] + p {
    width: 100%;
    padding: 30px 0 10px;
  }

  .inqform b {
    display: block;
  }
}
