@font-face{font-family:'Inter';font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/inter.3100e775e8.woff2) format('woff2');unicode-range:U+0000-00FF,U+2013-2014,U+2018-201D,U+2022,U+2026;}
@font-face{font-family:'Noto Sans JP';font-style:normal;font-weight:400;font-display:swap;src:url(/assets/noto-sans-jp-400.caf6d7dc4c.woff2) format('woff2');}
@font-face{font-family:'Noto Sans JP';font-style:normal;font-weight:500;font-display:swap;src:url(/assets/noto-sans-jp-500.4c3a5d7672.woff2) format('woff2');}
@font-face{font-family:'Noto Sans JP';font-style:normal;font-weight:700;font-display:swap;src:url(/assets/noto-sans-jp-700.a81d531e2b.woff2) format('woff2');}
/* 書体は臨時お知らせサイトと同じ (Inter + Noto Sans JP)。
   色は白、グレー、墨色を基調にし、OMU のゴールドは細い線と小さな印にだけ使う。
   @font-face は scripts/build-assets.mjs が先頭に差し込む。 */

:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --text-1: #1b2029;
  --text-2: #55606e;
  --text-3: #8791a0;
  --border: #dde1e6;
  --border-strong: #c3c9d1;
  --ink: #1b2029;
  --ink-hover: #343c4a;
  --on-ink: #ffffff;
  --gold: #caa82b;
  --link: #7d5c14;
  --focus: rgba(202, 168, 43, 0.5);
  --danger: #b3261e;
  --danger-bg: #fdf1f0;
  --ok: #1a6b45;
  --digit: #175ddc;
  --symbol: #c0341d;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(27, 32, 41, 0.05);
  --font: 'Inter', 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic UI', Meiryo, sans-serif;
  /* 氏名は、絞り込んだ Noto Sans JP に無い漢字が混ざるので、端末の書体だけで出す */
  --font-name: 'Hiragino Sans', 'Yu Gothic UI', 'Yu Gothic', Meiryo, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', 'Roboto Mono', Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171c;
    --surface: #1d2127;
    --surface-2: #242930;
    --text-1: #e6e9ee;
    --text-2: #a3acb9;
    --text-3: #7a8492;
    --border: #323842;
    --border-strong: #46505d;
    --ink: #e6e9ee;
    --ink-hover: #ffffff;
    --on-ink: #14171c;
    --link: #dcc55c;
    --danger: #ff9d92;
    --danger-bg: #3a1c19;
    --ok: #7fd6a6;
    --digit: #7fb0ff;
    --symbol: #ff9c8a;
    --shadow: none;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text-1);
  font: 400 16px/1.8 var(--font);
  font-feature-settings: 'palt';
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: var(--link);
  font-weight: 500;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}

[hidden] {
  display: none !important;
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.wrap-narrow {
  max-width: 760px;
}

.wrap-focus {
  max-width: 520px;
}

.icon {
  flex: none;
  width: 1.375rem;
  height: 1.375rem;
}

.icon-sm {
  width: 1.05rem;
  height: 1.05rem;
}

.icon-xs {
  width: 0.9rem;
  height: 0.9rem;
  stroke-width: 2.4;
}

.mono {
  font-family: var(--mono);
}

/* ---------- ヘッダーとフッター ---------- */

.site-header {
  background: var(--surface);
  border-top: 2px solid var(--gold);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 3.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-1);
  text-decoration: none;
}

.brand img {
  width: 2rem;
  height: 2rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-text small {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-2);
}

.brand-text b {
  white-space: nowrap;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.header-link {
  display: none;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: var(--text-2);
  text-decoration: none;
  white-space: nowrap;
}

.header-link:hover {
  color: var(--text-1);
}

.header-user {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text-2);
  font-size: 0.82rem;
  text-align: right;
  line-height: 1.4;
}

.avatar {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-2);
  font-family: var(--font-name);
  font-size: 0.95rem;
  font-weight: 600;
  overflow: hidden;
}

.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--text-3);
  font-size: 0.78rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding-top: 1.25rem;
  padding-bottom: 1.5rem;
}

