.byakuya_chara_select_table .byakuya_chara_select_table_td {
    padding: 4px 1px!important;
}

.sort_label {
    display: inline-block;
    font-size: 12px;
}

.sort_chara {
    width: 90%;
}

.sort_box {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.sort_box > div {
  width: 20%;
  cursor: pointer;
  padding: 4px 2px;
  margin: 0 2px;
  font-size: 11px;
  border-radius: 4px;
  border: 2px solid transparent;
  border: 2px solid #d3d3d3;
  color: #808080;
}

/* .sort_box > .type_sort {
  margin: 0 10px;
} */

.sort_box > div[data-selected='selected'] {
    background: #ffd700;
    border: 2px solid #222;
    color: #222;
    font-weight: bold;
}

.sort_table td {
    padding: 2px 0px 2px 0px!important;
}

/* キャラ選択アイコン */
.chara_wrapper {
    text-align: center;
    display: flex;
    justify-content: center;
}
.select_chara, .choose_chara2 {
    cursor: pointer;
    border: 2px dashed #ea553a;
    border-radius: 10px;
    width: 50px;
    height: 50px;
    text-align: center;
    display: flex;
    justify-content: center;
    flex-flow: column;
}
.select_chara_img {
    margin-bottom: 0px!important;
}

/* 選択済みキャラアイコン */
.selected {
    border: 0px;
    border-radius: 0px;
    margin-bottom: 0px!important;
    display: block!important;
    width: auto!important;
    height: auto!important;
}

/* テーブル外テキストボックス */
.fbbs_title_div, .fbbs_author_div, .fbbs_comments_div {
    margin-bottom: 10px;
}
.fbbs_textbox {
    border-radius: 4px;
    font-size: 16px;
    line-height: 1.8rem;
    box-shadow: none;
    border: 1px solid #ccc;
    box-sizing: border-box;
    width: 100%;
    padding: 5px;
    -webkit-appearance: none;
    font-weight: normal;
}

/* タグ */
.fbbs_tags_div {
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
}
.fbbs_tags_div .fbbs_tag {
    width: 25%;
    margin-bottom: 10px;
}

/* セレクトボックス */
.byakuya_select {
    font-size: 10px;
    width: 90%;
}

/* テーブル内テキストボックス */
.byakuya_chara_select_table_td div {
    width: 100%;
}
.byakuya_chara_select_table_td div .small {
    text-align: left;
    width: 20%;
    display: inline-block;
}
.byakuya_input {
    font-size: 10px;
    width: 70%;
}

/* フリースペース */
.fbbs_comments_div {
    margin-bottom: 10px;
}
.fbbs_textarea {
    border-radius: 4px;
    font-size: 16px;
    line-height: 1.8rem;
    box-shadow: none;
    border: 1px solid #ccc;
    box-sizing: border-box;
    width: 100%;
    height: 100px;
    resize: none;
    padding: 5px;
    -webkit-appearance: none;
    font-weight: normal;
}

/* 画像アップロード */
.upload-group {
    display: none;
}
#upload_file label {
    border: 2px solid;
    width: 80%;
    text-align: center;
    border-radius: 5px;
    color: #ff7e22;
    padding: 6px;
    font-size: 11px;
    display: inline-block;
}

/* ツイッターシェア系 */
.creat_trigger {
    border: none;
    text-align: center;
    border-radius: 3px;
    color: #ffffff;
    width: 100%;
    line-height: 1;
    background: #ff7e22;
    font-weight: bold;
    font-size: 15px;
    padding: 15px 0;
    cursor: pointer;
    margin-top: 10px;
    width: 49% !important;
    position: relative;
}
#fbbs_post_button_tw:before {
    content: "\f099";
    font-family: 'FontAwesome';
    font-size: 26px;
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto 0;
    display: block;
    line-height: 1;
    height: fit-content;
    left: 12px;
}

/* 投稿ボタン */
#fbbs_post_button {
    background: #ff7e22;
}
#fbbs_post_button_tw {
    background: #1d9bf0 !important;
}

/* ローディングモーダル */
#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:6px;
    background: #fff ;
    position: fixed ;
    display:none;
    z-index: 2147483999 ;
}

#modal-img-view {
    text-align: center;
    width: 100%;
    height: 100%;
    margin: 0;
    position: fixed;
    display: none;
    z-index: 100000000;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    right: 0 !important;
}
#modal_image_inline{
    width: 100%;
    height: 100%;
    padding: 45px 0;
    max-width: 480px;
    margin: 0 auto;
}
#modal_image{
    position: absolute;
    max-width: 96% !important;
    max-height: 85% !important;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
}
#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 ) ;
}
#image_close {
    position: absolute;
    right: 20px;
    top: 0;
    color: #fff;
    font-size: 35px;
}


