    .community-wrap { max-width: 800px; margin: 1rem auto; padding: 0 1rem; background-color: #fffcfa;}
    .post-form { margin-bottom: 2rem; padding: 1rem; border: 1px solid #ddd; border-radius: 8px; }
    .post-form input, .post-form textarea { width: 100%; margin-bottom: 0.5rem; padding: 0.5rem; }
    .post-form button { padding: 0.5rem 1.5rem; }
    .comment-item { padding: 1rem 0; border-bottom: 1px solid #eee; }
    .comment-meta { font-size: 0.85rem; color: #666; margin-bottom: 0.3rem; }
    .comment-nickname { font-weight: bold; }
    .comment-date { margin-left: 0.5rem; }
    .comment-content { white-space: pre-wrap; line-height: 1.6; }
    .admin-delete { font-size: 0.8rem; color: #c00; cursor: pointer; margin-left: 1rem; }

.reply-btn {
  color: #0066cc;
  cursor: pointer;
  margin-left: 0.5rem;
  font-size: 0.85rem;
}
.reply-btn:hover { text-decoration: underline; }
.replies { margin-top: 0.3rem; background-color: #ffffff;}

.like-btn {
  cursor: pointer;
  margin-left: 0.5rem;
  color: #666;
  user-select: none;
}
.like-btn.liked {
  color: #e0245e;
  font-weight: bold;
}
.like-btn:hover {
  color: #e0245e;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: white;
  font-size: 0.85rem;
  font-weight: bold;
  margin-right: 6px;
  vertical-align: middle;
  flex-shrink: 0;
}

.comment-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.edit-btn {
  color: #0066cc;
  cursor: pointer;
  margin-left: 0.5rem;
  font-size: 0.85rem;
}
.edit-btn:hover { text-decoration: underline; }

/* 返信の入れ子を線でつなぐ */
.replies {
  margin-left: 18px;
  padding-left: 14px;
  border-left: 2px solid #e5e5e5;
  margin-top: 4px;
}

/* 最上位の投稿には線を付けない */
.comment-item > .replies {
  margin-top: 6px;
}

/* 返信の間隔を少し調整 */
.comment-item {
  margin-bottom: 4px;
}

/* 線の色を少し柔らかく（任意） */
.replies {
  /* border-left-color: #ddd; */
  margin-left: 10px;      /* 以前より小さく */
  padding-left: 8px;      /* 以前より小さく */
  border-left: 2px solid #e5e5e5;
  margin-top: 4px;
}

@media (max-width: 768px) {
  .replies {
    margin-left: 2px;
    padding-left: 2px;
  }
  h1 {font-size: 1.5em; margin: 0 0;}
  p {font-size: 0.9em;}
}

.comment-image {
  margin-top: 0.5rem;
}
.comment-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.comment-header {
  padding: 4px 0;
  border-radius: 6px;
}
.comment-header:hover {
  background-color: #fafafa;
}

/* 展開時のアニメーション */
.replies {
  animation: slideDown 0.25s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}