#pop_up_favorite_chara_container * ,
#lineagem_team_tool *{
    box-sizing: border-box;
}
#pop_up_favorite_chara_container {
    display: none;
    position: relative;
}

#pop_up_favorite_chara_container .favorite_chara_container {
    max-height: 80vh;
    overflow-y: scroll;
    margin-bottom: 5px;
}

#pop_up_favorite_chara_container .favorite_chara_container ul {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    width: 100%;
    gap: 4px;
}
#pop_up_favorite_chara_container .favorite_chara_container ul > li {
    padding: 2px;
    cursor: pointer;
    font-size: 10px;
    line-height: 1;
    font-weight: bold;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: flex-start;
    overflow: hidden;
    border: 1px solid #ccc;
    border-radius: 7px;
}


#pop_up_favorite_chara_container .favorite_chara_container ul > li img {
    width: 100%;
}
.swal-overlay--show-modal .swal-modal {
    position: relative;
    vertical-align: top;
    margin-top: 40px;
}

.swal-overlay.swal-overlay--show-modal {
    z-index: 99999999;
}

.swal-overlay--show-modal .swal-modal .swal-content {
    padding: 34px 0 0 0;
    margin: 0px 5px 10px 5px;
    overflow: hidden;
}

.swal-overlay--show-modal .swal-modal .swal-footer {
    margin: 0;
    padding: 0;
    position: absolute;
    top: -10px;
    right: -10px;
}

.swal-overlay--show-modal .swal-modal .swal-footer .swal-button-container {
    margin: 0;
    display: block;
    position: static;
}

.swal-overlay--show-modal .swal-modal .swal-footer .swal-button-container .swal-button.swal-button--cancel {
    color: #2a4028;
    border: 4px solid #2a4028;
    line-height: 1;
    padding: 0;
    margin: 0;
    width: 35px;
    height: 35px;
    font-size: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    border-radius: 0;
}

.swal-overlay--show-modal .swal-modal .swal-footer .swal-button-container .swal-button.swal-button--confirm {
    position: absolute;
    bottom: calc(-65vh - 105px);
    right: 10px;
    width: 10em;
    height: 40px;
    margin: 0;
    padding: 0;
    line-height: 1;
    background: linear-gradient(to right, rgba(26, 46, 89, 1) 0%, rgba(54, 85, 151, 1) 100%);
    text-shadow: 1px 1px 4px #000000;
    border: 3px solid #f37a62;
    border-radius: 15px;
    font-size: 15px;
    box-sizing: border-box;
}



#lineagem_team_tool .chara_box > li > *{
    object-fit: cover;
    max-width: 80%;
    max-height: 100%;
    height: 100%;
}
#lineagem_team_tool .chara_box > li > span{
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
}
#lineagem_team_tool .chara_box > li > span:before {
    content: "\f067";
    font-family: FontAwesome;
    color: #ffffff;
}

#lineagem_team_tool .chara_box {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    padding: 2% 1% 12.4%;
    margin: 0;
    background-color: #000000;
    background-image: url(/wp-content/themes/appmedia/lib/lineagem/img/team_tool_bg.webp);
    background-size: 100% 100%;
}

/* #lineagem_team_tool .chara_box > li {
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    aspect-ratio: 1.5;

    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 82 100' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='b'%3E%3Cstop offset='0%25' stop-color='%23ffffff'/%3E%3Cstop offset='25%25' stop-color='%2300bfff'/%3E%3Cstop offset='50%25' stop-color='%230066ff'/%3E%3Cstop offset='75%25' stop-color='%2300bfff'/%3E%3Cstop offset='100%25' stop-color='%23ffffff'/%3E%3C/linearGradient%3E%3ClinearGradient id='g1' href='%23b' x1='41' y1='0' x2='82' y2='50' gradientUnits='userSpaceOnUse'/%3E%3ClinearGradient id='g2' href='%23b' x1='82' y1='50' x2='41' y2='100' gradientUnits='userSpaceOnUse'/%3E%3ClinearGradient id='g3' href='%23b' x1='41' y1='100' x2='0' y2='50' gradientUnits='userSpaceOnUse'/%3E%3ClinearGradient id='g4' href='%23b' x1='0' y1='50' x2='41' y2='0' gradientUnits='userSpaceOnUse'/%3E%3C/defs%3E%3Cpolygon points='41,0 82,50 41,100 0,50' fill='rgba(0, 98, 255, 0.12)'/%3E%3Cline x1='41' y1='0' x2='82' y2='50' stroke='url(%23g1)' stroke-width='2' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3Cline x1='82' y1='50' x2='41' y2='100' stroke='url(%23g2)' stroke-width='2' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3Cline x1='41' y1='100' x2='0' y2='50' stroke='url(%23g3)' stroke-width='2' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3Cline x1='0' y1='50' x2='41' y2='0' stroke='url(%23g4)' stroke-width='2' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
} */

