/* Recruit-apply page styles moved from recruit-apply.php */
.recruit-apply-intro {
  max-width: 800px;
  margin: 0 auto 40px;
}

.recruit-apply-intro .lead {
  font-size: 1.1rem;
  color: var(--muted);
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.8;
}

.info-box {
  background: linear-gradient(135deg, rgba(29, 127, 212, 0.1), rgba(14, 165, 233, 0.1));
  border-left: 4px solid var(--brand);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 40px;
}

@media (prefers-color-scheme: dark) {
  .info-box {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.6));
    border-left-color: #60a5fa;
  }
}

.file-upload-area {
  position: relative;
}

.file-input {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.file-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  border: 2px dashed var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
  transition: all 0.3s;
  cursor: pointer;
}

@media (prefers-color-scheme: dark) {
  .file-upload-label {
    background: rgba(30, 41, 59, 0.4);
    border-color: #334155;
  }
  
  .file-upload-label:hover {
    background: rgba(30, 58, 138, 0.2);
    border-color: #60a5fa;
  }
  
  .file-upload-area.dragover .file-upload-label {
    background: rgba(30, 58, 138, 0.3);
    border-color: #60a5fa;
  }
  
  .upload-text {
    color: #94a3b8;
  }
}

.file-upload-label:hover {
  border-color: var(--brand);
  background: rgba(11, 95, 179, 0.05);
}

.file-upload-area.dragover .file-upload-label {
  border-color: var(--brand);
  background: rgba(11, 95, 179, 0.1);
  transform: scale(1.02);
}

.upload-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.upload-text {
  font-size: 1.1rem;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 8px;
}

.upload-hint {
  font-size: 0.9rem;
  color: var(--muted);
}

.file-list {
  margin-top: 16px;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 8px;
  transition: all 0.2s;
}

.file-item:hover {
  border-color: var(--brand);
  box-shadow: 0 2px 8px rgba(11, 95, 179, 0.1);
}

.file-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.file-icon {
  font-size: 1.5rem;
}

.file-details {
  flex: 1;
}

.file-name {
  font-weight: 600;
  color: var(--ink);
  display: block;
  margin-bottom: 2px;
  word-break: break-all;
}

.file-size {
  font-size: 0.85rem;
  color: var(--muted);
}

.file-remove {
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.file-remove:hover {
  background: #dc2626;
  transform: scale(1.05);
}

.info-box h3 {
  color: var(--brand);
  margin-bottom: 16px;
  font-size: 1.2rem;
}

.info-box ol {
  margin-left: 20px;
  line-height: 2;
  color: var(--ink);
}

.recruit-form-wrapper {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-sm);
  padding: 40px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}

@media (prefers-color-scheme: dark) {
  .recruit-form-wrapper {
    background: rgba(15, 23, 42, 0.85);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  }
  
  .info-box {
    background: rgba(30, 41, 59, 0.6);
    border-color: #334155;
  }
  
  .info-box h3 {
    color: #60a5fa;
  }
  
  .info-box ol {
    color: #e0e0e0;
  }
  
  .file-name {
    color: #e0e0e0;
  }
}

.recruit-form .form-group {
  margin-bottom: 24px;
}

.recruit-form label {
  display: block;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.recruit-form label.required::after {
  content: ' *';
  color: #e53e3e;
}

.recruit-form input,
.recruit-form textarea,
.recruit-form select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s;
  background: white;
  color: #0f172a;
}

@media (prefers-color-scheme: dark) {
  .recruit-form input,
  .recruit-form textarea,
  .recruit-form select {
    background: #1e293b;
    color: #e0e0e0;
    border-color: #334155;
  }
  
  .recruit-form input::placeholder,
  .recruit-form textarea::placeholder {
    color: #94a3b8;
  }
  
  .recruit-form label {
    color: #e0e0e0;
  }
}

.recruit-form input:focus,
.recruit-form textarea:focus,
.recruit-form select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(11, 95, 179, 0.1);
}

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

.recruit-form select {
  cursor: pointer;
}

.form-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.btn {
  padding: 14px 32px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

.btn-primary {
  background: var(--brand);
  color: white;
  box-shadow: 0 4px 12px rgba(11, 95, 179, 0.3);
}

.btn-primary:hover {
  background: var(--brand-700);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(11, 95, 179, 0.4);
}

.btn-secondary {
  background: var(--bg);
  color: var(--muted);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  background: white;
  border-color: var(--muted);
}

.alert {
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-weight: 500;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* モーダルスタイル */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: white;
  border-radius: 20px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  margin: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  text-align: center;
  animation: slideUp 0.3s ease;
}

.modal-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 48px;
  font-weight: bold;
  animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-icon.success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

.modal-content h2 {
  color: var(--ink);
  margin-bottom: 16px;
  font-size: 1.8rem;
}

.modal-content p {
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.6;
}

.modal-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 24px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes scaleIn {
  from { 
    transform: scale(0);
  }
  to { 
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  .recruit-form-wrapper {
    padding: 16px;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .modal-content {
    padding: 24px 16px;
  }
  
  #recruit-apply {
    padding: 0 4px;
  }
  
  #recruit-apply h2, #recruit-apply h3 { padding-left: 8px; }
  #recruit-apply p { padding-left: 8px; padding-right: 8px; }
}
