/* ==========================================================================
   ジンジノート「ゼロからの採用戦略マニュアル」まとめページ
   Production stylesheet (self-contained, vanilla). See HANDOFF.md for spec.
   In WordPress this file is enqueued by the page template.
   ========================================================================== */

:root {
  --page-bg: #f7f7f7;
  --text: #2c2f34;
  --text-sub: #6b7075;
  --line: #e5e5e5;
  --btn-disabled: #d0d0d0;
  --ph: #efefef;            /* image placeholder */
  --mint: #b7e2d8;
  --blue: #3e73b5;
  --dark: #2c2f34;
  --maxw: 1080px;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page-bg);
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text); }
a:hover { color: var(--blue); }

.rn-spacer { flex: 1; }

/* --------------------------------------------------------------------------
   1. Sticky nav (in-page TOC)
   -------------------------------------------------------------------------- */
.rn-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  /* 白い背景をヒーローと同じく画面幅いっぱいに（中身は max-width で中央寄せのまま）。 */
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
/* テーマのコンテンツ枠がナビ上部に付ける余白（#content の padding-top）を消し、
   ナビを最上部に密着させて上の灰色帯をなくす。本CSSは当テンプレートのページ
   でのみ enqueue されるため #content への指定は他ページに影響しない。 */
#tie-wrapper #content { padding-top: 0 !important; }
.rn-nav__bar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px 24px 6px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.rn-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.rn-brand__logo { height: 28px; display: block; }
.rn-brand__sub {
  font-weight: 500;
  color: var(--text-sub);
  font-size: 12px;
}
.rn-progress {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rn-progress__label {
  font-size: 11.5px;
  color: var(--text-sub);
  font-weight: 600;
  white-space: nowrap;
}
.rn-progress__track {
  width: 130px;
  height: 6px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}
.rn-progress__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--mint), var(--blue));
  transition: width .4s ease;
}

