/* Candidate Growth — スマートフォン最優先のスタイル
 *
 * 方針:
 *   * 求職者の大半はスマホ。デスクトップは幅の上限を付けるだけの扱いにする
 *   * タップ領域は最小 48px。片手・親指で完了できること
 *   * フォントはシステムフォント。Webフォントを読み込まない（表示速度を優先）
 *   * 色は CSS 変数に集約。業界を増やすときにアクセント色だけ差し替えられる
 */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --bg-sunken: #eef1f4;
  --fg: #16202b;
  --fg-muted: #5a6673;
  --fg-faint: #8b96a3;
  --border: #dfe4ea;

  --accent: #0b5fd0;
  --accent-dark: #094aa3;
  --accent-soft: #e8f0fc;
  --accent-fg: #ffffff;

  --warn-soft: #fff6e6;
  --warn-border: #f0c987;

  --radius: 12px;
  --radius-lg: 18px;
  --maxw: 720px;
  --tap: 48px;

  --shadow-sm: 0 1px 2px rgba(16, 32, 48, .06), 0 1px 3px rgba(16, 32, 48, .08);
  --shadow-md: 0 4px 12px rgba(16, 32, 48, .08), 0 2px 4px rgba(16, 32, 48, .06);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
               "Noto Sans JP", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  /* 日本語は行間を広めに取ると読みやすい。スマホでは特に効く */
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- ヘッダー ----------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.6) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  gap: 12px;
}
.site-logo {
  font-weight: 700;
  font-size: 16px;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: .02em;
}
.site-logo span { color: var(--accent); }
.header-cta {
  font-size: 13px;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-fg);
  text-decoration: none;
  white-space: nowrap;
}

/* --- ヒーロー ----------------------------------------------------------- */
.hero {
  padding: 36px 0 32px;
  background:
    radial-gradient(900px 380px at 50% -10%, var(--accent-soft), transparent 70%),
    var(--bg);
}
.hero h1 {
  font-size: 30px;
  line-height: 1.42;
  margin: 0 0 14px;
  letter-spacing: -.01em;
  font-weight: 800;
}
.hero h1 .em {
  color: var(--accent);
}
.hero .sub {
  font-size: 16px;
  color: var(--fg-muted);
  margin: 0 0 22px;
}
.hero .note {
  font-size: 13px;
  color: var(--fg-faint);
  margin-top: 12px;
  text-align: center;
}

/* --- ボタン ------------------------------------------------------------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  border: 1px solid transparent;
  cursor: pointer;
  width: 100%;
  transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: var(--accent-fg);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary {
  background: var(--bg);
  color: var(--accent);
  border-color: var(--border);
}
.btn-ghost {
  background: transparent;
  color: var(--fg-muted);
  border-color: var(--border);
  min-height: var(--tap);
  font-size: 15px;
}
.btn + .btn { margin-top: 10px; }
.btn-arrow::after { content: "→"; font-weight: 400; }

/* --- セクション --------------------------------------------------------- */
section { padding: 34px 0; }
section.soft { background: var(--bg-soft); }
h2 {
  font-size: 21px;
  line-height: 1.5;
  margin: 0 0 6px;
  font-weight: 800;
  letter-spacing: -.005em;
}
.section-lead {
  color: var(--fg-muted);
  font-size: 15px;
  margin: 0 0 18px;
}

/* --- 信頼要素 ----------------------------------------------------------- */
.trust {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}
.trust-item {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 15px;
}
.trust-item .mark {
  flex: none;
  width: 20px; height: 20px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.trust-item .t { font-weight: 700; font-size: 15px; }
.trust-item .d { font-size: 13px; color: var(--fg-muted); line-height: 1.65; }

/* --- 利用フロー --------------------------------------------------------- */
.flow { counter-reset: step; display: grid; gap: 0; }
.flow-item {
  position: relative;
  padding: 0 0 24px 46px;
  counter-increment: step;
}
.flow-item::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-fg);
  font-size: 14px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
/* 縦線でステップをつなぐ。最後の項目には引かない */
.flow-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 14px; top: 34px; bottom: 8px;
  width: 2px;
  background: var(--border);
}
.flow-item h3 { margin: 3px 0 3px; font-size: 16px; font-weight: 700; }
.flow-item p { margin: 0; font-size: 14px; color: var(--fg-muted); line-height: 1.7; }

