@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/* 記事本文内のすべてのテーブル（再利用ブロック内含む）を幅100%に強制 */
.entry-content table {
    width: 100% !important;
    margin-left: auto;
    margin-right: auto;
    word-break: break-all; /* 枠からはみ出しを防ぐ */
}

/* ブロックエディタのテーブル外枠（figureタグ）も100%にする */
.entry-content .wp-block-table {
    width: 100% !important;
}


/* 
* ヘッダーロゴ左寄せ
*/
.logo {
  text-align: left;
}


/*スクロール追従バー（目次の設定）*/
/*表示設定*/
@media print, (max-width: 991px) {
    #side-scroll .toc_widget {
        display: none;
    }
}
/*各種設定*/
.toc_widget {
    position: relative;
    padding: 10px;
    border: 1px solid #ddd;
    color: #333;
    background: #fff;
}
/*タイトルの追加*/
.toc_widget:before {
    content: 'Contents';
    font-size: 1.2em;
    position: absolute;
    left: 17px;
}
.toc_widget>ul.toc_list {
    margin: 25px 0;
    overflow-y: auto;
}
/* サイド 目次 追従 カレント */
#side-scroll li a {
    display: block;
}
#side-scroll li a:hover {
    background-color: #ebebeb
}
#side-scroll li a.current {
    background-color: #ebebeb !important
}

.wp-block-image figcaption{
font-size:12px;
margin-top:10px;
}

/* 画像キャプションを中央寄せ復旧 */
.wp-block-image figcaption {
  text-align: center;
}

/* テーブルのセル中央揃え修正復旧 */
.wp-block-table th.has-text-align-center,
.wp-block-table td.has-text-align-center {
    text-align: center !important;
}

/* テーブル下のキャプションを中央揃え復旧 */
.wp-block-table > figcaption.wp-element-caption {
    text-align: center;
}

/* 蛍光ペン（イエロー）の復旧 */
.luxe-hilight-yellow {
    background: linear-gradient(transparent 60%, #ffff66 60%);
    padding: 0 2px;
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}
