/* ==================
	contact
=====================*/
.contact .container {
  height: unset;
}

.contact .section__title {
  padding-top: 5.2rem;
}

.form__wrap {
  max-width: 108.0rem;
  margin-inline: auto;
  width: 100%;
  margin-top: 2rem;
}

.formList {
  display: grid;
  gap: 2.4rem;
}

.formList__item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  position: relative;
}

.formList__item:has(.thanks__message) {
  display: block;
}

.formList__item .required {
  display: inline-block;
  color: #FF4800;
  font-size: 1.2rem;
  position: relative;
}

.formList__item label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.7;
  padding-top: 1rem;
}

.formList__item input, .formList__item textarea {
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-family: var(--fontNotoSansJp);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: -0.025em;
  padding: 0.85rem 2rem;
}

.formList__item textarea {
  height: 10.0rem;
}

.formList__item input::placeholder {
  color: #b1b1b1;
}

.formList__item.checkbox-wrapper {
  padding-top: 1rem;
}

.form__Bottom {
  display: flex;
  justify-content: space-between;
  margin-block: 7.5rem 2.7rem;
}

.form__companyName {
  max-width: 9.375rem;
}

/* チェックボックス：ボタン風 */
.formList__item fieldset {
  padding: 0;
  margin: 0;
  border: none;
}

.formList__item fieldset legend {
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.7;
}

.checkbox-buttons {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  column-gap: 2.4rem;
  row-gap: 0;
}

label.checkbox-button {
  display: inline-block;
  width: fit-content;
  white-space: nowrap;
}

.checkbox-button input {
  position: absolute;
  opacity: 0;
}

.checkbox-button span {
  background: #fff;
  border-radius: 200px;
  display: block;
  padding: 0.3rem 1.2rem 0.4rem 1.2rem;
  cursor: pointer;
}

.checkbox-button input:checked + span {
  background: #C20404;
  color: #fff;
}

/* 同意チェック */
.form-agree__link {
  text-decoration: underline;
  display: inline-block;
  margin-right: 0.25rem;
}
.form__agree label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
  padding-top: 2rem;
}

.form__agree input {
  position: absolute;
  opacity: 0;
}

.form__agree-check {
  position: relative;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border: 1px solid #D9D9D9;
  border-radius: 3px;
  background-color: #fff;
}

.form__agree input:checked + .form__agree-check::after {
  content: "";
  background: url(../images/icon-form-check.svg) no-repeat center center / contain;
  width: 1.232rem;
  height: 0.84rem;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(1.2);
}

.form__agree-text {
  font-size: 1.4rem;
}

/* ボタン */
.form__topBtn {
  color: var(--colorBlack);
  font-family: var(--familyRoboto);
  font-size: 1.375rem;
  font-weight: 700;
  height: fit-content;
  letter-spacing: -0.025em;
  line-height: 1.2;
  padding-right: 1.2rem;
  position: relative;
}

.form__topBtn--arrow {
  background: currentColor;
  color: #333;
  display: inline-block;
  height: 0.6em;
  line-height: 1;
  position: relative;
  position: absolute;
  right: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  vertical-align: middle;
  width: 0.1em;
}

.form__topBtn--arrow::before {
  border: 0.1em solid currentColor;
  border-bottom: 0;
  border-left: 0;
  box-sizing: border-box;
  content: "";
  height: 0.4em;
  position: absolute;
  right: 50%;
  top: -0.05em;
  transform: rotate(-45deg);
  transform-origin: top right;
  width: 0.4em;
}

.form__submitWrap {
  position: relative;
  text-align: center;
  margin-top: 0.5rem;
}

.form__submitWrap img {
  left: 0;
  position: absolute;
  top: 0;
}

.form__submit input[type="submit"] {
  background: unset;
  border: unset;
  cursor: pointer;
  background-color: #C20404;
  border-radius: 200px;
  color: #fff;
  width: 14rem;
  line-height: 4rem;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 1.35px;
  padding: 0;
  position: relative;
  z-index: 1;
}

.form__submitWrap ,
.form__topBtn {
	transition: 0.3s;
}

@media (hover: hover){
	.form__submitWrap:hover ,
	.form__topBtn:hover{
		cursor: pointer;
		opacity: 0.7;
	}
}


.form__submitWrap:hover .form__submitArrow {
  width: 5rem;
}

.error__message {
  bottom: -1rem;
  color: #f00;
  left: 11.0625rem;
  position: absolute;
}

.formList__item:has(.error__message) {
  padding-bottom: 1rem;
}

.thanks__message {
  margin-top: 2rem;
  padding-left: 6rem;
  white-space: nowrap;
}

@media screen and (max-width: 767px) {
  .form__wrap {
    margin-top: 4rem;
  }
  .formList {
    gap: 1rem;
  }
  .formList__item-checkbox {
    padding-top: 1rem;
  }
}