/* ステップ表示 */
.c-form-step__list {
  max-width: 200px;
}

.c-form-step__item + .c-form-step__item {
  margin-top: 28px;
}

.c-form-step__text {
  padding-bottom: 15px;
  display: block;
  border-bottom: 1px solid rgba(27, 59, 82, 0.2);
  letter-spacing: -0.03em;
  font-weight: 700;
  font-size: 18px;
  color: rgba(27, 59, 82, 0.2);
}

.c-form-step__item.is-current .c-form-step__text {
  border-color: #3e93c8;
  color: #3e93c8;
}

/* 注意事項 */
.c-form-notice {
  margin-top: 50px;
  padding: 30px 35px;
  border: 1px solid rgba(172, 178, 186, 0.48);
  background: rgba(255, 255, 255, 0.48);
}

.c-form-notice__title {
  font-weight: 700;
  font-size: 18px;
  color: #3e93c8;
}

.c-form-notice__list {
  margin-top: 15px;
}

.c-form-notice__item {
  padding-left: 1em;
  position: relative;
}

.c-form-notice__item + .c-form-notice__item {
  margin-top: 8px;
}

.c-form-notice__item::before {
  content: "・";
  position: absolute;
  left: 0;
  top: 0;
}

.c-form-notice__note {
  margin-top: 8px;
}

/* カタログ案内 */
.c-form-catalog {
  margin-top: 50px;
}

.c-form-catalog__list {
  margin-top: 15px;
}

.c-form-catalog__item + .c-form-catalog__item {
  margin-top: 15px;
}

.c-form-catalog__link {
  text-decoration: underline;
  overflow-wrap: anywhere;
  color: #0084ac;
}

.c-form-catalog__link:hover {
  text-decoration: none;
}

/* 入力項目 */
.c-form-fields {
  margin-top: 80px;
}

.c-form-field {
  display: flex;
}

.c-form-field + .c-form-field {
  margin-top: 35px;
}

.c-form-field__head {
  width: 230px;
  min-width: 230px;
  padding-top: 17px;
  font-weight: 400;
}

.c-form-field:first-child .c-form-field__head {
  padding-top: 20px;
}

/* 2行の項目名は入力欄の上端にそろえる */
.c-form-field__head--line2 {
  padding-top: 0;
}

.c-form-field__required {
  display: inline-block;
  vertical-align: middle;
  font-size: 11px;
  color: #f00;
}

.c-form-field__body {
  flex: 1;
  min-width: 0;
}

input.c-form-field__input,
textarea.c-form-field__input {
  width: 100%;
  padding: 19px 25px;
  border: 1px solid rgba(172, 178, 186, 0.48);
  background: rgba(255, 255, 255, 0.48);
  font-size: 16px;
  transition: all 0.4s ease;
}

.c-form-field__input:focus {
  border-color: #3e93c8;
}

.c-form-field__input::placeholder {
  color: #d7dadd;
}

.c-form-field__input--postcode {
  max-width: 240px;
}

.c-form-field__input--textarea {
  height: 353px;
}

.c-form-field__input--other {
  margin-top: 20px;
}

.c-form-field__input:disabled {
  background: rgba(172, 178, 186, 0.16);
  cursor: not-allowed;
}

.c-form-field__select {
  width: 100%;
  max-width: 335px;
  position: relative;
  border: 1px solid rgba(172, 178, 186, 0.48);
  background: rgba(255, 255, 255, 0.48);
  overflow: hidden;
  transition: all 0.4s ease;
}

.c-form-field__select:focus-within {
  border-color: #3e93c8;
}

.c-form-field__select::after {
  content: "";
  width: 13px;
  height: 8px;
  position: absolute;
  right: 22px;
  top: 50%;
  display: block;
  background: url(../images/contact_table_select_arrow.svg) no-repeat center/13px 8px;
  transform: translateY(-50%);
  pointer-events: none;
}

.c-form-field__select-control {
  width: 130%;
  padding: 23px 25px;
  font-size: 16px;
}

.c-form-field__select-control:focus {
  outline: none;
}

.c-form-field__note {
  margin-top: 10px;
}

