@charset "utf-8";
@import url("root.css");
/***************************************
-------------- CONTACT --------------
***************************************/

.mailform_wrap {
  background: #fff;
  border-radius: 10px;
  padding: var(--sp-space);
  width: 100%;
  margin: calc(var(--sp-space) * 2) auto;
  box-shadow: 10px 10px 50px rgba(0,0,0,0.1);
}

label {
  font-size: 1.8rem;
}


/*------------------------------*/

span.must {
  display: block;
  width: 48px;
  text-align: center;
  font-size: 0.8em;
  background: var(--sub-color02);
  color: #fff;
  border-radius: 4px;
  margin-right: 10px;
}

.mailform {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--sp-space);
}

form dt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  padding-bottom: 5px;
}
form dd,
form dd.check,
form dd.upload,
form dd.select {
  width: 100%;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #333;
    box-sizing: border-box;
    vertical-align: bottom;
    font-size: 1.8rem;
}
#mailformpro select {
    padding: 8px;
    border: 1px solid #333;
    font-size: 1rem;
    box-sizing: border-box;
}

button[type="submit"] {
    display: flex;
    justify-content: center;
    align-items: center;
    width: min(75%, 400px);
    padding: 15px;
    border: none;
    background: var(--sub-color01);
    text-align: center;
    margin: 5rem auto 2rem;
    border-radius: 12px;
    font-size: min(4.6vw, 2.4rem);
}
button[type="submit"]:hover {
  opacity: 0.8;
  cursor: pointer; 
}

#mailformpro input[type="checkbox"] {
  all: revert;
}


/* =======================
  PC
======================== */
@media screen and (min-width: 1200px) {}
/* =======================
  TABLET
======================== */
@media screen and (max-width:1199px) {
}
/* =======================
  SP
======================== */
@media screen and (max-width: 599px) {
  .mailform {
    flex-wrap: wrap;
  }
  form dt {
    margin-bottom: 5px;
  }
  form dt,form dd {
    width: 100%;
  }

}