table {
    width: 90%;
    max-width: 1700px;
    margin-left: 20px;
    margin-right: 20px;
    border-collapse: collapse;
}
table, th, td {
    border: 1px solid #ddd;
    max-width: 370px;
}
th, td {
    padding: 8px;
    text-align: left;
}
th {
    background-color: #f2f2f2;
    text-align: center;
}
/* キャラクター */
th[data-column="character"],
td[data-column="character"] {
max-width: 250px;
text-overflow: ellipsis;
white-space: nowrap;
}
/* キャラクター名 */
th[data-column="character-name"],
td[data-column="character-name"] {
  display: none;
  max-width: 400px;
  min-width: 150px;
  width: 300px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
/* 復刻回数列の最大幅を設定 */
th[data-column="count"],
td[data-column="count"] {
max-width: 370px;
text-overflow: ellipsis;
white-space: nowrap;
text-align: center;
}
/* 日数列の最大幅を設定 */
th[data-column="days"],
td[data-column="days"] {
max-width: 150px;
text-overflow: ellipsis;
white-space: nowrap;
text-align: center;
}

/* 備考列の最大幅を設定 */
th[data-column="memo"],
td[data-column="memo"] {
max-width: 370px;
min-width: 130px;
text-overflow: ellipsis;
white-space: nowrap;
}

/* 開始日列の最大幅を設定 */
th[data-column="date"],
td[data-column="date"] {
max-width: 370px; 
text-overflow: ellipsis;
white-space: nowrap;
}
.date-cell {
    border-right: none;
}

/* テキストが溢れた場合の表示設定 */
.column-character, .column-type, .column-date {
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 開始日列のスタイル */
.date-cell {
    border-right: none;
}

.merged-header {
    border: 1px solid ddd;
    text-align: center;
}
/* 最後の列の右側に罫線を追加 */
tbody tr td:last-child {
    border-right: 1px solid ddd;
}

/* ソート */
.sort-link {
text-decoration: none;
color: black;
font-weight: bold;
margin: 0 5px;
}
.icon {
    display: inline-block;
    font-size: 1.2em;
}
.sort-asc .icon::before {
    content: '△▼';
}
.sort-desc .icon::before {
    content: '▲▽';
}
.center-icon-cell {
text-align: center;
}
.center-icon {
    display: block;
    margin: 0 auto;
    width: 50px;
    height: 50px;
    border-radius: 10%;
}
/* 全体のコンテナ */
.filter-bar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 15px 0 25px 15px;
  gap: 8px;
}

/* 1行目（チェックボックス） */
.toggle-name {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 2行目（ラジオボタン群） */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ラベル調整（見やすく） */
.stylish-radio,
.toggle-name label {
  font-size: 0.95rem;
}


/* スマホ用のレイアウト */
@media screen and (max-width: 768px) {
    table {
        width: 90%;
        margin-left: 10px;
    }
}