/* Container & Wrapper Overrides */
.nf-form-title {
  display: none;
}

.nf-before-form-content {
  display: none;
}

.nf-field-container {
  margin-bottom: -0.05rem !important;
}

.nf-form-cont {
  margin-bottom: 0.25rem;
}

.nf-form-content .nf-field {
  border-bottom: 1px solid #e6e6e6;
}

.nf-form-content .field-wrap {
  display: flex;
  flex-direction: row !important;
  flex-flow: nowrap !important;
  width: 100%;
}

@media screen and (max-width: 460px) {
  .nf-form-content .field-wrap {
    flex-flow: wrap !important;
  }
}

@media screen and (max-width: 460px) {
  .nf-form-content .field-wrap {
    flex-wrap: wrap;
  }
}

/* Label Styling */
.nf-form-content .nf-field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 2.6rem;
  min-width: 2.6rem;
  padding: 0.3rem 0.32rem;
  box-sizing: border-box;
  background: #f9f9f9;
  margin-bottom: 0 !important;
}

@media screen and (max-width: 460px) {
  .nf-form-content .nf-field-label {
    width: 100%;
    min-width: auto;
    padding: 0.1rem;
    text-align: center;
    border-bottom: 1px solid #e6e6e6;
  }
}

.nf-form-content .nf-field-label label {
  display: flex;
  justify-content: space-between;
  font-size: 0.17rem;
  font-weight: bold;
  width: 100%;
}

#nf-label-field-29 {
/*   display: flex; */
/*   justify-content: space-between; */
  font-size: 0.17rem;
/*  ?font-weight: bold; */
/*  ?width: 100%; */
}

#nf-label-field-29 span {
  float: right;
}

#nf-field-29-wrap ul {
  font-size: 0.17rem;
}

@media screen and (max-width: 460px) {
  #nf-field-29-wrap ul {
    font-size: 0.12rem;
  }
}

#nf-field-29-wrap li {
  margin: 0;
}

.nf-field-label .nf-field-span span {
  display: flex;
  justify-content: space-between;
  font-size: 0.17rem;
  font-weight: bold;
  width: 100%;
}

@media screen and (max-width: 460px) {
  .nf-form-content .nf-field-label label {
    font-size: 0.12rem;
  }
}

@media screen and (max-width: 460px) {
  .nf-form-content .ninja-forms-req-symbol {
    padding: 0.005rem 0.05rem 0.01rem;
    font-size: 0.11rem;
    float: none;
    margin-left: 0.15rem;
  }
}

/* Field Element Container */
.nf-form-content .nf-field-element {
  padding: 0.3rem;
  box-sizing: border-box;
}

@media screen and (max-width: 460px) {
  .nf-form-content .nf-field-element {
    padding: 0.2rem 0;
    width: 100%;
  }
}

/* Input Field Styling */
.nf-form-content input[type="text"],
.nf-form-content input[type="tel"],
.nf-form-content input[type="email"] {
  font-size: 0.17rem;
  padding: 0.055rem 0.13rem;
  color: #656563;
  background-color: #fff;
  border: 1px solid #e5e5e5;
  box-sizing: border-box;
  border-radius: 0;
  transition: 0.2s;
}

@media screen and (max-width: 460px) {
  .nf-form-content input[type="text"],
  .nf-form-content input[type="tel"],
  .nf-form-content input[type="email"] {
    font-size: 16px;
    padding: 0.09rem 0.1rem;
  }
}

.nf-form-content input[type="text"]:focus,
.nf-form-content input[type="tel"]:focus,
.nf-form-content input[type="email"]:focus {
  background-color: #fff;
  box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.4);
  outline: none;
}

/* Textarea Styling */
.nf-form-content textarea {
  font-size: 0.17rem;
  padding: 0.055rem 0.13rem;
  color: #656563;
  background-color: #fff;
  border: 1px solid #e5e5e5;
  box-sizing: border-box;
  border-radius: 0;
  transition: 0.2s;
  height: 1.98rem;
  width: 7.02rem;
}

@media screen and (max-width: 460px) {
  .nf-form-content textarea {
    font-size: 16px;
    height: 1rem;
    width: 100%;
    padding: 0.09rem 0.1rem;
  }
}

.nf-form-content textarea:focus {
  background-color: #fff;
  box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.4);
  outline: none;
}

/* Select/Dropdown Styling */
.nf-form-content select {
  font-size: 0.17rem;
  padding: 0.07rem 0.2rem;
  border: 1px solid #e5e5e5;
  background-color: #fff;
  box-sizing: border-box;
  border-radius: 0;
  width: 2.8rem;
  min-height: 0.4rem;
}

