/* ============================================================
   XenoX 問い合わせページ専用スタイル（/contact/）
   - 共通の土台 xm.css の後に読み込む。これまでの contact.css の代わり
   - フォーム（#_contact の中）は本番のHTMLのまま。クラス名（_field など）に見た目だけを当てる
   ============================================================ */

/* このファイルで使う色（モックの値そのまま） */
.xm {
  --ink-30: rgba(21, 23, 28, .3);
  --white: #fff;
  --text-2: #3a3d45;
  --red-bg: #fde8e6;
  --red-text: #8c1d16;
  --red-text-2: #b3261e;
  --rule-3: #c9c8c0;
  --placeholder: #9a9ea8;
}


.xm-ct { padding: 64px 0 96px; }
@media (max-width: 960px) { .xm-ct { padding: 40px 0 64px; } }
/* PC：左に「見出し・特長」と「送ったあとの流れ」、右にフォーム。
   スマホ：見出し → フォーム → 流れ（問い合わせに来た人を、入力欄まで待たせない） */
.xm-ct__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); grid-template-areas: "info form" "more form"; column-gap: 56px; row-gap: 0; align-items: start; }
.xm-ct__info { grid-area: info; }
.xm-ct__more { grid-area: more; }
.xm-ct__form { grid-area: form; }
@media (max-width: 960px) {
  .xm-ct__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "info" "form" "more"; row-gap: 32px; }
}

/* ---------- 左：案内 ---------- */
@media (max-width: 960px) { .xm-ct__more .xm-ct__flow { margin-top: 0; } .xm-ct__info { text-align: center; } .xm-ct__info .xm-lead { margin: 0 auto; } .xm-ct__more { max-width: 620px; width: 100%; margin: 0 auto; } }
.xm-ct .xm-h1 { font-size: clamp(32px, 4.2vw, 52px); }
.xm-ct__points { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.xm-ct__points li { background: var(--white); border: 2px solid var(--ink); border-radius: 12px; box-shadow: var(--sh-sm); padding: 9px 12px; font-size: 12.5px; font-weight: 700; line-height: 1.5; text-align: left; }
.xm-ct__points li:first-child { background: var(--yellow); }
.xm-ct__points b { display: block; font-size: 17px; line-height: 1.3; }
/* スマホでも横3つに並べる。320px 幅だけは「最短1営業日」が入らないので縦に積む */
@media (max-width: 560px) {
  .xm-ct__points { gap: 8px; }
  .xm-ct__points li { padding: 8px 6px; font-size: 11px; text-align: center; }
  .xm-ct__points b { font-size: 14px; white-space: nowrap; }
}
@media (max-width: 400px) { .xm-ct__points b { font-size: 13px; } }
@media (max-width: 359px) { .xm-ct__points { grid-template-columns: minmax(0, 1fr); } .xm-ct__points li { text-align: left; padding: 8px 12px; } }

.xm-ct__flow { margin-top: 26px; background: var(--white); border: var(--bd); border-radius: 16px; box-shadow: var(--sh-sm); padding: 18px 20px; text-align: left; }
.xm-ct__flow .xm-ct__flow-q { margin: 0 0 10px; font-weight: 900; font-size: 15px; }
.xm-ct__flow ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; position: relative; }
.xm-ct__flow ol::before { content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 2px; background: repeating-linear-gradient(var(--ink) 0 5px, transparent 5px 9px); }
.xm-ct__flow li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; position: relative; }
.xm-ct__flow li > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink); font-family: var(--en); font-weight: 700; font-size: 12px; position: relative; z-index: 1; }
.xm-ct__flow b { display: block; font-size: 15px; line-height: 1.5; margin-top: 4px; }
.xm-ct__flow li p { margin: 2px 0 0; font-size: 13.5px; line-height: 1.7; color: var(--text-2); }

