@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 {
  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 th {
  position: relative;
  padding-right: 50px;
}

#contact tr:nth-child(1) th::after,
#contact tr:nth-child(3) th::after,
#contact tr:nth-child(4) th::after {
  background: #fff;
  border: 1px solid #646464;
  color: #646464;
  content: "必須";
  display: inline-block;
  font-weight: bold;
  font-size: 10px;
  padding: 4px;
  position: absolute;
  top: 50%;
  right: 0;
  text-align: center;
  transform: translateY(-50%);
  width: 40px;
}

/*--テーブル--*/
#contact table,
#contact tr,
#contact th,
#contact td {
  box-sizing: border-box;
}

#contact table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

#contact th {
  border-bottom: 2px solid #a80f78;
  text-align: left;
  padding: 3% 0 3% 1%;
}

#contact td {
  border-bottom: 1px solid #e8e8e8;
  padding: 3% 1% 3% 3%;
}

#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 tr {
    display: block;
  }
  #contact tr:nth-child(n+2) {
    margin-top: 15px;
  }
  #contact th {
    border-bottom: none;
    display: block;
    padding: 3% 0 3% 20px;
    font-size: 14px;
    position: relative;
  }
  #contact th::before {
    background: #a80f78;
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 10px;
    height: 2px;
  }
  #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 {
  background: #fff;
  border: 1px solid #e8e8e8;
  color: #fe65b8;
  line-height: 50px;
  width: 200px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  box-sizing: border-box;
}
#contact .answerbutton:hover,
#contact .returnbutton:hover {
  opacity: 0.8;
}

#contact .answerbutton {
  border: 1px solid #e8e8e8;
  color: #fe65b8;
  margin-right: 15px;
}
@media (max-width: 480px) {
  #contact .answerbutton {
    margin-right: 0;
  }
}

#contact .returnbutton {
  background: #e8e8e8;
  border: 1px solid #e8e8e8;
  color: #fe65b8;
}
@media (max-width: 480px) {
  #contact .returnbutton {
    margin-top: 15px;
  }
}

/*--サンクスページ 末尾 「ご回答ありがとうございました。」削除--*/
#contact p[align=center] {
  display: none;
}
#contact p:last-child {
  display: none;
}