@charset "UTF-8";
/* CSS Document */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* コンタクトページのスタイル */
main #contact {
  width: 75%;
  margin: 0 auto;
  padding-top: 50px;
}

main #contact #title {
  margin: 50px 0 70px 0;
  width: 100%;
}

main #contact #title h2 {
  text-align: center;
  font-weight: normal;
  letter-spacing: 3px;
  font-size: 25px;
  font-family: aktiv-grotesk, sans-serif;
}

main #contact .contact-container {
  width: 700px;
  margin: 0 auto;
   /* フェードインアニメーションの適用 */
   opacity: 0;
   animation: fadeInUp 0.8s ease forwards;
   animation-delay: 0.3s; /* ページ読み込み後少し遅れて表示 */
}

main #contact .form-container {
  width: 100%;
  margin: 0 auto;
}

main #contact .contact-container .contact-text {
  margin-bottom: 30px;
}

main #contact .contact-container .contact-text p {
  font-size: 13px;
  margin-bottom: 10px;
  text-align: center;
}

/* フォーム要素のスタイル */
main #contact table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto 100px;
  max-width: 800px;
}

main #contact table th {
  width: 30%;
  height: auto;
  margin: 0 0 2px 0;
  padding: 20px 30px 20px 0;
  font-size: 14px;
  letter-spacing: 0px;
  text-align: right;
  font-weight: normal;
}

main #contact table td {
  width: 66%;
  height: auto;
  margin: 0 0 2px 0;
  padding: 6px 2%;
  font-size: 14px;
  letter-spacing: 0px;
  background: white;
}

main #contact .input {
  margin: 0 auto 0 0;
  padding: 12px 1% 12px 2%;
  font-size: 16px;
  letter-spacing: 1px;
  border-radius: 3px;
  background: #ededed;
  border: none;
  outline: none;
}

main #contact textarea {
  margin: 0 auto 0 0;
  padding: 12px 1% 12px 2%;
  font-size: 16px;
  letter-spacing: 1px;
  border-radius: 3px;
  background: #ededed;
  border: none;
  outline: none;
  height: 100px;
  font-family: YuGothic, "Yu Gothic medium", "Hiragino Sans", Meiryo, "sans-serif"; /* フォントファミリーを追加 */
  color: #808080; /* 文字色を追加 */
}

main #contact .required {
  color: red;
  font-weight: bold;
}

main #contact table tr.detail {
  vertical-align: top;
}

main #contact table tr.detail th {
  padding-top: 35px;
}

main #contact table .detail .check_box {
  margin-bottom: 30px;
}

main #contact table .detail h5 {
  font-size: 16px;
  margin: 0 0 10px 0;
  font-weight: bold;
}

/* チェックボックス */
main #contact .check_box span {
  margin-right: 28px;
  margin-bottom: 10px;
}


main #contact .check_box label {
  box-sizing: border-box;
  cursor: pointer;
  display: inline-block;
  padding: 5px 0 5px;
  position: relative;
  width: auto;
}

/* プライバシーポリシー */
main #contact .pp_box {
  background-color: #f9f9f9;
  padding: 25px 5% 15px;
  margin-bottom: 50px;
}

main #contact .pp_box h5 {
  text-align: center;
  font-size: 18px;
  margin: 0 auto 15px;
  font-weight: bold;
}

main #contact .pp_box p {
  text-align: left;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 15px;
}

main #contact .pp_box .check_box {
  text-align: center;
}


/* ボタン */
main #contact .btn_box {
  text-align: center;
}

main #contact .submit {
  border: 0;
  width: 300px;
  margin: 50px auto 30px auto;
  padding: 10px 0;
  color: white;
  font-size: 14px;
  letter-spacing: 2px;
  background: #444;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

main #contact .submit.clear {
  background-color: #d3d3d3;
}

main #contact .submit:hover {
  background-color: #808080;
  color: #fff;
}

/* 確認画面 */
main #contact.confirm h4 {
  text-align: center;
  font-size: 20px;
  margin: 0 auto 30px;
  font-weight: bold;
  letter-spacing: 3px;
  
}

main #contact.confirm p {
  text-align: center;
  margin-bottom: 50px;
}

main #contact.confirm table {
  margin-bottom: 50px;
}

main #contact.confirm table th {
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

main #contact.confirm table td {
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

main #contact.confirm table h5 {
  font-size: 16px;
  margin: 0 0 5px 0;
  font-weight: bold;
}

main #contact.confirm table .check_box {
  margin-bottom: 20px;
}

/* 送信完了画面 */
main #contact h4 {
  text-align: center;
  font-size: 20px;
  margin: 0 auto 50px;
  font-weight: bold;
}

main #contact p {
  text-align: center;
  letter-spacing: 1px;
  line-height: 2;
}

main #contact .btn {
  text-align: center;
  margin-top: 100px;
}

main #contact .btn a {
  display: inline-block;
  width: 150px;
  color: #808080;
  background-color: #fff;
  border: 1px solid #808080;
  padding: 10px 0;
  text-align: center;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
}

main #contact .btn a:hover {
  background-color: #808080;
  color: #fff;
}

/* エラーメッセージのスタイル */
.error-message {
  color: red;
  font-size: 12px;
  margin-top: 5px;
  display: block;
}

.input-error {
  background-color: #ffebee !important;
  border: 1px solid #ff5252 !important;
}

/* レスポンシブ対応 */
@media screen and (max-width: 1050px) {
  main #contact {
    width: 90%;
  }

  main #contact #title {
    margin: 100px 0 50px 0;
  }

  main #contact table th {
    width: 100%;
    display: block;
    padding: 15px 0 5px;
  }

  main #contact table td {
    width: 100%;
    display: block;
    padding: 0 0 15px;
  }

  main #contact .submit {
    width: 90%;
    max-width: 350px;
    padding: 12px 0;
    margin-bottom: 0;
  }

  main #contact .contact-container {
    width: 100%;
    max-width: 700px;
  }
  main #contact table th {
    width: 100%;
    display: block;
    text-align: left;
  }
  
  main #contact table td {
    width: 100%;
    display: block;
  }

  main #contact table {
    width: 90%; /* モバイル表示時の幅を調整 */
  }

  main #contact .input, main #contact textarea {
    width: 100%;
  }

  main #contact.confirm table td {
    border-top: none;
    border-bottom: none;
    padding: 10px 0;
}

main #contact .btn_box {
  display: flex;
  flex-direction: column;
  align-items: center;
}
  /* 他の調整 */
}
