@charset "utf-8";

/*
 --------------------------------------------------------------------
 4Uweb／CMS 表取り込み・表編集用スタイルシート。

 更新日：2010-08-02
 --------------------------------------------------------------------
 【編集履歴】
 ・2009-05-25 新規作成
 ・2010-08-02 背景色用のスタイルを追加。
 
 -------------------------------------------------------------------- */

/**
 * 中央詰め
 */

table th,
td {
    vertical-align: middle;
}

/**
 * 上詰め
 */

table th.top,
td.top {
    vertical-align: top !important;
}

/**
 * 下詰め
 */

table th.bottom,
td.bottom {
    vertical-align: bottom !important;
}

/**
 * 左詰め
 */

table th.left,
td.left {
    text-align: left !important;
}

/**
 * 右詰め
 */

table th.right,
td.right {
    text-align: right !important;
}

/**
 * 中央揃え
 */

table th.center,
td.center {
    text-align: center !important;
}

/**
 * WYSIWYG用の背景色-赤
 */

table th.tbl-bgcolor-red,
td.tbl-bgcolor-red {
    background-color: #ffccff !important;
}

/**
 * WYSIWYG用の背景色-黄
 */

table th.tbl-bgcolor-yellow,
td.tbl-bgcolor-yellow {
    background-color: #ffffcc !important;
}

/**
 * WYSIWYG用の背景色-緑
 */

table th.tbl-bgcolor-green,
td.tbl-bgcolor-green {
    background-color: #ccffcc !important;
}

/**
 * WYSIWYG用の背景色-青
 */

table th.tbl-bgcolor-blue,
td.tbl-bgcolor-blue {
    background-color: #ccffff !important;
}

/**
 * WYSIWYG用の背景色-灰
 */

table th.tbl-bgcolor-gray,
td.tbl-bgcolor-gray {
    background-color: #cccccc !important;
}

/* ------------------------------テーブルのスタイル設定----------------------------- */
/* テーブルタグに設定されているクラス */
/* table_data wisiwyg */
table {
    padding: 0;
    border-collapse: collapse;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    background-color: #fff;
}
table caption {
    padding: 15px 0px 5px 0;
    font-weight: bold;
    text-align: left;
    line-height: 1.3;
}
table caption:empty {
    padding: 0;
}
table th {
    padding: 6px 10px;
    background-color: #f1f1f1;
    border: 1px solid #c9c9c9;
    font-weight: bold;
    text-align: left;
}
table td {
    padding: 6px 10px;
    border: 1px solid #c9c9c9;
    background-color: #ffffff;
    vertical-align: top;
}
table p {
    margin: 0;
    padding: 0;
}
table[align='center'] {
    margin-left: auto;
    margin-right: auto;
}

table ul li {
    position: relative;
    padding: 8px 0 8px 20px;
    box-sizing: border-box;
}
table ul li::before {
    position: absolute;
    content: '・';
    top: 7px;
    left: 0;
    color: #55afd7;
}
table ol {
    padding: 0 0 0 20px;
}
table ol li {
    padding: 8px 0;
    box-sizing: border-box;
}

/* [chrome]table内にルビを付けるとセルがずれる */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    table rb {
        line-height: 6;
    }
}

/* スマホスクロール */
@media screen and (max-width: 768px) {
    .table_swicth {
        display: flex;
        justify-content: end;
        margin-bottom: 10px;
        position: relative;
        overflow-x: auto;
    }
    .table_swicth a {
        border: 1px solid #cccccc;
        display: flex;
        padding: 7px 43px 7px 15px;
        background-image: url(../images/tablescroll_off_icon.png);
        background-position: right 10px top 50%;
        background-repeat: no-repeat;
        background-size: 24px;
        text-decoration: none;
        border-radius: 10px;
        color: #111111 !important;
    }
    .table_swicth .is-scrolling {
        background-image: url(../images/tablescroll_on_icon.png);
    }
    .scroll_table {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
        background-repeat: no-repeat;
        background-position: right 10px bottom 25px;
    }
}
