﻿/* 設定１つ  - 四辺すべてに適用 */
/* 設定２つ  - 上下 | 左右 */
/* 設定３つ  - 上 | 左右 | 下 */
/* 設定４つ  - 上 | 右 | 下 | 左 */

p {
    margin: 0;
}

html {
    scrollbar-gutter: stable; /* 可能ならスクロールバー分の余白を確保 */
}

#datablk { /*kkcwebcom.css での定義を上書き （左右のmarginを0に）*/
    margin: 20px 0 !important;
}

.rankca {
    display: block;
    font-family: 'Noto Sans JP', sans-serif;
    margin: -30px auto 0;
    font-weight: 400;
    max-width: 950px;
}

.rankca_title {
    display: flex;
    width: 100%;
    background-color: #eeeeee;
    justify-content: center;
    align-items: center;
    font-size: 30pt;
    margin-top: 30px;
    padding: 10px 0;
}

    .rankca_title > p {
        letter-spacing: 0.2em;
        overflow:hidden;
    }
        .rankca_title > p > span {
            font-size: 0.8em;
            margin-right: 30px;
        }

.rankca_linkarea {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin-top:30px;
}
    .rankca_linkarea > .grptitle {
        width: 100%;
    }
        .rankca_linkarea > .grptitle > p {
            line-height:30px;
        }

    .rankca_linkarea > .linkbutton {
        width: 127px;
        margin: 5px 4px;
        cursor:pointer;
    }
        .rankca_linkarea > .linkbutton > img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: contain;
        }


@media (max-width: 1200px) {
}


/***************************************/
/**** 製品紹介ダイアログ ***************/
/***************************************/
#rankca_dialog {
    display: none;
    position: absolute;
    top: 5vh;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    max-width: 90vw;
    min-width: 320px;
    background: #fff;
    border: 1px solid #000;
    border-radius: 4px;
    z-index: 9000;
}

.rankca_dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rankca_dialog-list {
    overflow-y: auto;
}
    .rankca_dialog-list > .headerrow {
        display: flex;
    }
        .rankca_dialog-list > .headerrow > .listtitle {
            width: 100%;
        }

            .rankca_dialog-list > .headerrow > .listtitle > img {
                display: block;
                width: 100%;
                height: 100%;
                object-fit: contain;
            }
    .rankca_dialog-list > .row {
        display: flex;
        height: 30px;
        align-items:center;
        font-size: 12pt;
        justify-content: space-between;
    }
        .rankca_dialog-list .bgcolor {
            background-color: #eeeeee;
        }

    .rankca_dialog-list > .row > .col0 {
        width: 100%;
        font-weight: 600;
        line-height: 25px;
        margin: 0 5px;
        border-bottom: 1px solid #808080;
    }

        .rankca_dialog-list > .row > .col1 {
            flex-grow: 1;
            margin-left: 30px;
        }
        .rankca_dialog-list > .row > .col2 {
            width: 100px;
            text-align:right;
            margin-right: 20px;
        }

    .rankca_dialog-list > .bottomrow {
        display:flex;
        flex-wrap:nowrap;
        justify-content:right;
        align-items:center;
        font-size: 10pt;
        height:40px;
    }
        .rankca_dialog-list > .bottomrow > p {
            margin-right:10px;
        }
        .rankca_dialog-list > .bottomrow > a {
            text-decoration: none;
            color: #0000ff;
        }


#rankca_dialog_close {
    position: absolute;
    top: -12px; /* ダイアログの外に出す */
    right: -10px; /* 枠からはみ出す */
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #aaa;
    font-size: 18px;
    line-height: 24px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 9999;
}

#_updatepanel_rankca_dialog {
    padding: 0;
}
