.sitemap-main {
  padding: 120px 0;
  background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
}

.sitemap-table-container {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin: 0 auto;
  max-width: 1200px;
}

.sitemap-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.sitemap-table thead {
  background: white;
  color: rgb(0, 0, 0);
}

.sitemap-table thead th {
  padding: 25px 30px;
  text-align: left;
  font-weight: 600;
  font-size: 1.1rem;
  border-bottom: 1px solid var(--primary-color, #e02020);
}

.sitemap-table tbody tr {
  border-bottom: 1px solid #f0f0f0;
}

.sitemap-table td {
  padding: 20px 30px;
  vertical-align: top;
}

.category-cell {
  width: 200px;
  position: relative;
}

.category-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.category-text h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: #1a1a1a;
}

.category-text span {
  font-size: 0.9rem;
  color: #666;
}

.pages-cell {
  padding-left: 40px;
}

.pages-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
}

/* --- カード型リンク（全体クリック） --- */
.page-item {
  border-radius: 8px;
  background: linear-gradient(135deg, #f8f9fa, #ffffff);
  transition: all 0.2s ease;
  overflow: hidden;
  height: 100%;
}

.page-link {
  display: block;
  width: 100%;
  height: 100%;
  padding: 12px 20px 12px 45px;
  text-decoration: none;
  font-weight: 500;
  color: #333;
  position: relative;
  transition: all 0.2s ease;
}

.page-link::before {
  content: '→';
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-color, #e02020);
  font-weight: bold;
}

.page-item a.page-link::before {
  content: '→';
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-color, #e02020);
  font-weight: bold;
}

.page-item:hover {
  background: var(--primary-color, #e02020);
}

.page-item:hover .page-link {
  color: white;
}

.page-item:hover a.page-link::before {
  color: white;
}

/* --- レスポンシブ --- */
@media (max-width: 1024px) {

  .sitemap-table thead th,
  .sitemap-table td {
    padding: 15px 20px;
  }

  .pages-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sitemap-main {
    padding: 60px 16px;
  }

  .sitemap-table-container {
    margin: 0 -16px;
    border-radius: 0;
    box-shadow: none;
  }

  .sitemap-table {
    font-size: 0.9rem;
  }

  .sitemap-table thead {
    display: none;
  }

  .sitemap-table tbody tr {
    display: block;
    margin-bottom: 24px;
    border-bottom: 1px solid #eee;
  }

  .sitemap-table td {
    display: block;
    padding: 12px 16px;
  }

  .category-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .category-text h3 {
    font-size: 1.1rem;
  }

  .category-text span {
    font-size: 0.9rem;
    color: #777;
  }

  .pages-cell {
    padding-left: 0;
  }

  .pages-list {
    grid-template-columns: 1fr;
  }

  .page-link {
    padding: 12px 20px 12px 40px;
  }

  .page-link::before {
    left: 10px;
  }

  .page-item {
    max-width: 100%;
    flex: 1 1 100%;
  }
}