@charset "UTF-8";
/* ==========================================================================
   お問い合わせフォーム（css/form.css）
   Contact Form 7のフォームのデザイン（こだわりの部分）。
   読み込み順：functions.php の配列の順（共通 → ヘッダー・フッター → トップ → 会社概要 → その他の固定ページ → フォーム → 準備中）。
   ※ 元の style.css から、順番を保って分けたもの（2026-10-24）。
   ========================================================================== */

/* Contact Form 7：入力欄（text/email/tel/textarea等）は
   デフォルトで幅指定が無く、ブラウザ標準の狭い幅で表示される。
   ページの幅（1200px）自体は既に正しいので、入力欄側を親要素
   いっぱいに広げる。他ページでCF7フォームを使う場合にも
   共通して必要な設定のためページ限定にはしない。 */
.wpcf7-form-control {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* お問い合わせフォーム：写真添付欄の並びと「×」（選択解除）ボタン */
.picazo-form__fileslot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
/* ファイル選択欄は.wpcf7-form-control{width:100%}の対象外にして、
   「ファイルを選択」「選択されていません」の文字幅のままにする
   （100%のままだと欄が広がり、×ボタンが文字から離れて見える）。 */
.picazo-form__fileslot .wpcf7-form-control {
  width: auto;
}
.picazo-form__fileclear {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--color_border--table, #ccc);
  border-radius: 50%;
  background: #fff;
  color: #666;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.picazo-form__fileclear:hover {
  background: #f2f2f2;
}

/* ===========================
   お問い合わせフォーム：全体デザイン
=========================== */
/* .post_contentは--swl-fz--content（画面幅600px未満は4vwで可変）を
   継承するため、フォームの文字もPC/SPで固定16px維持のため上書きする。 */
.picazo-form {
  font-size: 16px;
}

.picazo-form__intro {
  background: #f5f5f5;
  text-align: center;
  padding: 20px 16px;
  margin-bottom: 40px;
  font-size: 16px;
}

/* ラベル・入力欄の2カラム行 */
.picazo-form__row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0 auto 24px;
  /* ラベル240px＋間隔24px＋入力欄600px（「ご希望のサービス」欄の幅）を
     全ての行で共通の箱の幅にする。行ごとに中身の幅が違っても
     （通常500px、サービスだけ600px）箱自体は同じ幅・同じ中央位置に
     なるため、ラベルの左端が全行で揃う。 */
  max-width: 864px;
}
.picazo-form__row--top {
  align-items: flex-start;
}
.picazo-form__label {
  flex: 0 0 240px;
  font-weight: 700;
  font-size: 16px;
}
.picazo-form__field {
  flex: 1 1 auto;
  max-width: 500px;
}
/* 「ご希望のサービス」だけは500px幅だと「エアコンクリーニング」の
   手前で折り返ってしまう（3項目目が収まらない）ため、この欄だけ
   少し広げて「ガラス清掃・床洗浄ワックス・エアコンクリーニング」の
   3つで1行、残り3つで2行になるようにする。 */
