/* ============================================
   公心会グループ 採用応募フォーム
   Inspired by the recruit LP design system
   ============================================ */

:root {
  --teal: #4FA3C2;
  --teal-deep: #3F89A6;
  --teal-soft: #E6F2F7;
  --teal-pale: #F3F9FB;
  --pink: #F26C8B;
  --pink-deep: #E84F73;
  --pink-soft: #FCE6EC;
  --pink-pale: #FEF3F6;
  --ink: #1F2A33;
  --ink-2: #3A4954;
  --ink-3: #6B7882;
  --ink-4: #9BA6AE;
  --line: #E6EAEC;
  --line-2: #EFF2F3;
  --bg: #FFFFFF;
  --bg-soft: #FAFBFC;
  --error: #E84F4F;
  --success: #4FA38C;
}

button,
input,
textarea,
select {
  font-family: inherit;
  color: inherit;
}


/* ============================================
  エントリーフォーム
============================================ */
.lp-recruit-contact {
  width: 100%;
  overflow: hidden;
}

/* ============================================
  Hero
============================================ */
.hero {
  position: relative;
  padding: 80px 48px 56px;
  max-width: 1080px;
  margin: 0 auto;
}

.hero-crumbs {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 28px;
}

.hero-crumbs .sep {
  color: var(--ink-4);
}

.hero-crumbs .current {
  color: var(--pink);
  font-weight: 700;
}

.hero h1 {
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero h1 .accent {
  color: var(--pink);
}

.hero h1 .en-eyebrow {
  font-size: 14px;
  color: var(--teal);
  font-weight: 800;
  letter-spacing: 0.32em;
}

.hero h1 .ja-main {
  font-size: 64px;
  letter-spacing: 0.04em;
}

.hero-lede {
  font-size: 17px;
  color: var(--ink-2);
  line-height: 2;
  max-width: none;
}

.hero-lede .u-teal {
  color: var(--teal);
  font-weight: 700;
  border-bottom: 2px solid var(--teal);
  padding-bottom: 1px;
}

/* hero decorations */
.deco-dots {
  position: absolute;
  display: grid;
  grid-template-columns: repeat(var(--cols, 6), 10px);
  gap: 10px;
  opacity: 0.55;
}

.deco-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

.deco-dots.pink span {
  background: var(--pink);
}

.hero .deco-dots.tl {
  top: 80px;
  left: 48px;
  transform: translate(-110%, 0);
}

.hero .deco-dots.br {
  bottom: -10px;
  right: 48px;
  transform: translate(60%, 0);
}

.deco-pill {
  position: absolute;
  height: 22px;
  border-radius: 999px;
  background: var(--teal);
  opacity: 0.4;
}

.hero .deco-pill {
  width: 180px;
  top: 110px;
  right: 48px;
  transform: rotate(-22deg) translateX(40%);
}

/* ============================================
  Form section wrapper
============================================ */
.form-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 48px 140px;
  position: relative;
}

/* Steps progress */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: 56px;
  position: relative;
  padding: 0 8px;
}

.steps.two {
  grid-template-columns: repeat(2, 1fr);
}

.steps.three {
  grid-template-columns: repeat(3, 1fr);
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
}

.step-bullet {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 2px solid var(--line);
  color: var(--ink-4);
  font-weight: 800;
  font-size: 16px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.step-label {
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  font-weight: 700;
  text-align: center;
}

.step-label .ja {
  display: block;
  font-size: 13px;
  color: var(--ink-2);
  margin-top: 4px;
  letter-spacing: 0.02em;
}

.step.active .step-bullet {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  box-shadow: 0 8px 18px -8px rgba(79, 163, 194, 0.6);
}

.step.active .step-label {
  color: var(--teal);
}

.step.done .step-bullet {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
}

.step.done .step-label {
  color: var(--ink-2);
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 24px;
  left: calc(50% + 30px);
  right: calc(-50% + 30px);
  height: 2px;
  background: var(--line);
  z-index: 1;
}

.step.done:not(:last-child)::after {
  background: var(--pink);
}

/* ============================================
  Form section
============================================ */
.form-section {
  background: #fff;
  border-radius: 24px;
  border: 1px solid var(--line-2);
  padding: 56px 64px 64px;
  position: relative;
  box-shadow: 0 1px 0 rgba(31, 42, 51, 0.02);
}

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.section-eyebrow .number {
  font-size: 22px;
  font-weight: 800;
  color: var(--pink);
  letter-spacing: 0.04em;
  line-height: 1;
}

.section-eyebrow .en {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-3);
  letter-spacing: 0.28em;
}

