@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
*/








/*全てをまとめて非表示*/
.home.page .entry-title,
.home.page .sns-share,
.home.page .sns-follow,
.home.page .date-tags,
.home.page .author-info{
  display: none;
}


/*シェア・フォローボタンの枠組み*/
.sns-share.ss-top .sns-share-buttons,
.sns-share.ss-bottom .sns-share-buttons,
.sns-follow.sf-bottom .sns-follow-buttons,
.sns-follow.sf-widget .sns-follow-buttons {
	justify-content: center; /*中央に寄せる*/
	flex-wrap: wrap; /*折り返す*/
}

/*シェア・フォローボタンのリンク*/
.sns-share.ss-top .sns-buttons a,
.sns-share.ss-bottom .sns-buttons a,
.sns-follow.sf-bottom .sns-buttons a,
.sns-follow.sf-widget .sns-buttons a {
	width: 40px; /*横幅*/
	height: 40px; /*高さ*/
	margin-right: 4px; /*右側の余白*/
	margin-left: 4px; /*左側の余白*/
	border: none; /*線*/
}

/*フォローボタン（プロフィール）のリンク*/
.sns-follow.sf-profile .sns-buttons a {
	border: none; /*線*/
}

/*シェアボタンのアイコン*/
.sns-share.ss-top .sns-buttons a .social-icon,
.sns-share.ss-bottom .sns-buttons a .social-icon {
	font-size: 20px; /*アイコンの大きさ*/
}

/*フォローボタンのアイコン*/
.sns-follow.sf-bottom .sns-follow-buttons .follow-button,
.sns-follow.sf-widget .sns-follow-buttons .follow-button {
	font-size: 25px; /*アイコンの大きさ*/
}

/*シェアボタンのキャプション*/
.sns-share.ss-top .sns-buttons a .button-caption,
.sns-share.ss-bottom .sns-buttons a .button-caption {
	display: none; /*非表示*/
}

/*シェア・フォローボタンのシェア数*/
.sns-share.ss-top .sns-buttons a .share-count,
.sns-share.ss-bottom .sns-buttons a .share-count,
.sns-follow.sf-bottom .sns-buttons a .follow-count,
.sns-follow.sf-widget .sns-buttons a .follow-count {
	right: 0; /*右側からの距離*/
	bottom: -10px; /*下側からの距離*/
	left: 0; /*左側からの距離*/
	font-size: 10px; /*文字の大きさ*/
	color: #333; /*文字の色*/
}

/*シェア・フォローボタンの各アイコンをまとめて指定*/
[class*="sns-share"][class*="ss-"] [class*="-button"],
[class*="sns-follow"][class*="sf-"] [class*="-button"] {
	background-color: inherit; /*背景の色*/
}

/*ボタンカラーがモノクロ時のアイコンをまとめて指定*/
[class*="sns-"][class*="bc-monochrome"] [class*="icon-"]:before {
	color: #333; /*アイコンの色*/
}


/* シェアボタンの各アイコン
-----------------------------------*/

/*Twitterアイコン*/
.icon-twitter:before {
	color: #1da1f2; /*アイコンの色*/
}

/*Facebookアイコン*/
.icon-facebook:before {
	color: #3b5998; /*アイコンの色*/
}

/*はてブアイコン*/
.icon-hatena:before {
	color: #2c6ebd; /*アイコンの色*/
}

/*Pocketアイコン*/
.icon-pocket:before {
	color: #ef4056; /*アイコンの色*/
}

/*LINEアイコン*/
.icon-line:before {
	color: #00c300; /*アイコンの色*/
}

/*Pinterestアイコン*/
.icon-pinterest:before {
	color: #bd081c; /*アイコンの色*/
}

/*LinkedInアイコン*/
.icon-linkedin:before {
	color: #0077b5; /*アイコンの色*/
}

/*コピーアイコン*/
.icon-copy:before {
	color: #333; /*アイコンの色*/
}

/*コメントアイコン*/
.icon-comment:before {
	color: #333; /*アイコンの色*/
}


/* フォローボタンの各アイコン
-----------------------------------*/

/*ウェブサイトアイコン*/
.sns-follow.sf-bottom .icon-home-logo:before,
.sns-follow.sf-widget .icon-home-logo:before {
	color: #002561;/*アイコンの色*/
}

