/* ---------- Base (mobile-first) ---------- */
* {
  box-sizing: border-box;
}

.section_content--form .fv {
  margin-bottom: 80px;
}

/* ---------- Form ---------- */
.form {
  display: grid;
  gap: 40px;
}

.field {
  display: grid;
  gap: 8px;
}

.label-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.label-row label {
  font-size: 14px;
  font-weight: 500;
  color: var(--main-color);
  line-height: calc(20 / 14);
  font-family: var(--point-font);
}

.badge {
  font-size: 12px;
  font-weight: bold;
  line-height: calc(12 / 12);
  font-family: var(--point-font);
  padding: 4px;
  border-radius: 2px;
}

.badge.required {
  color: #fff;
  background: #DA0000;
}

.badge.optional {
  color: #fff;
  background: var(--main-color);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--main-font);
  color: var(--main-color);
  background: #F5F5F5;
  border: 1px solid var(--point-color);
  border-radius: 4px;
  padding: 9px;
  outline: none;
}

input[type="radio"] {
  width: 16px;
  height: 16px;
}

input::placeholder,
textarea::placeholder {
  color: #CFCFCF;
}

textarea {
  min-height: 200px;
  resize: vertical;
}

/* ---------- File input (custom) ---------- */
.file {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.file input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 0;
  height: 0;
}

.file .button-like {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--main-color);
  font-size: 14px;
  line-height: calc(20 / 14);
  color: #fff;
  font-family: var(--main-font);
  border-radius: 4px;
  cursor: pointer;
  user-select: none;
}

.file .filename {
  color: #6b7280;
  font-size: 13px;
}

/* ---------- Consent ---------- */

.group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.group-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ---------- Submit ---------- */
.actions {
  text-align: center;
}

.btn-submit {
  appearance: none;
  background: var(--main-color);
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  line-height: calc(20 / 14);
  border-radius: 24px;
  cursor: pointer;
  padding: 12px 56px;
  width: 17em;
}

.btn-submit:active {
  transform: translateY(1px);
}

.confirm__btn-box {
  text-align: center;
}

.contact__submit02 {
  margin-bottom: 20px;
}

.contact_error {
  /* margin-top: 10px; */
}

.input__button-box {
  display: flex;
  justify-content: center;
}

#rirekisho {
  -webkit-box-shadow: 0 0 0px 1000px white inset;
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  border: 0;
}

/* ---------- Helper layout on larger screens ---------- */
@media (min-width: 786px) {

  .section_content--form {
    margin-bottom: 0;
  }

  .form_card {
    max-width: 736px;
    margin: 0 auto;
  }

  .form {
    display: grid;
    gap: 48px;
  }

  .group-row {
    gap: 32px;
    justify-content: inherit;
  }

  .btn-submit {
    background: var(--point-color);
    transition: all 0.4s ease;
    color: var(--main-color);
  }

  .btn-submit:hover {
    background: var(--main-color);
    color: #fff;
  }

  .confirm__btn-box {
    display: flex;
    justify-content: center;
  }

  .confirm__btn-box>div {
    /* width: 50%; */
  }

  .contact__submit02 {
    margin-bottom: 0;
    margin-right: 20px;
  }

  .contact-complete-wrap {
    margin-bottom: 60px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 200px;
    margin-bottom: 200px;

  }

  /* ---------- Error outline ---------- */
  .touched:invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
  }

  .contact-complete-wrap {
    margin-bottom: 40px;
    margin-top: 60px;
    line-height: 1.5;
    width: 90%;
    margin-left: 5%;
    margin-right: 5%;
  }

  .finish-modoru {
    margin-top: 1em;
  }


  .contact-complete-wrap {
    margin-bottom: 60px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 200px;
    margin-bottom: 200px;
  }
}

/* 対象の file input を視覚的に隠す（display:none は避ける） */
input[type="file"][name="rirekisho"],
input[type="file"][name="shokumukeirekisho"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ご指定のスタイルを label に適用 */
.filebtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--main-color);
  font-size: 14px;
  line-height: calc(20 / 14);
  color: #fff;
  font-family: var(--main-font);
  border-radius: 4px;
  cursor: pointer;
  user-select: none;
}

/* ファイル名表示（任意） */
.filename {
  display: inline-block;
  margin-left: 12px;
  font-size: 14px;
  font-family: var(--main-font);
}