.form-page {
  min-height: 1505px;
  padding: 30px 0 129px;
  color: #182d48;
  background: linear-gradient(to bottom, #e9eef4, #d9e3f2);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #182d48;
  font-family: "Noto Serif JP", "Yu Mincho", "YuMincho", serif;
  font-size: 11px;
  line-height: 1.4;
}

.breadcrumb a {
  text-decoration: none;
}

.breadcrumb span:not([aria-hidden]) {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-heading {
  margin-top: 82px;
  text-align: center;
}

.form-heading h1 {
  margin: 0;
  color: #123e70;
  font-size: 42px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 8px;
}

.form-heading p {
  margin-top: 28px;
  color: #1e2731;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06rem;
}

.form-heading a {
  color: #153665;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: filter .2s ease;
}

.form-heading a:hover {
  filter: brightness(.92);
}

.form-steps {
  width: 355px;
  margin: 78px auto 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  list-style: none;
}

.form-steps li {
  width: 55px;
  position: relative;
  color: #8094ae;
  text-align: center;
}

.form-steps li:not(:last-child)::after {
  content: "";
  width: 58px;
  height: 1px;
  position: absolute;
  top: 18px;
  left: 58px;
  background: #8094ae;
}

.form-steps span {
  width: 38px;
  height: 38px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: #8094ae;
  font-family: "Noto Serif JP", "Yu Mincho", "YuMincho", serif;
  font-size: 17px;
  font-weight: 500;
}

.form-steps b {
  margin-top: 5px;
  display: block;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 2px;
}

.form-steps .is-current {
  color: #ff7100;
}

.form-steps .is-current span {
  background: #ff7100;
}

.contact-form {
  width: 900px;
  margin: 91px auto 0;
}

.form-row {
  min-height: 80px;
  display: grid;
  grid-template-columns: 295px 605px;
  align-items: start;
}

.form-row--company-type {
  min-height: 122px;
}

.form-row--textarea {
  min-height: 199px;
}

.form-label {
  min-height: 44px;
  padding-top: 9px;
  display: grid;
  grid-template-columns: 177px 44px;
  align-items: flex-start;
  column-gap: 10px;
  color: #202d3d;
  font-size: 16.6px;
  font-weight: 500;
  letter-spacing: 1px;
}

.required,
.optional {
  min-width: 44px;
  padding: 2px 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  color: #fff;
  background: #ff6500;
  font-family: "Noto Serif JP", "Yu Mincho", "YuMincho", serif;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: 1px;
}

.optional {
  background: #8d9aab;
}

.form-control {
  min-width: 0;
  position: relative;
}

.form-control input[type="text"],
.form-control input[type="email"],
.form-control input[type="tel"] {
  width: 500px;
  height: 42px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 0;
  outline: none;
  color: #273b55;
  background: #fff;
  font-family: "Noto Serif JP", serif;
  font-size: 14px;
}

.form-control textarea {
  width: 605px;
  height: 182px;
  padding: 18px 20px;
  border: 1px solid transparent;
  border-radius: 0;
  outline: none;
  resize: vertical;
  color: #273b55;
  background: #fff;
  font-family: "Noto Serif JP", serif;
  font-size: 14px;
  line-height: 1.8;
}

.form-control input:focus,
.form-control textarea:focus {
  border-color: #315f91;
  box-shadow: 0 0 0 2px rgb(49 95 145 / 14%);
}

.form-control input::placeholder,
.form-control textarea::placeholder {
  color: #98abc1;
  opacity: 1;
}

.form-control--note {
  display: flex;
  align-items: center;
  gap: 38px;
}

.form-control--note > span {
  color: #374352;
  font-size: 12px;
  white-space: nowrap;
}

.choice-group {
  height: 32px;
  display: flex;
  align-items: flex-start;
  gap: 25px;
  color: #334153;
  font-size: 13px;
}

.choice-group label,
.mail-optin label,
.privacy-agreement label {
  cursor: pointer;
}

.choice-group input,
.mail-optin input,
.privacy-agreement input {
  width: 1.5625rem;
  height: 1.5625rem;
  margin: 0 7px 0 0;
  vertical-align: -2px;
  accent-color: #ff7100;
}

.choice-group input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  display: inline-block;
  flex-shrink: 0;
  box-sizing: border-box;
  position: relative;
  top: 0.25rem;
  width: 1.5625rem;
  height: 1.5625rem;
  border: 1px solid #182d48;
  border-radius: 0;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
  cursor: pointer;
}

.choice-group input[type="radio"]:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.8 8.1 6.3 11.7 13.2 4.2' fill='none' stroke='%23182d48' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 1.5625rem 1.5625rem;
}

