/* ==========================================================================
   Recruit Entry Form — ステップ形式エントリーフォーム
   ========================================================================== */

.rf-position-banner {
  text-align: center;
  margin: 0 auto 8px;
  max-width: 720px;
}

.rf-position-banner h2 {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  background: #1a2333;
  padding: 10px 28px;
  border-radius: 6px;
  letter-spacing: 0.06em;
}

.rf-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 40px 100px;
}

/* -------------------------------------------------------------------
   イントロ
   ------------------------------------------------------------------- */
.rf-intro {
  text-align: center;
  padding: 50px 0 60px;
  border-bottom: 1px solid #e9ecef;
}

.rf-intro-lead {
  font-size: 1rem;
  line-height: 2;
  color: #6c757d;
  margin: 0;
}

.rf-intro-lead + .rf-intro-lead {
  margin-top: 4px;
}

/* -------------------------------------------------------------------
   ステップインジケーター
   ------------------------------------------------------------------- */
.rf-steps-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin: 48px 0 8px;
}

.rf-step-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.rf-step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e9ecef;
  color: #adb5bd;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
}

.rf-step-name {
  font-size: 0.7rem;
  font-weight: 600;
  color: #adb5bd;
  white-space: nowrap;
  transition: color 0.4s ease;
}

.rf-step-dot.-active .rf-step-circle {
  background: linear-gradient(135deg, #1a2333, #3a5070);
  color: #fff;
  box-shadow: 0 4px 12px rgba(26, 35, 51, 0.3);
}

.rf-step-dot.-active .rf-step-name {
  color: #1a2333;
}

.rf-step-dot.-done .rf-step-circle {
  background: #1a2333;
  color: #fff;
}

.rf-step-dot.-done .rf-step-name {
  color: #6c757d;
}

.rf-step-line {
  width: 60px;
  height: 2px;
  background: #e9ecef;
  margin: 0 8px;
  margin-bottom: 24px;
  transition: background 0.4s ease;
}

.rf-step-line.-done {
  background: #1a2333;
}

/* -------------------------------------------------------------------
   フォームカード
   ------------------------------------------------------------------- */
.rf-form-card {
  background: #fff;
  border-radius: 24px;
  padding: 56px 48px;
  margin-top: 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.rf-step-panel {
  display: none;
}

.rf-step-panel.-visible {
  display: block;
  animation: rfFadeIn 0.4s ease;
}

@keyframes rfFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.rf-step-heading {
  font-size: 1.3rem;
  font-weight: 800;
  color: #1a2333;
  margin: 0 0 8px;
}

.rf-step-sub {
  font-size: 0.85rem;
  color: #6c757d;
  margin: 0 0 36px;
  line-height: 1.6;
}

.rf-form-section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: #6c757d;
  text-transform: uppercase;
  margin: 40px 0 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e9ecef;
}

.rf-form-section-title:first-child {
  margin-top: 0;
}

/* -------------------------------------------------------------------
   フォームグリッド
   ------------------------------------------------------------------- */
.rf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.rf-grid:last-child {
  margin-bottom: 0;
}

.rf-field {
  position: relative;
}

.rf-field.-full {
  grid-column: 1 / -1;
}

.rf-field-row {
  margin-bottom: 24px;
}

.rf-field-row:last-child {
  margin-bottom: 0;
}

/* -------------------------------------------------------------------
   ラベル
   ------------------------------------------------------------------- */
.rf-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a2333;
  margin-bottom: 8px;
}

.rf-required {
  display: inline-block;
  background: linear-gradient(135deg, #1a2333, #3a5070);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 8px;
  vertical-align: middle;
}

.rf-optional {
  display: inline-block;
  background: #e9ecef;
  color: #6c757d;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 8px;
  vertical-align: middle;
}

.rf-hint {
  font-size: 0.78rem;
  color: #adb5bd;
  margin-top: 6px;
  line-height: 1.5;
}

/* -------------------------------------------------------------------
   入力フィールド
   ------------------------------------------------------------------- */
.rf-input,
.rf-textarea,
.rf-select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #d1d5db;
  border-radius: 12px;
  font-size: 0.95rem;
  color: #1a2333;
  background: #fafbfc;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  font-family: inherit;
}

