/* なんJゲーム部風 — thread.css */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: Helvetica, Verdana, "Hiragino Sans", "Meiryo", sans-serif;
  background: #f0f4f8;
  color: #333;
  font-size: 14px;
  line-height: 1.7;
}
.thread-header {
  background: #0088e7;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
  padding: 12px 16px;
}
.thread-header a { color: #b0d8f7; font-size: 0.85rem; text-decoration: none; }
.thread-header a:hover { text-decoration: underline; color: #fff; }
.thread-header h1 {
  margin-top: 6px; font-size: 1.05rem; line-height: 1.5; color: #fff;
}
.thread-tags { margin: 8px 0 0; }
.thread-tag {
  display: inline-block; padding: 2px 8px;
  background: rgba(255,255,255,0.2); color: #fff;
  border: 1px solid rgba(255,255,255,0.4); border-radius: 3px;
  font-size: 0.78rem; text-decoration: none; margin-right: 4px;
}
.thread-tag:hover { background: rgba(255,255,255,0.35); }
.thread-body { max-width: 900px; margin: 0 auto; padding: 12px 8px; }
.post-container {
  background: #fff; border: 1px solid #e7e7e7;
  border-left: 3px solid #0088e7;
  margin-bottom: 3px; padding: 6px 12px;
}
.post-container:nth-child(even) { background: #fafafa; }
.id-line { font-size: 0.78rem; color: #888; margin-bottom: 2px; }
.user-name { color: #0088e7; }
.post-content { font-size: 0.92rem; white-space: pre-wrap; word-break: break-word; }
.thread-nav {
  display: flex; align-items: stretch;
  padding: 16px; border-top: 2px solid #0088e7; gap: 10px;
}
.nav-card {
  display: flex; flex-direction: column; justify-content: center;
  flex: 1; min-width: 0; padding: 10px 14px;
  border: 1px solid #6fb9ed; border-radius: 6px;
  background: #edf8ff; text-decoration: none; color: #333;
}
.nav-card:hover:not(.nav-disabled) { background: #0088e7; color: #fff; }
.nav-disabled { opacity: 0.25; pointer-events: none; }
.nav-direction { font-size: 0.72rem; color: #0088e7; margin-bottom: 4px; }
.nav-title {
  font-size: 0.88rem; font-weight: bold;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nav-index { flex: 0 0 90px; align-items: center; text-align: center; }
.nav-next { text-align: right; }
.nav-index .nav-direction { font-size: 0.85rem; margin-bottom: 0; color: #555; }
.thread-footer { text-align: center; padding: 12px 24px 24px; color: #888; font-size: 0.8rem; }

.related-articles {
  max-width: 900px; margin: 4px auto 16px; text-align: left;
  background: #fff; border: 1px solid #ddd; border-radius: 4px; padding: 12px 16px;
}
.related-label {
  font-size: 1rem; font-weight: bold; color: #333;
  border-left: 5px solid #0088e7; padding-left: 8px; margin-bottom: 8px;
}
.related-list { list-style: none; }
.related-list li { border-bottom: 1px dashed #ddd; }
.related-list li:last-child { border-bottom: none; }
.related-list li a {
  display: block; padding: 9px 4px; color: #333;
  text-decoration: none; font-size: 0.9rem; line-height: 1.6;
}
.related-list li a:hover { text-decoration: underline; background: #edf8ff; }

.anker { color: #0055aa; text-decoration: none; }
.anker:hover { text-decoration: underline; }