#main {
  .announce {
    font-size: 18px;
    text-align: center;
    margin: 60px auto 10px auto;
    width: 75%;

    a {
      font-weight: 500;
    }
  }

  .apply-message {
    font-size: 18px;
    text-align: center;
    margin: 0px auto 50px auto;

    a {
      font-weight: 500;
    }
  }

  a {
    color: #b0e0e6;
  }

  #message {
    margin: auto;
    margin-top: 50px;
    width: 93%;
  }

  #application_closed {
    text-align: center;
    font-size: 20px;
    margin-bottom: 50px;
    color: #333;
  }
}

#form {
  background-color: #f8f8f9;
  margin: 10px auto;
  width: 72%;
  max-width: 1600px;
  padding: 40px 40px;
  margin-bottom: 50px;

  .section {
    margin-bottom: 40px;
  }

  .form-inner {
    display: flex;
    align-items: center;
    margin-bottom: 36px;
  }

  .form-label {
    flex: 1;
    padding-right: 10px;
    text-align: left;
    display: flex;
    align-items: center;
    font-weight: 600;
  }

  .form-input {
    flex: 2;
    /* display: flex; */
    align-items: center;
    flex-wrap: wrap;
  }

  .form-input input::placeholder {
    color: #ccc;
  }

  .checkbox-container {
    margin: 5px 10px;
  }

  .form-label {
    margin-right: 15px;
  }

  .form-text {
    text-align: left;
    display: flex;
    flex-direction: column;
  }

  .remarks {
    margin-bottom: 15px;
  }

  .description {
    font-size: 16px;
    font-weight: 400;
    white-space: wrap;
  }

  .input-area {
    height: 61px;
    font-size: 16px;
    width: 100%;
    border: solid 1px #ddd;
    padding-inline: 1em;
  }

  .checkbox-area {
    width: 191px;
    height: 61px;
    font-size: 16px;
    margin-left: 10px;
    margin-top: 10px;
    border: solid 1px #ddd;
  }

  .check-box {
    cursor: pointer;
  }

  .check-box input {
    display: none;
  }

  .check-box input+.text:before {
    content: "";
    display: inline-block;
    position: relative;
    top: 0.25em;
    margin: 7px 5px 2px 5px;
    background-image: none, url("../img/checkbox-bef.png");
    background-size: 68% auto, 100%;
    background-position: top 55% left 50%, 0 0;
    background-repeat: no-repeat, no-repeat;
    width: 19px;
    height: 18px;
  }

  .check-box input:checked+.text:before {
    background-image: url("../img/checkbox-aft.png");
    background-size: contain;
  }

  .check-box input[type="checkbox"] {
    vertical-align: middle;
  }

  .check-box .text {
    margin-right: 15px;
    line-height: 1.5;
  }

  /* --------------------- */
  /* Contact Form 7用スタイル */
  /* --------------------- */
  @media screen and (max-width: 850px) {

    .form-input .wpcf7-list-item {
      margin-left: 0;
    }
  }

  .policy-box .wpcf7-list-item {
    label input[type="checkbox"]+.wpcf7-list-item-label:before {
      content: "";
      display: inline-block;
      position: relative;
      top: 0.25em;
      margin: 7px 5px 2px 5px;
      background-image: none, url("../img/checkbox-bef.svg");
      background-size: contain;
      background-position: top 55% left 50%, 0 0;
      background-repeat: no-repeat;
      width: 19px;
      height: 18px;
    }

    label input[type="checkbox"]:checked+.wpcf7-list-item-label:before {
      background-image: url("../img/checkbox-aft.svg");
      background-size: contain;
    }

    label input[type="checkbox"] {
      vertical-align: middle;
    }

    label input {
      display: none;
    }
  }

  .form-input .wpcf7-list-item {
    label {
      cursor: pointer;
      white-space: nowrap;
    }

    label input {
      display: none;
    }

    label input[type="checkbox"]+.wpcf7-list-item-label:before {
      content: "";
      display: inline-block;
      position: relative;
      top: 0.25em;
      margin: 0 5px 0 0;
      background-image: none, url("../img/checkbox-bef.svg");
      background-size: contain;
      background-position: top 55% left 50%, 0 0;
      background-repeat: no-repeat;
      width: 19px;
      height: 18px;
    }

    label input[type="checkbox"]:checked+.wpcf7-list-item-label:before {
      background-image: url("../img/checkbox-aft.svg");
      background-size: contain;
    }

    label input[type="checkbox"] {
      vertical-align: middle;
    }

    label .wpcf7-list-item-label {
      margin-right: 15px;
      line-height: 1.5;
    }

    label input[type="radio"] {
      width: 20px;
      /* チェックボックスの大きさを変更 */
      height: 20px;
      /* チェックボックスの大きさを変更 */
      display: none;
    }

    label input[type="radio"]+.wpcf7-list-item-label:before {
      content: "";
      display: inline-block;
      position: relative;
      top: 0.25em;
      margin: 0 5px 0 0;
      background-image: none, url("../img/radio-bef.svg");
      background-size: contain;
      background-position: top 55% left 50%, 0 0;
      background-repeat: no-repeat, no-repeat;
      width: 19px;
      height: 18px;
    }

    label input[type="radio"]:checked+.wpcf7-list-item-label:before {
      background-image: url("../img/radio-aft.svg");
      background-size: contain;
    }
  }

  .wpcf7-form-control.wpcf7-radio,
  .wpcf7-form-control.wpcf7-checkbox {
    display: flex;
    align-items: center;
    align-content: center;
    flex-wrap: wrap;
    row-gap: 20px;
  }

  .wpcf7-list-item.last.has-free-text {
    display: flex;
    align-items: center;
  }

  .wpcf7-list-item.last.has-free-text>input {
    height: 61px;
    width: 100%;
    font-size: 16px;
    border: solid 1px #ddd;
    padding-inline: 1em;
  }

  .form-input-file {
    flex: 2;
    display: flex;
    gap: 5px;
  }

  .wpcf7-file {
    position: relative;
    font-size: 16px;
    border: solid 1px #ddd;
    padding-inline: 1em;
    background-color: #ffffff;;
    padding-block: 16px;
    height: 61px;
    width: 100%;
    max-width: 273px;
  }

  .wpcf7-file::file-selector-button {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 61px;
  }

  .file-select {
    border-radius: 0;
    border: 0;
    padding: 0;
    margin: 0;
    padding-inline: 21px;

    cursor: pointer;
    background-color: #CFE5D8;
    font-size: 16px;
    color: #FFFFFF;
    font-weight: 700;
    height: 61px;
    min-width: 167px;
  }
  /* ----------------------------------------------------- */

  .radio {
    cursor: pointer;
  }

  .radio input[type="radio"] {
    width: 20px;
    /* チェックボックスの大きさを変更 */
    height: 20px;
    /* チェックボックスの大きさを変更 */
    display: none;
  }

  .radio input+.text:before {
    content: "";
    display: inline-block;
    position: relative;
    top: 0.25em;
    margin: 0 5px 0 0;
    background-image: none, url("../img/radio-bef.png");
    background-size: 68% auto, 100%;
    background-position: top 55% left 50%, 0 0;
    background-repeat: no-repeat, no-repeat;
    width: 19px;
    height: 18px;
  }

  .radio input:checked+.text:before {
    background-image: url("../img/radio-aft.png");
    background-size: contain;
  }
}

