@charset "UTF-8";
#contact {
  font-family: Avenir, 'Helvetica neue', Helvetica, '游ゴシック', YuGothic, 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro', メイリオ, Meiryo, 'ＭＳ Ｐゴシック', sans-serif;
  max-width: 980px;
  margin: 0 auto;
}

/*--タイトル・説明文--*/
#contact .title {
  font-size: 24px;
  border-bottom: dotted #C8C8C8 1px;
  margin: 5% 0 2% 0;
}

#contact .note {
  font-size: 12px;
  color: #4E4E4E;
  margin: 0 0 5% 0;
}

@media screen and (max-width: 768px) {
  #contact .title {
    font-size: 18px;
  }
}

/*--テーブル--*/
#contact table,
#contact th,
#contact td {
  border-color: #D3D3D3;
  border-style: solid;
  border-width: 1px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

#contact table {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  border-collapse: collapse;
  font-size: 14px;
}

#contact th,
#contact td {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  padding: 3%;
}

#contact th {
  background: #f8f9f8;
  text-align: left;
  font-weight: normal;
  width: 25%;
}

#contact span {
  color: #F00;
  font-size: 14px;
  padding: 0 2px;
}

#contact td input {
  width: 100%;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  height: 2em;
}

#contact td [type=radio],
#contact td [type=checkbox] {
  width: auto;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  height: auto;
}

#contact td textarea {
  width: 100%;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  height: 10em;
}

@media screen and (max-width: 480px) {
  #contact table {
    border-width: 1px 1px 0 1px;
  }
  #contact th,
  #contact td {
    display: block;
  }
  #contact th {
    border-width: 0;
    width: 100%;
  }
  #contact td {
    border-width: 1px 0 1px 0;
  }
  #contact td select {
    width: 100%;
  }
}

/*--ボタン--*/
#contact .submit {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin: 3% auto;
}

#contact .answerbutton {
  background: #FFF;
  border-radius: 5px;
  border: 1px #333 solid;
  line-height: 50px;
  width: 100%;
  margin: 0 auto;
  color: #333;
  cursor: pointer;
  font-weight: bold;
  font-size: 18px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  max-width: 300px;
}

#contact .returnbutton {
  background: #FFF;
  border-radius: 5px;
  border: 1px #333 solid;
  line-height: 50px;
  width: 100%;
  margin: 0 auto;
  color: #333;
  cursor: pointer;
  font-weight: bold;
  font-size: 18px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  max-width: 300px;
}

#contact .answerbutton:hover {
  opacity: 0.8;
}

@media screen and (max-width: 480px) {
  #contact .submit {
    width: 100%;
  }
  #contact .answerbutton {
    border-radius: 10px;
    display: block;
    width: 150px;
  }
  #contact .returnbutton {
    border-radius: 10px;
    display: block;
    width: 150px;
  }
}

#contact p:nth-child(4)[align=center] {
  display: none;
}