.choice-group input[type="radio"]:focus-visible {
  outline: 2px solid #123e70;
  outline-offset: 2px;
}

.company-input {
  display: flex;
  align-items: center;
  gap: 23px;
}

.company-input.is-hidden,
.form-row--company-type:has(input[value="なし"]:checked) .company-input {
  display: none;
}

.form-row--company-type.is-individual,
.form-row--company-type:has(input[value="なし"]:checked) {
  min-height: 0;
}

.company-input label {
  width: 95px;
  font-size: 13px;
  white-space: nowrap;
}

.company-input input[type="text"] {
  width: 460px;
}

.field-error {
  min-height: 19px;
  margin: 4px 0 0;
  color: #c83d22;
  font-family: "Noto Serif JP", "Yu Mincho", "YuMincho", serif;
  font-size: 16px;
  line-height: 1.5;
}

.error-msg-balloon {
  z-index: 2;
  margin: 0;
  padding: 2px 8px;
  color: #fff;
  background: #c83d22;
  font-family: "Noto Serif JP", "Yu Mincho", "YuMincho", serif;
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
}

.error-msg-balloon br {
  display: none;
}

input.error,
textarea.error {
  border-color: #c83d22 !important;
  background: #fff8f6 !important;
}

.has-error {
  border-color: #c83d22 !important;
  background: #fff8f6 !important;
}

.mail-optin,
.privacy-agreement {
  text-align: center;
  font-size: 18px;
  line-height: 30.13px;
  letter-spacing: 0.08rem;
}

.mail-optin {
  margin-top: 25px;
}

.mail-optin label {
  display: inline-flex;
  align-items: flex-start;
  max-width: 100%;
  column-gap: 18px;
  text-align: left;
}

.mail-optin label > span {
  min-width: 0;
}

.mail-optin input {
  margin: 0.3em 0 0;
  flex: none;
}

.mail-optin .nowrap {
  white-space: nowrap;
}

.privacy-agreement {
  margin-top: 18px;
}

.privacy-agreement a {
  color: #1c4f83;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.form-submit,
.confirm-actions {
  margin-top: 25px;
  display: flex;
  justify-content: center;
}

.form-submit button,
#btn-send {
  width: 815px;
  min-height: 88px;
  padding: 0 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  border: 0;
  border-radius: 44px;
  color: #fff;
  background: #ff7100;
  cursor: pointer;
  font-family: "Noto Serif JP", serif;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 2px;
}

.form-submit button:hover,
#btn-send:hover,
.thanks-message a:hover {
  filter: brightness(.92);
}

.form-submit button:disabled {
  background-color: #ccc;
  color: #666;
  cursor: not-allowed;
  opacity: 0.6;
}

.confirm-form {
  width: 917px;
  margin: 96px auto 0;
}

.confirm-list {
  margin: 0;
  border-top: 1px solid #c0ccda;
}

.confirm-list div {
  display: grid;
  grid-template-columns: 280px 620px;
  border-bottom: 1px solid #c0ccda;
}

.confirm-list dt,
.confirm-list dd {
  margin: 0;
  padding: 16px 25px 17px 11px;
  color: #26394f;
  font-size: 16px;
  letter-spacing: 0.06rem;
  line-height: 1.8;
  white-space: pre-wrap;
}

.confirm-list dt {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: transparent;
}

.confirm-list dd {
  background: transparent;
}

.confirm-actions {
  flex-direction: column;
  align-items: center;
  gap: 50px;
}

