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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
/* アイキャッチのラベル非表示 */
.cat-label {display:none}
/* メインカラム・サイドバーの角を丸くする */
.main,
.sidebar{
  border-radius: 15px;
}
/*ヘッダー背景透明化*/
#header-container {
background-color: transparent;
}
/*ナビゲーションメニュー背景透明化*/
#header-container .navi {
background-color: transparent;
}
/* ヘッダーロゴ上下余白 */
#header .site-logo,
#header .logo,
#header .site-logo-image {
    margin-top: 8px;
    margin-bottom: 20px;
}
/* フッター背景を透明化 */
#footer,
.footer {
  background: transparent !important;
}
/* シェアボタンのキャプション（見出しテキスト）を非表示にする */
.button-caption, 
.sns-share-title {
    display: none !important;
}
/* Xシェアボタン */
.twitter-button,
.x-corp-button {
  border: 1px solid #00ABB3 !important;
}

/* =========================
   メインカラム・サイドバー下余白調整
========================= */
/* メイン */
.main,
.content,
.main-scroll {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* サイドバー */
.sidebar,
.sidebar-scroll,
.sidebar-scroll-in {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* 最後のウィジェット */
.sidebar .widget:last-child,
.sidebar .widget:last-of-type {
    margin-bottom: 0 !important;
}

/* フッター上余白 */
.footer {
    margin-top: 0 !important;
}
/* パンくず下余白 */
.breadcrumb {
    margin-bottom: 0 !important;
}

/* アイキャッチ下余白 */
.eye-catch-wrap {
    margin-bottom: 0 !important;
}

/* 記事ヘッダー上余白 */
.entry-header {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
/* ==================================
   見出し装飾
================================== */
/* サイドバー見出し共通 */
.sidebar .widget-sidebar-title,
.sidebar .widget-title,
.sidebar .wp-block-heading {
  background: none;
  border: none;
  box-shadow: none;

  padding: 0;
  margin: 0 0 5px;

  font-size: 18px;
  letter-spacing: 2px;

  position: relative;
  text-align: center;
}

/* 左右ライン */
.sidebar .widget-sidebar-title::before,
.sidebar .widget-title::before,
.sidebar .wp-block-heading::before,
.sidebar .widget-sidebar-title::after,
.sidebar .widget-title::after,
.sidebar .wp-block-heading::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 20%;
  height: 2px;
  background: #00ABB3;
  transform: translateY(-50%);
}

.sidebar .widget-sidebar-title::before,
.sidebar .widget-title::before,
.sidebar .wp-block-heading::before {
  left: 0;
}

.sidebar .widget-sidebar-title::after,
.sidebar .widget-title::after,
.sidebar .wp-block-heading::after {
  right: 0;
}

/* 記事タイトル */
.entry-title {
  --baloon-color: #00ABB3; /* ←ここだけ変更 */

  position: relative;
  padding: .5em 0;
  border-bottom: 3px solid var(--baloon-color);
  background: transparent;
  color: #3C4048; /* ←文字色は分ける */
  font-size: 1.5em;
	
  overflow: visible;
}
/* 三角（共通） */
.entry-title::before,
.entry-title::after {
  content: '';
  position: absolute;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
/* 外側（三角の枠） */
.entry-title::before {
  bottom: -12px;
  left: 1.5em;
  width: 22px;   /* ←修正ポイント */
  height: 11px;
  background: var(--baloon-color);
}
/* 内側（白抜き） */
.entry-title::after {
  bottom: -8px;
  left: calc(1.5em + 2px);
  width: 18px;
  height: 9px;
  background: #fff;
}
/* h1～h6の見出しリセット */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  background: none;
  border: none;
  padding: 0;
  margin: 1.5em 0 0.5em; /* 完全0だと詰まりすぎるので調整 */
  border-radius: 0;
  box-shadow: none;

  /* ここ重要：initialは使わない */
  font-weight: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}
/* 疑似要素は消さない（ここ重要） */
.entry-content h1::before,
.entry-content h1::after,
.entry-content h2::before,
.entry-content h2::after,
.entry-content h3::before,
.entry-content h3::after,
.entry-content h4::before,
.entry-content h4::after,
.entry-content h5::before,
.entry-content h5::after,
.entry-content h6::before,
.entry-content h6::after {
  content: none;
}

/* ==================================
   見出しコード
================================== */
/* H1 */
.entry-title {
    margin: 0 0 0.5em;
}
.entry-content h1 {
  position: relative;
  border-left: 8px solid #B2B2B2; /* 左線: 実線・太さ・色 */
  color: #3C4048; /* 文字色 */
  padding: .5em 1em; /* 余白 */
  font-weight: bold;
  font-size: 1.1em;
  line-height: 1.1;
}

.entry-content h1::before {
  position: absolute;
  content: "";
  left: -8px;
  bottom: 0;
  width: 8px;
  height: 50%;
  background-color: #00ABB3; /* アクセント線 */
}

/* H2以下 */
.entry-content h2 {
  margin: 1.8em 0 .8em;
  padding-left: .8em;

  border-left: 5px solid #00ABB3;
  color: currentColor;
  font-weight: bold;
}

.entry-content h3 {
  margin: 1.5em 0 .6em;
  padding-left: .6em;

  border-left: 3px solid #00ABB3;
  color: currentColor;
  font-weight: bold;
}

.entry-content h4 {
  margin: 1.3em 0 .5em;
  padding-left: .6em;

  border-left: 2px dotted #00ABB3;
  color: currentColor;
  font-weight: bold;
}

.entry-content h5 {
  margin: 1.2em 0 .4em;
  padding-bottom: .2em;

  border-bottom: 1px solid #00ABB3;
  color: currentColor;
  font-weight: bold;
}

.entry-content h6 {
  margin: 1em 0 .3em;

  color: currentColor;
  font-weight: 500;
  font-size: 0.95em;
  font-weight: bold;
}

/* ==================================
   リンク装飾
================================== */
/*** 外部リンク ***/
/* ヘッダーメニュー hover 全要素停止 */
#navi *,
#header * {
    background: transparent !important;
    box-shadow: none !important;
}
/* 記事内リンク */
.entry-content a {
  color: #FF6B6B;
  text-decoration: none;
  transition: all .3s ease;
}
.entry-content a:hover {
  color: #EAEAEA;
  text-decoration: none;
}
/* エントリーカード hover */
.entry-card-title,
.entry-card-snippet,
.entry-card-thumb img {
  transition: 0.3s ease;
}
/* hover時 */
.a-wrap:hover .entry-card-title,
.a-wrap:hover .entry-card-snippet,
.a-wrap:hover .entry-card-thumb img {
  opacity: 0.5;
}
/* エントリーカードのホバー背景を消す */
.entry-card-wrap:hover {
  background: transparent !important;
}
/* サイドバーリンク */
.sidebar * a {
  color: #FF6B6B !important;
}
.sidebar * a:hover {
  color: #EAEAEA !important;
}
/* サイドバーのリンクホバー背景を消す */
.sidebar a:hover,
.sidebar .widget a:hover,
.sidebar .widget_recent_entries a:hover,
.sidebar .widget_categories a:hover,
.sidebar .widget_archive a:hover {
  background: transparent !important;
}
/* ==================================
   その他装飾
================================== */
/* エントリーカード見出し */
.entry-card-title {
  color: #00ABB3;
}
.entry-card-thumb-image {
	box-shadow: 10px 10px 0 #EAEAEA;
	border: 1px solid #3C4048;
}
/* スニペット */
.entry-card-snippet {
  color: #B2B2B2;
}
.entry-card-snippet {
  color: #B2B2B2;
  font-size: 0.9em;
  line-height: 1.7;
}
/* エントリーカードタイトル上余白削除 */
.entry-card-content {
  padding-top: 0px !important;
}

.entry-card-title {
  margin-top: 0 !important;
}

.entry-card-thumb {
  margin-bottom: 0 !important;
}
/* スニペット行数を増やす */
.entry-card-snippet {
  display: -webkit-box;
  -webkit-box-orient: vertical;

  -webkit-line-clamp: 4; /* ←ここを増やす（例：5行） */
  overflow: hidden;
}
.entry-card-snippet {
  text-align: justify;
  text-justify: inter-ideograph; /* 日本語最適化 */
}
/* エントリーカード余白 */
.entry-card-content {
  padding: 14px 16px;
}

.entry-card-title {
  margin-bottom: 6px;
}

.entry-card-snippet {
  line-height: 1.6;
}
/*** 引用ブロック ***/
.entry-content blockquote{
	background: #fff;
    position:relative;
    border:2px solid #00ABB3;
    border-radius:10px;
    padding:30px;
}
.entry-content blockquote:before{
    position:absolute;
    font-family:'FontAwesome';
    content:'\f10d';
    font-size: 15px;
    color:#00ABB3;
    top:15px;
    left:15px;
}
.entry-content blockquote:after{
    position:absolute;
    font-family:'FontAwesome';
    content:'\f10e';
    font-size: 15px;
    color:#00ABB3;
    right:15px;
    bottom:20px;
}
.entry-content blockquote cite {
    display: block;
    font-size: 0.8rem;
    text-align: right;
    color: #00ABB3;
    padding-right:30px;
}
/*** 画像装飾 ***/
/* 本文画像だけ装飾 */
.entry-content .wp-block-image img {
    box-shadow: 10px 10px 0px #EAEAEA;
    border: 1px solid #3C4048;
}

/* 回り込み画像の下余白調整 */
.wp-block-image.alignleft,
.wp-block-image.alignright {
    margin-bottom: 0.5em;
}
/* 外部ブログカード画像は装飾なし */
.blogcard img {
    box-shadow: none !important;
    border: none !important;
}
/* 外部ブログカード hover背景を消す */
.blogcard-wrap:hover {
    background: transparent !important;
}
/* 通常本文だけ両端揃え */
.entry-content p {
  text-align: justify;
  text-justify: inter-ideograph;
}

/* 右揃えは維持 */
.entry-content .has-text-align-right {
  text-align: right !important;
}
/* 脚注文字サイズ */
.footnote,
.wp-block-footnotes {
  font-size: 0.8em;
  line-height: 1.6;
}
/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

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

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

/* ----------------------------------------
検索フォーム（下線デザイン）
---------------------------------------- */

.search-box{
  --search-color:#00ABB3; /* アイコン・下線カラー */
  max-width:350px; /* 最大幅 */
  margin-inline:auto; /* 中央配置 */
}

/* 入力欄 */
.search-box .search-edit{
  padding:0px 40px 10px 0;
  border:none;
  border-bottom:2px solid var(--search-color);
  border-radius:0;
}

/* 検索ボタン */
.search-box .search-submit{
  right:0;
  background:none;
  color:var(--search-color);
}

/* フォーカス時 */
.search-box .search-edit:focus{
  outline:none;
}