/* ------------------------ */
/* フォーム */
/* ------------------------ */

#detail {
  --color-logo: #E1572B;
  --color-text1: #333;
  --color-text2: #FFF;
  --color-input1: #B7B7B7;
  --color-input2: #FAFAFA;

  width: 90%;
  max-width: 890px;
  margin: 2em auto;
}

@media screen and (min-width: 1025px) {
  #detail {
    margin: 7em auto;
  }
}

/* line-table__box */
#detail .line-table__box {
  border-bottom: 1px solid var(--color-logo);
  margin-bottom: 10px;
  padding-bottom: 10px;
}

@media screen and (min-width: 1025px) {
  #detail .line-table__box {
    border: none;
    margin-bottom: 0;
    padding-bottom: 0;
    display: flex;
  }
}

#detail .line-table__head {
  padding: 10px 0 0 0;
}

@media screen and (min-width: 1025px) {

  #detail .line-table__head,
  #detail .line-table__cell {
    border-top: 1px solid var(--color-logo);
  }

  #detail .line-table__head {
    width: 258px;
    margin-right: 50px;
    padding: 2em 0 0 2em;
  }

  #detail .line-table__cell {
    width: calc(100% - 258px - 50px);
    padding: 1em 2em;
  }
}

/* #detail .line-table__box:last-of-type .line-table__head,
#detail .line-table__box:last-of-type .line-table__cell {
  border-bottom: 2px solid var(--color-logo);
} */

/* #detail .line-table__box dt {
  flex: 1.6;
} */

#detail .line-table__box dt .hissu {
  background: var(--color-logo);
  font-size: 0.8em;
  line-height: 1.5;
  color: var(--color-text2);
  display: inline-block;
  margin-right: 1em;
  padding: 0 0.3em;
}

/* detail 内の p */
#detail .line-table__cell p {
  margin-bottom: 1.5em;
  line-height: 1.5;
}

@media screen and (min-width: 1025px) {
  #detail .line-table__cell p {
    margin-top: 1em;
  }
}

#detail .line-table__cell p:last-child {
  margin-bottom: 0;
}

/* detail 内の ul */
#detail .line-table__cell ul {
  list-style-type: disc;
}

/* table#mfp_confirm_table */
table#mfp_confirm_table {
  color: #000;
}

table#mfp_confirm_table+div.mfp_buttons button {
  display: inline-block;
}

table#mfp_confirm_table tr th,
table#mfp_confirm_table tr td {
  font-size: 14px;
}


/* チェックボックス */
@media screen and (min-width: 1025px) {
  #detail .checkboxSet {
    margin: 1em 0;
  }
}

#detail .checkboxSet label {
  display: inline-block;
  margin: 5px;
  line-height: 1.8;
}

/* checkbox */
input[type=checkbox] {
  position: relative;
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-logo);
  margin-right: 0.5em;
  vertical-align: bottom;
  appearance: none;
}

input[type=checkbox]:checked:before {
  position: absolute;
  top: -4px;
  left: 6px;
  transform: rotate(50deg);
  width: 8px;
  height: 16px;
  border-right: 3px solid var(--color-logo);
  border-bottom: 3px solid var(--color-logo);
  content: "";
}

/* text inputs and textarea */
input[type=text],
input[type=tel],
input[type=email],
#detail textarea {
  width: 100% !important;
  background: var(--color-input2);
  color: var(--color-text1);
  vertical-align: -5px;
  border: 1px solid var(--color-input1);
  padding: 1em;
  font-size: 18px;
  border-radius: 0;
}

#detail textarea {
  line-height: 1.2;
}

input[type=text]::placeholder,
input[type=tel]::placeholder,
input[type=email]::placeholder,
#detail textarea::placeholder {
  font-size: 1.15em;
  color: var(--color-text1);
  opacity: 0.4;
}

textarea[name="住所"] {
  height: 90px !important;
}

textarea[name="その他"] {
  height: 200px !important;
}

div.mfp_err {
  color: #F00;
}

/* privacy */
.privacy {
  text-align: center;
  margin-top: 4em;

  p {
    line-height: 1.5;
  }

  a {
    text-decoration: underline;
  }

  .checkboxSet {
    margin-top: 1.5em;
  }
}


/* submit */
.submit {
  text-align: center;
  margin: 3em auto;
}

.submit button {
  margin: auto;
  background: var(--color-logo);
  border: none;
  font-size: 18px;
  font-weight: bold;
  line-height: 1;
  letter-spacing: 0.1em;
  color: var(--color-text2);
  padding: 1em;
  min-width: 200px;
}


/* ファイル添付関連 */
.custom-file-label,
.mfp_attached_reset {
  position: relative;
  display: block;
  padding: 10px;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  color: var(--color-text2);
  background: var(--color-logo);
  font-weight: bold;
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: color 0.3s ease-out, background-color 0.3s ease-out;
}

.custom-file-label:hover,
.mfp_attached_reset:hover {
  background-color: var(--color-input1);
  color: var(--color_recruit);
}

/* custom-file-name */
.custom-file-name {
  margin: 0 0 0 10px !important;
  color: var(--color-logo);
}

/* file-up-wrapper */
.file-up-wrapper {
  border: 1px solid var(--color-input1);
  background: var(--color-input2);
  padding: 1em;
  margin-bottom: 1em;
  display: grid;
  grid-template-rows: auto;
  grid-template-columns: auto;
  grid-template-areas:
    "areaBtn"
    "areaFile";
  gap: 10px;

  label,
  button {
    grid-area: areaBtn;
  }

  input {
    grid-area: areaFile;
  }
}

@media screen and (min-width: 600px) {
  .file-up-wrapper {
    grid-template-columns: 11.5em auto;
    grid-template-areas:
      "areaBtn areaFile";
    align-items: center;


  }
}

@media screen and (min-width: 768px) {
  /* .file-up-wrapper {
    display: flex;
    align-items: center;
  } */
}

/* file input */
input[type=file] {
  display: none;
}

.recruit-thanks {
  p {
    line-height: 1.8;
    text-align: left;
    margin: 0 0 2em;
  }

  @media screen and (min-width: 768px) {
    p {
      text-align: center;
    }
  }

  p br.to-ten {
    display: none;
  }

  @media screen and (min-width: 768px) {
    p br.to-ten {
      display: block;
    }
  }
}

@media screen and (min-width: 768px) {
  .recruit-thanks {
    margin-bottom: 15em;
  }
}

/* 確認オーバーレイ デフォ上書き */
#mfp_overlay_inner {
  h4 {
    margin-bottom: 0.5em;
  }

  @media screen and (max-width: 800px) {

    table#mfp_confirm_table tr th,
    table#mfp_confirm_table tr td {
      width: calc(100% - 20px);
    }
  }
}