:root {
  --help-ink: #17212b;
  --help-muted: #596674;
  --help-line: #d8e0e7;
  --help-surface: #ffffff;
  --help-bg: #f4f6f8;
  --help-green: #14785c;
  --help-green-soft: #eaf5f1;
  --help-blue: #176da5;
  --help-blue-soft: #edf5fb;
  --help-orange: #b76516;
  --help-orange-soft: #fff3e6;
  --help-red: #a33b43;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--help-ink);
  background: var(--help-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.75;
}
a { color: var(--help-blue); font-weight: 700; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 12px; }
ul, ol { margin: 8px 0 0; padding-left: 1.5em; }
li + li { margin-top: 6px; }
code {
  padding: 2px 6px;
  border-radius: 4px;
  background: #edf1f4;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.help-header {
  border-bottom: 1px solid var(--help-line);
  background: var(--help-surface);
}
.help-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px clamp(18px, 4vw, 40px);
}
.help-header h1 {
  margin: 4px 0 8px;
  font-size: clamp(1.8rem, 4vw, 2.65rem);
  line-height: 1.3;
}
.help-header p { max-width: 820px; color: var(--help-muted); font-weight: 650; }
.help-audience { margin: 8px 0 0 !important; color: var(--help-green) !important; font-size: .9rem; }
.top-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid var(--help-line);
  border-radius: 6px;
  padding: 6px 12px;
  background: #fff;
  text-decoration: none;
}

.help-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px clamp(14px, 3vw, 32px) 56px;
}
.toc, .help-section {
  margin-bottom: 20px;
  border: 1px solid var(--help-line);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 28px);
  background: var(--help-surface);
}
.toc h2, .help-section h2 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.4;
}
.help-section h3 { margin: 24px 0 8px; font-size: 1.18rem; }
.lead { color: var(--help-muted); font-size: 1.05rem; font-weight: 700; }

.flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 16px;
  counter-reset: help-step;
}
.flow-step {
  min-width: 0;
  border: 1px solid #cfd9e1;
  border-radius: 7px;
  padding: 15px;
  background: #f8fafb;
}
.flow-step::before {
  counter-increment: help-step;
  content: counter(help-step);
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--help-green);
  color: #fff;
  font-weight: 800;
}
.flow-step strong { display: block; margin-bottom: 4px; }

.guide-grid, .two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.guide-card, .mini-card {
  min-width: 0;
  border: 1px solid var(--help-line);
  border-radius: 7px;
  padding: 16px;
  background: #fbfcfd;
}
.guide-card h3, .mini-card h3 { margin-top: 0; }
.guide-card-participant { border-top: 4px solid var(--help-blue); }
.guide-card-online { border-top: 4px solid var(--help-green); }
.guide-card-event { border-top: 4px solid var(--help-orange); }

.note, .warning, .privacy {
  margin: 16px 0;
  border-left: 5px solid var(--help-green);
  border-radius: 6px;
  padding: 14px 16px;
  background: var(--help-green-soft);
}
.warning { border-left-color: var(--help-orange); background: var(--help-orange-soft); }
.privacy { border-left-color: var(--help-blue); background: var(--help-blue-soft); }

.table-wrap { max-width: 100%; overflow-x: auto; margin-top: 12px; }
table { width: 100%; border-collapse: collapse; border: 1px solid var(--help-line); background: #fff; }
th, td { border-bottom: 1px solid var(--help-line); padding: 10px 12px; text-align: left; vertical-align: top; }
thead th { text-align: center; }
th { background: #edf2f5; white-space: nowrap; }
.label { font-weight: 800; }
.nowrap { white-space: nowrap; }

.page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.page-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid var(--help-line);
  border-radius: 6px;
  padding: 6px 12px;
  background: #fff;
  text-decoration: none;
}
.help-footer { padding: 24px 16px 36px; color: var(--help-muted); text-align: center; }

@media (max-width: 640px) {
  body { font-size: 15px; }
  .help-header-inner { padding-top: 18px; padding-bottom: 20px; }
  .help-main { padding-top: 14px; }
  .toc, .help-section { padding: 17px 15px; }
  .flow, .guide-grid, .two-col { grid-template-columns: 1fr; }
  th, td { padding: 9px 10px; }
}

@media print {
  body { background: #fff; }
  .top-link, .page-links { display: none; }
  .toc, .help-section { break-inside: avoid; box-shadow: none; }
}
