.site-main {
  padding-top: 90px;
}

@media (max-width: 767px) {
  .site-main {
    padding-top: 17vw;
  }
}

.page-title {
  background-image: url(../images/form/form-bg.webp);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 500px;
}

.page-title .container {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  height: 100%;
  padding-bottom: 28px;
}

.page-title-text {
  color: #fff;
}

.page-title-text span:first-of-type {
  font-size: 55px;
  line-height: 1;
  font-weight: 300;
  font-family: "Jost", sans-serif;
}

.page-title-text span:last-of-type {
  font-size: 16px;
  line-height: 1;
  font-weight: 500;
}

@media (max-width: 767px) {
  .page-title {
    background-image: url(../images/form/form-bg-sp.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 53.3vw;
  }

  .page-title .container {
    padding-bottom: 3vw;
  }

  .page-title-text span:first-of-type {
    font-size: 8.1vw;
    line-height: 1.2;
  }

  .page-title-text span:last-of-type {
    font-size: 4vw;
  }
}

/* post-content */

.form {
  margin-bottom: 190px;
}

.form-content-text {
  margin-bottom: 25px;
}

.form-content-text-item {
  font-size: 20px;
  line-height: 1.9;
  font-weight: 700;
  color: #005299;
  letter-spacing: 0.02em;
  margin-top: 90px;
  margin-bottom: 90px;
}

.confirm-content-text {
  font-size: 20px;
  line-height: 1.9;
  font-weight: 700;
  color: #005299;
  letter-spacing: 0.02em;
  margin-top: 90px;
  margin-bottom: 45px;
}

.form-content-text-item-phone-items-wrapper {
  margin-bottom: 100px;
}

.form-content-text-item-title {
  font-size: 20px;
  line-height: 2;
  font-weight: 700;
  color: #005299;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.form-content-text-item-phone-items {
  display: flex;
  align-items: center;
  gap: 140px;
}

.form-content-text-item-phone-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.form-content-text-item-phone-item img {
  width: 46px;
  height: 46px;
}

.form-content-text-item-phone {
  font-size: 32px;
  line-height: 1;
  font-weight: 700;
  color: #000;
}

.form-content-text-item-text {
  font-size: 16px;
  line-height: 2;
  font-weight: 700;
  color: #000;
  letter-spacing: 0.04em;
}

@media screen and (max-width: 767px) {
  .form {
    margin-bottom: 25vw;
  }

  .form-content-text {
    margin-bottom: 4vw;
  }

  .form-content-text-item {
    font-size: 4.4vw;
    line-height: 1.55;
    letter-spacing: 0.04em;
    margin-top: 7vw;
    margin-bottom: 4vw;
  }

  .confirm-content-text {
    font-size: 4.4vw;
    line-height: 1.6;
    margin-top: 7vw;
    margin-bottom: 2.5vw;
  }

  .form-content-text-item-phone-items-wrapper {
    margin-bottom: 5vw;
  }

  .form-content-text-item-title {
    font-size: 4.4vw;
    line-height: 2;
    letter-spacing: 0.02em;
    margin-bottom: 2vw;
  }

  .form-content-text-item-phone-items {
    flex-direction: column;
    align-items: flex-start;
    gap: 4vw;
  }

  .form-content-text-item-phone-item {
    gap: 3vw;
  }

  .form-content-text-item-phone-item img {
    width: 8vw;
    height: 8vw;
  }

  .form-content-text-item-phone {
    font-size: 5.4vw;
  }

  .form-content-text-item-text {
    font-size: 3.8vw;
    line-height: 1.6;
  }
}

/* form */
.smf-form--letter {
  margin-bottom: 80px;
}

.smf-form--letter .smf-item {
  padding: 13px 0;
}

.smf-form--letter .smf-item__col--label {
  display: flex;
  align-items: center;
  width: fit-content;
  padding-bottom: 0;
  margin-bottom: 10px;
}

.smf-form--letter .smf-item__description {
  margin-top: 0;
  font-size: 12px;
  margin-left: 5px;
  font-weight: 700;
  color: #000;
}

.wp-block-snow-monkey-forms-item:not(:nth-of-type(2)) .smf-item__col--label {
  position: relative;
}

.wp-block-snow-monkey-forms-item:not(:nth-of-type(2)) .smf-item__col--label:before {
  content: "必須";
  position: absolute;
  top: 50%;
  right: -65px;
  transform: translateY(-50%);
  font-size: 12px;
  padding: 4px 9px;
  margin-top: 2px;
  line-height: 1;
  background-color: #acacac;
  color: #fff;
  font-weight: 700;
}

.smf-item__label__text {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
  color: #494949;
  letter-spacing: 0.04em;
}

.smf-form--letter input::placeholder,
.smf-form--letter textarea::placeholder {
  color: #cecece;
  font-weight: 500;
}

.smf-action .smf-button-control__control[data-action="confirm"] {
  border: none !important;
  background-color: #0078ff !important;
  color: #fff !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
  font-weight: 700 !important;
  width: 450px !important;
  background-image: unset !important;
}

@media screen and (max-width: 767px) {
  .smf-form--letter {
    margin-bottom: 6vw;
  }

  .smf-form--letter .smf-item {
    padding: 2vw 0;
    margin-bottom: 2.3vw;
  }

  .smf-form--letter .smf-item__col--label {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 1vw;
  }

  .smf-form--letter .smf-text-control__control {
    padding: 0.8rem 1rem 0.8rem !important;
    line-height: 4.2vw !important;
    font-size: 4.2vw !important;
  }

  .smf-form .smf-textarea-control__control {
    padding: 0.8rem 1rem 0.8rem !important;
    font-size: 4.2vw !important;
  }

  .smf-form--letter input::placeholder,
  .smf-form--letter textarea::placeholder {
    font-size: 4.2vw !important;
    line-height: 4.2vw !important;
    display: inline-block !important;
    font-family: "Noto Sans JP", sans-serif !important;
  }

  .smf-form--letter .smf-item__description {
    font-size: 2.8vw;
    margin-left: 0;
    font-weight: 500;
  }

  .wp-block-snow-monkey-forms-item:not(:nth-of-type(2)) .smf-item__label__text {
    position: relative;
  }

  .wp-block-snow-monkey-forms-item:not(:nth-of-type(2)) .smf-item__col--label:before {
    display: none;
  }

  .wp-block-snow-monkey-forms-item:not(:nth-of-type(2)) .smf-item__label__text:before {
    right: -11vw;
    font-size: 2.5vw;
    padding: 0.8vw 1.6vw;
    content: "必須";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    line-height: 1;
    background-color: #acacac;
    color: #fff;
    font-weight: 700;
  }

  .smf-item__label__text {
    font-size: 4.2vw;
  }

  .smf-action .smf-button-control__control[data-action="confirm"] {
    font-size: 4vw !important;
    width: 60vw !important;
    line-height: 2 !important;
  }
  .smf-error-messages {
    font-size: 3.8vw !important;
  }
}

/* confirm */

form[data-screen="confirm"] .smf-item__col.smf-item__col--controls {
  padding-top: 5px;
  border-top: 1px solid #ccc;
}

form[data-screen="confirm"] .smf-form--letter .smf-item {
  padding: 20px 0;
}

form[data-screen="confirm"] .smf-form--letter {
  margin-bottom: 65px;
}

form[data-screen="confirm"] .smf-action .smf-button-control + .smf-button-control {
  margin-left: 40px;
}

form[data-screen="confirm"] .smf-action .smf-button-control__control[data-action="back"] {
  border: none !important;
  background-color: #acacac !important;
  color: #fff !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
  font-weight: 700 !important;
  width: 150px !important;
  background-image: unset !important;
}

form[data-screen="confirm"] .smf-action .smf-button-control__control[data-action="complete"] {
  border: none !important;
  background-color: #0078ff !important;
  color: #fff !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
  font-weight: 700 !important;
  width: 160px !important;
  background-image: unset !important;
}

@media screen and (max-width: 767px) {
  form[data-screen="confirm"] .smf-form--letter .smf-item {
    padding: 3vw 0;
  }
  form[data-screen="confirm"] .smf-item__col.smf-item__col--controls {
    padding-top: 1vw;
  }
  form[data-screen="confirm"] .smf-form--letter {
    margin-bottom: 10vw;
  }
  form[data-screen="confirm"] .smf-action .smf-button-control + .smf-button-control {
    margin-left: 8vw;
  }
  form[data-screen="confirm"] .smf-action .smf-button-control__control[data-action="back"] {
    font-size: 4vw !important;
    line-height: 1.6 !important;
    width: 27vw !important;
  }

  form[data-screen="confirm"] .smf-action .smf-button-control__control[data-action="complete"] {
    font-size: 4vw !important;
    line-height: 1.6 !important;
    width: 27vw !important;
  }
  form[data-screen="confirm"] .smf-placeholder {
    font-size: 4.2vw !important;
  }
}

/* complete */

.smf-complete-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 85px;
  margin-bottom: 190px;
}

