/* お問い合わせフォーム（/contact/）の見た目のうち、テーマの style.css に無いもの。このサイト用に書いたもの */

/* スパム対策（Turnstile）の確認の欄 */
.contact-turnstile {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

/* 送信の結果（成功は緑、失敗は赤の枠） */
.contact-result {
  margin: 2em 0.5em 1em;
  padding: 0.2em 1em;
  border: 2px solid #dc3232;
  line-height: 1.8;
}

.contact-result.is-ok {
  border-color: #46b450;
}

/* ---------------------------------------------------------------
   フォームの配置。テーマの「左に項目名・右に入力欄」の表をやめて、
   項目名を入力欄の上に置く縦 1 列にする（PC・スマホ共通、幅 720px で中央）。
   テーマの文字の大きさ（rem）は画面幅で変わるので、このフォームは px で決める
   --------------------------------------------------------------- */
.contact-form {
  max-width: 720px;
  margin: 0 auto;
  font-size: 15px;
  color: #333;
}

.contact-form .contact-table,
.contact-form .contact-table tbody,
.contact-form .contact-table tr,
.contact-form .contact-table th,
.contact-form .contact-table td {
  display: block;
  width: 100%;
}

.contact-form .contact-table tr {
  border: none;
  padding: 0;
  margin-bottom: 28px;
}

.contact-form .contact-table th,
.contact-form .contact-table td {
  padding: 0;
  text-align: left;
  font-weight: normal;
  line-height: 1.6;
  border: none !important;
}

/* 項目名と必須のマーク */
.contact-form .contact-table th p,
.contact-form .contact-table th label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: bold;
}

.contact-form .essential {
  margin: 0;
  padding: 1px 6px;
  font-size: 11px;
  line-height: 1.6;
  border-radius: 3px;
}

/* 入力欄 */
.contact-form .contact-table td p {
  margin: 0;
}

.contact-form .contact-table td input[type="text"],
.contact-form .contact-table td input[type="email"],
.contact-form .contact-table td textarea {
  width: 100%;
  height: auto;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 16px; /* 16px 未満だと iPhone で入力時に画面が拡大される */
  line-height: 1.6;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form .contact-table td textarea {
  height: 180px;
  resize: vertical;
}

.contact-form .contact-table td input:focus,
.contact-form .contact-table td textarea:focus {
  outline: none;
  border-color: #067c46;
  box-shadow: 0 0 0 3px rgba(6, 124, 70, 0.15);
}

.contact-form .contact-table td ::placeholder {
  color: #aaa;
}

.contact-form .contact-table td .note {
  margin-top: 6px;
  font-size: 12px;
  font-weight: normal;
  color: #888;
}

/* 種類のチェックボックス：横に並べる */
.contact-form .contact-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.contact-form .contact-check,
.contact-form .contact-check + .contact-check {
  margin: 0;
  padding: 0;
}

.contact-form .contact-check span {
  height: auto;
  padding-left: 28px;
  font-size: 15px;
  font-weight: normal;
  line-height: 20px;
}

.contact-form .contact-check span::before {
  width: 20px;
  height: 20px;
  border: 1px solid #999;
  border-radius: 4px;
}

.contact-form .contact-check input:checked + span::before {
  border-color: #067c46;
}

.contact-form .contact-check input:checked + span::after {
  width: 14px;
  height: 14px;
  left: 3px;
  top: 3px;
}

/* 入力済みの必須項目・同意・送信 */
.contact-form .remaining p,
.contact-form .remaining .number,
.contact-form .remaining .items {
  font-size: 14px;
  font-weight: bold;
}

.contact-form .remaining .number {
  margin-left: 0.4em;
}

.contact-form .txt--center,
.contact-form .agreeTxt {
  margin-top: 16px;
  font-size: 14px;
}

.contact-form #kiyaku-checkbox {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  accent-color: #067c46;
}

.contact-form .btn-wrapper {
  width: 100%;
  max-width: 320px;
  margin: 28px auto 0;
}

.contact-form .contact-submit {
  width: 100%;
  padding: 16px 0;
  font-family: inherit;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 0.1em;
  border-radius: 999px;
  background-color: #067c46;
}

.contact-form .contact-submit:hover:not(:disabled) {
  opacity: 0.85;
}

.contact-form .contact-submit:disabled {
  background-color: #ccc;
}