.confirm-actions button {
  min-height: 70px;
  border: 0;
  cursor: pointer;
  font-family: "Noto Serif JP", serif;
  font-size: 18px;
}

.confirm-actions .button-secondary,
.thanks-message a {
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #8d9aab;
  text-decoration: none;
}

.confirm-actions .button-secondary {
  width: 350px;
  min-height: 48px;
}

.confirm-actions #btn-send {
  width: 501px;
  min-height: 89px;
  border-radius: 100px;
}

.form-page--thanks {
  min-height: 779px;
}

.thanks-message {
  margin-top: 42px;
  text-align: center;
  font-weight: 700;
}

.thanks-message p {
  color: #26394f;
  font-size: 18px;
  line-height: 1.7;
  letter-spacing: 1px;
}

.thanks-message p + p {
  margin-top: 1.6em;
}

.thanks-message a {
  width: 350px;
  min-height: 47px;
  margin: 75px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Noto Serif JP", serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 1px;
}

@media screen and (min-width: 769px) {
  #page-confirm .form-page {
    min-height: 1334px;
    padding: 30px 0 153px;
  }

  #page-thanks .form-page {
    padding-bottom: 113px;
  }

  #page-input .breadcrumb,
  #page-confirm .breadcrumb,
  #page-thanks .breadcrumb {
    font-size: 12px;
    letter-spacing: .04rem;
  }

  #page-input .form-heading p,
  #page-confirm .form-heading p {
    font-size: 18px;
    line-height: 30px;
  }

  #page-input .form-steps,
  #page-confirm .form-steps,
  #page-thanks .form-steps {
    margin-top: 76px;
  }

  #page-confirm .form-steps {
    margin-top: 86px;
  }

  #page-thanks .form-steps {
    margin-top: 36px;
  }

  #page-input .form-steps li:not(:last-child)::after,
  #page-confirm .form-steps li:not(:last-child)::after,
  #page-thanks .form-steps li:not(:last-child)::after {
    top: 31px;
    left: 74px;
  }

  #page-confirm .confirm-list dt {
    display: grid;
    grid-template-columns: 177px 44px;
    align-items: flex-start;
    column-gap: 6px;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.06rem;
  }

  #page-confirm .confirm-list dd {
    margin-left: 30px;
  }

  #page-confirm .confirm-actions {
    margin-top: 50px;
  }

  #page-input .choice-group {
    font-size: 16.6px;
  }

  #page-input .choice-group input[type="radio"] {
    width: 22px;
    height: 22px;
  }

  #page-input .choice-group input[type="radio"]:checked {
    background-size: 22px 22px;
  }

  #page-input .mail-optin,
  #page-input .privacy-agreement {
    width: auto;
    margin-left: calc(261px + 20px - 22px - 8px);
    margin-right: 0;
    text-align: left;
  }

  #page-input .privacy-agreement label {
    display: inline-flex;
    align-items: flex-start;
    column-gap: 18px;
  }

  #page-input .mail-optin {
    margin-top: 25px;
  }

  #page-input .privacy-agreement {
    margin-top: 25px;
  }

  #page-input .mail-optin input,
  #page-input .privacy-agreement input {
    width: 22px;
    height: 22px;
    margin: 0.3em 0 0;
    vertical-align: top;
  }

  #page-input .company-input {
    margin-top: 7px;
    margin-left: 33px;
  }

  #page-input .company-input label {
    font-size: 16.6px;
  }

  #page-input .form-control {
    margin-top: -10px;
  }

  #page-input .form-row--company-type .form-control {
    margin-top: -5px;
  }

  #page-input .form-row--company-type.is-individual,
  #page-input .form-row--company-type:has(input[value="なし"]:checked) {
    min-height: 68px;
  }

  #page-input .form-label {
    padding-top: 0;
  }

  #page-input .error-msg-balloon {
    position: absolute;
    top: 47px !important;
    left: 0 !important;
    right: auto !important;
  }

  #page-input .company-input .error-msg-balloon {
    top: 84px !important;
    left: 142px !important;
  }

  #page-input #btn-submit {
    font-size: 26px;
    font-weight: 700;
  }
}

