/* ==================================================
  Form Common Styles
================================================== */
.form_bg {
  background-image: url('../../assets/img/sec_bg_2.png');
  background-repeat: repeat;
  padding-bottom: 10rem;
  min-height: 100vh;
}
header.form_header {
  text-align: center;
  padding: 3rem 3rem 0;
  margin: 0 2rem;
  color: var(--darkColor);
  background-image: url('../../assets/img/form_illust.png');
  background-repeat: no-repeat;
  background-position: 15% bottom;
  background-size: contain;
}
header.form_header h1 {
  line-height: 0;
  margin: 0;
  padding-bottom: 3rem;
}
header.form_header h1 img {
  max-width: 44rem;
  width: 35%;
}
.form_section {
  margin: 0 10rem;
}
.form_section_stripe_bg {
  background-image: url('../../assets/img/stripe_red_blue.jpg');
  background-repeat: repeat;
  padding: 3rem;
}
.form_container {
  background-color: #f6e7c8;
  padding: 4rem 6.5rem;
}
.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: 0.8rem;
  border: 0 !important;
  margin-top: -0.5rem;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(to bottom, #FFA64D 0%, #FF7700 100%);
  box-shadow: 0 4px 8px rgba(255, 119, 0, 0.3);
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: linear-gradient(to bottom, #FFB76D 0%, #FF8820 100%);
  box-shadow: 0 6px 12px rgba(255, 119, 0, 0.4);
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(255, 119, 0, 0.3);
}

.button.back_button {
  background: linear-gradient(to bottom, #e0e0e0 0%, #999999 100%);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.button.back_button:hover {
  background: linear-gradient(to bottom, #efefef 0%, #aaaaaa 100%);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.button.back_button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

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

/* ==================================================
  Form Index Styles
================================================== */
.form_section_header {
  text-align: center;
  margin-bottom: 3rem;
}
.form_section_header img {
  max-width: 77rem;
  width: 75%;
  margin: 0 auto;
}
.form_section_header p {
  font-weight: 500;
  color: #231815;
}
.input_wrap {
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #9fa0a0;
}
.input_wrap:first-of-type {
  border-top: 1px solid #9fa0a0;
}
.input_wrap label {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  text-align: justify;
  box-sizing: border-box;
}
.input_wrap label.form_label {
  font-weight: 700;
}
.input_wrap .required {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  padding: 0.3rem 0.7rem;
  background-color: #c8161d;
  border-radius: 0.2rem;
  margin-left: 0.5rem;
}
.input_wrap input,
.input_wrap textarea,
.input_wrap select {
  border: 1px solid #9fa0a0;
}
.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.checkbox_wrap div.input div.validation-error {
  width: 100% !important;
  margin-top: 1rem;
  padding-left: 0;
}
.input_wrap.checkbox_wrap div.input {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
}
.input_wrap.checkbox_wrap div.input div {
  display: flex;
  align-items: center;
  width: auto !important;
  margin-bottom: 0;
}
.input_wrap.checkbox_wrap div.input div input[type="radio"],
.input_wrap.checkbox_wrap div.input div input[type="checkbox"] {
  margin-right: 0.8rem;
}
.input_wrap.checkbox_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: 4rem;
}
.privacy_wrap {
  text-align: justify;
  background-color: #ffffff;
  height: 200px;
  overflow: auto;
  overflow-y: scroll;
  overflow-x: auto;
  padding: 45px 35px;
  border: 1px solid rgb(164 165 165);
}
.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;
}
input#zip {
  width: 22.5rem;
}
select#todofuken {
  width: 15rem;
}
input#address {
  width: 100%;
}
.p_zip {
  font-size: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.zip_icon {
  margin-right: 0.5rem;
}
.zip_input {
  margin-right: 1rem;
}
.zip_text {
  font-size: 1.4rem;
}

/* confirm.php: 確認画面 */
dl.confirm dt:first-of-type,
dl.confirm dd:first-of-type {
  border-top: 1px solid #9fa0a0;
}
dl.confirm dt,
dl.confirm dd {
  border-bottom: 1px solid #9fa0a0;
  box-sizing: border-box !important;
  margin-left: 0 !important;
  text-align: justify;
}

dl.confirm dt {
  font-weight: 700;
}

/* 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 : Mobile
================================================== */
@media screen and (max-width: 1024px) {
  header.form_header {
    padding: 2rem 0 1rem;
    background-position: 2% bottom;
  }
  header.form_header h1 {
    padding: 2rem;
  }
  header.form_header h1 img {
    width: 50%;
  }
  .button_wrap {
    padding-bottom: 2rem;
  }
  .button {
    width: 25rem;
    height: 5rem;
    border-radius: 1.5rem;
    font-size: 1.4rem;
  }
  .form_bg {
    padding-bottom: 0;
  }
  .form_section {
    padding: 0 2rem 2rem;
    margin: 0;
  }
  .form_section_stripe_bg {
    padding: 2rem;
  }
  .form_container {
    padding: 2rem 4rem;
  }
  .form_body {
    font-size: 1.4rem;
    width: auto;
    box-sizing: border-box;
  }
  #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,
  .input_wrap .zip_input input {
    width: 100%;
    padding: 1.5rem;
    box-sizing: border-box;
    background-color: #fff;
  }
  .input_wrap .zip_input input {
    width: auto;
  }
  .privacy_agreement .input_wrap div.input div {
    width: 100% !important;
  }
  .input_wrap div.input select {
    width: 70%;
    padding: 1.5rem;
    box-sizing: border-box;
    background-color: #fff;
  }
  .input_wrap div.input select.time_select {
    width: 100%;
    background-color: #fff;
  }
  .form_submit_button {
    margin-top: 4rem;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  .form_submit_button .button {
    width: 100%;
    max-width: 25rem;
  }
  .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: 1rem;
  }
  dl.confirm dt,
  dl.confirm dd {
    margin: 0 !important;
    flex-wrap: wrap;
    padding: 1.5rem 0;
  }
  dl.confirm dt {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    font-weight: 700;
    padding-bottom: 0.5rem;
  }
  dl.confirm dd {
    width: 100%;
    padding-left: 0;
    padding-top: 0.5rem;
  }
  dd {
    margin-inline-start: 0 !important;
  }
  dl.confirm dd:first-of-type {
    border-top: none;
  }
  dl.confirm dt {
    border-bottom: none;
  }
  .contact_txt {
    text-align: left;
  }
  .p_zip {
    font-size: 1.4rem;
  }
  .zip_text {
    width: 100%;
    margin-top: 1rem;
    font-size: 1.2rem;
  }
}

@media screen and (max-width: 768px) {
  header.form_header {
    padding: 1rem 0 0;
    background-image: none;
  }
  header.form_header h1 img {
    width: 60%;
  }
  .form_container {
    padding: 2rem 2rem;
  }
  .form_section_header img {
    width: 100%;
    margin: 0 auto;
  }
  .form_section_header p {
    margin-top: 2rem;
    font-size: 1.6rem;
  }
}

@media screen and (max-width: 400px) {
  header.form_header h1 img {
    width: 80%;
  }
}

/* ==================================================
  Media Query : Desktop
================================================== */
@media screen and (min-width: 1025px) {
  .form_body {
    margin: 0 auto;
  }
  form {
    margin-top: 5rem;
  }
  .input_wrap {
    margin-bottom: 2.5rem;
  }
  .input_wrap:first-of-type {
    padding-top: 2.5rem;
  }
  .input_wrap label {
    width: 100%;
    margin-bottom: 1rem;
  }
  .input_wrap .required {
    height: 2.3rem;
    font-size: 1rem;
  }
  .input_wrap div.input {
    width: 100%;
    box-sizing: border-box;
  }
  .input_wrap div.input > input,
  .input_wrap div.input > textarea,
  .input_wrap .zip_input input {
    width: 100%;
    padding: 1.8rem;
    box-sizing: border-box;
    background-color: #fff;
  }
  .input_wrap .zip_input input {
    width: auto;
  }
  .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;
    background-color: #fff;
  }
  .input_wrap div.input select.time_select {
    width: 100%;
    background-color: #fff;
  }
  #privacy-check {
    margin-top:5rem;
  }
  .zip_text {
    width: auto;
    margin-top: 0;
  }
  /* Confirm */
  dl.confirm {
    display: flex !important;
    flex-wrap: wrap;
    margin-top: 2rem;
  }
  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%;
  }
  .form_submit_button {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 55rem;
    margin-left: auto;
    margin-right: auto;
    margin-top: 5rem;
  }
  .form_submit_button .button {
    width: calc(50% - 0.75rem);
  }
}