/* ============================================================
   recruit.css — 訪問介護スタッフ 採用LP（架空）
   設計: BEM記法 / CSS カスタムプロパティ
   方針: モバイルファースト。ゴールはLINE友だち追加の1点に絞る
   ============================================================ */

/* ────────────────────────────────────────────────
   1. デザイントークン
──────────────────────────────────────────────── */
:root {
  /* --- カラー --- */
  --c-primary:      #2E6F55;   /* 深緑：安心・誠実 */
  --c-primary-dark: #215240;
  --c-primary-tint: #EAF3EF;
  --c-accent:       #E8833A;   /* オレンジ：温かさ・行動 */
  --c-accent-dark:  #C96A26;
  --c-line:         #06C755;   /* 応募ボタン（メッセージアプリ想定） */
  --c-line-dark:    #05A647;
  --c-white:        #FFFFFF;
  --c-bg:           #FBF8F4;   /* 生成り：やわらかさ */
  --c-bg-alt:       #F2F5F3;
  --c-text:         #23312C;
  --c-muted:        #61736C;
  --c-border:       #DCE5E0;

  /* --- スペーシング --- */
  --s-xs: 4px;  --s-sm: 8px;  --s-md: 16px;
  --s-lg: 24px; --s-xl: 40px; --s-2xl: 64px; --s-3xl: 88px;

  /* --- 角丸 --- */
  --r-sm: 6px; --r-md: 12px; --r-lg: 20px; --r-full: 9999px;

  /* --- 影 --- */
  --sh-sm: 0 1px 3px rgba(35,49,44,.08);
  --sh-md: 0 4px 14px rgba(35,49,44,.10);
  --sh-lg: 0 10px 32px rgba(35,49,44,.14);

  /* --- 下部固定CTAの高さ（本文の余白計算に使う） --- */
  --cta-bar-h: 74px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', system-ui, sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  /* スマホでは下部に固定CTAが出るぶんの余白を確保する */
  padding-bottom: var(--cta-bar-h);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ────────────────────────────────────────────────
   2. 共通パーツ
──────────────────────────────────────────────── */
.container { width: 100%; max-width: 760px; margin-inline: auto; padding-inline: 20px; }

.section { padding-block: var(--s-2xl); }
/* 追従ヘッダーの下に見出しが隠れないようにする（#spec / #entry へのジャンプ用） */
.section[id], main[id] { scroll-margin-top: 64px; }
.section--alt  { background: var(--c-bg-alt); }
.section--tint { background: var(--c-primary-tint); }

.heading { text-align: center; margin-bottom: var(--s-xl); }
.heading__label {
  display: inline-block;
  font-size: .75rem; font-weight: 700; letter-spacing: .18em;
  color: var(--c-primary); background: var(--c-white);
  border: 1px solid var(--c-primary);
  border-radius: var(--r-full);
  padding: 4px 16px; margin-bottom: var(--s-md);
}
.heading__title {
  font-size: 1.5rem; font-weight: 700; line-height: 1.5;
  letter-spacing: .01em;
}
.heading__title em { font-style: normal; color: var(--c-primary); }
.heading__sub { margin-top: var(--s-md); color: var(--c-muted); font-size: .94rem; }

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  font-weight: 700; font-size: 1.02rem; line-height: 1.4;
  padding: 16px 28px;
  border: 2px solid transparent;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--line {
  background: var(--c-line); color: var(--c-white);
  box-shadow: 0 4px 0 var(--c-line-dark);
}
.btn--line:hover { background: #0ad45e; }
.btn--line:active { box-shadow: 0 1px 0 var(--c-line-dark); }
.btn--ghost {
  background: transparent; color: var(--c-primary);
  border-color: var(--c-primary);
}
.btn--ghost:hover { background: var(--c-primary); color: var(--c-white); }
.btn--full { width: 100%; }
.btn--lg { padding: 20px 28px; font-size: 1.1rem; }
.btn__icon { width: 22px; height: 22px; flex-shrink: 0; }

/* 注記 */
.note { font-size: .8rem; color: var(--c-muted); line-height: 1.7; }
.note--center { text-align: center; }

/* サンプル表記バッジ（数値・体験談につける） */
.fake-tag {
  display: inline-block;
  font-size: .68rem; font-weight: 700; letter-spacing: .06em;
  color: #8A5A1B; background: #FDF0DC;
  border-radius: var(--r-sm);
  padding: 1px 7px; margin-left: 6px;
  vertical-align: middle;
}

/* ────────────────────────────────────────────────
   3. 免責バー（最上部・全ページ共通の体裁）
──────────────────────────────────────────────── */
.disclaimer {
  background: #1f2937; color: #fff;
  padding: 10px 16px;
  font-size: 13px; line-height: 1.6;
  text-align: center;
  font-family: system-ui, sans-serif;
}
.disclaimer strong { color: #FFD28A; }

/* ────────────────────────────────────────────────
   4. ヘッダー
──────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-border);
}
.header__inner {
  max-width: 760px; margin-inline: auto;
  padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-md);
}
.header__logo { display: flex; align-items: center; gap: 9px; }
.header__mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--c-primary); color: var(--c-white);
  display: grid; place-items: center;
  font-weight: 800; font-size: .95rem;
}
.header__name { font-weight: 700; font-size: 1rem; line-height: 1.3; }
.header__name span { display: block; font-size: .68rem; font-weight: 500; color: var(--c-muted); }
.header__cta { padding: 9px 18px; font-size: .86rem; }

/* ────────────────────────────────────────────────
   5. ヒーロー
──────────────────────────────────────────────── */
.hero { position: relative; color: var(--c-white); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(33,82,64,.86) 0%, rgba(33,82,64,.74) 55%, rgba(33,82,64,.92) 100%);
}
.hero__inner {
  position: relative;
  max-width: 760px; margin-inline: auto;
  padding: var(--s-2xl) 20px var(--s-xl);
}
.hero__badge {
  display: inline-block;
  background: var(--c-accent); color: var(--c-white);
  font-size: .78rem; font-weight: 700; letter-spacing: .08em;
  border-radius: var(--r-full);
  padding: 5px 16px; margin-bottom: var(--s-md);
}
.hero__title {
  font-size: 1.85rem; font-weight: 700; line-height: 1.45;
  letter-spacing: .01em;
  text-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.hero__title mark {
  background: linear-gradient(transparent 62%, rgba(232,131,58,.85) 62%);
  color: inherit; padding-inline: 2px;
}
.hero__lead { margin-top: var(--s-md); font-size: 1rem; line-height: 1.9; opacity: .95; }

.hero__facts {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--s-sm);
  margin-top: var(--s-xl);
}
.fact {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--r-md);
  padding: 14px 8px; text-align: center;
}
.fact__num {
  font-size: 1.5rem; font-weight: 800; line-height: 1.1;
  display: block;
}
.fact__num small { font-size: .82rem; font-weight: 700; margin-left: 1px; }
.fact__label { font-size: .74rem; opacity: .9; line-height: 1.5; display: block; margin-top: 4px; }

.hero__actions { margin-top: var(--s-xl); display: grid; gap: var(--s-md); }
.hero__note { text-align: center; font-size: .8rem; opacity: .85; }

/* ────────────────────────────────────────────────
   6. 共感（こんな方へ）
──────────────────────────────────────────────── */
.worries { display: grid; gap: var(--s-md); }
.worry {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-accent);
  border-radius: var(--r-md);
  padding: var(--s-md) var(--s-lg);
  box-shadow: var(--sh-sm);
  font-weight: 500;
}
.worries__answer {
  margin-top: var(--s-xl);
  text-align: center;
  font-size: 1.12rem; font-weight: 700; line-height: 1.7;
  color: var(--c-primary);
}

