/* ===========================
   応募ページ専用スタイル
   ─ style.css の CSS変数を継承 ─
=========================== */

/* ── ヘッダー「戻る」ボタン ── */
.btn-back-header {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 600;
  padding: 7px 18px;
  border: 1px solid var(--border-dark);
  border-radius: 50px;
  transition: all 0.2s;
  letter-spacing: 0.01em;
}
.btn-back-header:hover {
  color: white;
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.06);
}

/* ===========================
   ページヒーロー
=========================== */
.apply-hero {
  position: relative;
  padding: 110px 24px 60px;
  text-align: center;
  overflow: hidden;
}
.apply-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at 18% 62%, rgba(201,162,39,0.08) 0%, transparent 58%),
    radial-gradient(ellipse 50% 50% at 85% 20%, rgba(59,130,246,0.07) 0%, transparent 55%),
    linear-gradient(158deg, #0B1020 0%, #111827 55%, #0B1020 100%);
}
.apply-hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 52px 52px;
}
.apply-hero-content {
  position: relative;
  z-index: 1;
}
.apply-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(201,162,39,0.1);
  border: 1px solid rgba(201,162,39,0.28);
  color: var(--gold-light);
  padding: 5px 18px;
  border-radius: 50px;
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.07em;
  font-family: var(--font-en);
  text-transform: uppercase;
}
.apply-hero-title {
  font-family: var(--font-ja);
  font-size: clamp(1.65rem, 3.8vw, 2.5rem);
  font-weight: 900;
  color: white;
  line-height: 1.35;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.apply-hero-title .accent { color: var(--gold); }
.apply-hero-sub {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
}

/* ===========================
   メインエリア
=========================== */
.apply-main { padding-top: 0; }
.apply-body {
  background: var(--bg-light);
  padding: 52px 24px 88px;
  min-height: 60vh;
}
.apply-container {
  max-width: 700px;
  margin: 0 auto;
}

/* ===========================
   求人サマリー
=========================== */
.job-summary {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 20px 26px;
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-left: 4px solid var(--gold);
}
.job-summary-title {
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-en);
  letter-spacing: 0.05em;
}
.job-summary-content { flex: 1; }
.job-summary-position {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 7px;
}
.job-summary-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.job-summary-tags span {
  font-size: 0.76rem;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 5px;
}
.job-summary-tags i { color: var(--gold); font-size: 0.68rem; }

/* ===========================
   ステップインジケーター
=========================== */
.form-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 36px;
  gap: 0;
}
.form-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.form-step-circle {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-light);
  font-weight: 700;
  font-size: 0.9rem;
  font-family: var(--font-en);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.35s;
}
.form-step.active .form-step-circle {
  background: var(--cta);
  color: white;
  box-shadow: 0 4px 14px rgba(59,130,246,0.3);
}
.form-step.done .form-step-circle {
  background: var(--green);
  color: white;
}
.form-step.done .form-step-circle::before { content: '✓'; }
.form-step-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-light);
  white-space: nowrap;
}
.form-step.active .form-step-label { color: var(--cta); }
.form-step.done .form-step-label { color: #16a34a; }
.form-step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 10px;
  margin-bottom: 22px;
  min-width: 44px;
  transition: background 0.35s;
}

/* ===========================
   フォームセクション
=========================== */
.form-section {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 40px 44px;
  margin-bottom: 24px;
}
.form-section.hidden { display: none; }
.form-section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
  padding-bottom: 22px;
  border-bottom: 2px solid var(--bg-light);
}
.form-section-num {
  background: var(--bg-dark);
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  letter-spacing: 0.08em;
  font-family: var(--font-en);
  border: 1px solid rgba(201,162,39,0.2);
}
.form-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

/* ===========================
   フォーム部品
=========================== */
.form-group { margin-bottom: 26px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 9px;
}
.required {
  background: var(--cta);
  color: white;
  font-size: 0.63rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}
.optional {
  background: var(--bg-light);
  color: var(--text-light);
  font-size: 0.63rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 11px;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-family: var(--font-ja);
  color: var(--text-main);
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  line-height: 1.6;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--cta);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(239,68,68,0.09);
}
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
  cursor: pointer;
}
.form-textarea {
  resize: vertical;
  min-height: 126px;
  line-height: 1.75;
}
.form-input-with-unit {
  display: flex;
  align-items: center;
  gap: 9px;
}
.form-input-with-unit .form-input { max-width: 120px; }
.form-unit {
  font-size: 0.9rem;
  color: var(--text-light);
  white-space: nowrap;
}
.form-hint {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 5px;
  line-height: 1.6;
}
.form-error {
  font-size: 0.78rem;
  color: var(--red);
  margin-top: 5px;
  min-height: 18px;
  font-weight: 500;
}
.form-char-count {
  text-align: right;
  font-size: 0.74rem;
  color: var(--text-light);
  margin-top: 5px;
}

