/* ----------------------------------------------------------------
    Pseudo element (Block)
----------------------------------------------------------------- */
.form-radio + label::before,
.form-radio + label::after,
.form-checkbox + label::before,
.form-checkbox + label::after,
.form-lyt-btn .btn::after {
  display: block;
  content: "";
}

/* ----------------------------------------------------------------
    Margin Reset
----------------------------------------------------------------- */
.form-content > form > :first-child {
  margin-top: 0;
}

.form-content > form > :last-child {
  margin-bottom: 0;
}

/* ----------------------------------------------------------------
    Form override
----------------------------------------------------------------- */
.form-input[type="text"],
.form-input[type="tel"],
.form-input[type="email"],
.form-textarea,
.form-radio + label::before,
.form-checkbox + label::before {
  border: 1px solid #ddd;
  background: #fcfcfc;
  box-shadow: 0 0 5px rgba(0, 0, 0, .1) inset;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* .aform
----------------------------------------------- */
/* .form-input
----------------------------------------------- */
.form-input[type="text"],
.form-input[type="tel"],
.form-input[type="email"] {
  margin-bottom: 10px;
  padding: 10px 13px;
  width: 100%;
  height: 40px;
  border-radius: 4px;
}

@media only screen and (min-width: 768px) {
  .form-input[type="text"]:not(.form-relation),
  .form-input[type="tel"],
  .form-input[type="email"] {
    max-width: 656px;
  }
  .form-relation
  {
   max-width: 300px;
  }
}


/* .form-textarea
----------------------------------------------- */
.form-textarea {
  margin-bottom: 10px;
  padding: 10px 13px;
  width: 100%;
  height: 200px;
  border-radius: 4px;
}

@media only screen and (min-width: 768px) {
  .form-textarea {
    max-width: 656px;
  }
}


/* .form-radio-ul
----------------------------------------------- */
.form-radio-ul {
  /*display: inline-flex;*/
  flex-wrap: wrap;
  margin: -20px 0 0 -10px;
  width: 100%;
}

.form-radio-ul._block {
  display: block;
}

.form-radio-ul._block > li {
  max-width: 100%;
}

.form-radio-ul > li {
  position: relative;
  flex-basis: calc(33.33333% - 10px);
  margin-top: 20px;
  margin-left: 10px;
  /*max-width: calc(33.33333% - 10px);*/
}

.form-radio-ul > li > :last-child {
  margin-bottom: 0;
}

@media only screen and (max-width: 767px) {
  .form-radio-ul {
    flex-direction: column;
  }
  .form-radio-ul > li {
    flex-basis: auto;
    max-width: 100%;
  }
}

/* .form-radio
----------------------------------------------- */
.form-radio {
  position: absolute;
  background: transparent;
  opacity: 0;
}

.form-radio:checked + label::after {
  display: block;
}

.form-radio + label {
  position: relative;
  display: inline-block;
  padding-left: 30px;
}

.form-radio + label::before {
  position: absolute;
  top: 2px;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50vh;
}

.form-radio + label::after {
  position: absolute;
  top: 6px;
  left: 4px;
  display: none;
  width: 12px;
  height: 12px;
  border-radius: 50vh;
  background: #59b377;
}

/* .form-checkbox
----------------------------------------------- */
.form-checkbox {
  position: absolute;
  background: transparent;
  opacity: 0;
}

.form-checkbox:checked + label::after {
  display: block;
}

.form-checkbox + label {
  position: relative;
  display: inline-block;
  padding-left: 30px;
}

.form-checkbox + label::before {
  position: absolute;
  top: 2px;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 4px;
}

.form-checkbox + label::after {
  position: absolute;
  top: 4px;
  left: 6px;
  display: none;
  width: 4px;
  height: 10px;
  border-right: 3px solid #59b377;
  border-bottom: 3px solid #59b377;
  transform: rotate(45deg);
}

/* .aform-select
----------------------------------------------- */
.aform-select {
  padding: 0 0 0 13px;
  max-width: 300px;
  width: 100%;
  height: 40px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fcfcfc;
  box-shadow: 0 0 5px rgba(0, 0, 0, .1) inset;
}

/* .form-label
----------------------------------------------- */
.form-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.form-label > .form-required {
  flex-shrink: 0;
}

/* .form-required
----------------------------------------------- */
.form-required {
  display: inline-block;
  padding: 2px 5px;
  height: 20px;
  border: 1px solid #fa6778;
  border-radius: 4px;
  background: #fa6778;
  color: #fff;
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1;
}

/* .form-input-example
----------------------------------------------- */
.form-input-example {
  margin-bottom: 15px;
  color: #9a9a9a;
}

.form-input-example.privacypolicy,
.form-input-example.antisocial {
  color: #333;
}

/* .form-twice-note
----------------------------------------------- */
.form-twice-note {
  display: block;
  margin-bottom: 10px;
}

/* .form-name-ul, .aform-kana-ul
----------------------------------------------- */
.form-name-ul,
.aform-kana-ul {
  display: flex;
  margin: 0 0 0 -60px;
}

.form-name-ul > li,
.aform-kana-ul > li {
  display: flex;
  align-items: center;
  flex-basis: calc(50% - 60px);
  margin-left: 60px;
  max-width: calc(50% - 60px);
}

.form-name-ul > li > label,
.aform-kana-ul > li > label {
  flex-shrink: 0;
  padding-right: 5px;
  min-width: 45px;
}

.form-name-ul > li > .form-input,
.aform-kana-ul > li > .form-input {
  min-width: 0;
}

.form-name-ul > li > :last-child,
.aform-kana-ul > li > :last-child {
  margin-bottom: 0;
}

@media only screen and (max-width: 767px) {
  .form-name-ul,
  .aform-kana-ul {
    flex-direction: column;
    margin-left: 0;
  }
  .form-name-ul > li,
  .aform-kana-ul > li {
    align-items: flex-start;
    flex-direction: column;
    flex-basis: auto;
    margin-left: 0;
    max-width: none;
    width: 100%;
  }
  .form-name-ul > li > label,
  .aform-kana-ul > li > label {
    margin-bottom: 10px;
    padding-right: 0;
    min-width: auto;
  }
  .form-name-ul > li + li,
  .aform-kana-ul > li + li {
    margin-top: 30px;
  }
}

/* .form-sendto-ul
----------------------------------------------- */
.form-sendto-ul {
  margin: 0 0 0 -60px;
}

.form-sendto-ul > li {
  display: flex;
  align-items: center;
  flex-basis: calc(50% - 60px);
  margin-left: 60px;
  /*max-width: calc(50% - 60px);*/
  margin-top: 20px;
}

/*.form-sendto-ul > li:not(:first-of-type) {
  display: flex;
  align-items: center;
  flex-basis: calc(50% - 60px);
  margin-left: 60px;
  max-width: calc(50% - 60px);
  margin-top: 20px;
}*/

.form-sendto-ul > li > label {
  flex-shrink: 0;
  padding-right: 5px;
  min-width: 45px;
}

.form-sendto-ul > li > .form-input {
  min-width: 0;
}

.form-sendto-ul > li:first-of-type > .form-input {
  max-width: calc(50% - 10px);
}

.form-sendto-ul > li > :last-child {
  margin-bottom: 0;
}

@media only screen and (max-width: 767px) {
  .form-sendto-ul {
    flex-direction: column;
    margin-left: 0;
  }
  .form-sendto-ul > li {
    align-items: flex-start;
    flex-direction: column;
    flex-basis: auto;
    margin-left: 0;
    max-width: none;
    width: 100%;
  }

  .form-sendto-ul > li > label {
    margin-bottom: 10px;
    padding-right: 0;
    min-width: auto;
  }
  .form-sendto-ul > li + li {
    margin-top: 30px;
  }
}


/* .form-lyt-btn > .btn override
----------------------------------------------- */
.form-lyt-btn .btn {
  position: relative;
  max-width: 640px;
  border-radius: 4px;
  box-shadow: 2px 0 4px rgba(0, 0, 0, .3);
  text-align: center;
  font-weight: 500;
  font-size: 1.6rem;
}

/*.form-lyt-btn .btn::after {
  position: absolute;
  top: 50%;
  right: 20px;
  width: 6px;
  height: 6px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-50%);
}*/

.form-lyt-btn .btn > input[type="submit"] {
  display: inline-block;
  padding: 1.5em 5em;
  border: 0;
  border-radius: 4px;
  background: #00B5B5;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  color: #fff;
  line-height: 1.5;
  transition: background .3s ease;
}

.form-lyt-btn .btn > input[type="submit"]:hover,
.form-lyt-btn .btn > input[type="submit"]:active,
.form-lyt-btn .btn > input[type="submit"]:focus {
  background: #6e8fd2;
}

/* #form_btn_back
----------------------------------------------- */
#form_btn_back {
  position: relative;
  display: inline-block;
  padding: 1.5em 5em;
  max-width: 640px;
  border: 0;
  border-radius: 4px;
  background: #aab1be;
  box-shadow: 2px 0 4px rgba(0, 0, 0, .3);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  color: #fff;
  text-align: center;
  font-weight: 500;
  font-size: 1.8rem;
  line-height: 1.5;
  transition: background .3s ease;
}

/* .aform-error
----------------------------------------------- */
.form-error {
  margin-top: 10px;
  color: #fa6778;
  font-weight: 700;
}

.form-error:empty {
  display: none;
}

.error-notice
{
 display: flex;
 justify-content: center;
}

/* .form-tbl-title
----------------------------------------------- */
.form-tbl-title .list-notice {
  margin-top: 100px;
}

@media only screen and (max-width: 767px) {
  .form-tbl-title .list-notice {
    margin-top: 10px;
  }
}