@media screen and (max-width: 768px) {
  .form-page,
  .form-page--thanks {
    min-height: 0;
    padding: 2.22rem 0 8.3125rem;
  }

  #page-confirm .form-page {
    padding-bottom: 8.0625rem;
  }

  .breadcrumb {
    gap: 0.4rem;
    font-size: 1.27rem;
  }

  .breadcrumb span:not([aria-hidden]) {
    text-underline-offset: 0.1875rem;
  }

  .form-heading {
    margin-top: 0;
  }

  .form-heading h1 {
    margin-top: 3.625rem;
    font-size: 3.25rem;
    letter-spacing: 0.31rem;
  }

  .form-heading p {
    width: calc(100% + 3.9rem);
    margin-top: 2rem;
    margin-inline: -1.95rem;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 2.5rem;
    letter-spacing: 0.06rem;
  }

  .form-steps {
    width: min(100%, 35.5rem);
    margin-top: 5rem;
  }

  #page-confirm .form-steps {
    margin-top: 5.125rem;
  }

  #page-thanks .form-steps {
    margin-top: 3.125rem;
  }

  .form-steps li {
    flex: 1;
    width: auto;
  }

  .form-steps li:not(:last-child)::after {
    top: 1.45rem;
    left: calc(50% + 3.775rem);
    width: 4.625rem;
    height: 0.125rem;
  }

  .form-steps span {
    width: 2.95rem;
    height: 2.95rem;
    font-size: 1.32rem;
  }

  .form-steps b {
    margin-top: 0.35rem;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.08rem;
  }

  .contact-form,
  .confirm-form {
    width: 100%;
    margin-top: 3.875rem;
  }

  .form-row,
  .form-row--company-type,
  .form-row--textarea {
    min-height: 0;
    display: block;
    margin-bottom: 2rem;
  }

  .form-row:has(.form-control--note) {
    margin-bottom: 0.375rem;
  }

  .form-label {
    min-height: 0;
    margin-bottom: 0.875rem;
    padding-top: 0;
    display: flex;
    align-items: center;
    column-gap: 1.375rem;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.12rem;
  }

  .required,
  .optional {
    min-width: 0;
    padding: 0 0.65rem;
    border-radius: 0.125rem;
    font-size: 1.25rem;
    line-height: 1.35;
  }

  #page-confirm .required,
  #page-confirm .optional {
    margin-top: 0.5625rem;
  }

  .form-control input:focus,
  .form-control textarea:focus {
    box-shadow: 0 0 0 0.125rem rgb(49 95 145 / 14%);
  }

  .form-control input[type="text"],
  .form-control input[type="email"],
  .form-control input[type="tel"],
  .company-input input[type="text"] {
    width: 100%;
    height: auto;
    min-height: 5.25rem;
    padding: 0 1.8rem;
    font-size: 1.625rem;
    letter-spacing: .08rem;
  }

  .form-control textarea {
    width: 100%;
    height: auto;
    min-height: 20rem;
    padding: 1.1rem 1.7rem;
    font-size: 1.75rem;
  }

  .form-control--note {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }

  .form-control--note > span {
    font-size: 1.25rem;
    text-align: right;
  }

  .choice-group {
    height: auto;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.7rem 1.2rem;
    font-size: 1.625rem;
    line-height: 1.6;
  }

  .choice-group label:first-child {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .choice-group label:last-child {
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
  }

  .choice-note {
    display: inline-block;
    font-size: 1.25rem;
  }

  .choice-group input,
  .mail-optin input,
  .privacy-agreement input {
    width: 1.875rem;
    height: 1.875rem;
    margin-right: 1.0625rem;
    vertical-align: -0.125rem;
  }

  .mail-optin input {
    margin-right: 1.0625rem;
  }

  .choice-group input[type="radio"] {
    width: 1.875rem;
    height: 1.875rem;
    margin: 0 1.0625rem 0 0;
    vertical-align: 0.0625rem;
    background-size: 1.875rem 1.875rem;
  }

  .choice-group input[type="radio"]:focus-visible {
    outline-width: 0.125rem;
    outline-offset: 0.125rem;
  }

  .company-input {
    position: relative;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    margin-top: 0.85rem;
  }

  .company-input label {
    width: auto;
    font-size: 1.625rem;
    font-weight: 500;
  }

  .field-error {
    min-height: 1.1875rem;
    margin-top: 0.25rem;
    font-size: 1.5625rem;
  }

  .error-msg-balloon {
    position: absolute;
    top: -3.375rem !important;
    right: 0.0625rem !important;
    left: auto !important;
    padding: 0.125rem 0.5rem;
    font-size: 1.375rem;
  }

  .error-msg-balloon br {
    display: inline;
  }

  .error-msg-balloon:has(br) {
    top: -4.375rem !important;
  }

  .company-input .error-msg-balloon {
    top: 0.375rem !important;
  }

  .mail-optin,
  .privacy-agreement {
    text-align: left;
  }

  .mail-optin {
    width: 40rem;
    margin-top: 3.4375rem;
    margin-inline: initial;
    margin-left: 2.125rem;
  }

  .mail-optin label {
    column-gap: 0;
  }

  .mail-optin label > span,
  .privacy-agreement label > span {
    font-size: 1.75rem;
    line-height: 2.125rem;
    letter-spacing: 0.08rem;
  }

  br.pc-only {
    display: none;
  }

  .privacy-agreement {
    margin-top: 3rem;
    margin-left: 2.125rem;
  }

  .form-heading a,
  .privacy-agreement a {
    text-underline-offset: 0.25rem;
  }

  .form-submit,
  .confirm-actions {
    margin-top: 2rem;
  }

  .form-submit button,
  .confirm-actions #btn-send {
    position: relative;
    width: 100%;
    min-height: 7.9rem;
    padding: 0;
    gap: 2rem;
    border-radius: 999px;
    font-size: 1.86rem;
    line-height: 1.45;
    letter-spacing: 0.06rem;
    text-align: center;
    font-weight: 700;
  }

  .confirm-actions {
    gap: 3.6875rem;
  }

  .confirm-actions .form-btn-sending {
    width: 100%;
  }

  .confirm-actions #btn-send {
    font-size: 2.625rem;
  }

  .form-submit button .button-arrow,
  .confirm-actions #btn-send .button-arrow {
    position: absolute;
    top: 50%;
    right: 1.4rem;
    transform: translateY(-50%);
  }

  .form-submit button .button-arrow {
    right: 3.4rem;
  }

  #page-confirm .confirm-actions #btn-send .button-arrow {
    right: 4rem;
    width: 2.75rem;
  }

  .confirm-list {
    border-top: 0;
  }

  .confirm-list div {
    display: block;
    margin-bottom: 5.125rem;
    border-bottom: 0;
  }

  .confirm-list div:last-child {
    margin-bottom: 7.4525rem;
  }

  .confirm-list dt,
  .confirm-list dd {
    padding: 0;
    letter-spacing: .08rem;
    line-height: 1.6;
  }

  .confirm-list dt {
    margin-bottom: 1.675rem;
    gap: 1.75rem;
    font-size: 1.75rem;
    font-weight: 700;
  }

  .confirm-list dd {
    margin-left: 0;
    padding-left: 1.7rem;
    font-size: 1.625rem;
  }

  .confirm-actions .button-secondary,
  .thanks-message a {
    width: 27.3125rem;
    min-height: 4.2rem;
    font-size: 1.75rem;
  }

  .confirm-actions .button-secondary {
    min-height: 5.1rem;
  }

  .thanks-message {
    margin-top: 3.6875rem;
  }

  .thanks-message p {
    font-size: 1.375rem;
    line-height: 2.25;
    letter-spacing: 0.06rem;
  }

  .thanks-message p + p {
    margin-top: 3.4375rem;
  }

  .thanks-message a {
    min-height: 4.875rem;
    margin-top: 5.25rem;
    letter-spacing: 0.0625rem;
  }
}
