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

/*
==============================================
じゃぱかる通信 Cocoon子テーマ用 追加CSS
==============================================
コピペ先: WordPress管理画面 → 外観 → テーマファイルエディター
       → Cocoon Child の style.css の最下部に貼る
※既存の内容（ヘッダーコメント等）は絶対に消さない
==============================================
*/


/* ============================================
   01. グローバル設定（読みやすさのベース）
   ============================================ */

body {
  font-family: "Noto Sans JP", "游ゴシック", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  color: #222;
  background: #f5f5f5;
}

.entry-content {
  font-size: 16px;
  line-height: 1.9;
}

/* リンクの色 */
a {
  color: #4a90e2;
  transition: color 0.2s;
}
a:hover {
  color: #2a6db2;
}


/* ============================================
   02. トップページ：記事カード（横長型）
   ============================================ */

/* カード全体 */
.entry-card,
.related-entry-card {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  margin-bottom: 16px;
  padding: 14px;
  transition: box-shadow 0.25s, transform 0.25s;
}
.entry-card:hover,
.related-entry-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* タイトル */
.entry-card-title,
.related-entry-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #222;
  line-height: 1.5;
}

.entry-card:hover .entry-card-title {
  color: #4a90e2;
}

/* サムネイル */
.entry-card-thumb img,
.related-entry-card-thumb img {
  border-radius: 4px;
  transition: transform 0.3s;
}
.entry-card:hover .entry-card-thumb img {
  transform: scale(1.04);
}

/* 抜粋 */
.entry-card-snippet {
  color: #666;
  font-size: 14px;
  line-height: 1.7;
}

/* メタ情報（投稿日・カテゴリ・コメント数） */
.entry-card-meta {
  font-size: 12px;
  color: #999;
}


/* ============================================
   03. カテゴリラベル（バッジ）の色分け
   ============================================ */

.cat-label {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #fff !important;
}