.rf-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.8;
}

.rf-select {
  appearance: none;
  -webkit-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'%3E%3Cpath fill='%236c757d' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.rf-input:focus,
.rf-textarea:focus,
.rf-select:focus {
  outline: none;
  border-color: #1a2333;
  box-shadow: 0 0 0 3px rgba(26, 35, 51, 0.08);
  background: #fff;
}

.rf-input::placeholder,
.rf-textarea::placeholder {
  color: #adb5bd;
}

/* 日付入力 */
.rf-date-grid {
  display: flex;
  gap: 12px;
  align-items: center;
}

.rf-date-grid select {
  flex: 1;
}

.rf-date-grid span {
  font-size: 0.85rem;
  color: #6c757d;
  flex-shrink: 0;
}

/* -------------------------------------------------------------------
   ラジオ・チェックボックス
   ------------------------------------------------------------------- */
.rf-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.rf-radio-option {
  position: relative;
}

.rf-radio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.rf-radio-option label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1.5px solid #d1d5db;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #4a5568;
  cursor: pointer;
  transition: all 0.25s ease;
  background: #fafbfc;
}

.rf-radio-option label::before {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid #d1d5db;
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.rf-radio-option input[type="radio"]:checked + label {
  border-color: #1a2333;
  background: #1a2333;
  color: #fff;
}

.rf-radio-option input[type="radio"]:checked + label::before {
  border-color: #fff;
  background: #fff;
  box-shadow: inset 0 0 0 3px #1a2333;
}

/* チェックボックス */
.rf-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.rf-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #d1d5db;
  border-radius: 6px;
  flex-shrink: 0;
  display: grid;
  place-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.rf-checkbox input[type="checkbox"]::before {
  content: '';
  width: 10px;
  height: 6px;
  border-bottom: 2.5px solid #fff;
  border-left: 2.5px solid #fff;
  transform: rotate(-45deg) scale(0);
  transition: transform 0.2s ease;
}

.rf-checkbox input[type="checkbox"]:checked {
  background: #1a2333;
  border-color: #1a2333;
}

.rf-checkbox input[type="checkbox"]:checked::before {
  transform: rotate(-45deg) scale(1);
}

.rf-checkbox label {
  font-size: 0.9rem;
  color: #4a5568;
  cursor: pointer;
}

/* 性別ラジオ（インライン小さめ） */
.rf-radio-inline {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.rf-radio-inline .rf-radio-option label {
  padding: 8px 18px;
  font-size: 0.85rem;
}

/* -------------------------------------------------------------------
   顔写真アップロード
   ------------------------------------------------------------------- */
.rf-photo-area {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 4px;
}

.rf-photo-preview {
  width: 100px;
  height: 130px;
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  background: #fafbfc;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  color: #adb5bd;
  font-size: 0.75rem;
  text-align: center;
}

.rf-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rf-photo-right {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rf-photo-label {
  display: inline-block;
  padding: 8px 20px;
  background: #1a2333;
  color: #fff;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.rf-photo-label:hover {
  background: #2d3a4f;
}

/* -------------------------------------------------------------------
   ファイルアップロード
   ------------------------------------------------------------------- */
.rf-file-area {
  border: 2px dashed #d1d5db;
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  transition: border-color 0.3s ease, background 0.3s ease;
  background: #fafbfc;
}

.rf-file-area:hover {
  border-color: #1a2333;
  background: #f0f2f5;
}

.rf-file-area-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
  opacity: 0.5;
}

.rf-file-label {
  display: inline-block;
  padding: 10px 24px;
  background: #1a2333;
  color: #fff;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  margin-bottom: 12px;
}

.rf-file-label:hover {
  background: #2d3a4f;
  transform: translateY(-2px);
}

.rf-file-input {
  display: none;
}

.rf-file-hint {
  font-size: 0.78rem;
  color: #6c757d;
  line-height: 1.7;
  margin: 0;
}

/* -------------------------------------------------------------------
   カレンダーUI
   ------------------------------------------------------------------- */
.rf-calendar-wrap {
  background: #fff;
  border: 1.5px solid #d1d5db;
  border-radius: 16px;
  padding: 20px;
  max-width: 420px;
}

.rf-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.rf-cal-month {
  font-size: 1rem;
  font-weight: 700;
  color: #1a2333;
}

.rf-cal-nav {
  background: none;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #1a2333;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rf-cal-nav:hover {
  background: #1a2333;
  color: #fff;
  border-color: #1a2333;
}

.rf-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.rf-cal-dow {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #adb5bd;
  padding: 6px 0;
}

.rf-cal-day {
  text-align: center;
  padding: 10px 4px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #1a2333;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.rf-cal-day:hover:not(.-past):not(.-empty) {
  background: #f0f2f5;
}

.rf-cal-day.-empty {
  cursor: default;
}

.rf-cal-day.-past {
  color: #d1d5db;
  cursor: default;
}

.rf-cal-day.-weekend {
  color: #e74c3c;
}

.rf-cal-day.-weekend.-past {
  color: #f0c0c0;
}

.rf-cal-day.-selected {
  background: linear-gradient(135deg, #1a2333, #3a5070) !important;
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(26, 35, 51, 0.3);
}

.rf-selected-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.rf-date-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #1a2333;
  color: #fff;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
}

.rf-date-tag button {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s ease;
}

.rf-date-tag button:hover {
  color: #fff;
}

/* -------------------------------------------------------------------
   条件表示エリア
   ------------------------------------------------------------------- */
.rf-conditional {
  display: none;
}

.rf-conditional.-show {
  display: block;
  animation: rfFadeIn 0.4s ease;
}

/* -------------------------------------------------------------------
   経歴追加ボタン
   ------------------------------------------------------------------- */
.rf-add-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border: 1.5px dashed #d1d5db;
  border-radius: 50px;
  background: transparent;
  color: #6c757d;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 12px;
}

.rf-add-row:hover {
  border-color: #1a2333;
  color: #1a2333;
}

/* -------------------------------------------------------------------
   同意エリア
   ------------------------------------------------------------------- */
.rf-agree {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 40px 0 32px;
}

.rf-agree input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #d1d5db;
  border-radius: 6px;
  flex-shrink: 0;
  display: grid;
  place-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.rf-agree input[type="checkbox"]::before {
  content: '';
  width: 10px;
  height: 6px;
  border-bottom: 2.5px solid #fff;
  border-left: 2.5px solid #fff;
  transform: rotate(-45deg) scale(0);
  transition: transform 0.2s ease;
}

.rf-agree input[type="checkbox"]:checked {
  background: #1a2333;
  border-color: #1a2333;
}

.rf-agree input[type="checkbox"]:checked::before {
  transform: rotate(-45deg) scale(1);
}

.rf-agree label {
  font-size: 0.9rem;
  color: #4a5568;
  cursor: pointer;
}

.rf-agree a {
  color: #1a2333;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* -------------------------------------------------------------------
   ナビゲーションボタン
   ------------------------------------------------------------------- */
.rf-nav-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #e9ecef;
}

.rf-nav-buttons.-center {
  justify-content: center;
}

.rf-btn-next {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 40px;
  background: linear-gradient(135deg, #1a2333 0%, #3a5070 100%);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-left: auto;
}

.rf-btn-next:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(26, 35, 51, 0.3);
}

.rf-btn-prev {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: #6c757d;
  border: 1.5px solid #d1d5db;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.rf-btn-prev:hover {
  border-color: #1a2333;
  color: #1a2333;
}

.rf-submit-area {
  text-align: center;
}

.rf-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 48px;
  background: linear-gradient(135deg, #1a2333 0%, #3a5070 100%);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rf-submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(26, 35, 51, 0.3);
}

.rf-submit-btn span:last-child {
  transition: transform 0.3s ease;
}

.rf-submit-btn:hover span:last-child {
  transform: translateX(4px);
}

/* -------------------------------------------------------------------
   確認画面
   ------------------------------------------------------------------- */
.rf-confirm-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1a2333;
  text-align: center;
  margin: 0 0 40px;
}