/* ────────────────────────────────────────────────
   7. 選ばれる理由
──────────────────────────────────────────────── */
.reasons { display: grid; gap: var(--s-lg); }
.reason {
  background: var(--c-white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-md);
}
.reason__img { aspect-ratio: 16 / 9; }
.reason__img img { width: 100%; height: 100%; object-fit: cover; }
.reason__body { padding: var(--s-lg); }
.reason__no {
  display: inline-block;
  font-size: .72rem; font-weight: 800; letter-spacing: .1em;
  color: var(--c-white); background: var(--c-primary);
  border-radius: var(--r-sm);
  padding: 3px 10px; margin-bottom: var(--s-sm);
}
.reason__title { font-size: 1.16rem; font-weight: 700; line-height: 1.5; margin-bottom: var(--s-sm); }
.reason__text { font-size: .94rem; color: var(--c-muted); }

/* ────────────────────────────────────────────────
   8. 1日の流れ
──────────────────────────────────────────────── */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px;
  width: 2px; background: var(--c-border);
}
.tl-item { position: relative; padding-bottom: var(--s-lg); }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ''; position: absolute; left: -28px; top: 9px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--c-white);
  border: 3px solid var(--c-primary);
}
.tl-item__time { font-weight: 800; color: var(--c-primary); font-size: .92rem; }
.tl-item__title { font-weight: 700; margin-top: 2px; }
.tl-item__text { font-size: .9rem; color: var(--c-muted); }

