/* 
    Created on : 2014/06/12, 11:19:28
    Author     : kato
*/

label {
    font-weight: bold;
    min-width: 110px;
    text-align: right;
    padding-right: 4px;
    height: 24px;
    line-height: 12px;
}

label:not(.required_label) {
    padding-right: 15px;
    margin-bottom: 5px;
    line-height: 14px;
}

input[type="text"],
select {
    border: solid 1px #97c2f4;
    padding: 2px;
    line-height: 14px;
    height: 27px;
    margin: 2px;
    border-radius: 3px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
}

select:disabled {
    color: #787d88;
    background-color: #f9f9f9;
}

input[type="checkbox"] + span,
input[type="radio"] + span {
    padding: 4px;
}

input[type="checkbox"]:checked:enabled + span,
input[type="radio"]:checked:enabled + span {
    color: #5bc0de;
}

.bg_modal input[type="checkbox"]:checked:enabled + span,
.bg_modal input[type="radio"]:checked:enabled + span {
    /*color: #c8efea;*/
    font-weight: bold;
}

input[readOnly="readOnly"],
input[disabled="disabled"],
input[disabled],
select[disabled="disabled"],
textarea[readOnly="readOnly"]:focus,
input[readOnly="readOnly"]:focus {
    background-color: #f9f9f9;
    border-color: #6e7475;
    cursor: default;
}

/* IEでテキストボックスに×ボタンが勝手に付くのを阻止 */
/*::-ms-clear {
    display: none;
}*/

.search_btn {
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    -o-border-radius: 5px;
    -ms-border-radius: 5px;
    width: 27px;
    height: 27px;
    text-align: center;
    -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
    -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
    line-height: 26px;
    cursor: pointer;
    margin-left: 4px;
    margin-top: -2px;
}

input[disabled] + .search_btn,
input[readOnly="readOnly"] + .search_btn {
    pointer-events: none;
    cursor: not-allowed;
    filter: alpha(opacity=65);
    -webkit-box-shadow: none;
    box-shadow: none;
    opacity: .65;
}

input[disabled] + .ui-datepicker-trigger,
.datepicker_ym[readOnly="readOnly"] + .ui-datepicker-trigger,
.datepicker[readOnly="readOnly"] + .ui-datepicker-trigger {
    opacity: 0.5;
}

//必須項目のアスタリスク
.required_label {
    position: relative;
}

.required_label:after {
    position: relative;
    content: "*";
    color: #da5019;
    font-size: 20px;
    font-weight: bold;
}

/* ==========================================================================
   チェックボックス
   参考：http://k1blog.com/web/web-create/post-2254/
   ========================================================================== */
input[type='checkbox']:focus,
select:focus {
    outline: none;
}

.checkbox_square {
    border-radius: 2px;
    -moz-border-radius: 2px;
    -webkit-border-radius: 2px;
    -o-border-radius: 2px;
    -ms-border-radius: 2px;
    border: 1px solid #d3d3d3;
    -webkit-appearance: none;
    position: relative;
    vertical-align: -2px;
    -webkit-box-sizing: border-box;
    width: 16px;
    height: 16px;
    background-color: #e6e6e6;
    left: 2px;
}

.checkbox_square:hover:before,
.checkbox_square:checked:before {    
    content: "\f00c";
    position: absolute;
    left: 0px;
    top: 0px;
    display: block;
    font-size: 13px;
    color: #fff;
    font: normal normal normal 14px/1 FontAwesome;
    border: none;
}

.checkbox_square:checked {
    background-color: #5bc0de;
    border: 1px solid #5bc0de;
}

.checkbox_square:disabled {
    background-color: #d5e0f1;
    border: none;
}

.checkbox_square:disabled + span,
.radio_circle:disabled + span {
    color: #787d88;
}

.checkbox_square:disabled:before {
    left: 3px;
    top: 2px;
}

/* IE用 */
.checkbox_square::-ms-check {
    border: 1px solid #aaaaaa;
    background: #BEC7D7;
    border-radius: 5px;
    -ms-border-radius: 5px;
    color: #fff;
}

.checkbox_square:hover::-ms-check {    
    background: #1DAF9E;
}

.checkbox_square:checked::-ms-check {
    background: #1DAF9E;
}

/* ==========================================================================
   チェックボックス(タブレット)
   ========================================================================== */
.btn_tablet {
    cursor: pointer;
}

.checkbox_tablet .checkbox_square::-ms-check {
    border: none;
    background-color: #dbdbdb;
    border-radius: 5px;
    -ms-border-radius: 5px;
    color: #fff;
    width: 16px;
    height: 16px;
}

.checkbox_tablet,
.service_tablet {
    margin-top: -5px;
}

.checkbox_tablet > div:nth-of-type(1) {
    border-radius: 5px 0 0 5px;
}

.checkbox_tablet > div:nth-last-of-type(2) {
    border-radius: 0 5px 5px 0;
    border-right: 1px solid #aaaaaa;
}

.checkbox_tablet .checkbox_square,
.service_tablet .checkbox_square {
    border: none;
    width: 16px;
    height: 16px;
    vertical-align: -1px;
    background-color: #dbdbdb;
    margin-right: 4px;
}

