/* 運営のホーム（/home。2026-12-06 ユーザー「デザインシステムに合わせて直して」→「段階1を作って」）。
   色・文字・余白・形はデザインシステム「あにまるふぉれすと」（ホームページ・求人LP と同じ。claude.ai/artifact/2Cb5KGohs2Sp3JLnSTrrn4 の tokens.json）。
   受付の画面のデザイン（ds/tokens.css）とは別なので、ここだけで名前を付けて使う */
.home {
  --af-forest-bg: #deeee3; --af-paper: #fffdf8; --af-ink: #59453e; --af-ink-sub: #5d6b63;
  --af-forest-deep: #2a5f50; --af-forest-strong: #2f6f5e; --af-mint: #a8d6cb; --af-mint-light: #edf6f0;
  --af-capsule-border: #c9dcd5; --af-pink: #e9adc1; --af-pink-light: #faedf1; --af-pink-text: #9b4468; --af-hairline: #d8d8cd;
  --af-shadow-capsule: 0 4px 0 #9fbcb2, 0 8px 18px #2a5f5014;
  --af-sans: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', 'Hiragino Sans', 'Yu Gothic', Meiryo, sans-serif;
  margin: 0; min-height: 100vh; color: var(--af-ink); font-family: var(--af-sans); font-weight: 700; font-size: 16px; line-height: 1.8;
  background: var(--af-forest-bg) url(/img/forest-tri.svg) 0 0 / 80px 80px;
}
.home a { color: var(--af-forest-deep); }
.home a:hover { color: var(--af-ink); }
.home .grow { flex: 1; }
.home .linkbtn { color: var(--af-forest-deep); min-height: 44px; }
/* 枠：左いっぱいの帯＋本文（売上・給与とホームページの管理画面と同じ。861〜1180px は帯を細く、860px 以下は帯が上の横一列に回る） */
.h-shell { display: grid; grid-template-columns: 284px minmax(0, 1fr); min-height: 100vh; }
.h-side { background: var(--af-paper); border-right: 1px solid var(--af-capsule-border); padding: 22px 14px 16px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; box-sizing: border-box; }
.h-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 0 10px 18px; text-decoration: none; }
.h-brand img { display: block; width: 100%; max-width: 180px; height: auto; }
.h-brand small { font-size: 13px; line-height: 1.6; color: var(--af-ink-sub); font-weight: 500; padding-left: 4px; }
.h-nav { display: flex; flex-direction: column; gap: 4px; }
.h-nav a { text-decoration: none; color: var(--af-ink); border-radius: 999px; padding: 8px 14px; min-height: 44px; box-sizing: border-box; display: flex; align-items: center; gap: 10px; }
.h-nav a:hover { background: var(--af-mint-light); color: var(--af-ink); }
.h-nav a.on { background: var(--af-mint); font-weight: 900; }
.h-nav svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--af-forest-deep); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.h-nav a.on svg { stroke: currentColor; }
.h-nav svg.lock { width: 16px; height: 16px; stroke: var(--af-ink-sub); stroke-width: 2; }
.h-group { font-size: 13px; line-height: 1.6; color: var(--af-ink-sub); font-weight: 500; padding: 14px 14px 2px; }
.h-badge { font-size: 13px; line-height: 1.6; background: var(--af-pink-text); color: var(--af-paper); border-radius: 999px; padding: 0 10px; white-space: nowrap; }
.h-me { margin-top: auto; padding: 12px 10px 0; border-top: 1px solid var(--af-hairline); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; font-size: 14px; line-height: 1.6; color: var(--af-ink-sub); font-weight: 500; }
.h-me:empty { display: none; }
.h-main { padding: 40px clamp(16px, 3.2vw, 56px) 90px; min-width: 0; max-width: 1180px; display: flex; flex-direction: column; gap: 26px; box-sizing: border-box; }
.h-head { display: flex; flex-direction: column; gap: 2px; }
.h-en { font-size: 38px; font-weight: 900; line-height: 1; letter-spacing: .04em; color: var(--af-pink-text); }
.h-head h1 { margin: 0; font-size: 26px; font-weight: 900; line-height: 1.5; color: var(--af-forest-deep); }
.h-head p { margin: 0; font-size: 14px; line-height: 1.7; font-weight: 500; }
.h-sec { margin: 0 0 12px; font-size: 20px; font-weight: 900; line-height: 1.4; color: var(--af-forest-deep); }
.h-todo { background: var(--af-paper); border: 2px solid var(--af-pink); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.h-todo.none { border-color: var(--af-capsule-border); }
.h-todo h2 { margin: 0; font-size: 20px; font-weight: 900; line-height: 1.4; color: var(--af-pink-text); }
.h-todo.none h2 { color: var(--af-forest-deep); }
.h-todo ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.h-todo li { background: var(--af-pink-light); border-radius: 12px; padding: 12px 16px; display: flex; flex-direction: column; gap: 4px; }
.h-todo .s, .h-num .s { font-size: 14px; line-height: 1.7; font-weight: 500; }
.h-todo li a, .h-num a { font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; }
.h-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.h-num { background: var(--af-paper); border: 1px solid var(--af-capsule-border); border-radius: 999px; box-shadow: var(--af-shadow-capsule); padding: 22px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.h-num .l { font-size: 14px; line-height: 1.7; color: var(--af-ink-sub); font-weight: 500; }
.h-num .v { font-size: 26px; font-weight: 900; line-height: 1.5; color: var(--af-forest-deep); }
.h-num.link .s { color: var(--af-ink-sub); }
.h-people { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.h-people li { background: var(--af-paper); border: 1px solid var(--af-capsule-border); border-radius: 12px; padding: 10px 14px; display: flex; flex-direction: column; }
.h-people small { font-size: 13px; line-height: 1.6; color: var(--af-ink-sub); font-weight: 500; font-variant-numeric: tabular-nums; }
.home .empty { background: var(--af-paper); border-radius: 14px; padding: 22px; color: var(--af-ink-sub); }
/* ログイン前は左の帯を消し、ログインのカードを真ん中に置く */
.home.signed-out .h-side { display: none; }
.home.signed-out .h-shell { grid-template-columns: minmax(0, 1fr); }
.home.signed-out .h-main { max-width: none; }
@media (min-width: 861px) and (max-width: 1180px) {
  .h-shell { grid-template-columns: 248px minmax(0, 1fr); }
  .h-side { padding-left: 10px; padding-right: 10px; }
  .h-nav a { padding: 8px 8px; font-size: 14px; gap: 8px; }
  .h-badge { padding: 0 8px; }
}
/* スマホ・縦のタブレット：帯は上に貼りつく横一列（ロゴ・入口を横に送る・ログアウト） */
@media (max-width: 860px) {
  .h-shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .h-side { height: auto; flex-direction: row; align-items: center; gap: 8px; padding: 6px max(12px, env(safe-area-inset-right)) 6px max(12px, env(safe-area-inset-left)); border-right: 0; border-bottom: 1px solid var(--af-capsule-border); overflow-x: auto; overflow-y: visible; z-index: 10; }
  .h-brand { padding: 0; flex: none; }
  .h-brand img { width: auto; height: 36px; }
  .h-brand small, .h-group { display: none; }
  .h-nav { flex-direction: row; gap: 2px; }
  .h-nav a { white-space: nowrap; padding: 6px 12px; font-size: 14px; gap: 6px; }
  .h-nav svg { width: 18px; height: 18px; }
  .h-me { margin: 0; padding: 0 0 0 6px; border-top: 0; flex: none; white-space: nowrap; }
  .h-me > span { display: none; }
  .h-main { padding: 24px max(16px, env(safe-area-inset-right)) 72px max(16px, env(safe-area-inset-left)); }
}
@media (max-width: 600px) {
  .h-en { font-size: 32px; }
  .h-num { border-radius: 28px; }
}
