/* Layout: スマホ前提の1カラム。上に区分タブ、下に前へ／次へ。HPfactory の緑×琥珀（受注ボードと同じ色系統） */
:root {
  --bg: #edf1ee;
  --surface: #fbfcfa;
  --ink: #1d2925;
  --muted: #5b6762;
  --line: #d2dbd5;
  --accent: #2c6a56;
  --accent-ink: #ffffff;
  --accent-soft: #d6e9e0;
  --amber: #c4840f;
  --amber-soft: #f6e6c4;
  --ok: #2f7d4f;
  --ok-soft: #dcefe2;
  --warn: #a35a14;
  --warn-soft: #f8e3cc;
  --danger: #b4412e;
  --display: "M PLUS 1p", "Hiragino Sans", "Meiryo", sans-serif;
  --body: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121a17; --surface: #1a2420; --ink: #e9efeb; --muted: #9fada7; --line: #2c3a34;
    --accent: #74c2a5; --accent-ink: #0f1916; --accent-soft: #1c3a30; --amber: #e6b04b; --amber-soft: #3b3017;
    --ok: #7cc79a; --ok-soft: #1f3a2a; --warn: #eba066; --warn-soft: #402816; --danger: #f08b77;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.65; -webkit-tap-highlight-color: transparent; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--accent); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ブランド */
.brandbar { display: flex; align-items: center; gap: 10px; }
.mark { width: 34px; height: 34px; border-radius: 7px; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-family: var(--mono); font-size: 12px; position: relative; overflow: hidden; flex: none; }
.mark::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: repeating-linear-gradient(135deg, var(--amber) 0 4px, var(--ink) 4px 8px); }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 15px; line-height: 1.2; }
.brand-sub { font-size: 11px; color: var(--muted); }

/* 汎用部品 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; cursor: pointer; text-decoration: none; color: var(--ink); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn:disabled { opacity: .45; cursor: default; }
input[type="text"], input[type="tel"], input[type="email"], input[type="password"], input[type="search"], textarea, select {
  width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 11px 12px; font-size: 16px; line-height: 1.5;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .75; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 10px; border-radius: 999px; white-space: nowrap; }
.p-new { background: var(--line); color: var(--muted); }
.p-progress { background: var(--amber-soft); color: var(--warn); }
.p-submitted { background: var(--ok-soft); color: var(--ok); }
.p-archived { background: var(--line); color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.notice { background: var(--warn-soft); border-radius: 10px; padding: 10px 14px; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
