{"meta":{"title":"アクセシビリティ監査担当者","intro":"包括的な Web アクセシビリティのテストとコンプライアンスのための指示。","product":"GitHub Copilot","breadcrumbs":[{"href":"/ja/copilot","title":"GitHub Copilot"},{"href":"/ja/copilot/tutorials","title":"チュートリアル"},{"href":"/ja/copilot/tutorials/customization-library","title":"カスタマイズ ライブラリ"},{"href":"/ja/copilot/tutorials/customization-library/custom-instructions","title":"カスタム指示"},{"href":"/ja/copilot/tutorials/customization-library/custom-instructions/accessibility-auditor","title":"アクセシビリティ監査担当者"}],"documentType":"article"},"body":"# アクセシビリティ監査担当者\n\n包括的な Web アクセシビリティのテストとコンプライアンスのための指示。\n\n> \\[!NOTE]\n>\n> * このライブラリの例はインスピレーションを得るためのものです。プロジェクト、言語、チーム プロセスに合わせて具体的に調整することをお勧めします。\n> * 特定の言語とシナリオ向けのカスタム指示のコミュニティに投稿された例については、[Awesome GitHub Copilot Customizations](https://github.com/github/awesome-copilot/blob/main/docs/README.instructions.md) リポジトリを参照してください。\n> * カスタム指示は、作成するプラットフォームまたは IDE に応じて、さまざまなスコープにわたって適用できます。 詳しくは、「[GitHub Copilotの応答をカスタマイズする方法](/ja/copilot/concepts/response-customization)」を参照してください。\n\n次の例では、リポジトリ内の HTML ファイルにのみ適用されて、WCAG ガイドラインに従うアクセシビリティが高くてインクルーシブな HTML を生成するように GitHub Copilot をガイドする、パス固有の `accessibility.instructions.md` ファイルを示します。 パス固有の指示ファイルについて詳しくは、「[GitHub Copilot用のリポジトリカスタム命令の追加](/ja/copilot/how-tos/configure-custom-instructions/add-repository-instructions#using-one-or-more-instructionsmd-files)」をご覧ください。\n\n````text copy\n---\napplyTo: **/*.html\n---\n\nWhen generating code, ensure accessibility compliance by following these priorities:\n\n## Semantic HTML First\n- Use proper semantic elements: `<nav>`, `<main>`, `<section>`, `<article>`, `<header>`, `<footer>`\n- Structure headings sequentially (h1 → h2 → h3, never skip levels)\n- Use one `<h1>` per page with descriptive heading text\n\n## Essential ARIA Requirements\n- Add `alt` text to all images\n- Label form inputs with `<label>` or `aria-label`\n- Ensure interactive elements have accessible names\n- Use `aria-expanded` for collapsible content\n- Add `role`, `aria-labelledby`, and `aria-describedby` when semantic HTML isn't sufficient\n\n## Keyboard Navigation\n- All interactive elements must be keyboard accessible\n- Provide visible focus indicators (minimum 2px outline)\n- Include skip links: `<a href=\"#main\">Skip to main content</a>`\n- Use logical tab order that matches visual layout\n\n## Color and Contrast\n- Ensure 4.5:1 contrast ratio for normal text, 3:1 for large text\n- Don't rely solely on color to convey information\n\n## Quick Test Questions\n- Can you navigate the entire interface using only Tab/Shift+Tab/Enter?\n- Are all images and icons properly described?\n- Can screen reader users understand the content and functionality?\n\n## Screen Reader Compatibility\n\n**Provide descriptive text for all non-text content:**\n- Images: Use alt text that describes function, not just appearance\n  - Good: `alt=\"Submit form\"`\n  - Avoid: `alt=\"Blue button\"`\n- Form inputs: Associate every input with a `<label>` element\n- Links: Use descriptive link text\n  - Good: \"Download the accessibility report (PDF, 2MB)\"\n  - Avoid: \"Click here\" or \"Read more\"\n\n**Announce dynamic content updates:**\n- Use `aria-live=\"polite\"` for status updates\n- Use `aria-live=\"assertive\"` for urgent notifications\n- Update screen reader users when content changes without page reload\n\n---\n\n## Color and Contrast Requirements\n\n**Meet these specific contrast ratios:**\n- Normal text (under 18pt): Minimum 4.5:1 contrast ratio\n- Large text (18pt+ or 14pt+ bold): Minimum 3:1 contrast ratio\n- UI components and graphics: Minimum 3:1 contrast ratio\n\n**Provide multiple visual cues:**\n- Use color + icon + text for status indicators\n- Add patterns or textures to distinguish chart elements\n- Include text labels on graphs and data visualizations\n\n---\n\n## Testing Integration Steps\n\n**Include these automated checks:**\n1. Run axe-core accessibility scanner in CI/CD pipeline\n2. Test with lighthouse accessibility audit\n3. Validate HTML markup for semantic correctness\n\n**Perform these manual tests:**\n1. Navigate entire interface using only Tab and arrow keys\n2. Test with screen reader (NVDA on Windows, VoiceOver on Mac)\n3. Verify 200% zoom doesn't break layout or hide content\n4. Check color contrast with tools like WebAIM Color Contrast Checker\n\n---\n\n## Form Design Standards\n\n**Create accessible form experiences:**\n- Place labels above or to the left of form fields\n- Group related fields with `<fieldset>` and `<legend>`\n- Display validation errors immediately after the field with `aria-describedby`\n- Use `aria-required=\"true\"` for required fields\n- Provide clear instructions before users start filling out forms\n\n**Error message format:**\n```html\n<input aria-describedby=\"email-error\" aria-invalid=\"true\">\n<div id=\"email-error\">Please enter a valid email address</div>\n```\n\n---\n\n**Code Generation Rule:** Always include accessibility comments explaining ARIA attributes and semantic choices. Test code with keyboard navigation before suggesting it's complete.\n\n````\n\n## 参考資料\n\n* [GitHub Copilotの応答をカスタマイズする方法](/ja/copilot/concepts/response-customization) - GitHub Copilot での応答カスタマイズの概要\n* [Copilot に対してカスタム命令を追加する](/ja/copilot/how-tos/configure-custom-instructions) - カスタム指示を構成する方法\n* [優れた GitHub Copilot カスタマイズ](https://github.com/github/awesome-copilot/blob/main/README.md) - 特定の言語とシナリオ向けにコミュニティに投稿されたカスタム指示とその他のカスタマイズのリポジトリ"}