/* コンテンツ枠調整 */
.post-type-archive-canoe-post #content-inner {
  max-width: 1400px;
  margin-bottom: 80px;
}

/* カスタム投稿タイプアーカイブページ テーブル形式スタイル */

/* ウィジェットエリア */
.custom-archive-widget-area {
    margin-bottom: 40px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.custom-archive-widget-area .widget {
    margin-bottom: 20px;
}

.custom-archive-widget-area .widget:last-child {
    margin-bottom: 0;
}

.custom-archive-widget-area .widget-title {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4a90e2;
}

/* テーブルラッパー */
.custom-posts-table-wrapper {
  margin: 20px 0;
  overflow-x: auto;
}

/* メインテーブル */
.custom-posts-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  overflow: hidden;
}



/* テーブルボディ */
.custom-posts-table tbody tr {
  border-bottom: 1px solid #e5e5e5;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.custom-posts-table tbody tr:hover {
  background-color: #f1f1f1;
}

/* リンクがある行のスタイル */
.custom-posts-table tbody tr[data-href] {
  cursor: pointer;
}

.custom-posts-table tbody tr[data-href]:hover {
  background-color: #f1f1f1;
  box-shadow: 0 2px 8px rgba(74, 144, 226, 0.15);
}

.custom-posts-table tbody tr:last-child {
  border-bottom: none;
}

.custom-posts-table td {
  padding: 12px;
  vertical-align: middle;
  font-size: 16px;
  line-height: 1.4;
}

/* 各列のスタイル */
.custom-genre {
  width: 12%;
  min-width: 180px;
  text-align: center;
}

.custom-title {
  width: 58%;
  font-weight: 500;
}

.custom-title a {
  color: #4a90e2;
  text-decoration: none;
  transition: color 0.3s ease;
}

.custom-title a:hover {
  color: #357abd;
  text-decoration: underline;
}

.custom-date {
  width: 20%;
  min-width: 240px;
  font-size: 14px !important;
  color: #666;
}

.custom-staff {
  width: 10%;
  min-width: 100px;
  font-weight: 500;
  font-size: 12px !important;
  color: #666;
}

/* ジャンルタグスタイル */
.genre-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 140px;
}

/* ジャンル別の色分け */
.genre-blog {
  background: #e60012;
}

.genre-info {
  background: #00b900;
}

.genre-product {
  background: #1e73be;
}

.genre-club {
  background: #f19e39;
}


/* 投稿がない場合 */
.no-posts {
  text-align: center;
  padding: 60px 20px;
  background: #f9f9f9;
  border-radius: 12px;
  margin: 40px 0;
}

.no-posts h2 {
  color: #333;
  margin-bottom: 20px;
  text-align: center;
}

.no-posts p {
  color: #666;
  font-size: 1.1rem;
}


/* レスポンシブデザイン */
@media screen and (max-width: 1023px) {
  tr.custom-post-row {
    padding: 16px 0;
  }

  .custom-posts-table tbody tr {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .custom-posts-table td {
    padding: 4px;
    font-size: 14px;
  }

  td.custom-title {
    width: calc(100% - 180px);
  }

  .custom-date {
    margin-left: 180px;
    font-size: 11px;
  }
}



@media screen and (max-width: 639px) {
  td.custom-date {
    width: 100%;
  }

  td.custom-staff {
    margin-left: 180px;
    width: 100%;
  }
}



@media screen and (max-width: 480px) {
  .custom-posts-table tbody tr {
    flex-direction: column;
  }

  td.custom-date,
  td.custom-staff {
    margin-left: 0;
  }

  td.custom-genre {
    text-align: left;
  }

  td.custom-title,
  td.custom-date,
  td.custom-staff {
    width: 100%;
  }
} 