#lineagem_team_tool .chara_box > li {
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    aspect-ratio: 1.3; 

    background-size: 100% 100%;
    background-repeat: no-repeat;
    
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 130 100' width='130' height='100' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='b'%3E%3Cstop offset='0%25' stop-color='%23ffffff'/%3E%3Cstop offset='25%25' stop-color='%2300bfff'/%3E%3Cstop offset='50%25' stop-color='%230066ff'/%3E%3Cstop offset='75%25' stop-color='%2300bfff'/%3E%3Cstop offset='100%25' stop-color='%23ffffff'/%3E%3C/linearGradient%3E%3ClinearGradient id='g1' href='%23b' x1='65' y1='0' x2='130' y2='50' gradientUnits='userSpaceOnUse'/%3E%3ClinearGradient id='g2' href='%23b' x1='130' y1='50' x2='65' y2='100' gradientUnits='userSpaceOnUse'/%3E%3ClinearGradient id='g3' href='%23b' x1='65' y1='100' x2='0' y2='50' gradientUnits='userSpaceOnUse'/%3E%3ClinearGradient id='g4' href='%23b' x1='0' y1='50' x2='65' y2='0' gradientUnits='userSpaceOnUse'/%3E%3C/defs%3E%3Cpolygon points='65,0 130,50 65,100 0,50' fill='rgba(0, 98, 255, 0.12)'/%3E%3Cline x1='65' y1='0' x2='130' y2='50' stroke='url(%23g1)' stroke-width='2' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3Cline x1='130' y1='50' x2='65' y2='100' stroke='url(%23g2)' stroke-width='2' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3Cline x1='65' y1='100' x2='0' y2='50' stroke='url(%23g3)' stroke-width='2' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3Cline x1='0' y1='50' x2='65' y2='0' stroke='url(%23g4)' stroke-width='2' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
}

/* x */

#lineagem_team_tool .chara_box > li:nth-child(1) { grid-column: 1 / 3; }
#lineagem_team_tool .chara_box > li:nth-child(2) { grid-column: 2 / 4; }
#lineagem_team_tool .chara_box > li:nth-child(3) { grid-column: 3 / 5; }
#lineagem_team_tool .chara_box > li:nth-child(4) { grid-column: 4 / 6; }
#lineagem_team_tool .chara_box > li:nth-child(5) { grid-column: 5 / 7; }
#lineagem_team_tool .chara_box > li:nth-child(6) { grid-column: 6 / 8; }
#lineagem_team_tool .chara_box > li:nth-child(7) { grid-column: 7 / 9; }
#lineagem_team_tool .chara_box > li:nth-child(8) { grid-column: 8 / 10; }
#lineagem_team_tool .chara_box > li:nth-child(9) { grid-column: 9 / 11; }

#lineagem_team_tool .chara_box > li:nth-child(10) { grid-column: 1 / 3; }
#lineagem_team_tool .chara_box > li:nth-child(11) { grid-column: 2 / 4; }
#lineagem_team_tool .chara_box > li:nth-child(12) { grid-column: 3 / 5; }
#lineagem_team_tool .chara_box > li:nth-child(13) { grid-column: 4 / 6; }
#lineagem_team_tool .chara_box > li:nth-child(14) { grid-column: 5 / 7; }
#lineagem_team_tool .chara_box > li:nth-child(15) { grid-column: 6 / 8; }
#lineagem_team_tool .chara_box > li:nth-child(16) { grid-column: 7 / 9; }
#lineagem_team_tool .chara_box > li:nth-child(17) { grid-column: 8 / 10; }
#lineagem_team_tool .chara_box > li:nth-child(18) { grid-column: 9 / 11; }

#lineagem_team_tool .chara_box > li:nth-child(19) { grid-column: 2 / 4; }
#lineagem_team_tool .chara_box > li:nth-child(20) { grid-column: 3 / 5; }
#lineagem_team_tool .chara_box > li:nth-child(21) { grid-column: 4 / 6; }
#lineagem_team_tool .chara_box > li:nth-child(22) { grid-column: 5 / 7; }
#lineagem_team_tool .chara_box > li:nth-child(23) { grid-column: 6 / 8; }
#lineagem_team_tool .chara_box > li:nth-child(24) { grid-column: 7 / 9; }
#lineagem_team_tool .chara_box > li:nth-child(25) { grid-column: 8 / 10; }



