/* contact-form.css / お問い合わせフォーム表示用の補完CSS / 作成日: 2026-09-05
 *
 * 元テーマ style.css (1467-1583行付近) は本フォーム専用と見られるクラス
 * （.inquiry, .haveto, .flexBox, .contact_left/.contact_right, #formbtn,
 *  .inquiry span.wpcf7-list-item 等）を既に含んでおり、レイアウトの大部分は
 * そちらでカバーされる。
 *
 * Contact Form 7 プラグイン本体のCSS（includes/css/styles.css、6.1.5）は提供元 public_html 内に実在する。
 * 本ファイルはそのうち、静的な可視表示に必要な2件（.screen-reader-response の非表示化、
 * .wpcf7-list-item-label の前後スペース）のみを移植した。残りのルールは、テーマ側 style.css が
 * 特異度で上回る（.wpcf7-list-item）か、対象要素が無い／送信時のみ有効（応答領域・スピナー等）と判断し
 * 移植していない。判断根拠は reviews/2026-09-05_browser-comparison.md を参照。
 *
 * .screen-reader-response の非表示化は、同じ公開HTML内に実在した
 * WordPressコアの .screen-reader-text 相当ルール（<style id='wp-block-library-inline-css'>）を
 * 同じクリップ手法で適用したもの（出所: 公開HTML 166行目付近）。
 */
.screen-reader-response {
  position: absolute;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  width: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
}

/* 2026-09-05 追記（ブラウザ比較で検出）:
 * チェックボックス項目ラベルの前後に半角スペース相当の余白を付けるルール。
 * 出所: 提供元 public_html 内の Contact Form 7 プラグイン本体
 *       wp-content/plugins/contact-form-7/includes/css/styles.css（公開HTMLが ver=6.1.5 で読込）
 * これが無いと .wpcf7-list-item-label の幅が原本より約5px狭くなる。 */
.wpcf7-list-item-label::before,
.wpcf7-list-item-label::after {
  content: " ";
}

.contact-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin: 24px 0; text-align: center; }
.contact-actions form { margin: 0; padding: 0; }
.contact-actions button, .contact-actions a { display: inline-block; box-sizing: border-box; min-width: 220px; padding: 12px 24px; border: 0; border-radius: 3px; background: #75451a; color: #fff; font: inherit; text-decoration: none; cursor: pointer; }
.contact-actions button[disabled] { opacity: .55; cursor: wait; }
.contact-actions .contact-back { background: #666; }
/* 2026-09-21: 入力画面のボタンは元HPと同じ白地・350px幅。元HPは input[type=submit] のためテーマの枠線（1px #dfdfdf）が付いていたが、
 * 本フォームは <button> で枠線が付かず輪郭が見えなかったため、同じ枠線を明示する */
.contact-actions #formbtn { display: block; box-sizing: border-box; min-width: 0; margin: 25px auto 0; padding: 15px; border: 1px solid #dfdfdf; border-radius: 2px; background: #fff; color: #131212; font-size: 18px; font-weight: 700; letter-spacing: 1px; }
.contact-actions #formbtn:hover { border: 2px solid #131212; }
.contact-actions .contact-back:hover, .contact-actions form button:hover, .contact-actions a:hover { opacity: .85; }
/* 2026-09-21: 入力欄の幅を揃える（元HPは select だけ 14px 狭く、textarea は 2px はみ出していた） */
.inquiry input[type="text"], .inquiry input[type="email"], .inquiry input[type="tel"], .inquiry select, .inquiry textarea { box-sizing: border-box; width: 100%; }
.contact-error, .contact-notice { box-sizing: border-box; margin: 16px 0; padding: 12px; border: 1px solid #b3261e; background: #fff5f4; color: #7a1712; }
.contact-success { margin: 20px 0; padding: 20px; border: 1px solid #568c35; background: #f5fbf1; }
.contact-confirm { width: 100%; border-collapse: collapse; }
.contact-confirm th, .contact-confirm td { padding: 12px; border: 1px solid #ccc; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.contact-confirm th { width: 28%; background: #f3efe7; }

@media (max-width: 768px) {
  .inquiry, .inquiry tbody, .inquiry tr, .inquiry th, .inquiry td { display: block; box-sizing: border-box; width: 100%; }
  .inquiry th { padding-bottom: 6px; }
  .inquiry td { padding-top: 6px; }
  .inquiry input:not([type="checkbox"]), .inquiry select, .inquiry textarea { box-sizing: border-box; max-width: 100%; width: 100%; }
  .inquiry .flexBox { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .contact-confirm th, .contact-confirm td { display: block; box-sizing: border-box; width: 100%; }
}
