/* =========================================================
   Entry Form page
   ========================================================= */

/* ----- Breadcrumb bar ----- */
.entry-crumb-bar {
  background: #fff;
  padding-block: clamp(110px, 12vw, 160px) clamp(20px, 2vw, 32px);
}
.entry-crumb {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--c-navy);
  margin: 0;
}
.entry-crumb a { color: inherit; text-decoration: none; transition: opacity .2s; }
.entry-crumb a:hover { opacity: 0.6; }
.entry-crumb span[aria-hidden] { margin-inline: 10px; opacity: 0.6; }

/* ----- Section ----- */
.entry {
  background: #fff;
  padding-block: clamp(24px, 3vw, 48px) clamp(80px, 10vw, 140px);
}
.entry__inner { max-width: 1200px; }
.entry__head {
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.entry__title {
  display: inline-block;
  font-family: var(--ff-serif-jp, "Noto Serif JP", serif);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 44px);
  letter-spacing: 0.08em;
  color: var(--c-navy);
  margin: 0 0 clamp(10px, 1.2vw, 16px);
  text-decoration: underline;
  text-decoration-color: var(--c-navy);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 10px;
  line-height: 1.3;
}
.entry__eyebrow {
  font-family: var(--ff-serif-jp, "Noto Serif JP", serif);
  font-weight: 400;
  font-size: clamp(15px, 1.2vw, 18px);
  letter-spacing: 0.1em;
  color: var(--c-navy);
  margin: 0 0 clamp(24px, 2.8vw, 36px);
  line-height: 1;
}
.entry__lead {
  font-size: 15px;
  line-height: 1.95;
  letter-spacing: 0.04em;
  color: var(--c-text);
  margin: 0;
}

/* ----- Form ----- */
.entry-form {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 3vw, 40px);
}

/* ----- Field ----- */
.ef-field {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.4vw, 20px);
}
.ef-field__label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
}
.ef-field__name {
  font-family: var(--ff-jp);
  font-weight: 500;
  font-size: clamp(16px, 1.4vw, 20px);
  letter-spacing: 0.06em;
  color: #000;
  line-height: 1.4;
}
.ef-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-navy);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 4px 18px;
  border-radius: 100px;
  line-height: 1.4;
}

/* ----- Inputs ----- */
.ef-input {
  width: 100%;
  height: 60px;
  padding: 0 20px;
  border: 1px solid var(--c-navy);
  border-radius: 5px;
  background: #fff;
  font-family: var(--ff-jp);
  font-size: 16px;
  color: var(--c-text);
  letter-spacing: 0.04em;
  transition: border-color .2s;
}
.ef-input:focus {
  outline: none;
  border-color: #2a3a60;
  box-shadow: 0 0 0 2px rgba(52, 73, 119, 0.15);
}
.ef-input::placeholder {
  color: #a3a3a3;
  font-weight: 300;
}
.ef-textarea {
  height: auto;
  padding: 16px 20px;
  resize: vertical;
  line-height: 1.7;
  min-height: 200px;
}

/* ----- Checkbox / Radio ----- */
.ef-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ef-options--row {
  flex-direction: row;
  flex-wrap: wrap;
  gap: clamp(20px, 2.4vw, 40px);
}
.ef-check {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  user-select: none;
}
.ef-check input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.ef-check__box {
  position: relative;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border: 1px solid #2f2f2d;
  background: #fff;
  border-radius: 5px;
  transition: border-color .2s, background .2s;
}
.ef-check__box::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 8px;
  height: 14px;
  border-right: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: translateY(-2px) rotate(45deg);
  opacity: 0;
  transition: opacity .15s;
}
.ef-check__box--radio { border-radius: 50%; }
.ef-check__box--radio::after {
  width: 12px;
  height: 12px;
  border: none;
  background: #fff;
  border-radius: 50%;
  transform: none;
}
.ef-check input:checked + .ef-check__box {
  background: var(--c-navy);
  border-color: var(--c-navy);
}
.ef-check input:checked + .ef-check__box::after { opacity: 1; }
.ef-check input:focus-visible + .ef-check__box {
  box-shadow: 0 0 0 2px rgba(52, 73, 119, 0.3);
}
.ef-check__label {
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--c-text);
  line-height: 1.5;
}