.xm-ct__mania { display: flex; align-items: center; gap: 14px; margin-top: 22px; text-align: left; }
.xm-ct__mania img { flex: none; width: 76px; height: 76px; border-radius: 50%; border: var(--bd); background: var(--yellow); object-fit: cover; object-position: 50% 30%; box-shadow: var(--sh-sm); }
.xm-ct__mania p { margin: 0; position: relative; background: var(--white); border: 2px solid var(--ink); border-radius: 14px; padding: 10px 14px; font-size: 13.5px; font-weight: 700; line-height: 1.65; }
.xm-ct__mania p::before { content: ""; position: absolute; left: -9px; top: 50%; width: 14px; height: 14px; background: var(--white); border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-50%) rotate(45deg); }
/* 営業・勧誘のお断り。入力を始める前に必ず目に入るよう、フォームの真上に置く */
.xm-ct .xm-ct__ng { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; padding: 10px 14px; background: var(--red-bg); border: 2px solid var(--red); border-radius: 12px; font-size: 14px; font-weight: 700; line-height: 1.6; color: var(--red-text); word-break: auto-phrase; text-wrap: pretty; }
.xm-ct .xm-ct__ng b { flex: none; display: inline-flex; align-items: center; gap: 4px; background: var(--red); color: var(--white); font-size: 12px; font-weight: 900; border-radius: 999px; padding: 2px 10px; }
.xm-ct .xm-ct__ng b::before { content: "！"; }
/* 送信完了の表示（#_send）が出たら、注意書きは消す */
.xm-ct .xm-win__body:has(#_send) .xm-ct__ng { display: none; }

/* ---------- 右：フォームの箱 ---------- */
.xm-ct__form .xm-win__body { padding: 26px 26px 28px; }
@media (max-width: 560px) { .xm-ct__form .xm-win__body { padding: 20px 16px 22px; } }

/* ---------- フォームの部品（本番のクラス名のまま） ---------- */
.xm-ct #_contact { font-size: 15px; }
.xm-ct #_contact ._form-inner { display: grid; gap: 18px; }
.xm-ct #_contact ._field { display: grid; gap: 6px; }
.xm-ct #_contact ._field label { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 14.5px; }
/* 「必須」の印は、contact.js が入力を確かめている4つに付ける（お問い合わせ内容も 10文字以上が必要） */
.xm-ct #_contact ._field label[for="company"]::after,
.xm-ct #_contact ._field label[for="name"]::after,
.xm-ct #_contact ._field label[for="email"]::after,
.xm-ct #_contact ._field label[for="detail"]::after { content: "必須"; font-size: 11px; font-weight: 700; color: var(--white); background: var(--red); border-radius: 6px; padding: 0 7px; line-height: 1.7; }
.xm-ct #_contact ._optional { font-size: 11px; font-weight: 700; color: var(--ink); background: var(--paper-2); border: 1.5px solid var(--rule-3); border-radius: 6px; padding: 0 7px; line-height: 1.6; }
.xm-ct #_contact ._field input,
.xm-ct #_contact ._field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--white); border: 2px solid var(--ink); border-radius: 12px; padding: 12px 14px;
  transition: box-shadow .15s, background .15s; -webkit-appearance: none; appearance: none;
}
.xm-ct #_contact ._field textarea { min-height: 180px; resize: vertical; line-height: 1.8; }
.xm-ct #_contact ._field input::placeholder,
.xm-ct #_contact ._field textarea::placeholder { color: var(--placeholder); }
.xm-ct #_contact ._field input:focus,
.xm-ct #_contact ._field textarea:focus { outline: 0; background: var(--yellow-2); box-shadow: var(--sh-sm); }

/* 同意 */
.xm-ct #_contact ._consent { background: var(--paper); border: 2px dashed var(--ink-30); border-radius: 12px; padding: 14px 16px; display: grid; gap: 10px; }
.xm-ct #_contact ._consent-text { margin: 0; font-size: 13.5px; }
.xm-ct #_contact ._consent-text a { font-weight: 700; color: var(--navy); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.xm-ct #_contact ._consent-label { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 900; justify-self: start; }
.xm-ct #_contact ._consent-label input[type=checkbox] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.xm-ct #_contact ._checkbox-custom { position: relative; width: 26px; height: 26px; flex: none; background: var(--white); border: 2px solid var(--ink); border-radius: 8px; transition: background .15s; }
.xm-ct #_contact ._consent-label input[type=checkbox]:checked + ._checkbox-custom { background: var(--yellow); }
.xm-ct #_contact ._consent-label input[type=checkbox]:checked + ._checkbox-custom::after { content: ""; position: absolute; left: 7px; top: 2px; width: 7px; height: 13px; border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(45deg); }
.xm-ct #_contact ._consent-label input[type=checkbox]:focus-visible + ._checkbox-custom { box-shadow: 0 0 0 3px var(--yellow-2), 0 0 0 5px var(--ink); }

/* エラー */
.xm-ct #_contact ._error { background: var(--red-bg); border: 2px solid var(--red); border-radius: 12px; padding: 10px 14px; font-size: 14px; font-weight: 700; color: var(--red-text-2); }
.xm-ct #_contact ._error::before { content: "！ "; }

/* 送信ボタン（共通の .xm-btn と同じ見た目） */
.xm-ct #_contact ._submit-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 58px; padding: 0 26px; cursor: pointer;
  font: inherit; font-weight: 900; font-size: 17px; color: var(--ink);
  background: var(--yellow); border: var(--bd); border-radius: 999px; box-shadow: var(--sh);
  transition: transform .15s, box-shadow .15s;
}
.xm-ct #_contact ._submit-btn:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ink); }
.xm-ct #_contact ._submit-btn:active { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--ink); }
.xm-ct #_contact ._submit-btn svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--ink); color: var(--white); }

/* 送信完了 */
.xm-ct #_contact #_send { text-align: center; padding: 24px 8px 12px; }
.xm-ct #_contact ._send-icon { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 50%; background: var(--yellow); border: var(--bd); box-shadow: var(--sh-sm); color: var(--ink); animation: xm-ct-pop .5s cubic-bezier(.2, .8, .2, 1.3) both; }
.xm-ct #_contact ._send-title { font-size: clamp(22px, 2.6vw, 28px); font-weight: 900; }
.xm-ct #_contact ._send-sub { margin-top: 8px; font-size: 15px; color: var(--text-2); line-height: 1.9; }
@keyframes xm-ct-pop { from { transform: scale(.4); opacity: 0; } }
