body {
    font-family: sans-serif;
    padding: 20px;
}

.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

input[type="text"],
select {
    padding: 6px;
    font-size: 16px;
}

.grid {
    display: grid;
    gap: 15px;
    justify-content: center;
}

.grid.PC {
    font-size: 0.8rem;
    grid-template-columns: repeat(auto-fit, minmax(150px, 0fr));
}

.grid.mobile {
    font-size: 0.6rem;
    grid-template-columns: repeat(auto-fit, minmax(170px, 0fr));
}

.card {
    border: 1px solid #ccc;
    border-radius: 10px;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    transition: transform 0.2s;
}

.card:hover {
    transform: scale(1.03);
}

.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination button {
    padding: 5px 10px;
    margin: 0 5px;
    background-color: burlywood;
}

/* モーダルスタイル */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    font-size: small;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    max-height: 85%;
    text-align: center;
    position: relative;
    overflow: auto;
}

.modal-content.PC {
    width: 60%;
}

.modal-content.mobile {
    width: 90%;
}

.modal-content img {
    max-width: 100%;
    border-radius: 10px;
}

.close {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.container.PC {
    flex-direction: row;
}

.container.mobile {
    flex-direction: column;
}

.left,
.right {
    flex: 1;
    padding: 20px;
    overflow: auto;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.tab-buttons {
    display: flex;
    border-bottom: 1px solid #ccc;
    margin-bottom: 15px;
}

.tab-button {
    flex: 1;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    color: #555;
}

.tab-button.active {
    border-bottom: 2px solid #2563eb;
    color: #2563eb;
    font-weight: bold;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.skill {
    width: 10%;
    padding: 5px;
}

.imgtest {
    cursor: pointer;
    transition: transform 0.2s;
}

.imgtest:hover {
    transform: scale(1.03);
}

.audio-wrapper {
    width: 300px;
    height: 80px;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.fake-audio-ui {
    display: flex;
    align-items: center;
    gap: 10px;
}

.circle {
    width: 16px;
    height: 16px;
    background-color: red;
    border-radius: 50%;
}

.text {
    font-size: 14px;
    color: #333;
}

.skillFilterBtn {
    margin-top: 5px;
    padding: 5px 10px;
    border: none;
    border-radius: 20px;
    font-size: 15px;
    background-color: crimson;
    color: white;
    cursor: pointer;
}

.filterbtn {
    margin-top: 5px;
    padding: 5px 10px;
    border: none;
    border-radius: 20px;
    font-size: 15px;
    background-color: cornflowerblue;
    color: white;
    cursor: pointer;
}

.filterbtn:hover {
    background-color: dodgerblue;
}

.statusbtn {
    margin-top: 5px;
    padding: 5px 10px;
    border: none;
    border-radius: 20px;
    font-size: 15px;
    background-color: cadetblue;
    color: white;
    cursor: pointer;
}

.statusbtn:hover {
    background-color: #407577;
}

.skillbtn {
    margin-top: 5px;
    padding: 5px 10px;
    border: none;
    border-radius: 20px;
    font-size: 15px;
    background-color: cadetblue;
    color: white;
    cursor: pointer;
}

.skillbtn:hover {
    background-color: #407577;
}

.tarotbtn {
    margin-top: 5px;
    padding: 5px 10px;
    border: none;
    border-radius: 20px;
    font-size: 15px;
    background-color: cadetblue;
    color: white;
    cursor: pointer;
}

.tarotbtn:hover {
    background-color: #407577;
}

.equipmentbtn {
    margin-top: 5px;
    padding: 5px 10px;
    border: none;
    border-radius: 20px;
    font-size: 15px;
    background-color: cadetblue;
    color: white;
    cursor: pointer;
}

.equipmentbtn:hover {
    background-color: #407577;
}

.statusInheritanceBtn {
    margin-top: 5px;
    padding: 5px 10px;
    border: none;
    border-radius: 20px;
    font-size: 15px;
    background-color: gray;
    color: white;
    cursor: pointer;
}

.statusInheritanceBtn:hover {
    background-color: #535353;
}

button {
    background-color: #ff0040;
    color: white;
    cursor: pointer;
}

button:hover {
    background-color: #b30000;
}

#player {
    display: none;
}

.category-item {
    background: #eee;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    margin: 0.25rem;
    display: inline-block;
}

.category-item.active {
    background: #007bff;
    color: white;
}

.reloadBtn {
    background-color: #7cdbff;
    border-radius: 15px;
    padding-right: 10px;
    padding-left: 10px;
    margin-top: 5px;
    border: none;
}

.reloadBtn:hover {
    background-color: #16a7f052;
}

.containerB {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 5px;
}

.containerSEE {
    display: flex;
    justify-content: center;
    align-items: center;
}

.bar-container {
    display: inline-block;
    cursor: pointer;
}

.bar-label {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    font-size: 11px;
    color: #000000;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

.bar-label.PC {
    font-size: 11px;
}

.bar-label.mobile {
    font-size: 18px;
}

.bar-wrapper {
    position: relative;
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
}

.bar-wrapper.PC {
    width: 120px;
    height: 15px;
}

.bar-wrapper.mobile {
    width: 250px;
    height: 25px;
}

.bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 15px;
    display: flex;
    align-items: center;
    transition: width 1.5s ease-out;
}

.bar-atk {
    background: linear-gradient(145deg, #ff9898, #a04040);
}

.bar-matk {
    background: linear-gradient(145deg, #88b9f9, #4868b1);
}

.bar-def {
    background: linear-gradient(145deg, #bff585, #6abc41);
}

.bar-mdef {
    background: linear-gradient(145deg, #fce18f, #c9a239);
}

.bar-hp {
    background: linear-gradient(145deg, #e5a7e7, #ff9bff);
}

.bar-speed {
    background: linear-gradient(145deg, #aee7f7, #82edfe);
}


.sentence {
    line-height: 1.8;
}

.word {
    position: relative;
    cursor: pointer;
    color: var(--accent);
    border-bottom: 2px dotted currentColor;
    text-decoration: none;
    text-underline-offset: 4px;
    padding: 0 4px;
}

.word:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.tooltip {
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(-50%, -110%);
    background: var(--tooltip-bg);
    color: var(--text);
    border: 1px solid var(--tooltip-border);
    border-radius: 10px;
    padding: 10px 12px;
    line-height: 1.5;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease;
    z-index: 99999;
    background-color: whitesmoke;
    max-width: 500px;
    white-space: normal;
    word-break: break-word;
}

.tooltip.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -120%);
}

.tooltip::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--tooltip-bg);
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .2));
}

canvas {
    width: 100%;
    height: 100%;
    display: block;
    background-color: #1a1e2a;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.6);
    position: absolute;
    top: 0;
    left: 0;
}

.forCanvas {
    position: relative;
    padding-top: 60%;
}

.forCanvas.mobile {
    width: 100%;
}

.forCanvas.PC {
    width: 80%;
}


.normal,
.curved-shot {
    padding: 5px 10px;
    border-radius: 20px;
    background-color: #ce9c50;
}

.physical,
.close-range {
    padding: 5px 10px;
    border-radius: 20px;
    background-color: #d56723;
}

.magic,
.long-range {
    padding: 5px 10px;
    border-radius: 20px;
    background-color: #dc89dc;
}

.piercing,
.anti-unit {
    padding: 5px 10px;
    border-radius: 20px;
    background-color: #43bbda;
}

.mixed {
    padding: 5px 10px;
    border-radius: 20px;
    background-color: #cd44f3;
}

.reaction,
.area-attack {
    padding: 5px 10px;
    border-radius: 20px;
    background-color: #fce345;
}

.recovery {
    padding: 5px 10px;
    border-radius: 20px;
    background-color: #95df64;
}

.support {
    padding: 5px 10px;
    border-radius: 20px;
    background-color: #60c9c3;
}

.passive {
    padding: 5px 10px;
    border-radius: 20px;
    background-color: #f79444;
}

.faction-aura {
    padding: 5px 10px;
    border-radius: 20px;
    background-color: #d3a35b;
}

.aura {
    padding: 5px 10px;
    border-radius: 20px;
    background-color: #5e81f1;
}

.instant,
.anti-ground {
    padding: 5px 10px;
    border-radius: 20px;
    background-color: #2db684;
}