.form-section .section-title {
  display: block;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
  line-height: 1.4;
}
.form-section .section-title .accent {
  color: var(--pink);
}

.section-desc {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.95;
  margin-bottom: 40px;
  max-width: none;
}

/* ============================================
  Field
============================================ */
.field-grid {
  display: grid;
  gap: 28px;
}

.field-grid.two {
  grid-template-columns: 1fr 1fr;
}

.field-grid.three {
  grid-template-columns: 1fr 1fr 1fr;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.req-tag {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 7px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 4px;
  background: var(--pink);
  color: #fff;
  letter-spacing: 0.1em;
}

.opt-tag {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 7px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 4px;
  background: var(--line);
  color: var(--ink-3);
  letter-spacing: 0.1em;
}

.field-hint {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.7;
}

input:not(.wpcf7-submit),
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  font-family: inherit;
  color: var(--ink);
  line-height: 1.6;
}

input::placeholder,
textarea::placeholder {
  color: var(--ink-4);
}

input:hover,
select:hover,
textarea:hover {
  border-color: #cdd5da;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(79, 163, 194, 0.12);
}

textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.8;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%231F2A33' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}

input.error,
textarea.error,
select.error {
  border-color: var(--error);
  background: #fff8f8;
}

input.error:focus {
  box-shadow: 0 0 0 4px rgba(232, 79, 79, 0.12);
}

.error-msg {
  font-size: 13px;
  color: var(--error);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}

.error-msg::before {
  content: '!';
  display: inline-flex;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--error);
  color: #fff;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
}

/* radio + checkbox */
.wpcf7-radio {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wpcf7-list-item {
  margin-left: 0;
}

.wpcf7-list-item label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px 12px 18px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-2);
  background: #fff;
  transition: all 0.18s ease;
  user-select: none;
}

.wpcf7-list-item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.wpcf7-list-item input:hover {
  border-color: var(--teal);
  color: var(--ink);
}

.wpcf7-list-item-label {
  padding-left: 24px;
  position: relative;
}

.wpcf7-list-item-label::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.18s ease;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  box-sizing: border-box;
}

.wpcf7-list-item-label::after {
  content: '';
  width: 6px;
  height: 6px;
  margin: auto;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 50%;
  left: 5px;
  transform: translateY(-50%);
  opacity: 0;
}

/* チェック */
.wpcf7-list-item label:has(input:checked) {
  border-color: var(--teal);
  background: var(--teal-pale);
  color: var(--teal);
}

.wpcf7-list-item input:checked + .wpcf7-list-item-label::before {
  border-color: var(--teal);
  background: var(--teal);
}

.wpcf7-list-item input:checked + .wpcf7-list-item-label::after {
  opacity: 1;
}

.choice.checkbox .dot {
  border-radius: 4px;
}

.choice.checkbox:checked .dot::after {
  content: '';
  width: 8px;
  height: 5px;
  border-radius: 0;
  background: transparent;
  border: 2px solid #fff;
  border-top: 0;
  border-right: 0;
  transform: rotate(-45deg) translate(1px, -1px);
}

/* date row */
.date-row {
  display: grid;
  grid-template-columns: 1.2fr auto 1fr auto;
  align-items: center;
  gap: 8px;
}

.date-row .unit {
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 700;
}

/* file upload */
.file-drop {
  border: 1.5px dashed var(--line);
  background: var(--bg-soft);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.file-drop:hover {
  border-color: var(--teal);
  background: var(--teal-pale);
}

.file-drop.has-file {
  border-style: solid;
  border-color: var(--teal);
  background: var(--teal-pale);
}

.file-drop .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  border: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  flex-shrink: 0;
}

.file-drop .body {
  flex: 1;
  line-height: 1.5;
}

.file-drop .body .title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.file-drop .body .hint {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 2px;
}

.file-drop input {
  display: none;
}

.file-drop .filename {
  font-size: 13px;
  color: var(--teal);
  font-weight: 700;
  margin-top: 4px;
  word-break: break-all;
}

