/* =============================================================
   採用ページ制作サンプル 共通構造CSS
   各ページは <style> でテーマ変数を上書きして使う
   ============================================================= */
:root {
  --bg: #FFFFFF;
  --bg-alt: #F6F6F4;
  --ink: #1C2530;
  --ink-soft: #4A5563;
  --ink-faint: #8A8B90;
  --line: #E5E2DA;
  --accent: #C4532A;
  --accent-ink: #FFFFFF;
  --accent2: #1C2530;
  --serif: 'Shippori Mincho B1', serif;
  --sans: 'Zen Kaku Gothic New', sans-serif;
  --radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); }

/* ---------- 企業ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: var(--header-bg, var(--bg));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.header-inner {
  max-width: 1160px; margin: 0 auto;
  padding: 0 28px;
  height: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; min-width: 0; }
.gnav { display: flex; align-items: center; gap: 26px; }
.gnav a {
  color: var(--ink); font-size: 13.5px; font-weight: 700;
  letter-spacing: .06em; text-decoration: none;
  padding: 6px 0;
}
.gnav a:hover { color: var(--accent); }
.gnav .nav-entry {
  background: var(--accent); color: var(--accent-ink);
  padding: 12px 24px; border-radius: var(--radius);
  letter-spacing: .1em;
  transition: filter .2s;
}
.gnav .nav-entry:hover { color: var(--accent-ink); filter: brightness(1.12); }

/* ハンバーガー（モバイル） */
.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  background: transparent; border: 0; padding: 0; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5.5px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- セクション共通 ---------- */
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding: 0 28px; }
.sec { padding-top: 88px; padding-bottom: 92px; }
.sec-alt { background: var(--bg-alt); }
.sec-head { margin-bottom: 44px; }
.sec-head .eyebrow {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 14px;
  font-size: 12px; font-weight: 700; letter-spacing: .2em;
  color: var(--accent);
}
.sec-head .eyebrow::before {
  content: ""; width: 22px; height: 2px; background: var(--accent);
}
.sec-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.5;
  letter-spacing: .05em;
}
.sec-head.center { text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }
.sec-head.center .eyebrow::before { display: none; }
.lead {
  margin: 0 0 44px;
  font-size: 15px; line-height: 2.05;
  color: var(--ink-soft);
  max-width: 42em;
}
.sec-head + .lead { margin-top: -18px; }

/* ---------- 数字で見る ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat {
  background: var(--stat-bg, var(--bg));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px 24px;
  text-align: center;
}
.stat .label { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--ink-faint); }
.stat .num {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.1;
  color: var(--stat-ink, var(--accent2));
  white-space: nowrap;
}
.stat .num small { font-size: .42em; font-weight: 700; margin-left: 2px; }
.stat .note { margin: 8px 0 0; font-size: 11.5px; line-height: 1.7; color: var(--ink-faint); }
.stats-note { margin: 14px 0 0; font-size: 11px; color: var(--ink-faint); }
.stats-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- カード3枚 ---------- */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--card-bg, var(--bg));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px 30px;
}
.card .card-no {
  margin: 0 0 12px;
  font-family: var(--serif); font-weight: 800;
  font-size: 26px; line-height: 1;
  color: var(--accent);
}
.card h3 { margin: 0 0 10px; font-size: 18px; font-weight: 700; letter-spacing: .04em; line-height: 1.6; }
.card .tag { display: inline-block; margin: 0 6px 12px 0; font-size: 11px; font-weight: 700; letter-spacing: .08em; padding: 4px 10px; border-radius: 999px; background: var(--bg-alt); color: var(--ink-soft); }
.card p { margin: 0; font-size: 13.5px; line-height: 1.95; color: var(--ink-soft); }
.card .salary { margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--accent2); }

