#arknights_endfield_formation_bbs *{
    box-sizing: border-box;
}

#arknights_endfield_formation_bbs .data_input_container > div,
#arknights_endfield_formation_bbs .single_comment > div{
    margin-bottom: 10px;
}

#arknights_endfield_formation_bbs .data_input_container input.text_input{
    border-radius: 2px;
    font-size: 16px;
    line-height: 1.8rem;
    box-shadow: none;
    border: 1px solid #ccc;
    box-sizing: border-box;
    width: 100%;
    padding: 5px;
    appearance: none;
    -webkit-appearance: none;
    font-weight: normal;
}
#arknights_endfield_formation_bbs .data_input_container textarea.text_input{
    border-radius: 2px;
    font-size: 12px;
    line-height: 1.8rem;
    box-shadow: none;
    border: 1px solid #909090;
    box-sizing: border-box;
    width: 100%;
    height: 200px;
    resize: none;
    padding: 5px;
    appearance: none;
    -webkit-appearance: none;
    font-weight: normal;
    max-width: 100% !important;
}

#arknights_endfield_formation_bbs th,
#arknights_endfield_formation_bbs td{
    padding: 4px;
}

#arknights_endfield_formation_bbs .chara_weapon_table td{
    width: 12.5%;
}
#arknights_endfield_formation_bbs .equip_table td{
    width: 20%;
}



#arknights_endfield_formation_bbs .overflow_container{
    overflow-x: scroll;
}
#arknights_endfield_formation_bbs .equip_table_container_notice{
    font-size: 12px;
    margin-bottom: 15px;
}
#arknights_endfield_formation_bbs .chara_weapon_table{
    min-width: 500px;
    font-size: 12px;
    margin-bottom: 5px;
}
#arknights_endfield_formation_bbs .equip_table{
    margin-bottom: 0;
}
#arknights_endfield_formation_bbs .data_input{
    width: 100%;
    height: 21px;
}

#arknights_endfield_formation_bbs .data_box,
#arknights_endfield_formation_bbs .data_box_disp{
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}
#arknights_endfield_formation_bbs .data_box > img,
#arknights_endfield_formation_bbs .data_box_disp > img{
    width: 45px;
    height: 45px;
}
#arknights_endfield_formation_bbs .data_box:empty:after{
    font-size: 15px;
    content: "\f067";
    font-family: FontAwesome;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px dashed #ccc;
    box-sizing: border-box;
}
#arknights_endfield_formation_bbs .data_box_disp:empty:after{
    font-size: 15px;
    content: "-";
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    background: #f6f6f6;
}
#arknights_endfield_formation_bbs .data_box[data-type="chara"] > img,
#arknights_endfield_formation_bbs .data_box[data-type="chara"]:empty:after,
#arknights_endfield_formation_bbs .data_box_disp[data-type="chara"] > img,
#arknights_endfield_formation_bbs .data_box_disp[data-type="chara"]:empty:after{
    width: 55px;
    height: 55px;
}

html:has(#arknights_endfield_formation_bbs dialog[open]) {
  overflow: hidden;
}
#arknights_endfield_formation_bbs dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 550px;
    border-radius: 10px;
    border: none;
    padding: 10px;
    height: 90vh;
}

.mobile #arknights_endfield_formation_bbs dialog {
    top: 65%;
    width: 85%;
    height: 80vh;
}
/* モーダル表示のレイヤー背景色 */
#arknights_endfield_formation_bbs dialog::backdrop {
  background: rgba(11, 11, 11, 0.5);
}
#arknights_endfield_formation_bbs dialog .items_container{
    height: 100%;
    display: none;
    overflow-y: auto;
}

#arknights_endfield_formation_bbs .items_list{
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 6px;
}
.mobile #arknights_endfield_formation_bbs .items_list{
    grid-template-columns: repeat(5, 1fr);
}