/*モーダル本体の指定 + モーダル外側の背景の指定*/
.modal-container{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    background: rgba(0,0,0,50%);
    padding: 40px 20px;
    overflow: auto;
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    box-sizing: border-box;
    z-index: 999;
}
/*モーダル本体の擬似要素の指定*/
.modal-container:before{
    content: '';
    display: inline-block;
    vertical-align: middle;
    height: 100%;
}
/*モーダル本体に「active」クラス付与した時のスタイル*/
.modal-container.active{
    opacity: 1;
    visibility: visible;
}
/*モーダル枠の指定*/
.modal-body{
    position: relative;
    display: inline-block;
    vertical-align: top;
    max-width: 600px;
    /* max-height: 500px; */
    width: 90%;
}
/*モーダルを閉じるボタンの指定*/
.modal-close{
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    top: -40px;
    right: -40px;
    width: 40px;
    height: 40px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}
/*モーダル内のコンテンツの指定*/
.modal-content{
    background: #fff;
    text-align: left;
    padding: 30px;
}
/* モーダル内アイコン */
.choose_chara  {
    width: 10%;
    font-size: 10px;
    margin-bottom: 10px;
    display: inline-block;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}



/* 投稿一覧 */
.comment_line {
    border: 1px solid #adc1de;
    border-radius: 3px;
    margin-top: 10px;
    padding: 0px 2px 5px 2px;
}
.header_wrapper {
  padding: 5px;
}
.com_id {
    font-size: 11px;
    font-weight: bold;
    color: #1f2021;
}
.com_name {
    font-weight: bold;
    color: #1f2021;
    font-size: 13px;
    text-align: left;
    width: fit-content;
    margin: 0 0.3em;
    word-break: keep-all;
    overflow: hidden;
}
.com_date {
  float: right;
  margin-right: 5px;
  color: #7a91b1;
}
.detail_wrapper {
  text-align: center;
  padding: 5px;
  margin-bottom: 10px;
}
.p_id {
  background: #202d34!important;
  border-radius: 0px;
  width: 100%;
  font-size: 14px;
  display: inline-block;
  font-weight: bold;
  padding: 5px;
  color: #fff!important;
  box-sizing: border-box;
  border: none !important;
}
.comment_wrapper {
  background: #fff;
  font-size: 13px;
  width: 100%;
  height: auto;
  padding: 5px;
  border-radius: 3px;
  display: inline-block;
  margin: 0;
  text-align: center;
  box-sizing: border-box;
}
.comment_wrapper .comment {
  text-align: left;
  /* padding: 0px 10px 0px 10px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden; */
}
.comment_wrapper2 {
  box-sizing: border-box;
  background: #fff;
  font-size: 12px;
  width: 100%;
  padding: 10px;
  border-radius: 3px;
  display: inline-block;
  margin: 10px 0px;
}
.comment_txt {
  font-size: 12px;
  padding: 5px;
  margin-bottom: 15px;
}

.comment_line a.linkbtn_arrow {
  margin: 5px;
}

/* タグ */
.comment_tags {
    font-size: 10px;
    line-height: 1.8;
    display: flex;
    flex-wrap: wrap;
    margin-left: 5px;
}
.comment_tags span {
    padding: 0 1.5em;
    background: #ffd700;
    border: solid #222 1px;
    border-radius: 5px;
    margin: 2px;
    display: block;
    font-weight: bold;
}