/* ────────────────────────────────────────────────
   9. スタッフの声
──────────────────────────────────────────────── */
.voices { display: grid; gap: var(--s-lg); }
.voice {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s-lg);
  box-shadow: var(--sh-sm);
}
.voice__head { display: flex; align-items: center; gap: var(--s-md); margin-bottom: var(--s-md); }
.voice__avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.voice__who { font-weight: 700; line-height: 1.4; }
.voice__who span { display: block; font-size: .8rem; font-weight: 500; color: var(--c-muted); }
.voice__text { font-size: .94rem; }
.voice__text::before { content: '「'; }
.voice__text::after  { content: '」'; }

/* ────────────────────────────────────────────────
   10. 募集要項
──────────────────────────────────────────────── */
.spec {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.spec__row { display: grid; grid-template-columns: 1fr; border-bottom: 1px solid var(--c-border); }
.spec__row:last-child { border-bottom: 0; }
.spec__key {
  background: var(--c-primary-tint);
  font-weight: 700; font-size: .88rem;
  padding: 10px var(--s-lg);
  color: var(--c-primary-dark);
}
.spec__val { padding: var(--s-md) var(--s-lg); font-size: .94rem; }
.spec__val ul li { padding-left: 1.1em; position: relative; }
.spec__val ul li::before {
  content: '・'; position: absolute; left: 0; color: var(--c-primary);
}

/* ────────────────────────────────────────────────
   11. 応募の流れ
──────────────────────────────────────────────── */
.steps { display: grid; gap: var(--s-md); counter-reset: step; }
.step {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--s-md) var(--s-lg) var(--s-md) 60px;
  position: relative;
  box-shadow: var(--sh-sm);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--c-primary); color: var(--c-white);
  display: grid; place-items: center;
  font-weight: 800; font-size: .92rem;
}
.step__title { font-weight: 700; line-height: 1.5; }
.step__text { font-size: .88rem; color: var(--c-muted); }
.step--accent::before { background: var(--c-accent); }

