/* バイト戦士イエロー — thread.css */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: Helvetica, Verdana, "Hiragino Sans", "Meiryo", sans-serif;
  background: #fffde8;
  color: #1a1400;
  font-size: 14px;
  line-height: 1.7;
}
.thread-header {
  background: #f5c800;
  border-bottom: 3px solid #f5c800;
  padding: 12px 16px;
}
.thread-header a { color: #5c4d00; font-size: 0.85rem; text-decoration: none; }
.thread-header a:hover { text-decoration: underline; color: #1a1400; }
.thread-header h1 {
  margin-top: 6px; font-size: 1.05rem; line-height: 1.5; color: #1a1400;
  border-left: 5px solid #5c4d00; padding-left: 8px;
}
.thread-body { max-width: 900px; margin: 0 auto; padding: 12px 8px; }
.post-container {
  background: #ffffff; border: 1px solid #e8d050;
  border-left: 3px solid #f5c800;
  margin-bottom: 3px; padding: 6px 12px;
}
.post-container:nth-child(even) { background: #fffbee; }
.id-line { font-size: 0.78rem; color: #877a30; margin-bottom: 2px; }
.user-name { color: #c49a00; }
.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 #f5c800; gap: 10px;
}
.nav-card {
  display: flex; flex-direction: column; justify-content: center;
  flex: 1; min-width: 0; padding: 10px 14px;
  border: 1px solid #e8d050; border-radius: 6px;
  background: #fff9cc; text-decoration: none; color: #1a1400;
}
.nav-card:hover:not(.nav-disabled) { background: #f5c800; color: #1a1400; }
.nav-disabled { opacity: 0.25; pointer-events: none; }
.nav-direction { font-size: 0.72rem; color: #877a30; 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: #877a30; }
.thread-footer { text-align: center; padding: 12px 24px 24px; color: #877a30; font-size: 0.8rem; }

/* モバイル */
@media (max-width: 600px) {
  .thread-header { padding: 10px 12px; }
  .thread-header h1 { font-size: 0.95rem; }
  .thread-body { padding: 8px 4px; }
  .post-container { padding: 6px 8px; }
  .post-content { font-size: 0.9rem; }
  .thread-nav { padding: 12px 8px; gap: 6px; }
  .nav-card { padding: 8px 10px; }
  .nav-index { flex-basis: 72px; }
  .nav-title { font-size: 0.8rem; }
}

.related-articles {
  max-width: 900px; margin: 4px auto 16px; text-align: left;
  background: #ffffff; border: 1px solid #e8d050; border-radius: 4px; padding: 12px 16px;
}
.related-label {
  font-size: 1rem; font-weight: bold; color: #1a1400;
  border-left: 5px solid #f5c800; padding-left: 8px; margin-bottom: 8px;
}
.related-list { list-style: none; }
.related-list li { border-bottom: 1px dashed #e8d050; }
.related-list li:last-child { border-bottom: none; }
.related-list li a {
  display: block; padding: 9px 4px; color: #1a1400;
  text-decoration: none; font-size: 0.9rem; line-height: 1.6;
}
.related-list li a:hover { text-decoration: underline; background: #fffbee; }

.anker { color: #0055aa; text-decoration: none; }
.anker:hover { text-decoration: underline; }