section.newest {
  margin: 0 auto;
  margin-top: 48px;
}

.newest-post-item {
  margin-bottom: 15px;
}

.newest-post-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

h2.newest-article-title {
  margin-bottom: 32px;
}

.new-item-container {
  display: flex;
  background: #fff;
  border-radius: 5px;
  border: 2px solid #dbd8d8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  height: 120px;
  min-height: 120px;
}

.newest-post-item:first {
  margin-top: 32px; 
}

.new-item-container:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.new-item-container:hover h3.item-title,
.new-item-container:hover p.item-excerpt {
  color: #6FA3D2;
}

.item-thumbnail {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  overflow: hidden;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.item-thumbnail .thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-right: 2px solid #dbd8d8;
}

.item-content {
  flex: 1;
  padding: 12px 15px;
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 0;
}

h3.item-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  padding-bottom: 8px;
  margin-bottom: 8px;
  color: #333;
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: break-word;
  position: relative;
}

h3.item-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, var(--btn-color) 0%, transparent 100%);
}

p.item-excerpt {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
  padding-right: 80px;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  max-height: 2.8em;
}

p.item-category {
  position: absolute;
  bottom: 12px;
  right: 15px;
  text-align: center;
  font-size: 10px;
  margin: 0;
  padding: 2px 6px;
  border: 1px solid #dbd8d8;
  border-radius: 3px;
  background-color: rgba(255, 255, 255, 0.95);
  font-weight: bold;
  white-space: nowrap;
  z-index: 2;
}

/* カテゴリー別の色設定 */
p.item-category-spiritual {
  border-color: var(--category-spiritual);
  background-color: var(--category-spiritual);
}

p.item-category-positive {
  border-color: var(--category-positive);
  background-color: var(--category-positive);
}

p.item-category-health {
  border-color: var(--category-health);
  background-color: var(--category-health);
}


/* レスポンシブ対応 */
@media (max-width: 768px) {
  .new-item-container {
    height: 110px;
    min-height: 110px;
  }
  
  .item-thumbnail {
    width: 110px;
    height: 110px;
    flex-shrink: 0;
  }
  
  .item-content {
    padding: 8px 10px;
  }
  
  h3.item-title {
    font-size: 0.9rem;
    margin: 0;
    margin-bottom: 8px;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  p.item-excerpt {
    font-size: 0.75rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    line-height: 1.3;
    margin: 0;
    padding-right: 70px;
    max-height: 2.6em;
  }
  
  p.item-category {
    font-size: 9px;
    padding: 2px 5px;
    bottom: 6px;
    right: 10px;
  }

}

@media (max-width: 480px) {
  .new-item-container {
    height: 100px;
    min-height: 100px;
  }
  
  .item-thumbnail {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
  }
  
  .item-content {
    padding: 6px 8px;
  }
  
  h3.item-title {
    font-size: 0.85rem;
    margin: 0;
    margin-bottom: 6px;
    line-height: 1.15;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  p.item-excerpt {
    font-size: 0.7rem;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    line-height: 1.2;
    margin: 0;
    padding-right: 60px;
    max-height: 1.2em;
  }
  
  p.item-category {
    font-size: 8px;
    padding: 1px 4px;
    bottom: 5px;
    right: 8px;
  }
}