/* ================================
   全ページ共通スタイル
=============================== */
/* 共通スタイル */
body {
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fefefe;
  margin: 0;
  padding: 0;
}

header h1 {
  text-align: center;
  font-size: 2rem; /* 好きなサイズに調整 */
  margin: 1rem 0;
}

main {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}
/* ------------------------------
   ナビゲーション
------------------------------ */

/* メニュー共通 */
nav.main-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem; /* メニュー間のスペース */
  flex-wrap: wrap; /* 画面が狭いときに折り返す */
  margin: 0 auto;
}

nav.main-menu a {
  text-decoration: none;
  color: #333;
  font-weight: normal; /* 全デバイスで同じ太さに */
  white-space: nowrap; /* 折り返さない文字列 */
}

/* PC用 (幅769px以上) */
@media (min-width: 769px) {
  nav.main-menu a {
    font-size: 16px;
  }
}

/* タブレット用 (481px～768px) */
@media (max-width: 768px) and (min-width: 481px) {
  nav.main-menu a {
    font-size: 14px;
  }
}

/* スマホ用 (480px以下) */
@media (max-width: 480px) {
  nav.main-menu a {
    font-size: 12px;
  }
}

/* ===== 投稿カード ===== */
.onelogbox {
  max-width: 100%;
  margin: 0 auto 1.8rem;
  padding: 1.2rem;
  box-sizing: border-box;

  background: #fff;
  border: 1px solid #000; /* ←黒で締める */
  border-radius: 10px;
  box-shadow: none; /* ←ミニマル */

  word-wrap: break-word;
  transition: 0.2s;
}

.onelogbox:hover {
  transform: translateY(-2px);
}

/* ===== 上の帯（線だけにする） ===== */
.onelogside {
  display: flex;
  align-items: center;
  justify-content: center;

  background: none; /* ←色削除 */

  padding: 0.6rem 0.8rem;
  margin: -1.2rem -1.2rem 0;

  border-bottom: 1px solid #000; /* ←ここ主役 */

  font-size: 0.8rem;
}

/* ===== 日付 ===== */
.onelogside .postdate {
  margin: 0;
  text-align: center;
  letter-spacing: 0.05em;
}

/* ★アクセント：ここだけブラウン */
.postdate a {
  display: inline-block;
  padding: 2px 8px;

  color: #8a5a2b;

  font-size: 0.75rem;
  letter-spacing: 0.05em;

  text-decoration: none;
  border-bottom: 1px solid #8a5a2b; /* ←さりげなく個性 */
}

.postdate a:hover {
  color: #000;
  border-bottom: 1px solid #000;
}

/* ===== 本文 ===== */
.comment {
  margin-top: 0.9rem;
  line-height: 1.9;
  font-size: 0.95rem;
}

/* ===== 画像 ===== */
.onelogbox img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0.6rem auto;
  border-radius: 4px;
}

/* ===== カテゴリ ===== */
.category ul.cattree {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0 0 1rem;
}

.category ul.cattree li {
  list-style: none;
}

.category ul.cattree a {
  display: inline-block;
  padding: 4px 10px;
  color: #8a5a2b;
  text-decoration: none;

  border: 1px solid #000;
  border-radius: 999px;

  font-size: 0.8rem;
  transition: 0.2s;
}

.category ul.cattree a:hover {
  background: #000;
  color: #fff;
}

/* ===== 更新履歴 ===== */
.small {
  margin-top: 1rem;
  padding: 0.8rem 1rem;

  background: #fff;
  border: 1px solid #000;
  border-radius: 8px;

  font-size: 0.85rem;
  line-height: 1.6;
}

.small li {
  list-style: none;
  padding: 4px 0;
  border-bottom: 1px solid #ddd;
}

.small li:last-child {
  border-bottom: none;
}

.small a {
  color: #8a5a2b;
  text-decoration: none;
}

.small a:hover {
  text-decoration: underline;
}

/* ===== カレンダー ===== */
.calendar-container {
  margin-top: 1.5rem;
  padding: 1rem;

  background: #fff;
  border: 1px solid #000;
  border-radius: 10px;

  font-size: 0.85rem;
}

.calendar-container th {
  color: #8a5a2b;
  border-bottom: 1px solid #000;
}

.calendar-container td {
  border-bottom: 1px solid #eee;
}

.calendar-container a {
  color: #8a5a2b;
}

.calendar-container a:hover {
  text-decoration: underline;
}

.calendar-container .today {
  color: #000;
  font-weight: bold;
}

/* ===== フッター ===== */
footer {
  text-align: center;
  padding: 1.5rem 1rem;
  margin-top: 2rem;

  border-top: 1px solid #000;
  background: #fff;

  font-size: 0.85rem;
}

footer .note {
  color: #777;
  font-size: 0.75rem;
}

footer a {
  color: #8a5a2b;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}


/* ===== カレンダー全体（余白削ってピッタリ） ===== */
.calendar-container {
  margin-top: 1.5rem;
  padding: 0.5rem; /* ←ここ小さく */

  background: #fff;
  border: 1px solid #000;
  border-radius: 8px;

  display: inline-block; /* ←幅を中身に合わせる */
}

/* テーブル */
.calendar-container table {
  border-collapse: collapse;
}

/* 曜日 */
.calendar-container th {
  padding: 4px 6px;
  font-weight: 500;
  color: #8a5a2b;
  border-bottom: 1px solid #000;
  font-size: 0.75rem;
}

/* 日付セル */
.calendar-container td {
  padding: 4px 6px;
  font-size: 0.8rem;
}

/* ===== 投稿ない日（リンクなし） ===== */
.calendar-container td:not(:has(a)) {
  color: #bbb; /* ←薄く */
}

/* ===== 土日（位置で指定） ===== */
.calendar-container th:nth-child(1),
.calendar-container td:nth-child(1),
.calendar-container th:nth-child(7),
.calendar-container td:nth-child(7) {
  background: #f5f5f5; /* ←薄グレー */
}

/* ===== 投稿ある日 ===== */
.calendar-container a {
  display: inline-block;
  width: 26px;
  height: 26px;
  line-height: 26px;

  text-align: center;
  border-radius: 6px;

  text-decoration: none;
  color: #8a5a2b;

  transition: 0.2s;
}

/* ホバー */
.calendar-container a:hover {
  background: #000;
  color: #fff;
}

/* ===== 今日 ===== */
.calendar-container .today {
  background: #f3e5d3; /* ←薄ブラウン */
  border-radius: 6px;
  font-weight: bold;
  color: #000;
}

