.hubspot-form {
  --hsf-font-size: 14px;
  --hsf-label-width: 7em;
  --hsf-label-color: #333;
  --hsf-row-gap: 1em;
  --hsf-row-border: none;
  --hsf-row-padding: 0 0 1em;
  --hsf-name-gap: 4%;
  --hsf-input-height: auto;
  --hsf-input-padding: 0.6em;
  --hsf-input-border: none;
  --hsf-input-radius: 0;
  --hsf-input-bg: #f4f4f4;
  --hsf-required-color: #db3806;
  --hsf-name-label: "お名前";
  --hsf-consent-font-size: 11px;
  --hsf-button-max-width: 280px;
  --hsf-button-font-size: 20px;
  --hsf-button-line-height: 52px;
  --hsf-button-arrow-offset: 2.6em;

  font-size: var(--hsf-font-size);
}

.hubspot-form .hs-form fieldset {
  display: grid;
  grid-template-columns: var(--hsf-label-width) minmax(0, 1fr);
  align-items: center;
  max-width: none;
  margin: 0;
  padding: var(--hsf-row-padding);
  border: 0;
  border-bottom: var(--hsf-row-border);
}

.hubspot-form .hs-form fieldset + fieldset {
  margin-top: 0;
}

.hubspot-form .hs-form fieldset.form-columns-2 {
  grid-template-columns: var(--hsf-label-width) minmax(0, 1fr) minmax(0, 1fr);
}

.hubspot-form .hs-form .hs-form-field {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1 / -1;
  align-items: inherit;
}

.hubspot-form .hs-form .hs-form-field > label {
  grid-column: 1;
}

.hubspot-form .hs-form .hs-form-field > .input {
  grid-column: 2 / -1;
}

.hubspot-form .hs-form .hs_lastname {
  grid-column: 1 / 3;
}

.hubspot-form .hs-form .hs_lastname > .input {
  margin-right: calc(var(--hsf-name-gap) / 2);
}

.hubspot-form .hs-form .hs_firstname {
  grid-column: 3;
}

.hubspot-form .hs-form .hs_firstname > .input {
  grid-column: 1;
  margin-left: calc(var(--hsf-name-gap) / 2);
}

.hubspot-form .hs-form .hs_firstname > .hs-error-msgs {
  grid-column: 1;
}

.hubspot-form .hs-form fieldset:not(:has(.hs-input:not([type="hidden"]))) {
  display: none;
}

.hubspot-form .hs-form label {
  display: block;
  position: relative;
  margin: 0;
  color: var(--hsf-label-color);
  font-size: inherit;
  font-weight: normal;
  line-height: 1.5;
  white-space: nowrap;
}

.hubspot-form .hs-form label::after {
  content: none;
}

.hubspot-form .hs-form .hs-form-required {
  display: none;
}

.hubspot-form .hs-form .hs-form-field:has(.hs-input[required]) > label {
  padding-right: 1.6em;
}

.hubspot-form .hs-form .hs-form-field:has(.hs-input[required]) > label::after {
  content: "※";
  position: absolute;
  top: 0;
  right: 0.4em;
  color: var(--hsf-required-color);
}

