/**
 * Entry page only (.nicekaigo-entry on body).
 * Depends on apply-form-css for shared form base styles.
 */

.nicekaigo-entry .wpcf7-form {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.nicekaigo-entry .form-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  box-sizing: border-box;
}

.nicekaigo-entry .wpcf7-form .wrapper_submit.button.brown {
  box-shadow: 0 4px 0 #7a6354;
}

/* ----- PC ----- */
@media screen and (min-width: 752px) {
  .nicekaigo-entry .wpcf7-form table.table01 tr:nth-of-type(1) td dl.form_name_fields,
  .nicekaigo-entry .wpcf7-form table.table01 tr:nth-of-type(2) td dl.form_name_fields {
    display: flex;
    align-items: center;
  }

  .nicekaigo-entry .wpcf7-form table.table01 tr:nth-of-type(1) td dl.form_name_fields dt:last-of-type,
  .nicekaigo-entry .wpcf7-form table.table01 tr:nth-of-type(2) td dl.form_name_fields dt:last-of-type {
    margin-left: 10px;
  }

  .nicekaigo-entry .wpcf7-form table.table01 tr:nth-of-type(1) td dl.form_name_fields dd,
  .nicekaigo-entry .wpcf7-form table.table01 tr:nth-of-type(2) td dl.form_name_fields dd {
    margin-left: 10px;
    flex: 1;
  }

  .nicekaigo-entry .wpcf7-form table.table01 td .form_sex_fields {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: nowrap;
  }

  .nicekaigo-entry .wpcf7-form table.table01 td .form_sex_fields label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    line-height: 1.4;
    white-space: nowrap;
    min-width: 84px;
  }

  .nicekaigo-entry .wpcf7-form table.table01 td .form_sex_fields input[type="radio"] {
    margin: 0;
  }
}

/* ----- SP ----- */
@media screen and (max-width: 751px) {
  /* iOS Safari: inputs below 16px trigger focus zoom */
  .nicekaigo-entry .wpcf7-form table input,
  .nicekaigo-entry .wpcf7-form table textarea,
  .nicekaigo-entry .wpcf7-form table select {
    font-size: 16px;
  }

  .nicekaigo-entry .form_job_box_list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 0;
    row-gap: 12px;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
  }

  .nicekaigo-entry .form_job_box_item {
    display: flex;
    align-items: center;
    width: auto;
    min-width: 0;
    box-sizing: border-box;
    margin: 0;
    white-space: nowrap;
  }

  .nicekaigo-entry .form_job_box_item img {
    flex: 0 0 auto;
  }

  .nicekaigo-entry .sp_footer {
    display: block !important;
    box-shadow: 0 0 20px #0000001a;
  }

  .nicekaigo-entry .sp_f_link.-entry-progress {
    width: 70%;
  }

  .nicekaigo-entry .sp_f_link.-entry-progress a {
    background-color: #fff;
    color: #333;
    text-decoration: none;
    cursor: default;
    pointer-events: none;
  }

  .nicekaigo-entry .sp_f_link.-entry-ready a {
    background-color: #f19956;
    color: #fff;
    cursor: pointer;
    pointer-events: auto;
  }

  .nicekaigo-entry .sp_f_link.-entry-progress a dl {
    padding-left: 0;
  }

  .nicekaigo-entry .sp_f_link.-entry-progress a dl::before {
    content: none;
  }

  .nicekaigo-entry .entry-progress-count {
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.02em;
  }

  .nicekaigo-entry .entry-progress-number,
  .nicekaigo-entry .entry-progress-unit {
    color: #eb690f;
  }

  .nicekaigo-entry .wpcf7-form table.table01 tr:nth-of-type(1) td dl.form_name_fields,
  .nicekaigo-entry .wpcf7-form table.table01 tr:nth-of-type(2) td dl.form_name_fields {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
  }

  .nicekaigo-entry .wpcf7-form table.table01 tr:nth-of-type(1) td dl.form_name_fields dt,
  .nicekaigo-entry .wpcf7-form table.table01 tr:nth-of-type(2) td dl.form_name_fields dt {
    width: auto;
    min-width: auto;
    margin-bottom: 0;
    white-space: nowrap;
  }

  .nicekaigo-entry .wpcf7-form table.table01 tr:nth-of-type(1) td dl.form_name_fields dt:last-of-type,
  .nicekaigo-entry .wpcf7-form table.table01 tr:nth-of-type(2) td dl.form_name_fields dt:last-of-type {
    margin-left: 8px;
  }

  .nicekaigo-entry .wpcf7-form table.table01 tr:nth-of-type(1) td dl.form_name_fields dd,
  .nicekaigo-entry .wpcf7-form table.table01 tr:nth-of-type(2) td dl.form_name_fields dd {
    width: auto;
    min-width: 0;
    flex: 1;
    margin-left: 6px;
    margin-bottom: 0;
  }

  .nicekaigo-entry .wpcf7-form table.table01 td .form_sex_fields {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: nowrap;
  }

  .nicekaigo-entry .wpcf7-form table.table01 td .form_sex_fields label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    margin: 0;
    line-height: 1.5;
    white-space: nowrap;
  }

  .nicekaigo-entry .wpcf7-form table.table01 td .form_sex_fields input[type="radio"] {
    width: auto;
    min-width: 0;
    flex: 0 0 auto;
    padding: 0;
    margin: 0;
    background: transparent;
    -webkit-appearance: auto;
    appearance: auto;
  }

  .nicekaigo-entry .wpcf7-form table.table01 td .form_sex_fields label span {
    flex: 0 0 auto;
  }
}
