
/* recruitc.css - 採用LPページ専用CSS（アップグレード版） */

/* ===== ベース設定 ===== */
body {
  font-family: 'Noto Sans JP', sans-serif;
  margin: 0;
  background: #f5f8fa;
  color: #ffffff;
  line-height: 1.8;
}

a {
  color: #007bff;
  text-decoration: none;
}

h1, h2, h3 {
  margin-bottom: 0.5em;
  font-weight: 700;
}

/* ===== ブランド表示 ===== */
.site-brand {
  position: absolute;
  top: 20px;
  left: 20px;
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  z-index: 1000;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* ===== ヒーローセクション ===== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  background: url('https://www.nikko-kikai.co.jp/img/recruit-hero3.webp') center center / cover no-repeat;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-left: 10rem;
  padding-right: 0;
  box-sizing: border-box;
}

.hero-inner {
  margin-top: auto;
  margin-bottom: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 600px;
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.4;
  margin-bottom: 0.5em;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 1.5em;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.cta-button {
  align-self: flex-start;
  background: #007bff;
  color: #fff;
  padding: 1em 2em;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background 0.3s ease;
}

.cta-button:hover {
  background: #0056b3;
}

/* ===== セクション共通 ===== */
.section {
  max-width: 960px;
  margin: 0 auto;
  padding: 4em 1em;
  background: #f9fafc;
  border-top: 1px solid #ddd;
}

.section-title {
  font-size: 2rem;
  border-left: none;
  border-bottom: 3px solid #007bff;
  padding-bottom: 0.4em;
  color: #003366;
  margin-bottom: 2rem;
  text-align: center;
}

.update-note {
  font-size: 0.9rem;
  color: #666;
  margin-left: 0.5em;
}

/* ===== 募集カード ===== */
.job-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  padding: 1.8rem;
  margin-bottom: 2.5em;
  color: #333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.job-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
}

.job-card h3 {
  font-size: 1.3rem;
  color: #003366;
  margin-bottom: 0.75em;
}

.job-card .lead {
  background: linear-gradient(to right, #eaf4fc, #f0f9ff);
  border-left: 5px solid #007bff;
  padding: 1em 1.2em;
  margin-bottom: 1.5em;
  font-size: 1.05rem;
  border-radius: 8px;
  font-weight: 500;
  line-height: 1.6;
}

.job-card ul {
  padding-left: 1.2rem;
  margin: 0;
}

.job-card li {
  margin-bottom: 0.4em;
}

/* ===== エントリーボタン ===== */
.entry-button {
  display: block;
  max-width: 360px;
  margin: 3em auto 1em;
  text-align: center;
  padding: 1em;
  background: linear-gradient(to right, #007bff, #3399ff);
  color: white;
  border-radius: 10px;
  font-weight: bold;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, background 0.3s ease;
}

.entry-button:hover {
  background: linear-gradient(to right, #0056b3, #1a75ff);
  transform: scale(1.03);
}

/* ===== スマホ対応 ===== */
@media (max-width: 768px) {
  .hero {
    padding: 60px 15px;
    height: auto;
  }

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

  .hero p {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .job-card {
    padding: 1rem;
  }

  .entry-button {
    font-size: 1rem;
    width: 90%;
  }
}

html, body {
  overflow-x: hidden;
}


/* ===== アニメーションの追加 ===== */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.job-card {
  animation: fadeUp 0.8s ease-in-out both;
}

.job-card:nth-child(2) {
  animation-delay: 0.2s;
}

.job-card:nth-child(3) {
  animation-delay: 0.4s;
}

.job-card:nth-child(4) {
  animation-delay: 0.6s;
}

.entry-button {
  animation: fadeUp 1s ease-in-out 0.8s both;
}

/* ===== スマホ対応の強化 ===== */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.7rem;
    line-height: 1.3;
  }

  .hero p {
    font-size: 1rem;
  }

  .cta-button {
    font-size: 1rem;
    padding: 0.8em 1.5em;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .job-card {
    padding: 0.9rem;
  }

  .job-card h3 {
    font-size: 1.1rem;
  }

  .job-card .lead {
    font-size: 0.95rem;
  }

  .entry-button {
    font-size: 1rem;
    width: 100%;
    padding: 0.9em;
  }
}
