/* ===== 全体 ===== */
body {
  font-family: sans-serif;
  background: #f3f3f3;
  padding: 20px;
}

/* ===== フィルターエリア ===== */
.filters {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 16px;
}

/* 各プルダウンのまとまり */
.select-group {
  flex: 1 1 0;
  min-width: 0;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}

/* タイトル */
.select-title {
  padding-left: 1px;
  font-size: 15px;
  font-weight: 600;
  color: #444;
}

/* ===== カスタムセレクト ===== */

/* 表示部分 */
.select-display {
  width: 100%;
  box-sizing: border-box;
  background-color: #fff;
  padding: 6px 24px 6px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
}

/* ▼ 矢印 */
.select-display::after {
  content: "▼";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  opacity: 0.6;
  pointer-events: none;
}

/* ドロップダウン本体 */
.select-dropdown {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  z-index: 100;
  display: none;
  max-height: 300px;
  overflow-y: auto;
}

/* ドロップダウン項目 */
.select-dropdown > div {
  padding: 6px 8px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}

.select-dropdown > div:hover {
  opacity: 0.8;
}

/* ===== リセットボタン ===== */
#resetFilters {
  height: 32px;
  padding: 0 12px;
  cursor: pointer;
  align-self: flex-end;
}

/* ===== テーブル ===== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  border: 2px solid #000;
  table-layout: fixed;
}

th:nth-child(1) { width: 8%; }
th:nth-child(2) { width: 21%; }
th:nth-child(3) { width: 33%; }
th:nth-child(4) { width: 13%; }
th:nth-child(5) { width: 25%; }

th,
td {
  border: 1px solid #000;
  padding: 6px 8px;
  text-align: left;
}

td.date {
  white-space: normal;
  word-break: break-word;
}

/* ===== リンク ===== */
a {
  color: #000;
  text-decoration: none;
}

a:hover {
  color: #000;
  text-decoration: none;
}

/* ===== スマホ対応 ===== */
@media (max-width: 600px) {
  .filters {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .select-group {
    width: 100%;
    max-width: 220px;
  }

  #resetFilters {
    order: 999;
    width: 100%;
    max-width: 260px;
    height: 48px;
    font-size: 16px;
    margin-top: 12px;
  }
}
