@charset "UTF-8";
.hero-txt {
  --hero-txt: url(../images/form/hero-txt.png);
}

.tab {
  display: none;
}

.tab.current {
  display: block;
}

.step-confirm .form_step_wrap {
  max-width: 800px;
  margin: 0 auto;
}

#applyForm {
  margin-top: 7.2rem;
}

.form-title {
  margin-top: 5rem;
  margin-bottom: 2rem;
  text-align: center;
  font-weight: bold;
  font-size: 2.4rem;
}

.group {
  display: flex;
  align-items: flex-start;
  border-bottom: 1px solid #b9c9dc;
  padding: 2rem 1.5rem;
}
@media screen and (max-width: 767px) {
  .group {
    flex-direction: column;
    gap: 1.5rem;
  }
}
@media screen and (min-width: 768px) {
  .group {
    padding: 3.6rem;
  }
}
.group:first-child {
  border-top: 1px solid #b9c9dc;
}
.group > label,
.group .label {
  display: block;
  font-weight: bold;
  padding: 0.5rem 2rem;
}
@media screen and (max-width: 767px) {
  .group > label,
  .group .label {
    padding-left: 0;
  }
}
@media screen and (min-width: 768px) {
  .group > label,
  .group .label {
    padding: 0.5rem 3.6rem;
    width: 30rem;
  }
}

.step-input .group > label,
.step-input .group .label {
  width: 39rem;
}
.step-input .group > label::before,
.step-input .group .label::before {
  content: "任意";
  background-color: #fff;
  margin-right: 1rem;
  font-size: 0.75em;
  padding: 0.3rem 1rem 0.5rem;
  border-radius: 0.4rem;
  border: 1px solid #d7532f;
}
.step-input .group > label.required::before,
.step-input .group .label.required::before {
  content: "必須";
  background-color: var(--color-primary);
  color: #fff;
}

@media screen and (min-width: 768px) {
  .step-confirm .form-item {
    max-width: calc(100% - 30rem);
  }
}
.step-confirm .form-item .confirm {
  word-break: break-word;
}

.form-item {
  flex: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
@media screen and (max-width: 767px) {
  .form-item {
    width: 100%;
  }
}
.form-item .block_error {
  display: block;
  width: 100%;
  margin-top: 1rem;
  color: rgb(217, 21, 21);
}

.radio-list,
.check-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  line-height: 1;
  padding-top: 1.5rem;
  gap: 2rem;
}
@media screen and (min-width: 768px) {
  .radio-list,
  .check-list {
    gap: 3rem;
  }
}

.check-list {
  max-width: 60rem;
}

input[type=text],
input[type=tel],
input[type=number],
input[type=email],
input[type=date],
input[type=time],
input[type=date-time],
select,
textarea {
  flex: 1;
  min-height: 4.8rem;
  padding: 0.8rem 1.5rem;
  border: none;
  outline: none;
  transition: 0.3s;
  font-size: 16px;
  border: 1px solid #fff;
}
input[type=text]:focus,
input[type=tel]:focus,
input[type=number]:focus,
input[type=email]:focus,
input[type=date]:focus,
input[type=time]:focus,
input[type=date-time]:focus,
select:focus,
textarea:focus {
  border-color: var(--color-primary);
}
input[type=text]::-moz-placeholder, input[type=tel]::-moz-placeholder, input[type=number]::-moz-placeholder, input[type=email]::-moz-placeholder, input[type=date]::-moz-placeholder, input[type=time]::-moz-placeholder, input[type=date-time]::-moz-placeholder, select::-moz-placeholder, textarea::-moz-placeholder {
  font-size: 1.6rem;
}
input[type=text]::placeholder,
input[type=tel]::placeholder,
input[type=number]::placeholder,
input[type=email]::placeholder,
input[type=date]::placeholder,
input[type=time]::placeholder,
input[type=date-time]::placeholder,
select::placeholder,
textarea::placeholder {
  font-size: 1.6rem;
}

textarea {
  min-height: 10rem;
}

input[type=radio],
input[type=checkbox] {
  transform: scale(1.6);
  margin-right: 1rem;
}

select {
  color: inherit;
  min-height: 4.8rem;
  max-width: 30rem;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
}

