/***** RPOサイト　FV埋め込みフォーム *****/

/* =====================================
   全体設定
===================================== */
.p-serve-detail-mv__form-content {
  min-width: 420px;
}
.rpo-fv-form {
  color: #282a32;
  -webkit-text-size-adjust: 100%;
  letter-spacing: 0.05em;
  margin: 0 !important;
  padding: 0 !important;
  width: 400px;
  min-height: 470px;
}
.p-serve-detail-mv__form-title {
  text-align: center;
}

.rpo-fv-form .hbspt-form .hs-form-field {
  margin: 0 0 4px !important;
}

/* =====================================
   入力フィールド共通スタイル
===================================== */
.rpo-fv-form .hbspt-form .hs-input {
  font-size: 13px;
  line-height: 21px;
  padding: 5px;
  border: 1px solid #707070;
  border-radius: 3px;
  outline: none;
  transition: all 0.3s;
}

/* 無効入力時の背景色固定 */
.rpo-fv-form .hbspt-form input:invalid,
.rpo-fv-form .hbspt-form select:invalid {
  background: #ffffff !important;
}

/* ---------- 1カラム設定 ---------- */
.rpo-fv-form .hbspt-form .form-columns-1 .hs-input {
  background: #ffeddf !important;
  width: 305px;
  box-sizing: border-box!important; /* 枠・paddingも含めて幅計算 */
}

.rpo-fv-form .hbspt-form .form-columns-1 .hs-fieldtype-text,
.rpo-fv-form .hbspt-form .form-columns-1 .hs-fieldtype-textarea,
.rpo-fv-form .hbspt-form .form-columns-1 .hs-fieldtype-select,
.rpo-fv-form .hbspt-form .form-columns-1 .hs-fieldtype-checkbox,
.rpo-fv-form .hbspt-form .form-columns-1 .hs-fieldtype-phonenumber {
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  padding: 6px 0;
}

/* ---------- 2カラム設定 ---------- */
.rpo-fv-form .hbspt-form .form-columns-2 .hs-input {
  max-width: 128px;
  background: #ffeddf !important;
  margin-right: 0 !important;
}

.rpo-fv-form .hbspt-form .form-columns-2 .hs-fieldtype-text {
  display: flex;
  flex-wrap: wrap;
  padding: 6px 0;
}

.rpo-fv-form .hbspt-form .form-columns-2 .hs_lastname { width: 55%; }
.rpo-fv-form .hbspt-form .form-columns-2 .hs_firstname { width: 45%; }

.rpo-fv-form .hbspt-form .form-columns-2 .hs_lastname span { margin: 0 60px 0 0; }
.rpo-fv-form .hbspt-form .form-columns-2 .hs_firstname span { margin: 0 10px 0 5px; }

/* =====================================
   ラベル・必須マーク
===================================== */
/* 1カラム */
.rpo-fv-form .hbspt-form .form-columns-1 span {
  display: inline-block;
  width: 80px;
  padding: 5px 5px 5px 0;
  font-size: 14px;
  font-weight: bold;
  color: #141413;
}

/* 2カラム */
.rpo-fv-form .hbspt-form .form-columns-2 span {
  display: inline-block;
  width: 20px;
  padding: 5px 0;
  font-size: 14px;
  font-weight: bold;
  color: #141413;
}

/* HubSpot既定の必須マークを非表示 */
.rpo-fv-form .hbspt-form .form-columns-1 span.hs-form-required,
.rpo-fv-form .hbspt-form .form-columns-2 span.hs-form-required {
  display: none;
}

/* =====================================
   セレクトボックスカスタマイズ
===================================== */
.rpo-fv-form .hbspt-form .hs-fieldtype-select .input {
  position: relative;
}

.rpo-fv-form .hbspt-form .hs-fieldtype-select .input::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 1em;
  height: 1em;
  background: url("https://www.manpowergroup.jp/assets/images/arrow-down.svg") no-repeat center / 80% 80%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
}

/* =====================================
   エラーメッセージ
===================================== */
.rpo-fv-form .hbspt-form .no-list.hs-error-msgs.inputs-list {
  line-height: 11px;
  font-size: 10px;
  color: red;
}

/* =====================================
   各フィールドレイアウト調整
===================================== */
.rpo-fv-form .hbspt-form .field {
  margin-bottom: 5px;
  padding: 0 2px;
}

/* 個人情報フィールド */
.rpo-fv-form .hbspt-form .hs_personal_information .hs-input {
  width: auto !important;
  font-weight: normal;
}

.rpo-fv-form .hbspt-form .form-columns-1 .hs_personal_information {
  text-align: center;
}

.rpo-fv-form .hbspt-form .form-columns-1 .hs_personal_information span {
  padding-left: 6px;
  font-size: 1rem;
}

/* 同意文 */
.rpo-fv-form .hbspt-form .form-columns-1 .legal-consent-container .hs-richtext {
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
}

/* 注意書きなどのテキストブロック */
.rpo-fv-form .hbspt-form .form-columns-0 .hs-richtext p {
  height: 20px;
  padding: 0;
  text-align: left;
  color: #141413;
  font-size: 1rem;
  font-weight: normal;
  background-color: #fff;
  position: sticky;
  top: 0;
  z-index: 1;
}

/* =====================================
   送信ボタン
===================================== */
.rpo-fv-form .hbspt-form .actions {
  margin-top: 1em;
  padding-bottom: 6px;
  text-align: center;
}

.rpo-fv-form .hbspt-form .actions .hs-button {
  width: 100%;
  max-width: 380px;
  height: 50px;
  background: #386097;
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  padding: 5px 0;
  border: 1px solid #386097;
  border-radius: 5px;
}

.rpo-fv-form .hbspt-form .actions .hs-button:hover {
  opacity: 0.7;
}

/* =====================================
   レスポンシブ対応
===================================== */
@media screen and (max-width: 767px) {
  /* フォーム全体を囲むコンテナ */
  .p-serve-detail-mv__form-content {
    min-width: 340px !important;
    max-width: 360px;
    margin: auto;
  }

  /* HubSpotフォームのラッパー */
  .rpo-fv-form {
    width: 300px !important;
    padding: 0;
    margin: auto;
  }

  /* 2カラムレイアウトの調整 */
  .rpo-fv-form .hbspt-form .form-columns-2 {
    display: flex; /* 横並び */
    width: 305px;
  }

  /* 入力欄のスタイル */
  .rpo-fv-form .hbspt-form .form-columns-2 .hs-input {
    max-width: 160px;
    background: #ffeddf !important;
    margin: 0 !important;
  }

  /* 名前の入力欄（姓）の余白 */
  .hs_lastname .hs-fieldtype-text .hs-form-field {
    margin-right: 0 !important;
  }
  
  /* フォームの各行（フィールド）の間隔を調整 */
  .hs-form-field {
    padding: 0 !important;
  }

  /* ラベルと入力欄を囲む要素の間隔を調整 */
  .hs-form-field span {
    width: 100% !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
  }
  .rpo-fv-form .hbspt-form .no-list.hs-error-msgs.inputs-list {
    line-height: 11px;
    font-size: 8px;
    color: red;
  }
}