@charset "UTF-8";

:root {
  --color-form-border: #989998;

  --color-require: #f56868;
  --color-require-contrast: #ffffff;

  --color-submit: #4380df;
  --color-submit-shade: #3362ad;
  --color-submit-disabled: #7e7e7e;
  --color-submit-contrast: #ffffff;
}

h3 {
  width: 95%;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}
form {
  width: 100%;
  max-width: 360px;
  margin: 40px auto 176px auto;
}
@media only screen and (min-width: 960px) {
  h3 {
    width: 80%;
    max-width: 920px;
  }
  form {
    width: 80%;
    max-width: 720px;
    margin: 80px auto 176px auto;
  }
}

.form-title::after {
  content: "";
  margin: 0 auto;
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 1px;
  background: #333;
}

input, select, textarea {
  border: 1px solid var(--color-form-border);
}

input, select {
  height: 50px;
  opacity: 1;
  padding: 8px;
}

::placeholder {
  color: #c0c0c0;
}

.form_item {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 1fr 1fr 1fr;
  margin-bottom: 48px;
}
.form_item > *:nth-child(odd) {
  grid-column: 1;
  grid-row: 1 / 3;
}
.form_item > *:nth-child(even) {
  grid-column: 1;
  grid-row: 3 / 5;
  margin: 0 10px;
}
#contact-form > div:nth-child(4) {
  margin-bottom: 24px;
}
#contact-form > div:nth-child(4) > label {
  grid-row: 1 / 2;
}
#contact-form > div:nth-child(4) > textarea {
  grid-row: 2 / 5;
}
@media only screen and (min-width: 960px) {
  .form_item {
    display: grid;
    grid-template-columns: 55% 45%;
    grid-template-rows: 1fr;
    margin-bottom: 48px;
  }
  .form_item > *:nth-child(odd) {
    grid-row: 1;
    grid-column: 1 / 2;
  }
  .form_item > *:nth-child(even) {
    grid-row: 1;
    grid-column: 2 / 3;
  }
  #contact-form > div:nth-child(4) {
    margin-bottom: 48px;
  }
  #contact-form > div:nth-child(4) > label,
  #contact-form > div:nth-child(4) > textarea {
    grid-row: 1;
  }
}

.required::before {
  content: "必須";
  background-color: var(--color-require);
  color: var(--color-require-contrast);
  font-size: 14px;
  min-width: 48px;
  padding: 7px 10px;
  margin: 0px 10px;
  line-height: 1;
  vertical-align: middle;
  white-space: nowrap;
  text-align: center;
  display: inline-block;
}

label {
  font-size: 14px;
  white-space:nowrap;
}
@media only screen and (min-width: 960px) {
  label {
    font-size: 20px;
  }
}

.tac {
  text-align: center;
}

form a {
  text-decoration: underline;
}

.policy {
  margin-bottom: 40px;
  white-space: nowrap;
}
@media only screen and (min-width: 960px) {
  .policy {
    margin-bottom: 48px;
  }
}

.policy > label {
  font-size: 12px;
}
@media only screen and (min-width: 960px) {
  .policy > label {
    font-size: 14px;
  }
}

.policy > input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-right: 16px;
}

input[type="submit"] {
  width: 184px;
  height: 48px;
  padding: 11px 20px;
  border-color: var(--color-submit);
  background: var(--color-submit);
  font-size: 16px;
  letter-spacing: 16px;
  text-indent: 16px;
  color: var(--color-submit-contrast);
}
@media only screen and (min-width: 960px) {
  input[type="submit"] {
    width: 270px;
    height: 72px;
    font-size: 28px;
    letter-spacing: 28px;
    text-indent: 28px;
  }
}
input[type="submit"]:hover {
  border-color: var(--color-submit-shade);
  background: var(--color-submit-shade);
}
input[type="submit"]:disabled {
  border-color: var(--color-submit-disabled);
  background: var(--color-submit-disabled);
}

main p {
  font-size: 14px;
}
@media only screen and (min-width: 960px) {
  main p {
    font-size: 20px;
  }
}

.mt_l {
  margin-top: 32px !important;
}
.mtb_l {
  margin-top: 32px !important;
  margin-bottom: 32px !important;
}
@media only screen and (min-width: 960px) {
  .mt_l {
    margin-top: 80px !important;
  }
  .mtb_l {
    margin-top: 80px !important;
    margin-bottom: 80px !important;
  }
}