﻿#table_container {
    position: relative;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    margin-left: 0;
    padding: 0;
}

.jcg_table_wrapper {
    transform-origin: top left;
    transition: transform 0.2s ease;
    width: fit-content;
    white-space: nowrap;
}


.jcg_table {
    text-shadow: 0px 0px 1px #000000;
    line-height: 0.8em;
    margin: auto auto;
    border-collapse: separate;
    border-spacing: 0;
}

.jcg_thead {
    position: sticky;
    top: 0;
    z-index: 2;
}

.jcg_table th,.jcg_table td {
    padding: 2px;
    text-align: center;
}

.jcg_table th {
    padding-top: 5px;
    color: white;
    background: rgb(0, 112, 192);
    position: sticky;
}

.jcg_table td {
    border-bottom: 1px solid black;
}

.code_star {
    padding: 5px 0 2px 0;
}


.code_star a {
    color:white;
    text-decoration:none;
}

#zoom_in, #zoom_out {
    font-weight: bold;
    font-size: 1.2em;
    text-shadow: -1px -1px 0 black, 1px -1px 0 black, -1px 1px 0 black, 1px 1px 0 black; /* 文字の周囲に黒の影を4方向つける＝縁取り */
    cursor: pointer;
}

#filter_undo_container_elm, #filter_undo_container_fin {
    background-color: tomato;
    border: 2px solid black;
    border-radius: 12px;
    padding-left: 12px;
    padding-right: 12px;
    margin-left: 20px;
    font-weight: bold;
}

#filter_undo_container_elm button, #filter_undo_container_fin button {
    color: white;
}

.sticky-col,.sticky-col2 {
    position: sticky;
    left: 0;
    background-color: white;
    z-index: 1;
}

.sticky-col {
    background-color: white;
}
.sticky-col2 {
    background-color: rgb(221,235,247);
}

.sticky-top {
    position: sticky;
    top: 0;
    left: 0;
    background-color: white;
    z-index: 3;
}

#zoom_container {
    zoom: 1;
}

#range_filters_elm,#range_filters_fin {
    display: flex;
    flex-wrap: wrap; 
    overflow-x: auto;
    padding: 10px;
    gap: 10px;
    border: 1px solid #aaa;
    white-space: nowrap;
    background-color: #eee;
    border-radius: 5px;
}

#range_filters_elm label,#range_filters_fin label {
    display: flex;
    flex-direction: column;
    font-size: 0.9em;
    white-space: nowrap;
    min-width: 140px;
}

#range_filters_elm span::before,#range_filters_fin span::before {    
    content: "■ ";
}
#range_filters_elm span,#range_filters_fin span {    
    font-weight:bolder;
}

.filter-btn,.range-line select {
    padding: 4px 8px;
    font-size: 0.85em;
    border: 1px solid gray;
    border-radius: 4px;
    cursor: pointer;
    background-color: white;
}
.filter-btn.selected {
    background-color: royalblue;
    color: white;
    border-color: navy;
}
.range-line {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    margin-right:4px;
}

.decktype-buttons {
  gap: 10px; /* ボタン間のスペース */
}

.decktype-buttons button {
  background-color: #007acc;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
margin-bottom: 5px;
    font-weight: bolder;
}

.decktype-buttons button:hover {
  background-color: #005fa3;
  transform: scale(1.05);
}

.decktype-buttons button:active {
  transform: scale(0.95);
}

.decktype-buttons button:focus {
  outline: none;
  box-shadow: 0 0 0 2px #80bfff;
}

.decklist_filter {
    overflow-x: auto;
    white-space: nowrap;
}

.decklist_zoom {
    margin-top: 5px;
}


.name_backimg, .name_backimg2 {
    font-size: 0.8em;
    position: relative;
    background-color: #333;
}

.name_backimg2 {
    min-width: 12em;
    opacity: 0.7;
}

.name_backimg img, .name_backimg2 img {
    position: absolute;
    top: 0;
    height: 100%;
    border-radius: 0px;
    box-shadow: none;
    border: none;
    left: auto;
    right: 0;
    width: auto;
    opacity: 1;
    z-index: -1;
}

.name_backimg div, .name_backimg2 div {
    padding: 5px 10px;
    font-weight: bold;
    text-align: left;
    color: white;
}