/* チェックボックスの選択肢 */
.c-form-check__item + .c-form-check__item {
  margin-top: 10px;
}

.c-form-check__label {
  padding-left: 30px;
  position: relative;
  display: block;
  line-height: 1.88;
  font-size: 18px;
}

.c-form-check__input {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
}

.c-form-check__box {
  width: 22px;
  height: 22px;
  position: absolute;
  left: 0;
  top: 0.94em;
  z-index: 1;
  border: 1px solid #acb2ba;
  transform: translateY(-50%);
}

.c-form-check__box::before {
  content: "";
  width: 10px;
  height: 2px;
  position: absolute;
  top: 9px;
  left: 7px;
  display: none;
  background: #fff;
  transform: rotate(-50deg);
}

.c-form-check__box::after {
  content: "";
  width: 6px;
  height: 2px;
  position: absolute;
  top: 11px;
  left: 4px;
  display: none;
  background: #fff;
  transform: rotate(40deg);
}

.c-form-check__input:checked + .c-form-check__box {
  background: #0084ac;
}

.c-form-check__input:checked + .c-form-check__box::before,
.c-form-check__input:checked + .c-form-check__box::after {
  display: block;
}

.c-form-check__input:focus-visible + .c-form-check__box {
  outline: 2px solid #3e93c8;
  outline-offset: 2px;
}

/* エラー表示 */
.c-form-error {
  margin-top: 5px;
  font-size: 14px;
  color: #f00;
}

/* style.css の .all_text p:nth-child(n+2) が上に10pxを当てるため、詳細度をそろえて5pxに戻す */
.c-form-field__body p.c-form-error {
  margin-top: 5px;
}

.c-form-error--top {
  margin: 0 0 20px;
}

.c-form-field__input.is-error,
.c-form-field__select.is-error {
  border-color: #f00;
}

.c-form-check.is-error .c-form-check__box {
  border-color: #f00;
}

/* textarea は下に文字の下がり分のすき間ができるため、エラー時だけ上揃えにして文言を5px下に置く */
.c-form-field__input--textarea.is-error {
  vertical-align: top;
}

.c-form-field__input--other:disabled.is-error {
  border-color: rgba(172, 178, 186, 0.48);
}

.c-form-field__input--other:disabled + .c-form-error {
  display: none;
}

/* 個人情報保護方針への同意 */
.c-form-agree {
  margin: 25px 0 0 230px;
}

.c-form-agree__label {
  padding-left: 30px;
  position: relative;
  display: block;
  line-height: 1.88;
  font-size: 18px;
}

.c-form-agree__input {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
}

.c-form-agree__check {
  width: 22px;
  height: 22px;
  position: absolute;
  left: 0;
  top: 0.94em;
  z-index: 1;
  border: 1px solid #acb2ba;
  transform: translateY(-50%);
}

.c-form-agree__check::before {
  content: "";
  width: 10px;
  height: 2px;
  position: absolute;
  top: 9px;
  left: 7px;
  display: none;
  background: #fff;
  transform: rotate(-50deg);
}

.c-form-agree__check::after {
  content: "";
  width: 6px;
  height: 2px;
  position: absolute;
  top: 11px;
  left: 4px;
  display: none;
  background: #fff;
  transform: rotate(40deg);
}

.c-form-agree__input:checked + .c-form-agree__check {
  background: #0084ac;
}

.c-form-agree__input:checked + .c-form-agree__check::before,
.c-form-agree__input:checked + .c-form-agree__check::after {
  display: block;
}

.c-form-agree__input:focus-visible + .c-form-agree__check {
  outline: 2px solid #3e93c8;
  outline-offset: 2px;
}

.c-form-agree__text {
  letter-spacing: 0.02em;
  color: #193848;
}

.c-form-agree__link {
  text-decoration: underline;
  letter-spacing: inherit;
  color: #0084ac;
}

.c-form-agree__link:hover {
  text-decoration: none;
}

.c-form-agree__sub {
  margin-top: 18px;
  padding-left: 30px;
  letter-spacing: 0.03em;
  font-size: 17px;
}

.c-form-agree__error {
  padding-left: 30px;
}

.c-form-agree.is-error .c-form-agree__check {
  border-color: #f00;
}

