/* お問い合わせフォーム（/contact/・template/contact/*）専用。2026-10-18 リデザイン、2026-10-24 に会社サイト共通 CSS
   （slogical.css：ヒーロー .sl-hero／チップ .sl-chips／ボタン .sl-btn・.sl-btn-secondary・.sl-btn-row）へ移した分を削除。
   ここに残るのはフォームの 2 列表・入力欄・完了／エラーボックスだけ。
   slogical.css は会社サイト側の原本と同一コピーなので触らず、ここに追加する。
   フォームの name / hidden / action は従来どおり（doContact.go）。 */
.ct-err-msg { margin: 0 0 12px; padding: 10px 14px; border-radius: 6px; background: #fef2f2; border: 1px solid #fca5a5; border-left: 4px solid #dc2626; color: #7f1d1d; font-size: 14px; line-height: 1.7; }

.ct-form { max-width: 920px; }
.ct-fields { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0 0 16px; }
.ct-fields th, .ct-fields td { border: 1px solid #ddd; padding: 10px 14px; vertical-align: top; text-align: left; font-family: inherit; }
.ct-fields th { width: 170px; background: #3b5a7c; color: #fff; font-weight: 600; letter-spacing: 0.08em; white-space: nowrap; }
.ct-fields th small { display: block; font-size: 11px; font-weight: normal; letter-spacing: 0; color: #dbe7f5; white-space: normal; margin-top: 2px; }
.ct-fields td { background: #fff; line-height: 1.8; overflow-wrap: anywhere; }
.ct-fields td pre { margin: 0; white-space: pre-wrap; font-family: inherit; font-size: 14px; line-height: 1.8; background: none; border: 0; padding: 0; color: inherit; }
.ct-radio label { display: block; padding: 4px 0; font-size: 14px; cursor: pointer; }
.ct-radio input { margin-right: 6px; }
.ct-input, .ct-fields textarea { box-sizing: border-box; border: 1px solid #94a3b8; border-radius: 4px; padding: 8px 10px; font-size: 14px; background: #fff; font-family: inherit; }
.ct-input { width: 100%; max-width: 420px; }
.ct-input-short { width: 90px; max-width: 90px; }
.ct-fields textarea { width: 100%; max-width: 680px; min-height: 180px; resize: vertical; line-height: 1.6; }
.ct-input:focus, .ct-fields textarea:focus { outline: none; border-color: #4b6484; box-shadow: 0 0 0 3px rgba(75,100,132,0.12); }
.ct-hint { display: block; font-size: 12px; color: #666; line-height: 1.7; margin-top: 4px; }
.ct-captcha { font-size: 16px; font-weight: bold; color: #1e3a5f; margin: 0 0 6px; }

/* 管理者返信画面（contact_admin_reply.html）の表：改行を保ったまま折り返す */
.sl-table-kv td pre { margin: 0; white-space: pre-wrap; font-family: inherit; font-size: 14px; line-height: 1.8; background: none; border: 0; padding: 0; color: inherit; }

.ct-done { display: flex; gap: 16px; align-items: flex-start; max-width: 760px; margin: 10px 0 18px; padding: 18px 22px; border-radius: 10px; background: #f0fdf4; border: 1px solid #86efac; border-left: 6px solid #16a34a; }
.ct-done-icon { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; background: #16a34a; color: #fff; font-size: 26px; font-weight: bold; display: flex; align-items: center; justify-content: center; }
.ct-done h2 { margin: 0 0 6px; padding: 0; border: 0; font-size: 20px; color: #14532d; }
.ct-done p { margin: 0; font-size: 14px; line-height: 1.8; color: #1f2937; }
.ct-err { max-width: 760px; margin: 10px 0 18px; padding: 14px 18px; border-radius: 6px; background: #fef2f2; border: 1px solid #fca5a5; border-left: 4px solid #dc2626; color: #7f1d1d; font-size: 14px; line-height: 1.8; }

@media screen and (max-width: 767px) {
  .ct-fields, .ct-fields tbody, .ct-fields tr, .ct-fields th, .ct-fields td { display: block; width: 100%; box-sizing: border-box; }
  .ct-fields th { border-bottom: 0; white-space: normal; }
  .ct-fields tr + tr th { border-top: 0; }
}