/* ── ラジオボタン ── */
.form-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.form-radio {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-main);
  user-select: none;
}
.form-radio input[type="radio"] { display: none; }
.form-radio-mark {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.form-radio input:checked + .form-radio-mark {
  border-color: var(--cta);
  background: var(--cta);
  box-shadow: inset 0 0 0 3px white;
}

/* ブロック型ラジオ */
.form-radio-group--block { flex-direction: column; gap: 10px; }
.form-radio--block {
  background: var(--bg-light);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 15px 18px;
  transition: all 0.2s;
  align-items: flex-start;
}
.form-radio--block:hover {
  border-color: rgba(59,130,246,0.35);
  background: #EEF2FF;
}
.form-radio--block:has(input:checked) {
  border-color: var(--cta);
  background: #EEF2FF;
}
.form-radio--block input:checked ~ .form-radio-block-content strong { color: var(--cta-dark); }
.form-radio-block-content {
  display: flex; flex-direction: column; gap: 2px;
}
.form-radio-block-content strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
}
.form-radio-block-content small {
  font-size: 0.76rem;
  color: var(--text-light);
}

/* ── チェックボックス ── */
.form-checkbox-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}
.form-checkbox {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-main);
  user-select: none;
}
.form-checkbox input[type="checkbox"] { display: none; }
.form-checkbox-mark {
  width: 20px; height: 20px;
  border-radius: 5px;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.form-checkbox input:checked + .form-checkbox-mark {
  background: var(--cta);
  border-color: var(--cta);
}
.form-checkbox input:checked + .form-checkbox-mark::after {
  content: '✓';
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
}

/* ===========================
   ボタン
=========================== */
.form-btn-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.form-btn-row--between { justify-content: space-between; }

.btn-next {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--cta);
  color: white;
  border: none;
  padding: 0 32px;
  height: 50px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-ja);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(59,130,246,0.28);
}
.btn-next:hover {
  background: var(--cta-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59,130,246,0.38);
}
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-sub);
  border: 1.5px solid var(--border);
  padding: 0 24px;
  height: 48px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-ja);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-back:hover {
  background: var(--bg-light);
  color: var(--text-main);
  border-color: #CBD5E1;
}
.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--cta);
  color: white;
  border: none;
  padding: 0 40px;
  height: 54px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-ja);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 20px rgba(59,130,246,0.3);
}
.btn-submit:hover {
  background: var(--cta-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(59,130,246,0.42);
}
.btn-submit:disabled {
  background: var(--border);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

/* ===========================
   確認画面（STEP3）
=========================== */
.confirm-lead {
  font-size: 0.9rem;
  color: var(--text-sub);
  margin-bottom: 26px;
  line-height: 1.7;
}
.confirm-table-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 30px;
}
.confirm-table {
  width: 100%;
  border-collapse: collapse;
}
.confirm-table th,
.confirm-table td {
  padding: 14px 20px;
  text-align: left;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
  line-height: 1.72;
  vertical-align: top;
}
.confirm-table tr:last-child th,
.confirm-table tr:last-child td { border-bottom: none; }
.confirm-table th {
  background: var(--bg-light);
  font-weight: 700;
  color: var(--text-main);
  width: 150px;
  white-space: nowrap;
}
.confirm-message-cell { white-space: pre-wrap; }

/* プライバシー同意 */
.privacy-box {
  background: var(--bg-light);
  border-radius: 12px;
  padding: 22px 26px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
}
.privacy-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.privacy-title i { color: var(--cta); }
.privacy-text {
  font-size: 0.8rem;
  color: var(--text-sub);
  line-height: 1.82;
  margin-bottom: 16px;
}
.privacy-agree {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

/* ===========================
   完了画面
=========================== */
.form-complete {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 60px 44px;
  text-align: center;
}
.form-complete.hidden { display: none; }
.complete-icon {
  font-size: 4rem;
  color: var(--green);
  margin-bottom: 22px;
  animation: pop 0.55s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes pop {
  0%   { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.complete-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.complete-text {
  font-size: 0.95rem;
  color: var(--text-sub);
  line-height: 2.1;
  margin-bottom: 38px;
}
.complete-info {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 38px;
  border: 1px solid var(--border);
}
.complete-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
}
.complete-info-item > i {
  width: 42px; height: 42px;
  background: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--cta);
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.complete-info-label {
  font-size: 0.7rem;
  color: var(--text-light);
  margin-bottom: 3px;
}
.complete-info-value {
  font-size: 0.9rem;
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.55;
}
.btn-back-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-dark);
  color: white;
  padding: 0 36px;
  height: 50px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.25s;
}
.btn-back-top:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(11,16,32,0.3);
}

/* ===========================
   レスポンシブ（応募ページ）
=========================== */
@media (max-width: 640px) {
  .apply-body { padding: 32px 16px 64px; }
  .form-section { padding: 26px 22px; }
  .form-row { grid-template-columns: 1fr; }
  .form-checkbox-group { grid-template-columns: 1fr; }
  .job-summary { flex-direction: column; align-items: flex-start; }
  .confirm-table th { width: 108px; white-space: normal; }
  .form-complete { padding: 40px 22px; }
  .complete-info { flex-direction: column; }
  .btn-next, .btn-submit { width: 100%; justify-content: center; }
  .form-btn-row--between { flex-direction: column-reverse; gap: 12px; }
  .form-btn-row--between .btn-next,
  .form-btn-row--between .btn-submit { width: 100%; }
}
