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

#arknights_friends_bbs .data_input_container > div,
#arknights_friends_bbs .single_comment > *{
    margin-bottom: 10px;
}
#arknights_friends_bbs .single_comment > *:last-child{
    margin-bottom: 0;
}

#arknights_friends_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_friends_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: 100px;
    resize: none;
    padding: 5px;
    appearance: none;
    -webkit-appearance: none;
    font-weight: normal;
    max-width: 100% !important;
}

#arknights_friends_bbs th,
#arknights_friends_bbs td{
    padding: 4px;
}
#arknights_friends_bbs .data_input_container .data_input{
    width: 100%;
    height: 21px;
}
#arknights_friends_bbs .flex_box{
    display: grid;
    gap: 4px;
    grid-template-columns: 1fr auto 50px;
}

#arknights_friends_bbs .flex_box > span{
    font-size: 15px;
    font-weight: bold;
}
#arknights_friends_bbs .data_box,
#arknights_friends_bbs .data_box_disp{
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}
#arknights_friends_bbs .data_box > *,
#arknights_friends_bbs .data_box_disp > *,
#arknights_friends_bbs .data_box:after,
#arknights_friends_bbs .data_box_disp:after{
    width: 60px;
    height: 60px;
}
#arknights_friends_bbs .data_box:empty:after{
    font-size: 15px;
    content: "\f067";
    font-family: FontAwesome;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px dashed #ccc;
    box-sizing: border-box;
}
#arknights_friends_bbs .data_box_disp:empty:after{
    font-size: 15px;
    content: "-";
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    background: #f6f6f6;
}

html:has(#arknights_friends_bbs dialog[open]) {
  overflow: hidden;
}
#arknights_friends_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_friends_bbs dialog {
    top: 65%;
    width: 85%;
    height: 80vh;
}
/* モーダル表示のレイヤー背景色 */
#arknights_friends_bbs dialog::backdrop {
  background: rgba(11, 11, 11, 0.5);
}

#arknights_friends_bbs dialog .tab_container{
    border-bottom: 2px dotted #ccc;
    padding-bottom: 10px;
    margin-bottom: 5px;
}
#arknights_friends_bbs dialog .tab_container .tab_list{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
#arknights_friends_bbs dialog .tab_container .tab_list > li{
    text-align: center;
    padding: 10px 0;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    border: 2px solid #ccc;
    font-size: 14px;
    line-height: 1;
}
#arknights_friends_bbs dialog .tab_container .tab_list > li[data-check="1"]{
    background: #ff7e22;
    border-color: #ff7e22;
    color: #ffffff;
}


#arknights_friends_bbs dialog .items_container{
    display: none;
    overflow-y: auto;
}

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

#arknights_friends_bbs .items_list > li{
    cursor: pointer;
    line-height: 1.2;
    font-size: 10px;
    text-align: center;
}


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

#arknights_friends_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_friends_bbs .filter_list[data-type="rarity"] > li{
    padding: 8px;
    font-size: 14px;
}
#arknights_friends_bbs .filter_list > li[data-check="1"]{
    border-color: #ff7e22;
}

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

#arknights_friends_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_friends_bbs .comment_trigger_button_container > button[data-type="x_post"]{
    background: linear-gradient(to top, #000000 0%, #393939 100%);
}

#arknights_friends_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_friends_bbs .equip_status_label{
    margin-top: 2px;
}

#arknights_friends_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_friends_bbs .comment_container .comment_container{
    border-top: 1px solid #cccccc;
}

#arknights_friends_bbs .comment_container .single_comment{
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 10px;
    background: #f6f6f6;
}

#arknights_friends_bbs .comment_container .single_comment .comment_info .info_top{
    display: flex;
    justify-content: space-between;
}
#arknights_friends_bbs .comment_container .single_comment .comment_info .info_top .name{
    font-size: 11px;
    font-weight: bold;
    color: #1f2021;
}
#arknights_friends_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_friends_bbs .comment_container .single_comment .comment_info .info_date{
    color: #7a91b1;
    font-size: 10px;
}


#arknights_friends_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_friends_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_friends_bbs .comment_container .single_comment .user_name_id_disp{
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}
#arknights_friends_bbs .comment_container .single_comment .user_name_id_disp:after{
    content: "";
    display: inline-block;
    background-image: url(/wp-content/themes/appmedia/lib/comments/img/copy_icon.png);
    width: 50px;
    height: 26px;
    background-size: 100% 100%;
}
#arknights_friends_bbs .comment_pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 20px;
}

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

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

#arknights_friends_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_friends_bbs .comment_search_container .search_add_box{
    display: grid;
    gap: 4px;
    grid-template-columns: repeat(2, 1fr);
}

#arknights_friends_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_friends_bbs .comment_search_container .search_add_box > button[data-type="clear"]{
    background: #cc0000;
}

#arknights_friends_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_friends_bbs .comment_search_container .search_items_box:empty::after{
    content: "ここに選択したキャラが表示されます";
    font-size: 12px;
    color: #a9a9a9;
    width: 100%;
}
#arknights_friends_bbs .comment_search_container .search_items_box > div{
    cursor: pointer;
}

#arknights_friends_bbs .single_comment .reaction_button[data-type="warn"]{
    background-color: #f6f6f6;
    outline: none;
    color: #6c6b6b;
    cursor: pointer;
    font-weight: bold;
    padding: 0 5px;
    border: none;
    border-bottom: 1px solid #cccccc;
    border-radius: 0;
    font-size: 11px;
}

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

#arknights_friends_bbs .upload_file_container {
    display: grid;
    gap: 5px;
    grid-template-columns: 1fr 90px;
    align-items: center;
}
#arknights_friends_bbs .upload_file_container .upload-group{
    display: none;
}
#arknights_friends_bbs .upload_file_container label {
    border: 1px solid #909090;
    display: block;
    width: 100%;
    text-align: center;
    border-radius: 3px;
    color: #2d2d2d;
    line-height: 1;
    padding: 10px 0;
    font-size: 13px;
    font-weight: bold;
    box-sizing: border-box;
    position: relative;
    cursor: pointer;
}
#arknights_friends_bbs .upload_file_container span:nth-child(2){
    color: #ff0000;
    font-size: 12px;
    text-align: end;
}
#arknights_friends_bbs .upload_file_container .for_img_preview{
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 4px;
}

#arknights_friends_bbs .upload_file_container .for_img_preview .img_preview{
    width: 25%;
    position: relative;
    max-height: 85px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2px;
    background: #f6f6f6;
    border: 1px solid #ccc;
}
#arknights_friends_bbs .upload_file_container .for_img_preview .img_preview img{
    max-width: 100%;
    max-height: 100%;
    display: block;
}
#arknights_friends_bbs .upload_file_container .for_img_preview .img_preview .delete_img_button{
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
}
#arknights_friends_bbs .upload_file_container .for_img_preview .img_preview .delete_img_button::before{
    content: "\f00d";
    font-family: FontAwesome;
}

#arknights_friends_bbs .single_comment .comment_img{
    overflow: hidden;
    text-align: center;
    padding: 5px;
}
#arknights_friends_bbs .single_comment .comment_img img{
    max-height: 180px;
    max-width: 100%;
}