/*
 * ファイル名:
 * css/security-solution.css
 *
 * security_solution 個別ページ専用CSS
 *
 * 通常記事のCSSには影響させない
 */


/* ==================================================
   テーブル共通デザイン
================================================== */


/* WordPress標準テーブルブロックの外枠 */
body.single-security_solution .single_body .wp-block-table {
    width: 100%;
    margin: 28px 0 40px;
    border: 1px solid #d7e0e8;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(25, 50, 75, 0.06);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}


/* テーブル本体 */
body.single-security_solution .single_body table {
    width: 100%;
    margin: 28px 0 40px;
    border: 1px solid #d7e0e8;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    color: #263442;
    font-size: 15px;
    line-height: 1.7;
    table-layout: auto;
}


/* wp-block-table内では外枠を重複させない */
body.single-security_solution .single_body .wp-block-table table {
    margin: 0;
    border: 0;
    border-radius: 0;
}


/* セル共通 */
body.single-security_solution .single_body table th,
body.single-security_solution .single_body table td {
    padding: 15px 17px;
    border: 0;
    border-right: 1px solid #d7e0e8;
    border-bottom: 1px solid #d7e0e8;
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
    word-break: normal;
}


/* 最終列の右罫線を削除 */
body.single-security_solution .single_body table th:last-child,
body.single-security_solution .single_body table td:last-child {
    border-right: 0;
}


/* 最終行の下罫線を削除 */
body.single-security_solution .single_body table tbody tr:last-child th,
body.single-security_solution .single_body table tbody tr:last-child td {
    border-bottom: 0;
}


/* ==================================================
   テーブルの見出し行
================================================== */

body.single-security_solution .single_body table thead th {
    background: #173b63;
    color: #fff;
    font-weight: 700;
    line-height: 1.55;
    vertical-align: middle;
}


/* tbody内のth */
body.single-security_solution .single_body table tbody th {
    background: #edf3f7;
    color: #173b63;
    font-weight: 700;
}


/* ==================================================
   左端の列
================================================== */

body.single-security_solution .single_body table tbody td:first-child {
    background: #edf3f7;
    color: #173b63;
    font-weight: 700;
}


/* 偶数行 */
body.single-security_solution
.single_body
table
tbody
tr:nth-child(even)
td:not(:first-child) {
    background: #f8fafc;
}


/* hover */
body.single-security_solution
.single_body
table
tbody
tr:hover
td:not(:first-child) {
    background: #f0f6fa;
}

body.single-security_solution
.single_body
table
tbody
tr:hover
td:first-child {
    background: #e3edf5;
}


/* ==================================================
   表内テキスト
================================================== */

body.single-security_solution .single_body table p {
    margin: 0 0 8px;
    line-height: 1.7;
}

body.single-security_solution .single_body table p:last-child {
    margin-bottom: 0;
}


body.single-security_solution .single_body table ul,
body.single-security_solution .single_body table ol {
    margin: 0;
    padding-left: 1.4em;
}


body.single-security_solution .single_body table li {
    margin-bottom: 5px;
}

body.single-security_solution .single_body table li:last-child {
    margin-bottom: 0;
}


/* ==================================================
   表内リンク
================================================== */

body.single-security_solution .single_body table a {
    color: #075dab;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

body.single-security_solution .single_body table a:hover {
    color: #043f76;
}


/* ==================================================
   テーブルキャプション
================================================== */

body.single-security_solution .single_body table caption {
    padding: 0 0 10px;
    color: #445566;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
    text-align: left;
    caption-side: top;
}


/* ==================================================
   スマートフォン
================================================== */

@media screen and (max-width: 767px) {

    body.single-security_solution
    .single_body
    .wp-block-table {
        margin: 22px 0 34px;
        border-radius: 8px;
    }


    /*
     * 複数列の表を縦積みにせず
     * 横スクロールさせる
     */
    body.single-security_solution
    .single_body
    .wp-block-table
    table {
        min-width: 640px;
    }


    /* スクロール案内 */
    body.single-security_solution
    .single_body
    .wp-block-table::before {
        content: "表は横にスクロールできます →";
        display: block;
        position: sticky;
        left: 0;
        width: max-content;
        padding: 9px 13px;
        background: #f5f8fa;
        color: #5d6c7b;
        font-size: 12px;
        font-weight: 600;
        line-height: 1.5;
    }


    body.single-security_solution .single_body table {
        font-size: 14px;
    }


    body.single-security_solution .single_body table th,
    body.single-security_solution .single_body table td {
        padding: 12px 13px;
        line-height: 1.65;
    }


    /* 左端列の最低幅 */
    body.single-security_solution
    .single_body
    table
    th:first-child,

    body.single-security_solution
    .single_body
    table
    td:first-child {
        min-width: 100px;
    }

}