body{
  margin:0;
  background:#f5f5f5;
  color:#222;
  font-family:
    "Hiragino Sans",
    "Noto Sans JP",
    sans-serif;
}

.page{
  padding:16px;
}

h1{
  margin:0 0 18px 0;
  font-size:32px;
  line-height:1.2;
}

.search-panel{
  background:#fff;
  border:1px solid #d0d0d0;
  border-radius:18px;
  padding:18px;
  margin-bottom:18px;
  box-shadow:0 1px 3px rgba(0,0,0,0.05);
}

.search-grid{
  display:grid;
  grid-template-columns:
    repeat(auto-fit, minmax(240px, 1fr));
  gap:16px;
}

.search-grid label{
  display:flex;
  flex-direction:column;
  gap:8px;
  font-size:14px;
  font-weight:600;
}

.search-grid input,
.search-grid select{
  height:46px;
  border:1px solid #bdbdbd;
  border-radius:14px;
  padding:0 14px;
  font-size:16px;
  background:#fff;
}

.search-options{
  display:flex;
  flex-wrap:wrap;
  gap:18px;
  margin-top:18px;
  font-size:15px;
}

.search-options label{
  display:flex;
  align-items:center;
  gap:6px;
}

.count{
  margin-bottom:12px;
  font-size:15px;
  color:#555;
}

.table-wrap{
  overflow-x:auto;
  background:#fff;
  border:1px solid #d0d0d0;
  border-radius:18px;
  box-shadow:0 1px 3px rgba(0,0,0,0.05);
  position:relative;
}

table{
  min-width:1600px;
}

th:first-child,
td:first-child{
  position:sticky;
  left:0;
  z-index:2;
  background:#fff;
}

thead th{
  position:sticky;
  top:0;
  z-index:3;
}

thead th:first-child{
  z-index:4;
}

th:first-child,
td:first-child{
  box-shadow:2px 0 4px rgba(0,0,0,0.06);
}

table{
  width:100%;
  border-collapse:collapse;
  font-size:14px;
  background:#fff;
}

thead{
  background:#f0f0f0;
}

th{
  padding:12px 10px;
  border-bottom:1px solid #d6d6d6;
  border-right:1px solid #e0e0e0;
  text-align:center;
  white-space:nowrap;
  font-size:14px;
}

td{
  padding:10px 12px;
  border-bottom:1px solid #e2e2e2;
  border-right:1px solid #ededed;
  vertical-align:top;
  line-height:1.5;
}

td:nth-child(2),
th:nth-child(2){
  white-space: nowrap;
  min-width: 110px;
}

tbody tr:hover{
  background:#fafcff;
}

.name-cell{
  min-width:220px;
}

.name-link{
  color:#1a56d6;
  text-decoration:none;
  font-weight:700;
  font-size:15px;
}

.name-link:hover{
  text-decoration:underline;
}

.reading{
  margin-top:4px;
  color:#666;
  font-size:13px;
}

.role-cell{
  text-align:center;
  white-space:nowrap;
  font-size:14px;
}

.empty{
  color:#bbb;
}

@media (max-width: 768px){

  .page{
    padding:12px;
  }

  h1{
    font-size:28px;
  }

  .search-grid{
    grid-template-columns:1fr;
  }

  table{
    font-size:13px;
  }

  th,
  td{
    padding:9px 8px;
  }
}

.meta-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(160px, 1fr));
  gap:10px;
  margin-top:18px;
}

.meta-grid div{
  background:#f7f7f7;
  border:1px solid #ddd;
  border-radius:12px;
  padding:10px 12px;
  font-size:14px;
}

.meta-label{
  display:block;
  color:#666;
  font-size:12px;
  margin-bottom:4px;
}

td:nth-child(4),
th:nth-child(4),
td:nth-child(5),
th:nth-child(5),
td:nth-child(6),
th:nth-child(6){
  white-space: nowrap;
  min-width: 110px;
}

.top-nav{
  margin-bottom:18px;
}

.menu-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  min-height:42px;
  padding:0 18px;

  background:#f3f3f3;
  border:1px solid #8f8f8f;
  border-radius:12px;

  color:#222;
  font-size:15px;
  font-weight:600;
  text-decoration:none;

  transition:background 0.15s;
}

.menu-button:hover{
  background:#ececec;
}

.menu-button:active{
  transform:translateY(1px);
}