/* フォーム全体のコンテナ */
.contact-form {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0;
}

/* テーブル全体のスタイル */
.form-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #ffffff;
  border: 2px solid #000000;
}

/* テーブルのセル */
.form-table th,
.form-table td {
  padding: 16px;
  border: 1px solid #000000;
  text-align: left;
  vertical-align: top;
}

/* 見出しセル */
.form-table th {
  background-color: #ffffff;
  font-weight: bold;
  width: 30%;
  min-width: 120px;
}

/* 必須マーク */
.required {
  color: #ff0000;
  font-weight: bold;
}

/* 入力フィールド共通 */
.form-table input[type="text"],
.form-table input[type="email"],
.form-table input[type="tel"],
.form-table textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #000000;
  border-radius: 0;
  font-size: 16px;
  box-sizing: border-box;
  background-color: #ffffff;
}

/* フォーカス時 */
.form-table input:focus,
.form-table textarea:focus {
  outline: 2px solid #000000;
  outline-offset: 2px;
}

/* テキストエリア */
.form-table textarea {
  resize: vertical;
  font-family: inherit;
}

/* 送信ボタン行 */
.submit-row {
  text-align: center;
  padding: 24px 16px !important;
}

/* 送信ボタン */
.submit-btn {
  padding: 12px 48px;
  font-size: 16px;
  font-weight: bold;
  color: #ffffff;
  background-color: #000000;
  border: 2px solid #000000;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background-color: #ffffff;
  color: #000000;
}

.submit-btn:active {
  transform: scale(0.98);
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  .contact-form {
    padding: 0 16px;
  }
  
  .form-table th,
  .form-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  
  .form-table th {
    padding-bottom: 8px;
    border-bottom: none;
  }
  
  .form-table td {
    padding-top: 0;
  }
  
  .form-table tr {
    display: block;
    border: 1px solid #000000;
    margin-bottom: -1px;
  }
  
  .submit-row {
    border-top: 1px solid #000000 !important;
  }
}