/* ===== ベースレイアウト ===== */
table.inquiry {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: 15px;
  line-height: 1.6;
}

table.inquiry th,
table.inquiry td {
  padding: 10px 12px;
  vertical-align: top;
}

table.inquiry th {
  background-color: #f7f7f7;
  font-weight: bold;
  width: 30%;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

table.inquiry td {
  border-bottom: 1px solid #e0e0e0;
}

/* ===== 必須・任意マーク ===== */
span.haveto::before {
  content: "※";
  color: #d00;
  font-size: 12px;
  margin-right: 4px;
  font-weight: bold;
}

span.any::before {
  font-size: 12px;
  color: #999;
  margin-right: 6px;
}

/* ===== 入力フィールド ===== */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
textarea,
select {
  width: 100%;
  max-width: 100%;
  padding: 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 3px;
  background-color: #fff;
  box-sizing: border-box;
}

textarea {
  height: 120px;
  resize: vertical;
}

/* ===== 送信ボタン ===== */
.wpcf7-submit {
  display: inline-block;
  padding: 10px 28px;
  background-color: #ff0; /* ← .p-product__button に合わせた色 */
  color: #000;            /* ← ボタン文字色も合わせる */
  border: none;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 20px;
  transition: background-color 0.3s;
}

.wpcf7-submit:hover {
  background-color: #ffd700; /* ← .p-product__button:hover に合わせた色 */
}


/* ===== エラーメッセージ調整 ===== */
.wpcf7-form-control-wrap .wpcf7-not-valid-tip {
  font-size: 13px;
  color: #c00;
  margin-top: 4px;
  display: block;
}

.wpcf7-response-output {
  margin-top: 1em;
  padding: 10px;
  border: 1px solid #ccc;
  background: #f9f9f9;
  font-size: 14px;
  color: #333;
}


/* ===== スマホ対応（レスポンシブ） ===== */
@media screen and (max-width: 768px) {
  table.inquiry,
  table.inquiry tbody,
  table.inquiry tr,
  table.inquiry th,
  table.inquiry td {
    display: block;
    width: 100%;
  }

  table.inquiry td {
    padding: 4px 4px 4px 4px;
    overflow-x: auto;
    word-break: break-word;
  }

  .file-label {
    display: block;
    width: 100%;
    margin-bottom: 8px;
    font-size: 14px;
    padding: 8px;
    font-weight: bold;
  }

  input.wpcf7-form-control.wpcf7-file {
    display: block;
    width: 100%;
    font-size: 14px;
    padding: 8px;
    box-sizing: border-box;
  }

  .wpcf7-submit {
    width: 100%;
    text-align: center;
  }
}


