/* 人材紹介エントリーフォーム（page-agent-entry.php）
   基本の見た目は style.css の CONTACT（.mw_wp_form）を使い、ここでは不足分だけ追加する */

/* ご利用にあたって */
.agtFormNote {
  background: #F2F5F9;
  border-radius: 4px;
  padding: 22px 28px;
  margin-top: 40px;
  font-size: 1.4rem;
  line-height: 1.9;
}
.agtFormNote__ttl {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0C1D42;
  margin-bottom: 6px;
}

/* セクション見出し（01 基本情報 など） */
.agtForm .agtFormSec {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 80px 0 10px;
}
.agtForm form > .agtFormSec:first-child {
  margin-top: 60px;
}
.agtForm .agtFormSec span {
  font-size: 2.8rem;
  color: #0C1D42;
  letter-spacing: 0.02em;
}
.agtForm .agtFormSec__lead {
  font-size: 1.4rem;
  color: #555555;
  margin-bottom: 24px;
}
.agtForm .mw_wp_form form table {
  margin-top: 0;
}
.agtForm .mw_wp_form form th small {
  display: block;
  font-size: 1.2rem;
  color: #666666;
  margin-top: 4px;
}

/* ラジオボタン（チェックボックスと同じ配色） */
.agtChoice--radio {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 30px;
  padding: 10px 0;
}
.agtChoice--radio .horizontal-item,
.agtChoice--radio .horizontal-item + .horizontal-item {
  margin: 0;
}
.agtChoice--radio label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1.5;
}
.mw_wp_form .agtChoice--radio input[type="radio"] {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 0 10px 0 0;
  border: 1px solid #84B2E0;
  border-radius: 50%;
  background: #F8F8F8;
  cursor: pointer;
  transition: box-shadow .2s, background-color .2s;
}
.mw_wp_form .agtChoice--radio input[type="radio"]:checked {
  background: #0C1D42;
  box-shadow: inset 0 0 0 4px #F8F8F8;
}
.mw_wp_form .agtChoice--radio input[type="radio"]:focus-visible,
.agtSelect select:focus-visible {
  outline: 2px solid #84B2E0;
  outline-offset: 2px;
}

/* 都道府県プルダウン */
.agtSelect {
  position: relative;
  max-width: 360px;
}
.agtSelect select {
  width: 100%;
  background-color: #F8F8F8;
  border: 1px solid #84B2E0;
  border-radius: 4px;
  padding: 8px 40px 8px 8px;
  font-size: 1.4rem;
  color: inherit;
  cursor: pointer;
}
.agtSelect::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 16px;
  width: 7px;
  height: 7px;
  margin-top: -6px;
  border-right: 1.5px solid #0C1D42;
  border-bottom: 1.5px solid #0C1D42;
  transform: rotate(45deg);
  pointer-events: none;
}

/* 年齢（「歳」を横に並べる） */
.agtForm .mw_wp_form input.inputShort {
  margin-bottom: 0;
  margin-right: 8px;
}

/* 個人情報の同意 */
.agtFormAgree {
  text-align: center;
  margin-top: 60px;
  font-size: 1.4rem;
}
.agtFormAgree__txt {
  margin-bottom: 10px;
}
.agtFormAgree__txt a {
  text-decoration: underline;
}
.agtFormAgree__txt a:hover {
  text-decoration: none;
}

/* 確認画面：入力の案内文は不要なので隠す */
.mw_wp_form_confirm .agtFormSec__lead,
.mw_wp_form_confirm .agtFormAgree__txt,
.mw_wp_form_confirm .agtSelect::after {
  display: none;
}
.mw_wp_form_confirm .agtSelect,
.mw_wp_form_confirm .agtChoice--radio {
  display: block;
  padding: 0;
}

@media (max-width: 767px) {
  .agtFormNote {
    padding: 18px 18px;
    margin-top: 30px;
  }
  .agtForm .agtFormSec {
    font-size: 1.8rem;
    gap: 10px;
    margin-top: 60px;
  }
  .agtForm form > .agtFormSec:first-child {
    margin-top: 40px;
  }
  .agtForm .agtFormSec span {
    font-size: 2.2rem;
  }
  .agtForm .agtFormSec__lead {
    margin-bottom: 16px;
  }
  .agtChoice--radio {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0;
  }
  .agtSelect {
    max-width: 100%;
  }
  .agtFormAgree {
    text-align: left;
    margin-top: 40px;
  }
}

/* チェックボックス：長い項目は折り返してもテキスト側に揃える */
.agtChoice--checkbox label {
  display: inline-flex;
  align-items: flex-start;
}
.agtChoice--checkbox input[type="checkbox"] {
  flex: 0 0 auto;
  margin: 11px 8px 0 0;
}
