@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

/************************************
** 子テーマ用のスタイルを書く
************************************/

/* 目次
   1. フォント設定
   2. 目次（TOC）スタイルの調整
   3. その他の全体調整（reCAPTCHA非表示・共通ボタン色など）
   4. サイドバー装飾とウィジェット調整
   5. 投稿ページのヘッダー＆パンくず表示調整
   6. 投稿ページのページナビゲーション調整
   7. 投稿見出し（Hタグ）デザインのカスタマイズ
   8. 投稿編集画面（ブロックエディタ）のカスタマイズ
   9. エントリーカード（関連記事等）のデザインカスタマイズ
   10. 投稿本文エリアのレイアウト調整
   11. プロフィールボックスのカスタマイズ
   12. 投稿内CTAブロックのスタイル
   13. 固定ページ全般のカスタマイズ
   14. 固定ページID:3652 特別デザイン
1598  ★. 固定ページID：7664（ヘルマン・ヘッセの生涯と代表作）専用
   15. 記事ID:2693 背景画像付き引用ボックスの実装
   16. 記事ID:288 『雨ニモマケズ』引用デザイン調整
   17. 投稿本文内タブブロックのデザインカスタマイズ
   18. 『銀河鉄道の夜』影絵キャプションデザイン
   19. 『ハックルベリーフィンの冒険』画像キャプションデザイン
   20. 記事ID:4539 『走れメロス』記事デザインカスタマイズ
   21. ヘッダー全体のデザインカスタマイズ
   22. アーカイブページのデザインカスタマイズ
   23. グローバルナビゲーション（メニュー）デザインカスタマイズ
   24. 記事ID:4751 『怒りの葡萄』記事デザインカスタマイズ
   25. トップページ全体のカスタマイズ:2286
   26. トップページ（ID:5097）ヒーロー＆感情カテゴリーデザイン
   27. トップページ（ID:5097）おすすめ記事セクションのデザイン
   28. トップページ（ID:5097）紹介セクション（ミッション）のデザイン
   29. 保留中・試験用コード
*/

/*内部ブログカードの抜粋文を消す
.internal-blogcard-snippet{
	display: none;
}*/

/*==================================================
  1. フォント設定
  ==================================================*/
@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho&family=Yomogi&display=swap');
.cocoon-custom-text-1 {
    font-family: "游明朝", YuMincho, "Noto serif JP", serif;
    font-size: 1.1em;
    font-weight: normal;
}
.cocoon-custom-text-2 {
}

/************************************
****　目次
************************************/
.toc-title{
font-weight:bold;
}
.toc-title::after {
color:#337ab7;
}
.toc-list > li a {
font-weight: bold;
display:block;
margin-top:10px;
margin-left: 10px;
}
.toc-list > li a::before {
font-family: "Font Awesome 5 Free";
content : "\f144";
margin-right: 7px;
}
.toc-list > li li a {
font-weight: normal;
font-size: 95%;
margin-top:0;
margin-left: 2em;
}
.toc-list > li li a::before {
content: "";
width: 7px;
height: 7px;
left: -2px;
display: inline-block;
border-radius: 50%;
background: #1f59c3ad;/*こちらで緑点の色を変更できます*/
position: relative;
margin-bottom: 2px;
}
@media (max-width:880px){
.toc-list > li a {
margin-left: -10px;
}
.toc-list > li li a {
margin-left: -2em;
}
.toc-list > li li a::before {
left: 3px;
margin-bottom:1px;
}
}
.toc a:hover {
color: #333333;
text-decoration: underline;
}

/*ページ右下*reCAPTCHAのマークのを非表示にする*/
.grecaptcha-badge { visibility: hidden; }

/*「ディケンズの生涯と作品」固定ページのみデザインカスタマイズ*/
.page-id-620 {
    padding: 20px; /* 余白 */
    border: 1px solid #ccc; /* 枠線 */
}
.page-id-620 .header{
   display:none;
}
.page-id-620 .footer{
   display:none;
}
.page-id-620 .navi-in>ul {
	display:none ;
}

/*==================================================
  サイドバーカスタマイズ
 ===================================================*/

/* サイドバー　エントリーカード　マウスオーバー背景色*/
.widget_recent_entries ul li a:hover, .widget_categories ul li a:hover, .widget_archive ul li a:hover, .widget_pages ul li a:hover, .widget_meta ul li a:hover, .widget_rss ul li a:hover, .widget_nav_menu ul li a:hover {
    background-color: rgb(23 70 180 / 5%);
}

.widget p,
.paragraph {
    margin: 1.0em 0.2em;
	font-size: 16px
}

.widget_text a {
    color: #007BFF; /* 適切なリンク色を設定 */
    text-decoration: underline; /* 必要に応じて変更 */
}
.widget_text {
    color: #333; /* サイドバーの文字色を明示 */
    background-color: transparent; /* 背景が白の場合の調整 */
}


/* サイドバーウィジェットのブログカードタイトルの下線を削除 */
.sidebar .blogcard-title.internal-blogcard-title {
    text-decoration: none !important; /* 下線を削除 */
    border-bottom: none !important; /* 下線に見えるボーダーを削除 */
    color: #333 !important; /* タイトルの色を変更 */
}

/* サイドバーのブログカード内の日付とドメイン名の色を変更 */
.sidebar .blogcard-content .blogcard-meta a {
    color: #333 !important; /* 青文字を通常の文字色に変更 */
    text-decoration: none !important; /* 下線を削除 */
}

/* サイドバーのブログカード全体をクリック可能にする場合は以下を削除 */
.sidebar .blogcard-content .blogcard-meta a {
    pointer-events: auto;
}

/*------------------------------------- 
 (サイドバー)名言ボックスのデザイン 
---------------------------------------*/
#quote-container {
    background-color: #fff8e1; /* 柔らかいクリーム色の背景 */
    border: 2px solid #d4af37; /* ゴールド系の枠 */
    padding-top: 10px;
	padding-bottom:20px;
	padding-left:20px;
	padding-right:20px;
    border-radius: 10px; /* 角を丸くする */
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2); /* 影をつける */
    max-width: 90%;
    text-align:center;
	margin:auto; /*名言ボックスをサイドバー中央に配置*/
}

/*(サイドバー) 文学の名言タイトルのデザインを強制適用 */
.quote-box-title {
    display: block !important;
    font-size: 18px !important;
    font-weight: bold !important;
    color: #d4af37 !important; /* ゴールド系 */
    text-align: center !important;
    border-bottom: 2px solid #d4af37 !important; /* タイトル下に線 */
    padding-bottom: 5px !important;
    background: none !important;
	margin-top: 5px !important; /* 上部の余白を縮める */
    padding-top: 0 !important; /* 内側の余白をなくす */
}

/* (サイドバー)名言のデザイン */
#quote-text {
    font-style: italic;
    font-size: 16px;
    color: #333 !important;;
}

/* (サイドバー)名言ボックスのアニメーション */
#quote-text {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

#quote-text {
    border: 3px solid #d4af37; /* 枠を統一 */
    padding: 15px;
    border-radius: 8px; /* 角を少し丸める */
    background: rgba(255, 255, 240, 0.7); /* クリーム色の背景 */
}

/* (サイドバー)名言ボックスの肖像画像 */
.quote-author-image {
    width: 180px; /* 画像の幅を小さくする */
    height: 180px; /* 画像の高さを小さくする */
    border-radius: 10px; /* 角を少し丸める（調整可） */
    object-fit: cover; /* 画像が枠内に収まるように調整 */
    display: block; /* ブロック要素として表示 */
    margin: 25px auto 10px; /* 中央に配置して下に余白を追加 */
}

/* (サイドバー)名言の前後に装飾アイコン */
#quote-text::before,
#quote-text::after {
    content: "❝"; /* おしゃれな引用符 */
    font-size: 24px;
    color: #d4af37;
    display: block;
    text-align: center;
    margin-bottom: 5px;
}
#quote-text::after {
    content: "❞";
    margin-top: 5px;
}

/* (サイドバー)blockquote のデフォルトの装飾を削除*/ 
blockquote::before,
blockquote::after {
    content: none !important; /* 引用マークを削除 */
}

#quote-text blockquote {
    border: none !important;
    background: none !important;
    box-shadow: none !important;
}

#quote-text {
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2); /* 立体的な影 */
    border: 3px solid #d4af37; /* ゴールド枠 */
    padding: 15px;
    border-radius: 10px; /* 角を少し丸める */
    background: rgba(255, 255, 240, 0.9); /* クリーム色の背景 */
}

#quote-text {
    background: linear-gradient(145deg, #fff8e1, #f7e1a3); /* 柔らかいグラデーション */
}

/* (サイドバー)名言ボックス下の添え書きのデザイン */
.quote-note {
    font-size: 12px;  /* 小さめのフォント */
    color: #666;  /* 薄めのグレーで控えめに */
    text-align: center;  /* 中央揃え */
    margin-top: 10px;  /* 名言ボックスとの間隔を確保 */
    font-style: italic;  /* 斜体で軽い印象に */
}

/* サイドバータイトルのフォントの大きさを変える*/
.sidebar h3 { font-size: 1.2em; 
}

