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

/* ================================================
   一ノ瀬泰斗 AI自動化ラボ カスタムデザイン v2
   ================================================ */

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* 記事本文 タイポグラフィ */
.entry-content { font-size: 17.5px; line-height: 2.05; letter-spacing: 0.025em; }
.entry-content p { margin-bottom: 1.7em; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; transition: opacity 0.18s; }
.entry-content a:hover { opacity: 0.72; }

/* 見出し */
.entry-content h2 { font-size: 1.38em; font-weight: 800; letter-spacing: 0.02em; margin-top: 2.8em; margin-bottom: 0.9em; line-height: 1.45; }
.entry-content h3 { font-size: 1.13em; font-weight: 700; margin-top: 2.2em; margin-bottom: 0.65em; line-height: 1.5; }
.entry-content h4 { font-size: 1em; font-weight: 700; margin-top: 1.8em; margin-bottom: 0.5em; }

/* インラインコード */
.entry-content code:not(pre code) { border-radius: 5px; padding: 2px 7px; font-size: 0.87em; font-weight: 600; }

/* コードブロック */
.entry-content pre { border-radius: 10px; margin: 1.6em 0; overflow-x: auto; }

/* テーブル */
.entry-content table { width: 100%; margin: 1.8em 0; border-collapse: separate; border-spacing: 0; border-radius: 10px; overflow: hidden; font-size: 0.93em; }
.entry-content th, .entry-content td { padding: 11px 16px; }

/* 目次 */
.toc { border-radius: 12px; }
.toc-title { font-weight: 800; letter-spacing: 0.03em; }

/* 記事カード ホバー */
.entry-card { border-radius: 14px; overflow: hidden; transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.22s ease; }
.entry-card:hover { transform: translateY(-5px) scale(1.012); box-shadow: 0 16px 40px rgba(0,0,0,0.45); }

/* サムネ ズーム */
.entry-card-thumb { overflow: hidden; }
.entry-card-thumb-image { transition: transform 0.38s ease; will-change: transform; }
.entry-card:hover .entry-card-thumb-image { transform: scale(1.07); }

/* カードタイトル */
.entry-card-title { font-size: 15.5px; font-weight: 700; line-height: 1.55; letter-spacing: 0.01em; }

/* カテゴリラベル */
.cat-label { font-size: 10px; font-weight: 800; letter-spacing: 0.1em; border-radius: 5px; padding: 3px 9px; text-transform: uppercase; }

/* 著者ボックス */
.author-box { border-radius: 14px; padding: 24px; }
.author-name { font-weight: 800; letter-spacing: 0.02em; }

/* SNSシェアボタン */
.sns-share-buttons a { border-radius: 8px; transition: transform 0.18s, opacity 0.18s; }
.sns-share-buttons a:hover { transform: translateY(-2px); opacity: 0.85; }

/* ページネーション */
.pagination a, .pagination span { border-radius: 8px; transition: transform 0.15s; }
.pagination a:hover { transform: translateY(-2px); }

/* スクロールバー */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { border-radius: 3px; background: rgba(100,130,255,0.35); }
::-webkit-scrollbar-thumb:hover { background: rgba(100,130,255,0.6); }

/* モバイル */
@media screen and (max-width: 834px) {
  .entry-content { font-size: 16.5px; line-height: 1.95; }
  .entry-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,0.35); }
  .entry-card-title { font-size: 14.5px; }
}
@media screen and (max-width: 480px) {
  .entry-content { font-size: 16px; }
  .entry-content h2 { font-size: 1.25em; }
  .entry-content h3 { font-size: 1.08em; }
}

/* ================================================
   SNSフォローボタン カラーリング v1
   ================================================ */
.sns-follow-buttons .sns-button {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), opacity 0.18s, box-shadow 0.2s;
  font-size: 20px;
}
.sns-follow-buttons .sns-button:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  opacity: 1 !important;
}
.sns-follow-buttons .website-button { background: #4f46e5 !important; color: #fff !important; }
.sns-follow-buttons .x-corp-button  { background: #000 !important; color: #fff !important; }
.sns-follow-buttons .bluesky-button  { background: #0085ff !important; color: #fff !important; }
.sns-follow-buttons .note-button     { background: #41c9b4 !important; color: #fff !important; }

/* サイドバー ウィジェット */
.widget-sidebar { margin-bottom: 22px; }
.widget-sidebar-title {
  font-size: 13px !important; font-weight: 800 !important;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding-bottom: 8px; margin-bottom: 14px !important;
  border-bottom: 2px solid rgba(99,102,241,0.5);
}
.widget_categories ul { padding-left: 0; list-style: none; }
.widget_categories ul li { padding: 6px 0; border-bottom: 1px solid rgba(128,128,128,0.15); font-size: 14px; }
.widget_categories ul li a { text-decoration: none; transition: opacity 0.15s; }
.widget_categories ul li a:hover { opacity: 0.7; }

/* 人気記事サムネ */
.popular-entry-cards .entry-card { border-radius: 10px; overflow: hidden; }
.popular-entry-cards .entry-card-title { font-size: 13.5px; line-height: 1.5; }

/* シェアボタン（記事下） */
.sns-share-buttons { gap: 8px; }
.sns-share-buttons a {
  border-radius: 10px !important;
  font-weight: 700 !important; font-size: 13px !important;
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s !important;
}
.sns-share-buttons a:hover {
  transform: translateY(-3px) scale(1.04) !important;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25) !important;
}
