/* コンサルティングジャパン オープンハウス予約フォーム v1.1 スタイリッシュ版（紺＋ゴールド） */
/* サイト背景が濃色でも読めるよう、フォーム全体に明るいカード背景を持たせる */
.cjoh-wrap {
  max-width: 880px;
  margin: 0 auto;
  color: #222;
  font-size: 16px;
  line-height: 1.7;
  background: #fdfcf8;
  border: 1px solid #c6a253;
  border-radius: 18px;
  padding: 30px 40px 28px;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.38);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
}
@media (max-width: 640px) {
  .cjoh-wrap { padding: 20px 16px 16px; }
}

/* 見出し帯 */
.cjoh-head {
  background: linear-gradient(135deg, #12294d 0%, #0a1e3c 55%, #081830 100%);
  border: 1px solid #c6a253;
  border-radius: 12px;
  text-align: center;
  padding: 30px 18px 24px;
  margin: 0 0 26px;
}
.cjoh-head-title {
  color: #fff;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  font-size: 31px;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin: 0;
}
.cjoh-head-line {
  width: 92px;
  height: 2px;
  background: #c6a253;
  margin: 13px auto 11px;
  position: relative;
}
.cjoh-head-sub { color: #e3c888; font-size: 14px; letter-spacing: 0.06em; margin: 0; }

.cjoh-guidance { text-align: center; color: #333; margin: 0 0 14px; }
.cjoh-note {
  background: linear-gradient(180deg, #fdf8eb, #fbf1da);
  border: 1px solid #c6a253;
  border-radius: 8px;
  color: #856020;
  font-weight: 700;
  text-align: center;
  padding: 10px 16px;
  margin: 0 0 30px;
}
.cjoh-success {
  background: #eef7ee;
  border: 1px solid #7fb069;
  border-radius: 10px;
  padding: 18px 22px;
  margin: 0 0 26px;
}
.cjoh-success-title { font-weight: 700; font-size: 18px; margin: 0 0 6px; }
.cjoh-error {
  background: #fdf0ef;
  border: 1px solid #b2342d;
  border-radius: 10px;
  padding: 14px 20px;
  margin: 0 0 26px;
}

/* 項目 */
.cjoh-field { margin: 0 0 26px; }
.cjoh-row { display: flex; gap: 24px; }
.cjoh-row .cjoh-field { flex: 1; }
@media (max-width: 640px) {
  .cjoh-row { flex-direction: column; gap: 0; }
}
.cjoh-label {
  display: block;
  font-weight: 700;
  color: #0a1e3c;
  margin: 0 0 9px;
  padding-left: 10px;
  border-left: 4px solid #c6a253;
  line-height: 1.45;
}
.cjoh-req {
  background: #b2342d;
  color: #fff;
  border-radius: 4px;
  font-size: 11.5px;
  padding: 2px 8px;
  margin-left: 6px;
  vertical-align: middle;
}
.cjoh-limit { color: #b2342d; font-size: 14px; margin-left: 6px; font-weight: 400; }
.cjoh-help { display: block; color: #6b7280; font-size: 13px; margin: 0 0 8px; padding-left: 14px; }
.cjoh-input {
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border: 1.5px solid #d8d2c0;
  border-radius: 10px;
  padding: 13px 15px;
  font-size: 16px;
  color: #222;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cjoh-input::placeholder { color: #9ca3af; }
.cjoh-input:focus {
  border-color: #c6a253;
  box-shadow: 0 0 0 3px rgba(198, 162, 83, 0.2);
  outline: none;
}
.cjoh-textarea { min-height: 140px; }

/* 選択肢（共通） */
.cjoh-check { display: block; margin: 0 0 8px; font-weight: 400; color: #222; cursor: pointer; }
.cjoh-check input { accent-color: #0a1e3c; width: 17px; height: 17px; vertical-align: -3px; margin-right: 7px; }

/* お問合せ種別: チップ型 */
.cjoh-cats { display: flex; flex-wrap: wrap; gap: 10px; }
.cjoh-cats .cjoh-label, .cjoh-cats .cjoh-help { flex-basis: 100%; }
.cjoh-cats .cjoh-check {
  display: inline-flex;
  align-items: center;
  margin: 0;
  background: #fff;
  border: 1.5px solid #d8d2c0;
  border-radius: 999px;
  padding: 8px 16px 8px 13px;
  font-size: 14.5px;
  transition: all 0.18s;
}
.cjoh-cats .cjoh-check:hover { border-color: #c6a253; transform: translateY(-1px); }
.cjoh-cats .cjoh-check input { accent-color: #c6a253; margin-right: 8px; }
.cjoh-cats .cjoh-check.is-checked,
.cjoh-cats .cjoh-check:has(input:checked) {
  background: #0a1e3c;
  color: #fff;
  border-color: #c6a253;
  box-shadow: 0 4px 12px rgba(10, 30, 60, 0.3);
}

/* きっかけ・確認: 行型でホバーと選択を分かりやすく */
.cjoh-sources .cjoh-check, .cjoh-confirm .cjoh-check {
  padding: 7px 12px;
  border-radius: 8px;
  margin: 0 0 4px;
  transition: background 0.15s;
}
.cjoh-sources .cjoh-check:hover, .cjoh-confirm .cjoh-check:hover { background: #f6f1e7; }
.cjoh-sources .cjoh-check.is-checked, .cjoh-confirm .cjoh-check.is-checked,
.cjoh-sources .cjoh-check:has(input:checked), .cjoh-confirm .cjoh-check:has(input:checked) {
  background: #fdf8eb;
  box-shadow: inset 0 0 0 1.5px #c6a253;
}

/* 下層パネル */
.cjoh-panel {
  background: linear-gradient(180deg, #fdf8eb, #fffaf0);
  border: 1px solid #c6a253;
  border-radius: 12px;
  padding: 18px 20px 4px;
  margin: 0 0 24px;
  box-shadow: 0 4px 14px rgba(133, 96, 32, 0.1);
}
.cjoh-panel-title {
  color: #0a1e3c;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  font-size: 17.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-bottom: 2px solid #c6a253;
  padding-bottom: 7px;
  margin: 0 0 15px;
}

.cjoh-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cjoh-submit { text-align: center; margin: 34px 0 10px; }
.cjoh-btn {
  background: linear-gradient(135deg, #14305a, #0a1e3c);
  color: #fff;
  border: 2px solid #c6a253;
  border-radius: 12px;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  padding: 15px 86px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(10, 30, 60, 0.35);
  transition: transform 0.18s, box-shadow 0.18s, opacity 0.18s;
}
.cjoh-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(10, 30, 60, 0.4); opacity: 0.97; }
.cjoh-btn:active { transform: translateY(0); }
.cjoh-after { text-align: center; color: #6b7280; font-size: 13px; margin: 0; }

/* 物件情報ボックス */
.cjoh-property {
  background: #fff;
  border: 1.5px solid #c6a253;
  border-radius: 12px;
  padding: 16px 20px 12px;
  margin: 0 0 20px;
  text-align: center;
}
.cjoh-property-name {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  font-size: 22px;
  font-weight: 700;
  color: #0a1e3c;
  margin: 0 0 4px;
}
.cjoh-property-meta { margin: 0 0 2px; color: #333; }
.cjoh-property-period { margin: 0; color: #856020; font-weight: 700; font-size: 14px; }

/* 種別・希望内容: チップ型 */
.cjoh-types, .cjoh-wants { display: flex; flex-wrap: wrap; gap: 10px; }
.cjoh-types .cjoh-label, .cjoh-types .cjoh-help,
.cjoh-wants .cjoh-label, .cjoh-wants .cjoh-help { flex-basis: 100%; }
.cjoh-types .cjoh-check, .cjoh-wants .cjoh-check {
  display: inline-flex;
  align-items: center;
  margin: 0;
  background: #fff;
  border: 1.5px solid #d8d2c0;
  border-radius: 999px;
  padding: 8px 16px 8px 13px;
  font-size: 14.5px;
  transition: all 0.18s;
}
.cjoh-types .cjoh-check:hover, .cjoh-wants .cjoh-check:hover { border-color: #c6a253; transform: translateY(-1px); }
.cjoh-types .cjoh-check input, .cjoh-wants .cjoh-check input { accent-color: #c6a253; margin-right: 8px; }
.cjoh-types .cjoh-check.is-checked, .cjoh-wants .cjoh-check.is-checked,
.cjoh-types .cjoh-check:has(input:checked), .cjoh-wants .cjoh-check:has(input:checked) {
  background: #0a1e3c;
  color: #fff;
  border-color: #c6a253;
  box-shadow: 0 4px 12px rgba(10, 30, 60, 0.3);
}

/* 希望日時 */
.cjoh-pref { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
.cjoh-pref-name { flex: 0 0 64px; font-weight: 700; color: #0a1e3c; }
.cjoh-pref select { flex: 1; }
@media (max-width: 640px) {
  .cjoh-pref { flex-wrap: wrap; }
  .cjoh-pref-name { flex-basis: 100%; }
}
.cjoh-avail-msg { color: #856020; font-weight: 700; margin: 4px 0 0; }

/* v1.1.3 追加: テーマ側の白文字指定に引っ張られて入力文字・選択肢が見えなくなる問題への対策。
   フォーム内の入力文字とセレクトの選択肢は、常に濃色×白背景で表示する */
.cjoh-wrap input[type="text"],
.cjoh-wrap input[type="email"],
.cjoh-wrap input[type="tel"],
.cjoh-wrap input[type="number"],
.cjoh-wrap textarea,
.cjoh-wrap select {
  color: #222 !important;
  background-color: #fff !important;
  -webkit-text-fill-color: #222;
}
.cjoh-wrap select option {
  color: #222 !important;
  background-color: #fff !important;
}
.cjoh-wrap select:focus {
  color: #222 !important;
  background-color: #fff !important;
}
