@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見出しブロック自体のデザイン --- */
.entry-content h2,
.editor-styles-wrapper .wp-block-heading {
  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;
  height: auto !important;       /* 高さを自動にして重なりを防止 */
}

/* --- H2の先頭にプログラミングのプロンプト（> ）を追加 --- */
/* ⚠️ 右側のセレクタの後ろにも「::before」をしっかり追加しました */
.entry-content h2::before,
.editor-styles-wrapper .wp-block-heading::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;
}


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

/* ==========================
   Mac風ブログカード（Cocoon）
   ========================== */

.blogcard {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #d8d8d8;
    padding-top: 42px;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    transition: all .25s ease;
}

.blogcard-wrap:hover,
.blogcard:hover{
    transform: translateY(-4px);
    box-shadow:0 18px 40px rgba(0,0,0,.15);
}

/* 上部バー */
.blogcard::before{
    content: "🌐 Open Link";
    color:#888;
    font-size:13px;
    line-height:42px;
    padding-left:100px;
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:42px;
    background:#efefef;
    border-bottom:1px solid #d7d7d7;
}

/* Macの3色ボタン */
.blogcard::after{
    content:"";
    position:absolute;
    left:18px;
    top:15px;
    width:11px;
    height:11px;
    border-radius:50%;
    background:#ff5f57;
    box-shadow:
        18px 0 #febc2e,
        36px 0 #28c840;
}

/* サムネイル */
.blogcard-thumbnail,
.blogcard img{
    border-radius:0;
}

/* タイトル */
.blogcard-title{
    font-size:20px;
    font-weight:700;
    margin-top:8px;
}

/* 説明 */
.blogcard-snippet{
    color:#666;
    line-height:1.8;
}

/* URL */
.blogcard-url{
    color:#999;
    font-size:13px;
}

/* リンク全体 */
.blogcard-wrap a,
.blogcard a{
    text-decoration:none;
    color:inherit;
}


/************************************
** 記事カード全体の調整
************************************/
/* 記事カード全体の調整 */
.entry-card-wrap {
  background-color: #ffffff;
  border-radius: 12px; /* 角を丸く */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* 柔らかい影 */
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none !important; /* 余計な境界線を消す */
}

/* マウスホバー時にふわっと浮かせる */
@media (hover: hover) {
  .entry-card-wrap:hover {
    transform: translateY(-5px); /* 5px上に浮かす */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); /* 影を強く */
  }
  
  /* 画像のズームエフェクト */
  .entry-card-thumb img {
    transition: transform 0.3s ease;
  }
  .entry-card-wrap:hover .entry-card-thumb img {
    transform: scale(1.05); /* 画像を少し拡大 */
  }
}

/************************************
** カテゴリーリンクボタン
************************************/
/* カテゴリーリンクボタンの微調整 */
.navi-in a {
  border-radius: 30px !important; /* 角を丸くしてカプセル型に */
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08); /* 軽い影 */
  transition: all 0.3s ease;
}

@media (hover: hover) {
  .navi-in a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    opacity: 0.9;
  }
}

/* サイドバーのタイトル（見出し）カスタム */
.sidebar h2 {
  font-size: 1.15rem !important;
  padding: 8px 0 8px 12px !important;
  border-left: 4px solid #f0932b !important; /* テーマに合わせた温かみのあるオレンジ */
  border-bottom: 1px solid #e0e0e0 !important;
  background: transparent !important; /* 背景色がある場合は透明に */
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 20px !important;
}