input[type=file] {
  display: block;
  width: 100%;
  font: inherit;
  color: inherit;
}
input[type=file]::-webkit-file-upload-button {
  color: inherit;
  font: inherit;
  background: #fffff0;
  height: 3.7rem;
  padding: 0.3rem 1.5rem 0;
  line-height: 1;
  border-radius: 0.5rem;
  border: 0.1rem solid #ccc;
}
input[type=file].mask + input[type=file] {
  display: none !important;
}

button {
  border: none;
  cursor: pointer;
}

.step-title {
  text-align: center;
  font-weight: bold;
  margin-bottom: 4rem;
}
@media screen and (max-width: 767px) {
  .step-title p {
    font-size: 1.4rem;
  }
}
.step-title .txt-lg {
  margin-bottom: 0.5em;
  font-size: 2.4rem;
}
@media screen and (min-width: 768px) {
  .step-title .txt-lg {
    font-size: 4rem;
  }
}

.postcode-group,
.birthday-group {
  display: flex;
  align-items: center;
}
.postcode-group input[type=tel],
.birthday-group input[type=tel] {
  margin-top: 0;
  width: 5.5em;
}
.postcode-group input[type=tel]::-moz-placeholder, .birthday-group input[type=tel]::-moz-placeholder {
  opacity: 1;
}
.postcode-group input[type=tel]::placeholder,
.birthday-group input[type=tel]::placeholder {
  opacity: 1;
}
.postcode-group span,
.birthday-group span {
  padding: 0 0.5rem;
}
.postcode-group #year,
.birthday-group #year {
  width: 7em;
}

.postcode-group {
  gap: 1rem;
}
.postcode-group input[type=tel] {
  width: 6.7em;
}

.attachment-group {
  margin-top: 1rem;
  border: 0.1rem solid #ccc;
  padding: 1rem;
  border-radius: 0.5rem;
}

.preview_img {
  margin-top: 1rem;
}
.preview_img img {
  -o-object-fit: cover;
     object-fit: cover;
  background-color: #868484;
  display: block;
  width: auto;
  max-width: 100%;
  height: 24rem;
}

.attachment-note {
  background-color: #fff2cc;
  border-radius: 0.5rem;
  margin-bottom: 5rem;
}
@media screen and (max-width: 767px) {
  .attachment-note {
    padding: 2rem 2rem 1.2rem;
  }
}
@media screen and (min-width: 768px) {
  .attachment-note {
    padding: 2rem 3rem 1.2rem;
  }
}
.attachment-note p {
  padding-left: 1em;
  text-indent: -1em;
  margin-bottom: 0.2em;
}

.form-action {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
@media screen and (min-width: 768px) {
  .form-action {
    gap: 3rem;
  }
}
.form-action .btn {
  cursor: pointer;
  min-width: 15rem;
  padding: 1.5rem 1.5rem;
}
@media screen and (min-width: 768px) {
  .form-action .btn {
    min-width: 20rem;
    padding: 1.5rem 3.5rem;
  }
}
.form-action .btn:disabled {
  background-color: #ccc;
}

.form-privacy {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 5rem;
}
.form-privacy ._wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.form-privacy .block_error {
  text-align: center;
}
.form-privacy a {
  color: inherit;
  text-decoration: none;
}
.form-privacy a:hover {
  text-decoration: underline;
}

/* Steps Form Styling */
.steps {
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
  font-weight: bold;
  color: #ccc;
}

.step.active {
  color: black;
}

.step::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  background-color: #ccc;
  z-index: -1;
}

.step:first-child::before {
  left: 50%;
}

.step:last-child::before {
  right: 50%;
}

.step.active::before {
  background-color: black;
}

.step_name {
  background: white;
  padding: 5px 10px;
  display: inline-block;
  border-radius: 5px;
}

#sender {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
  opacity: 0;
  visibility: hidden;
}
#sender.sending {
  opacity: 1;
  visibility: visible;
}
#sender .sending-content {
  color: #fff;
  font-size: 3rem;
  font-weight: bold;
  text-align: center;
}
#sender .sending-content::before {
  content: "";
  display: block;
  margin: 0 auto;
  margin-bottom: 2.4rem;
  aspect-ratio: 1;
  width: 6rem;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 8px solid;
  border-color: var(--color-primary) transparent;
  animation: s1 1s infinite;
}
@keyframes s1 {
  to {
    transform: rotate(0.5turn);
  }
}