/* ---------- 写真つき職種カード ---------- */
.jobs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.job { background: var(--card-bg, var(--bg)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.job .ph { aspect-ratio: 4 / 3; overflow: hidden; }
.job .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.job .body { padding: 22px 24px 26px; }
.job .card-no { margin: 0 0 8px; font-family: var(--serif); font-weight: 800; font-size: 20px; color: var(--accent); }
.job h3 { margin: 0 0 10px; font-size: 18.5px; font-weight: 700; letter-spacing: .04em; }
.job p { margin: 0; font-size: 13.5px; line-height: 1.95; color: var(--ink-soft); }

/* ---------- 社員の声 ---------- */
.voices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.voice {
  background: var(--card-bg, var(--bg));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 28px;
}
.voice .who { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.voice .face { width: 64px; height: 64px; flex: none; border-radius: 50%; overflow: hidden; }
.voice .face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.voice .who .name { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .06em; }
.voice .who .role { margin: 3px 0 0; font-size: 11.5px; color: var(--ink-faint); }
.voice .quote {
  margin: 0 0 12px;
  font-family: var(--serif); font-weight: 700;
  font-size: 17.5px; line-height: 1.8; letter-spacing: .02em;
}
.voice .txt { margin: 0; font-size: 13.5px; line-height: 2; color: var(--ink-soft); }

/* ---------- 1日の流れ ---------- */
.timeline { border-left: 2px solid var(--line); margin-left: 6px; }
.tl-item { position: relative; padding: 0 0 30px 30px; }
.tl-item:last-child { padding-bottom: 4px; }
.tl-item::before {
  content: ""; position: absolute; left: -7px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--bg);
}
.tl-item .time {
  margin: 0 0 6px;
  font-family: var(--serif); font-weight: 800;
  font-size: 18px; color: var(--accent2); letter-spacing: .04em;
}
.tl-item h3 { margin: 0 0 6px; font-size: 15.5px; font-weight: 700; }
.tl-item p { margin: 0; font-size: 13.5px; line-height: 1.9; color: var(--ink-soft); }

/* ---------- 待遇チェックリスト ---------- */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.benefit {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--card-bg, var(--bg));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 14px; font-weight: 700; line-height: 1.7;
}
.benefit::before {
  content: "✓"; flex: none;
  width: 22px; height: 22px; margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--accent-ink);
  border-radius: 50%; font-size: 12px; font-weight: 900;
}

/* ---------- 募集要項 ---------- */
.req {
  background: var(--card-bg, var(--bg));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px 34px;
}
.req-row {
  display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.req-row:last-child { border-bottom: 0; }
.req-row dt { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--ink-faint); }
.req-row dd { margin: 0; font-size: 14.5px; line-height: 1.9; }
.req-row dd small { display: block; margin-top: 4px; font-size: 12px; color: var(--ink-faint); }

