@charset "UTF-8";
/*********************************************************
共通
*********************************************************/
#contact {
  font-family: Avenir, 'Helvetica neue', Helvetica, '游ゴシック', YuGothic, 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro', メイリオ, Meiryo, 'ＭＳ Ｐゴシック', sans-serif;
  margin: 0 auto;
  max-width: 980px;
}

/*--タイトル・説明文--*/
#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;
  }
}

/*--必須マーク--*/
.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 {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

#contact table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

#contact th {
  text-align: left;
  padding: 3% 0 3% 1%;
  font-weight: normal;
}

#contact td {
  padding: 3% 1% 3% 0;
}

#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;
}

#contact tr:nth-child(even) {
  background-color: #F0F0F6;
}

#contact tr:nth-child(odd) {
  background-color: #FCFCFC;
}

@media (min-width: 601px) {
  #contact select {
    padding: 5px;
  }
}

@media (max-width: 600px) {
  #contact select {
    width: 100%;
    height: 50px;
  }
}

@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-weight: normal;
    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%;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    height: 45px;
  }
  #contact td textarea {
    width: 100%;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    height: 80px;
  }
}

/*--ボタン--*/
#contact .submit {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin-top: 3%;
}

@media (max-width: 300px) {
  #contact .submit {
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    margin-top: 30px;
  }
}

#contact .answerbutton,
#contact .returnbutton {
  background: #3B99F1;
  border-radius: 5px;
  border: 1px #3B99F1 solid;
  line-height: 50px;
  color: #FFF;
  cursor: pointer;
  font-weight: bold;
  font-size: 18px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  width: 200px;
}

@media (max-width: 500px) {
  #contact .answerbutton,
  #contact .returnbutton {
    width: 180px;
  }
}

@media (max-width: 480px) {
  #contact .answerbutton,
  #contact .returnbutton {
    font-size: 16px;
    width: 130px;
  }
}

@media (max-width: 300px) {
  #contact .answerbutton,
  #contact .returnbutton {
    width: 90%;
  }
}

#contact .answerbutton:hover,
#contact .returnbutton:hover {
  opacity: 0.8;
}

#contact .answerbutton {
  margin-right: 15px;
}

@media (max-width: 300px) {
  #contact .answerbutton {
    margin-right: 0;
  }
}

@media (max-width: 300px) {
  #contact .returnbutton {
    margin-top: 15px;
  }
}

/*--サンクスページ 末尾 「ご回答ありがとうございました。」削除--*/
#contact p[align="center"] {
  display: none;
}

#contact p:last-child {
  display: none;
}