.rf-confirm-table {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.rf-confirm-section-title {
  padding: 16px 28px;
  background: #1a2333;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.rf-confirm-row {
  display: flex;
  border-bottom: 1px solid #f0f0f0;
}

.rf-confirm-row:last-child {
  border-bottom: none;
}

.rf-confirm-label {
  flex-shrink: 0;
  width: 200px;
  padding: 18px 28px;
  background: #f8f9fb;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1a2333;
  display: flex;
  align-items: center;
}

.rf-confirm-value {
  flex: 1;
  padding: 18px 28px;
  font-size: 0.85rem;
  line-height: 1.8;
  color: #4a5568;
  word-break: break-all;
}

.rf-confirm-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

.rf-btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background: #6c757d;
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.rf-btn-back:hover {
  background: #5a6268;
}

/* -------------------------------------------------------------------
   個人情報取扱テキスト
   ------------------------------------------------------------------- */
.rf-privacy-text {
  margin-top: 56px;
  padding: 28px 32px;
  background: #f8f9fb;
  border-radius: 16px;
  border: 1px solid #e9ecef;
}

.rf-privacy-text h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1a2333;
  margin: 0 0 16px;
}

.rf-privacy-text ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rf-privacy-text li {
  position: relative;
  padding-left: 16px;
  font-size: 0.8rem;
  line-height: 1.8;
  color: #6c757d;
  margin-bottom: 6px;
}