/*Twitterアイコン*/
.sns-follow.sf-bottom .icon-twitter-logo:before,
.sns-follow.sf-widget .icon-twitter-logo:before {
	color: #1da1f2; /*アイコンの色*/
}

/*Facebookアイコン*/
.sns-follow.sf-bottom .icon-facebook-logo:before,
.sns-follow.sf-widget .icon-facebook-logo:before {
	color: #3b5998; /*アイコンの色*/
}

/*はてブアイコン*/
.sns-follow.sf-bottom .icon-hatebu-logo:before,
.sns-follow.sf-widget .icon-hatebu-logo:before {
	color: #2c6ebd; /*アイコンの色*/
}

/*Instagramアイコン*/
.sns-follow.sf-bottom .icon-instagram-logo:before,
.sns-follow.sf-widget .icon-instagram-logo:before {
	color: #405de6; /*アイコンの色*/
}

/*YouTubeアイコン*/
.sns-follow.sf-bottom .icon-youtube-logo:before,
.sns-follow.sf-widget .icon-youtube-logo:before {
	color: #cd201f; /*アイコンの色*/
}

/*LinkedInアイコン*/
.sns-follow.sf-bottom .icon-linkedin-logo:before,
.sns-follow.sf-widget .icon-linkedin-logo:before {
	color: #0077b5; /*アイコンの色*/
}

/*noteアイコン*/
.sns-follow.sf-bottom .icon-note-logo:before,
.sns-follow.sf-widget .icon-note-logo:before {
	color: #41c9b4; /*アイコンの色*/
}

/*SoundCloudアイコン*/
.sns-follow.sf-bottom .icon-soundcloud-logo:before,
.sns-follow.sf-widget .icon-soundcloud-logo:before {
	color: #ff8800; /*アイコンの色*/
}

/*Flickrアイコン*/
.sns-follow.sf-bottom .icon-flickr-logo:before,
.sns-follow.sf-widget .icon-flickr-logo:before {
	color: #111; /*アイコンの色*/
}

/*Pinterestアイコン*/
.sns-follow.sf-bottom .icon-pinterest-logo:before,
.sns-follow.sf-widget .icon-pinterest-logo:before {
	color: #bd081c; /*アイコンの色*/
}

/*LINEアイコン*/
.sns-follow.sf-bottom .icon-line-logo:before,
.sns-follow.sf-widget .icon-line-logo:before {
	color: #00c300; /*アイコンの色*/
}

/*Amazonアイコン*/
.sns-follow.sf-bottom .icon-amazon-logo:before,
.sns-follow.sf-widget .icon-amazon-logo:before {
	color: #ff9900; /*アイコンの色*/
}

/*ROOMアイコン*/
.sns-follow.sf-bottom .icon-rakuten-room-logo:before,
.sns-follow.sf-widget .icon-rakuten-room-logo:before {
	color: #c61e79; /*アイコンの色*/
}

/*Slackアイコン*/
.sns-follow.sf-bottom .icon-slack-logo:before,
.sns-follow.sf-widget .icon-slack-logo:before {
	color: #e01563; /*アイコンの色*/
}

/*GitHubアイコン*/
.sns-follow.sf-bottom .icon-github-logo:before,
.sns-follow.sf-widget .icon-github-logo:before {
	color: #4078c0; /*アイコンの色*/
}

/*CodePenアイコン*/
.sns-follow.sf-bottom .icon-codepen-logo:before,
.sns-follow.sf-widget .icon-codepen-logo:before {
	color: #333; /*アイコンの色*/
}

/*Feedlyアイコン*/
.sns-follow.sf-bottom .icon-feedly-logo:before,
.sns-follow.sf-widget .icon-feedly-logo:before {
	color: #2bb24c; /*アイコンの色*/
}

/*RSSアイコン*/
.sns-follow.sf-bottom .icon-rss-logo:before,
.sns-follow.sf-widget .icon-rss-logo:before {
	color: #f26522; /*アイコンの色*/
}







/* =========================
   投稿本文（フロントエンド）
   ========================= */
.entry-content h2 {
  border-bottom: 3px solid #8bc34a !important; /* 明るいグリーンのボーダー */
  color: #000 !important; /* 黒文字 */
  padding-bottom: 5px !important;
}

/* =========================
   ブロックエディター（Gutenberg）
   ========================= */
.editor-styles-wrapper h2 {
  border-bottom: 3px solid #8bc34a !important;
  color: #000 !important;
  padding-bottom: 5px !important;
}

