/* 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-list { /* 追加：カードのアニメ順を安定化 */
  display: grid;
  gap: 24px;
}

.job-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  padding: 1.8rem;
  margin-bottom: 0; /* job-list で管理 */
  color: #333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.job-card::before{ /* うっすらグラデバー */
  content:"";
  position:absolute; inset: -1px -1px auto -1px;
  height: 5px;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(90deg, #007bff, #1a75ff, #33a1ff);
  opacity: .15;
  transition: opacity .25s ease;
}
.job-card:hover::before{ opacity:.45; }

.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; }

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

html, body { overflow-x: hidden; }

/* ===== アニメーションの追加（job-list 内で安定適用） ===== */
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(20px); }
  100%{ opacity: 1; transform: translateY(0); }
}
.job-list .job-card { animation: fadeUp .8s ease-in-out both; }
.job-list .job-card:nth-child(1){ animation-delay: .0s; }
.job-list .job-card:nth-child(2){ animation-delay: .2s; }
.job-list .job-card:nth-child(3){ animation-delay: .4s; }

/* ===== スマホ対応の強化 ===== */
@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 h3 { font-size: 1.1rem; }
  .job-card .lead { font-size: 0.95rem; }
  .entry-button { font-size: 1rem; width: 100%; padding: 0.9em; }
}

/* ===== ここから 見ごたえ強化スタイル ===== */

/* ① セクション導入帯 */
.section-intro{
  position: relative;
  margin: 0 auto 28px;
  max-width: 960px;
  padding: 24px 18px 8px;
  background: linear-gradient(180deg, #f3f7ff 0%, #ffffff 60%);
  border: 1px solid #e6eefc;
  border-radius: 14px;
  box-shadow: 0 6px 28px rgba(0, 40, 140, .06);
}
.section-intro::before{
  content:"";
  position:absolute; inset:-1px;
  border-radius:14px;
  background: linear-gradient(135deg, rgba(0,123,255,.18), rgba(51,153,255,.18), rgba(0,123,255,.0));
  pointer-events:none;
}
.intro-kicker{
  display:inline-block;
  font-size:.8rem;
  letter-spacing:.14em;
  font-weight:700;
  color:#0060df;
  background:#eaf3ff;
  border:1px solid #cfe1ff;
  padding:6px 10px;
  border-radius:999px;
  margin-bottom:12px;
}
.intro-headline{
  margin:0 0 8px;
  font-size: clamp(20px, 2.2vw, 28px);
  color:#01234d;
  font-weight:800;
  line-height:1.4;
}
.intro-lead{
  margin:0;
  color:#314b72;
  font-size:1rem;
}

/* ② 横スクロールのチップ（見ごたえ＆可読性） */
.perks-reel{
  --g: 10px;
  margin: 18px auto 16px;
  max-width: 960px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: var(--g);
  overflow-x: auto;
  padding: 6px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.perks-reel .chip{
  scroll-snap-align: start;
  white-space: nowrap;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f6faff, #eef6ff);
  border: 1px solid #d7e6ff;
  color:#063a7a;
  font-weight:700;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
  transform: translateY(6px);
  opacity: .0;
  transition: transform .5s ease, opacity .5s ease, box-shadow .25s ease;
}
.perks-reel .chip:hover{
  box-shadow: 0 6px 18px rgba(30, 96, 200, .18);
}

/* ③ セクション区切り（視覚リズム） */
.section-divider{
  margin: 24px auto 28px;
  width: min(960px, 92%);
  border: 0;
  height: 1px;
  position: relative;
  background: linear-gradient(90deg, rgba(0,0,0,0), #cfe1ff, rgba(0,0,0,0));
}

/* ⑤ タイムライン（応募フロー） */
.apply-flow{
  max-width: 960px;
  margin: 30px auto 18px;
  padding: 10px 8px 0;
}
.flow-title{
  margin: 0 0 12px;
  font-size: 1.2rem;
  color: #003366;
  text-align: center;
  font-weight: 800;
}
.timeline{
  list-style: none;
  margin: 0;
  padding: 0 0 0 10px;
  border-left: 3px solid #cfe1ff;
  counter-reset: step;
}
.timeline-item{
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
  position: relative;
  margin: 0 0 18px;
  opacity: 0;
  transform: translateY(12px);
  transition: transform .45s ease, opacity .45s ease;
}
.timeline-item::before{
  content: "";
  position: absolute;
  left: -13px;
  top: 10px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #1a75ff;
  box-shadow: 0 0 0 6px rgba(51,153,255,.18);
}
.timeline-item .num{
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(180deg, #007bff, #3399ff);
  color: #fff; font-weight: 800;
  box-shadow: 0 6px 18px rgba(0, 40, 140, .22);
}
.timeline-item .body .t-head{
  font-weight: 800; color:#022a5a; margin-bottom: 2px;
}
.timeline-item .body .t-desc{
  color:#385a86; font-size:.95rem; line-height: 1.6;
}

/* ===== スクロール時のリビール（共通） ===== */
[data-reveal].in .chip{ opacity: 1; transform: translateY(0); }
.timeline.in .timeline-item{ opacity: 1; transform: translateY(0); }
/* === 行間を少し詰める === */
.intro-lead {
  line-height: 1.5; /* デフォルト1.8を縮小 */
}

.perks-reel .chip {
  line-height: 1.4; /* 短めに */
  padding-top: 8px;
  padding-bottom: 8px; /* 上下の余白も調整 */
}

.job-card .lead {
  line-height: 1.4; /* 未経験歓迎カード内のリード文を詰める */
}

/* === JOIN US ボックス幅を統一 === */
.section-intro {
  max-width: 800px; /* 全部のJOIN US帯を同じ幅で統一 */
}

/* === 未経験者向け JOIN US セクションの行間調整 === */
.section-intro .intro-lead {
  line-height: 1.4; /* デフォルトより詰める */
  margin-top: 6px;
}

/* === チップ群（未経験者向けキャッチ）の行間調整 === */
.perks-reel .chip {
  line-height: 1.3;   /* より詰めてコンパクトに */
  padding-top: 6px;   /* 上下余白も少し狭く */
  padding-bottom: 6px;
}

/* 営業職・技術職の分類カード */
.role-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
  margin: 2em auto 3em;
  max-width: 1000px;
}

.role-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  padding: 1.8em;
  color: #333;
  transition: transform .3s ease, box-shadow .3s ease;
}

.role-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}

.role-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #003366;
  margin: 0 0 1em;
  border-left: 6px solid #007bff;
  padding-left: .6em;
}

.role-section {
  margin-bottom: 1.2em;
}

.role-section h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 .4em;
  color: #0056b3;
}

.role-section p {
  margin: 0;
  line-height: 1.5;
  font-size: .95rem;
  color: #333;
}

