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

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

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

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

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

/* カスタムCSS */

/* スクロールをスムースに */

/* ヘッダー文字 */
/* .logo{
	text-align:center;
} */



.logo.logo-header.logo-text {
	padding: 0px;
}

.logo-header a span{
	font-size:16px;
    font-weight: bold;
}


/* カバー写真を正方形にする */
/* .is-square { */
/*   aspect-ratio: 1 / 1 !important; /* 横と縦を 1:1 に固定 */
/*   width: 100% !important;         /* 幅を親要素いっぱいに広げる */
/*   height: auto !important;        /* 高さを比率に合わせて自動計算 */
/*   min-height: 0 !important;       /* Cocoon等のデフォルト最小高さを解除 */
/* } */



/* 中の画像や動画が歪まないように調整 */
.is-square img,
.is-square video {
  object-fit: cover !important;   /* 比率を保って枠を埋める */
  width: 100% !important;
  height: 100% !important;
}


/*グローバルメニュー 文字の大きさを変更*/
#navi .navi-in > .menu-header .item-label{
	font-size: 13px;
	font-weight: bold;
}

/*グローバルメニューの高さを変更*/
#navi .navi-in > ul li{
	height: 40px;
	line-height: 40px;
}

/* グローバルメニューのサブ項目の幅を調整 ← それほど効果は感じられないが念のため */

.navi .sub-menu li a {
  padding: 0.5em 1.2em 0.5em 2.3em;
}
/* グローバルメニューのサブ項目に余白を付ける */
.navi .sub-menu li a {
    padding: 1.2em 2em;
}




/* モバイルメニュー関連 */

/* 背景色 */
.navi-menu-content {
	background-color: rgb(255 255 255 /90%);
}

/*×アイコンを移動*/
.menu-close-button {
 padding-top: 15px;
 padding-left: 25px;
 padding-bottom: 10px;
text-align: left;
font-size: 0.9em;
	color: #000000;
}



/* メニュー（ドロワー）の表示設定 */
.menu-drawer a {
font-size: 1em;
font-weight: 700;
line-height: 1.6em;
padding-top: 4px;
padding-bottom: 4px;
border-bottom: solid 1px #c0c0c0;
}
.menu-drawer a:hover {
background-color:#c0c0c0;　/*マウスオーバー時の背景色*/
}
.sub-menu li {                                      
margin-left:-14px;
font-size: 0.9em;
font-weight: 700;
color: #000000;
}

/* サブメニュー（下層）は太字にしない */
.menu-drawer .sub-menu a {
  font-weight: 400;
}

/* スライドメニュー内のサブメニュー項目に「-」を付与 */
.menu-drawer .sub-menu li a::before {
  content: "- ";    /* 表示したい記号 */
  margin-right: 5px; /* 記号と文字の間の隙間 */
}



/* カスタムテキスト */
.cocoon-custom-text-1{
	color: #000000;
}

/* H1～H6 見出しのカスタマイズ */

.article h1 {
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
  margin: 1.2em 0 0.8em;
  padding: 0.4em 0 0.4em 0.5em;
  color: #000;
  border-left: 7px solid #0599D9;
}
@media (max-width: 768px) {
  .article h1 {
    font-size: 20px;
  }
}

.article h2 {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
  margin: 1.6em 0 0.8em;
  padding: 0.45em 0 0.45em 0.5em;
  color: #000;
  border-left: 4px solid #0599D9; /* H1より細く */
}

.article h3 {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 600;
  margin: 1.4em 0 0.6em;
  padding: 0.35em 0 0.35em 0.5em;
  color: #000;
  background-color: #F5F6F7;
  border-left: 3px solid #000; /* H2よりさらに細く */
}

.article h4{
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  margin: 1.1em 0 0.5em;
  padding: 0 0 0 0.6em;
  color: #000;
  background: none;
  border: none;
  border-left: 2px solid #9aa0a6; /* 控えめなグレー */
  border-bottom: 1px solid #9aa0a6; /* 明確だが主張しすぎない下線 */
}

.article h5{
  font-size: 16px;
  line-height: 1.6;
  font-weight: 600;
  margin: 1.0em 0 0.4em;
  padding-bottom: 0.2em;
  color: #222;
  background: none;
  border: none;
  border-bottom: 1px solid #9aa0a6; /* 明確だが主張しすぎない下線 */
}

.article h6{
  font-size: 16px;
  line-height: 1.6;
  font-weight: 600;
  margin: 0.8em 0 0.3em;
  padding-bottom: 0.15em;
  color: #444;
  background: none;
  border: none;
  border-bottom: 1px dotted #b6bcc2; /* 補足感のある下線 */
}