/* =========================
   クラシックエディター（TinyMCE iframe内）
   ========================= */
body#tinymce h2,
.mce-content-body h2 {
  border-bottom: 3px solid #8bc34a !important; /* 明るいグリーンのボーダー */
  color: #000 !important; /* 黒文字 */
  padding-bottom: 5px !important;
}

/* =========================
   H3見出し（吹き出し風）- 既存動作そのまま
   ========================= */
h3 {
  position: relative !important;
  padding: 1.5rem 2rem !important;
  color: #fff !important;
  border-radius: 10px !important;
  background: #000000 !important;
}

h3:after {
  position: absolute !important;
  bottom: -9px !important;
  left: 1em !important;
  width: 0 !important;
  height: 0 !important;
  content: '' !important;
  border-width: 10px 10px 0 10px !important;
  border-style: solid !important;
  border-color: #000000 transparent transparent transparent !important;
}

/* =========================
   H4見出し（ゴールド→グリーン）- 既存動作そのまま
   ========================= */
h4 {
  padding: 0.5rem 2rem;
  border-left: 4px solid #8bc34a !important; /* 明るいグリーン */
  color: #000 !important;
  line-height: 1.4;
}










/* ========== フロント（記事本文） ========== */
.entry-content table,
.entry-content .wp-block-table table {
  width: 100%;
  border-collapse: collapse !important;      /* 枠線を重ねて1本化 */
  border: 1px solid #ccc !important;         /* 外枠の細線 */
}

.entry-content th,
.entry-content td,
.entry-content .wp-block-table th,
.entry-content .wp-block-table td {
  border: 1px solid #ccc !important;         /* セルの枠線を強制 */
  padding: 10px 15px;
  text-align: left;
}

/* ヘッダーだけ塗りつぶし（枠線は残す） */
.entry-content table thead th,
.entry-content .wp-block-table thead th {
  background-color: #007b43 !important;
  color: #fff !important;
  border: 1px solid #ccc !important;         /* 緑の上でもグリッドを見せる */
}

/* 本文セルは通常背景（フォールバックで消えた色の復帰） */
.entry-content table tbody th,
.entry-content table tbody td,
.entry-content .wp-block-table tbody th,
.entry-content .wp-block-table tbody td {
  background-color: #fff !important;         /* 透明→白に明示 */
  color: inherit !important;
}

/* 交互行（任意） */
.entry-content .wp-block-table tbody tr:nth-child(even) td,
.entry-content tbody tr:nth-child(even) td {
  background-color: #f9f9f9 !important;
}

/* thead が作れない表だけ、個別に .no-thead を付けて使う */
.entry-content table.no-thead tr:first-child > * {
  background-color: #007b43 !important;
  color: #fff !important;
  border: 1px solid #ccc !important;
}

/* ========== ブロックエディター（Gutenberg） ========== */
.editor-styles-wrapper table,
.editor-styles-wrapper .wp-block-table table {
  border-collapse: collapse !important;
  border: 1px solid #ccc !important;
}
.editor-styles-wrapper th,
.editor-styles-wrapper td,
.editor-styles-wrapper .wp-block-table th,
.editor-styles-wrapper .wp-block-table td {
  border: 1px solid #ccc !important;
  padding: 10px 15px;
  text-align: left;
}
.editor-styles-wrapper thead th,
.editor-styles-wrapper .wp-block-table thead th {
  background-color: #007b43 !important;
  color: #fff !important;
  border: 1px solid #ccc !important;
}
.editor-styles-wrapper tbody th,
.editor-styles-wrapper tbody td {
  background-color: #fff !important;
}

/* ========== クラシックエディター（TinyMCE） ========== */
body#tinymce table,
.mce-content-body table {
  border-collapse: collapse !important;
  border: 1px solid #ccc !important;
}
body#tinymce th, body#tinymce td,
.mce-content-body th, .mce-content-body td {
  border: 1px solid #ccc !important;
  padding: 10px 15px;
  text-align: left;
}
body#tinymce thead th,
.mce-content-body thead th {
  background-color: #007b43 !important;
  color: #fff !important;
  border: 1px solid #ccc !important;
}
body#tinymce tbody th, body#tinymce tbody td,
.mce-content-body tbody th, .mce-content-body tbody td {
  background-color: #fff !important;
}

































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

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

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

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