.rn-chips {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 4px 24px 10px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.rn-chips::-webkit-scrollbar { display: none; }
.rn-chip {
  flex: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #ffffff;
  transition: all .2s ease;
  white-space: nowrap;
}
.rn-chip__num { opacity: 0.55; margin-right: 5px; }

/* --------------------------------------------------------------------------
   2. Hero
   -------------------------------------------------------------------------- */
.rn-hero {
  background: linear-gradient(180deg, var(--mint), var(--page-bg));
  border-bottom: 1px solid var(--line);
  /* テーマの固定幅コンテナ内でも背景だけを画面幅いっぱいに広げる（フルブリード）。
     中身の .rn-hero__inner は max-width で中央寄せのまま＝文字位置は変わらない。 */
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
/* フルブリードの 100vw がスクロールバー幅ぶんの横スクロールを生まないよう、
   テーマのラッパーで水平クリップする（本CSSは当テンプレートのページでのみ
   enqueue されるため #tie-wrapper への指定は他ページに影響しない）。
   overflow-x:clip は overflow-y:visible を維持し、sticky ナビも壊さない。 */
#tie-wrapper { overflow-x: clip; }
.rn-hero__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 24px 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 36px;
  align-items: center;
}
.rn-hero__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 6px 14px;
  letter-spacing: 0.05em;
}
.rn-hero__title {
  margin: 16px 0 0;
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 900;
  line-height: 1.3;
  color: var(--blue);
  letter-spacing: 0.01em;
}
.rn-hero__lead {
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--text);
  max-width: 480px;
  text-wrap: pretty;
}
.rn-hero__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.rn-btn {
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  border-radius: 12px;
  cursor: pointer;
}
.rn-btn--primary {
  background: var(--dark);
  color: #ffffff;
  padding: 13px 26px;
  transition: background .25s ease;
}
.rn-btn--primary:hover { background: var(--blue); color: #ffffff; }
.rn-btn--ghost {
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--btn-disabled);
  padding: 12px 24px;
  transition: all .25s ease;
}
.rn-btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.rn-hero__hint {
  font-size: 12px;
  color: var(--text-sub);
}
.rn-stats {
  display: flex;
  gap: 36px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.rn-stat__num {
  font-size: 28px;
  font-weight: 900;
  color: var(--text);
}
.rn-stat__num--pct { color: var(--blue); }
.rn-stat__label {
  font-size: 12px;
  color: var(--text-sub);
  font-weight: 600;
}
.rn-hero__media {
  aspect-ratio: 4 / 3;
  width: 100%;
  margin: 0 auto;
}
.rn-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Intro paragraph above the roadmap */
.rn-intro {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 24px 8px;
}
.rn-intro p {
  margin: 0 0 40px;
  font-size: 13.5px;
  color: var(--text-sub);
  line-height: 1.9;
  max-width: 640px;
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   3. Step section (roadmap)  — per-step accent set via .rn-step--N
   -------------------------------------------------------------------------- */
.rn-step {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 0 20px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  scroll-margin-top: 110px;
}
.rn-step--1 { --accent: #35A98C; --accent2: #37989E; }
.rn-step--2 { --accent: #37989E; --accent2: #3C86AC; }
.rn-step--3 { --accent: #3C86AC; --accent2: #3E73B5; }
.rn-step--4 { --accent: #3E73B5; --accent2: #3A62A8; }
.rn-step--5 { --accent: #3A62A8; --accent2: #345194; }
.rn-step--6 { --accent: #345194; --accent2: #2F4180; }
.rn-step--7 { --accent: #2F4180; --accent2: #2c2f34; }
.rn-step--8 { --accent: #2c2f34; --accent2: #2c2f34; }

.rn-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.rn-node {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  flex: none;
  box-shadow: 0 4px 12px rgba(22, 50, 79, 0.08);
  transition: all .3s ease;
}
.rn-rail__track {
  width: 3px;
  flex: 1;
  border-radius: 2px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.rn-rail__fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(var(--accent), var(--accent2));
  border-radius: 2px;
  transition: height .6s ease;
}

.rn-step__main { padding-bottom: 56px; }
.rn-step--8 .rn-step__main { padding-bottom: 24px; }
.rn-step__head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 6px;
}
.rn-step__title {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
}
.rn-pill-step {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border-radius: 999px;
  padding: 4px 10px;
}
.rn-step__prog {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rn-bar {
  width: 90px;
  height: 6px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}
.rn-bar__fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 3px;
  transition: width .4s ease;
}
.rn-step__count {
  font-size: 12px;
  color: var(--text-sub);
  font-weight: 600;
}
.rn-step__desc {
  margin: 8px 0 18px;
  font-size: 13.5px;
  color: var(--text-sub);
}
.rn-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 14px;
}

/* --------------------------------------------------------------------------
   4. Article card
   -------------------------------------------------------------------------- */
.rn-card {
  display: flex;
  gap: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  text-decoration: none;
  align-items: stretch;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, opacity .55s ease;
}
.rn-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(44, 47, 52, 0.12);
  border-color: var(--accent);
}
.rn-thumb {
  width: 104px;
  min-height: 104px;
  flex: none;
  border-radius: 10px;
  overflow: hidden;
  background: var(--ph);
}
.rn-thumb__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.rn-card:hover .rn-thumb__img { transform: scale(1.07); }
.rn-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1;
}
.rn-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.45;
}
.rn-card__excerpt {
  font-size: 12.5px;
  color: var(--text-sub);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rn-card__foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}
.rn-read {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}
.rn-mark {
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--btn-disabled);
  background: transparent;
  color: var(--text-sub);
  cursor: pointer;
  transition: all .2s ease;
}

/* --------------------------------------------------------------------------
   5. GOAL pill
   -------------------------------------------------------------------------- */
.rn-goal-wrap {
  display: flex;
  justify-content: center;
  margin: 16px 0 48px;
}
.rn-goal {
  background: #ffffff;
  border: 2px solid var(--dark);
  color: var(--dark);
  font-weight: 800;
  padding: 9px 22px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.08em;
  transition: all .4s ease;
}

/* Scroll-reveal: JS sets the hidden initial state so no-JS users still see
   the cards (progressive enhancement). See setupReveal() in recruit.js. */

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 820px) {
  .rn-hero__inner { padding: 44px 20px 40px; gap: 28px; }
  .rn-step { padding: 0 20px; }
  .rn-step__title { font-size: 23px; }
}

@media (max-width: 640px) {
  .rn-nav__bar { padding: 10px 16px 6px; gap: 12px; }
  .rn-chips { padding: 4px 16px 10px; }
  .rn-hero__inner { padding: 36px 16px 32px; }
  .rn-hero__lead { font-size: 14px; }
  .rn-stats { gap: 24px; }
  .rn-stat__num { font-size: 24px; }
  .rn-intro { padding: 32px 16px 4px; }

  /* Roadmap: narrower rail, tighter padding so cards fit at 375px */
  .rn-step {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 0 12px;
    padding: 0 16px;
  }
  .rn-node { width: 38px; height: 38px; font-size: 15px; border-width: 2px; }
  .rn-step__title { font-size: 21px; }
  .rn-step__head { gap: 10px; }
  .rn-step__prog { width: 100%; }

  /* Single-column card grid on phones */
  .rn-cards { grid-template-columns: 1fr; }
  .rn-thumb { width: 88px; min-height: 88px; }
}

@media (max-width: 400px) {
  .rn-btn--primary, .rn-btn--ghost { flex: 1; text-align: center; }
}