#lineagem_team_tool .chara_box > li{grid-column: 1 / 3;}

/* y */

#lineagem_team_tool .chara_box > li:nth-child(1),
#lineagem_team_tool .chara_box > li:nth-child(3),
#lineagem_team_tool .chara_box > li:nth-child(5),
#lineagem_team_tool .chara_box > li:nth-child(7),
#lineagem_team_tool .chara_box > li:nth-child(9) { grid-row: 2 / 4; }

#lineagem_team_tool .chara_box > li:nth-child(2),
#lineagem_team_tool .chara_box > li:nth-child(4),
#lineagem_team_tool .chara_box > li:nth-child(6),
#lineagem_team_tool .chara_box > li:nth-child(8) { grid-row: 1 / 3; }

#lineagem_team_tool .chara_box > li:nth-child(11),
#lineagem_team_tool .chara_box > li:nth-child(13),
#lineagem_team_tool .chara_box > li:nth-child(15),
#lineagem_team_tool .chara_box > li:nth-child(17) { grid-row: 3 / 5; }

#lineagem_team_tool .chara_box > li:nth-child(10),
#lineagem_team_tool .chara_box > li:nth-child(12),
#lineagem_team_tool .chara_box > li:nth-child(14),
#lineagem_team_tool .chara_box > li:nth-child(16),
#lineagem_team_tool .chara_box > li:nth-child(18) { grid-row: 4 / 6; }


#lineagem_team_tool .chara_box > li:nth-child(19),
#lineagem_team_tool .chara_box > li:nth-child(21),
#lineagem_team_tool .chara_box > li:nth-child(23),
#lineagem_team_tool .chara_box > li:nth-child(25) { grid-row: 5 / 7; }

#lineagem_team_tool .chara_box > li:nth-child(20),
#lineagem_team_tool .chara_box > li:nth-child(22),
#lineagem_team_tool .chara_box > li:nth-child(24) { grid-row: 6 / 8; }






/* ボタン */
#lineagem_team_tool .button_container{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 20px 0;
}
#lineagem_team_tool .button_container button{
    font-weight: bold;
    cursor: pointer;
    position: relative;
}
#lineagem_team_tool .button_container .canvas_trigger{
    width: 100%;
    background: #f37a62;
    margin-bottom: 15px;
    font-size: 15px;
    color: #fff;
    line-height: 3;
    border: none;
    border: 3px solid #272c42;
}

#lineagem_team_tool .button_container .reset_trigger{
    width: 32%;
    background: #ffffff;
    color: #ff6555;
    font-size: 13px;
    border: 2px solid #ff6555;
    line-height: 2.8;
}
#lineagem_team_tool .button_container .error_message{
    width: 60%;
    font-size: 10px;
}
#lineagem_team_tool .hashtag_container{
    text-align: center;
    border: 2px solid #f37a62;
    margin-top: 15px;
}
#lineagem_team_tool .hashtag_container .head_container{
    background: #f37a62;
    color: white;
    border: 2px solid #fff;
    padding: 5px 0;
    font-weight: bold;
    font-size: 12px;
    position: relative;
    overflow: hidden;
}
#lineagem_team_tool .hashtag_container .body_container{
    background: #ffffff;
    border: 2px solid white;
    border-top: none;
    font-weight: bold;
    line-height: 1.8;
    padding: 5px 0;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}



#lineagem_team_tool .img_icon_attr_container,
#lineagem_team_tool .img_icon_attr_container img{
    display: none;
}


#lineagem_team_tool .chara_list_table td{
    width: 25%;
    vertical-align: baseline;
    line-height: 1.2;
    padding: 4px;
}
#lineagem_team_tool .chara_list_table img{
    width: 50px;
}

#lineagem_team_tool .chara_list_table .name_dom{
    font-weight: bold;
}

#lineagem_team_tool .chara_list_table .name_dom[data-rarity="青"]{
    color: #3366ff;
}
#lineagem_team_tool .chara_list_table .name_dom[data-rarity="赤"]{
    color: #ff3246;
}
#lineagem_team_tool .chara_list_table .name_dom[data-rarity="紫"]{
    color: #b946ff;
}
#lineagem_team_tool .chara_list_table .name_dom[data-rarity="黄"]{
    color: #ff6600;
}