/* =====================
  変数定義
===================== */
:root {
  /* 現在のステップ 色 */
  --active-color: var(--black);
  /* 現在のステップ 円の影色 */
  --active-shadow-color: rgba(232, 129, 33, 0.2);
  --active-shadow-size: 0 0 0 8px;
  --shadow-size: 0 0 0 6px;
  /* 現在のステップ 円のサイズ */
  --circle-width: 11px;
  /* 非活性ステップの色 */
  --inactive-color: #AFAFAE;
  /* フォーム下線 */
  --form-border: #e6e6e6;
  /* フォームパーツ背景 */
  --input-bgcolor: #f0f0f0;
}


/* レイアウト */

.second-mv {
  position: relative;
}
.second-mv::after{
  content: "";
  background-color: var(--lightgray);
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 284px;
  z-index: -1;
}
.bg{
  background-color: var(--lightgray);
  padding-top: 65px;
  padding-bottom: 105px;
}
.text{
  width: 1200px;
  margin: 0 auto 55px;
}
.content01{
  margin: 0 auto ;
  padding: 77px 150px;
  background-color: var(--white);
  width: 1200px;
}

/* =====================
  Step
  <div class="step">
    <span class="active">入力</span>
    <span>確認</span>
    <span>完了</span>
  </div>
===================== */
.step {
  width: 288px;
  height: 59px;
  margin-inline: auto;
  position: relative;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  margin-bottom: 34px;
}
/* 横線 */
.step::before {
  content: '';
  width: 90%;
  height: 1px;
  top: 19px;
  background: var(--inactive-color);
  display: block;
  position: absolute;
  left: 50%;
  translate: -50% 0;
}
/* 文字 */
.step span {
  display: block;
  position: absolute;
  font-weight: bold;
  line-height: 1;
  bottom: 4px;
  font-size: 14px;
  color: var(--inactive-color);
}
.step span:nth-child(1) {
  left: 0;
}
.step span:nth-child(2) {
  left: 50%;
  translate: -50% 0;
}
.step span:nth-child(3) {
  right: 0;
}
/* 円 */
.step span::before {
  content: '';
  display: block;
  position: absolute;
  top: -27px;
  left: 8px;
  width: 11px;
  aspect-ratio: 1 / 1;
  background: var(--inactive-color);
  border-radius: calc(infinity * 1px);
}
.step span:nth-child(2)::before {
  left: 50%;
  transform: translateX(-50%);
}
.step span:nth-child(3)::before {
  right: 0;
}

/* active */
.step span.active {
  color: var(--orange);
}
.step span.active::before {
  background: currentColor;
  box-shadow: var(--active-shadow-size) var(--active-shadow-color);
}

/* =====================
  form-table
===================== */
.form-table {
  display: block;
  max-width: 900px;
  margin-inline: auto;
}
.form-table :where(tbody, tr, td) {
  display: block;
}
.form-table tr {
  padding-top: 35px;
  padding-bottom: 43px;
  border-bottom: 1px solid var(--form-border);
}
.form-table tr:last-child {
  border-bottom: 1px solid transparent;
}
.form-table tr:focus-within th {
  color: var(--active-color);
}
.form-table th {
  font-weight: bold;
}
.form-table td {
  margin-top: 20px;
}

/* ==== 必須・任意 ==== */
.form-table:not([confirm]) th::before {
  content: '任意';
  color: white;
  font-size: 13px;
  background-color: var(--inactive-color);
  margin-right: 0.1em;
  padding-block: 1px;
  padding-inline: 5px;
}
.form-table:not([confirm]) .must th::before {
  content: '必須';
  color: #B40000;
  border: 1px solid #B40000;
  background-color: var(--white);
}

/* ==== フォームパーツ ==== */
.yubin{
  font-weight: bold;
  padding-left: 16px;
}
.kome{
  font-size: 14px;
}
.form-table input:where([type='text'], [type='tel'], [type='url'], [type='email']) {
  width: 100%;
  font-weight: normal;
}
.form-table input:where([type='text'], [type='tel'], [type='url'], [type='email']),
.form-table :where(select, textarea) {
  padding: 1em;
  background-color: var(--input-bgcolor);
  transition: outline 250ms ease 0s;
}
.form-table textarea {
  width: 100%;
  min-height: 256px;
}
.form-table input:where([type='text'], [type='tel'], [type='url'], [type='email']):user-invalid,
.form-table :where(select, textarea):user-invalid {
  outline: 1px solid #d00;
}
.form-table input:where([type='text'], [type='tel'], [type='url'], [type='email']):focus,
.form-table :where(select, textarea):focus {
  outline: 1px solid var(--active-color);
}

/* Email確認 */
.form-table input[name='email_confirm'],
.form-table input[name='address'] {
  margin-top: 1.1em;
}
/* 郵便番号エリア */
.form-table .postalcode-wrapper {
  display: flex;
  gap: 15px;
  align-items: center;
}
.form-table .postalcode-wrapper span:first-child {
  font-weight: bold;
  padding-left: 16px;
}
.form-table .postalcode-wrapper span:last-child {
  font-size: 14px;
}
.form-table input:where([name='birth'], [name='tel']) {
  width: 280px;
  margin-right: 10px;
}
.form-table input[name='postalcode'] {
  width: 206px;
  margin-inline: 11px;
}

