@charset "UTF-8";
/*********************************************************
共通
*********************************************************/
#contact {
  box-sizing: border-box;
  margin-right: auto;
  margin-left: auto;
  max-width: 1000px;
  font-family: Avenir, "Helvetica neue", Helvetica, "游ゴシック", YuGothic, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", メイリオ, Meiryo, "ＭＳ Ｐゴシック", sans-serif;
}
@media (max-width: 1000px) {
  #contact {
    padding-left: 2%;
    padding-right: 2%;
  }
}

/*--タイトル・説明文--*/
#contact .title {
  border-bottom: 1px solid #333;
  font-size: 24px;
  font-weight: bold;
  margin: 5% 0 2% 0;
  padding: 10px;
}

#contact .note {
  font-size: 12px;
  color: #4E4E4E;
  margin: 0 0 5% 0;
}

@media screen and (max-width: 768px) {
  #contact .title {
    font-size: 18px;
  }
}
/*--必須マーク--*/
.required-mark {
  background: #BC0003;
  border-radius: 3px;
  padding: 4px;
  font-weight: bold;
  font-size: 12px;
  color: #FFF;
  margin: 0 5px;
}

/*疑似要素で必須を表示させる場合*/
/*#contact tr:nth-child(n + 2) th::after {
  background: #BC0003;
  border-radius: 3px;
  color: #FFF;
  content: "必須";
  display: inline-block;
  font-weight: bold;
  font-size: 12px;
  margin: 0 5px;
  padding: 4px;
  vertical-align: middle;
}*/
/*--テーブル--*/
#contact table,
#contact tr,
#contact th,
#contact td {
  box-sizing: border-box;
}

#contact table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

#contact th {
  text-align: left;
  padding: 3% 0 3% 1%;
}

#contact td {
  padding: 3% 1% 3% 3%;
}

#contact td input {
  width: 100%;
  box-sizing: border-box;
  height: 2em;
}
#contact td input[type=text] {
  border-radius: 5px;
  border-width: 1px;
  height: 4em;
  padding: 5px;
}

#contact td [type=radio],
#contact td [type=checkbox] {
  width: auto;
  box-sizing: border-box;
  height: auto;
}

#contact td textarea {
  width: 100%;
  border-radius: 10px;
  box-sizing: border-box;
  height: 10em;
  padding: 5px;
}

@media screen and (max-width: 768px) {
  #contact table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
  }
  #contact th {
    display: block;
    text-align: center;
    padding: 3% 0 3% 1%;
    font-size: 18px;
  }
  #contact th span {
    background: #BC0003;
    border-radius: 3px;
    padding: 4px;
    font-weight: bold;
    font-size: 12px;
    color: #FFF;
    margin: 0 0 0 5px;
  }
  #contact td {
    display: block;
    padding: 0 1% 3% 0;
  }
  #contact td input {
    width: 100%;
    box-sizing: border-box;
    height: 45px;
  }
  #contact td textarea {
    width: 100%;
    box-sizing: border-box;
    height: 80px;
  }
}
/*--ボタン--*/
#contact .submit {
  display: flex;
  justify-content: center;
  margin: 3% auto;
}
@media (max-width: 480px) {
  #contact .submit {
    align-items: center;
    flex-direction: column;
  }
}

#contact .answerbutton,
#contact .returnbutton {
  border-radius: 15px;
  line-height: 50px;
  width: 200px;
  color: #FFF;
  cursor: pointer;
  font-weight: bold;
  font-size: 18px;
  box-sizing: border-box;
}
#contact .answerbutton:hover,
#contact .returnbutton:hover {
  opacity: 0.8;
}

#contact .answerbutton {
  background: #FE8D00;
  border: 1px solid #FE8D00;
  margin-right: 15px;
}
@media (max-width: 480px) {
  #contact .answerbutton {
    margin-right: 0;
  }
}

#contact .returnbutton {
  background: #ffa432;
  border: 1px solid #FE8D00;
}
@media (max-width: 480px) {
  #contact .returnbutton {
    margin-top: 15px;
  }
}

/*--サンクスページ 末尾 「ご回答ありがとうございました。」削除--*/
#contact p[align=center] {
  display: none;
}
#contact p:last-child {
  display: none;
}