.hubspot-form .hs-form .hs_firstname > label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.hubspot-form .hs-form .hs_lastname > label > span:first-child {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.hubspot-form .hs-form .hs_lastname > label::before {
  content: var(--hsf-name-label);
}

.hubspot-form .hs-form .hs-field-desc {
  display: none;
}

.hubspot-form .hs-form .input {
  margin: 0;
}

.hubspot-form .hs-form .hs-input:not([type="checkbox"], [type="radio"]) {
  display: block;
  width: 100%;
  height: var(--hsf-input-height);
  margin: 0;
  padding: var(--hsf-input-padding);
  border: var(--hsf-input-border);
  border-radius: var(--hsf-input-radius);
  background-color: var(--hsf-input-bg);
  color: #333;
  font-family: sans-serif;
  font-size: 100%;
  line-height: 1.15;
}

.hubspot-form .hs-form textarea.hs-input {
  min-height: 60px;
  resize: vertical;
}

.hubspot-form .hs-form .hs-input::placeholder {
  color: #999;
}

.hubspot-form .hs-form select.hs-input.is-placeholder {
  color: #333;
}

.hubspot-form .hs-form .hs-error-msgs {
  grid-column: 2 / -1;
  margin: 0.4em 0 0;
  padding: 0;
  list-style: none;
}

.hubspot-form .hs-form .hs-error-msgs label {
  color: var(--hsf-required-color);
  font-size: 12px;
}

.hubspot-form .hs-form .hs-error-msgs label::after {
  content: none;
}

.hubspot-form .hs-form .hs-input.error,
.hubspot-form .hs-form .hs-input.invalid {
  border: 1px solid var(--hsf-required-color) !important;
}

.hubspot-form .hs-form fieldset:has(.hs-fieldtype-booleancheckbox),
.hubspot-form .hs-form .hs-fieldtype-booleancheckbox {
  display: block;
  text-align: center;
}

.hubspot-form .hs-form .inputs-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hubspot-form .hs-form .hs-form-booleancheckbox-display {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding-right: 0;
  font-size: var(--hsf-consent-font-size);
  white-space: normal;
  text-align: left;
}

.hubspot-form .hs-form .hs-form-booleancheckbox-display .hs-form-required {
  display: none;
}

.hubspot-form .hs-form .hs-form-booleancheckbox-display::after,
.hubspot-form .hs-form .hs-form-booleancheckbox-display a::after {
  content: none;
}

.hubspot-form .hs-form .hs-form-booleancheckbox-display .hs-input {
  margin: 0;
}

.hubspot-form .hs-form .hs-form-booleancheckbox-display a {
  color: #29abe2;
  text-decoration: underline;
}

.hubspot-form .hs-form .hs_recaptcha {
  display: block;
  position: absolute;
  margin: 0;
  padding: 0;
  visibility: hidden;
}

.hubspot-form .hs-form .hs_error_rollup {
  display: none;
}

.hubspot-form + .branding {
  margin-top: 1em;
  color: #707070;
  font-size: var(--hsf-consent-font-size, 11px);
  line-height: 1.6;
  text-align: center;
}

.hubspot-form + .branding a {
  color: inherit;
  text-decoration: underline;
}

.hubspot-form .hs-form .hs-submit .actions {
  margin-top: 1em;
  text-align: center;
}

.hubspot-form .hs-form .hs-button {
  display: inline-block;
  width: 100%;
  max-width: var(--hsf-button-max-width);
  margin: 0 0 5px;
  padding: 0 0 0 1em;
  border: 0;
  border-radius: 5em;
  background-color: #f68a16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 16'%3E%3Cpath d='M2 2l6 6-6 6' fill='none' stroke='%23fff' stroke-width='3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(50% - var(--hsf-button-arrow-offset)) 50%;
  background-size: 0.4em 0.65em;
  box-shadow: 0 5px #a25a0e;
  color: #fff;
  font-family: inherit;
  font-size: var(--hsf-button-font-size);
  font-weight: bold;
  line-height: var(--hsf-button-line-height);
  cursor: pointer;
  transition: 0.1s box-shadow, 0.1s transform;
  -webkit-appearance: none;
  appearance: none;
}

.hubspot-form .hs-form .hs-button:hover {
  box-shadow: 0 1px #75634f;
  transform: translateY(2px);
}

@media screen and (max-width: 1200px) {
  .hubspot-form--lp {
    --hsf-button-max-width: 250px;
    --hsf-button-line-height: 45px;
  }
}

@media screen and (max-width: 1000px) {
  .hubspot-form--lp {
    --hsf-label-width: 6em;
    --hsf-button-max-width: 220px;
    --hsf-button-font-size: 18px;
  }

  .hubspot-form--lp .hs-form label {
    font-size: 13px;
  }

  .hubspot-form--lp .hs-form .hs-form-field:has(.hs-input[required]) > label::after {
    right: 0.2em;
  }
}

.hubspot-form--contact {
  --hsf-font-size: 16px;
  --hsf-label-width: 28.57%;
  --hsf-row-border: 1px solid #b9b9b9;
  --hsf-row-padding: 0 0 1.33333em;
  --hsf-input-padding: 0.86667em 1.33333em;
  --hsf-input-border: 1px solid #b9b9b9;
  --hsf-input-radius: 3px;
  --hsf-input-bg: #fff;
  --hsf-name-label: "ご担当者名";
  --hsf-button-max-width: 445px;
  --hsf-button-font-size: 22px;
  --hsf-button-line-height: 57px;
  --hsf-button-arrow-offset: 4.6em;

  padding: 3.33333em max(5%, calc((100% - 700px) / 2));
  border: 1px solid #ccc;
  border-radius: 3px;
  background-color: #f6f6f6;
}

.hubspot-form--contact .hs-form fieldset {
  align-items: start;
}

.hubspot-form--contact .hs-form fieldset + fieldset {
  margin-top: 1.33333em;
}

.hubspot-form--contact .hs-form label {
  margin-top: 1em;
  white-space: normal;
}

.hubspot-form--contact .hs-form .hs-form-field:has(.hs-input[required]) > label::after {
  right: 1em;
}

.hubspot-form--contact .hs-form .hs-field-desc {
  display: block;
  grid-column: 1;
  grid-row: 2;
  margin: 0.5em 2em 1em 0;
  color: #707070;
  font-size: 12px;
  line-height: 1.2;
}

.hubspot-form--contact .hs-form .hs-form-field > .input {
  grid-row: 1 / span 2;
}

.hubspot-form--contact .hs-form .hs-input:focus {
  outline: 5px auto #458ca7;
}

.hubspot-form--contact .hs-form textarea.hs-input {
  min-height: 120px;
  resize: none;
}

.hubspot-form--contact .hs-form fieldset:has(.hs-fieldtype-booleancheckbox) {
  margin-top: 2em;
  padding-bottom: 0;
  border-bottom: 0;
}

.hubspot-form--contact .hs-form .hs-submit .actions {
  margin-top: 2em;
}

.hubspot-form--contact + .branding {
  margin-bottom: 6rem;
}

.hubspot-form--card {
  border: 0;
  background-color: #fff;
}

.hubspot-form--card + .branding {
  margin-bottom: 0;
}

@media screen and (max-width: 670px) {
  .hubspot-form--contact {
    --hsf-font-size: 14px;

    padding: 1.33333em 5% 2em;
  }

  .hubspot-form--contact .hs-form fieldset {
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: 0;
    border-bottom: 0;
  }

  .hubspot-form--contact .hs-form fieldset.form-columns-2 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .hubspot-form--contact .hs-form .hs-form-field > label,
  .hubspot-form--contact .hs-form .hs-form-field > .input,
  .hubspot-form--contact .hs-form .hs-field-desc {
    grid-column: 1 / -1;
  }

  .hubspot-form--contact .hs-form .hs_lastname {
    grid-column: 1;
  }

  .hubspot-form--contact .hs-form .hs_firstname {
    grid-column: 2;
    align-self: end;
  }

  .hubspot-form--contact .hs-form label {
    justify-self: start;
    margin: 0 0 0.4em;
  }

  .hubspot-form--contact .hs-form .hs-form-field:has(.hs-input[required]) > label {
    padding-right: 1em;
  }

  .hubspot-form--contact .hs-form .hs-form-field:has(.hs-input[required]) > label::after {
    right: 0;
    font-size: 0.75rem;
  }

  .hubspot-form--contact .hs-form .hs-field-desc {
    grid-row: auto;
    margin: 0 0 0.4em;
  }

  .hubspot-form--contact .hs-form .hs-form-field > .input {
    grid-row: auto;
  }

  .hubspot-form--contact .hs-form .hs-error-msgs {
    grid-column: 1 / -1;
  }
}

.hubspot-form--download {
  --hsf-input-padding: 15px;
  --hsf-input-radius: 6px;
  --hsf-input-bg: #fff;
  --hsf-name-gap: 2%;
  --hsf-button-max-width: 300px;
  --hsf-button-font-size: 18px;
  --hsf-button-line-height: 57px;
}

.hubspot-form--download .hs-form fieldset {
  display: block;
  padding: 0;
}

.hubspot-form--download .hs-form fieldset.form-columns-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: var(--hsf-name-gap);
}