.file-drop .remove {
  background: none;
  border: 0;
  font-size: 12px;
  color: var(--ink-3);
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.file-drop .remove:hover {
  color: var(--error);
}

/* ============================================
  actions
============================================ */
.actions {
  margin-top: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.actions.center {
  justify-content: center;
  margin-top: 64px;
}

.actions.stack {
  flex-direction: column;
  gap: 20px;
}

.actions.stack .btn-text {
  margin-top: 0;
}

.btn-xl {
  font-size: 20px !important;
  margin-inline: auto;
  padding: 22px 56px 22px 60px !important;
  letter-spacing: 0.08em;
  max-width: 480px;
  justify-content: center;
  box-shadow: 0 18px 36px -14px rgba(79, 163, 194, 0.7) !important;
}

.btn-xl .arrow {
  width: 32px !important;
  height: 32px !important;
  font-size: 16px !important;
}

.btn-xl:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px -14px rgba(79, 163, 194, 0.75) !important;
}

@media (max-width: 780px) {
  .btn-xl {
    font-size: 17px !important;
    padding: 18px 32px !important;
    min-width: 0;
    width: 100%;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  border: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--teal);
  color: #fff;
  padding: 16px 32px 16px 36px;
  box-shadow: 0 10px 24px -10px rgba(79, 163, 194, 0.55);
}

.btn-primary input {
  font-size: 20px;
  color: #fff;
  background: unset;
  padding: 0;
  border: 0;
}

.btn-primary:hover {
  background: var(--teal-deep);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -10px rgba(79, 163, 194, 0.65);
}

.btn-primary .arrow {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  padding: 14px 22px;
  border: 1.5px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--ink-2);
  color: var(--ink);
}

.btn-text {
  background: none;
  border: 0;
  color: var(--ink-3);
  padding: 14px 0;
  font-size: 14px;
}

.btn-text:hover {
  color: var(--ink);
}

/* ============================================
  Confirmation screen
============================================ */
.confirm-grid {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-2);
}

.confirm-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-2);
  align-items: flex-start;
}

.confirm-row .label {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  padding-top: 2px;
}

.confirm-row .value {
  font-size: 16px;
  color: var(--ink);
  line-height: 1.85;
  white-space: pre-wrap;
}

.confirm-row .value.empty {
  color: var(--ink-4);
  font-style: italic;
}

.confirm-section+.confirm-section {
  margin-top: 32px;
}

.confirm-section h4 {
  font-size: 13px;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: 0.16em;
  margin-bottom: 4px;
}

.privacy-box {
  margin-top: 48px;
  background: var(--bg-soft);
  border-radius: 16px;
  padding: 32px 36px;
  border: 1px solid var(--line-2);
}

.privacy-box .title {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}

.privacy-box .body {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.95;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 12px;
}

.privacy-box .body p+p {
  margin-top: 14px;
}

.privacy-box .body strong {
  font-weight: 800;
  color: var(--ink);
}

.privacy-agree {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* ============================================
  Thanks screen
============================================ */
.thanks {
  text-align: center;
  padding: 80px 48px 100px;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}

.thanks .heart {
  width: 96px;
  height: 96px;
  margin: 0 auto 32px;
  position: relative;
}

.thanks .heart svg {
  width: 100%;
  height: 100%;
}

.thanks .en-label {
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--teal);
  font-weight: 800;
  margin-bottom: 12px;
}

.thanks h2 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.4;
}

.thanks h2 .accent {
  color: var(--pink);
}

.thanks p {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 2;
}

.thanks .ref-box {
  margin: 36px auto 0;
  padding: 20px 28px;
  background: var(--teal-pale);
  border-radius: 16px;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.thanks .ref-box .label {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.18em;
  font-weight: 700;
}

.thanks .ref-box .ref-id {
  font-size: 22px;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: 0.08em;
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

/* ============================================
  Decorative striped placeholder
============================================ */
.striped-card {
  background: repeating-linear-gradient(-45deg,
      var(--pink-pale),
      var(--pink-pale) 12px,
      var(--pink-soft) 12px,
      var(--pink-soft) 24px);
  border-radius: 12px;
}

/* ============================================
  Responsive
============================================ */
@media (max-width: 780px) {
  .hero {
    padding: 48px 20px 32px;
  }

  .hero-lede {
    font-size: 14px;
  }

  .form-shell {
    padding: 0 0 80px;
  }

  .form-section {
    padding: 32px 24px;
    border-radius: 18px;
  }

  .field-grid.two,
  .field-grid.three {
    grid-template-columns: 1fr;
  }

  .steps {
    margin-bottom: 36px;
  }

  .step-bullet {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .step:not(:last-child)::after {
    top: 20px;
    left: calc(50% + 24px);
    right: calc(-50% + 24px);
  }

  .step-label .en {
    display: none;
  }

  .step-label .ja {
    font-size: 11px;
  }

  .privacy-box {
    padding-inline: 20px;
  }

  .actions {
    flex-direction: column-reverse;
  }

  .actions>* {
    width: 100%;
    justify-content: center;
  }

  .confirm-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .confirm-row .label {
    color: var(--teal);
    font-size: 11px;
    letter-spacing: 0.14em;
  }

  .thanks h2 {
    font-size: 28px;
  }

  .hero h1 .ja-main {
    font-size: 36px;
  }
}