/* =====================
  変数定義
===================== */
: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: 53.466667vw;
  z-index: -1;
}
.bg{
  background-color: var(--lightgray);
  padding-top: 10.666666666666666vw ;
  padding-bottom: 21.333333333333332vw;
}
.text{
  padding: 0 4.666666666666667vw ;
}
.content01{
  margin: 10.666666666666666vw 4.666666666666667vw 0;
  background-color: var(--white);
  padding: 9.6vw 5.333333333333333vw 12.8vw;
}

/* =====================
  Step
  <div class="step">
    <span class="active">入力</span>
    <span>確認</span>
    <span>完了</span>
  </div>
===================== */
.step {
  width: 46.4vw;
  height: 15.7vw;
  margin-top: 0;
  margin-inline: auto;
  position: relative;
  pointer-events: none;
  user-select: none;
}
/* 横線 */
.step::before {
  content: '';
  width: 94%;
  height: 1px;
  top: 4.4vw;
  background: var(--inactive-color);
  display: block;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
/* 文字 */
.step span {
  display: block;
  position: absolute;
  font-weight: bold;
  line-height: 1;
  font-size: calc((100 / 750) * 8 * 3.2 * 1vw);
  bottom: -1px;
  color: var(--inactive-color);
}
.step span:nth-child(1) {
  left: -3vw;
}
.step span:nth-child(2) {
  left: 50%;
  transform: translateX(-50%);
}
.step span:nth-child(3) {
  right: 0;
}

/* 円 */
.step span::before {
  content: '';
  display: block;
  position: absolute;
  top: -9.6vw;
  width: calc((100 / 750) * 7 * 3.1 * 1vw);
  aspect-ratio: 1 / 1;
  background: var(--inactive-color);
  border-radius: calc(infinity * 1px);
}
.step span:nth-child(1)::before {
  left: 1.5vw;
}
.step span:nth-child(2)::before {
  left: 50%;
  transform: translateX(-50%);
}
.step span:nth-child(3)::before {
  right: 1.5vw;
}

/* 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;
  margin-inline: auto;
  font-size: calc((100 / 750) * 30 * 1vw);
  margin-top: 5.333333333333333vw;
}
.form-table :where(tbody, tr, td) {
  display: block;
}
.form-table tr {
  padding-block: 6.466667vw;
  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: 1.266667vw;
}

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

/* ==== フォームパーツ ==== */

.yubin{
  font-weight: bold;
}
.kome{
  font-size: 2.933333333333333vw;
}
.td-flex{
  display: flex;
  align-items: center;
  gap: 1.133333vw;
}
.form-table input:where([type='text'], [type='tel'], [type='url'], [type='email']) {
  width: 100%;
}
.form-table input:where([type='text'], [type='tel'], [type='url'], [type='email']),
.form-table :where(select, textarea) {
  padding-block: 4.2vw;
  padding-inline: 3vw;
  background-color: var(--input-bgcolor);
  transition: outline 250ms ease 0s;
}
.form-table textarea {
  width: 100%;
  min-height: calc((100 / 750) * 372 * 1vw);
}
.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: 1em;
}
/* 郵便番号エリア */
.form-table .postalcode-wrapper {
  display: flex;
  gap: 3vw 3vw;
  flex-wrap: wrap;
  align-items: center;
}
.form-table .postalcode-wrapper:has([name='postalcode']) {
  flex-wrap: nowrap;
}
.form-table .postalcode-wrapper:has([name='postalcode']) span:last-child {
  text-indent: 0;
  padding-left: 0;
}
.form-table .postalcode-wrapper span:first-child {
  font-weight: bold;
  padding-left: 1.9vw;
}
.form-table .postalcode-wrapper span:last-child {
  font-size: calc((100 / 750) * 22 * 1vw);
  margin-top: 0;
  text-indent: -1em;
  word-break: break-all;
  padding-left: 1em;
}
.form-table .postalcode-wrapper span:last-child br {
  display: none;
}
.form-table input:where([name='postalcode'], [name='birthday'], [name='tel']) {
  width: 37.333333333333336vw;
}
.form-table input:where([name='birth'], [name='tel']) {
  width: 100%;
}
.form-table input[name='postalcode'] {
  width: calc((100 / 750) * 292 * 1vw);
}
.form-table input[name='postalcode'] + span {
  padding-left: 0;
  width: calc((100 / 750) * 257 * 1vw);
}

/* ==== 同意 ==== */
.form-agree {
  width: -moz-fit-content;
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 2vw;
  margin-top: 3.5vw;
  margin-inline: auto;
  font-size: calc((100 / 750) * 30 * 1vw);
}
.form-agree input[type='checkbox'] {
  cursor: pointer;
  width: 4.7vw;
  vertical-align: bottom;
  accent-color: var(--active-color);
  aspect-ratio: 1 / 1;
  margin: 0;
}
.form-agree label {
  font-weight: bold;
}
.form-agree a {
  text-decoration: underline;
}

/* =====================
  フォームのボタン
===================== */
.form-button {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-top: calc((100 / 750) * 8 * 10.4 * 1vw);
  gap: 9vw;
}
.btn_next button{
  font-weight: bold;
  display: flex;
  gap: 8.533333333333333vw;
  align-items: center;
  border: 1px solid var(--black);
  border-radius: calc(infinity * 1px);
  padding: 2.6vw 4.8vw 2.6vw 6.4vw;
}
.btn_next button::after {
  content: "";
  background-image: url(../../img/common/arrow_sp.png);
  background-size: contain;
  background-repeat: no-repeat;
  width: 6vw;
  height: 1.3333333333333333vw;
}
.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;
  font-size: 3.466666666666667vw;
}

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

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

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

/* =====================
  履歴書
===================== */
.resume {
  position: relative;
}
.resume-btn {
  width: 54.333333vw;
  border-radius: calc(infinity * 1px);
  position: relative;
  display: inline-block;
  cursor: pointer;
  padding-block: 1.4em;
  padding-inline: 2em;
  background-color: var(--input-bgcolor);
  color: var(--blue);
  text-align: center;
  flex-shrink: 0;
  font-size: 3.466666666666667vw;
  font-weight: bold;
  margin-bottom: 5vw;
}
.resume-btn span{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.0666666666666667vw;
  line-height: 1;
}
.resume-btn span::before{
  content: "";
  background-image: url(../../img/recruit/add_sp.png);
  background-size: contain;
  background-repeat: no-repeat;
  width: 2.8vw;
  height: 2.933333333333333vw;
  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: 48vw;
  font-size: 3.466666666666667vw;
  overflow: hidden;
  text-overflow: ellipsis;
}
.resume input[name='resume'] {
  display: none;
}
.resume-text {
  margin-top: 4.4vw;
  font-size: 3.0666666666666664vw;
}
.resume-cancel {
  position: absolute;
  top: 81%;
  transform: translateY(-50%);
  width: 24px;
  aspect-ratio: 1 / 1;
  right: 0;
  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: 12px;
  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 .form-table:not([confirm]) th::before {
  content: none;
}
.confirm .form-table:not([confirm]) .must th::before {
  content: none;
}
.confirm .form-table tr:last-child{
  border-bottom: 2px solid var(--form-border);
}

/* complate */
.complate .content01{
  background: none;
  text-align: center;
  margin-top: 0;
  padding-block: 0;
}
.complate .step{
  margin-top: 0;
}
.complate h2{
  font-size: 5.333333333333333vw;
  margin: 11.733333333333333vw 0 7.466666666666667vw;
}
.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;
}