@charset "UTF-8";
.contact{
  position: relative;
  width: 100%;
  max-width: 500px;
  margin-top: 289px;
  margin-bottom: 118px;
}

.contact p{
  font-size: 1em;
  font-weight: 700;
}

.contact .sec-text > p{
  line-height: 2;
}

.contact .sec-text {
  margin-top: 55px;
}

.contact .form-area{
  margin: 68px 0 0;
}

.contact .form dl>div{
  margin-top: 27px;
}

.contact .form dt .form-heading{
  display: flex;
  align-items: center;
  margin: 0;
  color: #000;
  font-size: 1em;
  font-weight: 700;
}

.contact .form dt .form-heading span.required {
  display: inline-block;
  width: 36px;
  margin-left: 8px;
  border-radius: 10px;
  font-size: 0.625em;
  font-weight: 700;
  line-height: 15px;
  color: #fff;
  background-color: #E41253;
  text-align: center;
}

.contact .form dt .form-example{
  margin: 3px auto 0;
  color: rgb(0, 0, 0, 0.6);
  font-size: 0.75em;
  font-weight: 400;
}

/* 入力エラー時 */
.contact .form .error{
  position: relative;
  margin: 5px auto 0;
  padding-left: 25px;
  font-size: 0.875em;
  font-weight: 700;
  color: #E41253;
}

.contact .form .error::before{
  position: absolute;
  left: 0;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  background: url(/assets/images/icon-error.svg) center center no-repeat;
  content: "";
}

/* テキスト入力 */
.form-input {
  margin: 7px 0 0;
}

.form-input input {
  position: relative;
  width: 100%;
  padding: 19px 17px;
  border: 1px solid #000;
  color: #000;
  background-color: #fff;
}

.form-input input.alert{
  border: 1px solid #E41253;
}

.form-input input:-webkit-autofill {
  /* box-shadow: 0 0 0 1000px #222631 inset !important; 
  -webkit-text-fill-color: #fff !important; */
}

.form-input input:-webkit-autofill:focus {
  caret-color: #fff !important;
}

/* セレクトボックス */
.form-select {
  position: relative;
  width: 100%;
  margin: 7px 0 0;
}

.form-select::before {
  position: absolute;
  display: block;
  width: 20px;
  height: 20px;
  right: 23px;
  top: 22px;
  z-index: 1;
  background: url(/assets/images/select-arrow.svg) center center no-repeat;
  content: "";
}

.form-select select{
  width: 100%;
  padding: 19px 17px;
  border: 1px solid #000;
  color: #000;
  background-color: #fff;
}

.form-select select.alert{
  border: 1px solid #FF4461;
}

/* テキストエリア */
.form-textarea {
  margin: 7px 0 0;
}

.form-textarea textarea {
  position: relative;
  width: 100%;
  height: 200px;
  padding: 23px 17px;
  border: 1px solid #000;
  color: #000;
  background-color: #fff;
}

.form-textarea textarea.alert{
  border: 1px solid #FF4461;
}

/* プライバシーポリシーに同意 */
.non-input{
  display: none;
}

.agree-action-box{
  display: flex;
  flex-direction: column;
  align-items: center;
}

.agree-button-box {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 33px 0 0;
}

.agree-button-box input[type=checkbox] + span{
  color: #fff;
}

.agree-button-box>label{
  display: flex;
  align-items: center;
  column-gap: 12px;
}

/* 同意するボタン */
input[type=checkbox] {
  height: 20px;
  width: 20px;
  border-radius: 2px;
  background-color: #222631;
  appearance: none;
}

input[type=checkbox]:checked {
  background-color: #1246E4;
}