/* --- 職種チップ --------------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
  font-size: 14px;
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--fg);
}
.chip.lane-a { background: var(--accent-soft); border-color: #c6dcf8; color: var(--accent-dark); }

.lane-block { margin-bottom: 22px; }
.lane-block h3 {
  font-size: 16px;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lane-block .badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
}
.lane-block .badge.muted { background: var(--bg-sunken); color: var(--fg-muted); }
.lane-block > p { margin: 0; font-size: 14px; color: var(--fg-muted); }

/* --- 注記（誠実性の担保） ----------------------------------------------- */
.notice {
  background: var(--warn-soft);
  border: 1px solid var(--warn-border);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.75;
  margin-top: 14px;
}
.notice strong { display: block; margin-bottom: 3px; }

/* --- FAQ ---------------------------------------------------------------- */
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  margin-bottom: 9px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 15px 44px 15px 16px;
  font-weight: 700;
  font-size: 15px;
  list-style: none;
  position: relative;
  min-height: var(--tap);
  display: flex;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  font-size: 20px;
  font-weight: 400;
  color: var(--fg-faint);
}
.faq details[open] summary::after { content: "−"; }
.faq .a {
  padding: 0 16px 16px;
  font-size: 14.5px;
  color: var(--fg-muted);
  line-height: 1.8;
}

/* --- 追従CTA（スマホ） -------------------------------------------------- */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  transform: translateY(110%);
  transition: transform .22s ease;
}
.sticky-cta.show { transform: translateY(0); }
.sticky-cta .btn { min-height: 52px; font-size: 16px; }
body.has-sticky { padding-bottom: 84px; }

/* --- フッター ----------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 26px 0 40px;
  font-size: 13px;
  color: var(--fg-muted);
  background: var(--bg-soft);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 12px; }
.site-footer a { color: var(--fg-muted); }

/* --- 面接（interview） -------------------------------------------------- */
.iv-progress {
  height: 4px;
  background: var(--bg-sunken);
  position: sticky; top: 56px; z-index: 40;
}
.iv-progress > span {
  display: block; height: 100%;
  background: var(--accent);
  width: 0;
  transition: width .25s ease;
}
.iv-step { padding: 26px 0 130px; }
.iv-count { font-size: 13px; color: var(--fg-faint); margin-bottom: 8px; }
.iv-q { font-size: 22px; font-weight: 800; line-height: 1.5; margin: 0 0 6px; }
.iv-help { font-size: 14px; color: var(--fg-muted); margin: 0 0 18px; }

.opt {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 9px;
  font-size: 16px;
  font-family: inherit;
  color: var(--fg);
  cursor: pointer;
  min-height: var(--tap);
  transition: border-color .12s ease, background .12s ease;
}
.opt:hover { border-color: #b9c4d0; }
.opt.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.opt .l { font-weight: 700; display: block; }
.opt .d { font-size: 13px; color: var(--fg-muted); display: block; margin-top: 2px; line-height: 1.6; }
.opt.selected .d { color: var(--accent-dark); }

.iv-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  z-index: 60;
}
.iv-nav .wrap { padding: 0; display: flex; gap: 10px; }
.iv-nav .btn { margin: 0; }
.iv-back {
  flex: none; width: 84px;
  background: transparent; border-color: var(--border); color: var(--fg-muted);
  font-size: 15px;
}

/* --- 求人カード --------------------------------------------------------- */
.job {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}
.job h3 { font-size: 16px; margin: 0 0 8px; line-height: 1.55; font-weight: 700; }
.job .meta { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-bottom: 10px; }
.job .tag {
  font-size: 12px; padding: 3px 9px; border-radius: 6px;
  background: var(--bg-sunken); color: var(--fg-muted);
}
.job .tag.salary { background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; }
.job .why {
  font-size: 13px; color: var(--fg-muted);
  border-top: 1px dashed var(--border);
  padding-top: 10px; margin-top: 4px; line-height: 1.7;
}
.job .why b { color: var(--fg); font-weight: 700; }

