.site-header {
  position: fixed;
  top: 0;
  width: 100vw;
  background: white;
  z-index: 999;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}


.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
}
.menu-icon {
  font-size: 2rem;
  cursor: pointer;
  display: none;
}

.nav-list {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-list li a {
  text-decoration: none;
  font-weight: bold;
  color: #333;
}
/* レスポンシブ */
@media screen and (max-width: 768px) {
  .menu-icon {
    display: block;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    background: white;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    padding: 10px 0;
  }

  .site-nav.active .nav-list {
    display: flex;
  }
}

/* PC表示時のナビメニュー横並び修正 */
/* ナビゲーションをPCで横並びに強制 */
@media screen and (min-width: 769px) {
  .site-nav .nav-list {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .site-nav .nav-list li {
    margin-left: 20px;
  }

  .site-nav .nav-list li a {
    text-decoration: none;
    font-size: 0.85rem;  /* ← ここで調整 */
    font-weight: bold;
    color: #333;
  }
}



  .menu-icon {
    display: none;
  }

  .site-nav {
    display: flex;
    align-items: center;
  }
}

/* PCナビ横並び 最優先スタイル */
@media screen and (min-width: 769px) {
  nav.site-nav ul.nav-list {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-end !important;
    align-items: center !important;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  nav.site-nav ul.nav-list > li {
    margin-left: 20px;
  }

  nav.site-nav ul.nav-list > li > a {
    text-decoration: none;
    font-weight: bold;
    color: #333;
    display: block;
    padding: 10px 15px;
  }

  .menu-icon {
    display: none !important;
  }
}
@media screen and (max-width: 768px) {
  .menu-icon {
  display: block !important;
  cursor: pointer;
  position: absolute;
  top: 15px;
  right: 20px;
  z-index: 1001;
}


  .nav-list {
    display: none;
    flex-direction: column;
    background: white;
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    padding: 10px 0;
    z-index: 999;
  }

  .site-nav.active .nav-list {
    display: flex !important;
    align-items: flex-end !important; ← 追加（右寄せ）
    justify-content: flex-start;
  }
  .nav-list li {
    padding: 10px 20px;
    text-align: right; ← 追加
    width: 100%;
  }

  .nav-list li a {
    display: block;
    font-size: 0.9rem;  /* ← ここで調整 */
    width: 100%;
    text-align: right; ← 追加
  }

}


/* 共通ページラッパー */
.common-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* 投稿リスト（ULやDIVでも可） */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* 投稿アイテム（個別） */
.post-item {
  border-bottom: 1px solid #ccc;
  padding-bottom: 1rem;
}

/* タイトル */
.post-title {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

/* サムネイル */
.post-thumbnail img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* 抜粋 */
.post-excerpt {
  font-size: 1rem;
  color: #555;
}

/* 404ページ用の中央寄せ＋余白調整 */
.not-found {
  max-width: 600px;
  margin: 4rem auto; /* 上下4rem、左右中央寄せ */
  padding: 2rem;
  text-align: center;
}

.not-found .page-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.not-found a.back-home {
  display: inline-block;
  margin-top: 1.5rem;
  color: #0073aa;
  text-decoration: underline;
}

/* 共通の見出しを中央寄せ */
.common-page h1,
.common-page h2,
.common-page .archive-title,
.common-page .search-title {
  text-align: center;
  margin-bottom: 1.5rem;
}

/* 抜粋・本文左寄せ（スマートに整列） */
.post-excerpt,
.news-content {
  text-align: left;
  line-height: 1.6;
}

/* お知らせ記事 */
.news-item {
  border-bottom: 1px solid #ddd;
  padding: 1rem 0;
}

.news-date {
  display: block;
  margin-bottom: 0.5rem;
  color: #888;
}

/* カテゴリページ見出し */
.common-page .page-title {
  text-align: center;
  font-size: 2rem;
}
