/* CATS訪問介護 サイト改善案の見本ページ(配色は「採用を主軸にした改善案 イメージ図」から) */
:root {
  --ink: #1f2933;
  --sub: #5b6875;
  --line: #d9e0e6;
  --bg: #f6f8fa;
  --card: #ffffff;
  --blue: #2f8fc4;
  --blue-dark: #1d6a94;
  --blue-soft: #e4f2fa;
  --orange: #e07a1f;
  --orange-dark: #a95408;
  --orange-soft: #fdf0e2;
  --todo: #fff6c9;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Yu Gothic UI", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  font-size: 16px; line-height: 1.75;
  overflow-wrap: anywhere;
}
body.has-fixbar { padding-bottom: 64px; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
a { color: var(--blue-dark); }
:focus-visible { outline: 3px solid #1b5e84; outline-offset: 2px; }
p { margin: 8px 0; }
ul { margin: 6px 0; padding-left: 1.3em; }
li { margin: 4px 0; }
h1 { font-size: 24px; line-height: 1.45; margin: 16px 0 8px; }
h2 { font-size: 21px; line-height: 1.45; margin: 0 0 12px; padding-left: 12px; border-left: 6px solid var(--orange); }
h3 { font-size: 17px; line-height: 1.5; margin: 16px 0 6px; }
section { scroll-margin-top: 12px; }
[id] { scroll-margin-top: 12px; }

/* 黄色の「これから決める所」 */
.todo { background: var(--todo); border-bottom: 2px dashed #a68500; padding: 0 3px; color: var(--ink); }

/* いちばん上の帯 */
.testbar { background: #ffe066; color: #3b2f00; border-bottom: 3px solid #a68500; padding: 10px 16px; font-weight: 700; text-align: center; font-size: 16px; line-height: 1.6; }

/* ヘッダー */
.site-head { background: #fff; border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); text-decoration: none; min-height: 44px; }
.logo-box { width: 44px; height: 44px; flex: none; border: 1px dashed var(--sub); border-radius: 8px; background: repeating-linear-gradient(45deg, #e3e8ec, #e3e8ec 6px, #edf1f4 6px, #edf1f4 12px); color: var(--sub); font-size: 11px; font-weight: 400; display: flex; align-items: center; justify-content: center; }
.head-actions { display: flex; align-items: center; gap: 8px; }
.telbtn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--orange-dark); color: #fff; font-weight: 700; text-decoration: none; font-size: 16px; }
.burger { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--blue-dark); color: #fff; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; top: 21px; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: #fff; }
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }
.menu { display: none; border-top: 1px solid var(--line); padding: 4px 0 12px; }
.menu.open { display: block; }
.menu ul { list-style: none; padding: 0; margin: 0; }
.menu li { margin: 0; border-bottom: 1px solid var(--line); }
.menu a { display: flex; align-items: center; min-height: 48px; padding: 0 4px; font-weight: 700; text-decoration: none; color: var(--ink); }
.menu a[aria-current="page"] { color: var(--orange-dark); }
.menu a[aria-current="page"]::after { content: "(いま見ているページ)"; font-weight: 400; font-size: 13px; margin-left: 8px; color: var(--sub); }

/* 写真・ロゴの仮枠 */
.photo { background: repeating-linear-gradient(45deg, #e3e8ec, #e3e8ec 10px, #edf1f4 10px, #edf1f4 20px); color: var(--sub); border: 1px dashed var(--sub); display: flex; align-items: center; justify-content: center; text-align: center; font-size: 16px; border-radius: 8px; padding: 8px; }
.photo.small { height: 120px; margin-top: 16px; }
.photo.round { width: 72px; height: 72px; border-radius: 50%; font-size: 12px; flex: none; }

/* ボタン */
.btn { display: block; min-height: 48px; text-align: center; border-radius: 10px; padding: 10px 12px; font-weight: 700; margin-top: 10px; text-decoration: none; font-size: 17px; line-height: 1.5; cursor: pointer; font-family: inherit; width: 100%; }
.btn small { display: block; font-weight: 400; font-size: 16px; }
.btn.main { background: var(--orange-dark); color: #fff; border: 2px solid var(--orange-dark); }
.btn.sub { background: var(--blue-soft); color: var(--blue-dark); border: 2px solid #8cc4e0; }
.btn.line { background: #fff; color: var(--orange-dark); border: 2px solid var(--orange-dark); }
.btn-row { display: grid; grid-template-columns: 1fr; gap: 0 10px; }
.msg { margin-top: 8px; padding: 10px 12px; border-radius: 8px; background: #fff; border: 2px solid var(--blue-dark); font-weight: 700; }

/* カード・箱 */
.box { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-top: 12px; }
.sec { padding: 28px 0; border-bottom: 1px dashed var(--line); }
.sec:last-of-type { border-bottom: 0; }
.note { font-size: 16px; color: var(--sub); }
.tag { display: inline-block; font-size: 16px; border-radius: 999px; padding: 0 12px; line-height: 1.8; border: 1px solid; font-weight: 700; }
.tag.part { background: var(--blue-soft); color: var(--blue-dark); border-color: #8cc4e0; }
.tag.full { background: var(--orange-soft); color: var(--orange-dark); border-color: #efc08f; }
.jobcard { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-top: 10px; }
.jobcard b { font-size: 17px; }
.jobcard .pay { color: var(--orange-dark); font-weight: 700; font-size: 18px; }
.jobcard .more { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

/* 目次 */
.toc ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.toc li { margin: 0; }
.toc a { display: flex; align-items: center; min-height: 44px; padding: 6px 12px; border-radius: 8px; border: 1px solid #8cc4e0; background: var(--blue-soft); font-weight: 700; text-decoration: none; }
.toc a.hot { background: var(--orange-soft); border-color: #efc08f; color: var(--orange-dark); }

/* 表・問いと答え・流れ */
.calc, .spec { width: 100%; border-collapse: collapse; margin-top: 6px; }
.calc td { padding: 6px 0; border-bottom: 1px solid #e6ebef; vertical-align: top; }
.calc td:last-child { text-align: right; white-space: nowrap; padding-left: 8px; }
.calc tr.sum td { border-top: 2px solid var(--ink); border-bottom: 0; font-weight: 700; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 8px 8px; border-bottom: 1px solid var(--line); }
.spec th { width: 7.5em; background: #eef2f5; font-weight: 700; font-size: 16px; }
.spec ul { margin: 0; }
.qa { margin: 0; }
.qa dt { font-weight: 700; margin-top: 12px; }
.qa dt::before { content: "Q. "; color: var(--orange-dark); }
.qa dd { margin: 2px 0 0; }
.day { list-style: none; padding: 0; margin: 6px 0 0; }
.day li { display: grid; grid-template-columns: 4.5em 1fr; gap: 8px; padding: 6px 0; border-bottom: 1px solid #e6ebef; margin: 0; }
.day time { font-weight: 700; color: var(--blue-dark); }
.steps { list-style: none; padding: 0; margin: 8px 0; display: grid; grid-template-columns: 1fr; gap: 8px; }
.steps li { margin: 0; background: var(--orange-soft); border-radius: 8px; padding: 10px 12px; display: flex; gap: 10px; align-items: center; }
.steps b { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--orange-dark); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.person { display: flex; gap: 12px; align-items: flex-start; }

/* 募集要項 */
details { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-top: 10px; }
summary { min-height: 48px; padding: 10px 14px; font-weight: 700; cursor: pointer; display: flex; align-items: center; }
details[open] > summary { border-bottom: 1px solid var(--line); }
details .inner { padding: 8px 8px 12px; overflow-x: auto; }

/* フォーム */
fieldset { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 8px 14px 12px; margin: 16px 0 0; }
legend { font-weight: 700; padding: 0 6px; }
.radio { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; }
.radio input { width: 24px; height: 24px; flex: none; accent-color: var(--blue-dark); }
.field { margin-top: 16px; }
.field label { display: block; font-weight: 700; }
.req { color: #a8281a; font-size: 16px; margin-left: 6px; }
.opt { color: var(--sub); font-size: 16px; font-weight: 400; margin-left: 6px; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field textarea { display: block; width: 100%; min-height: 48px; font: inherit; padding: 8px 10px; border: 2px solid #8a97a3; border-radius: 8px; background: #fff; color: var(--ink); margin-top: 4px; }
.field textarea { min-height: 120px; }
.cm-note { background: var(--todo); border: 1px solid #a68500; border-radius: 8px; padding: 8px 12px; margin-top: 8px; font-weight: 700; }
[hidden] { display: none !important; }

/* フッター */
.site-foot { margin-top: 24px; border-top: 1px solid var(--line); padding: 16px 0 24px; font-size: 16px; color: var(--sub); }

/* 画面の下に固定するバー(スマホ幅のみ) */
.fixbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: grid; grid-template-columns: 1fr 1fr; background: #fff; border-top: 1px solid var(--line); }
.fixbar a { display: flex; align-items: center; justify-content: center; min-height: 56px; font-weight: 700; text-decoration: none; font-size: 16px; }
.fixbar a:first-child { background: var(--orange-dark); color: #fff; }
.fixbar a:last-child { background: #fff; color: var(--orange-dark); border-left: 1px solid var(--line); }

@media (min-width: 600px) {
  .btn-row { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps li { flex-direction: column; text-align: center; }
  .toc ul { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
  .fixbar { display: none; }
  body.has-fixbar { padding-bottom: 0; }
}
@media (min-width: 1000px) {
  /* パソコン幅: メニューは横ならび、本文は 760px のまま */
  .burger { display: none; }
  .menu { display: block; padding: 0; }
  .menu ul { display: flex; gap: 4px; }
  .menu li { border: 0; }
  .menu a { padding: 0 12px; }
  .menu a[aria-current="page"]::after { content: ""; }
  .menu a[aria-current="page"] { border-bottom: 3px solid var(--orange-dark); }
  h1 { font-size: 28px; }
}