.footer_wrapper {
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 0px 5px;
}
.good_btn_span {
    padding: 5px 10px;
    font-size: 12px;
    background-color: #fff;
    outline: none;
    border: 1px solid #a2a2a3;
    color: #a1a1a2;
    border-radius: 5px;
    cursor: pointer;
}
.good_btn_span.done, .good_btn_span:hover {
    color: #fff;
    background-color: #ff7e22;
    font-weight: bold;
    border: 1px solid #ff7e22;
}
.warn_btn_span {
    padding: 2px 10px;
    font-size: 12px;
    background-color: #f9f9f9;
    outline: none;
    border: 1px solid #a2a2a3;
    border-radius: 3px;
    color: #a2a2a3;
    float: right;
    cursor: pointer;
}
.reply_btn_span {
    padding: 2px 10px;
    font-size: 12px;
    /* background-color: #f9f9f9; */
    outline: none;
    border: 1px solid #4682b4;
    border-radius: 3px;
    color: #4682b4;
    float: right;
    cursor: pointer;
    margin-left: 5px;
}
.r_footer_wrapper {
    height: 20px;
    margin-top: 6px;
    margin-bottom: 10px;
}
.r_footer_wrapper .reply {
    float: right;
    border-radius: 3px !important;
    padding: 1px 4px !important;
    bottom: 3px;
    font-size: 12px;
    border: 1px solid #4682b4;
    padding: 4px 4px;
    color: #fff;
    width: 50px;
    background-color: #4682b4;
    cursor: pointer;
}
.show_reply {
    margin-top: 10px;
    outline: none;
    width: 100%;
    background: #fff;
    padding: 6px;
    margin-bottom: 5px;
    color: #4169e1;
    font-size: 12px;
    line-height: 28px;
    cursor: pointer;
    border: 2px solid #4169e1!important;
    border-radius: 3px;
    border: none;
    font-weight: bold;
}
.comment_wrapper {
    min-height: 50px;
    text-align: left;
    padding: 0px 10px 0px 10px;
}
.comment_reply_line .comment_wrapper {
    border-bottom: 2px dashed #c0c9e6;
}


/* ソート */
.sort_wrapper {
    text-align: center;
}
.sort_dom {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid #222;
    margin-bottom: 10px;
}
.sort_dom li[data-checked="checked"] {
    background: #ffd700;
    color: #222;
}
.sort_dom li[data-sort_by="update"], .sort_dom li[data-sort_by="good_sum"] {
    border-radius: 3px 3px 0 0;
    z-index: 999;
}
.sort_dom li {
    display: block;
    box-sizing: border-box;
    width: 50%;
    text-align: center!important;
    padding: 10px 0;
    line-height: 1!important;
    font-weight: bold;
    background: #f6f6f6;
    color: #b6b6b6;
    font-size: 12px!important;
    cursor: pointer;
    border-bottom: 0;
}

/* タグソート */
.sort_wrapper .tag_dom {
    display: flex;
    justify-content: left;
    flex-wrap: wrap;
    font-size: 12px;
    margin: 10px -3px;
}
.sort_wrapper .tag_dom li {
    display: flex;
    justify-content: center;
    font-weight: bold;
    box-sizing: border-box;
    color: #ffffff;
    line-height: 1;
    padding: 8px 0;
    margin: 3px 0;
    position: relative;
    cursor: pointer;
    font-size: 12px;
}
.sort_wrapper .tag_dom li:before {
    content: attr(data-value);
    background: #f6f6f6;
    position: absolute;
    width: calc(100% - 6px);
    height: 100%;
    top: 0;
    left: 3px;
    box-sizing: border-box;
    border-radius: 3px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ff7e22;
}
.sort_wrapper .tag_dom li[data-checked="checked"]:before {
    color: #ffffff;
    background: #ff7e22;
}


.cat_checkboxs_for_search .checkbox_box {
    width: calc(100% / 4) !important;
}

.selectedFile {
    cursor: pointer;
    width: calc(25% - 4px);
    position: relative;
    margin: 0 auto;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #cccccc1f;
    height: calc(45vw * 0.618 / 2);
    max-height: calc(245px * 0.618 / 2);
}

.selectedFile .fa {
    position: absolute;
    right: 0px;
    top: 0px;
    color: darkslategray;
    font-size: 20px;
    background: #fff;
    border-radius: 20px;
    padding: 0px 1px;
}

.for_img_preview {
    text-align: center;
    display: flex;
    flex-wrap: wrap;
}

.img_wrapper {
    left: 0;
    right: 0;
    margin: auto;
    display: flex;
    justify-content: center;
}

.img_wrapper .deck_img {
    margin: 5px;
    width: calc(50% - 10px);
    display: flex;
    cursor: pointer;
}

.img_wrapper .deck_img img {
    border-radius: 5px;
}

@media (max-width:480px){
    .modal-content {
        padding: 10px;
    }
    .sort_table th {
        padding: 1px 1px!important;
        font-size: 10px!important;
    }
    .sort_box > div {
        font-size: 10px;
        width: 20%!important;
        margin: 4px 2px 4px 2px!important;
        padding: 1px 0px 1px 0px!important;
    }
    .sort_table tr td .sort_box .job_sort {
        width: 30%!important;
    }
    .type_sort img {
        width: 20px!important;
        height: 20px!important;
    }
    .choose_chara {
        width: 18%;
    }
}
