/* contact.css — お問い合わせフォーム（aikenjapan.jp 公式フォーム風デザイン）
   公式ブランド色: navy #232e4d / gold #98844e / line #e7e8e9 / bg #f3f3f4 / error #a1191b
   ※このCSSは contact / thanks ページでのみ読み込まれる（他ページには影響しない） */
:root {
  --cf-navy:  #232e4d;
  --cf-gold:  #98844e;
  --cf-line:  #e7e8e9;
  --cf-bg:    #f3f3f4;
  --cf-error: #a1191b;
}

body { background: #ffffff; color: var(--cf-navy); }

.contact { min-height: calc(100vh - 65px); }
.contact__container { max-width: 720px; margin: 0 auto; padding: 52px 24px 80px; }

/* 見出し（CONTACT / お問い合わせ） */
.contact__hero { text-align: center; margin-bottom: 38px; }
.contact__hero .section-label {
  display: inline-block; color: var(--cf-gold);
  letter-spacing: 4px; font-weight: 700; font-size: 12px;
}
.contact__title {
  font-family: var(--font-sans);
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 700; color: var(--cf-navy);
  margin: 8px 0 0; line-height: 1.3;
}
.contact__title::after {
  content: ""; display: block; width: 46px; height: 3px;
  background: var(--cf-gold); margin: 16px auto 0;
}
.contact__sub { font-size: 14px; color: #555; line-height: 1.95; margin-top: 18px; }

/* フォーム行（公式: ラベル上＋下線区切りの1カラム） */
.cf { border-top: 1px solid var(--cf-line); margin-top: 6px; }
.cf-row {
  display: flex; flex-direction: column;
  padding: 22px 2px;
  border-bottom: 1px solid var(--cf-line);
}
.cf-row__head {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 0;
  margin-bottom: 12px;
}
.cf-row__label { font-size: 15px; font-weight: 700; color: var(--cf-navy); }

/* 必須／任意 バッジ（公式: ゴールド地・白文字の必須） */
.form-label__req {
  display: inline-block; background: var(--cf-gold); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 1.5;
  padding: 2px 9px; border-radius: 2px; margin-left: 12px; letter-spacing: 1px;
}
.form-label__any {
  display: inline-block; background: #fff; color: #888; border: 1px solid #ccc;
  font-size: 11px; font-weight: 700; line-height: 1.5;
  padding: 2px 9px; border-radius: 2px; margin-left: 12px; letter-spacing: 1px;
}
.form-label__note { font-size: 12px; color: #888; margin-left: 10px; font-weight: 400; }

/* 入力欄 */
.cf .form-input {
  width: 100%; border: 1px solid #cccccc; border-radius: 3px; background: #fff;
  padding: 12px 14px; font-size: 15px; color: var(--cf-navy);
  font-family: var(--font-sans); transition: border-color .15s, box-shadow .15s;
}
.cf .form-input:focus {
  outline: none; border-color: var(--cf-navy);
  box-shadow: 0 0 0 3px rgba(35,46,77,.08);
}
.cf .form-input--error { border-color: var(--cf-error); background: #fcf3f3; }
.form-input--textarea { resize: vertical; min-height: 130px; line-height: 1.7; font-family: inherit; }

/* 姓・名の横並び */
.cf-name { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cf-name__col { min-width: 0; }

/* お問い合わせ種類（複数選択チェックボックス） */
.cf-checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cf-check {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border: 1px solid #cccccc; border-radius: 3px;
  background: #fff; cursor: pointer; transition: border-color .15s, background .15s;
}
.cf-check:hover { border-color: var(--cf-navy); }
.cf-check input[type="checkbox"] {
  width: 18px; height: 18px; accent-color: var(--cf-gold); flex-shrink: 0; cursor: pointer;
}
.cf-check__label { font-size: 14px; color: var(--cf-navy); font-weight: 500; }
.cf-check:has(input:checked) { border-color: var(--cf-gold); background: rgba(152,132,78,.07); }
/* キーボード操作時のフォーカス視認性（:has 非対応環境のフォールバックも兼ねる） */
.cf-check input[type="checkbox"]:focus-visible { outline: 2px solid var(--cf-navy); outline-offset: 2px; }

/* エラー文 */
.form-error { color: var(--cf-error); font-size: 12.5px; margin-top: 7px; }

/* 送信エリア */
.contact__submit-area { margin-top: 32px; text-align: center; }
.contact__policy-links {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-bottom: 18px;
}
.contact__policy-links a {
  font-size: 13px; color: var(--cf-navy); text-decoration: underline; font-weight: 600;
}
.contact__consent {
  display: inline-block; padding: 14px 18px; border: 1px solid var(--cf-line);
  border-radius: 4px; background: var(--cf-bg); margin-bottom: 22px;
}
.contact__consent--error { border-color: rgba(161,25,27,.4); background: #fcf3f3; }
.contact__consent-label {
  display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--cf-navy); cursor: pointer;
}
.contact__consent-label input {
  width: 18px; height: 18px; accent-color: var(--cf-gold); flex-shrink: 0;
}

.btn-submit {
  display: inline-block; min-width: 280px; padding: 16px 40px;
  background: var(--cf-navy); color: #fff; border: none; border-radius: 3px;
  font-size: 16px; font-weight: 700; letter-spacing: 2px;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(35,46,77,.25);
}
.btn-submit:hover { background: #2e3c63; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(35,46,77,.3); }

/* ===== 完了ページ（thanks）— 既存スタイルを維持 ===== */
.thanks {
  background: #ffffff; min-height: calc(100vh - 65px);
  display: flex; align-items: center; justify-content: center;
}
.thanks__content { text-align: center; padding: 48px 24px; max-width: 540px; }
.thanks__mark {
  width: 78px; height: 78px; background: var(--cf-navy); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 28px; font-size: 30px; color: #fff;
}
.thanks__title {
  font-family: var(--font-sans); font-size: 28px; font-weight: 700;
  color: var(--cf-navy); margin-bottom: 14px;
}
.thanks__sub { font-size: 15px; color: #7a8299; line-height: 1.85; margin-bottom: 36px; }
.thanks__info {
  background: rgba(35,46,77,.04); border: 1px solid rgba(35,46,77,.1);
  border-radius: 6px; padding: 22px; margin-bottom: 28px; text-align: left;
}
.thanks__info-title { font-size: 11px; letter-spacing: 2px; font-weight: 700; color: var(--cf-gold); margin-bottom: 14px; }
.thanks__detail {
  display: flex; justify-content: space-between; font-size: 13px; padding: 8px 0;
  border-bottom: 1px solid rgba(35,46,77,.07); color: #7a8299;
}
.thanks__detail:last-child { border-bottom: none; }
.thanks__detail strong { color: var(--cf-navy); font-weight: 700; }

@media (max-width: 600px) {
  .cf-name { grid-template-columns: 1fr; }
  .cf-checklist { grid-template-columns: 1fr; }
  .btn-submit { min-width: 0; width: 100%; }
}
