/* J歴史まとめ（rekishi-nanj.com）— index.css
 *
 * thread.css と同じく、運用中のLivedoorブログのスマホ版デザインを移植したもの。
 * デザイントークンの採取元は thread.css 冒頭のコメントを参照。
 * スマホ専用にはせずPCにも同じ見た目を適用する（要望）。
 */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Arial, "Hiragino Sans", "Meiryo", sans-serif;
  background: #4b6820;
  color: #444;
  font-size: 14px;
  line-height: 1.4;
  -webkit-text-size-adjust: 100%;
}

/* --- ブログタイトル帯 --- */
.site-header {
  background: #4b9620;
  padding: 10px;
  text-align: center;
}
.site-header h1 {
  font-size: 20px;
  font-weight: bold;
  color: #f9f6fe;
  line-height: 1.4;
}
.site-header h1 a { color: #f9f6fe; text-decoration: none; }
.site-header p { font-size: 12px; color: #dcefd0; margin-top: 2px; }

.container { max-width: 800px; margin: 0 auto; padding: 10px; }

.updated {
  text-align: right;
  font-size: 12px;
  color: #dcefd0;
  padding: 0 2px 8px;
}

/* --- 記事一覧（白カード） --- */
.thread-list {
  list-style: none;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.1);
  overflow: hidden;
}
.thread-item { border-bottom: 1px solid #efefef; }
.thread-item:last-child { border-bottom: none; }
.thread-item > a {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 12px 10px;
  text-decoration: none;
  color: #444;
}
.thread-item > a:hover { background: #f7f7f7; }
.thread-title {
  width: 100%;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.4;
}
.thread-date {
  font-size: 12px;
  color: #666;
  white-space: nowrap;
  align-self: flex-end;
  margin-top: 6px;
}

.no-articles { padding: 24px; text-align: center; color: #666; }

/* --- ページャ --- */
.pagination {
  display: flex; justify-content: space-between; align-items: stretch;
  gap: 10px;
  padding: 10px 0 0;
}
.page-card {
  display: flex; flex-direction: column; justify-content: center;
  flex: 1;
  padding: 10px;
  background: #fff;
  border: none;
  border-radius: 5px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.1);
  text-decoration: none;
  color: #444;
}
.page-card:hover { background: #f7f7f7; }
.page-empty { flex: 1; }
.page-direction { font-size: 13px; font-weight: bold; }
.page-label { font-size: 12px; color: #666; margin-top: 3px; }
.page-next { text-align: right; }
.page-info {
  flex: 0 0 auto; align-self: center;
  color: #efefef; font-size: 12px; white-space: nowrap;
}

.site-footer { text-align: center; padding: 12px; color: #dcefd0; font-size: 12px; }

@media (max-width: 600px) {
  .container { padding: 10px; }
  .thread-title { font-size: 15px; }
  .pagination { gap: 6px; }
}
