* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Yu Gothic UI', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.header {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 3rem;
}

.header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 700;
}

.header p {
    font-size: 1.1rem;
    color: #666;
}

.department {
    margin-bottom: 3rem;
}

.department-title {
  font-weight: 600;
  font-size: 1.5rem;
  color: #34495e;
  margin: 0;
}

.job-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.job-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    position: relative;
    overflow: hidden;
}

.job-card.not-recruiting {
    opacity: 0.6;
    background: #f8f9fa;
}

.job-card.not-recruiting:hover {
    transform: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.job-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.employment-types {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.employment-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.employment-badge.full-time {
    background: #e8f5e8;
    color: #2d5a2d;
    border: 1px solid #a8d8a8;
}

.employment-badge.part-time {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffcc80;
}

.recruitment-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.recruitment-status.recruiting {
    background: #6cc0e7;
    color: #ffffff;
    border: 1px solid #61a9ca;
}

.recruitment-status.not-recruiting {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.job-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.apply-button {
    width: 100%;
    padding: 0.8rem;
    background: #0F2A4A;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.apply-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.apply-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 15px;
    text-align: center;
    margin-top: 3rem;
}

.cta-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    background: white;
    color: #667eea;
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

/* 見出しとCTAの横並び */
.department-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 74px; 
  margin-bottom: 1.5rem;
  border-bottom: 3px solid #3498db;
  padding-bottom: 0.5rem;
}

.engineer-special-btn {
  display: inline-block;
  padding: 4px 16px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(135deg, #3498db, #ba2ecc);
  color: #fff;
  transition: opacity .2s ease, transform .05s ease;
}
.engineer-special-btn:hover { opacity: 1.5; }
.engineer-special-btn:active { transform: translateY(1px); }

@media (max-width: 768px) {
  .department-header { 
    flex-direction: column; 
    align-items: flex-start; 
  }
  .engineer-special-btn { width: 100%; text-align: center; }
}


@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .header h1 {
        font-size: 2rem;
    }

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

    .employment-types {
        justify-content: flex-start;
    }
    .department-header{
        gap:20px
    }
    .engineer-special-btn{
    }
}