#arknights_endfield_formation_bbs .items_list > li{
    padding: 2px;
    border: 1px solid #f6f6f6;
    cursor: pointer;
    line-height: 1.2;
    font-size: 10px;
    text-align: center;
}
#arknights_endfield_formation_bbs .items_list > li > div > div{

}

#arknights_endfield_formation_bbs .filter_list{
    margin-bottom: 10px;
    padding: 5px 0 10px;
    border-bottom: 2px dashed #cccccc;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

#arknights_endfield_formation_bbs .filter_list > li{
    min-width: 50px;
    border: 2px solid #f6f6f6;
    padding: 4px;
    font-size: 12px;
    line-height: 1;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
}
#arknights_endfield_formation_bbs .filter_list > li[data-check="1"]{
    border-color: #ff7e22;
}

#arknights_endfield_formation_bbs .comment_trigger_button_container{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

#arknights_endfield_formation_bbs .comment_trigger_button_container > button{
    border: none;
    text-align: center;
    border-radius: 2px;
    color: #ffffff;
    width: 100%;
    line-height: 1;
    background: #ff7e22;
    font-weight: bold;
    font-size: 15px;
    padding: 15px 0;
    cursor: pointer;
    position: relative;
}
#arknights_endfield_formation_bbs .comment_trigger_button_container > button[data-type="x_post"]{
    background: linear-gradient(to top, #000000 0%, #393939 100%);
}

#arknights_endfield_formation_bbs .comment_trigger_button_container > button[data-type="x_post"]:before{
    content: "";
    background-image: url(https://appmedia.jp/wp-content/themes/appmedia/lib/blue_archive/img/x_icon.webp);
    position: absolute;
    margin: auto 0;
    display: block;
    top: 0;
    left: 10px;
    bottom: 0;
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
#arknights_endfield_formation_bbs .equip_status_label{
    margin-top: 2px;
}

#arknights_endfield_formation_bbs .equip_status_label > span{
    font-size: 10px;
    display: inline-block;
    font-weight: bold;
    background: #f6f6f6;
    padding: 1px 10px;
    margin: 2px auto;

    display: none;
}
#arknights_endfield_formation_bbs .comment_container .comment_container{
    border-top: 1px solid #cccccc;
}

#arknights_endfield_formation_bbs .comment_container .single_comment{
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 0;
}

#arknights_endfield_formation_bbs .comment_container .single_comment .comment_info .info_top{
    display: flex;
    justify-content: space-between;
}
#arknights_endfield_formation_bbs .comment_container .single_comment .comment_info .info_top .name{
    font-size: 11px;
    font-weight: bold;
    color: #1f2021;
}
#arknights_endfield_formation_bbs .comment_container .single_comment .comment_info .info_top .name > span:nth-child(2){
    font-size: 13px;
    text-align: left;
    margin-left: 4px;
    word-break: keep-all;
}
#arknights_endfield_formation_bbs .comment_container .single_comment .comment_info .info_date{
    color: #7a91b1;
    font-size: 10px;
}


#arknights_endfield_formation_bbs .comment_container .single_comment .comment_info .info_title{
    background: #202d34;
    width: fit-content;
    font-size: 14px;
    font-weight: bold;
    padding: 5px 10px;
    color: #ffffff;
}
#arknights_endfield_formation_bbs .comment_container .single_comment .comment_title{
    color: #444;
    border-left: 4px solid #85a1e0;
    margin-top: 10px;
    padding: 0 0 0 7px;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 22px;
    text-indent: 3px;
    font-weight: bold;
}

#arknights_endfield_formation_bbs .comment_pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 20px;
}

#arknights_endfield_formation_bbs .comment_pagination button {
    padding: 5px 12px;
    cursor: pointer;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 4px;
}

#arknights_endfield_formation_bbs .comment_pagination button.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

#arknights_endfield_formation_bbs .comment_pagination button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}