.picazo-form__row:has(.picazo-services) .picazo-form__field {
  max-width: 600px;
}
.picazo-form__required {
  color: var(--wp--preset--color--red, #e2555a);
  font-size: 13px;
  font-weight: 400;
  margin-left: 4px;
}
.picazo-form__optional {
  color: #999;
  font-size: 13px;
  font-weight: 400;
  margin-left: 4px;
}
/* ラベルの下の補足（郵便番号の自動入力・住所の番地のお願い）（2026-10-30）
   入力欄のplaceholderに入れるとスマホ幅（欄の中の幅約311px）で
   はみ出すため、ラベルの下に小さく出す。 */
.picazo-form__label {
  position: relative;
}
/* PC：補足は行の高さに数えず、ラベルの下にぶら下げる。
   （数えると、ラベルが2段で縦中央にそろい、ラベルの文字が
   入力欄の中の文字より上にずれる。行の間隔も広がる） */
.picazo-form__hint {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  margin-top: 2px;
  color: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}
@media (max-width: 767px) {
  /* SP：ラベルが入力欄の上に縦積みになるので、ふつうの流れに戻す */
  .picazo-form__hint {
    position: static;
    display: block;
  }
}

/* 入力欄の見た目
   .wpcf7-form-controlはinput/textareaだけでなく、チェックボックスや
   同意欄を囲むspanタグ、さらに送信ボタン（input.wpcf7-submit）にも
   付いているクラスのため、テキスト系の入力欄だけに絞って指定する
   （絞らないと詳細度の関係でチェックボックスや送信ボタン側の
   個別デザインに勝ってしまい、枠線・角丸などが上書きされる）。 */
.picazo-form input.wpcf7-form-control:not([type="file"]):not([type="submit"]),
.picazo-form textarea.wpcf7-form-control {
  font-size: 16px;
  padding: 12px 16px;
  border: 1px solid #000;
  border-radius: 4px;
}
.picazo-form textarea.wpcf7-form-control {
  min-height: 220px;
}
/* シミュレーターのお見積もり内容（estimate-data）：
   シミュレーターの「この内容で相談する」から来たとき（URLに?estimate=がある）
   だけ、functions.phpのJSが内容を入れて.is-filledを付けて表示する。
   普通にお問い合わせページを開いたときは行ごと表示しない。
   お客様が書き換える欄ではないのでreadonlyにし、背景をグレーにして区別する。 */
.picazo-form__row--estimate:not(.is-filled) {
  display: none;
}
.picazo-form__row--estimate textarea.wpcf7-form-control {
  background: #f5f5f5;
  font-size: 14px;
  line-height: 1.7;
  /* 高さはfunctions.phpのJSが見積もりの行数に合わせて伸ばす */
  min-height: 160px;
}

/* ラベルの途中で折り返したくない語のまとまり。
   「シミュレーターのお見積もり内容」はPCのラベル幅（240px）に1文字だけ
   収まらず「容」だけが次の行に落ちるため、語の区切りでだけ折り返させる。 */
.picazo-form__nowrap {
  display: inline-block;
}

/* 例）のプレースホルダーは薄いグレーのまま（枠線とは別色でよい） */
.picazo-form input.wpcf7-form-control::placeholder,
.picazo-form textarea.wpcf7-form-control::placeholder {
  color: #ccc;
}

/* 写真添付欄の枠 */
.picazo-form__filebox {
  border: 1px solid #000;
  border-radius: 4px;
  padding: 24px;
}
.picazo-form__filehint {
  display: block;
  text-align: center;
  color: #999;
  font-size: 14px;
  margin-bottom: 16px;
}

.picazo-form__note {
  font-size: 13px;
  font-weight: 400;
  color: #999;
  margin: 8px 0 24px;
}

.picazo-form__agree {
  max-width: 864px;
  margin: 0 auto 32px;
  text-align: center;
}

/* Cloudflare Turnstile（ボットよけ）：同意・送信ボタンと同じく中央にそろえる */
.picazo-form__turnstile {
  max-width: 864px;
  margin: 0 auto 24px;
  display: flex;
  justify-content: center;
}

/* 送信ボタン：ネイビー・大きめ */
.picazo-form__submit {
  max-width: 864px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
/* CF7が送信ボタンの右に入れる送信中マーク（.wpcf7-spinner）は、
   普段は見えないが幅24px＋左右余白24pxずつの場所を取るため、
   ボタンが左に36pxずれて中央に見えなかった。
   マークを幅に数えないよう浮かせ、ボタンだけを中央にそろえる
   （送信中はこれまでどおりボタンの右に表示される）。 */
.picazo-form__submit .wpcf7-spinner {
  position: absolute;
  top: 50%;
  margin: -12px 0 0 12px;
}
.picazo-form__submit input[type="submit"] {
  appearance: none;
  -webkit-appearance: none;
  background: var(--wp--preset--color--navy);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  width: 134px;
  padding: 16px 0;
  border: none;
  border-radius: 0;
  cursor: pointer;
}
.picazo-form__submit input[type="submit"]:hover {
  opacity: 0.9;
}

/* 「ご希望のサービス」チェックボックスを丸いラジオ風の見た目に
   （複数選択可のため機能はチェックボックスのまま、見た目だけ丸くする） */
.picazo-services .wpcf7-list-item {
  margin: 0 16px 8px 0;
}
.picazo-services .wpcf7-list-item-label {
  margin-left: 6px;
  vertical-align: middle;
}
.picazo-services input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #999;
  border-radius: 50%;
  vertical-align: middle;
  cursor: pointer;
  position: relative;
}
.picazo-services input[type="checkbox"]:checked {
  border-color: var(--wp--preset--color--navy);
}
.picazo-services input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--wp--preset--color--navy);
  transform: translate(-50%, -50%);
}

/* SPでは2カラムをやめて縦積みに */
@media (max-width: 767px) {
  .picazo-form__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .picazo-form__label {
    flex: none;
  }
  /* 縦積み（align-items:flex-start）だと入力欄の枠の幅が中身の長さで決まり、
     写真添付欄の注意書き（1行の長い文）に引っぱられて画面からはみ出していた。
     枠は画面幅いっぱいにそろえる。 */
  .picazo-form__field {
    width: 100%;
  }
  /* 写真添付欄：枠の内側の余白を詰め、「ファイルを選択 選択されていません」の
     欄が残りの幅に収まるよう縮める（はみ出す分は欄の中で隠す）。 */
  .picazo-form__filebox {
    padding: 16px 12px;
  }
  .picazo-form__fileslot .wpcf7-form-control-wrap {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
  }
  .picazo-form__fileslot .wpcf7-form-control {
    max-width: 100%;
    font-size: 14px;
  }
}


/* お問い合わせフォーム：「知ったきっかけ」（ラジオボタン・任意）
   「ご希望のサービス」と同じ丸い見た目にそろえる。選んだあとは、右端の「×」で取り消せる
   （ラジオボタンは一度選ぶと、選んでいない状態に戻せないため。写真の「×」と同じ考え方）（2026-10-21） */
.picazo-source {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.picazo-source .wpcf7-form-control-wrap {
  display: contents;
}
.picazo-source .wpcf7-form-control {
  display: contents;
}
.picazo-source .wpcf7-list-item {
  margin: 0 16px 0 0;
}
/* タップしやすいよう、文字の上下に余白を足して、押せる高さを約43pxにする */
.picazo-source .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  padding: 6px 0;
  cursor: pointer;
}
.picazo-source .wpcf7-list-item-label {
  margin-left: 6px;
}
.picazo-source input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 2px solid #999;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
}
.picazo-source input[type="radio"]:checked {
  border-color: var(--wp--preset--color--navy);
}
.picazo-source input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--wp--preset--color--navy);
  transform: translate(-50%, -50%);
}
.picazo-form__sourceclear {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--color_border--table, #ccc);
  border-radius: 50%;
  background: #fff;
  color: #666;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.picazo-form__sourceclear:hover {
  background: #f2f2f2;
}