@charset "utf-8";

.sub_title,
.title {
  text-align: center;
}

.contact_main {
  margin: 100px auto;
  max-width: 680px;
  padding: 0 10px;
}

.contact_main p {
  text-align: center;
}

.progress_container {
  margin: 50px auto;
}

.progress_wrap {
  position: relative;
}

.progress_bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin-bottom: 20px;
  text-align: center;
  margin: 90px auto;
  width: 85%;
}

.progress_circle {
  width: 10px;
  height: 10px;
  border: 3px solid #a0a0a0;
  border-radius: 50%;
  background-color: #fff;
  color: #a0a0a0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  font-weight: bold;
  position: relative;
}

.progress_circle.active {
  border-color: #83ccd4;
  background-color: #83ccd4;
  color: #fff;
}

.progress_line {
  flex: 1;
  height: 2px;
  background-color: #a0a0a0;
  position: relative;
}

.progress_label {
  font-size: 14px;
  color: #a0a0a0;
  position: absolute;
  white-space:nowrap;
  top:30px;
  left:50%;
  transform: translate(-50%, -50%);
}

.progress_label.active {
  color: #83ccd4;
}

.form_group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 40px;
  gap: 50px;
}

.contact_label {
  flex: 0 0 25%;
  font-weight: bold;
  margin-top: 12px;
}

/* ラジオボタン */
.radio_group {
  display: flex;
  flex-wrap: wrap;
}

.radio_group label {
  width: 50%;
  display: flex;
  align-items: center;
  margin: 10px auto;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  flex: 1;
  padding: 8px;
  font-size: 14px;
  border: 1px solid #545454;
  border-radius: 10px;
  background-color: #fcf2e5;
}

textarea {
  resize: vertical;
  height: 200px;
  background-color: #fcf2e5;
}

.contact_button {
  margin: 50px auto;
  height: 44px;
}

.radio_group input[type="radio"] {
  display: none;
}

.radio_group label::before {
  content: "〇";
  font-size: 16px;
  margin-right: 8px;
  color: #333;
}

.radio_group label::before {
  content: "〇";
  font-size: 16px;
  margin-right: 8px;
  color: #333;
}

.radio_group input[type="radio"]:checked+label::before {
  content: "●";
  color: #83ccd4;
}


/* 確認画面 */
.confirm_form {
  display: none;
  margin: 0 auto;
}

.confirm_form input,
.confirm_form textarea {
  background: transparent;
  border: none;
  padding: 0;
  width: 100%;
  font-family: 'Zen Kaku Gothic Antique';
  color: #545454;
  font-size: 14px;
  font-weight: 400;
}

.confirm_form input:focus,
.confirm_form textarea:focus {
  outline: none;
}

.confirm_form label {
  margin: 0;
}

.confirm_form textarea {
  resize: none;
  height: 150px;
}

.confirm_form input, .confirm_form textarea {
  margin-top: 8px;
}

.confirm_form .button_wrap {
  display: flex;
  margin-top: 10px;
  justify-content: center;
  gap: 70px;
}

.confirm_form .contact_label {
  flex: 0 0 30%;
  font-weight: bold;
  margin-top: 12px;
}

/* 完了画面 */
.completed_form {
  display: none;
}

.completed_form p {
  line-height: 2;
  margin: 80px auto;
}

.completed_button {
  margin: 30px auto;
}

@media screen and (max-width: 767px) {
  .progress_bar {
    max-width: 280px;
  }
  .progress_label.input::after {
    content: "入力";
  }

  .progress_label.confirm::after {
    content: "確認";
  }

  .progress_label.complete::after {
    content: "完了";
  }

  .progress_label {
    visibility: hidden;
    position: absolute;
  }

  .progress_label::after {
    visibility: visible;
    position: absolute;
    left: 0;
    top: 0;
    display: block;
    width: 100%;
  }
  
  #contact_text , .competed_text {
    max-width: 280px;
    margin: 50px auto;
    text-align: start !important;
    line-height: 1.5;
  }

  .form_group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 280px;
    margin: 30px auto;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  textarea {
    width: 100%;
    max-width: 280px;
  }

  .radio_group {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .radio_group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
    width: 100%;
  }
  .confirm_form .button_wrap {
    max-width: 280px;
    margin: 50px auto;
  }
}

body.night {
  .contact_label {
    color: #fcf2e5;
  }
  .radio_group label {
    color: #fcf2e5;
  }
  .radio_group label::before {
    color: #fcf2e5;
  }
  .radio_group input[type="radio"]:checked+label::before {
    color: #F4EEA6;
  }
  .progress_circle.active {
    border-color: #F4EEA6;
    background-color: #F4EEA6;
  }
  .progress_label.active {
    color: #F4EEA6;
  }
  .progress_circle {
    background-color: transparent;
  }
  .confirm_form input, .confirm_form textarea {
    color: #fcf2e5;
    margin-top: 8px;
  }
}