/* カテゴリスラッグごとに色分け（記事に該当カテゴリを付けると自動で色がつく） */
.cat-reddit         { background: #ff4500 !important; }
.cat-r-anime        { background: #e91e63 !important; }
.cat-fourchan       { background: #4caf50 !important; }
.cat-japanese-food  { background: #ff9800 !important; }
.cat-games          { background: #9c27b0 !important; }
.cat-culture        { background: #795548 !important; }
.cat-other          { background: #607d8b !important; }


/* ============================================
   04. 記事ページ：タイトル・本文
   ============================================ */

/* 記事タイトル */
.entry-title {
  font-size: 26px;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.4;
  margin-bottom: 12px;
  border-bottom: 3px solid #4a90e2;
  padding-bottom: 12px;
}

/* メタ情報行 */
.date-tags {
  font-size: 13px;
  color: #888;
  margin-bottom: 24px;
}

/* H2見出し */
.entry-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  background: linear-gradient(transparent 70%, #ffe57f 70%);
  padding: 6px 12px;
  border-left: 5px solid #4a90e2;
  margin: 32px 0 16px;
}

/* H3見出し */
.entry-content h3 {
  font-size: 19px;
  font-weight: 700;
  color: #333;
  border-bottom: 2px dotted #ccc;
  padding-bottom: 6px;
  margin: 24px 0 12px;
}


/* ============================================
   05. レス表示ブロック（最重要・蠱惑の壺DX風）
   ============================================ */

/* レス全体のコンテナ */
.res-block {
  margin: 24px 0;
  padding: 16px 20px;
  background: #fafafa;
  border-left: 4px solid #4a90e2;
  border-radius: 4px;
  position: relative;
}

/* レス番号（>>1, >>2 など） */
.res-number {
  font-size: 13px;
  color: #888;
  font-weight: 700;
  margin-bottom: 10px;
  border-bottom: 1px dashed #ddd;
  padding-bottom: 6px;
}

/* 元（原文）— 控えめに薄く */
.res-original {
  font-family: "Georgia", "Times New Roman", serif;
  color: #666;
  font-size: 14px;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px dashed #ddd;
  border-radius: 3px;
  margin-bottom: 10px;
  line-height: 1.7;
}
.res-original::before {
  content: "【元】";
  color: #4a90e2;
  font-weight: bold;
  margin-right: 6px;
  font-family: "Noto Sans JP", sans-serif;
}

/* 訳（日本語訳）— 主役なので濃く・大きく */
.res-translation {
  font-size: 16px;
  color: #1a1a1a;
  line-height: 1.85;
  font-weight: 500;
  padding: 4px 0;
}
.res-translation::before {
  content: "【訳】";
  color: #e24a4a;
  font-weight: bold;
  margin-right: 6px;
}

/* 補足（意訳の意図） */
.res-supplement {
  margin-top: 8px;
  padding: 8px 12px;
  background: #f0f8ff;
  border-left: 2px solid #4a90e2;
  font-size: 13px;
  color: #555;
}
.res-supplement::before {
  content: "【補足】";
  color: #4a90e2;
  font-weight: bold;
  margin-right: 6px;
}

/* 注釈・スラング解説 */
.res-note {
  margin-top: 8px;
  padding: 8px 12px;
  background: #fff8e1;
  border-left: 2px solid #ffc107;
  font-size: 13px;
  color: #666;
}

/* アンカー（>>1への返信） */
a.anchor,
.entry-content a[href^="#res"] {
  color: #4a90e2;
  text-decoration: none;
  border-bottom: 1px dotted #4a90e2;
  padding: 0 2px;
}
a.anchor:hover {
  background: #e8f1fb;
  border-bottom-style: solid;
}


/* ============================================
   06. スレ情報・スレ要約のボックス
   ============================================ */

.thread-info {
  background: #f7f9fc;
  border: 1px solid #d8e2ee;
  border-radius: 6px;
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 14px;
}
.thread-info dt {
  font-weight: 700;
  color: #4a90e2;
  margin-top: 6px;
}
.thread-info dd {
  margin-left: 1em;
  color: #444;
}

.thread-summary {
  background: linear-gradient(to right, #fff7e6, #fffbf0);
  border-left: 4px solid #ffa726;
  padding: 14px 18px;
  margin: 24px 0;
  font-size: 15px;
  line-height: 1.85;
  border-radius: 0 4px 4px 0;
}
.thread-summary::before {
  content: "📝 スレ要約";
  display: block;
  font-weight: bold;
  color: #e65100;
  margin-bottom: 6px;
  font-size: 14px;
}


/* ============================================
   07. 管理人コメント枠
   ============================================ */

.manager-comment {
  background: #fff;
  border: 2px solid #4a90e2;
  border-radius: 8px;
  padding: 18px 22px;
  margin: 32px 0;
  position: relative;
  box-shadow: 0 2px 8px rgba(74, 144, 226, 0.08);
}
.manager-comment-title {
  display: inline-block;
  background: #4a90e2;
  color: #fff;
  padding: 4px 14px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 12px;
}
.manager-comment p {
  margin: 8px 0;
  color: #333;
  line-height: 1.85;
}


/* ============================================
   08. 黒塗り（伏せ字）表現
   ============================================ */

.censored {
  background: #222;
  color: #222;
  padding: 0 6px;
  border-radius: 2px;
  user-select: none;
  cursor: not-allowed;
}
.censored:hover {
  /* ホバーで薄く読めるようにしたい場合は以下のコメント外す
  color: #fff;
  */
}


/* ============================================
   09. サイドバー
   ============================================ */

.sidebar {
  font-size: 14px;
}

.sidebar h3,
.widget-sidebar h3 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: #4a90e2;
  padding: 8px 14px;
  border-radius: 4px 4px 0 0;
  margin-bottom: 0;
}

.widget-sidebar {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  margin-bottom: 24px;
  padding: 0 0 12px;
  overflow: hidden;
}

.widget-sidebar ul {
  padding: 8px 14px;
}
.widget-sidebar ul li {
  padding: 6px 0;
  border-bottom: 1px dotted #eee;
}
.widget-sidebar ul li:last-child {
  border-bottom: none;
}

/* 人気記事ランキング — 上位3つに勲章マーク */
.widget-sidebar.popular-entries .new-entry-card-snippet { display: none; }

.widget-sidebar .popular-entries ol {
  counter-reset: rank;
  list-style: none;
  padding-left: 0;
}
.widget-sidebar .popular-entries ol li {
  counter-increment: rank;
  position: relative;
  padding-left: 36px;
}
.widget-sidebar .popular-entries ol li::before {
  content: counter(rank);
  position: absolute;
  left: 8px;
  top: 8px;
  background: #999;
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  line-height: 22px;
}
.widget-sidebar .popular-entries ol li:nth-child(1)::before { background: #ffd700; color: #333; }
.widget-sidebar .popular-entries ol li:nth-child(2)::before { background: #c0c0c0; color: #333; }
.widget-sidebar .popular-entries ol li:nth-child(3)::before { background: #cd7f32; }


/* ============================================
   10. 「次の記事」フローティング・パンくず
   ============================================ */

/* パンくずリスト */
#breadcrumb {
  font-size: 12px;
  color: #999;
  background: transparent;
  padding: 8px 0 16px;
}
#breadcrumb a { color: #4a90e2; }


/* ============================================
   11. ヘッダー（センターロゴ風）
   ============================================ */

.header {
  background: #ffffff !important;
  border-bottom: 1px solid #e8e8e8;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.site-name-text {
  font-size: 24px;
  font-weight: 800;
  color: #222 !important;
  letter-spacing: 0.5px;
}

.tagline {
  font-size: 12px;
  color: #888 !important;
  margin-top: 4px;
}

/* グローバルナビ */
#navi .navi-in > .menu-header > .menu-item > a {
  color: #333;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 16px;
}
#navi .navi-in > .menu-header > .menu-item > a:hover {
  background: #f5f5f5;
  color: #4a90e2;
}


/* ============================================
   12. フッター
   ============================================ */

.footer {
  background: #2a2a2a;
  color: #ccc;
  padding: 30px 20px;
  font-size: 13px;
}
.footer a {
  color: #88c0ee;
}


/* ============================================
   13. スマホ対応（〜768px）
   ============================================ */

@media (max-width: 768px) {

  body { font-size: 15px; }

  .entry-title { font-size: 21px; }
  .entry-content h2 { font-size: 18px; }
  .entry-content h3 { font-size: 16px; }

  /* 記事カード：スマホでは縦積みに */
  .entry-card {
    padding: 12px;
  }
  .entry-card-title { font-size: 16px; }
  .entry-card-snippet { font-size: 13px; }

  /* レスブロック：余白を詰める */
  .res-block {
    padding: 12px 14px;
    margin: 18px 0;
  }
  .res-translation { font-size: 15px; }
  .res-original { font-size: 13px; }

  /* サイトロゴを小さく */
  .site-name-text { font-size: 20px; }
  .tagline { font-size: 11px; }
}


/* ============================================
   END
   ============================================ */