.checkbox_tablet .checkbox_square:checked:enabled,
.service_tablet .checkbox_square:checked:enabled {
    background-color: #1DAF9E;
}

.checkbox_tablet .checkbox_square:before,
.service_tablet .checkbox_square:before {
    font-size: 8pt;
    top: 1px;
    left: 2px;
}

/* 便選択用のチェックボックス */
.service_tablet .btn_tablet {
    width: 70px;
    border-radius: 5px;
    border: 1px solid #aaaaaa;
    margin: 0 8px 8px 0;
}

.service_tablet > .btn_tablet:last-of-type,
#service_none {
    width: 226px;
    text-align: center;
}

/* ==========================================================================
   ラジオボタン
   ========================================================================== */
input[type='radio']:focus {
    outline: none;
}

.radio_circle {
    border-radius: 11px;
    -moz-border-radius: 11px;
    -webkit-border-radius: 11px;
    -o-border-radius: 11px;
    -ms-border-radius: 11px;
    border: 4px solid #BEC7D7;
    vertical-align: -3px;
    -webkit-appearance: none;
    position: relative;
    margin-right: 5px;
    -webkit-box-sizing: border-box;
    background-color: #fff;
    width: 20px;
    height: 20px;
}

/* IE用 */
.radio_circle::-ms-check {
    border: 4px solid #BEC7D7;
}

.radio_circle:before {
    content: "";
    position: absolute;
    border-radius: 10px;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    -o-border-radius: 10px;
    -ms-border-radius: 10px;
    left: -4px;
    top: -4px;
    display: block;
    width: 20px;
    height: 20px;
    border: 1px solid #aaaaaa;
}

.radio_circle:hover:after,
.radio_circle:checked:after,
.radio_circle:checked:disabled:after {
    content: "";
    position: absolute;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    -o-border-radius: 5px;
    -ms-border-radius: 5px;
    left: 3px;
    top: 3px;
    display: block;
    width: 6px;
    height: 6px;
    background-color: #BEC7D7;
}

.radio_circle:checked {
    border: 4px solid #1DAF9E;
}

.radio_circle:checked:before {
    border: 1px solid #009F8C;
}

.radio_circle:checked:after {
    background-color: #1DAF9E;
}

.radio_circle:disabled {
    border: 4px solid #d5e0f1;
}

.radio_circle:disabled:before {
    border: none;
}

.radio_circle:disabled:after {
    background-color: #d5e0f1;
}

/* ==========================================================================
   ラジオボックス(タブレット)
   ========================================================================== */
.checkbox_tablet .radio_circle {
    width: 16px;
    height: 16px;
    vertical-align: -1px;
    border: 4px solid #dbdbdb;
    margin-right: 4px;
}

.checkbox_tablet .radio_circle:checked:enabled {
    border: 4px solid #1DAF9E;
}

.checkbox_tablet .radio_circle:before {
    border: none;
}

.checkbox_tablet .radio_circle:after,
.checkbox_tablet .radio_circle:checked:after {
    width: 4px;
    height: 4px;
    top: 2px;
    left: 2px;
}

/* ==========================================================================
   セレクトボックス(タブレット)
   本当にタブレットでする場合、▼は表示されないのでそれようにまた修正が必要
   ========================================================================== */
.select_tablet {
    height: 32px;
    border-radius: 5px;
    -ms-border-radius: 5px;
    border: 1px solid #aaaaaa;
    padding: 0;
    margin-top: -3px;
}

.select_tablet select {
    margin: 0;
    border: none;
    background-color: transparent;
    height: 30px;
}

.select_tablet div {
    width: 15px;
    position: relative;
}

.select_tablet div:before {
    content: "";
    position: absolute;
    left: -27px;
    top: -20px;
    display: block;
    height: 29px;
    width: 35px;
    background: #fefefe; /* Old browsers */
    background: -moz-linear-gradient(top, #fefefe 1%, #f1f1f1 100%); /* FF3.6+ */
    background: -webkit-linear-gradient(top, #fefefe 1%, #f1f1f1 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top, #fefefe 1%, #f1f1f1 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top, #fefefe 1%, #f1f1f1 100%); /* IE10+ */
}

.select_tablet div:after {
    content: "\e114";
    position: absolute;
    left: -4px;
    top: -11px;
    display: block;
    font-size: 10pt;
    height: 30px;
    width: 35px;
    color: #787d88;
}

select:disabled + div:after {
    color: #bec7d7;
}

/* ==========================================================================
   タブ切り替え
   ========================================================================== */
.cmn_tab {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cmn_tab > li {
    float: left;
    padding: 4px 8px;
    margin-right: 2px;
}

.cmn_tab > li.active {
    background-color: #8f95a2;
}

.cmn_tab > li:not(.active) {
    background-color: #d0cece;
}

.cmn_tab a {
    text-decoration: none;
    color: #fff;
}

.cmn_tab:after {
    clear: both;
    content: " ";
    display: table;
}

/* ==========================================================================
   ブラウザ間の違いへの対応
   ========================================================================== */
//chromeのみ
@media screen and (-webkit-min-device-pixel-ratio:0) {
    .search_btn {
        margin-top: -1px;
    }
}

//IEのみ
@media screen and (min-width:0\0) {
    label {
        padding-right: 5px;
    }
}
