@charset "UTF-8";
/*
 * お問い合わせフォーム（lib/contact-form.php の [mt_contact_form]）の見た目
 * フォームのあるページでだけ読み込む。css/site.css のあとに読む
 * 2026-11-05 のデザイン一新で、角の丸い入力欄・選んだ種別に色が付く・グラデーションのボタンにした（モックは mediatech_hp/mock/contact.html）
 * 色と書体は css/site.css の決まり（--mt-*）を使う。Cocoon の本文の決まり（ol の番号・legend の大きさなど）に負けないよう .mt-contact から書く
 */
.mt-contact {
  --mt-error: #b4233a;
  --mt-field-line: #cfd9e3;
}

/* 1. 入力 → 2. 確認 → 3. 完了 */
.mt-contact .mt-contact-steps {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 0 36px;
  padding: 0;
  list-style: none;
  counter-reset: mt-step;
}
.mt-contact .mt-contact-steps li {
  flex: 0 1 160px;
  margin: 0;
  padding: 8px 12px;
  list-style: none;
  text-align: center;
  font-size: .86rem;
  line-height: 1.4;
  color: var(--mt-muted);
  background: var(--mt-bg-gray2);
  border-radius: 999px;
  counter-increment: mt-step;
}
.mt-contact .mt-contact-steps li::before { content: counter(mt-step) ". "; font-family: var(--mt-font-latin); }
.mt-contact .mt-contact-steps li.mt-current { color: #fff; font-weight: 700; background: var(--mt-grad); }

/* 欄（名前の下に入力を置く） */
.mt-contact .mt-contact-field { margin: 0 0 28px; padding: 0; border: 0; }
.mt-contact .mt-contact-field > label,
.mt-contact .mt-contact-field legend {
  display: flex;
  align-items: center;
  gap: 10px;
  float: none;
  width: auto;
  margin: 0 0 10px;
  padding: 0;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--mt-ink);
  border: 0;
}
.mt-contact fieldset { display: block; min-width: 0; margin: 0; padding: 0; border: 0; }
.mt-contact .mt-contact-required {
  display: inline-block;
  padding: 0 10px;
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: .1em;
  color: #fff;
  background: var(--mt-grad);
  border-radius: 20px;
}

/* 種別の選択（選んだものに色が付く） */
.mt-contact .mt-contact-choices { display: flex; flex-wrap: wrap; gap: 12px; }
.mt-contact .mt-contact-choices label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 20px;
  font-size: .93rem;
  font-weight: 400;
  border: 1px solid var(--mt-field-line);
  border-radius: 999px;
  background: #fbfdff;
  cursor: pointer;
  transition: border-color .2s, background-color .2s, color .2s;
}
.mt-contact .mt-contact-choices label:hover { border-color: var(--mt-blue); color: var(--mt-blue); }
.mt-contact .mt-contact-choices label:has(input:checked) { border-color: var(--mt-blue); background: var(--mt-pale); color: var(--mt-blue); font-weight: 600; }
.mt-contact input[type="radio"],
.mt-contact input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--mt-blue); }

/* 入力欄 */
.mt-contact .mt-contact-field input[type="text"],
.mt-contact .mt-contact-field input[type="email"],
.mt-contact .mt-contact-field textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 14px 18px;
  font: inherit;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--mt-ink);
  border: 1px solid var(--mt-field-line);
  border-radius: 12px;
  background: #fbfdff;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.mt-contact .mt-contact-field textarea { min-height: 220px; resize: vertical; }
.mt-contact .mt-contact-field input::placeholder,
.mt-contact .mt-contact-field textarea::placeholder { color: #9aa8b6; }
.mt-contact .mt-contact-field input:focus,
.mt-contact .mt-contact-field textarea:focus { outline: none; border-color: var(--mt-blue); box-shadow: 0 0 0 4px rgba(31,109,176,.12); background: #fff; }

/* 誤りと知らせ */
.mt-contact .mt-has-error input,
.mt-contact .mt-has-error textarea { border-color: var(--mt-error); background: #fff8f9; }
.mt-contact .mt-contact-error { margin: 8px 0 0; font-size: .88rem; color: var(--mt-error); }
.mt-contact .mt-contact-notice { margin: 0 0 24px; padding: 14px 18px; color: var(--mt-error); background: #fdf0f2; border-radius: 12px; }

/* スパム防止のチェック */
.mt-contact .mt-contact-acceptance { padding: 18px 20px; border-radius: 12px; background: var(--mt-bg-gray2); }
.mt-contact .mt-contact-acceptance label { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: .9rem; font-weight: 400; cursor: pointer; }
.mt-contact .mt-contact-acceptance input { margin-top: .3em; flex: 0 0 auto; }

/* 確認の画面 */
.mt-contact .mt-contact-review { display: grid; grid-template-columns: 180px 1fr; margin: 16px 0 0; border-top: 1px solid var(--mt-line); }
.mt-contact .mt-contact-review dt,
.mt-contact .mt-contact-review dd { margin: 0; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--mt-line); }
.mt-contact .mt-contact-review dt { color: var(--mt-muted); font-size: .92rem; font-weight: 500; }

/* ボタン（css/site.css の .mt-btn と同じ形・同じ動き） */
.mt-contact .mt-contact-actions { display: flex; justify-content: center; gap: 14px; margin: 36px 0 0; }
.mt-contact .mt-contact-button {
  min-width: 12em;
  padding: 13px 32px;
  font: inherit;
  font-weight: 700;
  line-height: 1.6;
  color: #fff;
  background: var(--mt-grad);
  border: 0;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
  cursor: pointer;
  position: relative;
  isolation: isolate;
  transition: border-color .2s, color .2s;
}
/* 指したときの地の色（site.css の .mt-btn::before と同じ仕組み） */
.mt-contact .mt-contact-button::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: linear-gradient(100deg, #0f4f86 0%, #1f6db0 50%, #1597b0 100%); opacity: 0; transition: opacity .2s; }
.mt-contact .mt-contact-button:hover::before,
.mt-contact .mt-contact-button:focus-visible::before { opacity: 1; }
.mt-contact .mt-contact-button-back { color: var(--mt-ink); background: linear-gradient(180deg, #fff 0%, #f1f6fb 100%); border: 1px solid #c9d6e3; box-shadow: 0 6px 16px rgba(9,39,66,.08), inset 0 1px 0 #fff; }
.mt-contact .mt-contact-button-back::before { background: linear-gradient(180deg, #dcecfa 0%, #c2dcf3 100%); }
.mt-contact .mt-contact-button-back:hover,
.mt-contact .mt-contact-button-back:focus-visible { color: var(--mt-blue-dark); border-color: var(--mt-blue); }

/* reCAPTCHA の案内（Google の決まりにより、この案内を出すときは右下の reCAPTCHA の印を隠してよい） */
.mt-contact .mt-contact-recaptcha-notice { margin: 22px 0 0; font-size: .76rem; color: var(--mt-muted); text-align: center; }
body.mt-site .mt-contact .mt-contact-recaptcha-notice a { color: var(--mt-muted); }
body.mt-site .mt-contact .mt-contact-recaptcha-notice a:hover { color: var(--mt-blue); }
.grecaptcha-badge { visibility: hidden; }

/* 狭い画面 */
@media (max-width: 960px) {
  .mt-contact .mt-contact-review { grid-template-columns: 1fr; }
  .mt-contact .mt-contact-review dt { padding-bottom: 0; border-bottom: 0; }
  .mt-contact .mt-contact-actions { flex-direction: column-reverse; }
  .mt-contact .mt-contact-button { width: 100%; }
}
