
/* ------------------------------
 記事 detail.html用
------------------------------ */
#cms-container{
  padding: 110px 0 60px;
}
#cms-container .wrapper{
  width: 1100px;
  margin: 0 auto;
  position: relative;
}
#cms-container h1{
  margin: 30px 0;
  text-align: center;
  font-size: 38px;
  color: #877c5e;
}
.category-badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.8rem;
  color: #fff;
  background-color: #999; /* デフォルトの色 */
  border-radius: 4px;
  margin-right: 10px; /* 日付との隙間 */
  vertical-align: middle;
}
.category-badge.news {
  background-color: #3b3e3d;
}
.category-badge.blog {
  background-color: #c1b59e;
}

@media screen and (max-width: 860px) {
  #cms-container {
    padding: 50px 20px;
  }
  #cms-container .wrapper{
    width: 100%;
  }
  #cms-container h1{
    font-size: 28px;
  }
}


/* =========================================
   detail.html&archive.htmlのスタイル
   ========================================= */
.reset-btn {
  display: inline-block;
  padding: 8px 20px;
  background-color: #f0f0f0; /* 薄いグレー */
  color: #333;
  text-decoration: none;
  border-radius: 20px; /* 丸角 */
  font-size: 0.9rem;
  transition: background-color 0.3s;
  margin: 50px auto 20px;
}

.reset-btn:hover {
  background-color: #ddd; /* ホバーで少し濃く */
}



/* =========================================
   detail.htmlのスタイル
   ========================================= */
/* --- ヘッダー周り --- */
.post-header {
  margin-bottom: 40px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 20px;
  position: relative;
  min-width: 100%;
  z-index: 1;
}

.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.post-date {
  color: #888;
  margin-right: 15px;
  font-family: sans-serif;
}

/* カテゴリーエリア（バッジが並ぶ場所） */
.category-area {
  display: flex;
  flex-wrap: wrap;
}
/* ※ .news-category などの色設定は一覧ページのCSSがそのまま効きます！ */


.post-title {
  font-size: 1.8rem;
  margin: 0;
  line-height: 1.4;
}

/* --- 本文エリア（microCMSのリッチエディタスタイル） --- */
.post-body {
  line-height: 1.8;
  font-size: 1rem;
}

/* 本文内の画像はレスポンシブにする */
.post-body img {
  max-width: 100%;
  height: auto;
}

/* --- 戻るボタン --- */
.post-footer {
  margin-top: 60px;
  text-align: center;
}

.back-btn {
  display: inline-block;
  padding: 10px 30px;
  background-color: #333;
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  transition: opacity 0.3s;
}
.back-btn:hover {
  opacity: 0.8;
}

#post-body {
  font-size: 16px;
  line-height: 1.8;      /* 行間（少し広めが読みやすい） */
  color: #333;           /* 文字色（真っ黒より少しグレーが目に優しい） */
  word-wrap: break-word; /* 長い英単語などが枠からはみ出るのを防ぐ */
}
/* 2. 段落 (pタグ) */
#post-body p {
  margin-bottom: 1.5em; /* 段落ごとの余白 */
}
/* 3. 見出し (h2, h3, h4...) 
/* 大見出し (h2) - 左に線が入るデザイン */
#post-body h2 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-top: 40px;      /* 上の余白を大きく取る */
  margin-bottom: 20px;
  padding-left: 15px;    /* 左の余白 */
  border-left: 5px solid #c1b59e; /* 左の線（サイトの色に合わせて変更OK） */
  background-color: #f4f4f4; /* 薄い背景色（お好みで削除OK） */
  padding-top: 10px;
  padding-bottom: 10px;
}
/* 中見出し (h3) - 下線のみのシンプルデザイン */
#post-body h3 {
  font-size: 1.3rem;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 15px;
  border-bottom: 2px solid #ddd; /* 下線 */
  padding-bottom: 5px;
}
/* 小見出し (h4) - 太字のみ */
#post-body h4 {
  font-size: 1.1rem;
  font-weight: bold;
  margin-top: 25px;
  margin-bottom: 10px;
}
/* 4. 引用 (blockquote) */
#post-body blockquote {
  position: relative;
  margin: 20px 0;
  padding: 15px 20px;
  background-color: #f9f9f9; /* 背景色 */
  border-left: 4px solid #ccc; /* 左のグレーの線 */
  color: #666; /* 文字色を少し薄く */
  font-style: italic; /* 斜体にする */
}
/* 5. リスト (ul, ol) */
#post-body ul {
  list-style-type: disc !important; /* 黒丸を強制的に復活 */
  margin-bottom: 20px;
  padding-left: 1.5em; /* 左にインデント（これがないと点が画面外に出ることがある） */
}
#post-body ol {
  list-style-type: decimal !important; /* 数字（1. 2. 3.）を強制的に復活 */
  margin-bottom: 20px;
  padding-left: 1.5em; /* 左にインデント */
}
#post-body li {
  margin-bottom: 0.5em; /* 項目ごとの行間を少し空ける */
}
/* ネスト（入れ子）されたリストの見た目調整 */
#post-body ul ul {
  list-style-type: circle !important; /* 白丸 */
}
/* 6. リンク (a) */
#post-body a {
  color: #007bff; /* リンク色 */
  text-decoration: underline;
}
#post-body a:hover {
  text-decoration: none; /* マウスを乗せたら下線を消す */
  opacity: 0.8;
}
/* 7. 画像 (img) */
#post-body img {
  max-width: 100%; /* 親要素からはみ出さないようにする */
  height: auto;    /* アスペクト比を維持 */
  margin: 20px 0;  /* 上下の余白 */
  box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* ほんのり影をつける */
}
/* 8. テーブル (table) の修正 */
#post-body table {
  width: 100%;             /* 横幅いっぱいに広げる */
  border-collapse: collapse; /* 枠線を重ねて1本にする（隙間をなくす） */
  margin: 20px 0;          /* 上下の余白 */
  font-size: 0.9em;        /* 表の中は文字を少し小さくするとバランスが良い */
}
/* テーブルのセル（見出しth と 中身td 共通） */
#post-body th,
#post-body td {
  border: 1px solid #ccc;  /* 薄いグレーの枠線を追加 */
  padding: 12px;           /* セル内の余白 */
  vertical-align: top;     /* 文字を上揃えに */
}
/* 見出しセル (th) だけのデザイン */
#post-body th {
  background-color: #f2f2f2; /* 薄いグレーの背景色 */
  font-weight: bold;         /* 太字 */
  text-align: left;          /* 左揃え（中央揃えが良ければ center に） */
  white-space: nowrap;       /* 見出しはなるべく改行させない（スマホ対応で邪魔なら削除OK） */
  width: 30%;                /* 見出しの幅を適度に固定（お好みで） */
}
/* ストライプ（しましま）デザインにしたい場合（オプション） */
#post-body tr:nth-child(even) {
  background-color: #fafafa;
}
em {
  font-style: italic;
}