/* サイドバータイトルのデザインを透過・下線型に変える*/
h3.widget-sidebar-title {
    color: #276d9b;                      /* 文字色 */
    background: #ffffff;                 /* 背景色 */
    padding: 0.25em 0.25em;              /* [上下][左右]の余白 */
    border: none ;                       /* 全枠 */
	font-family: "Yu Gothic", "游ゴシック", YuGothic, sans-serif;  /*フォント*/
	
  }
  h3.widget-sidebar-title::after {
    content: "";                         /* 語尾付加文字列 */
    display: block;                      /* Block表示 */
    height: 5px;                         /* 高さ */
  	background: linear-gradient(323deg, #04003B 32%, #FF8D83 100%);  /* 背景 グラデーション*/
}
/* サイドバーの新着記事ウェジェットのデザインカスタマイズ*/
.widget-entry-card {
    font-size: 16px;
	font-family: "游明朝", YuMincho ;
}

/*サイドバー記事見出し間の区切り線表示、ポイントアニメーション*/
.widget_recent_entries ul li a,
.widget_categories ul li a,
.widget_archive ul li a {
  border-bottom: 1px dashed #ccc;
  padding: 5px 0;
  font-family: "游明朝", YuMincho ;
  font-weight: 400 ;
  line-height: 1.8;
}

/* ────────── ① 親カテゴリ ────────── */
.widget_categories ul > li.cat-item > a{
  display:block;                 /* クリック範囲を行全体に */
  padding: 0.6em 0;              /* 上下に余白 */
  border-bottom: 1px dashed #ccc;/* 区切り線（既存意匠を踏襲） */
  font-family: "游明朝", YuMincho, serif;
  font-size: 1.15rem;               /* 少し大きめ */
  font-weight: 600;              /* 太字で目立たせる */
  color:#2a2a2a;
  position:relative;
  transition:color .2s ease;
}

/* ▸親カテゴリ頭にアイコン */
.widget_categories ul > li.cat-item > a::before{
  content:"◆";
  color:#6c9bd2;                 /* 感情ブロックと同系色 */
  margin-right:0.45em;
  font-size:0.8em;
}

/* ▸ホバー時に色が浮き上がる */
.widget_categories ul > li.cat-item > a:hover{
  color:#1a519d;
}

/* ────────── ② 子カテゴリ（ul.children 内） ────────── */
.widget_categories ul li ul.children{
  margin:0.25em 0 0 1.1em;       /* 左にインデント＋上部マージン */
  border-left: 2px solid #eee;   /* ガイドライン */
  padding-left:0.8em;
}

.widget_categories ul li ul.children li a{
  display:block;
  padding:0.35em 0;
  border:none;                   /* 親の dashed を継承させない */
  font-size:0.96rem;
  font-weight:400;               /* 標準ウェイト */
  color:#555;
  font-family: "ヒラギノ角ゴ ProN", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, sans-serif;
  position:relative;
  transition:color .2s ease;
}

/* ▸子カテゴリ頭に細いダッシュ */
.widget_categories ul li ul.children li a::before{
  content:"—";
  margin-right:0.45em;
  color:#999;
}

/* ▸ホバー時にわずかに濃く */
.widget_categories ul li ul.children li a:hover{
  color:#333;
}

/* ────────── ③ スマホ時の調整（任意） ────────── */
@media (max-width: 767px){
  .widget_categories ul > li.cat-item > a{
    font-size: 0.95rem;
  }
  .widget_categories ul li ul.children li a{
    font-size: 0.88rem;
  }
}


/*ページ送り"prev"と"next"のボックスを消す*/
.pager-post-navi a.next-post::before{
	content:none;
	right: 0;
}
.pager-post-navi a.prev-post::before{
	content: none;
	left: 0;
}

/*ページネーション記事タイトルの上にラベルを追加する*/
.prev-post-title:before,
.next-post-title:before {
    color: #999999; /* 文字色 */
    font-size: 12px; /* 文字サイズ */
    margin-bottom: 0.3em;
    display: block;
}
.next-post-title:before {
    content: '次のページ';
}
.prev-post-title:before {
    content: '前のページ';
}

/*==================================================
  見出しカスタマイズ
 ===================================================

/* H1(打消し) */
.article h1{
border-top:none;
border-bottom:none;
border-left:none;
border-right:none;
padding: 0;
}
/* H2(打消し) */
.article h2{
border-top:none;
border-bottom:none;
border-left:none;
border-right:none;
padding: 0;
}
/* H3（打消し） */
.article h3{
border-top:none;
border-bottom:none;
border-left:none;
border-right:none;
padding: 0;
}
/* H4 (打消し)*/
.article h4{
border-top:none;
border-bottom:none;
padding: 0;
}
/* H5(打消し)*/
.article h5{
border-bottom:none;
padding: 0;
}
/* H6(打消し)*/
.article h6{
border-bottom:none;
padding: 0;
}


/* 通常のH2, H3フォント変更（除外条件を含める）*/
.article h2,
.article h3 {
  font-family: "游明朝", YuMincho, "Noto serif JP", serif;
}


/* 見出しH2カスタマイズ(1)*/
.article h2 {
 color: #131147; /* 文字色 */
 background: #ffffff; /* 背景色 */
padding: 0 0.15em; /* [上下][左右]の余白(前値0.25em0.25em) */
 border: none ; /* 全枠 */
}
.article h2::after {
position:relative;
 content: ""; /* 語尾付加文字列 */
 display: block; /* Block表示 */
 height: 6px; /* 高さ */
 background: linear-gradient(323deg, #04003B 5%, #b1a6d0 65%, 
#FF8D83 100%); /* 背景 グラデーション*/
 margin-top: 7px 
}
/*
/* 見出しH3カスタマイズ*/
.article H3 {
  position: relative;
  padding: 0.1em 0.5em;
  background: linear-gradient(to right, #55b8ff4d, transparent);
  color: #200303;
  border-left: solid 5px #200303;
}
.article h4 {
  position: relative;
  padding: 0.25em 0;
  font-size:19px;
  font-weight: 600;
}
.article h4:after {
  content: "";
  display: block;
  height: 4px;
  background: -webkit-linear-gradient(to right, rgb(230, 90, 90), transparent);
  background: linear-gradient(to right, rgb(230, 90, 90), transparent);
}

/*834px以下*/
@media screen and (max-width: 834px){
.article h4{font-size:17px;
		
} 
}

.article h5 {
  border-bottom: none;  /*Cocoon標準のデザインにあるボーダーを取る*/
  position: relative;  /*要素を相対配置にする*/
  padding-left: 1.4em;  /*余白*/
  color: #ff6a6a;  /*文字の色*/
}
h5::before {
  font-family: "Font Awesome 5 Free";  /*Font Awesome 5を使用する*/
  content: "\f138";  /*アイコンの指定*/
  position: absolute;  /*要素を絶対配置にする*/
  left: 0;  /*アイコンの位置の調整*/
  color: #ff6a6a;  /*アイコンの色*/
}

.article h5{
	font-size: 18px;
}

/*==================================================
  投稿編集画面　カスタマイズ
 ===================================================

/* 投稿編集画面　見出しH2下線を調整*/
.block-editor-block-list__layout .block-editor-block-list__block:after {
    content: "";
    pointer-events: none;
    position:relative ;
}
/* 投稿編集画面　タイトルフォントを公開画面に合わせる*/
.editor-styles-wrapper .editor-visual-editor__post-title-wrapper > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
	font-family: "游明朝","Yu Mincho", "Noto Serif JP";
}
/* 投稿編集画面　本文フォントを公開画面に合わせる*/
.editor-styles-wrapper p {
	 font-family:"Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-,serif;
}
/* 投稿編集画面　本文余白調整*/
.editor-styles-wrapper.block-editor-writing-flow {
    padding: 70px;
}
.editor-styles-wrapper.block-editor-writing-flow {
    margin: 90px;
}

@media screen and (max-width: 480px){
.editor-styles-wrapper.block-editor-writing-flow {
    padding: 8px;
	}
.editor-styles-wrapper.block-editor-writing-flow {
    margin: 10px;

}
}

/*投稿編集画面のH1見出しフォントを本記事フォントに合わせる*/
.editor-post-title__block .editor-post-title__input, div.editor-block-list__block, div.editor-block-list__block p {
    font-family:"游明朝", YuMincho, "Noto serif JP",serif;
    line-height: 1.8;
}

/*見出しH2のカスタマイズ(2)
.article h2{
  color:#131147;
  font-size: 26px;
 }

/*スキン独自のH2見出し上下ボーダーを消す*/
.article h2:before {
	border-top:none;
}
.article h2: after{
	border-bottom:none;
}

/*投稿記事 H1の見出しのフォントを変える */
h1.entry-title {
    font-family: "游明朝","YUMincho",'Noto Serif JP',serif;
	font-size:31px;
	margin-top:20px;
}

/* H2,H3の見出しのフォントを変える */
.article h2,.article h3{ font-family:"游明朝", YuMincho, "Noto serif JP",serif;;
}

/*==================================================
  エントリーカード(関連記事etc)のデザインカスタマイズ
 ===================================================
/* エントリーカードにマウスポインタ時、影を付ける*/
.a-wrap:hover {
	background-color: #fff;
	box-shadow: 0 0 5px rgb(6 29 159 / 50%);
}
/* エントリーカード枠線の色*/
a.entry-card-wrap.a-wrap.border-element.cf {
	border-color: rgb(162 173 198 / 24%);
}
a.entry-card-wrap.a-wrap.border-element.cf:hover{
	border-color:#f9f9f9;
}

/*エントリーカード（関連記事etc）ヘッド部の下線カスタマイズ*/
.related-entry-heading, .comment-title{
 	letter-spacing: 0.5em;
    border-top: 0px solid #202020;
	border-bottom: 5px solid;
    border-bottom-style: solid;
   	border-image: linear-gradient(323deg, #13013a 5%,  #b1a6d0 65%, #FF8D83 100%);
	border-image-slice: 1;
}

/*エントリーカード（関連記事etc）ヘッド部のフォントカスタマイズ*/
.related-entry-heading,
.comment-title {
  margin: 22px 0;
  font-size: 25px;
  text-align: left;
  font-family:"Yu Gothic", "游ゴシック", YuGothic, sans-serif;
  color:#04003b
}

/* エントリーカード画像左上のカットラベルデザイン*/
.cat-label {
	top: 0;
	left: 0;
	border: none;
	background-color: #0b0b38;
}

/*エントリーカード内、抜粋文のカスタマイズ*/
.entry-card-snippet, .related-entry-card-snippet {
  font-size: 0.9em;
  max-height: 7.8em;
  line-height: 1.3;
  overflow: hidden;
  font-family: "Yu Gothic", "游ゴシック", YuGothic, sans-serif;
}

/*エントリーカード（関連記事etc）のタイトル*/
.entry-card-title, .related-entry-card-title {
  font-size: 21px;
  margin: 0 0 12px 0;
  line-height: 1.2;
  font-weight: 600;
  font-family: "游明朝", YuMincho, "Noto serif JP",serif;
}	

/*834px以下*/
@media screen and (max-width: 834px){
  .entry-card-title, .related-entry-card-title {
  font-size: 16px;
  margin: 0 0 5px 0;
  line-height: 1.2;
  font-weight: 600;
  font-family: "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3", sans-serif;
  }
}


/*======================================== (以上) */

/*==================================================
  投稿本文関連のカスタマイズ
 ===================================================*/
/*投稿本文 区切り線カスタマイズ*/
:root :where(.wp-block-separator.is-style-dots):before {
    color: currentColor;
    content: "···";
    font-family: serif;
    font-size: 2.5em;
    letter-spacing: 2em;
    padding-left: 2em;
}

/*投稿本文下のスペース間カスタマイズ*/
.article-footer,
.entry-footer {
	margin-right: -30px;
	margin-left: -30px;
	padding: 10px 30px;
	background-color: none;
}

/*パンくずリスト下の余白を縮める（設定は「メインカラム手前」）*/
.breadcrumb.sbp-main-before + .content,
.breadcrumb.pbp-main-before + .content {
  margin-top: 0px;
}

/*本文左右の余白(規定値は1.2em 0)*/
p,
.paragraph {
  margin: 1.2em 2.2em;
}
/*上記スマホ表示*/
@media screen and (max-width: 834px){
	p,
.paragraph {
  margin: 1.2em 0.6em;
}
} 

.wp-block-columns {
  align-items: flex-start;
}
.wp-block-column {
  padding: 10px;
}

/*投稿本文区切り線カスタマイズ(詩の引用など) */
.separator-line {
    width: 80%;
    height: 2px;
    background-color: #e0d7c8;
    margin: 30px auto;
}


/*詩の引用を美しく際立たせるボックススタイル*/
blockquote.poem {
    background-color: #fcfaf5; /* やわらかな背景色 */
    border-left: 5px solid #c5b18e; /* 左の飾り線 */
    padding: 15px 20px;
    margin: 20px 0;
    font-style: italic;
    font-size: 1.05em;
    color: #333;
    border-radius: 5px;
}
/*==================================================
中島敦『山月記』背景画像付き引用ボックスの実装手順
/*==================================================
/* post-2693の記事にのみ適用される共通擬似背景 */
.postid-2693 [class*="quote-section-"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(0, 0, 0, 0.4);
  background-blend-mode: darken;
  opacity: 1;
  z-index: 0;
  pointer-events: none;
  border-radius: 8px;
}

/* post-2693の記事にのみ適用されるボックス本体 */
.postid-2693 .quote-box {
  position: relative;
  padding: 30px;
  margin: 30px 0;
  border-radius: 8px;
  color: white;
  font-family: "Noto Serif JP", "游明朝", "Hiragino Mincho ProN", serif !important;
  font-weight: 500;
  overflow: hidden;
  min-height: 150px;
  z-index: 1;
  background-color: transparent !important;
}


/* 各セクション別の背景画像 */
.quote-section-1::before {
  background-image: url('https://riu-noro.com/wp-content/uploads/2025/03/3bed7d5098a083c67625eb7f0ed92d6b.webp'); /* 実際の画像URLに置き換え */
}

.quote-section-2::before {
  background-image: url('https://riu-noro.com/wp-content/uploads/2025/03/01562a0092b31a7fbef31fe35a5394bb.webp'); /* 実際の画像URLに置き換え */
}

.quote-section-3::before {
  background-image: url('https://riu-noro.com/wp-content/uploads/2025/03/69c5fd465be950e0186cf35f73d4bf8b-e1741869024786.webp'); /* 実際の画像URLに置き換え */
}

.quote-section-4::before {
  background-image: url('https://riu-noro.com/wp-content/uploads/2025/03/8fe95577bc743743cd7c122b27bc2bac-e1741869574162.webp'); /* 実際の画像URLに置き換え */
}

.quote-section-5::before {
  background-image: url('https://riu-noro.com/wp-content/uploads/2025/03/d76ba3e14eaddc86267324f959621c41-e1741869922436.webp'); /* 実際の画像URLに置き換え */
}

.quote-section-6::before {
  background-image: url('https://riu-noro.com/wp-content/uploads/2025/03/432b0a5c63a968d65613d2e411cc6622.webp'); /* 実際の画像URLに置き換え */
}

.quote-section-7::before {
  background-image: url('https://riu-noro.com/wp-content/uploads/2025/03/3454042f30edc65f066a02cf58947019-e1741870409802.webp'); /* 実際の画像URLに置き換え */
}

.quote-section-8::before {
  background-image: url('https://riu-noro.com/wp-content/uploads/2025/03/a40f7a8d53a7cadc82abbeaee578059c-e1741873965294.webp'); /* 実際の画像URLに置き換え */
}

.quote-section-9::before {
  background-image: url('https://riu-noro.com/wp-content/uploads/2025/03/69d0a775a39c2126d7e2c71081490a92-e1741871381282.webp'); /* 実際の画像URLに置き換え */
}
.quote-box {
  /* 既存のスタイル */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border-left: 5px solid #ffcc00;
}

/* 和風の落ち着いた色合い（.quote-section-9を追加） */
.quote-section-1 { border-left-color: #a0522d; /* 赤銅色 - 伝統的な和の赤茶色 */ }
.quote-section-2 { border-left-color: #556b2f; /* 暗橄欖色 - 深い森の緑 */ }
.quote-section-3 { border-left-color: #4b0082; /* 藍色 - 伝統的な日本の藍染め */ }
.quote-section-4 { border-left-color: #8b4513; /* 鳶色 - 古い日本家屋の木材色 */ }
.quote-section-5 { border-left-color: #2f4f4f; /* 藍鼠色 - 暗い青灰色 */ }
.quote-section-6 { border-left-color: #800000; /* 栗色 - 深い赤褐色 */ }
.quote-section-7 { border-left-color: #483d8b; /* 紺色 - 伝統的な日本の藍染め */ }
.quote-section-8 { border-left-color: #654321; /* 焦茶色 - 古い書物や木材の色 */ }
.quote-section-9 { border-left-color: #3d3635; /* 黒鳶色 - 漆黒に近い深い茶黒色 */ }

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .quote-box {
    padding: 20px;
  }
  
  .quote-content {
    font-size: 16px;
  }
}

/* Cocoonのブロックエディタとの互換性 */
.block-editor-writing-flow .quote-box {
  color: white !important; /* エディタ内でも色を維持 */
}

.block-editor-writing-flow .quote-box::before {
  z-index: -1 !important;
}

.quote-content,
.quote-attribution {
  position: relative;
  z-index: 2;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

/*==================================================
  投稿本文内「タブ(cocoonブロック)」のカスタマイズ
 ===================================================*/

/*「雨ニモマケズ」引用デザインカスタマイズ（投稿独自cssにも有り) */
.postid-288 .wp-block-quote p  {
    font-family: "游明朝", YuMincho, "Noto serif JP",serif;
    font-size: 1.0em;
    line-height: 2.2;
    color: #555;
    background-color: #f9f9f9;
    border-left: 3px solid #decd84;
    padding: 60px;
    margin: 30px 0;
}
/*834px以下*/
	@media screen and (max-width: 834px){
.postid-288 .wp-block-quote p  {
    font-family: 'Georgia', serif;
    font-size: 1.0em;
    line-height: 2.2;
    color: #555;
    background-color: #f9f9f9;
    border-left: 3px solid #decd84;
    padding: 30px;
    margin: 20px 0;
}
}

/* --- タブのタイトル一覧（ul全体）のデザイン --- */
.tab-label-group {
  display: flex;        /* タイトルを横並びに */
  list-style: none;     /* liのデフォルトのマーカーを消す */
  padding-left: 0;      /* 余白調整 */
  margin-bottom: 10px;  /* タイトルと内容の間の余白 */
}

/* --- タブタイトル（li要素）のデザイン --- */
.tab-label {
  flex: 1;                        /* 均等に横幅を使う */
  text-align: center;             /* 中央寄せ */
  background-color: #f0f0f0;      /* タブの背景色 */
  color: #333;                    /* 文字色 */
  padding: 10px;                  /* 内側の余白 */
  cursor: pointer;                /* マウスを乗せると指マークに */
  border: 1px solid #ccc;         /* 枠線 */
  border-bottom: none;            /* 下線を消してタブっぽく */
  transition: background-color 0.3s; /* ホバー時などのアニメーション */
}

.tab-label:hover {
  background-color: #e5e5e5;      /* ホバー時の背景色 */
}

/* --- 選択中のタブ（is-activeクラス付き） --- */
.tab-label.is-active {
  background-color: #333; /* アクティブタブの背景色 */
  color: #fff;            /* アクティブタブの文字色 */
  border-bottom: 1px solid #333; /* 下枠を合わせる */
}

/* --- タブコンテンツ全体の枠線や余白 --- */
.tab-content-group {
  border: 1px solid #ccc;   /* タブ全体の外枠 */
  padding: 15px;            /* コンテンツの余白 */
  background-color: #fff;   /* コンテンツの背景色 */
}

/* --- タブコンテンツ個々のデザイン --- */
.tab-content {
  margin: 0;       /* 好みで調整 */
  padding: 0;      /* 好みで調整 */
}

/* タブの文章（pタグ）を別のデザインにする例 */
.tab-content p {
  font-size: 15px;       /* 文字サイズ */
  line-height: 1.7;      /* 行間 */
  color: #666;           /* 文字色 */
  font-family: "Arial", sans-serif;  /* フォント（例） */
}

/* 必要に応じて見出しなども変えたい場合 */
.tab-content h3 {
  font-size: 18px;       /* 見出しの文字サイズ */
  color: #333;           /* 見出しの色 */
  margin-top: 1em;       /* 上部余白 */
}

/*==================================================
  銀河鉄道の夜・影絵用デザイン
 ===================================================*/

/* 共通ベース */
.kenji-figure {
  position: relative;
  max-width: 800px;
  margin: 2em auto;
  text-align: center;
　line-height: 0; /* 画像の高さに合わせて位置がズレにくくなります */
}
.kenji-figure img {
  width: 100%;
  height: auto;
  display: block;
}
.kenji-figure figcaption {
    position: absolute;	
    font-size: 1.5rem;
    color: #fff;
    text-shadow: 0 0 12px rgba(0, 0, 0, .9);
    font-family: "Yu Mincho", "Hiragino Mincho ProN", "Times New Roman", serif;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0);
    padding: .2em .6em;
    border-radius: 10px;
}

/* ▼ 表示位置パターン */
.caption-top-left     { top: 8%; left: 8%; transform: none; }
.caption-top-right    { top: 8%; right: 8%; transform: none; }
.caption-bottom-left  { bottom: 8%; left: 8%; transform: none; }
.caption-bottom-right { bottom: 8%; right: 8%; transform: none; }
.caption-bottom-center{ bottom: 8%; left: 50%; transform: translateX(-50%); }
.caption-center       { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.caption-center-left  { top: 50%; left: 8%; transform: translateY(-50%); }
.caption-center-right { top: 50%; right: 8%; transform: translateY(-50%); }
.caption-top-center   { top: 8%; left: 50%; transform: translateX(-50%); }


/* ▼ 書式（縦書き or 横書き） */
.vertical-caption {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  line-height: 1.8;
}
.horizontal-caption {
  writing-mode: horizontal-tb;
}
.caption-bg-shadow {
  background-color: rgba(0, 0, 0, 0.4) !important;
  padding: 0.3em 0.8em !important;
  border-radius: 10px !important;
}

@media screen and (max-width: 768px) {
  .kenji-figure figcaption {
    font-size: 0.95rem;
    padding: 0.2em 0.4em;
    max-width: 90%;
    word-break: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
  }
}

/*==================================================
  ハックルベリーフィン　画像詩的キャプションデザイン
 ===================================================*/
.poetic-caption {
  text-align: center;
  margin: 2em auto;
  max-width: 700px;
}

.poetic-caption img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.poetic-caption figcaption {
  font-family: "游明朝", "Yu Mincho", serif;
  font-size: 0.95em;
  font-style: italic;
  color: #555;
  margin-top: 0.6em;
  padding-top: 0.6em;
  border-top: 1px dashed #ccc;
}

/*==================================================
  ヘッダー関連のデザインカスタマイズ
 ===================================================*/
/*ヘッダー サイトタイトルとキャッチコピー間（padding)のカスタマイズ*/
.site-name-text {
    padding-top:40px;
    font-size: 1em;
	text-align:center;
}
.logo {
    text-align:left;
}
h1.logo.logo-header.logo-image{
    padding-top: 70px;
	padding-bottom:none;
}

/* 上記スマホ表示*/
@media screen and (max-width: 834px){
h1.logo.logo-header.logo-image{
    padding-top: 0px;
	padding-bottom:0px;
	height:auto;
	text-align:left;
}
.site-name-text {
  text-align:right;
}
.site-name-text-link {    
    padding-left: 5em;
}
}
	/*ヘッダーサイトタイトルの前にロゴ画像を表示する*/
.logo-header:before {
    content: "";
    display: inline-block;
    width: 130px;
    height: 130px;
    margin-right: 5px;
    margin-left:0px;
    margin-bottom:55px;
    background-image: url(https://riu-noro.com/wp-content/uploads/2024/12/703fae000aefd6ea1929bb6cc8f32540.png);
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}


/*ヘッダーサイトタイトルロゴ画像　スマホでの表示*/
@media screen and (max-width: 834px){
 .logo-header:before {
   display: inline-block;
   width: 50px;
   height: 50px;
   margin-top:30px;
   margin-bottom:0px;
   margin-right:8px;
   margin-left:14px;
} 
}

/* ヘッダーロゴマークがフェードインで出てくる*/
.logo-header:before{
	animation-name:fdin;
	animation-duration:4.7s; /*アニメーションの時間*/
	animation-fill-mode:forwards;/*が最後停止*/
}
@keyframes fdin{
from {
	opacity:0;
	transform: translateY(20px); /*アニメーションの深さ*/
}
to {
	opacity:1;
	transform: translateY(0);
}
}

/*　ヘッダーサイトタイトルのカスタマイズ*/
.logo-text a span{
    font-family: "游明朝", YuMincho, "Noto serif JP",serif;
    font-size:60px;
	font-weight:600 ;
	padding: 40px 0 0 0 ;
}

/*上記(ヘッダー)スマホでの表示カスタマイズ*/
@media screen and (max-width: 834px){

.site-logo-image.header-site-logo-image {
	font-size :31px ;
    width: 270px ;
    height:auto;
	margin-bottom: 20px;
	padding: 0 0 0 0 ;
  }
}

/* ヘッダーサイトタイトル(リウノブログ)がズームインで出てくる*/
.site-logo-image.header-site-logo-image {
    animation-duration: 1.6s;
    animation-timing-function: cubic-bezier(0.4, 0, 1, 1);
    animation-delay: 0s;
    animation-iteration-count: 1;
    animation-direction: normal;
    animation-fill-mode: none;
    animation-play-state: running;
    animation-name: zoomIn;
  }
@keyframes zoomIn {
  0% {
    transform: scale(0.7);
    opacity: 0;
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
/* 上記スマホ表示*/
@media screen and (max-width: 834px){
  .site-logo-image.header-site-logo-image {
  animation: slideIn 1.6s ;
}
@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateX(100px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
}

/* 上記スマホ表示*/
@media screen and (max-width: 834px){
  .site-logo-image.header-site-logo-image {
  animation: slideIn 1.6s ;
}
@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateX(100px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
}

/* ヘッダーキャッチフレーズ(tagline)がフェードインで出てくる*/
.tagline{
	animation-name:fdin;
	animation-duration:2.2s; /*アニメーションの時間*/
	animation-fill-mode:forwards;/*最後停止*/
}
@keyframes fdin{
from {
	opacity:0;
	transform: translateY(13px); /*アニメーションの深さ*/
}
to {
	opacity:1;
	transform: translateY(0);
}
}

/*　ヘッダーキャッチフレーズ(tagline)のカスタマイズ*/
.tagline{
	top: 1.0em;
	position: relative;
}

.tagline {
    color: #f0f1dc;
    font-weight: 200;
    text-shadow: -2px -1px 6px rgb(0 0 0 / 42%);
    text-align: right;
    font-size: 17px;
    margin-top: .1em;
    padding-top: none;
    padding-bottom: 20px;
    margin-right: 170px;
    margin-bottom: 1.3em;
    margin-left: auto;
    font-family: "游明朝", YuMincho, "Noto serif JP", serif;
}
.tagline:after{
    content: none;
    display: block;
	margin-left: 150px;
	margin-top: 5px;
}
/*ヘッダーサイトタイトルキャッチコピー　480px以下の画面(スマホ)で非表示にする*/	
	@media screen and (max-width: 834px){
.tagline{
	display:none
	}
}

/*==================================================
  アーカイブ記事関連のデザインカスタマイズ
 ===================================================*/

/*アーカイブ(一覧)記事タイトル（H1)の見出しカスタマイズ*/
.archive-title {
    font-size: 31px;
    margin: 16px 0;
    margin-bottom: 27px;
    line-height: 1.3;
}

/*アーカイブ(一覧)記事アイコンのカスタマイズ*/
.archive-title .fa-folder-open:before {
    content: "\f07c";
    color: #9e98e54d;
	font-size: 0.9em ;
	display: none ;
}
/* ===================================================以上*/
	
/*投稿ページのサイトヘッダー(メニュー含む)を表示しない*/
.single-post #header-container,
.single-post #notice-area {
		display: none;
}
/*戯作本文ページのサイトヘッダー(メニュー含まない)を表示しない*/
.single-gesaku .header#header {
    display: none;
}

.single-gesaku .header-container {
  position: -webkit-sticky;
  position: sticky;
  top: 30px;
  z-index: 1999;
}

/*投稿記事*パンくずリスト下の余白を縮める（設定は「メインカラム手前」）*/
.breadcrumb.sbp-main-before + .content,
.breadcrumb.pbp-main-before + .content {
  margin-top: 0px;
}
/*投稿記事パンくずリストのトップ以外のアイコンを削除*/
.fa-file-o:before , .fa-folder:before{
    content:unset;
}
.single #breadcrumb span.fa.fa-file-o.fa-fw {
    width: unset;
}
.single #breadcrumb span.fa.fa-folder.fa-fw{
    width: unset;
}
.archive.category #breadcrumb span.fa.fa-folder.fa-fw{
    width: unset;
}

/*投稿記事パンくずリストの文節間を調整*/
.breadcrumb .sp {
    margin: 0 4px;
	padding: 0 0px;
}

/*プロフィールボックスカスタマイズ*/
.author-box p {
    margin-top: 1.6em;
    line-height: 1.7;
	font-size: 16px;
}
.nwa .author-box .author-content {
	margin: 0;
    padding: 0.7em;
	padding-top: 0.1em;
}
.author-box .author-name {
	font-size:1.0em;
     margin-bottom: .9em;
}
.author-widget-name {
	font-size: 20px;
    text-align: center;
}
.author-name a{
	color: #e24e4e;
}
.author-description a {
    color: #e24e4e;
}
.author-description span{
	font-size:13px;
}
/*投稿記事 引用文のフォント変更 */
.wp-block-quote p {
  font-family:  "游明朝", YuMincho, "Noto serif JP",serif;
  font-size: 1.1em;
  font-weight: normal;
}

/*投稿内にCTA（コール・トゥ・アクション）ブロック（HTMLコード）を追加する*/

.cta-block {
  background: linear-gradient(135deg, #f5f7fa, #c3cfe2); /* グラデーション背景 */
  padding: 20px;
  text-align: center;
  border-radius: 8px;
  margin: 40px 0; /* 他のコンテンツとの間隔を確保 */
}

.cta-block h2 {
  font-size: 24px;
  color: #333;
  margin-bottom: 15px;
}

.cta-button {
  display: inline-block;
  background-color: #0073e6;
  color: #fff;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #005bb5;
}

/*=================================================
  固定ページカスタマイズ
 ===================================================/*

/* 特定ページ(ディケンズの生涯と作品：社会を映す名作とその生き方)のアイキャッチを非表示 */
.page-id-620 .entry-header .eye-catch {
    display: none;
}

/* Aboutページ全体をモノクロにする 
.about-page {
  filter: grayscale(100%);
}

/* 特定の要素（ハイライトしたい文字）だけカラーに戻す */
.about-page .highlight {
  filter: none;
  color: #e60039; /* ここで文字の色を調整 */
  font-weight: bold;
  background-color: rgb(230 0 57 / 5%); /* ほんのり背景色 */
  padding: 2px 5px;
}

/* 画像をモノクロにし、ホバー時にカラーにする */
.about-page img {
  filter: grayscale(100%);
  transition: filter 0.5s ease-in-out;
}

.about-page img:hover {
  filter: grayscale(0%);
}

/* H2見出しの下線をモノクロにする */
.about-page h2 {
  filter: grayscale(100%);
}

/*固定ページのみ背景色を変える*/
body.page {
    background-color: #faf1f1;
}

/* 固定ページすべてでヘッダーとナビを非表示にするが、
   トップページ用固定ページ（ID=123）のみ表示を許可する */

.page:not(.page-id-5058,.page-id-5097) .header {
   display: none;
}

.page:not(.page-id-5058,.page-id-5097) .navi-in > ul {
   display: none;
}

body.page-id-1950{
   background-color:#e8ecef;
}

/* ＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝ */
/* 固定ページID：3652（宮澤賢治 - 星降る夜の夢見る詩人）専用 */
/* ＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝ */
.page-id-3652 {
  background-image: url('https://riu-noro.com/wp-content/uploads/2025/04/4453727_l.jpg'); /* 星空背景画像のURLに差し替えてください */
  background-size: cover;
  background-attachment: fixed;
  background-position: center ;
  color: #1c1c1c;
}

/* 見出しデザイン：星と明朝体 */
.page-id-3652 .entry-content h2 {
  font-family: 'Shippori Mincho', serif;
  font-size: 1.8em;
  background-color: rgba(255, 255, 255, 0.85);
  border-left: 5px solid #87cefa;
  padding: 0.5em 1em;
  margin-top: 2em;
  position: relative;
}

.page-id-3652 .entry-content h2::before {
  content: "★ ";
  color: #f9c700;
  margin-right: 0.3em;
}

/* サブ見出し（H3）も優しい装飾に */
.page-id-3652 .entry-content h3 {
  font-family: 'Shippori Mincho', serif;
  border-bottom: 1px dotted #87cefa;
  padding-bottom: 0.2em;
  margin-top: 1.5em;
}

/* 名言・詩句などを飾る専用クラス */
.page-id-3652 .quote-block {
  background-color: rgba(255,255,255,0.8);
  border-left: 4px solid #87cefa;
  padding: 1em;
  margin: 2em 0;
  font-family: 'Yomogi', cursive;
  font-size: 1.1em;
  text-align: center;
  line-height: 1.8;
}

/* キャプション付き画像の調整 */
.page-id-3652 figure {
  text-align: center;
  margin: 2em 0;
}

.page-id-3652 figcaption {
  font-size: 0.9em;
  font-style: italic;
  color: #555;
  margin-top: 0.5em;
}

/* 本文フォント（少し太くする） */
.page-id-3652 .entry-content {
  font-family: 'Shippori Mincho', serif;
  font-size: 17px;
  line-height: 1.9;
  font-weight: 500; /* 太さを調整（400:標準, 500:少し太く, 700:さらに太く） */
}

/* 固定ページ3652のみ、H2とH3の下線（::after）を消す */
.page-id-3652 .article h2::after,
.page-id-3652 .article h4::after {
  content: none !important;
  display: none !important;
}

/* 固定ページ3652：H3見出しの元装飾（背景・枠線など）を無効化し、上書き */
.page-id-3652 .article h3 {
  all: unset; /* 元のスタイルを完全リセット（HTMLタグとしての初期状態に戻す） */
  display: block; /* unsetで消える可能性があるので再指定 */
}

.page-id-3652 .entry-content h3 {
  font-family: 'Shippori Mincho', serif;
  border-bottom: 1px dotted #87cefa;
  padding-bottom: 0.2em;
  margin-top: 1.5em;
  font-size: 1.2em;
  color: #1c1c1c;
}

/* ▼▼ ここから追加 ▼▼ */
@media (max-width: 768px) {
  .page-id-3652 .entry-content h2 {
    font-size: 1.5em;
  }
}
/* ▲▲ ここまで追加 ▲▲ */


/* ＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝ */
/* 固定ページ3652：従来画像スタイル対応（安全補完） */
/* ＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝ */
.page-id-3652 img.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-id-3652 figure {
  text-align: center;
}

.page-id-3652 figure.wp-caption {
  text-align: center;
}

.page-id-3652 figure.wp-caption img {
  display: block;
  margin: 0 auto;
}

/* Gutenbergブロック対応：中央寄せされない画像も確実に中央に */
/* Gutenberg画像（中央揃え） */
.page-id-3652 .wp-block-image.aligncenter {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* 画像自体を中央に */
.page-id-3652 .wp-block-image.aligncenter img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* キャプションのスタイル調整 */
.page-id-3652 .wp-block-image.aligncenter figcaption {
  font-size: 0.9em;
  font-style: italic;
  color: #555;
  margin-top: 0.5em;
  text-align: center;
}

.page-id-3652 .eye-catch {
    display: none;
}

/* ＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝ */
/* 固定ページID：7664（ヘルマン・ヘッセの生涯と代表作）専用 */
/* ＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝ */
.step-container {
  margin: 2em 0;
}

.step-card {
  background: #f3f8f2;
  border-left: solid 5px #6c9bd2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 1em 1.5em;
  margin-bottom: 1.2em;
  border-radius: 8px;
}

.step-num {
  font-weight: bold;
  color: #6c9bd2;
  margin-bottom: 0.3em;
}

.step-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 0.1em;
}

.step-work {
  font-weight: bold;
  margin-bottom: 0.4em;
  color: #555;
}

.step-desc {
  color: #333;
  line-height: 1.7;
}

.ref-section {
  max-width: 800px;
  margin: 2em auto;
  padding: 0 1em;
  font-family: 'Yu Gothic', 'Hiragino Kaku Gothic ProN', sans-serif;
}
.ref-section h2 {
  font-size: 2em;
  border-left: 6px solid #77b6ea;
  padding-left: 0.5em;
  margin-bottom: 0.6em;
  background: linear-gradient(90deg,#f3f8fc,#fff 60%);
  border-radius: 6px;
}
.section-desc {
  font-size: 1.08em;
  margin-bottom: 1.6em;
  color: #555;
}
.ref-group {
  margin-bottom: 2em;
}
.ref-group h3 {
  font-size: 1.15em;
  margin-bottom: 0.8em;
  border-bottom: 2px solid #e0e7ef;
  display: flex;
  align-items: center;
  font-weight: 600;
}
.ref-ico {
  margin-right: 0.5em;
  font-size: 1.2em;
}
.ref-card-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2em;
}
.ref-card {
  background: #f7fafc;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(120,180,220,0.07);
  padding: 1em 1.2em;
  min-width: 210px;
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  margin-bottom: 0.5em;
  transition: box-shadow .2s;
}
.ref-card:hover {
  box-shadow: 0 4px 16px rgba(120,180,220,0.15);
}
.ref-title {
  font-weight: bold;
  font-size: 1.08em;
  margin-bottom: 0.2em;
}
.ref-detail {
  color: #556;
  font-size: 0.98em;
  margin-bottom: 0.4em;
}
.ref-link {
  color: #359cd6;
  background: #e9f5ff;
  padding: 0.25em 0.9em;
  border-radius: 2em;
  font-size: 0.95em;
  align-self: flex-start;
  text-decoration: none;
  margin-top: 0.2em;
  transition: background .2s;
}
.ref-link:hover {
  background: #d3eaff;
  text-decoration: underline;
}

/* モバイル対応 */
@media (max-width: 600px) {
  .ref-card-list {
    flex-direction: column;
    gap: 0.7em;
  }
  .ref-card {
    min-width: 0;
    width: 100%;
  }
}

/* 「生涯年表ボックス」デザイン */

.life-timeline {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5em 0;
  font-size: 1em;
  background: #f9fbf6;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(100,140,90,0.07);
}
.life-timeline th, .life-timeline td {
  padding: 0.7em 1em;
  border: none;
}
.life-timeline th {
  background: #cbe4d7;
  color: #295240;
  font-weight: bold;
  font-size: 1.05em;
}
.life-timeline tr:nth-child(even) td {
  background: #eef6f0;
}
.life-timeline tr:nth-child(odd) td {
  background: #f9fbf6;
}

/* 「代表作クイック一覧（表形式）」デザイン */

.works-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5em 0;
  background: #f6f6f9;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(90,90,120,0.06);
  overflow: hidden;
  font-size: 1em;
}
.works-table th, .works-table td {
  padding: 0.85em 1em;
  border: none;
}
.works-table th {
  background: #d8d8e6;
  color: #33334d;
  font-weight: bold;
  font-size: 1.07em;
}
.works-table tr:nth-child(even) td {
  background: #ededf2;
}
.works-table tr:nth-child(odd) td {
  background: #f6f6f9;
}
.works-table td {
  color: #33334d;
  line-height: 1.7;
}

/* テーブル背景色カスタマイズ */

/* 日本語参考文献一覧テーブル：奇数行のセルの背景色（薄いグレー） */
.literature-table tbody tr:nth-child(odd) td {
  background-color: #f0f0f0;  /* ←現在の奇数行色に近い薄グレー */
}

/* 日本語参考文献一覧テーブル：偶数行のセルの背景色（純白） */
.literature-table tbody tr:nth-child(even) td {
  background-color: #ffffff;  /* ←現在の偶数行色（白） */
}

/* 日本語参考文献一覧テーブル：セルの枠線色（やや薄いグレー） */
.literature-table th, .literature-table td {
  border: 1px solid #E4DCDC;  /* ←現在の枠線色 */
}

/* 参考リンクテーブル：奇数行（1,3,5,...)のセルの背景色 */
.ref-link-table tbody tr:nth-child(odd) td {
  background-color: #f5f7fa;  /* ←薄いブルーグレー。1行おきに色が付く */
}

/* 参考リンクテーブル：偶数行（2,4,6,...)のセルの背景色 */
.ref-link-table tbody tr:nth-child(even) td {
  background-color: #ffffff;  /* ←純白。とてもあっさり・スッキリ */
}

/* 参考リンクテーブル：セルの枠線（区切り線）の色 */
.ref-link-table th, .ref-link-table td {
  border: 1px solid #E4DCDC;  /* ←やや薄めのグレー枠線 */
}


/*==================================================
  ハックルベリーフィンの冒険 記事カスタマイズ
  （記事ID：3978 に限定適用）
==================================================*/

/* タイトル部分の装飾（詩的な中央揃え＋横線） */
.postid-3978 .entry-title {
    font-family: 'Shippori Mincho B1', serif;
    font-weight: normal;
    font-size: 2rem;
    text-align: left;
    margin-bottom: 0.5rem;
    color: #394c57;
    position: relative;
    padding-bottom: 1rem;
}

/* H2見出し装飾（淡色背景と縦ライン） */
.postid-3978 .entry-content h2 {
    background: linear-gradient(to right, #e5eaf4, #ffffff);
    padding: 0.8em 1em;
    margin: 3em 0 1.5em 0;
    font-size: 1.5rem;
    border-left: 5px solid #b7baec;
    color: #2e3c43;
    border-radius: 5px;
    font-family: 'Shippori Mincho B1', serif;
}

/* H2・H3の Cocoon 標準装飾の無効化 */
.postid-3978 .article h2::after {
  content: none !important;
  display: none !important;
}

.postid-3978 .entry-content h3 {
  /* （ここは前回の修正済みコードに合わせて適宜編集） */

  font-family: 'Shippori Mincho B1', serif;
  font-size: 1.15em;
  color: #4e5c66;

  margin-top: 2.5em;
  margin-bottom: 1.5em;  /* ← 追加する箇所 */
  padding-left: 15px;
  position: relative;
}

.postid-3978 .article h3 {   
    padding: .1em .5em;
    background: linear-gradient(to right, #78d5311f, transparent);    
    border-left: solid 5px #ce000036;
}
.postid-3978 .entry-content h3 {
  border-left: 4px solid #c4dfe6; /* お好きな色に変更可能 */
}


	/* タイトル部分の装飾（詩的な中央揃え＋横線） */
.postid-3978 .entry-title {
    font-family: 'Shippori Mincho B1', serif;
    font-weight: normal;
    font-size: 2rem;
    text-align: left;
    margin-bottom: 0.5rem;
    color: #394c57;
    position: relative;
    padding-bottom: 1rem;
}
	
/* 章冒頭の詩的フレーズの装飾 */
.chapter-phrase {
  font-family: "Shippori Mincho B1", serif; /* 優美な明朝体 */
  font-size: 0.95rem;                      /* 少し控えめなサイズ */
  color: #555;                             /* 落ち着いたグレー */
  text-align: center;                      /* 中央寄せ */
  font-style: italic;                      /* 斜体で詩的に */
  margin: 2.5em 0 1.5em 0;                 /* 上下に十分な余白 */
  letter-spacing: 0.05em;                  /* 少しだけ文字間隔を広く */
}


}/* 任意色の付箋風ボックス */
.custom-fusen {
  background-color: #fefff1 !important;         /* 背景色の上書き */
  border-left: 8px double #ffc81873 !important;       /* ← ここを修正 */
  color: #2a2a2a;
  padding: 1.2em;
  border-radius: 5px;
  font-family: 'Shippori Mincho B1', serif;
  font-size: 1.05em;
  line-height: 1.8;
}
/* 区切り線カスタマイズ */
.postid-3978 hr.wp-block-separator {
  border: none;
  height: 2px;
  background: linear-gradient(to right, #fceabb, #f8b500);
  width: 60%;
  margin: 3em auto;
  opacity: 0.9;
}

/*==================================================
  走れメロス 記事カスタマイズ
  （記事ID： に限定適用）
==================================================*/

/* 夕焼け：より赤みを帯びたグラデに変更 */
.bg-sunset{
  /* 頂点＝#ff7c53（橙→赤の中間）→終点＝#ff6a5a（赤寄り） */
  background: linear-gradient(to bottom,
              #e15e3b5c 0%,   /* 橙寄りの中間色 */
              #ff6a5a 100%  /* 既存グラデ補助と同じ赤橙 */
            );
  color:#fff;
  padding:2em;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.1);
}
.bg-sunset p {
  text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

/* 夕方〜昼は既存クラスのまま（参考） */
.bg-evening{background:#3d2b64;color:#e8e6ff;padding:2em;}
.bg-night{background:#0b1f3a;color:#f0f8ff;padding:2em;}
.bg-pre-dawn{background:#272b55;color:#f2f6ff;padding:2em;}
.bg-dawn{background:linear-gradient(to bottom,#3a3f75,#7a86a2);color:#fafafa;padding:2em;}
.bg-morning{background:#fff8dc;color:#333;padding:2em;}
.bg-noon{background:#fbf7e2;color:#222;padding:2em;}

body.postid-4539{   /* ← ID 指定済みならそのまま */
  background:linear-gradient(
      to bottom,
      #e6dfbc5c 0%,
	  #e15e3b5c 3%,     /* ★夕焼け：橙-紅 */
      #ff6a5a 10%,    /* ★橙→赤のグラデ補助 */
      #3d2b64 22%,    /* 夕方：深紫 */
      #0b1f3a 34%,    /* 深夜：群青 */
      #09141c 50%,    /* 夜明け前：紺 */
      #092434 60%,    /* 薄明：藍 */
      #7a86a2 68%,    /* 青みが残る夜明け */
      #ff8b47 77%,    /* 朝焼けオレンジ①（既存）*/
      #ffd59e 82%,    /* 朝焼けオレンジ② */
      #fff8dc 88%,    /* 朝：アイボリー */
      #fbf7e2 99%,  /* 昼：生成り */
	  #e6dfbc5c 100%);
  background-attachment:scroll;
}

	/*==================================================
  グローバルナビ（メニュー）カスタマイズ（整理済）
==================================================*/

/* フォント設定・基本スタイル */
.navi-in a {
  font-size: 15px;
  font-weight: 400;
  transition: none;
  color: #ffffff;
}

/* ホバー時の文字色と背景色 */
#navi .navi-in a:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.2);
}

/* メニュー項目の全体ボックス設定 */
.navi-in > ul {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  height: 50px;
}

/* 各メニューアイテムの幅・高さ・整列 */
.navi-in > ul li {
  display: block;
  width: 176px;
  height: 50px;
  line-height: 30px; /* テキスト位置調整 */
  position: relative;
}

/* ── グローバル共通の item-label ── */
#navi .item-label {
  letter-spacing: 0.08em;
  line-height: 18px;
  padding-top: 12px;
  padding-bottom: 0;
  display: block;
  height: 50px;
}

/* メニューの説明文（小さい文字） */
#navi .item-description.sub-caption {
  font-size: 0.7em;
}

/* サブメニューの背景色 */
.navi-in > ul .sub-menu li {
  background-color: #020e3f;
}

/* サブメニューリンクのホバー処理 */
#navi .navi-in .sub-menu a:hover {
  display: block;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* 孫メニューの表示位置調整 */
#navi .navi-in > ul .sub-menu ul {
  position: absolute;
  top: 0;
  left: 240px;
}

/* サブメニュー矢印位置調整（HTML構造により再調整要） */
.has-icon.has-sub {
  top: -8px;
}

/* スマホ表示対応（834px以下） */
@media screen and (max-width: 834px) {
  .navi-in > ul {
    height: auto;
  }

  .navi-in .has-icon {
    display: none;
  }

  #navi .navi-in > .menu-mobile li {
    width: auto;
    height: 34px;
    line-height: 35px;
  }

  #navi .navi-in > .menu-mobile > .menu-item-has-description > a > .caption-wrap {
    line-height: 4px;
  }
}

/* ========== シリーズ特集 強調 ========== */
.menu-item-series > a{
  background:var(--series-bg); font-weight:600; position:relative;
  padding-left:34px;
}
.menu-item-series > a::before{
  content:"★"; /* Font Awesome を使うなら置き換え可 */
  position:absolute; left:12px; top:50%; transform:translateY(-50%);
}
.menu-item-series > a:hover{ background:var(--series-bg-hover); }

/* クリック無効化オプション */
.no-link > a{ cursor:default; }

/* ── 孫メニューのテキスト（2行で省略記号を表示）── */
#navi .sub-menu .sub-menu a .item-label {
  display: -webkit-box;
  -webkit-line-clamp: 2;               /* 最大2行まで表示 */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  word-break: break-word;
  max-width: 240px;
  font-size: 13.5px;
  line-height: 1.4;
}

/* ── item-description は1行でOKならこのまま ── */
#navi .sub-menu .sub-menu .item-description {
  font-size: 11.5px;
  color: #ccc;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}

/* ── サブメニューのテキスト（2行で省略記号を表示）── */
#navi .sub-menu > li > a .item-label {
  display: -webkit-box;
  -webkit-line-clamp: 2;               /* 最大2行まで表示 */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  word-break: break-word;
  max-width: 240px;
  font-size: 14px;
  line-height: 1.4;
}

/*==================================================
  怒りの葡萄 記事カスタマイズ
  （記事ID4751： に限定適用）
==================================================*/
.hr-plain {
  border: none;
  border-top: 2px solid #555; /* やや暗めグレー */
  margin: 2em 0;
  width: 80%;
}

.hr-vine {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 3em 0;
}

.hr-vine::before,
.hr-vine::after {
  content: "";
  flex: 1;
  border-top: 1px solid #888;
}

.hr-vine::before {
  margin-right: 1em;
  background: url('path-to-left-grape.png') no-repeat left center;
}

.hr-vine::after {
  margin-left: 1em;
  background: url('path-to-right-grape.png') no-repeat right center;
}

.postid-4751 hr.wp-block-separator {
  border: none;
  height: 2px;
  background: linear-gradient(to right, #e2c290, #7bbfa3);
  width: 60%;
  margin: 3em auto;
  opacity: 0.9;
}

.intro-box {
  background: linear-gradient(to right, #f7f1e1, #f2edc7);
  border-left: 4px solid #b8860b;
  border-right: 4px solid #b8860b;
  border-radius: 12px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
  padding: 2em 1.5em;
  margin: 2.5em 0;
  font-size: 1.05em;
  line-height: 1.8;
  color: #3b2f1c;
}

/*==================================================
  恩讐の彼方に 記事カスタマイズ
  （記事ID6565： に限定適用）
==================================================*/
/* --- PC・タブレット用 --- */
.postid-6565 .wp-block-cover {
  box-shadow: 0 4px 24px rgba(0,0,0,0.18), 0 1.5px 6px rgba(0,0,0,0.14);
  border-radius: 18px;
  overflow: hidden;
  margin-top: 2.5em;
  margin-bottom: 2.5em;
}
.postid-6565 .wp-block-cover__image-background,
.postid-6565 .wp-block-cover__video-background {
  border-radius: 18px;
}
.postid-6565 .wp-block-cover__inner-container {
  color: #ECECEC;
  font-size: 17px;
  line-height: 1.8;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.28), 0 1px 2px rgba(0,0,0,0.2);
  padding: 1.8em 1.0em;
}
/* カスタムテキスト（必要な場合だけ） */
.postid-6565 .wp-block-cover__inner-container .cocoon-custom-text-1 {
  font-family: "游明朝", YuMincho, "Noto serif JP", serif;
  /* フォントサイズは親で指定済み */
}
.postid-6565 .wp-block-cover__inner-container figcaption {
  font-size: 0.95em;
  opacity: 0.86;
}
.postid-6565 .wp-block-cover__inner-container h2,
.postid-6565 .wp-block-cover__inner-container h3 {
  color: #fff;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.32);
}

/* --- スマホ（600px以下） --- */
@media (max-width: 600px) {
  /* カバーブロック全体・内包全要素に一括指定 */
  .postid-6565 .wp-block-cover__inner-container,
  .postid-6565 .wp-block-cover__inner-container * {
    font-size: 16px !important;
    line-height: 1.6 !important;
  }
  .postid-6565 .wp-block-cover__inner-container {
    padding: 1.2em 0.7em;
  }
  /* 角丸や影をやや縮小 */
  .postid-6565 .wp-block-cover {
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18), 0 1px 3px rgba(0,0,0,0.13);
  }
  .postid-6565 .wp-block-cover__image-background,
  .postid-6565 .wp-block-cover__video-background {
    border-radius: 10px;
  }
}

/* ========== 『恩讐の彼方に』 カバーブロック ボーダーカラー13種 ========== */

/* 共通ベース：左ボーダーと余白 */
.postid-6565 .wp-block-cover[class*="onshu-cover-border"] {
  position: relative;
  border-left-width: 7px;
  border-left-style: solid;
  padding-left: 1.5em;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18), 0 1.5px 6px rgba(0,0,0,0.14);
  border-radius: 18px;
  margin-top: 2.5em;
  margin-bottom: 2.5em;
}

/* 色を1～13まで割り当て */
.postid-6565 .onshu-cover-border1  { border-left-color: #a0522d; }  
.postid-6565 .onshu-cover-border2  { border-left-color: #556b2f; }  
.postid-6565 .onshu-cover-border3  { border-left-color: #4b0082; }  
.postid-6565 .onshu-cover-border4  { border-left-color: #b44c34; }  
.postid-6565 .onshu-cover-border5  { border-left-color: #35516b; }  
.postid-6565 .onshu-cover-border6  { border-left-color: #6b4f3f; }  
.postid-6565 .onshu-cover-border7  { border-left-color: #76816b; }  
.postid-6565 .onshu-cover-border8  { border-left-color: #d19494; }  
.postid-6565 .onshu-cover-border9  { border-left-color: #5484a0; }  
.postid-6565 .onshu-cover-border10 { border-left-color: #ad607c; }  
.postid-6565 .onshu-cover-border11 { border-left-color: #737273; }  
.postid-6565 .onshu-cover-border12 { border-left-color: #669966; }  
.postid-6565 .onshu-cover-border13 { border-left-color: #bc6c25; }  


/* モバイル用（幅・余白を縮小） */
@media (max-width: 600px) {
  .postid-6565 .wp-block-cover[class*="onshu-cover-border"] {
    border-left-width: 5px;
    border-radius: 10px;
    padding-left: 0.9em;
  }
}



/*==================================================
  トップページカスタマイズ
 ===================================================*/
/*トップページ感情ブロックのレスポンシブ対応*/
/* PC用（初期状態）*/ 
.emotion-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 960px;
  margin: auto;
  padding: 1em;
}

/* タブレット以下：2列 */
@media screen and (max-width: 834px) {
  .emotion-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* スマホ：1列 */
@media screen and (max-width: 480px) {
  .emotion-grid {
    grid-template-columns: 1fr;
  }
}

/* フロントページのフッターの色味を変える*/
.footer{
    background-image: linear-gradient( 323deg, #020e3f 30%, #b7c2e2 72%, #e27979 90%);
}

/* フロントページのフッターの高さなどを変える*/
.footer-bottom{
    margin-top: 4px;
    padding: 4px;
    position: relative;
    font-size: 14px;
}

/*モバイルフッターメニューのデザイン変更/
.mobile-footer-menu-buttons,
.navi-menu-content,
.mobile-footer-menu-buttons .menu-button > a,
.mobile-footer-menu-buttons .menu-button:hover,
.navi-menu-content a,
.navi-menu-content a:hover {
  background: #100b30;/*背景色*/
  color: #fff;/*文字色*/
}
.footer-bottom-logo img {
    height: 50px;
    width: auto;
    padding-top:10px;
	margin-top:0px;
}

/*モバイルのテキスト色の統一(上記カスタマイズによりサイドバー内テキストが白になる現象回避)*/
.text-mobile {
	color:#000519 ;
}


/* 「今の気持ちに合わせて読む」ボタンへスムーススクロール*/  
html {
  scroll-behavior: smooth;
}

.hero-button {
  display: inline-block;
  margin-top: 2em;
  padding: 0.6em 1.4em;
  background-color: #ffffffcc;
  color: #222;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease; /* ← 滑らかさを強化*/ 
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transform: translateY(0);
}

.hero-button:hover {
  transform: translateY(-4px); /* ← 上に少し浮く*/ 
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* ← 影も増やす */
}

/* 「人生の再生のための文学」トップページ用カスタムCSS
 */

/* ─────────────────────────────────────────
   固定ページID:5097(「人生の再生のための文学」トップページ)専用  区切り線デザイン集
   すべて <hr class="wp-block-separator"> に適用
   ドットスタイルのデフォルト●●●は無効化
─────────────────────────────────────────*/

/* ドットの●●●を消す（自作デザインの邪魔をしないため） */
.page-id-5097 .entry-content .wp-block-separator.is-style-dots::before {
  content: none !important;
}

/* ▼共通のベース（幅/余白を揃える） */
.page-id-5097 .entry-content hr.wp-block-separator,
.page-id-5097 .entry-content .wp-block-separator {
  width: 70%;
  margin: 3em auto;
}

/* === A. 上品フェード（紺のグラデーション：一番おすすめ） === */
.page-id-5097 .sep-fade,
.page-id-5097 .wp-block-separator.is-style-default.sep-fade {
  border: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, #0f2742, transparent);
  opacity: 0.55;
}

/* === B. 中央に記号付き（＊をお好みで変更可） === */
.page-id-5097 .sep-symbol,
.page-id-5097 .wp-block-separator.is-style-default.sep-symbol {
  border: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, #aab3be, transparent);
  opacity: 0.7;
}
.page-id-5097 .sep-symbol::before {
  content: "＊"; /* 候補： "⋯" "✦" "❖" "∞" など */
  display: block;
  text-align: center;
  color: #0f2742;
  font-size: 1.2em;
  letter-spacing: .3em;
  margin-bottom: .6em;
  opacity: .8;
}

/* === C. ダブルルール（細線2本・中央に抜け）=== */
.page-id-5097 .sep-double {
  border: 0;
  height: 7px;         /* 上下2本の線の“器”の高さ */
  position: relative;
  background: none;
}
.page-id-5097 .sep-double::before,
.page-id-5097 .sep-double::after {
  content: "";
  position: absolute; left: 0; right: 0;
  height: 1px; background: #0f2742; opacity: .45;
}
.page-id-5097 .sep-double::before { top: 0; }
.page-id-5097 .sep-double::after  { bottom: 0; }

/* === D. エレガントな点線（柔らかいリズム） === */
.page-id-5097 .sep-dotted {
  border: none;
  border-bottom: 2px dotted #0f2742;
  opacity: .35;
}

/* === E. カラーグラデ（怒りの葡萄アレンジ：金→青緑） === */
.page-id-5097 .sep-grad {
  border: none;
  height: 2px;
  background: linear-gradient(to right, #e2c290, #7bbfa3);
  opacity: .9;
  width: 60%;          /* これだけ幅を少し狭く */
}

/* === F. ふわっと出るフェード（静かなアニメ） === */
.page-id-5097 .sep-fadein {
  border: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, #0f2742, transparent);
  opacity: 0;
  animation: ruinoFadeIn 1.6s ease forwards;
}
@keyframes ruinoFadeIn { to { opacity: .55; } }

/* 固定ページID5097の更新日とタグを非表示 */
.page-id-5097 .date-tags {
    display: none !important;
}

/* トップページのメインコンテンツ周囲の余白を削除 */
.home .main,
.home .entry-content {
  padding: 0 !important;
  margin: 0 !important;
}

/* 全体のフォント設定 */
.postid-5097 body {
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.8;
}

/* Heroセクションのスタイル */
.hero-section {
  text-align: center;
  padding: 120px 20px;
  background-size: cover;
  background-position: center;
  position: relative;
  color: #fff;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.page-id-5097 .hero-section .hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.page-id-5097.hero-section h1 {
  font-size: 32px;
  font-weight: 500;
  margin-bottom: 20px;
  line-height: 1.4;
}

.page-id-5097.hero-section p {
  font-size: 18px;
  margin-bottom: 30px;
  font-weight: 300;
}

/* 感情カテゴリーセクションのスタイル */
#emotion-nav {
  padding: 40px 0;
}

#emotion-nav h2 {
  position: relative;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 300;
  font-size: 30px;
}

#emotion-nav h2:after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: #6c9bd2;
  margin: 20px auto;
}

.emotion-intro {
  text-align: center;
  font-size: 16px;
  margin-bottom: 50px;
  font-weight: 300;
}

/* 感情カテゴリーボックスのスタイル */
.wp-block-cocoon-blocks-box-1 {
  transition: all 0.3s ease;
  background-color: rgba(108, 155, 210, 0.1); /* ← 薄いブルー背景を追加 */
  border-radius: 10px; /* お好みで角丸に */
  padding: 20px; /* 内側余白。必要に応じて */
}

.wp-block-cocoon-blocks-box-1:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
  background-color: rgba(108, 155, 210, 0.15); /* ← ホバー時は少し濃く */
}

/* (カテゴリーボックス内の画像の高さを調整 )*/
.wp-block-cocoon-blocks-box-1 .block-box figure img {
  height: 170px; /* 必要に応じてこの数値を調整してください（小さくすると低くなります） */
  object-fit: cover; /* 画像比率を維持しながらトリミング */
  width: 100%; /* 横幅は維持 */
　}

/* 感情カテゴリーボックスラベル調整 */
.box-label {
  background-color: #abb3e4;
  color: #fff;
  padding: 3px 15px;
  border-radius: 3px 3px 0 0;
  font-weight: bold;
  line-height: 1.4;
  border-radius: 0px 0px 0 0;
}

/* カテゴリー名（ボックスラベル内テキスト）を大きくする */
.box-label-text {
  font-size: 16px; /* サイズを大きくする（必要に応じて調整してください） */
  font-weight: bold;
  padding: 6px 0; /* 上下のパディングを少し増やして見栄えを良くする */
  display: block;
}

/* 感情説明文を明朝体＆小さめに */
.wp-block-cocoon-blocks-box-1 .has-text-align-center {
  font-family:"游明朝", "Yu Mincho", "MS PMincho", serif;
  font-size: 18px;
  line-height: 1.6;
  text-align: center;       /* 中央揃え（念のため） */
  color: #333333;           /* 色味を抑えた濃いグレー（お好みで） */
  margin-top: 10px;         /* 上に余白 */
  margin-bottom: 10px;      /* 下に余白 */

}

/* ブログカードのカスタマイズ （おすすめ記事セクション）*/
.page-id-5097 .blogcard {
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  transition: all 0.3s;
  margin-bottom: 30px;
  background-color: #aed7d72b;
}

.page-id-5097 .blogcard:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.blogcard-label {
  background-color: #6c9bd2;
  color: #fff;
  font-size: 12px;
  padding: 5px 15px;
}

.blogcard-title {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 10px;
}

.blogcard-snippet {
  font-size: 14px;
  color: #666;
}

.blogcard-footer {
  margin-top: 15px;
}

.blogcard-href {
  display: inline-block;
  background: #6c9bd2;
  color: white !important;
  padding: 8px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
  text-align: center;
}

.blogcard-href:hover {
  background: #5889c0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.custom-category-label {
  font-family: "Yu Mincho", "游明朝", serif;
  font-size: 1.2em ;
  color: #444;
  border-left: 4px solid #6c9bd2;
  padding-left: 10px;
  margin-bottom: 1.2em;
}

.custom-category-label span {
  font-weight: bold;
  color: #2a2a2a;
}


.custom-category-label .label-name {
  font-weight: bold;
  color: #2a2a2a;
}
/*カテゴリーネームのリンクデザイン */
.label-name {
  text-decoration: none;
  color: #345678;
  font-weight: bold;
}
.label-name:hover {
  text-decoration: underline;
  color: #224466;
}

/*==================================================
  28. トップページ（ID:5097）紹介セクション（ミッション）のデザイン
  ==================================================*/
.page-id-5097 .mission-text {
    font-size: 17px;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 40px;
}

/*.page-id-5097 .wp-block-media-text img {
    border-radius: 50%;
    justify-content: center !important;
    text-align: center !important;
}*/
.page-id-5097 .wp-block-media-text__content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}
.page-id-5097 .wp-block-media-text__content p {
    font-size: 14px;
    color: #666;
}

/* レスポンシブ対応（紹介セクションの縦並び＆中央寄せ） */
@media (max-width: 781px) {
    .postid-5097 .hero-section h1 {
        font-size: 24px;
    }
    .postid-5097 .hero-section p {
        font-size: 16px;
    }
    .wp-block-column {
        margin-bottom: 20px;
    }
    .wp-block-media-text {
        display: block;
    }
    .wp-block-media-text__media {
        margin: 0 auto 20px;
        max-width: 120px;
    }
    .wp-block-media-text__content {
        text-align: center;
    }
}


/* ボタンのスタイル */
.wp-block-button__link {
  background-color: #6c9bd2;
  border-radius: 30px;
  padding: 10px 25px;
  font-size: 1em !important;
　font-weight: 500;
  transition: all 0.3s;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.wp-block-button__link:hover {
  background-color: #5889c0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 感情カテゴリーグリッドの洗練されたスタイル */
.emotion-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 2rem auto 4rem;
  padding: 0 1.5rem;
}

.emotion-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(108, 155, 210, 0.08);
  transition: all 0.3s ease-out;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.emotion-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(108, 155, 210, 0.15);
}

.emotion-card:hover .emotion-image {
  transform: scale(1.05);
}

.emotion-image {
  width: 100%;
  height: 180px;
  background-color: #f1f6fb;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.emotion-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.emotion-card h3 {
  font-size: 1.2rem;
  font-weight: 500;
  color: #333;
  margin: 0 0 0.8rem 0;
  line-height: 1.4;
}

.emotion-description {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  flex-grow: 1;
}

.emotion-btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: #6c9bd2;
  color: #fff;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  align-self: flex-start;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(108, 155, 210, 0.2);
}

.emotion-card:hover .emotion-btn {
  background-color: #5889c0;
  box-shadow: 0 4px 8px rgba(108, 155, 210, 0.3);
}

/* レスポンシブ対応 */
@media (max-width: 920px) {
  .emotion-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .emotion-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .emotion-image {
    height: 160px;
  }
}

.wp-block-cocoon-blocks-box-1 .block-box figure img {
  width: 100%;
  max-height: 280px;
  height: auto;
  object-fit: cover;
}
@media screen and (max-width: 767px) {
  .wp-block-cocoon-blocks-box-1 .block-box figure {
    height: 200px;
    overflow: hidden;
    margin: 0;
    padding: 0;
    line-height: 0;
  }

  .wp-block-cocoon-blocks-box-1 .block-box figure img {
    height: 100%;
    width: 100%;
    object-fit: cover;
  }

  .wp-block-cocoon-blocks-box-1 .has-text-align-center {
    margin-top: 20px;
	margin-bottom:20px;
  }
}

/* 画像を含む figure 要素の調整 */
.wp-block-cocoon-blocks-box-1 .block-box figure {
  margin: 0;
  padding: 0;
  line-height: 0; /* 余分な隙間をなくす */
}
/* 感情ブロックリンク実装後のデザイン調整 */
.wp-block-cocoon-blocks-box-1 {
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.wp-block-cocoon-blocks-box-1:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}


/* ▼トップページH2 理想的な共通見出しデザイン */
.page .article .beautiful-section h2 {
  position: relative;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 300;
  font-size: 30px;
  font-family: "游明朝", YuMincho, "Noto serif JP", serif;
  color: #131147;
  background: #fff;
  padding: 0 0.15em;
  border: none;
}
/* ▼ グラデーション下線を解除して、センター下線を再設定 */
.page .article .beautiful-section h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: #6c9bd2;
  margin: 20px auto;
}


/* -----------------------------
   モバイル表示時の中央寄せ対応
----------------------------- */

 @media screen and (max-width: 768px) {
  .wp-block-media-text.is-stacked-on-mobile {
    justify-content: center !important;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* テキスト部分の中央寄せと余白調整 */
  .wp-block-media-text__content {
    text-align: center !important;
    padding-left: 1em;
    padding-right: 1em;
  }
}


/* -----------------------------
   共通：画像のスタイル（中央配置 + 楕円 + 余白）
----------------------------- */
.wp-block-media-text__media {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 24px; /* ←ここで余白を確保 */
}

.wp-block-media-text__media img {
  width: auto;
  height: auto;
  aspect-ratio: 4 / 3;           /* 横長の楕円比率 */
  border-radius: 50% / 50%;      /* 楕円形を表現 */
  max-width: 100%;
  display: block;
  object-fit: cover;
}

/* -----------------------------
   モバイル向け画像の高さ制限（任意）
----------------------------- */
@media screen and (max-width: 767px) {
  .wp-block-media-text__media img {
    max-height: 180px;
  }
｝*/

.front-page .main {
  padding-bottom: 0;
  margin-bottom: 0;
}

.front-page .content {
  margin-bottom: 0;
}

/*==================================================
 /* === 枯れないひとひら === */
 /* === 枯れないひとひら（共通） === */
.hitohira-box{
  --hitohira-accent: #2e7d32; /* お好みで色変更OK（深いグリーン） */
  border-left: 6px solid var(--hitohira-accent);
  background: linear-gradient(90deg, rgba(46,125,50,.08), rgba(46,125,50,.02));
  border-radius: 14px;
  padding: 1.2rem 1.2rem 1.1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  margin: 1.6rem 0;
}

.hitohira-title{
  display:flex; align-items:center; gap:.5rem;
  font-weight:700; letter-spacing:.03em;
  margin-bottom:.4rem; color: var(--hitohira-accent);
}
.hitohira-icon{ width:20px; height:20px; fill: currentColor; }

.hitohira-meta{
  font-size:.95rem; opacity:.9; margin-bottom:.6rem;
  display:flex; gap:.6rem; flex-wrap:wrap;
}
.hitohira-meta .work-title{ font-weight:700; }
.hitohira-meta .work-author{ opacity:.8; }

.hitohira-quote{
  margin: .2rem 0 0.8rem;
  padding: .8rem 1rem;
  border-left: 4px solid var(--hitohira-accent);
  background: rgba(255,255,255,.6);
  border-radius: 10px;
}
.hitohira-quote p{ margin:0; line-height:1.7; }
.hitohira-quote footer{ font-size:.85rem; opacity:.8; margin-top:.4rem; }

.hitohira-note{
  line-height:1.8;
  background: rgba(0,0,0,.02);
  border-radius: 10px;
  padding: .75rem .9rem;
  margin-bottom: .6rem;
}

.hitohira-source{
  font-size:.85rem; opacity:.85;
}
.hitohira-icon{
  width:20px;
  height:20px;
  display:inline-block;
  flex-shrink:0;
}
.jp-translation{
  display:block;
  margin-top:.45rem;
  font-size:.92rem;
  color:#444;
  font-style:normal; /* 英文のイタリックと差別化 */
}


/* ダークモード配慮（任意） */
@media (prefers-color-scheme: dark){
  .hitohira-box{
    background: linear-gradient(90deg, rgba(46,125,50,.16), rgba(46,125,50,.06));
    box-shadow: 0 2px 10px rgba(0,0,0,.25);
  }
  .hitohira-quote{ background: rgba(255,255,255,.04); }
  .hitohira-note{ background: rgba(255,255,255,.04); }
}

/* サイドバーのSNSリンク（控えめデザイン） */
.sns-minilinks ul{ list-style: none !important; margin: .2em 0 0; padding: 0; }
.sns-minilinks li{ margin: .3em 0; }
.sns-minilinks a{
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,.08);
  padding: .1em 0;
  display: inline-block;
}
.sns-minilinks a:hover{ border-color: rgba(0,0,0,.25); }

/* 記事末ボタンのやさしい見た目（任意） */
.wp-block-button .wp-block-button__link{
  border-radius: 9999px; padding: .45em 1em; font-weight: 600;
}
.wp-block-button.is-style-outline .wp-block-button__link{ opacity: .9; }
	
/* サイドバー用の小さなSNSリンク列 */
.sns-minilinks { list-style: none; margin: .2em 0 0; padding: 0; }
.sns-minilinks li { margin: .3em 0; }
.sns-minilinks a{
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,.08);
  padding: .1em 0;
}
.sns-minilinks a:hover { border-color: rgba(0,0,0,.25); }

/* 記事末ボタンを“控えめ”に */
.wp-block-button.is-style-outline .wp-block-button__link{
  opacity: .9;
}
.wp-block-button .wp-block-button__link{
  border-radius: 9999px;
  padding: .45em 1em;
  font-weight: 600;
}

/*==================================================
  「雨ニモマケズ」ショート動画デザインカスタマイズ 
  ==================================================*/

/* 編集画面と公開側の両方に効かせる */
:is(.entry-content, .editor-styles-wrapper) .video-01{
  max-width: 540px;         /* PC時の横幅上限：360〜480pxでお好み調整 */
  margin: 24px auto;        /* 中央寄せ */
  background: #f4faff;      /* 任意の淡い背景 */
  border: 2px solid #3b5b8a;
  border-radius: 12px;
  padding: 16px;
}
:is(.entry-content, .editor-styles-wrapper) .video-01 iframe{
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;     /* Shortsの縦比率を維持してレスポンシブ */
  display: block;
}
@media (max-width: 600px){
  :is(.entry-content, .editor-styles-wrapper) .video-01{ max-width: 100%; }
}
