/* お問い合わせフォーム（/contact/・template/contact/*）専用。2026-10-18 リデザイン。
   slogical.css（会社サイト共通CSSのコピー）は原本と同期しているので触らず、ここに追加する。
   フォームの name / hidden / action は従来どおり（doContact.go）。 */
.ct-intro { display: flex; gap: 18px; align-items: flex-start; margin: 6px 0 22px; padding: 18px 20px; border-radius: 10px;
  background: linear-gradient(135deg, #f8faff, #eef2f7); border: 1px solid #d6e0ee; }
.ct-intro-icon { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 28px; line-height: 1; background: linear-gradient(145deg, #dbe7fd, #c7d9f0); box-shadow: inset 0 0 0 1px rgba(30,58,95,.08); }
.ct-intro-body { flex: 1 1 auto; min-width: 0; }
.ct-intro-lead { margin: 0 0 10px; font-size: 15px; line-height: 1.8; color: #334155; }
.ct-intro-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ct-intro-chips li { padding: 3px 11px; border-radius: 999px; background: #fff; border: 1px solid #c7d9f0; color: #1e3a5f; font-size: 12px; font-weight: bold; white-space: nowrap; }
.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; }
.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; }

.ct-btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 18px 0 24px; }
.ct-btn { display: inline-block; background: #2563eb; color: #fff; font-size: 15px; font-weight: 600; padding: 12px 30px; border: none; border-radius: 6px; cursor: pointer;
  letter-spacing: 0.06em; box-shadow: 0 2px 8px rgba(37,99,235,0.28); font-family: inherit; }
.ct-btn:hover { background: #1d4ed8; }
.ct-btn:disabled { background: #94a3b8; box-shadow: none; cursor: default; }
.ct-btn-secondary { display: inline-block; background: #f0f4f8; border: 1px solid #b8c9d9; border-radius: 4px; padding: 9px 18px; cursor: pointer; font-size: 14px; color: #2c5282; font-family: inherit; }
.ct-btn-secondary:hover { background: #e2eaf3; }

.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: 768px) {
  .ct-intro { gap: 12px; padding: 14px; }
  .ct-intro-icon { flex-basis: 44px; width: 44px; height: 44px; font-size: 22px; border-radius: 11px; }
  .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; }
}