/* ────────────────────────────────────────────────
   12. FAQ（アコーディオン）
──────────────────────────────────────────────── */
.faq { display: grid; gap: var(--s-sm); }
.faq__item {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.faq__q {
  width: 100%;
  display: flex; align-items: flex-start; gap: 10px;
  padding: var(--s-md) var(--s-lg);
  background: none; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; text-align: left;
  color: var(--c-text);
}
.faq__q::before { content: 'Q'; color: var(--c-primary); font-weight: 800; flex-shrink: 0; }
.faq__mark {
  margin-left: auto; flex-shrink: 0;
  width: 20px; height: 20px; position: relative;
  transition: transform .25s ease;
}
.faq__mark::before, .faq__mark::after {
  content: ''; position: absolute; inset: 0; margin: auto;
  background: var(--c-primary);
}
.faq__mark::before { width: 14px; height: 2px; }
.faq__mark::after  { width: 2px; height: 14px; transition: opacity .25s ease; }
.faq__item[open] .faq__mark { transform: rotate(180deg); }
.faq__item[open] .faq__mark::after { opacity: 0; }
.faq__a {
  padding: 0 var(--s-lg) var(--s-md) calc(var(--s-lg) + 20px);
  font-size: .92rem; color: var(--c-muted);
}
/* details のデフォルトマーカーを消す */
.faq__q::-webkit-details-marker { display: none; }
.faq__item summary { list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }

/* ────────────────────────────────────────────────
   13. 最終CTA
──────────────────────────────────────────────── */
.final {
  background: linear-gradient(160deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
  color: var(--c-white);
  text-align: center;
}
.final .heading__title { color: var(--c-white); }
.final .heading__label { background: transparent; color: var(--c-white); border-color: rgba(255,255,255,.5); }
.final__card {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--r-lg);
  padding: var(--s-xl) var(--s-lg);
}
.final__lead { font-size: 1.02rem; margin-bottom: var(--s-lg); line-height: 1.9; }
.final__merits {
  display: grid; gap: var(--s-sm);
  text-align: left; margin: 0 auto var(--s-lg); max-width: 420px;
}
.final__merits li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: .94rem;
}
.final__merits li::before {
  content: '✓'; color: #8FE3B4; font-weight: 800; flex-shrink: 0;
}
.final__note { margin-top: var(--s-md); font-size: .8rem; opacity: .85; }

/* ────────────────────────────────────────────────
   14. フッター
──────────────────────────────────────────────── */
.footer {
  background: #1C2B25; color: rgba(255,255,255,.75);
  padding-block: var(--s-xl);
  font-size: .86rem;
}
.footer__name { color: var(--c-white); font-weight: 700; font-size: 1rem; margin-bottom: var(--s-sm); }
.footer__meta { line-height: 1.9; }
.footer__back {
  display: inline-block; margin-top: var(--s-lg);
  color: #8FE3B4; font-weight: 700; border-bottom: 1px solid currentColor;
}
.footer__fine { margin-top: var(--s-lg); font-size: .76rem; opacity: .6; line-height: 1.8; }

/* ────────────────────────────────────────────────
   15. 下部固定CTA（スマホ）
──────────────────────────────────────────────── */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--c-border);
  box-shadow: 0 -4px 18px rgba(35,49,44,.1);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
}
.sticky-cta__inner { max-width: 760px; margin-inline: auto; }
.sticky-cta .btn { padding: 14px 20px; }
.sticky-cta__note { text-align: center; font-size: .7rem; color: var(--c-muted); margin-top: 4px; }

/* ────────────────────────────────────────────────
   16. スクロール表示アニメーション

   重要：隠すのは `.js` が付いているときだけ。
   JSが動かない環境で本文が消えないようにするため、
   `.js` は <head> のインラインスクリプトで付与する。
──────────────────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}

/* ────────────────────────────────────────────────
   17. タブレット以上
──────────────────────────────────────────────── */
@media (min-width: 768px) {
  body { padding-bottom: 0; }           /* 下部固定CTAはスマホのみ */
  .sticky-cta { display: none; }

  .section { padding-block: var(--s-3xl); }
  .heading__title { font-size: 1.9rem; }
  .hero__inner { padding-block: var(--s-3xl) var(--s-2xl); }
  .hero__title { font-size: 2.5rem; }
  .hero__actions { grid-template-columns: 1fr 1fr; align-items: center; }
  .hero__note { grid-column: 1 / -1; }

  .fact__num { font-size: 1.9rem; }
  .fact__label { font-size: .8rem; }

  .reason { display: grid; grid-template-columns: 1fr 1.15fr; }
  .reason__img { aspect-ratio: auto; height: 100%; }
  .reason:nth-child(even) .reason__img { order: 2; }
  .reason__body { padding: var(--s-xl); display: flex; flex-direction: column; justify-content: center; }

  .spec__row { grid-template-columns: 180px 1fr; }
  .spec__key { display: flex; align-items: center; border-right: 1px solid var(--c-border); }

  .voices { grid-template-columns: 1fr 1fr; }
}
