/*------------------------------
contact 共通
--------------------------------*/
#contact {
    padding: 80px 0 80px;
    background: var(--bg-blue);
}
#contact .contact-box {
  width: 100%;
  margin: 0 auto;
}
#contact .section-title {
  color: var(--blue);
}

@media screen and (max-width: 768px){
  #contact {
    padding: 40px 0 40px;
  }

}


/*------------------------------
入力画面
--------------------------------*/
/* エラー表示 */
.erro-box {
  padding: 20px;
  margin-top: 30px;
  background-color: #ffd7d6;
}
.erro-box p {
  color: var(--red);
  font-size: 1.6rem;
  font-weight: bold;
  text-align: center;
}

/* table内 */
table {
  width: 100%;
}
table , th, td {
	border: none;
	border-collapse: collapse;
}
tr {
  border-top: solid 1px #ccc;
}
tr:first-of-type {
  border-top: none;
}
th, td {
	padding: 50px 30px;
  text-align: left;
  vertical-align: middle;
}
th {
	width: 250px;
  
}
th p{
	font-size: 1.8rem;
  line-height: 1.8;
}
th p span.red{
  font-size: 1.4rem;
  font-weight: bold;
  padding: 5px 5px;
  color: #fff;
  background-color: var(--red);
}
td {
	width: calc( 100% - 250px );
}

/* ラジオボタン本体 */
input[type="radio"] {
  appearance: auto;      /* ラジオボタン本来の形に戻す */
  cursor: pointer;
  vertical-align: middle; /* テキストと縦中央に揃える */
  margin-right: 8px;     /* ボタンと文字の間 */
}
.radio-group label {
  display: inline-block;
  line-height: 2;
  cursor: pointer;
  margin-bottom: 10px;
}

/* 氏名、メールアドレス記入 */
td input[type=text],
td input[type=email] {
  width: 380px;
  padding: 10px;
  font-size: 1.8rem;
  border: 1px solid #333;
  height: 42px;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}

/* 備考テキスト */
td textarea {
  border: 1px solid #333;
  background: #fff;
  width: 100%;
  height: 168px;
  padding: 10px;
  border-radius: 4px;
  font-size: 1.6rem;
  transition: all .2s ease;
}

/* 送信ボタン */
p.form-btn {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}
input[type=submit] {
  width: 280px;
  padding: 10px;
  font-size: 2rem;
  text-align: center;
  height: 55px;
  color: #fff;
  background: var(--blue);
  border: none;
  cursor: pointer;
  transition: 0.3s;
}
input[type=submit]:hover{
  opacity: 0.7;
}

@media screen and (max-width: 768px){
  /* エラー表示 */
  .erro-box {
    padding: 20px;
    margin-top: 20px;
  }

  /* table内 */
  tr {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  th, td {
    padding: 20px 0;
  }
  th {
    width: 100%;
    padding: 20px 0 0;
  }
  th p{
    font-size: 1.8rem;
  }
  th p span.red{
    font-size: 1.4rem;
  }
  td {
    width: 100%;
  }
  
  /* 氏名、メールアドレス記入 */
  td input[type=text],
  td input[type=email] {
    width: 100%;
    height: auto;
  }

  /* 備考テキスト */
  td textarea {
    border: 1px solid #333;
    background: #fff;
    width: 100%;
    height: auto;
  }

  /* 送信ボタン */
  p.form-btn {
    margin-top: 20px;
  }
  input[type=submit] {
    width: 100%;
    height: auto;
  }
	
}


/*------------------------------
確認画面
--------------------------------*/
.confirm-box {
  padding: 20px;
  margin-top: 30px;
  /* background-color: #fff; */
}
.confirm-box p {
  color: #333;
  font-size: 1.6rem;
  font-weight: bold;
  text-align: center;
}
.form-flex-box {
  display: flex;
  justify-content: center;
  gap: 30px;
}
.gray input[type=submit] {
  color: #333;
  background: #ccc;
}

@media screen and (max-width: 768px) {
  .confirm-box {
    padding: 20px;
    margin-top: 0;
  }
  .form-flex-box {
    flex-direction: column;
    gap: 0 0;
  }
}


/*------------------------------
完了画面
--------------------------------*/
.thanks-box h2 {
  text-align: center;
  font-size: 2.2rem;
  font-weight: bold;
  padding-bottom: 20px;
  color: var(--blue);
}
.thanks-box p {
  text-align: center;
  font-size: 1.6rem;
}
.thanks-box p.back-btn {
  padding: 30px 0;
}
.thanks-box p.back-btn a {
  text-decoration: underline;
}

@media screen and (max-width: 768px) {
  .thanks-box h2 {
    font-size: 1.8rem;
  }
  .thanks-box p {
    font-size: 1.6rem;
  }
  .thanks-box p.back-btn {
    padding: 20px 0;
  }
}


/* フッター箇所非表示 */
.contact-footer .footer {
  display: none!important;
}