/* -----------------------------
   トピックスよう
----------------------------- */

/* 個別アイテム間のスペース */
.topic-item + .topic-item {
  margin-top: 56px;
  /* 1つめと2つめの間隔として約56px */
}

/* --------- タイトル＋日付行 のスタイル --------- */
/*
   .pages-header は h3（タイトル）と
   span.pages-item-date（日付）を横並びにし、
   下側に横線を引く。
*/
.topic-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  /* 下に1pxのボーダーを引く */
  border-bottom: 1px solid #272E91;
  /* ボーダーと本文の余白 */
  margin-bottom: 16px;
  /* ボーダーとテキストの距離を微調整 */
  padding-bottom: 4px;
}

/* タイトル部分 */
.topic-item-title {
  font-size: 1.5rem;
  /* 例：24pxくらい */
  font-weight: 500;
  margin: 0;
  line-height: 1.2;
}

/* 日付部分 */
.topic-item-date {
  font-size: 1rem;
  /* 例：16pxくらい */
  white-space: nowrap;
  /* タイトルとボーダーまでの余白を詰めたい場合は調整 */
  margin-left: 16px;
}

/* --------- 本文エリア --------- */
.topic-item-body {
  font-size: 1rem;
  /* 例：16pxくらい */
  line-height: 1.8;
  margin: 0;
  color: #272E91;
  /* 長いテキストが折り返すように */
  word-break: break-word;
  text-align: left;
}

.topic-item-body-imagebox {
  text-align: center;
  padding: 12px 0;
}

.topic-item-body img {
  width: 70%;
}

/* -----------------------------
   レスポンシブ設定（スマホ用）
----------------------------- */
@media screen and (max-width: 768px) {

  
  /* トピックヘッダー部分を縦並びに切り替え */
  .topic-header {
    flex-direction: column;
    align-items: flex-start;
  }

  /* 日付部分は左寄せにして少し余白をつける */
  .topic-item-date {
    margin-left: 0;
    margin-top: 8px;
    font-size: 0.875rem; /* 画面幅が狭いときは日付文字を少し小さく */
  }

  /* 本文のフォントサイズも読みやすく調整 */
  .topic-item-body {
    font-size: 0.875rem;
    line-height: 1.6;
  }
}