/* ==================================================
  Form Common Styles
================================================== */
header.form_header {
  text-align: center;
  padding: 3rem;
  margin: 0 2rem;
  background-color: white;
  color: var(--darkColor);
}

header.form_header h1 {
  line-height: 0;
  margin: 0;
}

header.form_header h1 img {
  width: 22rem;
}

.form_container {
  position: relative;
  border: none;
  padding: 5rem 4rem;
  z-index: 1;
  max-width: 136.6rem;
  margin: 0 auto;
}

.form_body {
  font-size: 1.6rem;
}

.button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 33.6rem;
  height: 4.6rem;
  font-size: 1.6rem;
  color: #fff;
  border-radius: 2.3rem;
  margin-top: -0.5rem;
  margin-left: auto;
  margin-right: auto;
  background-color: var(--darkColor);
  transition: all 0.3s ease;
  text-decoration: none;
  padding: 0 2rem;
  box-sizing: border-box;
  position: relative;
  cursor: pointer;
  border: 1px solid var(--darkColor);
}

.button:hover {
  background-color: #fff;
  color: var(--darkColor);
}

.button-text {
  text-align: center;
}

.button-arrow {
  position: absolute;
  right: 2rem;
  font-size: 1.8rem;
}

.button-arrow.left {
  left: 2rem;
  right: auto;
}

#footer {
  display: none;
  text-align: center;
  padding: 10rem 0;
}

/* index.php: フォーム入力画面 */
.form_section_header_text {
  margin: 0 auto 3rem;
  font-weight: 500;
}

.form_section {
  background-color: var(--bgColorlight);
  padding: 10rem;
}

.input_wrap {
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #e3e3e3;
}

.input_wrap:first-of-type {
  border-top: 1px solid #e3e3e3;
}

.input_wrap label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: justify;
  box-sizing: border-box;
}

.input_wrap .required {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  padding: 0.3rem 0.7rem;
  background-color: var(--darkColor);
  border-radius: 0.2rem;
}

.input_wrap input,
.input_wrap textarea,
.input_wrap select {
  border: 1px solid #2e2722;
}

.input_wrap input::placeholder,
.input_wrap textarea::placeholder,
.input_wrap select {
  font-size: 1.6rem;
}

.input_wrap .check input,
.input_wrap .radio input {
  margin-right: 0.5rem;
}

.input_wrap select.is_empty {
  color: gray;
}

.input_wrap .error_message {
  background-color: #efefef;
  color: #d00303;
  list-style: none;
  padding: 1rem;
}

.input_wrap div.validation-error {
  display: block;
  color: #d00303;
  text-align: justify;
  padding-left: 1rem;
}

#privacy-check.input_wrap div.validation-error {
  text-align: center;
}

.input_wrap.radio_wrap div.input {
  display: block;
}

.input_wrap.radio_wrap div.input div {
  display: flex;
  align-items: center;
  width: auto !important;
  margin-bottom: 1rem;
}

.input_wrap.radio_wrap div.input div input[type="radio"],
.input_wrap.radio_wrap div.input div input[type="checkbox"] {
  margin-right: 0.8rem;
}

.input_wrap.radio_wrap div.input div label {
  padding: 0;
  margin-bottom: 0;
}

.input_wrap div.input select option {
  padding: 0.3rem 0.7rem;
}

.privacy_notes{
  text-align: justify;
  padding-bottom: 1rem;
}

.privacy_wrap {
  text-align: justify;
  background-color: #ffffff;
  height: 200px;
  overflow: auto;
  overflow-y: scroll;
  overflow-x: auto;
  padding: 45px 35px;
  border: 1px solid #a5a5a5;
}

.privacy_wrap h3,
.privacy_wrap h4 {
  text-align: center;
  font-weight: bold;
  font-size: 1.6rem;
  margin-bottom: 1.5em;
}

.privacy_wrap h3 {
  font-size: 1.8rem;
}

.privacy_wrap h4 {
  margin-top: 2em;
}

.privacy_wrap p {
  margin-bottom: 1.5em;
  line-height: 1.7;
}

.privacy_wrap dl {
  margin-bottom: 1em;
}

.privacy_wrap dl:last-of-type {
  margin-bottom: 0;
}

.privacy_wrap dt {
  font-weight: bold;
  margin-bottom: 0.5em;
}

.privacy_wrap dd {
  line-height: 1.7;
  margin-bottom: 1.5em;
  padding-left: 0;
  margin-left: 0;
}

.a_column.input-wrap div.input div {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#privacy-check.input_wrap {
  border: none;
}

.input_wrap label.privacy {
  justify-content: center;
  width: 100%;
}

.input_wrap label.privacy input {
  margin-right: 0.5rem;
}

input[type="submit"],
input[type="button"] {
  border: 0;
  box-shadow: 0;
}

/* confirm.php: 確認画面 */
dl.confirm dt:first-of-type,
dl.confirm dd:first-of-type {
  border-top: 1px solid #e3e3e3;
}

dl.confirm dt,
dl.confirm dd {
  border-bottom: 1px solid #e3e3e3;
  box-sizing: border-box !important;
  margin-left: 0 !important;
}

/* complete.php: 完了画面 */
main.complete h3 {
  text-align: center;
  margin-bottom: 2rem;
}

