@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){
  /*必要ならばここにコードを書く*/
}

/*20260313 h2見出しのデザインを変更*/
.entry-content h2,
.entry-content h2::before,
.entry-content h2::after {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: none !important;
}

.entry-content h2 {
  font-size: clamp(1.25rem, 4vw, 1.625rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.3;
  color: #333333 !important;
  margin: 2.5rem 0 0.75rem;
  padding: 0 0 0.5rem;
  display: block;
  -webkit-text-fill-color: #333333;
  border-bottom: 3px solid !important;
  border-image: linear-gradient(90deg, #0071e3, #34aadc) 1 !important;
}

/*20260315 h3見出しのデザインを変更*/
.entry-content h3,
.entry-content h3::before,
.entry-content h3::after {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: none !important;
}

.entry-content h3 {
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: #333333 !important;

  margin: 1.8rem 0 0.6rem;
  padding-left: 0.9rem;

  border-left: 4px solid #c7c7cc !important;
}

/*20260321 目次のデザインを変更*/
/* ===== 目次ボックス（中央配置＋上品な箱感） ===== */
body .entry-content .toc {
  max-width: 640px;
  margin: 32px auto;
  padding: 16px 18px;
  background: #f9fafb !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 16px !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04) !important;
}
/* ===== 内側の不要な線・装飾を全削除 ===== */
body .entry-content .toc *,
body .entry-content .toc-list,
body .entry-content .toc-list li,
body .entry-content .toc-content {
  border: none !important;
  box-shadow: none !important;
}
/* ===== タイトル（黒帯完全除去） ===== */
body .entry-content .toc-title {
  background: none !important;
  color: #6b7280 !important;
  padding: 0 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px !important;
  display: flex !important;
  justify-content: space-between;
  align-items: center;
}
/* Apple風ラベル */
body .entry-content .toc-title::before {
  content: "CONTENTS";
  font-size: 10px;
  color: #9ca3af;
  margin-right: 8px;
}
/* ===== アコーディオンアイコン ===== */
body .entry-content .toc-title::after {
  content: "[開く]";
  font-size: 13px;
  color: #9ca3af;
  transition: transform 0.2s ease;
}
/* 開閉状態 */
body .entry-content .toc.open .toc-title::after {
  content: "−";
}
/* ===== リスト ===== */
body .entry-content .toc-list {
  padding-left: 0 !important;
  margin: 0 !important;
}
/* ===== 各項目 ===== */
body .entry-content .toc-list li {
  list-style: none !important;
  margin: 0 !important;
}
/* ミニマル区切り線 */
body .entry-content .toc-list li + li {
  border-top: 1px solid #eef2f7 !important;
}
/* ===== リンク ===== */
body .entry-content .toc-list a {
  display: block !important;
  padding: 10px 8px !important;
  text-decoration: none !important;
  color: #111827 !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
  border-radius: 8px;
  transition: all 0.15s ease;
}
/* ホバー（静かな強調） */
body .entry-content .toc-list a:hover {
  background: #f3f4f6 !important;
  transform: translateX(2px);
}
/* クリック時 */
body .entry-content .toc-list a:active {
  background: #e5e7eb !important;
}
/* ===== スマホ最適化 ===== */
@media screen and (max-width: 768px) {
  body .entry-content .toc {
    max-width: 100%;
    margin: 24px 0;
    padding: 14px;
  }
  body .entry-content .toc-list a {
    font-size: 13px !important;
    padding: 10px 4px !important;
  }
}

/* 20260328 カテゴリー・タグラベルの完全上書き */
/* 1. 全体共通：フォントの質感を整える（システムフォント優先） */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
/* 2. サイドバーの見出し帯（カテゴリー・タグ等のタイトル） */
/* クリップアイコン等を消去し、ミニマルな下線スタイルへ */
.widget-title,
.widget_categories h4,
.widget_tag_cloud h4,
#sidebar .widget-title {
    background-color: transparent !important; /* 背景色を排除 */
    color: #1d1d1f !important;               /* Apple標準の黒 */
    border: none !important;                  /* 全ての枠線をリセット */
    border-bottom: 1px solid #d2d2d7 !important; /* 下線のみ残す */
    padding: 0 0 12px 0 !important;           /* 余白を贅沢に */
    margin-bottom: 24px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em !important;
    position: relative;
    text-indent: 0 !important;
}
/* Cocoon独自の擬似要素（クリップ・画鋲アイコン等）を完全に抹殺 */
.widget-title::before,
.widget-title::after,
.widget_categories h4::before,
.widget_tag_cloud h4::before,
#sidebar .widget-title::before,
#sidebar .widget-title::after {
    content: none !important;
    display: none !important;
}
/* 3. カテゴリーラベル（記事カードや投稿内の小さな帯） */
/* 背景を透過させ、磨りガラスのような質感を付与 */
body a.cat-label,
.entry-card .cat-label,
.post-category .cat-label,
.article .cat-label {
    background-color: rgba(245, 245, 247, 0.7) !important;
    color: #1d1d1f !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 6px !important;
    padding: 3px 10px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1) !important;
    display: inline-block;
    text-decoration: none !important;
}
/* 4. タグラベル（カプセル型ボタン） */
/* 枠線メインのデザインから、ホバーでAppleブルーへ */
body .tag-cloud-link,
body .tag-link,
.entry-tag-link {
    background-color: #ffffff !important;
    border: 1px solid #d2d2d7 !important;
    color: #86868b !important;
    border-radius: 20px !important; /* iPhoneのような丸み */
    padding: 4px 14px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    display: inline-block;
    margin: 0 4px 8px 0 !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
/* タグ横のアイコン（iタグ等）も非表示にしてノイズを減らす */
.tag-link .fa, .tag-link .fas, .tag-link .tag-icon {
    display: none !important;
}
/* ホバーアクション：浮遊感とカラーチェンジ */
body .tag-cloud-link:hover,
body .tag-link:hover,
.entry-tag-link:hover {
    background-color: #0071e3 !important; /* Apple Blue */
    color: #ffffff !important;
    border-color: #0071e3 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(0, 113, 227, 0.3) !important;
}
/* 5. サイドバー内のリスト項目（カテゴリー一覧など） */
.widget_categories ul li {
    list-style: none !important;
}
.widget_categories ul li a {
    color: #424245 !important;
    font-size: 14px !important;
    padding: 12px 0 !important;
    border-bottom: 1px solid #f5f5f7 !important;
    display: block;
    transition: color 0.2s ease;
}
.widget_categories ul li a:hover {
    color: #0071e3 !important;
}


/* 20260328 タグ、カテゴリごとの一覧ページのデザイン変更 */
/* 1. ページタイトルエリア（帯）を真っ白にリセット */
.archive-title {
    background-color: #ffffff !important; /* 派手な背景色を廃止 */
    border: none !important;              /* 枠線を排除 */
    color: #1d1d1f !important;            /* Apple標準の黒 */
    text-align: center !important;        /* 中央揃えで洗練させる */
    padding: 60px 20px !important;        /* 贅沢な余白（ホワイトスペース） */
    margin-bottom: 40px !important;
    font-size: 32px !important;           /* タイトルを大きく、かつ細めに */
    font-weight: 600 !important;
    letter-spacing: -0.02em !important;
    position: relative;
}
/* 「カテゴリー：」「タグ：」というプレフィックスを消して、単語だけにする場合 */
/* ※Cocoonの設定で消せますが、CSSでも補強 */
.archive-title span {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #86868b; /* サブテキスト的なグレー */
    margin-bottom: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
/* 2. カテゴリー/タグの説明文（もし入力していれば）のデザイン */
.archive-meta {
    max-width: 600px;
    margin: -20px auto 40px !important;
    color: #515154 !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    text-align: center;
    border: none !important;
    background: none !important;
}
/* 3. 記事一覧カードのグリッド調整（2カラム・3カラムの場合） */
.entry-card-wrap {
    border-radius: 20px !important;       /* iPhoneの角丸 */
    border: 1px solid #f5f5f7 !important; /* 極細の境界線 */
    background: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.entry-card-wrap:hover {
    transform: translateY(-8px) scale(1.01) !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08) !important;
    border-color: #d2d2d7 !important;
}
/* 4. サムネイル画像（アイキャッチ）の角丸とホバー */
.entry-card-thumb img {
    border-radius: 12px !important;
    margin: 12px !important;              /* カード内に少し余白を設ける */
    width: calc(100% - 24px) !important;
    height: auto !important;
    transition: transform 0.6s ease;
}
/* 5. ページ送り（ページネーション）もApple風に */
.pagination a, .pagination .current {
    border: none !important;
    background-color: #f5f5f7 !important;
    color: #1d1d1f !important;
    border-radius: 50% !important;        /* 円形ボタン */
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    margin: 0 5px !important;
}
.pagination .current {
    background-color: #0071e3 !important; /* Apple Blue */
    color: #ffffff !important;
}



/* 20260328 関連記事ボックスのデザイン変更 */
/* 関連記事エリア全体の余白とタイトル */
.related-entry-heading {
    border: none !important;
    background: transparent !important;
    color: #1d1d1f !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    letter-spacing: -0.02em !important;
    text-align: center;
    padding: 60px 0 30px !important;
}
/* 関連記事のカード本体 */
.related-entry-card-wrap {
    border: none !important;
    background-color: #ffffff !important;
    border-radius: 20px !important; /* iPhone風の深い角丸 */
    margin-bottom: 20px !important;
    padding: 0 !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
    overflow: hidden;
}
/* ホバー時の浮遊感（Apple Storeの製品カード風） */
.related-entry-card-wrap:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
    background-color: #ffffff !important;
}
/* サムネイル画像（アイキャッチ） */
.related-entry-card-thumb img {
    border-radius: 0 !important; /* 上部は直線、全体でカードの形に合わせる */
    transition: transform 0.8s cubic-bezier(0.2, 0, 0.2, 1);
}
.related-entry-card-wrap:hover .related-entry-card-thumb img {
    transform: scale(1.05); /* 内部で画像だけわずかにズーム */
}
/* 記事タイトル */
.related-entry-card-title {
    color: #1d1d1f !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    margin: 16px 16px 10px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 2行に収める */
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* 記事の抜粋（スニペット）を非表示または薄くする */
/* Apple風にするならタイトルのみの方がスッキリします */
.related-entry-card-snippet {
    display: none !important; /* 思い切って消すとリッチになります */
}
/* 日付などのメタ情報（必要であれば） */
.related-entry-card-date {
    font-size: 11px !important;
    color: #86868b !important;
    margin: 0 16px 16px !important;
    font-weight: 400;
}
/* カテゴリーラベルが重なる場合の調整 */
.related-entry-card .cat-label {
    top: 12px !important;
    left: 12px !important;
}



/* 20260328 ブログカードのデザインを変更 */
/* 1. 親要素の回り込み解除を無効化し、現代的なコンテナへ */
.widget-entry-cards,
.popular-entry-cards {
    display: block !important;
}
/* 2. カード本体：floatを殺してFlexboxを強制 */
.widget-entry-card.e-card {
    display: flex !important;
    float: none !important; /* float: leftを上書き */
    clear: none !important;
    width: 100% !important;
    padding: 12px !important;
    margin-bottom: 12px !important;
    border: 1px solid #d2d2d7 !important;
    border-radius: 14px !important;
    background-color: #fff !important;
    align-items: center !important; /* 垂直中央 */
    justify-content: flex-start !important; /* 左詰め */
    gap: 16px !important; /* 画像とテキストの距離を固定 */
    box-sizing: border-box !important;
}
/* 3. サムネイル：Cocoonの固定幅を解除し、Apple風サイズへ */
.widget-entry-card-thumb.card-thumb {
    float: none !important;
    margin: 0 !important;
    width: 100px !important; /* 画像幅をエンジニアライクに固定 */
    height: 60px !important;
    flex-shrink: 0 !important; /* 画像が潰れるのを防ぐ */
}
.widget-entry-card-thumb.card-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 8px !important;
}
/* 4. テキストエリア：タイトルの「中抜け」を解消 */
.widget-entry-card-content.card-content {
    float: none !important;
    width: auto !important; /* 100%から固定幅を引いた自動計算へ */
    margin: 0 !important;
    padding: 0 !important;
    flex-grow: 1 !important; /* 残りのスペースを埋める */
}
/* 5. 記事タイトル：右端まで逃げないよう制御 */
.widget-entry-card-title.card-title {
    color: #1d1d1f !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-align: left !important;
    margin: 0 !important;
}
/* 6. 不要なメタ情報（日付・ランキング）を消してノイズをカット */
.widget-entry-card-meta,
.popular-entry-card-date {
    display: none !important;
}
/* 7. ランキング数字がある場合：Apple風のドットに変更 */
.ranking-visible .no-1::before, 
.ranking-visible .no-2::before, 
.ranking-visible .no-3::before {
    top: -8px !important;
    left: -8px !important;
    background: #1d1d1f !important;
}