/* ---------- ボタンと入力欄 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.5rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.12s,
    border-color 0.12s;
}

.btn-primary {
  background: var(--ink);
  color: var(--on-ink);
}

.btn-primary:hover {
  background: var(--ink-hover);
}

.btn-ghost {
  border-color: var(--border-strong);
  background: var(--surface);
  color: var(--text-1);
}

.btn-ghost:hover {
  border-color: var(--text-2);
}

.btn-sm {
  min-height: 2.25rem;
  padding: 0.25rem 0.8rem;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  cursor: wait;
  opacity: 0.6;
}

.form {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.3rem;
}

.field label {
  font-size: 0.85rem;
  font-weight: 600;
}

.field input {
  width: 100%;
  height: 2.9rem;
  padding: 0 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-1);
  font: inherit;
  font-size: 1rem;
  transition:
    border-color 0.12s,
    box-shadow 0.12s;
}

.field input::placeholder {
  color: var(--text-3);
}

.field input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--focus);
}

.input-wrap {
  position: relative;
}

.input-wrap input {
  padding-right: 4rem;
}

.input-action {
  position: absolute;
  top: 50%;
  right: 0.4rem;
  transform: translateY(-50%);
  padding: 0.25rem 0.6rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.input-action:hover {
  background: var(--surface-2);
  color: var(--text-1);
}

.alert {
  padding: 0.65rem 0.9rem;
  border-left: 3px solid var(--danger);
  border-radius: 4px;
  background: var(--danger-bg);
  color: var(--danger);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.6;
}

.form-note {
  margin-top: 0.9rem;
  color: var(--text-2);
  font-size: 0.8rem;
  line-height: 1.6;
}

.form-note-center {
  margin-top: 0;
  text-align: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0 0.55rem;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  color: var(--text-2);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.7;
  white-space: nowrap;
}

.chip-strong {
  border-color: var(--ink);
  color: var(--text-1);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.tile {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text-2);
}

.tile-done {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--on-ink);
}

/* ---------- トップ: 冒頭 ---------- */

.hero {
  padding: 2.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  color: var(--text-2);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 1.5rem;
  height: 2px;
  margin-right: 0.6rem;
  background: var(--gold);
  vertical-align: middle;
}