@media screen and (max-width: 460px) {
  .nf-form-content select {
    width: 100%;
    font-size: 16px;
    padding: 0.09rem 0.2rem;
  }
}

/* Radio Button Styling */
.nf-form-content .radio-wrap {
  margin-right: 0.35rem;
}

@media screen and (max-width: 460px) {
  .nf-form-content .radio-wrap {
    margin-right: 0.2rem;
    margin-bottom: 0.1rem;
  }
}

.nf-form-content input[type="radio"] {
  width: 0;
  height: 0;
  opacity: 0;
}

.nf-form-content .nf-field-element label {
  position: relative;
  cursor: pointer;
  display: inline-block;
  padding: 10px 0;
  vertical-align: middle;
}

.nf-form-content .nf-field-element label:before {
  content: "";
  display: block;
  width: 0.14rem;
  height: 0.14rem;
  border: 1px solid #e7e7e7;
  background-color: #ffffff;
  position: absolute;
  top: 55%;
  left: -0.2rem;
  margin-top: -0.1rem;
  border-radius: 50%;
  transition: 0.2s;
}

@media screen and (max-width: 460px) {
  .nf-form-content .nf-field-element label:before {
    width: 0.12rem;
    height: 0.12rem;
    margin-top: -0.07rem;
  }
}

.nf-form-content input[type="checkbox"]:checked ~ label:after {
  content: "";
  display: block;
  position: absolute;
  width: 0.1rem;
  height: 0.1rem;
  top: 0.175rem;
  left: -0.18rem;
  margin: auto;
  background-color: #0086cd;
  transform: scale(1);
  transition: 0.2s;
  border-radius: 50%;
  opacity: 1;
}

@media screen and (max-width: 460px) {
  .nf-form-content input[type="checkbox"]:checked ~ label:after {
    width: 0.08rem;
    height: 0.08rem;
    top: 0.15rem;
  }
}

.nf-form-content .nf-field-element label span {
  padding-left: 0.25rem;
  font-size: 0.17rem;
}

@media screen and (max-width: 460px) {
  .nf-form-content .nf-field-element label span {
    padding-left: 0.17rem;
    font-size: 0.12rem;
  }
}

/* Error Messages */
.nf-form-content .nf-error-msg {
  margin-top: 0.08rem;
  color: #e82a60;
  font-size: 0.14rem;
}

@media screen and (max-width: 460px) {
  .nf-form-content .nf-error-msg {
    font-size: 0.12rem;
  }
}

/* Submit Button */
.nf-form-content .submit-wrap .nf-element {
  background-color: #ffa41c;
  cursor: pointer;
  text-align: center;
  display: inline-block;
  vertical-align: middle;
  max-width: 3.4rem;
  width: 100%;
  height: 0.7rem;
  padding: 0;
  font-size: 0.18rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  line-height: 0.7rem;
  border: none;
  color: #fff;
}

#nf-field-31-wrap .nf-field-label {
  display: none;
}

#nf-field-31-wrap .nf-field-element {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media screen and (max-width: 460px) {
  .nf-form-content .submit-wrap .nf-element {
    max-width: 100%;
    height: 0.5rem;
    font-size: 0.13rem;
    line-height: 0.5rem;
  }
}

/* Placeholder Styling */
.nf-form-content ::-webkit-input-placeholder {
  font-size: 0.17rem;
  line-height: 1;
}

.nf-form-content ::placeholder {
  font-size: 0.17rem;
  line-height: 1;
}

@media screen and (max-width: 460px) {
  .nf-form-content ::-webkit-input-placeholder,
  .nf-form-content ::placeholder {
    font-size: 0.12rem;
  }
}

/* Hide the default asterisk */
.nf-form-content .ninja-forms-req-symbol {
  font-size: 0;
  background-color: #2bb3b3;
  padding: 0.02rem 0.12rem;
  color: #fff;
  display: inline-block;
  vertical-align: middle;
  height: fit-content;
/*   float: right; */
}

/* Add "必須" text using ::before pseudo-element */
.nf-form-content .ninja-forms-req-symbol::before {
  content: "必須";
  font-size: 0.12rem;
  display: inline-block;
}

@media screen and (max-width: 460px) {
  .nf-form-content .ninja-forms-req-symbol {
    padding: 0.005rem 0.05rem 0.01rem;
    font-size: 0;
    margin-left: 0.15rem;
  }

  .nf-form-content .ninja-forms-req-symbol::before {
    font-size: 0.11rem;
  }
}
