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

/* コメント欄のスタイル調整 */
.comment-list li {
    list-style-type: decimal;
    margin-left: 20px;
}

.comment-author {
    font-weight: bold;
}

.comment-metadata {
    display: inline;
    font-size: 0.9em;
    color: #666;
}

/* ===== コメント欄カスタマイズ ===== */

/* 名前の斜体を解除 */
.comment-author.vcard cite.fn {
    font-style: normal !important;
}

/* 「より:」を非表示 */
.comment-author.vcard .says {
    display: none !important;
}

/* 名前と日付を横並びにする */
.comment-author.vcard {
    display: inline !important;
    margin-right: 10px !important;
}

.comment-meta.commentmetadata {
    display: inline !important;
}

/* 日付のリンクを解除 */
.comment-meta.commentmetadata a {
    color: #666 !important;
    text-decoration: none !important;
    pointer-events: none !important;
    cursor: text !important;
}

/* 注意書きを非表示 */
.comment-notes {
    display: none !important;
}

/* 日付のリンクを解除・スタイル調整 */
.comment-meta.commentmetadata,
.comment-meta.commentmetadata a {
    color: #28a745 !important;
    text-decoration: none !important;
    pointer-events: none !important;
    cursor: text !important;
    font-size: 16px !important;
}
/************************************
** AITA まとめ記事用スタイル
************************************/

