@charset "utf-8";
/*style直書きをリセット*/

.contentsInner.news {
    display: initial !important;
}

/*--------------------------------------------------
 * pc　768px以上
 *--------------------------------------------------*/

@media only screen and (min-width: 768px), print {
    h6.recommend {
        min-width: 270px;
        overflow: hidden;
        max-height: 81.6px;
    }
    p.r-description-text {
        min-width: 270px;
    }
    h5.recommend {
        margin-top: 20px;
    }
    .fdb-block {
        padding: 1.5rem 0;
    }
    .list_item_height {
        display: flex;
    }
    p.under_p {
        margin-left: 120px;
        font-family: "Meiryo", "Hiragino Kaku Gothic Pro", "MS PGothic", Sans-Serif !important;
        font-size: 16px;
        text-align: justify;
    }
    .wrap {
        overflow: hidden;
        width: 1280px;
        /*width: 100%;*/
        margin-left: auto;
        margin-right: auto;
    }
    .contentsInner news {
        float: left;
    }
    .side-menu {
        /* float: left;に変更 */
        float: left;
        width: 200px;
    }
    .side-menu li a {
        display: block;
        height: 44px;
        line-height: 44px;
        border-bottom: 1px solid #333;
        text-decoration: none;
        color: #333;
    }
    .main {
        float: left;
        width: 780px;
        padding-left: 40px;
    }
    .ex-5 {
        display: flex;
    }
    .ex-5 .card {
        background: #fff;
        padding: 1rem;
        border-radius: 5px;
        width: 100%;
        box-shadow: 0 2px 3px 0 rgba(0, 0, 0, .075);
    }
    .ex-5 .c-1, .ex-5 .c-2 {
        margin-right: 1.5rem;
        margin-left: 1.5rem;
    }
    .ex-5 .line {
        width: 100%;
        max-width: 6rem;
        height: 3px;
        margin: 1rem 0 2rem;
        margin: auto;
        background: #11B8AB;
        margin-top: 20px;
    }
    .reform-news-topimg {
        max-width: 90%;
        height: 165px;
        display: block;
        margin-left: 15px;
        border-radius: 20px;
        -webkit-border-radius: 20px;
        -moz-border-radius: 20px;
        object-fit: cover;
        margin: auto;
    }
    .ex-5 {
        background: #f1f1f1;
        padding: 1.5rem;
    }
    div.margin {
        margin-left: 20px;
        width: 95%;
        display: table;
    }
    h5.link {
        margin-top: 5px;
        position: relative;
        font-family: "Meiryo", "Hiragino Kaku Gothic Pro", "MS PGothic", Sans-Serif !important;
        font-size: 18px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
    .ex-5 p.revenue {
        font-size: 1.5rem;
    }
    h4.link {
        position: relative;
        padding-left: 25px;
        font-family: "Meiryo", "Hiragino Kaku Gothic Pro", "MS PGothic", Sans-Serif !important;
        font-size: 20px;
    }
    .boxWrapper {
        margin: 0 auto;
        padding-top: 120px;
        width: 1220px;
        position: relative;
        bottom: 31px;
    }
    .side-knowladge {
        margin-bottom: 10px;
        padding: 1px;
        background: url(../img/sidebar/knowladge2.png) no-repeat center bottom;
        height: 242px;
    }
    .ranking_banner_top {
        text-justify: center;
    }
    .ranking_banner_bottom {
        font-size: 16px;
        text-align: center;
        letter-spacing: 5px;
    }
    .side-qa-ranking .inner h3 {
        /*background: url(https://localhost/Ribilo/trunk/webroots/ring-paint/img/contents/qa_rank.png) no-repeat 15px 5px;*/
        font-size: 14px;
        font-weight: normal;
        margin: 20px 5px 20px;
        text-align: center;
        font-weight:800;
        /* background-color: #f9f9f9; */
    }
    .side-qa-ranking .inner h3::before {
        font-family: 'Font Awesome 5 Free';
        content: "\f091";
        margin-right: 2px;
        font-size: 30px;
        color: gold;
        padding-bottom: 30px;
    }
    .js-read-qa {
        margin-bottom: 30px;
    }
    table.qa-ranking td {
        width: 170px;
    }
    table.qa-ranking td a {
        font-size: 12px;
    }
    table.qa-ranking th {
        font-weight: bold;
        padding: 4px 2px 2px;
        height: 30px;
        width: 30px;
    }
    .maru_half {
        height: 20px;
        width: 20px;
        border-radius: 50%;
        -moz-border-radius: 50%;
        -webkit-border-radius: 50%;
        background: #ffffff;
        color: #8c8c8c;
        border: 1px solid #dedede;
        position: absolute;
        top: 5px;
        left: -5px;
    }
}

/*--------------------------------------------------
 * スマホ 767px以下
 *--------------------------------------------------*/

@media only screen and (max-width: 767px) {
    .inner {
        display: flex;
    }
    .inner h3, .active.js-li-read, .js-li-ans.active {
        display: none;
    }
    h6.recommend {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
    }
    .qa-ranking {
        height: 100%;
        width: 100%;
        border: 0.5px #d3d3d3 solid;
    }
    .js-ans-qa::before {
        display: block;
        font-family: FontAwesome;
        bottom: 100%;
        left: -2px;
        content: "回答数ランキング";
        background-color: #434343;
        color: rgb(255, 255, 255);
        padding: 2px 6px;
        border-radius: 6px 6px 0px 0px;
        top: -1em;
        text-align: center;
    }
    .qa-ranking tr {
        border-bottom: 0.5px solid rgb(214, 214, 214);
    }
    .js-read-qa, .js-ans-qa {
        flex: 1;
    }
    .qa-ranking {
        border-collapse: collapse;
        font-size: 12px;
    }
    /*スマホのアンダーメニューの文字*/
    p.under_p {
        margin-left: 110px;
        font-family: "Meiryo", "Hiragino Kaku Gothic Pro", "MS PGothic", Sans-Serif !important;
        font-size: 14px;
        overflow: hidden;
        text-align: justify;
        height: 5.4em;
        line-height: 1.8em;
    }
    .main {
        width: 100%;
    }
    .side-menu {
        width: 100%;
    }
    .side-menu li a {
        display: block;
        height: 44px;
        line-height: 44px;
        border-bottom: 1px solid #333;
        text-decoration: none;
        color: #333;
    }
    .ex-5 .card {
        margin-right: 5px;
        background: #fff;
        padding: 1rem;
        border-radius: 5px;
        width: 90%;
        box-shadow: 0 2px 3px 0 rgba(0, 0, 0, .075);
    }
    .c-1 {
        margin-left: 5px;
    }
    .main {
        width: 100%;
    }
    .side-menu li a {
        display: block;
        height: 44px;
        line-height: 44px;
        border-bottom: 1px solid #333;
        text-decoration: none;
        color: #333;
    }
    .item {
        display: flex;
        justify-content: center;
        /*左右中央揃え*/
        align-items: center;
        /*上下中央揃え*/
    }
    .item2 {
        display: flex;
        justify-content: center;
        /*左右中央揃え*/
        align-items: center;
        /*上下中央揃え*/
    }
    .item3 {
        display: flex;
        justify-content: center;
        /*左右中央揃え*/
        align-items: center;
        /*上下中央揃え*/
    }
    /* ページタイトル画像用 */
    .flex {
        max-width: 767px;
        margin: 0 auto;
        margin-top: 12px;
    }
    .ex-5 {
        display: flex;
    }
    .flex2 {
        display: flex;
        max-width: 767px;
        margin: 0 auto;
        margin-top: 12px;
        flex-direction: column;
    }
    .ex-5 .line {
        width: 100%;
        max-width: 5rem;
        height: 3px;
        margin: 1rem 0 2rem;
        margin-left: 25%;
        background: #11B8AB;
    }
    .reform-news-topimg {
        max-width: 90%;
        height: 80px;
        display: block;
        margin: auto;
        border-radius: 20px;
        -webkit-border-radius: 20px;
        -moz-border-radius: 20px;
        object-fit: cover;
    }
    .ex-5 {
        background: #f1f1f1;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
    div.margin {
        margin-left: 20px;
        width: 90%;
        display: table;
    }
    h5.link {
        margin-top: 5px;
        position: relative;
        font-family: "Meiryo", "Hiragino Kaku Gothic Pro", "MS PGothic", Sans-Serif !important;
        font-size: 16px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
    .ex-5 p.revenue {
        font-size: 16px;
    }
    h4.link {
        position: relative;
        padding-left: 25px;
        font-family: "Meiryo", "Hiragino Kaku Gothic Pro", "MS PGothic", Sans-Serif !important;
        font-size: 16px;
    }
    .flex {
        flex-wrap: nowrap;
        justify-content: space-between;
    }
    .item+.item {
        margin-left: 1.0em;
    }
    .container {
        flex-direction: row-reverse;
        justify-content: space-between;
    }
    .flex2 {
        flex-wrap: nowrap;
        justify-content: space-between;
        flex-direction: row;
    }
    .boxWrapper {
        margin: 0 auto;
        padding-top: auto;
        width: 100%;
        position: relative;
    }
    .wrap {
        display: flex;
    }
    .side-qa-ranking .inner li.active {
        color: #000;
        background-color: #fff;
        border-bottom: #ddd 1px solid;
        text-align: left;
        padding-left: 10px;
        font-size: 14px;
    }
    table.qa-ranking td a {
        color: #333;
        font-size: 15px;
    }
    table.qa-ranking th {
        font-weight: bold;
        padding: 0px 10px 8px;
        height: 30px;
        width: 30px;
    }
    .maru_half {
        height: 20px;
        width: 20px;
        border-radius: 50%;
        -moz-border-radius: 50%;
        -webkit-border-radius: 50%;
        background: #ffffff;
        color: #8c8c8c;
        border: 1px solid #dedede;
        position: absolute;
        top: 5px;
        left: 2px;
    }
    div.margin-top {
        padding: 20px;
    }
}

/*--------------------------------------------------
 * PCとスマホの共通
 *--------------------------------------------------*/

h3.link {
    font-size: 22px;
    font-family: "Meiryo", "Hiragino Kaku Gothic Pro", "MSPGothic", Sans-Serif !important;
    display: table-cell;
    vertical-align: middle;
    position: relative;
    /*線の種類（点線）2px 線色*/
    border-bottom: dashed 3px #9b9b9b;
    font-weight: bold;
    color: #727272;
}


h4.link:after {
    position: absolute;
    content: '';
    bottom: -3px;
    left: 10px;
    width: 100%;
    border-bottom: solid 3px #6C0000;
}

h5.recommend {
    /*文字周りの余白*/
    padding: 0.5em;
    /*文字色*/
    color: #010101;
    /*背景色*/
    background: #ededed;
    font-size: 18px;
    font-family: "Meiryo", "Hiragino Kaku Gothic Pro", "MS PGothic", Sans-Serif !important;
}

h6.recommend {
    margin-top: 20px;
    font-size: 18px;
    font-family: "Meiryo", "Hiragino Kaku Gothic Pro", "MS PGothic", Sans-Serif !important;
}

p.r-description-text {
    /*高さを揃える*/
    height: 90px;
    font-family: "Meiryo", "Hiragino Kaku Gothic Pro", "MS PGothic", Sans-Serif !important;
    font-size: 16px;
    overflow: hidden;
    max-height: 90px;
}

img.img-r-description {
    height: 120px;
    width: auto;
}

.btn-flat-border {
    margin-top: 20px;
    display: inline-block;
    padding: 0.3em 1em;
    text-decoration: none;
    color: #F26964;
    border: solid 2px #F26964;
    border-radius: 3px;
    transition: .4s;
    font-family: "Meiryo", "Hiragino Kaku Gothic Pro", "MS PGothic", Sans-Serif !important;
    font-size: 16px;
}

.btn-flat-border:hover {
    background: #F26964;
    color: white;
    font-family: "Meiryo", "Hiragino Kaku Gothic Pro", "MS PGothic", Sans-Serif !important;
    font-size: 16px;
}

/*---------------------------------
 * 上の記事ここから
 *--------------------------------*/

div.topnews {
    position: relative;
    background: #f2f2f2;
    margin-top: 20px;
    padding-top: 20px;
}

div.margin-top {
    margin-top: 20px;
}

.linkbox {
    position: relative;
}

.linkbox a {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
}

.linkbox a:hover {
    /* マウスオーバー時に色変更*/
    opacity: 0.1;
    background-color: #000000;
}

.wrap p.sub-title {
    font-size: 1.5rem;
    color: #222;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.lud {
    margin: 4rem 0 4rem;
}

.lud p:nth-child(3) {
    font-size: 12px;
    font-style: italic;
}

.ex-5 p {
    margin-bottom: 0;
}

.ex-5 p.label {
    color: #888;
    font-size: .875rem;
}

.ex-5 .sales {
    margin-top: 20px;
    font-size: 18px;
    font-family: "Meiryo", "Hiragino Kaku Gothic Pro", "MS PGothic", Sans-Serif !important;
    font-weight: bold;
    text-align: center;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

/*---------------------------------
 * 上の記事ここまで
 *--------------------------------*/

/*---------------------------------
 * 記事一覧の下サムネここから
 *--------------------------------*/

div.under_list {
    margin-top: 30px;
    margin-bottom: 10px;
}

.under_list ul {
    border-bottom: 1px solid #ccc;
}

.under_list ul li {
    height: 110px;
    margin: 0px;
    border-top: 1px solid #ccc;
}

.under_list ul li a {
    display: block;
    overflow: hidden;
    height: 100px;
    margin: 0;
    padding: 0 30px 0 0;
}

.under_list ul li img {
    width: 80px;
    height: 80px;
    margin: 10px;
    margin-right: 20px;
    float: left;
    object-fit: cover;
}

.linkbox2 a:hover {
    /* マウスオーバー時に色変更*/
    background-color: #b8b8b8;
}

/*---------------------------------
 * 記事一覧の下サムネここまで
 *--------------------------------*/

.item {
    margin-top: 20px;
}

.item2 {
    margin-top: 20px;
}

.item3 {
    margin-top: 20px;
}

/*---------------------------------
 * ランキングのところ
 *--------------------------------*/

.side-qa-ranking .inner h3 {
    text-align: center;
}

.side-qa-ranking .inner ul {
    width: 98%;
    display: table;
    table-layout: fixed;
    border-collapse: collapse;
    margin: 0;
    padding: 0;
}

.side-qa-ranking .inner li.active {
    color: #000;
    background-color: #fff;
    border-bottom: #ddd 1px solid;
    text-align: left;
    padding-left: 10px;
    font-size: 14px;
}

.qa-ranking {
    font-size: 12px;
}

table.qa-ranking td {
    padding: 6px 2px 2px;
}

table.qa-ranking td a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    line-height: 1.333333333;
}

.maru_half {
    text-align: center;
}
.maru_half.no1color {
    color: #fff;
    border: 2px solid #FFBF00;
    background-color: #FFBF00;
    text-align: center;
}

.maru_half.no2color {
    color: #fff;
    border: 2px solid #6E6E6E;
    background-color: #6E6E6E;
}

.maru_half.no3color {
    color: #fff;
    border: 2px solid #5F4C0B;
    background-color: #5F4C0B;
}

table.qa-ranking td.more {
    text-align: center;
    padding: 10px 3px 3px 3px;
}

table.qa-ranking td.more>a {
    display: block;
    color: #fff;
    padding: 5px;
    background-color: #dd631b;
    width: 120px;
    margin: auto;
}

table.qa-ranking img {
    width: 55px;
    height: 55px;
    object-fit: cover;
    float: left;
    padding: 10px 10px 0 0;
}

.qa-ranking th {
    position: relative;
}