/*
ブラウザ間でのInput[type:range]のレイアウトが違うため、それを揃える。
レイアウトは基本的にchromeに近いレイアウトにしている
*/

input[type=range] {
    /*removes default webkit styles*/
    -webkit-appearance: none;
    /*fix for FF unable to apply focus style bug */
    border: 1px solid white;
    /*required for proper track sizing in FF*/
    width: 250px;
}
input[type=range].wide320 {
    /*removes default webkit styles*/
    -webkit-appearance: none;
    /*fix for FF unable to apply focus style bug */
    border: 1px solid white;
    /*required for proper track sizing in FF*/
    width: 320px;
}
input[type=range]:focus {
    outline: none;
}

/*chrome表示用*/
/*背景バー*/
input[type=range]::-webkit-slider-runnable-track {
    width:250px;
    height: 6px;
    background: #ccc;
    border: none;
    border-radius: 3px;
}
input[type=range].wide320::-webkit-slider-runnable-track {
    width:320px;
    height: 6px;
    background: #ccc;
    border: none;
    border-radius: 3px;
}
/*動かすつまみ*/
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    border: none;
    height: 16px;
    width: 16px;
    border-radius: 0%;
    background: #4682b4;
    margin-top: -5px; /*設定しないとバーとつまみの上端の高さが揃ってしまう*/
}
/*動かすつまみ マウス乗せてる*/
input[type=range]::-webkit-slider-thumb:hover {
    background: #1577af;
}
/*動かすつまみ マウスで選択時(つまみを持ちながらマウスをつまみから離すとhoverだけだと色が戻るため)*/
input[type=range]::-webkit-slider-thumb:active {
    background: #1577af;
}
/*背景バー フォーカス時*/
input[type=range]:focus::-webkit-slider-runnable-track {
    background: #ccc;
}
/*本体disabled時のつまみの色変更*/
input[type=range]:disabled::-webkit-slider-thumb {
    background: #aaa;
}
/*chrome表示用 終了*/

/*FF表示用*/
/*背景バー*/
input[type=range]::-moz-range-track {
    width: 250px;
    height: 6px;
    background: #ccc;
    border: none;
    border-radius: 3px;
}
input[type=range].wide320::-moz-range-track {
    width: 320px;
    height: 6px;
    background: #ccc;
    border: none;
    border-radius: 3px;
}
/*動かすつまみ*/
input[type=range]::-moz-range-thumb {
    border: none;
    height: 16px;
    width: 16px;
    border-radius: 0%;
    background: #4682b4;
}
/*動かすつまみ マウス乗せてる*/
input[type=range]::-moz-range-thumb:hover {
    background: #1577af;
}
/*動かすつまみ マウスで選択時(つまみを持ちながらマウスをつまみから離すとhoverだけだと色が戻るため)*/
input[type=range]::-moz-range-thumb:active {
    background: #1577af;
}
/*hide the outline behind the border*/
input[type=range]:-moz-focusring{
    outline: 1px solid white;
    outline-offset: -1px;
}
/*本体disabled時のつまみの色変更*/
input[type=range]:disabled::-moz-range-thumb {
    background: #aaa;
}
/*FF表示用 終了*/

/*IE・Edge表示用*/
/*背景バー*/
input[type=range]::-ms-track {
    width: 250px;
    height: 6px;
    /*remove bg colour from the track, we'll use ms-fill-lower and ms-fill-upper instead */
    background: transparent;
    /*leave room for the larger thumb to overflow with a transparent border */
    border-color: transparent;
    border-width: 6px 0;
    /*remove default tick marks*/
    color: transparent;
}
input[type=range].wide320::-ms-track {
    width: 320px;
    height: 6px;
    /*remove bg colour from the track, we'll use ms-fill-lower and ms-fill-upper instead */
    background: transparent;
    /*leave room for the larger thumb to overflow with a transparent border */
    border-color: transparent;
    border-width: 6px 0;
    /*remove default tick marks*/
    color: transparent;
}
/*背景バー　つまみより左側(つまみより下の値)背景*/
input[type=range]::-ms-fill-lower {
    background: #ccc;
    border-radius: 10px;
}
/*背景バー　つまみより右側(つまみより上の値)背景*/
input[type=range]::-ms-fill-upper {
    background: #ccc;
    border-radius: 10px;
}
/*動かすつまみ*/
input[type=range]::-ms-thumb {
    border: none;
    height: 16px;
    width: 16px;
    border-radius: 0%;
    background: #4682b4;
}
/*動かすつまみ マウス乗せてる*/
input[type=range]::-ms-thumb:hover {
    background: #1577af;
}
/*動かすつまみ マウスで選択時(つまみを持ちながらマウスをつまみから離すとhoverだけだと色が戻るため)*/
input[type=range]::-ms-thumb:active {
    background: #1577af;
}
/*背景バー　つまみより左側(つまみより下の値)背景　フォーカス時*/
input[type=range]:focus::-ms-fill-lower {
    background: #ccc;
}
/*背景バー　つまみより右側(つまみより上の値)背景　フォーカス時*/
input[type=range]:focus::-ms-fill-upper {
    background: #ccc;
}
/*IE・Edgeの場合、数値がツールチップで表示されてしまうので非表示に*/
input[type=range]::-ms-tooltip{
    display:none;
}
/*本体disabled時のつまみの色変更*/
input[type=range]:disabled::-ms-thumb {
    background: #aaa;
}
/*IE・Edge表示用 終了*/