/* モバイルで上下のカラムの余白を狭くする */
@media screen and (max-width: 599px){
#post-9794 .column-wrap.column-2 {
    margin-top: 0;
    margin-bottom: 0;
}
}

/* main要素にあたっているpaddingを無効化する */

.main {
    padding-top: 0px;
	padding-bottom: 0px;
}

/* 目次の幅を100%に設定 */
.toc {
 width: 100%;
 background-color: #F5F6F7;
}

/* 目次のタイトル編集 */
.toc-title{
	font-weight: 700;
	text-align:left;
}


/* ブログカード */

/* マウスオーバーで透過 */
.blogcard-wrap:hover{
	background: transparent;
	opacity: 0.5;
}

/* ファビコンとURLは非表示 */
.internal-blogcard-footer{
	display: none
}

/* 内部ブログカードの抜粋文は非表示 */
.internal-blogcard-snippet{
	display: none;
}

/* ブログカードの抜粋文を全て非表示 */
.blogcard-snippet{
    display: none;
}






/* カバー画像関連 */

/* カラムを等高にする */
.wp-block-columns {
  align-items: stretch;
}

/* 各カラムを縦Flexにして、子要素を伸ばせるようにする */
.wp-block-column {
  display: flex;
  flex-direction: column;
}

/* カラム直下のカバーを残り高さにフィットさせる */
.wp-block-column > .wp-block-cover {
  flex: 1;
  min-height: 100%;
  height: auto;
}

/* カバー内の余白は0にしない（縮み防止）。必要なら数値で調整 */
.wp-block-cover__inner-container {
  padding-top: 1.2em;
  padding-bottom: 1.2em;
}

/* カラム内の通常画像を常に中央寄せ（Coverは除外） */

/* 1) alignleft/alignright等のfloatを無効化（中央寄せの前提） */
.wp-block-column .wp-block-image.alignleft,
.wp-block-column .wp-block-image.alignright,
.wp-block-column figure.wp-block-image.alignleft,
.wp-block-column figure.wp-block-image.alignright {
  float: none !important;
}

/* 2) 画像ブロック（figure）を中央に */
.wp-block-column figure.wp-block-image {
  display: block;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center;
}

/* 3) 画像そのものも中央に（念のため） */
.wp-block-column figure.wp-block-image img {
  display: block;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* 4) カバー内は対象外（除外を明示） */
.wp-block-cover figure.wp-block-image,
.wp-block-cover figure.wp-block-image img {
  margin-left: initial !important;
  margin-right: initial !important;
  text-align: initial;
}

/* カバー上のテキストを白＋黒ぼかし */
.wp-block-cover .wp-block-cover__inner-container,
.wp-block-cover .wp-block-cover__inner-container * {
  color: #ffffff;
  text-shadow:
    0 1px 2px rgba(0,0,0,0.8),
    0 2px 6px rgba(0,0,0,0.6);
}

/* 吹き出し幅を揃える */
.speech-balloon{
  width: 100%;
}

/* カスタムテキスト */
.cocoon-custom-text-1{
	color: #000000;
}
.cocoon-custom-text-2{
	color: #0599D9;
}

/* タイムラインを含む block-box だけ：枠を消す（吹き出しに影響させない） */
.block-box:has(.timeline),
.block-box:has(.timeline) > * {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background-image: none !important;
}

/* 縦方向に並んだ時にブロックの上下が逆になる2カラムボックス */
@media screen and (max-width: 768px) {
  .inverted {
    flex-direction:column-reverse!important;
  }
}

/* モバイルでの、カバー画像の高さ調整 */
@media screen and (max-width: 768px) {
	.fix-height { height: 240px !important; min-height: 240px !important; } 
}

/* タグ装飾（NTECカラー） */
.text-label {
display: inline-block; 
vertical-align: middle;
background-color: #0599D9;
color: #FFFFFF;
font-size: 14px;
font-weight: bold;
border-radius: 3px;
padding: 3px 6px;
margin: 0;
line-height: 1; 
}

/* タグ装飾（グレー） */
.text-label-gray {
display: inline-block; 
vertical-align: middle;
background-color: #666666;
color: #FFFFFF;
font-size: 14px;
font-weight: bold;
border-radius: 3px;
padding: 3px 6px;
margin: 0;
line-height: 1; 
}


/* ボタンの高さを調整する */ 
.custom-btn-height a {
    padding-top: 3px !important;
    padding-bottom: 3px !important;
}