/* 判定タグバッジ */
.aita-v {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.82em;
  font-weight: bold;
  margin: 0 4px;
  letter-spacing: 0.02em;
  vertical-align: middle;
}
.aita-nta { background-color: #2e7d4f; color: #ffffff; }
.aita-yta { background-color: #c0392b; color: #ffffff; }
.aita-esh { background-color: #d68910; color: #ffffff; }
.aita-nah { background-color: #2980b9; color: #ffffff; }
.aita-info { background-color: #6c757d; color: #ffffff; }

/* 海外の反応セクションのコメント */
.entry-content h2#i-1 + p,
.entry-content h2:has(+ p strong) + p {
  /* base body comment style */
}
.entry-content > p:has(span.aita-v) {
  background: #fafafa;
  border-left: 4px solid #8B1A1A;
  padding: 12px 16px;
  margin: 12px 0;
  border-radius: 0 4px 4px 0;
  line-height: 1.7;
}
.entry-content > p:has(span.aita-v) > strong:first-child {
  display: block;
  margin-bottom: 6px;
  color: #2c2c2c;
  font-size: 0.95em;
}

/* 返信コメント（blockquote） */
.entry-content blockquote {
  background: #f5efef;
  border-left: 3px solid #c8a2a2;
  margin: 8px 0 8px 24px;
  padding: 10px 14px;
  border-radius: 0 4px 4px 0;
  font-size: 0.95em;
}
.entry-content blockquote p {
  margin: 0;
  line-height: 1.65;
}
.entry-content blockquote:has(span.aita-v) p > strong:first-child {
  display: block;
  margin-bottom: 4px;
  color: #6b4c4c;
  font-size: 0.9em;
}

/* Cocoon デフォルトの blockquote 装飾（引用符マーク）を無効化 */
.entry-content blockquote::before,
.entry-content blockquote::after,
.entry-content blockquote p::before,
.entry-content blockquote p::after {
  display: none !important;
  content: none !important;
}

/* 投稿者の相談セクション */
.entry-content h2 + blockquote {
  background: #fffbf0;
  border-left: 4px solid #d68910;
  margin: 12px 0;
  padding: 16px 20px;
  font-size: 0.97em;
}
.entry-content h2 + blockquote strong {
  display: inline;
  margin: 0;
  color: inherit;
}

/* 見出しの装飾を強調 */
.entry-content h2 {
  border-left: 6px solid #8B1A1A;
  border-bottom: 2px solid #f0d9d9;
  padding: 8px 0 8px 14px;
  margin-top: 1.8em;
  font-size: 1.4em;
}

/* リード文（最初のp） */
.entry-content > p:first-child {
  font-size: 1.05em;
  line-height: 1.8;
  color: #3a3a3a;
  background: linear-gradient(to right, #fdf6f6, transparent);
  padding: 12px 16px;
  border-radius: 4px;
}

/* 元スレッドリンク */
.entry-content > p:last-child {
  font-size: 0.9em;
  color: #777;
  border-top: 1px solid #eee;
  padding-top: 12px;
  margin-top: 24px;
}


/* まとめセクション（カード化） */
.entry-content .aita-summary {
  background: #fdf6f6;
  border-left: 4px solid #8B1A1A;
  padding: 18px 22px;
  margin: 16px 0 24px;
  border-radius: 0 6px 6px 0;
  line-height: 1.8;
  box-shadow: 0 1px 3px rgba(139, 26, 26, 0.06);
}
.entry-content .aita-summary p {
  margin: 0 0 14px 0;
}
.entry-content .aita-summary p:last-child {
  margin-bottom: 0;
}

/* スマホ調整 */
@media screen and (max-width: 834px) {
  .aita-v {
    font-size: 0.78em;
    padding: 1px 8px;
  }
  .entry-content > p:has(strong:first-child) {
    padding: 10px 12px;
  }
  .entry-content blockquote {
    margin-left: 12px;
    padding: 8px 10px;
  }
}

/* ===== サイトの見た目（2026-11-01 追加・AdSense再申請の準備） ===== */
body { background: #f3f1ec; }
.header-container { border-bottom: 4px solid #FF8C42; }
.navi-in a { font-weight: bold; }
.main, .sidebar { border-radius: 4px; box-shadow: none; }
.sidebar h2, .sidebar h3 { background: #262930; color: #fff; }

/* トップの紹介ボックスと「防ぎ方」の入口 */
.yk-intro { background: #262930; color: #fff; border-radius: 6px; padding: 18px 22px 20px; margin: 0 0 22px; }
.yk-intro p { margin: 0 0 14px; line-height: 1.85; font-size: 15px; color: #fff; }
.yk-intro .yk-label { color: #FF8C42; font-weight: bold; font-size: 13px; margin: 0 0 8px; letter-spacing: .05em; }
.yk-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.yk-tiles li { margin: 0; padding: 0; list-style: none; }
.yk-tiles a { display: block; background: #fff; color: #262930; border-left: 5px solid #FF8C42; border-radius: 3px; padding: 9px 10px; font-size: 14px; font-weight: bold; text-decoration: none; line-height: 1.45; }
.yk-tiles a:hover { background: #fff1e6; }
.yk-more { margin: 12px 0 0 !important; font-size: 13px !important; }
.yk-more a { color: #fff; }

/* 記事の「何をやらかした？」：見出しの直後の blockquote だけ。コメントの返信には効かない */
.entry-content h2 + blockquote {
  position: relative; background: #fffaf4; border: 2px solid #262930; border-radius: 4px;
  padding: 30px 20px 6px; margin: 0 0 28px; font-size: 1.03em; line-height: 1.85; color: #222;
}
.entry-content h2 + blockquote::before {
  content: "やらかし報告"; display: block; position: absolute; top: 0; left: 0;
  background: #262930; color: #fff; font-size: 12px; font-weight: bold; padding: 2px 12px;
  border: none; width: auto; height: auto; line-height: 1.7;
}
.entry-content h2 + blockquote::after { content: none; display: none; }
.entry-content h2 + blockquote p { margin: 0 0 12px; }

/* 特集ページ */
.yk-checked { font-size: 13px; color: #555; }
.yk-do { background: #fff7ef; border-left: 6px solid #FF8C42; padding: 12px 16px 2px; margin: 0 0 20px; }
.yk-do p { margin-bottom: 10px; }
@media screen and (max-width: 834px) {
  .yk-intro { padding: 14px 14px 16px; }
  .entry-content h2 + blockquote { padding: 30px 14px 4px; font-size: 1em; }
}
.logo-header img, .site-logo-image { max-height: 44px; width: auto; }
.header-container .logo { padding-top: 8px; padding-bottom: 8px; }
.sidebar .sns-sidebar-section h2 { background: #262930 !important; }
.sidebar .sns-icon { display: none; }