/* 送信前の案内 */
.c-form-foot {
  margin-top: 80px;
}

.c-form-foot + .all_button {
  margin-top: 85px;
}

/* 確認画面 */
.c-form-confirm {
  margin-top: 50px;
}

.c-form-confirm__row {
  display: flex;
  border-bottom: 1px solid #e8e8e8;
}

.c-form-confirm__head {
  width: 230px;
  min-width: 230px;
  padding: 28px 0;
  font-weight: 700;
}

.c-form-confirm__body {
  flex: 1;
  min-width: 0;
  padding: 28px 0;
  overflow-wrap: anywhere;
}

.c-form-confirm__row:first-child .c-form-confirm__head,
.c-form-confirm__row:first-child .c-form-confirm__body {
  padding-top: 0;
}

.c-form-recaptcha {
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.c-form-recaptcha__error {
  text-align: center;
}

/* hidden属性で隠せるよう display:flex より優先させる */
.c-form-recaptcha[hidden] {
  display: none;
}

.c-form-recaptcha__box {
  width: 304px;
  height: 78px;
  border: 1px solid #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.c-form-submit {
  margin-top: 80px;
}

.c-form-submit__error {
  margin-top: 50px;
  text-align: center;
}

.c-form-submit__error + .c-form-submit {
  margin-top: 20px;
}

.c-form-back {
  margin-top: 40px;
  text-align: center;
}

.c-form-back__button {
  text-decoration: underline;
  font-size: 16px;
  color: #3e93c8;
  cursor: pointer;
}

.c-form-back__button:hover {
  text-decoration: none;
}

/* 完了画面 */
.c-form-thanks__button {
  margin-top: 145px;
}

@media (max-width: 1200px) {
  .all_under_split > .c-form-step {
    margin-top: 0;
    position: static;
    display: block;
    order: 1;
  }

  .c-form-step__list {
    width: 100%;
    max-width: none;
    display: flex;
    justify-content: space-between;
  }

  .c-form-step__item {
    width: 33.33%;
    text-align: center;
  }

  .c-form-step__item + .c-form-step__item {
    margin-top: 0;
  }

  .c-form-step__text {
    padding-bottom: 10px;
  }

  .c-form {
    margin-top: 70px;
  }
}

@media (max-width: 680px) {
  .c-form-step__list {
    display: block;
  }

  .c-form-step__item {
    width: auto;
    text-align: left;
  }

  .c-form-step__item + .c-form-step__item {
    margin-top: 10px;
  }

  .c-form-step__text {
    padding-bottom: 5px;
    display: inline-block;
    border-color: transparent;
    font-size: 16px;
  }
}

@media (max-width: 600px) {
  .c-form {
    margin-top: 40px;
  }

  .c-form-notice {
    margin-top: 35px;
    padding: 20px;
  }

  .c-form-catalog {
    margin-top: 35px;
  }

  .c-form-fields {
    font-size: 18px;
  }

  .c-form-field {
    display: block;
  }

  .c-form-field__head {
    width: 100%;
    min-width: 0;
    padding-top: 0;
  }

  .c-form-field:first-child .c-form-field__head {
    padding-top: 0;
  }

  .c-form-field__body {
    margin-top: 15px;
  }

  input.c-form-field__input,
  textarea.c-form-field__input {
    padding: 19px 20px;
  }

  .c-form-agree {
    margin-left: 0;
  }

  .c-form-agree__sub {
    margin-top: 8px;
    line-height: 1.5625;
    font-size: 16px;
  }

  .c-form-foot {
    margin-top: 38px;
  }

  .c-form-foot + .all_button {
    margin-top: 55px;
  }

  .c-form-confirm__row {
    display: block;
  }

  .c-form-confirm__head {
    width: 100%;
    min-width: 0;
    padding: 20px 0 0;
  }

  .c-form-confirm__body {
    padding: 5px 0 20px;
    font-size: 17px;
  }

  .c-form-confirm__row:first-child .c-form-confirm__body {
    padding-top: 5px;
  }

  .c-form-submit {
    margin-top: 55px;
  }

  .c-form-thanks__button {
    margin-top: 80px;
  }
}