.smf-complete-content > p:first-of-type {
  font-size: 33px;
  line-height: 1.9;
  font-weight: 700;
  color: #005299;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
  text-align: center;
}

.smf-complete-content > p:nth-of-type(2) {
  font-size: 16px;
  line-height: 2;
  font-weight: 700;
  color: #000;
  letter-spacing: 0.1em;
  text-align: center;
}

.smf-complete-content > p:nth-of-type(3) {
  text-align: center;
  margin-top: 80px;
}

.smf-complete-content > p:nth-of-type(3) a {
  color: #fff;
  background-color: #acacac;
  width: 160px;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 700;
  display: block;
  padding: 10px 10px;
}

@media screen and (max-width: 767px) {
  .smf-complete-content {
    margin: 7vw auto 25vw;
  }

  .smf-complete-content > p:first-of-type {
    font-size: 4.4vw;
    line-height: 1.7;
    margin-bottom: 3vw;
  }

  .smf-complete-content > p:nth-of-type(2) {
    font-size: 3.8vw;
    line-height: 1.5;
    font-weight: 500;
    letter-spacing: 0.04em;
  }

  .smf-complete-content > p:nth-of-type(3) {
    margin-top: 8vw;
  }

  .smf-complete-content > p:nth-of-type(3) a {
    width: 27vw;
    font-size: 4vw;
    padding: 1.5vw;
  }
}