.hubspot-form--download .hs-form .hs-form-field {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
}

.hubspot-form--download .hs-form .hs-form-field > .input,
.hubspot-form--download .hs-form .hs-form-field > .hs-error-msgs {
  flex: 0 0 100%;
}

.hubspot-form--download .hs-form .hs_lastname,
.hubspot-form--download .hs-form .hs_firstname {
  grid-column: auto;
}

.hubspot-form--download .hs-form .hs_lastname > .input,
.hubspot-form--download .hs-form .hs_firstname > .input {
  margin: 0;
}

.hubspot-form--download .hs-form .hs_firstname > label,
.hubspot-form--download .hs-form .hs_lastname > label > span:first-child {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
}

.hubspot-form--download .hs-form .hs_lastname > label::before {
  content: none;
}

.hubspot-form--download .hs-form label {
  display: inline-block;
  margin-bottom: 10px;
  color: #000;
}

.hubspot-form--download .hs-form .hs-form-field:has(.hs-input[required]) > label {
  padding-right: 0;
}

.hubspot-form--download .hs-form .hs-form-field:has(.hs-input[required]) > label::after {
  content: "必須";
  position: static;
  margin-left: 1em;
  padding: 0.1rem 0.3rem;
  border: 1px solid #458ca7;
  border-radius: 5px;
  background: #fff;
  color: #458ca7;
  font-size: 12px;
}

.hubspot-form--download .hs-form .hs-field-desc {
  display: block;
  margin: 0 0 0 0.6em;
  color: #000;
  font-size: 10px;
  white-space: nowrap;
}

.hubspot-form--download .hs-form .hs-form-field > .input {
  margin-bottom: 2rem;
}

.hubspot-form--download .hs-form .hs-input:not([type="checkbox"], [type="radio"]) {
  margin-bottom: 0;
  color: #000;
}

.hubspot-form--download .hs-form .hs-error-msgs {
  margin: -1.6rem 0 1.6rem;
}

.hubspot-form--download .hs-form fieldset:has(.hs-fieldtype-booleancheckbox),
.hubspot-form--download .hs-form .hs-fieldtype-booleancheckbox {
  text-align: left;
}

.hubspot-form--download .hs-form .hs-fieldtype-booleancheckbox > .input {
  margin-bottom: 0;
}

.hubspot-form--download .hs-form .hs-form-booleancheckbox-display {
  margin-bottom: 0;
  color: #727272;
  font-size: 13px;
}

.hubspot-form--download .hs-form .hs-form-booleancheckbox-display .hs-input {
  width: auto;
}

.hubspot-form--download .hs-form .hs-submit .actions {
  margin-top: 3rem;
}

.hubspot-form--download .hs-form .hs-button {
  display: block;
  margin: 0 auto 1rem;
  padding: 0;
  background-image: none;
}

.hubspot-form--download + .branding {
  margin-top: 0.6em;
}
