/*
.lead, .note {
    font-size: 85%;
    color: #777;
}
*/
p span.right {
    float:  right;
}

/*---------------------------------------------
    DBページ
---------------------------------------------*/
.edit_h2 {
    background: #004c6b;
    padding: 10px 5px;
    color: #fff;
    font-size: 11px;
}

.edit_h3 {
    background: #eaeeef;
    margin: 10px 0;
    padding: 8px 5px;
    border: medium none;
    color: #333;
    font-size: 11px;
}

.acMenu dt span:after {
    margin-left: 10px;
    content: '▼';
}

.acMenu dt.active span:after {
    margin-left: 10px;
    content: '▲';
}

/*---------------------------------------------
    DBテンプレート編集
---------------------------------------------*/
.archive-title {
    margin: 10px 0;
}

#db_template {
    float: left;
}

#db_template_left {
    width: 30%;
    float: left;
}

#db_template_left .edit_text {
    border: 1px solid #444444;
    height: 50px;
}

#db_template_right {
    width: 70%;
    float: right;
}

#db_template_parts {
    margin: 5px 10px 0 5px;
    border: 1px dashed #c0c0c0;
}
#db_template_parts.fixed {
    position: fixed;
    top: 0;
}

#db_template_left .template-parts {
    margin: 15px 10px;
    cursor: move;
}

#db_template_right .new_area {
    border: 1px dashed #d7d7d7;
    color: #d7d7d7;
    width: 100%;
    height: 16px;
    padding: 1px 0;
    font-size: 9px;
}

#db_template_right .new_area:hover {
    border: 2px dashed #808080;
    color: #808080;
    font-size: 12px;
    padding: 0px 0;
}

#db_template_right p {
    margin: 3px 0;
}


/*---------------------------------------------
    DB詳細入力
---------------------------------------------*/
#mainContents.widefat {
    width: 100% !important;
}

#db_detail_form p {
    margin-bottom: 10px;
}

#db_mst_form, #modal_window {
    font-size: 11px;
}

#db_detail_form .section_title, #db_list_form .section_title {
    font-size: 120%;
    font-weight: bold;
    padding: 10px 0;
}

#db_detail_form .edit_h2 {
    font-size: 120%;
    padding: 10px 0 10px 12px;
    margin: 12px 0 12px;
    font-weight: bold;
}

#db_detail_form .edit_h3 {
    font-size: 110%;
    font-weight: bold;
    letter-spacing: 0.5px;
    padding: 8px 2px 8px 12px;
}

.db_list_disp_item ul li{
    display: inline;
}

.validation_errors {
    color: #f00;
}

.disp_parts {
    font-size: 11px;
}
.edit_textarea {
    width: 100%;
}
.edit_textarea textarea {
    width: 100%;
    box-sizing: border-box;
    height: 70px;
    margin: 10px 0 20px;
}

#db_mst_form table {
    margin-bottom: 0.5em;
    padding: 0;
    border: 1px solid #dde4e6;
}

#modal_overlay, #tag_modal_overlay, #wiki_modal_overlay {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 1;
}

.wiki_modal {
    position: fixed;
    z-index: 2;
    display: none;
}

#modal_window, #tag_modal_window {
    width: 600px;
    height: auto;
    padding: 35px;
    border: 1px solid #dde4e6;
    background-color: #FFF;
}

.selection_modal {
    display: none;
}

.input_type_setting {
    display: none;
}

#tag_modal_window ul {
width: 100%;
display:block;
text-align:left;
}
#tag_modal_window li {
display:inline-block;
margin-right:20px;
margin-bottom:20px;
background-color: #e0e0e0;
border: 1px solid #c0c0c0;
border-radius: 5px;
padding: 3px 25px 3px 5px;
cursor: pointer;
border:0;
position:relative;
}
#tag_modal_window li span{
display:inline-block;
position:absolute;
z-index:5;
padding: 0px 5px;
width:100%;
height:100%;
top:0;
right:0;
}
#tag_modal_window li.selected {
margin-right:20px;
margin-bottom:20px;
color: #fff;
background-color: #105898;
}
#tag_modal_window span.add:before {
margin: 0px;
padding:3px 2px 0 0;
font-weight: bold;
display: inline-block;
width: 12px;
content: "＋";
position:absolute;
right:5px;
}
#tag_modal_window span.del:before {
margin: 0px;
padding:3px 0px 0 0;
font-weight: bold;
display: inline-block;
width: 12px;
content: "×";
position:absolute;
right:5px;
top:-2;
}

.selected_tag {
    margin: 0 10px;
}

.db_list_set {
    margin: 5px 0;
    padding: 5px;
    border: 1px solid #d6d6d6;
}

.db_list_set ul {
    width: 100%;
}

.db_list_set li {
    float:left;
    background-color: #e0e0e0;
    border: 1px solid #c0c0c0;
    margin: 0 5px;
    padding: 5px;
}
.db_list_set li.selected {
    background-color: #e60012;
    color: #fff;
}

.searchButton{
    border:0;
    border-radius:5px;
    padding:5px 16px;
    background-color: #e60012;
    color:#fff;
    cursor:pointer;
}

.searchButton:hover{
    opacity:0.6;
}

.db_list_set .clear-both {
    clear: both;
}

.db_list_set p {
    margin-top: 10px;
}

.db_list_set .selection{
    float:left;
    margin-right:10px;
    margin: 5px;
    background-color: #e0e0e0;
    border: 1px solid #c0c0c0;
    border-radius: 5px;
    padding: 3px 10px;
    cursor: pointer;
    border:0;
}

.sort_exclude {
    cursor: default;
}

.widefat {
    width: 100%;
}

.sortable {
    cursor: move;
}

