@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: #e62117; /* メインの赤 */
    color: #fff !important;    /* 文字色を白に固定 */
    border-radius: 8px;        /* 緩やかな角丸（フラットな印象に合う設定） */
    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: #cc1d15;   /* わずかに暗くして「選択」を表現 */
    color: #fff !important;
    box-shadow: none;            /* 影は出さない */
    transform: none;             /* 動き（沈み込み）を無効化 */
    opacity: 1;                  /* 透明化させない */
}

/* アクティブ時（クリックの瞬間）も動かさない */
.wp-block-button__link:active {
    background-color: #b31a12;   /* さらに一段暗くするのみ */
    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){
  /*必要ならばここにコードを書く*/
}