.privacy-agree {
  display: flex !important;
  flex-direction: row-reverse !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  align-items: center !important;
  position: relative !important;
}

.privacy-agree .smf-item__col--label {
  margin-bottom: 0 !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

.privacy-agree .smf-item__col--label:before {
  display: none !important;
}

.privacy-agree .smf-item__col--label a {
  color: #005299 !important;
}

.privacy-agree .smf-label > label {
  display: flex !important;
}

.privacy-agree .smf-label .smf-checkbox-control__control {
  margin: 0 !important;
}

.privacy-agree .smf-label .smf-checkbox-control__label {
  display: none !important;
}

.privacy-agree .smf-placeholder .smf-error-messages {
  position: absolute !important;
  left: 26px;
  bottom: 0;
  transform: translateY(60%);
}

.snow-monkey-form[data-screen="confirm"] .privacy-agree .smf-item__col--controls {
  visibility: hidden;
}

.snow-monkey-form[data-screen="confirm"] .privacy-agree .smf-placeholder > div {
  display: flex !important;
}

.snow-monkey-form[data-screen="confirm"] .privacy-agree .smf-item__col--controls {
  padding: 0 !important;
  border: none !important;
}

.snow-monkey-form[data-screen="confirm"] .privacy-agree .smf-item__col--controls input {
  width: 14px !important;
  height: 14px !important;
}

.privacy-agree input[name="display-checkbox"] {
  width: 14px !important;
  height: 14px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #ccc !important;
  background-color: #fff !important;
  appearance: auto !important;
  -webkit-appearance: auto !important;
  -moz-appearance: auto !important;
}

.snow-monkey-form[data-screen="confirm"] .privacy-agree .smf-placeholder > div {
  visibility: hidden;
}

@media screen and (max-width: 767px) {
  .privacy-agree {
    align-items: flex-start !important;
    gap: 2vw !important;
  }
  .privacy-agree:has(.smf-error-messages) {
    margin-bottom: 12vw !important;
  }
  .privacy-agree .smf-item__label__text:before {
    display: none !important;
  }
  .privacy-agree .smf-checkbox-control,
  .snow-monkey-form[data-screen="confirm"] .privacy-agree .smf-placeholder > div {
    margin-top: 1.05vw !important;
  }
  .privacy-agree input.smf-checkbox-control__control,
  .snow-monkey-form[data-screen="confirm"] .privacy-agree .smf-placeholder > div > input,
  .privacy-agree input[name="display-checkbox"] {
    width: 4.2vw !important;
    height: 4.2vw !important;
  }
  .privacy-agree input.smf-checkbox-control__control::before {
    scale: 1.4 !important;
  }

  .privacy-agree .smf-placeholder .smf-error-messages {
    bottom: 0;
    left: 6.2vw;
    transform: translateY(80%);
  }
}
