/* room RAG 共通スタイル：読みやすい配色とスマホ対応 */
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0 auto;
  padding: 1rem 16px 2rem;
  max-width: 56rem;
  font-size: 1.0625rem;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

body.dark {
  background: #1b3b32;
  color: #e6eee9;
}
body.dark a:link    { color: #8fdcff; }
body.dark a:visited { color: #e0b3ff; }
body.dark a:hover,
body.dark a:active  { color: #ffd27a; }

body.light {
  color: #222222;
}
body.light a:link    { color: #0b4f9c; }
body.light a:visited { color: #6a3d9a; }
body.light a:hover,
body.light a:active  { color: #b3261e; }

a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

img { max-width: 100%; height: auto; }
pre { max-width: 100%; overflow-x: auto; }
table { max-width: 100%; }
hr { border: 0; border-top: 1px solid currentColor; opacity: .35; }

.sig { display: block; text-align: right; }

font[size="1"], font[size="-1"] { font-size: .85em; }
font[size="2"] { font-size: .92em; }

@media (max-width: 640px) {
  body { padding-left: 14px; padding-right: 14px; }
  table, tbody, tr, td, th { display: block; width: auto !important; height: auto !important; }
}
