/* ==============================================
   contact.css — お問い合わせページ専用スタイル
   ============================================== */

.contact-body {
  max-width: 760px;
}

.contact-lead {
  font-size: 14px;
  color: #444;
  line-height: 2;
  margin-bottom: 40px;
}

/* ---- フォームテーブル ---- */
.contact-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 8px;
}

.contact-table tr {
  border-bottom: 1px solid #e0e0e0;
}

.contact-table tr:first-child {
  border-top: 1px solid #e0e0e0;
}

.contact-table th {
  width: 200px;
  padding: 20px 16px 20px 0;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  vertical-align: top;
  white-space: nowrap;
  text-align: left;
}

.contact-table td {
  padding: 16px 0;
  vertical-align: top;
}

/* ---- 入力フィールド ---- */
.contact-table input[type="text"],
.contact-table input[type="email"],
.contact-table input[type="tel"] {
  width: 100%;
  max-width: 480px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: #222;
  border: 1px solid #ccc;
  border-radius: 3px;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.contact-table input[type="text"]:focus,
.contact-table input[type="email"]:focus,
.contact-table input[type="tel"]:focus {
  border-color: #0000cc;
  box-shadow: 0 0 0 2px rgba(0, 0, 204, 0.1);
}

.contact-table textarea {
  width: 100%;
  max-width: 560px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: #222;
  border: 1px solid #ccc;
  border-radius: 3px;
  outline: none;
  resize: vertical;
  min-height: 160px;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.contact-table textarea:focus {
  border-color: #0000cc;
  box-shadow: 0 0 0 2px rgba(0, 0, 204, 0.1);
}

.contact-table input.input-error,
.contact-table textarea.input-error {
  border-color: #cc0000;
  box-shadow: 0 0 0 2px rgba(204, 0, 0, 0.1);
}

/* ---- 必須マーク ---- */
.required {
  color: #cc0000;
  margin-left: 4px;
  font-weight: 700;
}

.required-note {
  font-size: 12px;
  color: #888;
  margin-top: 8px;
  margin-bottom: 32px;
}

/* ---- エラーメッセージ ---- */
.field-error {
  display: block;
  font-size: 12px;
  color: #cc0000;
  margin-top: 4px;
}

/* ---- アラートボックス ---- */
.form-success,
.form-error {
  padding: 16px 20px;
  border-radius: 4px;
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.7;
}

.form-success {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  color: #2e7d32;
}

.form-error {
  background: #fdecea;
  border: 1px solid #ef9a9a;
  color: #c62828;
}

/* ---- 送信ボタン ---- */
.form-submit {
  text-align: center;
  margin-top: 8px;
}

.btn-submit {
  background: #4f81bd;
  color: #fff;
	border-radius:50px;
  border: none;
  padding: 14px 64px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-submit:hover {
  opacity: 0.75;
}

/* ---- 送信完了ページ ---- */
.thanks-box {
  text-align: center;
  padding: 48px 24px;
  background: #f7f7f7;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
}

.thanks-title {
  font-size: 22px;
  font-weight: 700;
  color: #222;
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}

.thanks-text {
  font-size: 14px;
  color: #444;
  line-height: 2;
}

/* ==============================================
   RESPONSIVE
   ============================================== */
@media (max-width: 768px) {
  .contact-lead {
    font-size: 13px;
  }

  .contact-table th {
    width: auto;
    display: block;
    padding: 16px 0 6px;
    border: none;
    font-size: 13px;
  }

  .contact-table td {
    display: block;
    padding: 0 0 16px;
    border: none;
  }

  .contact-table tr {
    display: block;
    border-bottom: 1px solid #e0e0e0;
    padding: 4px 0;
  }

  .contact-table tr:first-child {
    border-top: 1px solid #e0e0e0;
  }

  .contact-table input[type="text"],
  .contact-table input[type="email"],
  .contact-table input[type="tel"],
  .contact-table textarea {
    max-width: 100%;
    font-size: 16px; /* iOS zoom防止 */
  }

  .btn-submit {
    width: 100%;
    padding: 14px;
    font-size: 15px;
  }

  .thanks-title {
    font-size: 18px;
  }
}
