/* なんJ軍事（nanjlab.com）— thread.css
 * 2026-11-29、ユーザー要望「デザインもちょっと変更してほしい」→ ミリタリー（オリーブ×カーキ）。
 * 既定のCSSを土台に色だけ差し替え、ヘッダーの下に真鍮色の線を足した。
 *   ヘッダー #3d4a2a（オリーブ）/ 背景 #d8d2b8（カーキ）/ 枠 #a89f7e / 線 #b8963e（真鍮）
 * リンクは青系 #1f4e79 のまま。オリーブにすると本文と見分けにくいため。
 */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Hiragino Sans", "Meiryo", sans-serif;
  background: #d8d2b8;
  color: #333;
  font-size: 14px;
  line-height: 1.7;
}
.thread-header { background: #3d4a2a; color: #fff; padding: 12px 16px; }
.thread-header a { color: #e3dcc0; font-size: 0.85rem; text-decoration: none; }
.thread-header a:hover { text-decoration: underline; }
.thread-header h1 { margin-top: 6px; font-size: 1.05rem; line-height: 1.5; }
.thread-body { max-width: 800px; margin: 0 auto; padding: 12px; }
.post-container {
  background: #fff; border: 1px solid #a89f7e;
  margin-bottom: 4px; padding: 6px 12px;
}
.id-line { font-size: 0.78rem; color: #666; margin-bottom: 3px; }
.user-name { color: #1f4e79; }
.post-content { font-size: 16px; font-weight: bold; white-space: pre-wrap; word-break: break-word; }
.anker { color: #1f4e79; text-decoration: none; }
.anker:hover { text-decoration: underline; }
.thread-nav {
  display: flex; align-items: stretch;
  padding: 16px; border-top: 1px solid #ccc; gap: 10px;
}
.nav-card {
  display: flex; flex-direction: column; justify-content: center;
  flex: 1; min-width: 0; padding: 10px 14px;
  border: 1px solid #ccc; border-radius: 6px;
  background: #fff; text-decoration: none; color: #333;
}
.nav-card:hover:not(.nav-disabled) { background: #f5f5f5; }
.nav-disabled { opacity: 0.25; pointer-events: none; }
.nav-direction { font-size: 0.72rem; color: #999; margin-bottom: 4px; }
.nav-title {
  font-size: 0.88rem; font-weight: bold;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* 「記事一覧に戻る」7文字が1行で収まる幅。90px では3行に折り返していた
   （2026-09-14、ユーザーのスクリーンショットで発覚）。文言を削ると情報が
   減るので枠を広げ、nowrap で止める。前後のカードは flex:1 なので縮む。 */
.nav-index {
  flex: 0 0 118px; align-items: center; text-align: center;
}
.nav-next { text-align: right; }
.nav-index .nav-direction { font-size: 0.85rem; margin-bottom: 0; color: #555; white-space: nowrap; }
.thread-footer { text-align: center; padding: 12px 24px 24px; color: #888; font-size: 0.8rem; }
.related-articles {
  max-width: 800px; margin: 4px auto 16px; text-align: left;
  background: #fff; border: 1px solid #a89f7e; border-radius: 4px; padding: 12px 16px;
}
.related-label {
  font-size: 1rem; font-weight: bold; color: #333;
  border-left: 5px solid #3d4a2a; 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: #1f4e79;
  text-decoration: none; font-size: 0.9rem; line-height: 1.6;
}
.related-list li a:hover { text-decoration: underline; background: #f4f1e6; }
.thread-header { border-bottom: 4px solid #b8963e; }
.thread-footer { color: #5f5843; }
