/* TQFeC掲示板：A案（白地・ゴシック体・細い罫線） */
:root {
  font-family: sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: #222;
  background: #fff;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: #fff; }
main { max-width: 970px; margin: 0 auto; padding: 25px 32px 40px; }
a { color: #163c8c; text-underline-offset: 2px; overflow-wrap: anywhere; }
a:visited { color: #593e83; }
button, input, select, textarea { font: inherit; color: inherit; }
header { margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid #888; }
header h1 { margin: 16px 0 12px; font-size: 26px; line-height: 1.5; font-weight: 700; color: #202020; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 18px; }
.site-nav { gap: 4px 16px; font-size: 12px; line-height: 1.8; }
.site-nav span { color: #555; }
.site-nav a, .board-nav a { color: #163c8c; }
.board-nav { font-size: 13px; }
h2 { margin: 0 0 12px; font-size: 18px; }
h2 small { margin-left: 6px; font-size: 12px; font-weight: 400; color: #666; }
section { margin: 0 0 25px; padding: 0 0 20px; border: 0; border-bottom: 1px solid #aaa; background: #fff; }
section, article, input, select, textarea, button, pre { border-radius: 0; box-shadow: none; }
label { display: block; margin: 0 0 8px; font-size: 13px; line-height: 1.7; }
label small { margin-left: 8px; font-size: 11px; font-weight: 400; color: #666; }
input, select, textarea {
  display: block;
  width: 100%;
  border: 1px solid #aaa;
  padding: 3px 7px;
  font-size: 14px;
  line-height: 1.6;
  background: #fff;
}
input, select { height: 30px; }
input[type="hidden"] { display: none; }
input[type="checkbox"] { display: inline-block; width: auto; height: auto; }
textarea { height: 108px; min-height: 108px; resize: vertical; }
button {
  display: inline-block;
  width: auto;
  padding: 4px 20px;
  border: 1px solid #888;
  font-size: 13px;
  line-height: 1.65;
  color: #222;
  background: #eee;
  cursor: pointer;
}
button:hover { background: #ddd; border-color: #555; }
/* Only the posting/editor form uses two columns. Login and management forms stay simple. */
#compose form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
#compose label { margin: 0; }
#compose .grid { display: grid; grid-column: 1 / -1; grid-template-columns: 3fr 1fr; gap: 20px; }
#compose form > label:has(textarea), #compose details, #compose .hint,
#compose .confirm { grid-column: 1 / -1; }
#compose button { justify-self: start; }
.hint { max-width: 790px; margin: 0; font-size: 11px; line-height: 1.7; color: #666; }
details { font-size: 12px; }
summary { color: #444; cursor: pointer; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.confirm { display: flex; align-items: flex-start; gap: 9px; margin: 10px 0; }
.confirm input { flex: 0 0 auto; margin-top: 5px; }
.moderation-explanation { margin: 0 0 14px; padding-left: 12px; border-left: 3px solid #777; font-size: 13px; }
article { margin: 0; padding: 16px 0 19px; border: 0; border-top: 1px solid #aaa; background: #fff; }
.post-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 12px; color: #666; }
.author { font-size: 14px; background: none; text-shadow: none; }
.post-link { white-space: nowrap; }
.moderated { color: #555; }
article h3 { margin: 7px 0 8px; font-size: 17px; line-height: 1.65; font-weight: 700; }
.body-content { overflow-x: auto; overflow-wrap: anywhere; }
.body-content p { margin: 0 0 .7em; font-size: 15px; line-height: 1.9; }
.body-content > :last-child { margin-bottom: 0; }
.body-content table { max-width: 100%; margin: .8em 0; border-collapse: collapse; }
.body-content th, .body-content td { min-width: 90px; padding: 6px 10px; border: 1px solid #aaa; text-align: left; }
.body-content th { background: #f1f1f1; }
.body-content img { max-width: 100%; height: auto; }
blockquote { margin: .8em 0; padding-left: 14px; border-left: 3px solid #aaa; color: #555; }
pre { padding: 10px; border: 1px solid #ccc; background: #f5f5f5; white-space: pre-wrap; overflow-wrap: anywhere; }
code { font-family: Consolas, "MS Gothic", monospace; background: #f3f3f3; }
article > p { margin: 10px 0 0; font-size: 13px; }
article small { color: #666; font-size: 11px; }
aside { margin-top: 16px; padding-top: 10px; border-top: 1px dotted #aaa; font-size: 13px; }
aside p { margin: 6px 0; }
aside details { margin-top: 10px; }
.moderate-link { font-weight: 700; }
.hidden-post { margin: 0 0 12px; padding: 14px; border: 1px dashed #888; background: #f8f8f8; }
.notice, .error { margin: 0 0 18px; padding: 10px 12px; border: 1px solid #888; background: #f7f7f7; }
.error { border-color: #a33; color: #822; background: #fff; }
.pagination { justify-content: center; margin: 16px 0; font-size: 12px; color: #666; }
footer { margin: 25px 0 0; font-size: 10px; line-height: 1.8; color: #666; text-align: center; }
footer p { margin: 0 0 8px; }
a:focus-visible, button:focus-visible, input:focus, textarea:focus, select:focus-visible {
  outline: 2px solid #555;
  outline-offset: 2px;
}
@media (max-width: 650px) {
  main { padding: 18px 16px 30px; }
  header h1 { font-size: 23px; }
  .site-nav { gap: 3px 12px; }
  #compose form { grid-template-columns: 1fr; }
  #compose .grid { grid-template-columns: 2fr 1fr; gap: 12px; }
  #compose form > label { grid-column: 1 / -1; }
  .hint { max-width: 100%; }
}
