@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Template:   cocoon-master
Version:    1.1.0
*/

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

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

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

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

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

.content-top {
  background: #ececec; /* 全体の背景色 */
  margin: 0;
  padding: 20px 16px; /* 全体の余白 */
}
.pickup-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 0;
  padding: 0;
}
.pickup-item {
  list-style: none;
  width: 24%;
  position: relative;
  transition-duration: 0.4s;
  box-shadow: 0px 4px 15px -5px rgba(85,85,85,0.75);
}
.pickup-item img {
  width: 100%;
  vertical-align: bottom;
}
.pickup-item:hover {
  transform: translateY(-6px);
  box-shadow: 0px 8px 18px -5px rgba(85,85,85,0.75);
}
.pickup-title {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  text-align: center;
  transform: translateY(-50%) translateX(-50%);
  -webkit-transform: translateY(-50%) translateX(-50%);
  white-space: nowrap;
  background: rgba(255,255,255,0.9); /* タイトルの背景 */
  font-size: 15px; /* タイトルの文字サイズ */
  padding: 6px 0;
  border-radius: 40px;
  border: 3px solid #ccc; /* タイトルのボーダー */
  transition-duration: 0.4s;
  color: #000; /* タイトルの文字色 */
}
.pickup-item:hover a .pickup-title { /* タイトルのマウスホバー時の設定 */
  border: 3px solid #90dffd; /* タイトルのボーダー */
  background: #23a7d9; /* タイトルの背景色 */
  color: #fff; /* タイトルの文字色 */
}
@media screen and (max-width: 768px){ /* モバイル表示の設定 */
.content-top {
  padding: 20px 16px 4px 16px;
}
.pickup-item {
  width: 48.5%;
  margin-bottom: 16px;
}
}


/* H2の先頭にプログラミングのプロンプト（> ）を疑似要素で追加 */
/* PC・タブレット表示（768px以上）のみにH2タグのデザインを適用 */
@media screen and (min-width: 768px) {
  
  h2 {
    position: relative !important;
    background: #1e1e1e !important; /* ダークモード風の背景 */
    color: #00ff66 !important;     /* ソースコード風のグリーン */
    font-family: 'Courier New', Courier, monospace !important;
    padding: 0.75em 1em 0.75em 2em !important;
    border-left: 6px solid #00ff66 !important;
    border-radius: 4px !important;
    font-size: 24px !important;    /* PCでのフォントサイズ */
    font-weight: bold !important;
  }

  /* H2の先頭にプログラミングのプロンプト（> ）を追加 */
  h2::before {
    content: "> " !important;
    position: absolute !important;
    left: 0.8em !important;
    color: #00ff66 !important;
    font-weight: bold !important;
  }

}
h3 {
  font-family: sans-serif;
  font-size: 1.2rem;
  color: #f8fafc;
  background: #1e293b;
  padding: 8px 18px;
  border-radius: 4px;
  border: 1px solid #334155;
  display: inline-block;
  margin-left: 10px;
}

/* h4 09.旗 */
h4{
	position:relative;
	margin:0 20px 0 20px;
	padding:10px 15px;
	font:bold 22px/1.2 Arial, Helvetica, sans-serif;
	color:#fff;
	background:#c33;
}
h4:before{
	content:"<";
	position:absolute;
	top:middle;
	left:-10px;
	width:0;
	height:0;
	font-size:25px;
	line-height:1.0;
	color:#c96;
}
h4:after{
	content:" ";
	position:absolute;
	top:-2px;
	left:-10px;
	width:0;
	height:130%;
	border-radius:2px;
	-webkit-transform: rotate(-2deg);
	-moz-transform: rotate(-2deg);
	-o-transform: rotate(-2deg);
	transform: rotate(-2deg);
}

/* 目次のデザイン調整 */
.toc {
  background-color: #f9f9f9; /* 薄いグレーの背景 */
  border: 1px solid #e2e8f0; /* 線を少し優しく */
  border-radius: 8px;        /* 角を丸く */
  padding: 15px 20px;
}
.toc-title {
  font-weight: bold;
  color: #333;
}

/* 「開く」リンクをボタン風にする（クラス名は環境に合わせて調整してください） */
.entry-content a[href*="tool"] { /* 例: URLにtoolが含まれるリンクを対象にする場合 */
  display: inline-block;
  background-color: #23a7d9; /* タイトルのホバー色に合わせた爽やかな青 */
  color: #fff !important;
  padding: 10px 30px;
  text-decoration: none;
  border-radius: 25px;       /* 丸みを持たせる */
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(35, 167, 217, 0.2);
}

.entry-content a[href*="tool"]:hover {
  background-color: #1d8eb9; /* ホバー時に少し暗く */
  transform: translateY(-2px); /* 軽く浮き上がるアニメーション */
  box-shadow: 0 6px 12px rgba(35, 167, 217, 0.3);
}

@media screen and (max-width: 768px) {
  /* スマホ環境でのテーブルの最適化 */
  .entry-content table {
    width: 100% !important;
    display: table; /* 横スクロールさせず、画面幅に収める場合 */
    font-size: 14px; /* 文字を少し小さくして見やすく */
  }
  .entry-content table th, 
  .entry-content table td {
    padding: 8px 10px; /* 余白の調整 */
  }
}

/* サイドバーの見出しの文字色を修正 */
.widget-sidebar-title {
  color: #333333 !important;
}


/************************************
** ブログカード
************************************/

/* ブログカード全体：ダークモードのエディタ風 */
.blogcard {
    background-color: #1e1e1e !important; /* H2タグとお揃いの黒（ダークグレー）背景 */
    border: 1px solid #333333 !important;  /* 目立ちすぎない暗めの境界線 */
    border-left: 5px solid #ffffff !important; /* 左側にクールな白のアクセント線 */
    border-radius: 4px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3) !important; /* ダーク背景に馴染む深めの影 */
    transition: all 0.3s ease !important;
}

/* マウスを乗せたとき（ホバー時）の動き */
.blogcard:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5) !important;
    transform: translateY(-2px); /* フワッと少し上に浮き上がる */
    border-left-color: #00ff66 !important; /* ホバー時だけ左線がターミナルグリーンに発光！ */
    background-color: #252526 !important; /* 背景がわずかに明るくなって選択された感を演出 */
}

/* ブログカードのタイトル */
.blogcard-title {
    color: #ffffff !important; /* 文字色を白にしてクッキリ見せる */
    font-weight: bold !important;
    font-family: "Consolas", "Courier New", monospace !important; /* プログラミング用の等幅フォント */
}

/* スニペット（説明文）の文字色 */
.blogcard-snippet {
    color: #cccccc !important; /* 少しグレーがかった白（ソースコードのコメント風） */
    font-size: 0.85em !important;
}

/* 右下のサイト名や日付 */
.blogcard-footer {
    font-family: "Consolas", "Courier New", monospace !important;
    color: #888888 !important; /* 控えめなグレー */
}
