.card-list-page {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;

  width: 100%;
  margin: 32px 0;
  padding: 0 24px 40px;

  box-sizing: border-box;
}

/* 左サイド */
.card-side-area {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card-search-area,
.card-list-area,
.card-ad-area {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
}

.card-list-area {
  overflow-x: auto;
}

.search-row {
  margin-bottom: 16px;
}

.search-row label {
  display: block;
  font-weight: bold;
  margin-bottom: 6px;
}

.search-row input,
.search-row select {
  width: 100%;
  padding: 8px;
}

.search-btn {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #36b58b, #42c86b);
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}

.card-table {
  width: 100%;
  min-width: 1100px;
  border-collapse: collapse;
}

.card-table th,
.card-table td {
  border-bottom: 1px solid #ddd;
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.card-table th {
  background: #f2f5f8;
}

/* 広告 */
.ad-box {
  min-height: 300px;

  border: 2px dashed #ccc;
  border-radius: 12px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #999;
}

/* ソート可能カラム */
.sortable {
  position: relative;
  cursor: pointer;
  padding-right: 28px !important;
  white-space: nowrap;
  user-select: none;
}

.sortable::after {
  content: "▲▼";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 10px;
  pointer-events: none;
}

.sortable:hover {
  background: #f8fcfb;
}

/* 昇順 */
.sortable.asc::after {
  content: "▲";
  color: #36b58b;
  font-weight: bold;
}

/* 降順 */
.sortable.desc::after {
  content: "▼";
  color: #36b58b;
  font-weight: bold;
}

/* スマホ */
@media screen and (max-width: 900px) {

  .card-list-page {
    display: block;
    padding: 0 16px 40px;
  }

  .card-side-area {
    margin-bottom: 24px;
  }

}