#blog-list {
  max-width: 800px;
  margin: 2em auto;
  padding: 0 1em;
  font-family: "Helvetica Neue", sans-serif;
  font-weight: 500;
}

#blog-list h1 {
  font-size: 2em;
  margin-bottom: 1em;
  border-bottom: 2px solid #ccc;
  padding-bottom: 0.2em;
}

/* 各記事 */
#blog-list .blog-list-item {
  max-height: 140px;
  overflow: hidden;
  border-bottom: 1px solid #ccc;
  margin-bottom: 0.75em;
  padding-bottom: 0.75em;
}
/* 最初のアイテムの上にも線を引く */
#blog-list .blog-list-item:first-child {
  border-top: 1px solid #ccc;
  padding-top: 0.75em;
}

#blog-list .blog-item-inner {
  display: flex;
  gap: 1em;
  align-items: flex-start;
}

/* サムネイルあり */
#blog-list .thumb {
  width: 160px;
  height: 120px;
  background: #eee;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
}

#blog-list .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 6px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

/* サムネイルなし用のプレースホルダー */
#blog-list .thumb.placeholder {
  background-color: #ccc;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  width: 160px;
  height: 120px;
  border-radius: 6px;
}


/* テキストエリア */
#blog-list .text {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  max-height: 120px;
}

#blog-list .text h2 {
  font-size: 1.4em;
  font-weight: 600;
  margin: 0 0 0.2em;
}

/* タイトルの省略設定 */
#blog-list .text h2 a {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  word-break: break-word;
}

#blog-list .text time {
  color: #888;
  font-size: 0.9em;
  display: block;
  margin-bottom: 0.5em;
}

#blog-list .text p {
  display: -webkit-box;
  -webkit-line-clamp: 2;       /* 最大3行表示 */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
  max-height: 4.5em;           /* 1.5em × 3行分 */
  margin: 0;                   /* マージン調整 */
  white-space: normal;
}

/* 「続きを読む」リンクは本文とは別扱い */
#blog-list .text .readmore {
  margin-top: 0.5em;
}

#blog-list .text .readmore a {
  color: #0066cc;
  text-decoration: none;
}

#blog-list .text .readmore a:hover {
  text-decoration: underline;
}


#blog-list .text a {
  color: #0066cc;
  text-decoration: none;
}

#blog-list .text a:hover {
  text-decoration: underline;
}

/* ページネーション */
#blog-list .pagination {
  text-align: center;
  margin-top: 2em;
}

#blog-list .pagination ul {
  list-style: none;
  padding: 0;
  display: inline-flex;
  gap: 0.5em;
}

#blog-list .pagination li {
  display: inline;
}

#blog-list .pagination a {
  padding: 0.4em 0.8em;
  background: #f0f0f0;
  color: #333;
  border-radius: 4px;
  text-decoration: none;
}

#blog-list .pagination li.active a {
  background: #0066cc;
  color: white;
  font-weight: bold;
}

#blog-list .excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;       /* 最大3行表示 */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  color: #999 !important;
  font-size: 0.9em;
  margin: 0;
}

/* 本文抜粋部分の色をグレーに */
#blog-list .excerpt,
#blog-list .excerpt * {
  color: #999 !important;
}

#blog-list .date-and-category {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  color: #666;
}

#blog-list .post-categories a {
  display: inline-block;
  padding: 0.1em 0.4em;
  margin-right: 0.2em;
  font-size: 0.75em;
  color: #337ab7;
  border: 1px solid #337ab7;
  border-radius: 0.8em;
  background-color: transparent;
  text-decoration: none;
  line-height: 1.2;
  transition: all 0.2s ease-in-out;
}

#blog-list .post-categories a:hover {
  background-color: #337ab7;
  color: #fff;
  text-decoration: none;
}

/* スマホ対応 */
@media (max-width: 600px) {
  #blog-list .blog-list-item {
    max-height: 90px; /* 小さめに調整 */
    overflow: hidden;
  }
  #blog-list .text {
    max-height: 70px; /* サムネイルに合わせて調整 */
  }
  #blog-list .blog-item-inner {
    flex-direction: row;
    gap: 0.5em;
  }

  #blog-list .thumb {
    width: 100px;
    height: 75px;
    border-radius: 6px;
    aspect-ratio: 4 / 3;
  }
  /* サムネイルなし用のプレースホルダー */
  #blog-list .thumb.placeholder {
    width: 100px;
    height: 75px;
    border-radius: 6px;
  }
  #blog-list .text time {
    font-size: 0.8em; /* 少し小さめに */
    margin-bottom: 0.0em;
  }
  /* 本文抜粋の省略設定（修正済） */
  #blog-list .excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 1;       /* 1行に制限 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    max-height: 1.5em;           /* 1行分の高さ */
    white-space: normal;
    color: #999 !important;
    font-size: 0.8em;
    margin: 0;
  }
  #blog-list .excerpt {
    font-size: 0.9em; /* 抜粋テキストも小さめに */
  }
  #blog-list .text h2 {
    font-size: 1.1em; /* 元の1.4emから小さく */
    margin-bottom: 0.0em;
  }
  

}