.rf-privacy-text li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #adb5bd;
}

.rf-privacy-text a {
  color: #1a2333;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* -------------------------------------------------------------------
   バリデーションエラー
   ------------------------------------------------------------------- */
.rf-input.-error,
.rf-textarea.-error,
.rf-select.-error {
  border-color: #e74c3c;
}

.rf-error-msg {
  font-size: 0.75rem;
  color: #e74c3c;
  margin-top: 6px;
  display: none;
}

.rf-error-msg.-show {
  display: block;
}

/* -------------------------------------------------------------------
   レスポンシブ
   ------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
  .rf-page {
    padding: 0 20px 60px;
  }

  .rf-intro {
    padding: 30px 0 40px;
  }

  .rf-steps-indicator {
    margin: 32px 0 0;
  }

  .rf-step-line {
    width: 16px;
    margin: 0 4px;
  }

  .rf-step-name {
    font-size: 0.55rem;
  }

  .rf-step-circle {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
  }

  .rf-form-card {
    padding: 32px 20px;
    margin-top: 20px;
  }

  .rf-grid {
    grid-template-columns: 1fr;
  }

  .rf-radio-group {
    flex-direction: column;
  }

  .rf-radio-inline {
    flex-wrap: wrap;
  }

  .rf-date-grid {
    flex-wrap: wrap;
  }

  .rf-photo-area {
    flex-direction: column;
    align-items: flex-start;
  }

  .rf-file-area {
    padding: 24px 16px;
  }

  .rf-nav-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .rf-btn-next {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }

  .rf-btn-prev {
    width: 100%;
    justify-content: center;
    order: 2;
  }

  .rf-confirm-row {
    flex-direction: column;
  }

  .rf-confirm-label {
    width: 100%;
    padding: 14px 20px;
  }

  .rf-confirm-value {
    padding: 14px 20px;
  }

  .rf-confirm-buttons {
    flex-direction: column;
    align-items: center;
  }

  .rf-submit-btn,
  .rf-btn-back {
    width: 100%;
    justify-content: center;
  }
}
