/* フロントエンドの投稿一覧スタイル */
.tld-front-posts {
  list-style-type: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.tld-front-item {
  width: 360px;
  box-sizing: border-box;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #f9f9f9;
}

.tld-front-item:nth-child(3n) {
  margin-right: 0;
}

.tld-front-time,
.tld-front-tags {
  margin-top: 10px;
  font-size: 0.9em;
}

.tld-front-tags a {
  color: #0073aa;
  text-decoration: none;
  margin-right: 5px;
}

.tld-front-tags a:hover {
  text-decoration: underline;
}

/* ページングボタンのスタイル */
.tld-front-pager {
  text-align: center;
  margin-top: 20px;
}

.tld-front-pager .button {
  margin: 0 5px;
}

/* タグクラウドのスタイル */
.tld-front-tag-cloud {
  margin-bottom: 20px;
}

.tld-front-tag-cloud a {
  display: inline-block;
  text-decoration: none;
  color: #0073aa;
  padding: 5px 8px;
  border-radius: 4px;
  margin: 2px;
  transition: background-color 0.3s, color 0.3s;
}

.tld-front-tag-cloud a:hover {
  background-color: #e0f7fa;
  color: #00a0d2;
}

.tld-front-tag-cloud a.tld-tag-selected {
  background-color: #0073aa;
  color: #ffffff;
}

/* レスポンシブ対応 */
@media (max-width: 1200px) {
  .tld-front-item {
      width: 45%; /* 2つずつ表示 */
      margin-right: 5%;
  }

  .tld-front-item:nth-child(2n) {
      margin-right: 0;
  }
}

@media (max-width: 768px) {
  .tld-front-item {
      width: 100%; /* モバイルでは1行に1つ */
      margin-right: 0;
  }
}

/* タグクラウドのスタイル */
.tld-front-tag-cloud a.tld-tag-selected {
  background-color: #0073aa;
  color: #ffffff;
}
/* ローディングインジケーターのスタイル */
.tld-loading {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.2em;
  color: #0073aa;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

/* エラーメッセージのスタイル */
.tld-error {
  color: red;
  font-weight: bold;
  text-align: center;
  margin: 20px 0;
}

/* 関連投稿のスタイル */
.tld-related-posts {
  margin: 20px 0;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #f9f9f9;
}

.tld-related-posts-list {
  list-style-type: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tld-related-post-item {
  flex: 1 1 calc(33.333% - 10px); /* 3列表示 */
  box-sizing: border-box;
}

.tld-related-post-link {
  text-decoration: none;
  color: #0073aa;
  font-weight: bold;
}

.tld-related-post-link:hover {
  color: #00a0d2;
}

.tld-related-posts-view-all {
  margin-top: 15px;
  text-align: right;
}

.tld-view-all-link {
  text-decoration: none;
  color: #0073aa;
  font-weight: bold;
}

.tld-view-all-link:hover {
  color: #00a0d2;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .tld-related-post-item {
      flex: 1 1 100%; /* モバイルでは1列表示 */
  }
}