#modal-overlay {
  z-index: 1 ;
  display: none ;
  position: fixed ;
  top: 0 ;
  left: 0 ;
  width: 100% ;
  height: 120% ;
  background-color: rgba( 0,0,0, 0.75 ) ;
}
#modal-content {
  text-align:center;
  width: 50% ;
  max-width:320px;
  margin: 0 ;
  padding: 10px 20px ;
  border-radius: 2px;
  background: #fff ;
  position: fixed ;
  display:none;
  z-index: 2147483999 ;
}


#arknights_endfield_formation_bbs .comment_search_container .search_add_box{
    display: grid;
    gap: 4px;
    grid-template-columns: repeat(2, 1fr);
}

#arknights_endfield_formation_bbs .comment_search_container .search_add_box > button{
    text-align: center;
    padding: 8px 0;
    border-radius: 2px;
    font-size: 10px;
    cursor: pointer;
    background: #335190;
    border: none;
    font-weight: bold;
    color: #ffffff;
}
#arknights_endfield_formation_bbs .comment_search_container .search_add_box > button[data-type="clear"]{
    background: #cc0000;
}

#arknights_endfield_formation_bbs .comment_search_container .search_items_box{
    border: dashed 2px #3142bd;
    border-radius: 5px;
    text-align: center;
    padding: 10px;
    margin: 10px 5px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
#arknights_endfield_formation_bbs .comment_search_container .search_items_box:empty::after{
    content: "ここに選択したキャラが表示されます";
    font-size: 12px;
    color: #a9a9a9;
    width: 100%;
}
#arknights_endfield_formation_bbs .comment_search_container .search_items_box > div{
    cursor: pointer;
}

#arknights_endfield_formation_bbs .single_comment .reaction_container{
    display: flex;
    gap: 10px;
}
#arknights_endfield_formation_bbs .single_comment .reaction_button{
    padding: 5px 10px;
    font-size: 12px;
    background-color: #ffffff;
    outline: none;
    border: 1px solid #ffbb8b;
    color: #6c6b6b;
    border-radius: 2px;
    cursor: pointer;
    font-weight: bold;
}

#arknights_endfield_formation_bbs .single_comment .reaction_button > i{
    font-size: 16px;
    color: #f49551;
}
#arknights_endfield_formation_bbs .single_comment .reaction_button > span{
    margin: 0 5px;
}

#arknights_endfield_formation_bbs .single_comment .reaction_button[data-type="wrong"]{
    border-color: #a069f1;
}
#arknights_endfield_formation_bbs .single_comment .reaction_button[data-type="wrong"] > i{
    color: #a069f1;
}
#arknights_endfield_formation_bbs .single_comment .reaction_button[data-type="warn"]{
    padding: 0 5px;
    border: none;
    border-bottom: 1px solid #cccccc;
    border-radius: 0;
    font-size: 11px;
}

#arknights_endfield_formation_bbs .single_comment .reaction_button[data-check="1"],
#arknights_endfield_formation_bbs .single_comment .reaction_button:hover{
    color: #ffffff;
    background-color: #ff7e22;
    border-color: #ff7e22;
}

#arknights_endfield_formation_bbs .single_comment .reaction_button[data-type="wrong"][data-check="1"],
#arknights_endfield_formation_bbs .single_comment .reaction_button[data-type="wrong"]:hover{
    background-color: #a069f1;
    border-color: #a069f1;
}
#arknights_endfield_formation_bbs .single_comment .reaction_button[data-type="warn"][data-check="1"],
#arknights_endfield_formation_bbs .single_comment .reaction_button[data-type="warn"]:hover{
    background-color: #000000;
}
#arknights_endfield_formation_bbs .single_comment .reaction_button[data-type="warn"][data-check="1"]:after{
    content: "済み";
}
#arknights_endfield_formation_bbs .single_comment .reaction_button[data-check="1"] > i,
#arknights_endfield_formation_bbs .single_comment .reaction_button:hover > i{
    color: #ffffff;
}