input[type=checkbox]:checked::before {
  content: "";
  display: block;
  position: relative;
  left: 7px;
  top: 4px;
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

input[type=checkbox]:focus-visible {
  outline-offset: 2px;
}

.agree-text {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 35px auto 0;
}

.agree-text p{
  margin: 0;
  text-align: center;
  color: rgb(255, 255, 255, 0.8);
  line-height: 1.75;
}

.agree-text a{
  text-decoration: underline;
}

/* button */
.form-buttons{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  row-gap: 32px;
  margin: 56px auto 0;
}

.back-button{
  width: 100%;
  max-width: 280px;
  line-height: 64px;
  border-radius: 40px;
  font-size: 1em;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #000;
  background-color: #CECECE;  
  cursor: pointer;
  text-align: center;
  transition: .3s all ease;  
}

.submit-button{
  width: 100%;
  max-width: 280px;
  line-height: 64px;
  border-radius: 40px;
  font-size: 1em;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
  color: #fff;
  background-color: #000;  
  cursor: pointer;
  text-align: center;
  transition: .3s all ease;
}

.back-button button,
.submit-button button{
  width: 100%;
  border: none;
}

.contact .form .note{
  position: relative;
  margin: 18px 0 0;
  padding-left: 0.75em;
  text-indent: -0.75em;
  font-size: 0.75em;
  line-height: 1.5;
  color: rgb(255, 255, 255, 0.8);
}

.contact .form .note::before{
  content: "※";
}

.contact .form .note + .note{
  margin: 6px 0 0;
}

/* 確認画面用 */
.contact .form .confirm-text{
  margin: 20px auto 33px;
  color: #000;
  line-height: 1.75;
}

.contact .form .form-select:has(.confirm-text)::before{
  content: none;
}

/* 完了画面用 */
.contact .complete{
  width: 100%;
  max-width: 888px;
  margin: 59px auto 0;
}

.contact .complete p{
  margin: 0 auto;
  line-height: 1.75;
  color: #000;
}

.contact .complete p + p{
  margin: 20px auto 0;
}

@media screen and (min-width: 769px) {
  .submit-button:hover{
    background: #3F3F3F;
  }

  .back-button:hover{
    background-color: #DADADA;
  }
}

@media screen and (max-width: 768px) {
  .contact{
    padding: 0 32px;
    margin-top: 61px;
    margin-bottom: 56px;
  }

  .contact p{
    font-size: 0.875em;
  }

  .contact .sec-text {
    margin-top: 39px;
  }
  
  .contact .form-area{
    margin: 54px 0 0;
  }
  
  .contact .form dl>div{
    margin-top: 26px;
  }

  .contact .form dt .form-heading{
    font-size: 0.875em;
  }
  
  .contact .form dt .form-heading span.required {
    font-size: 0.714em;
  }
  
  /* テキスト入力 */
  .form-input {
    margin: 5px 0 0;
  }

  .form-input input {
    padding: 19px 17px;
  }

  /* セレクトボックス */
  .form-select::before {
    width: 16px;
    height: 16px;
    right: 23px;
    top: 22px;
    background: url(/assets/images/select-arrow.svg) center center / 16px no-repeat;
  }
  
  .form-select select{
    width: 100%;
    padding: 19px 17px;
    color: #000;
    background-color: #fff;
  }
  
  /* テキストエリア */
  
  .form-textarea textarea {
    height: 200px;
    padding: 18px 17px;
  }

  .contact .form dt .form-example{
    margin: 5px auto 0;
  }
  
  /* button */
  .form-buttons{
    margin: 40px auto 0;
  }

  .back-button{
    line-height: 60px;
    font-size: 1em;
  }

  .submit-button{
    line-height: 60px;
    font-size: 1em;
  }
  
  .contact .form .note{
    margin: 15px 0 0;
  }
  
  .contact .form .note + .note{
    margin: 3px 0 0;
  }

  /* 確認画面用 */
  .contact .form .confirm-text{
    margin: 8px auto 25px;
  }
  
  /* 完了画面用 */
  .contact .complete{
    margin: 37px auto 0;
  }

  .contact .complete p{
    font-size: 0.875em;
  }

  .contact .complete p + p{
    margin: 15px auto 0;
  }
}