@charset "UTF-8";
/* =============================================================
   有限会社三共製作所 — お問い合わせページ専用スタイル (contact.css)
   対応テンプレート: page-contact.php（Template Name: お問い合わせ）
                    page-contact-thanks.php（Template Name: お問い合わせ完了）

   共通パーツ（ヘッダー／フッター／ベースリセット）は assets/sankyo-global.css を利用。
   フォーム本体は MW WP Form のショートコード出力（生の input/textarea + .mwform-checkbox-field）を、
   本ファイルの .ct-field/.ct-mwform-btn 等でラップ・上書きスタイリングしている
   （マークアップは functions.php の init フックで生成する post_content 側で決定）。
   ============================================================= */

:root { --panel: #efece9; }
*, *::before, *::after { box-sizing: border-box; }

.ct-page small { font-size: 14px; }

/* ---------- タイトル帯 ---------- */
.ct-title {
  background: linear-gradient(135deg, var(--teal), var(--navy));
  padding: 72px 20px 56px; text-align: center;
}
.ct-title__jp { color: #fff; font-size: clamp(24px, 4vw, 34px); font-weight: 700; letter-spacing: .08em; margin: 0; }

/* ---------- 本文レイアウト ---------- */
.ct-body { padding: 48px 0 88px; }
.ct-body__inner { width: 100%; max-width: 760px; margin-inline: auto; padding-inline: 24px; }

.ct-tel-note { font-size: 16px; color: var(--ink); margin-bottom: 20px; }
.ct-tel-note a { color: var(--teal); font-weight: 700; text-decoration: underline; }

/* ---------- カード ---------- */
.ct-card {
  background: #fff; border: 1px solid #e3ddd6; border-radius: 16px;
  padding: clamp(24px, 4vw, 48px);
}
.ct-notice {
  background: var(--panel); border-radius: 8px; padding: 20px 22px;
  font-size: 14px; line-height: 1.9; color: #3a312d; margin-bottom: 32px;
}
.ct-notice a { color: var(--teal); text-decoration: underline; }
.ct-todo { color: #a64237; font-size: 14px; background: #fdf1ef; border: 1px dashed #a64237; border-radius: 6px; padding: 14px 16px; }
.ct-todo code { background: rgba(0,0,0,.06); padding: .1em .4em; border-radius: 3px; }

/* =============================================================
   MW WP Form 出力のスタイリング
   ============================================================= */
.ct-field { padding: 0 0 22px; }
.ct-field__label {
  font-size: 15px; font-weight: 700; color: var(--ink); margin: 0 0 8px;
}
.ct-required { color: #c0392b; margin-left: 4px; }

.ct-field input[type=text],
.ct-field input[type=email],
.ct-field input[type=tel],
.ct-field input[type=number],
.ct-field textarea {
  width: 100%; border: 1px solid #d9d0c6; border-radius: 8px;
  padding: 14px 16px; font-size: 16px; color: var(--ink);
  background: #fff; transition: border-color .2s; font-family: inherit;
}
.ct-field textarea { min-height: 160px; resize: vertical; }
.ct-field input:focus,
.ct-field textarea:focus {
  border-color: var(--teal); outline: none;
  box-shadow: 0 0 0 3px rgba(0,169,178,.15);
}
.ct-field ::placeholder { color: #b3a99f; opacity: 1; }
.ct-field .error { display: block; margin-top: 6px; font-size: 14px; color: #c0392b; }
.akismet_error { display: block; margin-bottom: 16px; padding: 12px 16px; border-radius: 6px; background: #fdecea; font-size: 14px; color: #c0392b; }
.ct-field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.mwform-tel-field, .mwform-zip-field {
  display: inline-flex; align-items: center; gap: 6px; font-size: 16px; color: var(--ink);
}
.mwform-tel-field input, .mwform-zip-field input {
  width: 4.5em; border: 1px solid #d9d0c6; border-radius: 8px;
  padding: 14px 10px; font-size: 16px; color: var(--ink); text-align: center; background: #fff;
}
.mwform-tel-field input:focus, .mwform-zip-field input:focus {
  border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(0,169,178,.15);
}

.ct-field--consent { padding-top: 4px; }
.mwform-checkbox-field { display: flex; align-items: flex-start; gap: 8px; }
.mwform-checkbox-field label { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.mwform-checkbox-field input[type=checkbox] { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--teal); }
.mwform-checkbox-field-text { font-size: 15px; color: #3a312d; }

.ct-field--submit { text-align: center; margin-top: 12px; padding-bottom: 0; }
.ct-mwform-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 220px; padding: 15px 40px; border-radius: 999px;
  background: var(--teal); color: #fff;
  font-size: 16px; font-weight: 700; letter-spacing: .06em;
  border: none; cursor: pointer; margin: 6px 8px;
}
.ct-mwform-btn:hover { background: var(--teal-dark); opacity: 1; }
.ct-mwform-btn:disabled { background: #d9d4cf; color: #8c8178; cursor: not-allowed; }
.ct-mwform-btn--outline { background: transparent; color: var(--ink); border: 2px solid #d9d0c6; }
.ct-mwform-btn--outline:hover { background: #f5f2ee; color: var(--ink); }

/* ---------- 送信完了ページ ---------- */
.ct-body__inner--thanks { max-width: 800px; }
.ct-thanks { background: #fff; border: 1px solid #e3ddd6; border-radius: 16px; padding: clamp(32px, 5vw, 56px); text-align: center; }
.ct-thanks__lead { font-size: 19px; font-weight: 700; color: var(--ink); margin-bottom: 16px; }
.ct-thanks__text { font-size: 15px; line-height: 1.9; color: #3a312d; margin-bottom: 20px; }
.ct-thanks__text a { color: var(--teal); font-weight: 700; text-decoration: underline; }

.btn-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--teal); color: #fff;
  padding: 14px 34px; border-radius: 999px; font-weight: 700; font-size: 15px; letter-spacing: .06em;
}
.btn-cta:hover { background: var(--teal-dark); opacity: 1; }

@media (max-width: 920px) {
  /* ①14px下限ルールのsafety net（font-size:1rem固定）をモバイルのみ解除 */
  .ct-page p, .ct-page li, .ct-page dd, .ct-page dt,
  .ct-page td, .ct-page th, .ct-page summary, .ct-page label { font-size: unset; }

  /* ②padding-inlineをモバイルのみ15pxに */
  .ct-body__inner { padding-inline: 15px; }

  /* ③ct-cardの上にmargin-topを追加 */
  .ct-card { margin-top: 20px; }

  /* ④電話番号・郵便番号の入力欄（3分割）がct-cardの幅からはみ出していたため、
     1つあたりの幅・左右paddingを縮小して収まるようにする */
  .mwform-tel-field, .mwform-zip-field { gap: 4px; }
  .mwform-tel-field input, .mwform-zip-field input {
    width: 3.2em;
    padding: 14px 6px;
  }
}

@media (max-width: 560px) {
  .ct-title { padding: 56px 20px 40px; }
  .ct-body { padding: 32px 0 56px; }
  .ct-card { border-radius: 12px; }
}