.selection-table .col-name {
    width: 55%;
}
.selection-table .col-name input {
    width: 95%;
}
.selection-table .col-icon, .selection-table .col-disp, .selection-table .col-delete {
    width: 15%;
}

#input_page_info div {
    margin: 10px 0;
}

td input {
    min-width: 10px;
    max-width: 100%;
    margin-right: 5px;
}

.operation_message {
    color: #00f;
    font-weight: bold;
}

.operation_message.error {
    color: #f00;
    font-weight: bold;
}

.tag_list + hr + p br{
    display:none;
}

.tag_list + hr + p br:first-of-type{
    display:block;
}

.tag_list + hr + p input{
    margin:10px 10px 10px 4px;
    width: 160px;
}

.tag_list + hr + p button{
    border:1px solid #aaa;
    padding:4px 10px;
        color: #fff;
    border-radius:5px;
    cursor: pointer;
}
@media only screen and (orientation:landscape) and (max-width : 813px),(orientation:portrait) and (max-width : 753px){
    #modal_window, #tag_modal_window{
        width: 100%;
        padding: 30px;
    }
    #tag_modal_window li{
        margin-right: 15px;
    margin-bottom: 15px;
    }
    #tag_modal_window li.selected{
        margin-right: 15px;
    margin-bottom: 15px;
    }
    .tag_list + hr + p br{
    display:block;
}
.tag_list + hr + p input{
    margin-right: 0;
}
.tag_list + hr + p input:first-of-type{
    margin-bottom: 0;
}
}
/*---------------------------------------------
カテゴリー編集
---------------------------------------------*/

.category_list ul {
width: 100%;
display:block;
text-align:left;
}
.category_list li {
display:inline-block;
margin-right:20px;
margin-bottom:20px;
background-color: #e0e0e0;
border: 1px solid #c0c0c0;
border-radius: 5px;
padding: 3px 25px 3px 5px;
cursor: pointer;
border:0;
position:relative;
}
.category_list li span{
display:inline-block;
position:absolute;
z-index:5;
padding: 0px 5px;
width:100%;
height:100%;
top:0;
right:0;
}
.category_list li.selected {
margin-right:20px;
margin-bottom:20px;
color: #fff;
background-color: #105898;
}
.category_list span.add:before {
margin: 0px;
padding:3px 2px 0 0;
font-weight: bold;
display: inline-block;
width: 12px;
content: "＋";
position:absolute;
right:5px;
}
.category_list span.del:before {
margin: 0px;
padding:3px 0px 0 0;
font-weight: bold;
display: inline-block;
width: 12px;
content: "×";
position:absolute;
right:5px;
top:-2;
}

.category_list + hr + p br{
    display:none;
}

.category_list + hr + p br:first-of-type{
    display:block;
}

.category_list + hr + p input{
    margin:10px 10px 10px 4px;
}

.category_list + hr + p button{
    border:0;
    padding:4px 10px;
        color: #fff;
    background: #e60012;
    border-radius:5px;
    cursor: pointer;
}

.condition_setting{
        border: 1px solid #dde4e6;
}

.condition_setting th{
    text-align: center;
    padding:10px 0;
}

@media only screen and (orientation:landscape) and (max-width : 813px),(orientation:portrait) and (max-width : 753px){
    .category_list + hr + p br{
    display:block;
}
.category_list + hr + p input{
    margin-right: 0;
}
.category_list + hr + p input:first-of-type{
    margin-bottom: 0;
}
.category_list li,.category_list li.selected {
    margin-right:15px;
    margin-bottom:15px;
}
}


/*---------------------------------------------
tag追加
---------------------------------------------*/
p.newtag-box{
margin:-2px 0 0 0;
border:1px solid #ccc;
padding:0 0 20px;
box-sizing:border-box;
}
p.newtag-box > br{
display:none!important;
}
p.newtag-box span.newtag-box-h{
background:#000f37;
display:block;
padding:5px 0;
color:#FFF;
margin:0 0 10px;
}
p.newtag-box button{
border: 0px!important;
padding: 5px 10px!important;
background:#737373;
color: #fff;
border-radius: 3px!important;
cursor: pointer;
margin:10px 0 0;
width:150px;
}
p.newtag-box button:hover{
opacity:0.6;
}
p.newtag-box + button.remodal-confirm{
color: #fff;
background: #e60012;
border-radius: 5px;
font: inherit;
display: inline-block;
overflow: visible;
width: 250px;
margin: 20px 0 0 0;
padding: 10px 0;
cursor: pointer;
transition: background 0.2s;
text-align: center;
vertical-align: middle;
text-decoration: none;
border: 0;
outline: 0;
}

/*---------------------------------------------
category追加
---------------------------------------------*/
p.newcategory-box{
margin:-2px 0 0 0;
border:1px solid #ccc;
padding:0 0 20px;
box-sizing:border-box;
}
p.newcategory-box > br{
display:none!important;
}
p.newcategory-box span.newcategory-box-h{
background:#000f37;
display:block;
padding:5px 0;
color:#FFF;
margin:0 0 10px;
}
p.newcategory-box button{
border: 0px!important;
padding: 5px 10px!important;
background:#737373!important;
color: #fff;
border-radius: 3px!important;
cursor: pointer;
margin:10px 0 0;
width:150px;
}
p.newcategory-box button:hover{
opacity:0.6;
}
p.newcategory-box + button.remodal-confirm{
color: #fff;
background: #e60012;
border-radius: 5px;
font: inherit;
display: inline-block;
overflow: visible;
width: 250px;
margin: 20px 0 0 0;
padding: 10px 0;
cursor: pointer;
transition: background 0.2s;
text-align: center;
vertical-align: middle;
text-decoration: none;
border: 0;
outline: 0;
}
