@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 {
  font-size: 24px;
  font-weight: bold;
  margin: 5% 0 2% 0;
  padding: 10px;
  text-align: center;
}

#contact .note {
  margin: 0 0 5% 0;
  text-align: center;
}

@media screen and (max-width: 768px) {
  #contact .title {
    font-size: 18px;
  }
}
/*--必須マーク--*/
.required-mark {
  color: #f00;
  display: block;
}

/*疑似要素で必須を表示させる場合*/
#contact tr:not(:nth-child(6)) th::after {
  color: #f00;
  content: "＊";
  font-size: 14px;
}

/*--テーブル--*/
#contact table,
#contact tr,
#contact th,
#contact td {
  box-sizing: border-box;
}

#contact table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

#contact th,
#contact td {
  border-bottom: 5px solid #fff;
}

#contact th {
  background: #ef857d;
  color: #fff;
  text-align: left;
  padding: 3% 0 3% 1%;
}
@media (min-width: 769px) {
  #contact th {
    width: 45%;
  }
}

#contact td {
  padding: 3% 1% 3% 3%;
}
@media (min-width: 769px) {
  #contact td {
    width: 55%;
  }
}

#contact td input {
  width: 100%;
  box-sizing: border-box;
  height: 2em;
}
#contact td input[type=text] {
  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%;
  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 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: #ef857d;
  border: 1px solid #ef857d;
  margin-right: 15px;
}
@media (max-width: 480px) {
  #contact .answerbutton {
    margin-right: 0;
  }
}

#contact .returnbutton {
  background: #f5b0aa;
  border: 1px solid #ef857d;
}
@media (max-width: 480px) {
  #contact .returnbutton {
    margin-top: 15px;
  }
}

/*--サンクスページ 末尾 「ご回答ありがとうございました。」削除--*/
#contact p[align=center] {
  display: none;
}
#contact p:last-child {
  display: none;
}