@charset "UTF-8";
/* ===== 紹介会社・派遣会社様 専用フォーム（/agent/）だけの見た目 =====
   入力欄・確認画面・完了画面の基本は、今のお問い合わせ（style.css の .contact／.contact-confirm／.contact-thanks）をそのまま使い、
   足りない所だけをここに書く。style.css は組み立てた完成品なので触らない。 */

/* 冒頭の案内・STEP の見出し・小見出し */
.contact.agent h1 br.ag-sp { display: none; }
.contact .ag-lead { max-width: 1000px; margin: 0 auto 30px; font-size: 17px; line-height: 1.9; background: #F2F2F2; border-radius: 5px; padding: 18px 24px; }
.contact .ag-step { max-width: 1060px; margin: 40px auto 10px; background: #39B54A; color: #fff; font-size: 22px; font-weight: bold; padding: 10px 20px; border-radius: 5px; }
.contact .ag-step small { font-size: 15px; font-weight: normal; margin-left: 12px; }
.contact .ag-sub { max-width: 1060px; margin: 24px auto 0; font-size: 18px; font-weight: bold; border-left: 6px solid #F7931E; padding-left: 10px; }

/* 選択肢・補足 */
.contact .row .body label.ag-c { display: inline-block; margin: 4px 18px 4px 0; font-size: 16px; white-space: nowrap; cursor: pointer; }
.contact .row .body label.ag-c small { font-size: 13px; color: #666; }
.contact .row .body .ag-help { display: block; font-size: 14px; color: #666; margin-top: 4px; line-height: 1.6; }
.contact .row .body input.ag-short { width: 140px; }
.contact .row .body input.ag-mid, .contact .row .body select.ag-mid { width: 360px; }
.contact .row .body input.ag-opt { background-color: #F2F2F2; border: 1px solid #E6E6E6; }
/* 人材紹介のみの職種を選んだときの「人材派遣」（選べない）と、選択を外したときのお知らせ */
.contact .row .body label.ag-c.ag-off { color: #BDBDBD; cursor: not-allowed; }
.contact .row .body .ag-help.ag-alert { color: #C62828; font-weight: bold; }

/* 2行以上になる欄は、高さを中身に合わせる（今のフォームは高さ50pxで固定のため） */
.contact .ag-form .row .body { height: auto; min-height: 50px; line-height: 1.7; padding-top: 8px; padding-bottom: 8px; }
.contact .ag-form .row .body.last { height: auto; }
.contact .ag-form .row .head { height: auto; min-height: 50px; line-height: 1.4; display: flex; align-items: center; padding-right: 78px; box-sizing: border-box; }
.contact .row.ag-docs .body { font-size: 16px; line-height: 1.8; }

/* 「任意」の印（パソコンは見出しの右・スマホは見出しの横） */
.contact .row .head.ag-nini { position: relative; }
.contact .row .head.ag-nini:after { position: absolute; content: "任意"; right: 15px; top: 50%; margin-top: -12px; width: 53px; height: 24px; line-height: 24px; text-align: center; background: #9E9E9E; color: #fff; font-size: 14px; font-weight: bold; border-radius: 3px; }
.contact .row .hissu-icon.ag-nini-icon { background-color: #9E9E9E; }

/* 選んだ内容によって出す欄 */
.contact .row.ag-cond { display: none; }
.contact .row.ag-cond.show { display: flex; }
.contact .ag-block { display: none; }
.contact .ag-block.show { display: block; }

/* 判定の結果 */
.contact .ag-check { text-align: center; margin: 30px 0 10px; }
.contact .ag-check .btn1:disabled { opacity: 0.6; cursor: wait; }
.contact .ag-result { max-width: 1000px; margin: 20px auto; border-radius: 6px; padding: 22px 26px; font-size: 18px; line-height: 1.8; }
.contact .ag-result.ok { background: #E0FFE8; border: 3px solid #39B54A; }
.contact .ag-result.ng { background: #FFF1F1; border: 3px solid #E53935; }
.contact .ag-result .t { font-weight: bold; font-size: 20px; margin-bottom: 4px; }
.contact .ag-result.ok .t { color: #1E8E3E; }
.contact .ag-result.ng .t { color: #C62828; }

/* 機械による送信を見分ける欄（人には見せない） */
.ag-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* 確認画面 */
.agent-confirm .ag-csub { box-sizing: border-box; width: 65%; margin: 40px auto 10px; font-size: 20px; font-weight: bold; border-left: 6px solid #F7931E; padding-left: 10px; }
.agent-confirm .body { font-size: 20px; line-height: 1.6; padding-top: 6px; padding-bottom: 10px; word-break: break-all; }
.agent-confirm .kakunin .btn-fin:disabled { opacity: 0.6; }

/* 完了画面・エラーの画面 */
.agent-thanks h2 br.ag-sp { display: none; }
.agent-error .ag-errors { list-style: disc; padding-left: 1.5em; font-size: 19px; line-height: 36px; }
.agent-error .ag-back { margin-top: 40px; text-align: center; }
.agent-error .ag-back-btn { display: inline-block; padding: 14px 40px; background: #CCCCCC; color: #fff; font-size: 20px; font-weight: bold; border-radius: 5px; text-decoration: none; }

/* スマホの画面下の「見学予約・お問い合わせ」の帯（入居のお問い合わせ先）は、このフォームでは出さない */
main.agent ~ #sp-fixmenu, main.agent-confirm ~ #sp-fixmenu, main.agent-thanks ~ #sp-fixmenu, main.agent-error ~ #sp-fixmenu { display: none !important; }

@media screen and (max-width: 375px) {
  /* 帯の分としてフッターの下に取ってある余白（100px）も要らない */
  main.agent ~ footer, main.agent-confirm ~ footer, main.agent-thanks ~ footer, main.agent-error ~ footer { margin-bottom: 0; }

  /* 見出しは2行になるので、高さ（今は60pxで固定）を中身に合わせる */
  .contact.agent h1 { height: auto; line-height: 1.4; padding: 10px 0; }
  .contact.agent h1 br.ag-sp { display: inline; }
  .contact .ag-form .row .head { padding-right: 0; min-height: 40px; }
  .contact .row .head.ag-nini:after { display: none; }
  .contact .row.ag-cond.show { display: block; }
  .contact .ag-lead, .contact .ag-result { margin-left: 10px; margin-right: 10px; padding: 14px; font-size: 16px; }
  .contact .ag-step, .contact .ag-sub { margin-left: 10px; margin-right: 10px; font-size: 18px; }
  .contact .ag-step small { display: block; margin-left: 0; line-height: 1.5; margin-top: 2px; }
  .contact .row .body label.ag-c { white-space: normal; }
  .contact .row .body input.ag-mid, .contact .row .body select.ag-mid { width: 100%; }

  /* 確認画面の見出しは、スマホでは1行に収める（今の大きさ36pxだと「くだ／さい」と折れる） */
  .agent-confirm h2 { font-size: 24px; margin-bottom: 30px; }
  .agent-confirm .ag-csub { width: 90%; font-size: 18px; }
  .agent-confirm .body { font-size: 18px; }
  .agent-thanks h2 br.ag-sp { display: inline; }
  /* 完了画面・エラーの画面の見出しも、スマホでは言葉の途中で折れない大きさに */
  .agent-thanks h2, .agent-error h2 { font-size: 18px; line-height: 1.7; padding-left: 10px; padding-right: 10px; }
  .agent-thanks .thanks, .agent-error .thanks { width: auto; padding-left: 15px; padding-right: 15px; }
  .agent-thanks .thanks p { font-size: 16px; line-height: 1.8; }
  .agent-error .ag-errors { font-size: 16px; line-height: 1.8; }
}
