@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;
}


/* 画像キャプションを中央寄せ復旧 */
.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;
}

/*内部ブログカードカスタマイズ*/
.internal-blogcard-snippet{
	display: none;
}

.blogcard{
	position: relative
}

.internal-blogcard:after{
	position: absolute;
	bottom: 15px;
	right: 20px;
	content: 'Read More 》';
	font-size: 80%;
	background-color: #005bac;
	color: #FFF; 
	padding: 0.2em 1em;
	border-radius: 3px
}

/* ボタンのスタイル全体（フラットデザイン版：ダークグレー） */
.wp-block-button__link {
    background-color: #3a3a3a; /* メインの濃いグレー */
    color: #fff !important;    
    border-radius: 10px;        
    padding: 15px 35px;        
    font-weight: bold;
    text-decoration: none;
    border: none;              
    box-shadow: none;          
    transition: background-color 0.2s ease-in-out;
    display: inline-block;
}

/* ホバー時のスタイル（色のみの変化） */
.wp-block-button__link:hover {
    background-color: #4a4a4a; /* わずかに明るく */
    color: #fff !important;
    box-shadow: none;
    transform: none;
    opacity: 1;
}

/* アクティブ時（クリックの瞬間） */
.wp-block-button__link:active {
    background-color: #2b2b2b; /* さらに一段暗く */
    transform: none;
}

/* サイドバーのウィジェットタイトルの文字サイズを調整 */
.sidebar .widget-title {
    font-size: 16px; /* 数値は適宜調整してください（デフォルトは概ね18px〜20px程度です） */
}

/* サイドバー目次の現在位置 */
#toc-2 li.current {
	background-color: #f0f8ff; /* ハイライト色 */
}


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

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

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