/* ==== 同意 ==== */
.form-agree {
  width: -moz-fit-content;
  width: fit-content;
  margin-top: 20px;
  margin-inline: auto;
}
.form-agree input[type='checkbox'] {
  cursor: pointer;
  width: 14px;
  vertical-align: middle;
  accent-color: var(--active-color);
  aspect-ratio: 1 / 1;
}
.form-agree label {
  padding-left: 0em;
  font-weight: bold;
}
.form-agree a {
  text-decoration: underline;
}

/* =====================
  フォームのボタン
===================== */
.form-button {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-top: 45px;
  gap: 32px;
  font-weight: bold;
}
.btn_next button{
  display: flex;
  gap: 26px;
  align-items: center;
  border: 1px solid var(--black);
  border-radius: calc(infinity * 1px);
  padding: 12px 21px 12px 33px;
}
.btn_next button::after {
  content: "";
  background-image: url(../../img/common/arrow.png);
  background-size: contain;
  background-repeat: no-repeat;
  width: 30px;
  height: 6px;
}
.btn_back button{
  color: #635F5C;
  border-bottom: 1px solid #635F5C;
  line-height: 1;
  font-weight: bold;
}

/* ==== 戻るボタン ==== */
.return {
  color: #989898;
  width: -moz-fit-content;
  width: fit-content;
  margin-inline: auto;
  text-decoration: underline;
}

/* =====================
  確認画面の幅
===================== */
.form-table[confirm] tr {
  padding-top: 32px;
  padding-bottom: 8px;
}

/* 確認画面の幅 */
.form-table[confirm] td {
  margin-top: 8px;
}

/* =====================
  完了ページ
===================== */
.form-complete {
  margin-top: 72px;
}

/* =====================
  履歴書
===================== */
.resume {
  display: flex;
  align-items: center;
  position: relative;
}
.resume-btn {
  width: 246px;
  border-radius: calc(infinity * 1px);
  position: relative;
  display: inline-block;
  cursor: pointer;
  padding-block: 1.5em;
  background-color: var(--input-bgcolor);
  color: var(--blue);
  text-align: center;
  flex-shrink: 0;
  font-weight: bold;
}
.resume-btn span{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1;
}
.resume-btn span::before{
  content: "";
  background-image: url(../../img/recruit/add.png);
  background-size: contain;
  background-repeat: no-repeat;
  width: 14px;
  height: 14px;
  color: var(--blue);
  font-size: 16px;
  font-weight: bold;
}
.resume-tmp-title {
  text-align: left;
  display: block;
  padding-left: 1em;
  white-space: nowrap;
  line-height: 1;
  width: 262px;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.resume input[name='resume'] {
  display: none;
}
.resume-text {
  margin-top: 10px;
  font-size: 14px;
}
.resume-cancel {
  position: absolute;
  top: 50%;
  transform: translateY(-133%);
  width: 24px;
  aspect-ratio: 1 / 1;
  right: 3px;
  background-color: #F1F3F8;
  border-radius: calc(infinity * 1px);
  z-index: 2;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  transition: all 300ms ease 0s;
}
.resume-cancel::before,
.resume-cancel::after {
  content: '';
  display: block;
  width: 11px;
  height: 2px;
  background: #5D5F64;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transform-origin: 0 0;
}
@supports (rotate: 0 0 1 45deg) {
  .resume-cancel::before {
    rotate: 0 0 1 45deg;
  }
  .resume-cancel::after {
    rotate: 0 0 1 -45deg;
  }
}

/* confirm */

.confirm tbody tr{
  display: flex;
}
.confirm tbody tr th{
  width: 224px;
}
.confirm .form-table:not([confirm]) th::before {
  content: none;
}
.confirm .form-table:not([confirm]) .must th::before {
  content: none;
}
.confirm .form-table td {
  margin-top: 0;
  width: 596px;
}
.confirm .form-table tr:last-child{
  border-bottom: 1px solid var(--form-border);
}
.confirm .content01 {
  margin: 0 auto;
  padding: 72px 150px;
  background-color: var(--white);
  width: 1200px;
}
.confirm .form-table tr {
  padding-top: 34px;
  padding-bottom: 29px;
  padding-inline: 40px;
  border-bottom: 1px solid var(--form-border);
}
.confirm　.form-button {
  margin-top: 38px;
}

/* complate */
.complate .content01{
  background: none;
  padding: 0;
  text-align: center;
}
.complate h2{
  font-size: 28px;
  margin: 53px 0 23px;
}
.complate .btn_next a{
  margin-top: 56px;
  display: inline-block;
  font-weight: bold;
  color: var(--black);
}

.complate .btn_next span{
  display: flex;
  gap: 26px;
  align-items: center;
  border: 1px solid var(--black);
  border-radius: calc(infinity * 1px);
  padding: 12px 21px 12px 33px;
}
.complate .btn_next span::after {
  content: "";
  background-image: url(../../img/common/arrow.png);
  background-size: contain;
  background-repeat: no-repeat;
  width: 30px;
  height: 6px;
}