/* --- フォーム ----------------------------------------------------------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.field .req { color: #c02b2b; font-size: 12px; margin-left: 5px; }
.field input {
  width: 100%;
  min-height: var(--tap);
  padding: 12px 14px;
  font-size: 16px; /* 16px 未満だと iOS がズームする */
  font-family: inherit;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--fg);
}
.field input:focus { outline: none; border-color: var(--accent); }
.field .hint { font-size: 12.5px; color: var(--fg-faint); margin-top: 5px; }
.consent {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14px; margin: 18px 0;
}
.consent input { width: 22px; height: 22px; flex: none; margin-top: 2px; }

/* --- 記事 --------------------------------------------------------------- */
.article-head { padding: 28px 0 20px; }
.article-head .kicker { font-size: 13px; color: var(--accent); font-weight: 700; margin-bottom: 8px; }
.article-head h1 { font-size: 26px; line-height: 1.48; margin: 0 0 12px; font-weight: 800; letter-spacing: -.01em; }
.article-head .byline { font-size: 13px; color: var(--fg-faint); }

.article-body { font-size: 16.5px; line-height: 1.95; }
.article-body h2 {
  font-size: 20px;
  margin: 38px 0 12px;
  padding-top: 20px;
  border-top: 2px solid var(--bg-sunken);
  line-height: 1.5;
}
.article-body h3 { font-size: 17px; margin: 26px 0 8px; font-weight: 700; }
.article-body p { margin: 0 0 18px; }
.article-body ul, .article-body ol { margin: 0 0 18px; padding-left: 1.4em; }
.article-body li { margin-bottom: 7px; }
.article-body strong { font-weight: 700; }

.article-body .data {
  background: var(--bg-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 16px;
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.8;
}
.article-body .data .src { display: block; font-size: 12.5px; color: var(--fg-faint); margin-top: 7px; }
.article-body .data .src a { color: var(--fg-muted); }
.article-body .caveat {
  font-size: 13.5px;
  color: var(--fg-muted);
  background: var(--warn-soft);
  border: 1px solid var(--warn-border);
  border-radius: var(--radius);
  padding: 11px 14px;
  margin: 0 0 20px;
  line-height: 1.75;
}

.table-scroll { overflow-x: auto; margin: 0 0 20px; -webkit-overflow-scrolling: touch; }
.article-body table { border-collapse: collapse; width: 100%; font-size: 14.5px; min-width: 460px; }
.article-body th, .article-body td {
  border: 1px solid var(--border);
  padding: 9px 11px;
  text-align: left;
  line-height: 1.65;
}
.article-body th { background: var(--bg-soft); font-weight: 700; }

.inline-cta {
  background: var(--accent-soft);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin: 30px 0;
}
.inline-cta p { margin: 0 0 14px; font-size: 15px; font-weight: 700; line-height: 1.7; }

.sources { font-size: 13.5px; color: var(--fg-muted); }
.sources ol { padding-left: 1.3em; }
.sources li { margin-bottom: 7px; }

.related { display: grid; gap: 9px; }
.related a {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 15px;
  text-decoration: none;
  color: var(--fg);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  background: var(--bg);
}

/* --- 記事一覧 ----------------------------------------------------------- */
.card-list { display: grid; gap: 12px; }
.card {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-decoration: none;
  color: var(--fg);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}
.card .kicker { font-size: 12px; color: var(--accent); font-weight: 700; margin-bottom: 5px; }
.card h3 { margin: 0 0 6px; font-size: 16.5px; line-height: 1.55; font-weight: 700; }
.card p { margin: 0; font-size: 13.5px; color: var(--fg-muted); line-height: 1.7; }

/* --- 幅の広い画面 ------------------------------------------------------- */
@media (min-width: 700px) {
  .hero { padding: 60px 0 48px; }
  .hero h1 { font-size: 40px; }
  .hero .sub { font-size: 17px; }
  section { padding: 48px 0; }
  h2 { font-size: 25px; }
  .btn { width: auto; min-width: 300px; }
  .hero .btn, .inline-cta .btn { width: 100%; max-width: 420px; }
  .btn + .btn { margin-top: 0; }
  .hero .btn + .btn { margin-top: 10px; }
  .trust { grid-template-columns: repeat(3, 1fr); }
  .card-list { grid-template-columns: repeat(2, 1fr); }
  .article-head h1 { font-size: 33px; }
  /* 追従CTAはスマホ専用。広い画面ではヒーローのCTAが常に見えるため出さない */
  .sticky-cta { display: none; }
  body.has-sticky { padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