/* =========================================
   archive.htmlのスタイル
   ========================================= */
h2#page-title{
  font-size: 150%;
  font-family: "shippori-mincho", sans-serif;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
}

/* 個別のアイテム */
.news-item {
  display: flex;       /* 横並びにする */
  align-items: center; /* 上下中央揃え */
  padding: 20px 15px;
  border-bottom: 1px solid #ddd;
}

/* 記事詳細へのリンク（タイトル） */
.news-link {
  flex: 1;             /* 残りの幅いっぱいを使う */
  text-decoration: none;
  color: #333;
  display: block;      /* クリック範囲確保 */
}

/* カテゴリーのリンクっぽさを消す（ボタンっぽく見せる） */
a.news-category {
  text-decoration: none;
  cursor: pointer;
  /* 以前のspanのスタイルを継承していればそのままでOK */
}

a.news-category:hover {
  opacity: 0.8; /* ホバーした時にちょっと薄くする */
}

/* カテゴリーなどの左側エリア */
.news-meta {
  display: flex;
  align-items: center;
  margin-right: 20px;
  min-width: 140px; 
}

.news-date {
  font-size: 0.9rem;
  font-weight: 800;
  color: #c1b59e;
  margin-right: 10px;
}

.news-category {
  font-size: 0.75rem;
  font-family: "noto-sans-cjk-jp", sans-serif;
  font-weight: 400;
  background-color: #333;
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 5px; /* 右側に5pxの隙間 */
  margin-bottom: 5px; /* スマホで折り返した時用 */
}
.news-category:last-child {
  margin-right: 0;
}

/* お知らせ (news) ：グレー */
.news-category.news {
  background-color: #3b3e3d; /* 一般的なグレー */
}

/* ブログ (blog) ：薄茶色 */
.news-category.blog {
  background-color: #c1b59e; /* カフェラテのような薄茶色 */
  
  /* もし薄茶色だと白文字が読みにくい場合は、文字色を濃くします */
  /* color: #5d4037; */ 
}

/* ホバーした時に少し濃くする演出（共通） */
.news-category:hover {
  opacity: 0.8;
}

/* タイトル部分 */
.news-title {
  font-size: 1rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.8;
  
  /* 長文対応：はみ出た部分は...にするなら以下を追加 */
  /*  */
}

.reset-btn {
  display: inline-block;
  padding: 8px 20px;
  background-color: #f0f0f0; /* 薄いグレー */
  color: #333;
  text-decoration: none;
  border-radius: 20px; /* 丸角 */
  font-size: 0.9rem;
  transition: background-color 0.3s;
  margin: 50px auto 20px;
}

.reset-btn:hover {
  background-color: #ddd; /* ホバーで少し濃く */
}

/* --- スマホ対応（レスポンシブ） --- */
@media (max-width: 768px) {
  .news-item a {
    flex-direction: column; /* 縦並びにする */
    align-items: flex-start; /* 左寄せ */
  }
  
  .news-meta {
    margin-bottom: 8px; /* 日付とタイトルの間に隙間 */
  }
}





















