@charset "UTF-8";
:root {
  --fontColor: #333132;
  --fontNoto: "Noto Sans JP";
  --fontMPlus: "M PLUS Rounded 1c";
  --colorOrange: #ff8c00;
  --colorPink: #ff0069;
  --colorDBlue: #004498;
  --gradient: linear-gradient(90deg,#88cfd9,#0e8fcd,#004498);
  --zHeader: 990;
  --zHeaderMenu: 999;
  --zFooterBtn: 100;
}

/*********************************************************
共通
*********************************************************/
#contact {
  box-sizing: border-box;
  margin-right: auto;
  margin-left: auto;
  max-width: 1100px;
  font-family: Avenir, "Helvetica neue", Helvetica, "游ゴシック", YuGothic, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", メイリオ, Meiryo, "ＭＳ Ｐゴシック", sans-serif;
}
@media (max-width: 1100px) {
  #contact {
    padding-left: 2%;
    padding-right: 2%;
  }
}

/*--タイトル・説明文--*/
#contact .title {
  font-family: var(--fontMPlus);
  font-size: 24px;
  font-weight: bold;
  margin: 5% 0 2% 0;
  padding: 10px;
  text-align: center;
}

#contact .note {
  color: #4E4E4E;
  margin: 0 0 5% 0;
  text-align: center;
}
@media (max-width: 480px) {
  #contact .note {
    text-align: left;
  }
}
#contact .note span {
  color: var(--colorPink);
}

@media screen and (max-width: 768px) {
  #contact .title {
    font-size: 18px;
  }
}
/*--必須マーク--*/
/*疑似要素で必須を表示させる場合*/
#contact tr th::after {
  color: var(--colorPink);
  content: "*";
  display: inline-block;
  font-size: 18px;
  margin-top: -5px;
  position: absolute;
  top: 50%;
  right: 15px;
  vertical-align: middle;
}

/*--テーブル--*/
#contact table,
#contact tr,
#contact th,
#contact td {
  box-sizing: border-box;
}

#contact table {
  width: 100%;
  border-spacing: 10px;
  font-size: 14px;
}

#contact th {
  background: var(--gradient);
  color: #fff;
  font-weight: bold;
  text-align: left;
  padding: 10px;
  position: relative;
}

#contact td {
  padding: 10px;
}

#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;
    font-weight: bold;
    padding: 10px;
    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: 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: var(--colorOrange);
  border: 1px solid var(--colorOrange);
  margin-right: 15px;
}
@media (max-width: 480px) {
  #contact .answerbutton {
    margin-right: 0;
  }
}

#contact .returnbutton {
  background: #ffa333;
  border: 1px solid var(--colorOrange);
}
@media (max-width: 480px) {
  #contact .returnbutton {
    margin-top: 15px;
  }
}

/*--サンクスページ 末尾 「ご回答ありがとうございました。」削除--*/
#contact p[align=center] {
  display: none;
}
#contact p:last-child {
  display: none;
}