/* ---------- 採用フロー ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: step; }
.step {
  position: relative;
  background: var(--card-bg, var(--bg));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 20px 24px;
  counter-increment: step;
}
.step::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 10px;
  font-family: var(--serif); font-weight: 800;
  font-size: 24px; line-height: 1;
  color: var(--accent);
}
.step h3 { margin: 0 0 8px; font-size: 15.5px; font-weight: 700; }
.step p { margin: 0; font-size: 12.5px; line-height: 1.85; color: var(--ink-soft); }

/* ---------- エントリーCTA ---------- */
.entry-sec {
  background: var(--entry-bg, var(--accent2));
  color: var(--entry-ink, #FFFFFF);
  position: relative; overflow: hidden;
  text-align: center;
}
.entry-sec .sec { position: relative; }
.entry-sec h2 {
  margin: 0 0 18px;
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(27px, 3.4vw, 40px);
  line-height: 1.7; letter-spacing: .08em;
}
.entry-sec .entry-lead { margin: 0 auto 36px; font-size: 14.5px; line-height: 2.05; max-width: 36em; opacity: .88; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  text-decoration: none;
  font-size: 15px; font-weight: 700; letter-spacing: .1em;
  padding: 17px 40px;
  border-radius: var(--radius);
  transition: filter .2s, background .2s, color .2s;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { color: var(--accent-ink); filter: brightness(1.12); }
.btn-ghost {
  background: transparent; color: inherit;
  border: 1.5px solid currentColor;
  padding: 15.5px 34px;
}

/* ---------- フッター ---------- */
.site-footer { background: var(--footer-bg, #14181E); color: #B9BDC4; }
.footer-inner {
  max-width: 1160px; margin: 0 auto;
  padding: 30px 28px;
  display: flex; flex-wrap: wrap; gap: 12px 20px;
  align-items: center; justify-content: space-between;
}
.footer-brand { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.footer-brand .co { font-family: var(--serif); font-weight: 700; font-size: 15px; letter-spacing: .08em; color: #F2F0EA; }
.footer-brand .sub { font-size: 11px; color: #7C818A; }
.footer-note { margin: 0; font-size: 11.5px; color: #7C818A; }
.footer-note a { color: #C79A6B; text-decoration: none; }
.footer-note a:hover { text-decoration: underline; }

/* ---------- モバイル追従CTA ---------- */
.mobile-cta {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 96;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
}
.mobile-cta a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: var(--accent-ink);
  text-decoration: none;
  font-size: 14.5px; font-weight: 700; letter-spacing: .12em;
  min-height: 48px; border-radius: var(--radius);
}

/* ---------- 「知る」3本柱カード ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pillar {
  position: relative;
  display: block;
  background: var(--card-bg, var(--bg));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  text-decoration: none;
  color: inherit;
  transition: transform .25s, box-shadow .25s;
}
.pillar:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(0,0,0,.12); color: inherit; }
.pillar .p-no { margin: 0 0 10px; font-family: var(--serif); font-weight: 800; font-size: 14px; letter-spacing: .16em; color: var(--accent); }
.pillar h3 { margin: 0 0 8px; font-family: var(--serif); font-weight: 700; font-size: 20px; letter-spacing: .06em; }
.pillar p { margin: 0; font-size: 12.5px; line-height: 1.8; color: var(--ink-faint); }
.pillar .p-arrow {
  position: absolute; right: 20px; bottom: 18px;
  width: 34px; height: 34px; border: 1.5px solid var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 14px;
  transition: background .25s, color .25s;
}
.pillar:hover .p-arrow { background: var(--accent); color: var(--accent-ink); }

/* ---------- ループ帯（マーキー） ---------- */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  user-select: none;
}
.marquee .track {
  display: inline-block;
  animation: marquee-scroll 36s linear infinite;
}
.marquee span {
  display: inline-block;
  margin-right: 48px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(20px, 2.6vw, 30px);
  letter-spacing: .18em;
  color: var(--marquee-ink, var(--ink-faint));
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee .track { animation: none; }
}

/* ---------- PC固定エントリータブ（右端） ---------- */
.side-entry {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%);
  z-index: 94;
  writing-mode: vertical-rl;
  display: flex; align-items: center; gap: 10px;
  background: var(--accent); color: var(--accent-ink);
  text-decoration: none;
  font-size: 13.5px; font-weight: 700; letter-spacing: .28em;
  padding: 26px 13px;
  border-radius: var(--radius) 0 0 var(--radius);
  box-shadow: -4px 4px 18px rgba(0,0,0,.18);
  transition: filter .2s, padding .2s;
}
.side-entry:hover { color: var(--accent-ink); filter: brightness(1.12); padding-right: 18px; }

/* ---------- サンプル用FAQ ---------- */
.s-faq { border-top: 1px solid var(--line); }
.s-faq-item { border-bottom: 1px solid var(--line); padding: 22px 6px; }
.s-faq-item .q { display: flex; gap: 14px; align-items: baseline; margin: 0; }
.s-faq-item .q .qmark { font-family: var(--serif); font-weight: 800; font-size: 18px; color: var(--accent); }
.s-faq-item .q h3 { margin: 0; font-size: 15.5px; font-weight: 700; letter-spacing: .02em; line-height: 1.7; }
.s-faq-item .a { margin: 10px 0 0 32px; font-size: 13.5px; line-height: 1.95; color: var(--ink-soft); }

/* ---------- モバイル専用改行 ---------- */
.br-sp { display: none; }
@media (max-width: 768px) {
  .br-sp { display: inline; }
}

/* ---------- リビール演出 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =============================================================
   レスポンシブ
   ============================================================= */
@media (max-width: 980px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .cards3, .jobs { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .wrap, .wrap-narrow { padding-left: 20px; padding-right: 20px; }
  .sec { padding-top: 56px; padding-bottom: 60px; }
  .sec-head { margin-bottom: 30px; }
  .sec-head h2 { font-size: clamp(23px, 6.4vw, 27px); }
  .lead { margin-bottom: 32px; font-size: 14px; line-height: 1.95; }
  .sec-head + .lead { margin-top: -12px; }

  .header-inner { height: 62px; padding: 0 16px; }
  .gnav {
    position: absolute; left: 0; right: 0; top: 100%;
    display: none;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--header-bg, var(--bg));
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 18px;
    box-shadow: 0 18px 30px rgba(0,0,0,.12);
  }
  .gnav.open { display: flex; }
  .gnav a { padding: 14px 4px; font-size: 15px; border-bottom: 1px solid var(--line); }
  .gnav a:last-child { border-bottom: 0; }
  .gnav .nav-entry { margin-top: 12px; text-align: center; justify-content: center; display: flex; padding: 14px 20px; }
  .nav-toggle { display: flex; }

  .cards3, .jobs, .voices { grid-template-columns: 1fr; gap: 16px; }
  .card, .voice { padding: 24px 22px 26px; }
  .voice .quote { font-size: 16px; }
  .job .ph { aspect-ratio: 16 / 9; }
  .benefits { grid-template-columns: 1fr; gap: 10px; }
  .benefit { padding: 14px 16px; font-size: 13.5px; }

  .stat { padding: 18px 12px 16px; }
  .stat .num { font-size: 25px; }
  .stats-3 { grid-template-columns: 1fr; }

  .req { padding: 4px 20px; }
  .req-row { grid-template-columns: 1fr; gap: 6px; padding: 16px 0; }
  .req-row dt { font-size: 12px; }
  .req-row dd { font-size: 13.5px; line-height: 1.85; }

  .steps { grid-template-columns: 1fr; gap: 10px; }
  .step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 12px; padding: 18px 18px; }
  .step::before { grid-row: 1 / span 2; margin: 2px 0 0; font-size: 22px; }
  .step h3 { grid-column: 2; }
  .step p { grid-column: 2; }

  .tl-item { padding: 0 0 24px 24px; }

  .btn { width: min(100%, 340px); }
  .cta-row { flex-direction: column; align-items: center; }

  .mobile-cta { display: block; }
  body { padding-bottom: 74px; }

}