.hero h1 {
  margin-top: 0.6rem;
  font-size: clamp(1.6rem, 4.6vw, 2.25rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.lead {
  max-width: 33rem;
  margin-top: 1rem;
  color: var(--text-2);
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  margin-top: 1.25rem;
  color: var(--text-2);
  font-size: 0.88rem;
}

.facts li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-alt {
  margin-top: 1.25rem;
  color: var(--text-2);
  font-size: 0.88rem;
}

.start-card {
  padding: 1.5rem 1.25rem;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.card-sub {
  margin: 0.1rem 0 1.1rem;
  color: var(--text-2);
  font-size: 0.88rem;
}

/* ---------- トップ: 各セクション ---------- */

.section {
  padding: 3.25rem 0;
}

.section-surface {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.section-title {
  font-size: clamp(1.2rem, 3.2vw, 1.45rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.section-lead {
  margin-top: 0.25rem;
  color: var(--text-2);
  font-size: 0.95rem;
}

.methods {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.method {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1.4rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.method-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.method-head h3 {
  font-size: 1.08rem;
  font-weight: 700;
}

.method p {
  color: var(--text-2);
  font-size: 0.93rem;
}

.method h4 {
  color: var(--text-3);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.checklist {
  display: grid;
  gap: 0.2rem;
  margin-top: -0.45rem;
  font-size: 0.93rem;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.checklist .icon {
  margin-top: 0.42rem;
  color: var(--text-3);
}

.method .btn {
  margin-top: auto;
}

.method .method-note {
  margin-top: -0.4rem;
  color: var(--text-3);
  font-size: 0.78rem;
}

.steps {
  display: grid;
  gap: 0;
  margin-top: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.9rem;
  align-content: start;
  padding: 1.1rem 1.25rem;
}

.step + .step {
  border-top: 1px solid var(--border);
}

.step-num {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-top: 0.1rem;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--text-2);
  font-size: 0.82rem;
  font-weight: 600;
}

.step h3 {
  font-size: 1rem;
  font-weight: 700;
}

.step p {
  color: var(--text-2);
  font-size: 0.88rem;
  line-height: 1.7;
}

.assure {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.assure-item .icon {
  color: var(--text-2);
}

.assure-item h3 {
  margin-top: 0.4rem;
  font-size: 1rem;
  font-weight: 700;
}

.assure-item p {
  margin-top: 0.2rem;
  color: var(--text-2);
  font-size: 0.9rem;
}

.faq {
  margin-top: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.faq details + details {
  border-top: 1px solid var(--border);
}

.faq summary,
.inline-help summary {
  position: relative;
  padding: 0.9rem 2.75rem 0.9rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker,
.inline-help summary::-webkit-details-marker {
  display: none;
}

.faq summary::after,
.inline-help summary::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 1.25rem;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1.5px solid var(--text-2);
  border-bottom: 1.5px solid var(--text-2);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.15s;
}

details[open] > summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.faq details p {
  padding: 0 1.2rem;
  color: var(--text-2);
  font-size: 0.9rem;
}

.faq details p:last-child {
  padding-bottom: 1rem;
}

.faq details p + p {
  margin-top: 0.5rem;
}

/* ---------- 手続きの画面 (カード 1 枚) ---------- */

.focus {
  padding: 2rem 0 3.5rem;
}

.progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 1.25rem;
}

.progress-step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.3rem;
  color: var(--text-3);
  font-size: 0.7rem;
  text-align: center;
}

.progress-step + .progress-step::before {
  content: '';
  position: absolute;
  top: 0.75rem;
  right: calc(50% + 1rem);
  width: calc(100% - 2rem);
  height: 1px;
  background: var(--border-strong);
}

.progress-step.is-done + .progress-step::before {
  background: var(--ink);
}

.progress-dot {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--surface);
  font-size: 0.72rem;
  font-weight: 600;
}

.is-current .progress-dot {
  border-color: var(--ink);
  color: var(--text-1);
  box-shadow: 0 0 0 3px var(--focus);
}

.is-done .progress-dot {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--on-ink);
}

.is-current,
.is-done {
  color: var(--text-1);
}

.is-current .progress-label {
  font-weight: 700;
}

.focus-card {
  display: grid;
  gap: 1rem;
  padding: 1.75rem 1.25rem;
}

.focus-title {
  font-size: clamp(1.2rem, 4.4vw, 1.4rem);
  font-weight: 700;
  line-height: 1.5;
}

.focus-lead {
  margin-top: -0.6rem;
  color: var(--text-2);
  font-size: 0.95rem;
}

.focus-lead b {
  color: var(--text-1);
}

.notes {
  display: grid;
  gap: 0.5rem;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 0.88rem;
  line-height: 1.65;
}

.notes li {
  display: flex;
  gap: 0.6rem;
}

.notes .icon {
  margin-top: 0.2rem;
  color: var(--text-3);
}

.notes b {
  color: var(--text-1);
}

.inline-help {
  border: 1px solid var(--border);
  border-radius: 8px;
}

.inline-help summary {
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  font-size: 0.9rem;
}

.inline-help p {
  padding: 0 1.2rem 0.8rem;
  color: var(--text-2);
  font-size: 0.88rem;
}

/* ---------- 新パスワードの表示 ---------- */

.vault {
  display: grid;
  gap: 0.5rem;
  padding: 0.9rem 1rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
}

.vault-label {
  color: var(--text-2);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.vault-row {
  display: grid;
  gap: 0.75rem;
}

.vault-value {
  display: block;
  min-height: 2.2rem;
  font-family: var(--mono);
  font-size: clamp(1.15rem, 5.2vw, 1.45rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
  user-select: all;
}

.vault-value.is-masked {
  color: var(--text-3);
  letter-spacing: 0.18em;
  user-select: none;
}

.ch-digit {
  color: var(--digit);
}

.ch-symbol {
  color: var(--symbol);
}

.vault-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.btn.is-copied {
  border-color: var(--ok);
  color: var(--ok);
}

.vault-legend {
  display: flex;
  gap: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.74rem;
}

.vault-legend span::before {
  content: '';
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: currentColor;
}

.vault-legend .ch-alpha {
  color: var(--text-1);
}

/* ---------- 窓口用の画面 ---------- */

.admin {
  padding: 1.75rem 0 3rem;
}

.admin-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.admin-subtitle {
  margin-top: 2rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.admin-lead {
  margin-top: 0.2rem;
  color: var(--text-2);
  font-size: 0.9rem;
}

.search {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.search .field {
  flex: 1;
}

.search .btn {
  flex: none;
  min-height: 2.9rem;
}

.result-note {
  margin-top: 1.25rem;
  color: var(--text-2);
  font-size: 0.88rem;
}

.table-wrap {
  margin-top: 0.6rem;
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.table th,
.table td {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.table th {
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.table tr:last-child td {
  border-bottom: 0;
}

.table .col-action {
  text-align: right;
}

.table form {
  margin: 0;
}

.person-name {
  font-family: var(--font-name);
  font-weight: 600;
}

.person-kana {
  display: block;
  color: var(--text-3);
  font-family: var(--font-name);
  font-size: 0.74rem;
  line-height: 1.3;
}

.state {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-2);
  font-size: 0.82rem;
}

.state::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
}

.state-done::before {
  border-color: var(--ok);
  background: var(--ok);
}

.issue-card {
  display: grid;
  gap: 1rem;
  max-width: 560px;
  margin-top: 1.25rem;
  padding: 1.5rem 1.25rem;
}

.person {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.3rem 1.25rem;
  font-size: 0.95rem;
}

.person dt {
  color: var(--text-2);
  font-size: 0.82rem;
  line-height: 2;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tabs {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.tabs-inner {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
}

.tab {
  padding: 0.7rem 0 0.6rem;
  border-bottom: 2px solid transparent;
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.tab:hover {
  color: var(--text-1);
}

.tab.is-active {
  border-bottom-color: var(--ink);
  color: var(--text-1);
}

.count {
  margin-left: 0.6rem;
  padding: 0 0.45rem;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  color: var(--text-1);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.7;
}

.state-mid::before {
  border-color: var(--gold);
  background: var(--gold);
}

.notice {
  padding: 0.6rem 0.9rem;
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  background: var(--surface-2);
  font-size: 0.88rem;
  line-height: 1.6;
}

.field textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-1);
  font: 0.95rem/1.7 var(--mono);
  resize: vertical;
}

.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--focus);
}

.bulk-form {
  margin: 1.25rem 0;
}

.bulk-form .btn {
  justify-self: start;
}

.bulk-go {
  margin: 1.25rem 0;
}

.admin .alert {
  margin-top: 1rem;
  overflow-wrap: anywhere;
}

.admin .notes {
  background: var(--surface);
  border: 1px solid var(--border);
}

.issue-card .notes {
  background: var(--surface-2);
  border: 0;
}

.staff-add {
  display: grid;
  gap: 0.75rem;
  align-items: end;
  margin: 1.25rem 0;
}

.staff-add .alert {
  margin-top: 0;
}

.staff-add .btn {
  min-height: 2.9rem;
}

.stat-main {
  display: grid;
  gap: 0.2rem;
  margin: 1.25rem 0 1rem;
  padding: 1.25rem;
}

.stat-value {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  font-feature-settings: 'tnum';
}

.stat-label {
  color: var(--text-2);
  font-size: 0.85rem;
}

.meter {
  height: 0.4rem;
  margin-top: 0.6rem;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}

.meter-bar {
  display: block;
  height: 100%;
  background: var(--ink);
}

.meter-w0 {
  width: 0%;
}

.meter-w1 {
  width: 5%;
}

.meter-w2 {
  width: 10%;
}

.meter-w3 {
  width: 15%;
}

.meter-w4 {
  width: 20%;
}

.meter-w5 {
  width: 25%;
}

.meter-w6 {
  width: 30%;
}

.meter-w7 {
  width: 35%;
}

.meter-w8 {
  width: 40%;
}

.meter-w9 {
  width: 45%;
}

.meter-w10 {
  width: 50%;
}

.meter-w11 {
  width: 55%;
}

.meter-w12 {
  width: 60%;
}

.meter-w13 {
  width: 65%;
}

.meter-w14 {
  width: 70%;
}

.meter-w15 {
  width: 75%;
}

.meter-w16 {
  width: 80%;
}

.meter-w17 {
  width: 85%;
}

.meter-w18 {
  width: 90%;
}

.meter-w19 {
  width: 95%;
}

.meter-w20 {
  width: 100%;
}

.table .num {
  text-align: right;
  font-feature-settings: 'tnum';
}

/* 印刷用の紙。画面には出さず、印刷 (PDF への保存を含む) のときだけ出す */
.sheet {
  display: none;
}

/* ---------- 広い画面 ---------- */

@media (min-width: 40rem) {
  .header-link {
    display: inline-flex;
  }

  .start-card {
    padding: 1.75rem;
  }

  .focus-card {
    padding: 2rem;
  }

  .progress-step {
    font-size: 0.76rem;
  }

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

  .assure {
    grid-template-columns: repeat(3, 1fr);
  }

  .staff-add {
    grid-template-columns: 14rem 1fr auto;
  }

  .staff-add .alert {
    grid-column: 1 / -1;
  }

  .vault-actions {
    grid-template-columns: auto auto;
    justify-content: start;
  }
}

@media (min-width: 60rem) {
  .hero {
    padding: 4rem 0 4.5rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 3.5rem;
  }

  .section {
    padding: 4rem 0;
  }

  .steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .step {
    grid-template-columns: 1fr;
    row-gap: 0.5rem;
    padding: 1.4rem 1.25rem;
  }

  .step + .step {
    border-top: 0;
    border-left: 1px solid var(--border);
  }

  .step-num {
    grid-row: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}

/* ---------- 印刷 ---------- */

@page {
  size: A4;
  margin: 18mm 20mm;
}

@media print {
  :root {
    --text-1: #000000;
    --text-2: #333333;
    --text-3: #555555;
    --border: #999999;
    --border-strong: #555555;
  }

  body {
    display: block;
    min-height: 0;
    background: #ffffff;
    color: #000000;
  }

  .site-header,
  .site-footer,
  .no-print {
    display: none !important;
  }

  .sheet {
    display: block;
    font-size: 11pt;
    line-height: 1.8;
  }

  /* 一括印刷では、1 人ごとに改ページする */
  .sheet + .sheet {
    break-before: page;
  }

  .sheet-head {
    display: flex;
    align-items: center;
    gap: 3mm;
    padding-bottom: 4mm;
    border-bottom: 0.6mm solid #caa82b;
  }

  .sheet-head img {
    width: 11mm;
    height: 11mm;
  }

  .sheet-org {
    font-size: 10pt;
    letter-spacing: 0.1em;
  }

  .sheet h1 {
    margin-top: 9mm;
    font-size: 17pt;
    font-weight: 700;
    letter-spacing: 0.04em;
  }

  .sheet-lead {
    margin-top: 2mm;
  }

  .sheet-who {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 1mm 8mm;
    margin-top: 8mm;
    font-size: 12pt;
  }

  .sheet-who dt {
    color: #333333;
    font-size: 10pt;
    line-height: 2.2;
  }

  .sheet-who .person-name {
    font-size: 14pt;
  }

  .sheet-box {
    margin-top: 8mm;
    padding: 6mm;
    border: 0.4mm solid #000000;
    border-radius: 2mm;
    break-inside: avoid;
  }

  .sheet-box h2 {
    font-size: 10pt;
    font-weight: 600;
    letter-spacing: 0.06em;
  }

  /* 1 文字ずつ枠に入れ、下に文字の種類を書く (0 と O、1 と l を取り違えないように) */
  .pwchars {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4mm;
    margin-top: 3mm;
  }

  .pwchar {
    display: grid;
    justify-items: center;
    width: 9mm;
  }

  .pwchar b {
    display: grid;
    place-items: center;
    width: 9mm;
    height: 11.5mm;
    border: 0.3mm solid #555555;
    border-radius: 1mm;
    font-family: var(--mono);
    font-size: 16pt;
    font-weight: 600;
  }

  .pwchar small {
    margin-top: 0.6mm;
    font-size: 6.5pt;
    line-height: 1.3;
    white-space: nowrap;
  }

  .sheet-notes {
    margin-top: 8mm;
    padding-left: 1.2em;
    list-style: disc;
    font-size: 10.5pt;
  }

  .sheet-notes li + li {
    margin-top: 1mm;
  }

  .sheet-foot {
    margin-top: 10mm;
    padding-top: 3mm;
    border-top: 0.2mm solid #999999;
    color: #333333;
    font-size: 8.5pt;
  }
}