/* ----- Address composite ----- */
.ef-address {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ef-address__row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.ef-address__symbol {
  font-size: 16px;
  color: #242424;
  font-weight: 300;
}
.ef-input--postal {
  width: 280px;
  flex-shrink: 0;
}
.ef-address__hint {
  margin: 0;
  font-size: 13.5px;
  color: var(--c-text);
  letter-spacing: 0.04em;
}

/* ----- File upload ----- */
.ef-file {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.ef-file__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #6e6e6e;
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.06em;
  padding: 0 28px;
  height: 60px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color .2s;
}
.ef-file__btn:hover { background: #555; }
.ef-file__btn input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.ef-file__status {
  font-size: 15px;
  color: var(--c-text);
  letter-spacing: 0.04em;
}

/* ----- Notes ----- */
.ef-note {
  font-size: 14px;
  line-height: 1.85;
  letter-spacing: 0.04em;
  color: #2f2f2d;
  margin: -8px 0 0;
}

/* ----- Privacy block ----- */
.ef-privacy {
  text-align: center;
  margin-top: clamp(40px, 5vw, 64px);
}
.ef-privacy__title {
  font-family: var(--ff-jp);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0.06em;
  color: #000;
  margin: 0 0 14px;
}
.ef-privacy__text {
  font-size: 15px;
  line-height: 1.95;
  letter-spacing: 0.05em;
  color: #242424;
  margin: 0;
  max-width: 880px;
  margin-inline: auto;
}
.ef-privacy__text a {
  color: var(--c-navy);
  text-decoration: underline;
}
.ef-privacy__divider {
  border: 0;
  height: 1px;
  background: #2f2f2d;
  width: 44px;
  margin: clamp(24px, 3vw, 36px) auto;
}
.ef-check--center {
  justify-content: center;
}

/* ----- Submit ----- */
.ef-submit-row {
  display: flex;
  justify-content: center;
  margin-top: clamp(40px, 5vw, 72px);
}
.ef-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(320px, 36vw, 470px);
  min-height: clamp(72px, 7vw, 100px);
  padding: 0 56px;
  background: var(--c-navy);
  color: #fff;
  font-family: var(--ff-jp);
  font-weight: 500;
  font-size: clamp(16px, 1.6vw, 20px);
  letter-spacing: 0.08em;
  border: none;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.ef-submit:hover {
  background: #2a3a60;
  transform: translateY(-1px);
}

/* ----- Responsive ----- */
@media (max-width: 720px) {
  .ef-options--row { flex-direction: column; gap: 14px; }
  .ef-input--postal { width: 100%; }
  .ef-address__hint { width: 100%; }
  .ef-submit { min-width: 100%; }
}

/* 採用区分で出し分ける条件付き項目：hidden時は必ず非表示 */
.ef-conditional[hidden] { display: none; }


/* == CF7 統合スタイル (client req 2026-07-23) == */
.cf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.entry-form .wpcf7-form-control-wrap { display: block; }

/* checkbox / radio を .ef-check 相当に */
.entry-form .ef-options .wpcf7-checkbox,
.entry-form .ef-options .wpcf7-radio { display: flex; flex-direction: row; flex-wrap: wrap; gap: clamp(20px, 2.4vw, 40px); }
.entry-form .ef-options .wpcf7-list-item { margin: 0; }
.entry-form .ef-options .wpcf7-list-item > label { display: inline-flex; align-items: center; gap: 14px; cursor: pointer; user-select: none; }
.entry-form .ef-options input[type="checkbox"],
.entry-form .ef-options input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.entry-form .ef-options .wpcf7-list-item-label { position: relative; padding-left: 44px; font-size: 16px; letter-spacing: 0.06em; color: var(--c-text); line-height: 1.5; display: inline-flex; align-items: center; min-height: 30px; }
.entry-form .ef-options .wpcf7-list-item-label::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border: 1px solid #2f2f2d; background: #fff; border-radius: 5px; transition: border-color .2s, background .2s; }
.entry-form .wpcf7-checkbox .wpcf7-list-item-label::after { content: ""; position: absolute; left: 11px; top: calc(50% - 2px); width: 8px; height: 14px; border-right: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: translateY(-50%) rotate(45deg); opacity: 0; transition: opacity .15s; }
.entry-form .wpcf7-checkbox .wpcf7-list-item:has(input:checked) .wpcf7-list-item-label::before { background: var(--c-navy); border-color: var(--c-navy); }
.entry-form .wpcf7-checkbox .wpcf7-list-item:has(input:checked) .wpcf7-list-item-label::after { opacity: 1; }
.entry-form .wpcf7-radio .wpcf7-list-item-label::before { border-radius: 50%; }
.entry-form .wpcf7-radio .wpcf7-list-item-label::after { content: ""; position: absolute; left: 9px; top: 50%; width: 12px; height: 12px; background: #fff; border-radius: 50%; transform: translateY(-50%); opacity: 0; transition: opacity .15s; }
.entry-form .wpcf7-radio .wpcf7-list-item:has(input:checked) .wpcf7-list-item-label::before { background: var(--c-navy); border-color: var(--c-navy); }
.entry-form .wpcf7-radio .wpcf7-list-item:has(input:checked) .wpcf7-list-item-label::after { opacity: 1; }

/* file 入力を .ef-file__btn 風に（ネイティブ file-selector-button） */
.entry-form input[type="file"] { font-size: 15px; color: var(--c-text); letter-spacing: 0.04em; }
.entry-form input[type="file"]::file-selector-button { background: #6e6e6e; color: #fff; font-size: 15px; letter-spacing: 0.06em; padding: 0 28px; height: 60px; border: none; border-radius: 5px; cursor: pointer; margin-right: 24px; transition: background-color .2s; font-family: var(--ff-jp); }
.entry-form input[type="file"]::file-selector-button:hover { background: #555; }

/* 同意チェック（acceptance）を中央 .ef-check 相当に */
.ef-privacy .wpcf7-acceptance { display: flex; justify-content: center; }
.ef-privacy .wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.ef-privacy .wpcf7-acceptance label { display: inline-flex; align-items: center; gap: 14px; cursor: pointer; user-select: none; }
.ef-privacy .wpcf7-acceptance input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.ef-privacy .wpcf7-list-item-label { position: relative; padding-left: 44px; font-size: 16px; letter-spacing: 0.06em; color: var(--c-text); display: inline-flex; align-items: center; min-height: 30px; }
.ef-privacy .wpcf7-list-item-label::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border: 1px solid #2f2f2d; background: #fff; border-radius: 5px; }
.ef-privacy .wpcf7-list-item-label::after { content: ""; position: absolute; left: 11px; top: calc(50% - 2px); width: 8px; height: 14px; border-right: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: translateY(-50%) rotate(45deg); opacity: 0; }
.ef-privacy .wpcf7-list-item:has(input:checked) .wpcf7-list-item-label::before { background: var(--c-navy); border-color: var(--c-navy); }
.ef-privacy .wpcf7-list-item:has(input:checked) .wpcf7-list-item-label::after { opacity: 1; }

/* response / validation */
.entry-form .wpcf7-response-output { margin: 24px auto 0; max-width: 880px; padding: 14px 18px; border-radius: 6px; font-size: 14px; line-height: 1.6; text-align: center; }
.entry-form .wpcf7-not-valid-tip { display: block; margin-top: 6px; font-size: 13px; color: #b91c1c; }
.entry-form.invalid .wpcf7-response-output,
.entry-form.unaccepted .wpcf7-response-output { border: 1px solid #e5b4b4; background: #fdf3f3; color: #b91c1c; }
.entry-form.sent .wpcf7-response-output { border: 1px solid var(--c-navy); background: #f2f5fb; color: var(--c-navy); }
.entry-form .wpcf7-spinner { margin: 0 auto; }
