/* JRC お問い合わせフォーム 共通CSS
   サイト本体のCSS（normalize / jrc-common-style / jrc-style など）の後に読み込みます。
   サイト全体に影響しないよう、すべて .jrc-contact の中だけに効かせています。 */

.jrc-contact { max-width: 820px; margin: 0 auto; padding: 40px 20px 80px; line-height: 1.8; color: #333; }
.jrc-contact *, .jrc-contact *::before, .jrc-contact *::after { box-sizing: border-box; }
.jrc-contact a { color: #1f6f5c; }

.jrc-contact .box { background: #fff; padding: 36px 40px; border-radius: 6px; }
.jrc-contact .page-title { font-size: 24px; margin: 0 0 .8em; line-height: 1.5; }
.jrc-contact .lead { margin: 0 0 2em; }

/* 入力欄 */
.jrc-contact .row { margin-bottom: 1.6em; }
.jrc-contact .row > .ttl { display: block; font-weight: bold; margin-bottom: .4em; }
.jrc-contact .req,
.jrc-contact .opt { display: inline-block; margin-left: .5em; padding: 0 .5em; font-size: 12px; font-weight: normal; line-height: 1.7; color: #fff; border-radius: 3px; vertical-align: middle; }
.jrc-contact .req { background: #c0392b; }
.jrc-contact .opt { background: #999; }
.jrc-contact .half { display: flex; gap: 12px; }
.jrc-contact .half > * { flex: 1; min-width: 0; }
.jrc-contact input[type="text"],
.jrc-contact input[type="email"],
.jrc-contact input[type="tel"],
.jrc-contact select,
.jrc-contact textarea {
  width: 100%; padding: .6em .8em; font-size: 16px; font-family: inherit; color: #333;
  border: 1px solid #ccc; border-radius: 4px; background: #fff;
}
.jrc-contact textarea { min-height: 12em; resize: vertical; }
.jrc-contact .choices label { display: inline-block; margin: 0 1.5em .3em 0; font-weight: normal; }
.jrc-contact .note { font-size: 13px; color: #666; margin: .3em 0 0; }
.jrc-contact .error { font-size: 13px; color: #c0392b; margin: .3em 0 0; }

.jrc-contact .policy { background: #f3f3f3; padding: 1.2em 1.5em; border-radius: 4px; text-align: center; }
.jrc-contact .policy h3 { font-size: 16px; margin: 0 0 .5em; }
.jrc-contact .policy p { margin: 0 0 .8em; font-size: 14px; }

/* ボタン */
.jrc-contact .buttons { text-align: center; margin-top: 2em; }
.jrc-contact .buttons button { margin: 0 .5em .5em; padding: .8em 3.5em; font-size: 16px; font-family: inherit; border: none; border-radius: 4px; cursor: pointer; }
.jrc-contact .btn-main { color: #fff; background: #1f6f5c; }
.jrc-contact .btn-sub { color: #333; background: #ddd; }
.jrc-contact .buttons button:disabled { background: #aaa; cursor: default; }

/* 確認画面 */
.jrc-contact .confirm-table { width: 100%; border-collapse: collapse; }
.jrc-contact .confirm-table th,
.jrc-contact .confirm-table td { padding: .8em; border-bottom: 1px solid #e5e5e5; text-align: left; vertical-align: top; }
.jrc-contact .confirm-table th { width: 32%; background: #fafafa; font-weight: bold; }
.jrc-contact .confirm-table td { white-space: pre-wrap; word-break: break-all; }

/* 人には見えないスパム対策欄 */
.jrc-contact .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* reCAPTCHA のマークが「TOP」ボタンと重ならないように少し上げる */
.grecaptcha-badge { bottom: 80px !important; z-index: 10; }

@media (max-width: 600px) {
  .jrc-contact { padding: 24px 12px 60px; }
  .jrc-contact .box { padding: 24px 18px; }
  .jrc-contact .half { flex-direction: column; gap: 8px; }
  .jrc-contact .confirm-table th,
  .jrc-contact .confirm-table td { display: block; width: 100%; }
  .jrc-contact .confirm-table th { border-bottom: none; }
  .jrc-contact .buttons button { width: 100%; margin: 0 0 .8em; }
}