main.complete .contact_txt {
  text-align: center;
}

main.complete .form_body .content {
  max-width: 78rem;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

main.complete .button {
  margin-top: 3rem;
}

/* 共通スタイル */

/* ==================================================
  Media Query : Very Small Mobile
================================================== */
@media screen and (max-width: 450px) {
  .form_submit_button {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }
  
  .form_submit_button .button {
    width: 100% !important;
    max-width: 30rem;
  }
  
  .button-arrow {
    right: 1.5rem;
    font-size: 1.6rem;
  }
  
  .button-arrow.left {
    left: 1.5rem;
  }
}

/* ==================================================
  Media Query : Mobile
================================================== */
@media screen and (max-width: 799px) {
  .button {
    width: 30rem;
    height: 4rem;
    border-radius: 2rem;
    font-size: 1.4rem;
    padding: 0 1.5rem;
  }
  
  .button-arrow {
    font-size: 1.6rem;
    right: 1.5rem;
  }
  
  .button-arrow.left {
    left: 1.5rem;
    right: auto;
  }
  
  .form_section {
    padding: 2rem;
  }
  .form_container {
    padding: 2.5rem;
  }
  .form_body {
    font-size: 1.4rem;
    width: auto;
    box-sizing: border-box;
    background-color: #fff;
  }
  #footer {
    padding-top: 3rem;
  }
  form {
    margin-top: 3rem;
  }
  .input_wrap {
    margin-bottom: 2rem;
  }
  .input_wrap:first-of-type {
    padding-top: 2rem;
  }
  .input_wrap label {
    width: 100%;
    margin-bottom: 1rem;
  }
  .input_wrap .required {
    height: 2.1rem;
    font-size: 0.8rem;
  }
  .input_wrap div.input {
    width: 100%;
    box-sizing: border-box;
  }
  .input_wrap div.input > input,
  .input_wrap div.input > textarea {
    width: 100%;
    padding: 1.5rem;
    box-sizing: border-box;
  }
  .privacy_agreement .input_wrap div.input div {
    width: 100% !important;
  }
  .input_wrap div.input select {
    width: 70%;
    padding: 1.5rem;
    box-sizing: border-box;
  }
  .input_wrap div.input select.time_select {
    width: 100%;
  }
  .form_submit_button {
    margin-top: 4rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  .form_submit_button .button {
    width: calc(50% - 0.5rem);
    min-width: 13rem;
  }
  .sp_margin {
    margin-top: 1rem !important;
  }
  #privacy-check {
    margin-top:2rem;
  }
  dl.confirm {
    display: flex;
    flex-wrap: wrap;
    box-sizing: border-box !important;
    margin-top: 3rem;
  }
  dl.confirm dt,
  dl.confirm dd {
    display: flex;
    margin: 0 !important;
    flex-wrap: wrap;
    padding: 2.5rem 0;
  }

  dl.confirm dt {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 30%;
    text-align: left;
    box-sizing: border-box;
  }
  dl.confirm dd {
    width: 70%;
    padding-left: 1.5rem;
  }
  dd {
    margin-inline-start: 0 !important;
  }
  main.complete .contact_txt {
    text-align: left;
  }
}
/* ==================================================
  Media Query : Desktop
================================================== */
@media screen and (min-width: 799px) {
  .form_body {
    margin: 0 auto;
  }
  form {
    margin-top: 5rem;
  }
  .input_wrap {
    display: flex;
    margin-bottom: 2.5rem;
  }
  .input_wrap:first-of-type {
    padding-top: 2.5rem;
  }
  .input_wrap label {
    width: 21rem;
    padding: 0 1.5rem;
  }
  .input_wrap .required {
    height: 2.3rem;
    font-size: 1rem;
  }
  .input_wrap div.input {
    flex: 1;
    padding: 0 1.5rem;
    box-sizing: border-box;
  }
  .input_wrap div.input > input,
  .input_wrap div.input > textarea {
    width: 100%;
    padding: 1.8rem;
    box-sizing: border-box;
  }
  .privacy_agreement .input_wrap {
    display: flex;
  }
  .privacy_agreement .input_wrap div.input {
    display: flex;
    align-items: center;
  }
  .privacy_agreement .input_wrap div.input div {
    width: 100%;
    align-items: center;
  }
  .input_wrap div.input select {
    width: 33.33%;
    padding: 1.8rem;
    box-sizing: border-box;
  }
  .input_wrap div.input select.time_select {
    width: 100%;
  }
  #privacy-check {
    margin-top:5rem;
  }
  /* Confirm */
  dl.confirm {
    display: flex !important;
    flex-wrap: wrap;
    margin-top: 5rem;
  }
  dl.confirm dt,
  dl.confirm dd {
    padding: 3.5rem 1.5rem;
  }

  dl.confirm dt {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    width: 25%;
  }
  dl.confirm dd {
    width: 75%;
    text-align: left;
  }
  .form_submit_button {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 55rem;
    margin-left: auto;
    margin-right: auto;
    margin-top: 5rem;
  }
  
  .form_submit_button .button {
    width: auto;
    min-width: 20rem;
  }
}


@media screen and (min-width: 769px) {
  form .input_wrap:nth-child(5) div.input {
    flex: 0 0 auto;
  }
}