/* page-agencies-contact.php 専用のスタイル */
@layer kbt-mock {
  /* お問い合わせページと同じ作り。サイド欄を外した1カラムで、
     枠の幅は他のセクションに合わせ、中身だけ読みやすい幅に収めます。 */
  .formwrap{grid-template-columns:1fr}
  .formmain>*{max-width:640px;margin-inline:auto}
  /* フォームの見出しとリードは中央揃え */
  .formmain h3,
  .formmain>.lead{text-align:center}
  /* 見出し→リード文は近く、リード文→入力欄はしっかり空けます */
  .formmain h3{margin-bottom:14px}
  .formmain>.lead{margin-bottom:36px}

  /* 送信前の同意事項。1つの枠の中に「折りたたんだ前提条件」と「同意チェック」を収めます */
  .termcard{border:1px solid var(--line);background:var(--paper);padding:18px 20px}
  .termcard details{margin-bottom:14px}
  .termcard summary{
    position:relative;list-style:none;cursor:pointer;
    padding:2px 0 2px 24px;font-size:15px;font-weight:700;color:var(--ink)}
  .termcard summary::-webkit-details-marker{display:none}
  /* 開閉を示す三角。開いたら下向きに回します */
  .termcard summary::before{
    content:"";position:absolute;left:4px;top:.62em;
    border:5px solid transparent;border-left-color:var(--brass);
    transition:transform .2s;transform-origin:2px 50%}
  .termcard details[open] summary::before{transform:rotate(90deg)}
  .termcard summary:hover{color:var(--brass)}
  .termcard details[open] summary{margin-bottom:14px;padding-bottom:12px;border-bottom:1px solid var(--line)}
  /* チェックは枠の中で白く抜いて、読み物と操作を見分けやすくします */
  .termagree{background:var(--white);margin-top:10px}
  .termcard h4{font-size:18px;font-weight:700;margin-bottom:14px}
  .termcard dl{display:grid;grid-template-columns:auto 1fr;gap:11px 22px;font-size:14px;align-items:baseline}
  .termcard dt{color:var(--muted);white-space:nowrap;font-size:14px}
  .termcard dd{color:var(--ink);line-height:1.75}
  @media (max-width:700px){ .termcard dl{grid-template-columns:1fr;gap:2px 0} .termcard dt{margin-top:9px} }

  /* ===== 入力欄：仮予約フォーム（reservation.css）と同じ作り =====
     ラベル左・入力右の行（.frow）。名・姓のように1つの値は .two で横並び。 */
  .formmain>*{max-width:760px}
  .formmain .frow{display:grid;grid-template-columns:180px 1fr;gap:20px;padding:16px 0;border-bottom:1px solid #ece8e2;align-items:start}
  .formmain .frow>label,.formmain .frow .lbl{font-size:14px;font-weight:700;padding-top:9px;color:#2b2723;margin:0;letter-spacing:0}
  .formmain .reqnote{font-size:14px;color:#a8a29a;margin-bottom:8px}
  .formmain .reqnote .req{margin-left:0;margin-right:3px}
  .fin input[type=text],.fin input[type=email],.fin input[type=tel],.fin input[type=number],.fin select,.fin textarea{
    width:100%;font:inherit;font-size:14px;padding:11px 13px;border:1px solid #d8d3cc;background:var(--white);color:var(--ink);border-radius:3px}
  .fin input:focus,.fin select:focus,.fin textarea:focus{outline:2px solid var(--brass);outline-offset:-1px;border-color:var(--brass)}
  .fin .two{display:grid;grid-template-columns:1fr 1fr;gap:12px}
  .fin .hint{font-size:14px;color:#a8a29a;margin-top:7px;line-height:1.75}
  .formmain .frow+.field,.formmain .frow+.btn{margin-top:22px}
  @media (max-width:820px){
    .formmain .frow{grid-template-columns:1fr;gap:8px;padding:14px 0}
    .formmain .frow>label,.formmain .frow .lbl{padding-top:0}
    .fin .two{grid-template-columns:1fr}
  }

  /* 送信後の表示（inc/inquiry.php から ?sent=1 で戻ってきたとき） */
  /* 白い枠の中にさらに枠ができないよう、本文は枠なしで見出し（中央揃え）の下に置きます */
  .iq-sent{max-width:600px;text-align:center}
  .iq-sent__ttl{font-size:18px;font-weight:700;margin-bottom:10px;color:var(--ink)}
  .iq-sent p{font-size:15px;line-height:1.9;color:#4f5761}
  .iq-form{position:relative}
  /* 送信後は ?sent=1#agency-form で読み直します。mock.css の smooth のままだとページの先頭から
     流れるようにスクロールするので、このページでは演出なしでフォームの位置に表示します */
  html{scroll-behavior:auto}
}