.radio-area {
  width: 191px;
  height: 61px;
  font-size: 16px;
  margin-left: 10px;
  border: solid 1px #ddd;
}

.file-area {
  max-width: 273px;
  width: 60%;
  height: 61px;
  font-size: 16px;
  padding-left: 10px;
  border: solid 1px #ddd;
}

.file-button {
  max-width: 167px;
  width: 30%;
  height: 61px;
  border: none;
  background-color: #cfe5d8;
  color: #fff;
  margin-left: 5px;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.text-area {
  height: 150px;
  width: 100%;
  font-size: 16px;
  border: solid 1px #ddd;
  resize: none;
  padding: 1em;
}

.checkbox,
.radio {
  margin-right: 20px;
}

.required {
  background-color: #b0e0e6;
  color: #fff;
  font-size: 16px;
  padding: 5px 10px;
  margin-left: auto;
  margin-right: 5px;
  white-space: nowrap;
  font-weight: 600;
}

.optional {
  background-color: #ccc;
  color: #fff;
  font-size: 16px;
  padding: 5px 10px;
  margin-left: auto;
  white-space: nowrap;
  font-weight: 600;
  margin-right: 5px;
}

.policy-box {
  text-align: center;
  margin-bottom: 48px;
}

a {
  color: #b0e0e6;
}

.submit {
  background-color: #b0e0e6;
  border-radius: 100vh;
  border: none;
  width: 230px;
  height: 53px;
  margin-top: 20px;
  margin-left: 35%;
  margin-bottom: 50px;
  color: #fff;
  font-size: 16px;
  font-weight: 550;
}

.circle {
  margin: 0px 10px 0px -20px;
  width: 25px;
  height: 25px;
  font-size: 16px;
  background-color: #fff;
  color: #b0e0e6;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.button-blue {
  display: flex;
  border-radius: 50px;
  min-width: 270px;
  height: 53px;
  color: #fff;
  border: 2px solid var(--button-main-color);
  background-color: var(--button-main-color);
  overflow: visible;
  cursor: pointer;
  align-items: center;
  box-sizing: content-box;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
}

.submit-btn-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.submit-btn {
  --button-main-color: #b0e0e6;
  --button-hover-color: #cfe5d8;
  display: inline-block;
  /*インラインブロック要素にする*/
  position: relative;
}

.submit-btn::after {
  position: absolute;
  font-family: "Font Awesome 6 Free";
  content: "\0279c";
  font-weight: 900;
  right: 0;
  top: 30px;
  transform: translateY(-50%);
  margin: 0px 10px 0px -20px;
  width: 25px;
  height: 25px;
  font-size: 16px;
  background-color: #fff;
  color: var(--button-main-color);
  border: 2px solid var(--button-main-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  pointer-events: none;
}

.submit-btn:hover::after {
  background-color: #fff;
  color: var(--button-hover-color);
  border: 2px solid var(--button-hover-color);
}

.button-blue>p {
  font-size: 16px;
  font-weight: 600;
  margin: auto;
}

.button-blue:hover {
  background-color: var(--button-hover-color);
  border: 2px solid var(--button-hover-color);
}

.button-blue:hover>.circle {
  background-color: var(--button-main-color);
  color: #fff;
}

.circle:hover {
  color: var(--button-hover-color);
  border: 2px solid var(--button-hover-color);
}

span.wpcf7-spinner {
  display: none;
}

@media screen and (max-width: 800px) {
  #main {
    .announce {
      font-size: 18px;
      text-align: center;
      margin: 30px auto 10px auto;
      width: 92%;
    }
  }

  #form {
    background-color: #f8f8f9;
    width: 92%;
    padding: 40px 16px;
    margin-bottom: 0;

    .form-inner {
      display: block;
      align-items: center;
      margin-bottom: 20px;
    }

    .form-label {
      flex: 1;
      padding-right: 0;
      text-align: left;
      display: flex;
      align-items: center;
      font-size: 16px;
    }

    label {
      font-size: 16px;
    }

    .form-label {
      margin-right: 0px;
      margin-bottom: 15px;
    }

    .form-text {
      text-align: left;
      display: flex;
      flex-direction: column;
    }

    .description {
      font-size: 14px;
    }

    a {
      overflow-wrap: break-word;
    }

    .input-area {
      height: 61px;
      border: solid 1px #dddddd;
      font-size: 16px;
      width: 100%;
    }

    .checkbox-area {
      width: 161px;
      height: 43px;
      border: solid 1px #dddddd;
      font-size: 16px;
    }
  }

  .radio-area {
    width: 161px;
    height: 43px;
    border: solid 1px #dddddd;
    font-size: 16px;
    margin-left: 10px;
  }

  .file-area {
    width: 50%;
    height: 50px;
    border: solid 1px #dddddd;
    font-size: 14px;
  }

  .file-button {
    width: 45%;
    height: 50px;
    border: solid 1px #dddddd;
    background-color: #cfe5d8;
    color: #fff;
    margin-left: 5px;
    overflow: hidden;
  }

  .text-area {
    height: 142px;
    width: 100%;
    font-size: 16px;
    border: solid 1px #dddddd;
  }

  .checkbox,
  .radio {
    margin-right: 20px;
  }

  .required {
    background-color: #b0e0e6;
    color: #fff;
    font-size: 16px;
    padding: 5px 10px;
    margin-left: auto;
    margin-right: 0;
    white-space: nowrap;
  }

  .optional {
    background-color: #ccc;
    color: #fff;
    font-size: 16px;
    padding: 5px 10px;
    margin-left: auto;
    white-space: nowrap;
  }

  .policy {
    text-align: center;
  }

  .policy-text {
    font-size: 14px;
  }

  a {
    color: #b0e0e6;
  }

  .submit {
    background-color: #b0e0e6;
    border-radius: 100vh;
    border: none;
    width: 50%;
    height: 53px;
    margin-top: 20px;
    margin-left: 25%;
    margin-bottom: 50px;
  }
}