/* プロフィールエリアをカード風に囲む */
.author-box, 
.sidebar .widget_text:has(img[alt*="よろず"]) {
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

/* プロフィール画像（アイコン）を綺麗な丸にする */
.author-box .avatar,
.sidebar img[alt*="よろず"] {
  border-radius: 50%; /* 丸型に */
  border: 3px solid #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.sidebar img[alt*="よろず"]:hover {
  transform: rotate(5deg) scale(1.05); /* ホバー時に少し傾いて動く遊び心 */
}



/* ==========================================
   フッターエリア全体のおしゃれ化
   ========================================== */
/* フッター全体の背景色と文字色の調整 */
.footer {
  background-color: #2d3436 !important; /* 洗練されたダークグレー */
  color: #dfe6e9 !important;
  padding: 40px 0 20px 0 !important;
  border-top: 4px solid #f0932b !important; /* ヘッダーやテーマに合わせたオレンジのアクセント線 */
}

/* フッターメニュー（ナビゲーション）の調整 */
.footer-navi {
  display: flex !important;
  justify-content: center !important; /* 中央寄せ */
  flex-wrap: wrap !important;
  gap: 20px !important; /* メニュー間の余白 */
  margin-bottom: 25px !important;
}

/* フッター内メニューのリンク単体 */
.footer-navi a {
  color: #b2bec3 !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  transition: color 0.3s ease, transform 0.3s ease !important;
  display: inline-block !important;
}

/* メニューをホバーしたとき */
@media (hover: hover) {
  .footer-navi a:hover {
    color: #ffbe76 !important; /* 温かみのあるイエロー/オレンジに光る */
    transform: translateY(-2px) !important; /* 少し上に浮く */
  }
}

/* コピーライト（クレジット）エリアの調整 */
.source-org {
  color: #636e72 !important; /* 文字を少し薄くして上品に */
  font-size: 0.75rem !important;
  letter-spacing: 0.05em !important;
  margin-top: 15px !important;
  display: block !important;
  text-align: center !important;
}

/* 「先頭へ」戻るボタン（右下のボタン）の丸み化 */
.go-to-top-button {
  background-color: #f0932b !important; /* オレンジ色に固定 */
  color: #ffffff !important;
  border-radius: 50% !important; /* 完全な丸型に */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
  transition: all 0.3s ease !important;
}

@media (hover: hover) {
  .go-to-top-button:hover {
    background-color: #e07d1b !important;
    transform: translateY(-3px) !important;
  }
}

/* ==========================================
   サイトマップ専用デザイン（完全ピンポイント指定）
   ========================================== */

/* 1. サイトマップ内の全リストの「点（・）」を綺麗にリセット */
.page-template-default .entry-content ul,
.page-template-default .entry-content ul li ul {
  list-style-type: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

/* 2. 各記事リンク（1行ずつ）を薄いグレー背景のモダンなカードにする */
.page-template-default .entry-content ul li {
  position: relative !important;
  padding: 10px 15px !important;
  margin-bottom: 8px !important;
  background-color: #f8f9fa !important; /* 目に優しい薄いグレー */
  border-radius: 8px !important;
  border-left: 4px solid #f0932b !important; /* 左側にオレンジのアクセント線 */
  transition: all 0.25s ease !important;
  list-style: none !important;
}

/* 親階層（カテゴリー名など）の下にある、子リストの余白・枠線のリセット */
.page-template-default .entry-content ul li ul {
  margin-top: 10px !important;
  padding-left: 10px !important;
}
.page-template-default .entry-content ul li ul li {
  border-left: 3px solid #feb47b !important; /* 子リストは少し細いオレンジに */
}

/* リンクテキストの調整 */
.page-template-default .entry-content ul li a {
  color: #333333 !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  display: block !important;
}

/* 3. マウスホバーでふわっと右に動くおしゃれなエフェクト */
@media (hover: hover) {
  .page-template-default .entry-content ul li:hover {
    background-color: #fffbf5 !important; /* ほんのり暖色系の白 */
    transform: translateX(5px) !important; /* 5px右にスライド */
    box-shadow: 0 4px 12px rgba(240, 147, 43, 0.1) !important; /* 薄いオレンジの影 */
  }
  .page-template-default .entry-content ul li a:hover {
    color: #f0932b !important; /* 文字をオレンジに */
  }
}

/* 4. 目次エリアが巻き込まれて崩れるのを完全に防ぐ対策 */
.page-template-default .entry-content .toc,
.page-template-default .entry-content .toc ul,
.page-template-default .entry-content .toc li {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transform: none !important;
  padding: initial !important;
  margin-bottom: initial !important;
}
.page-template-default .entry-content .toc li {
  border-left: none !important;
}