@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 #1E50A2;
  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: #eef3f9;
  border-left: 3px solid #a2b8d8;
  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: #f5f9ff;
  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 #1E50A2;
  border-bottom: 2px solid #d9e2f0;
  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, #f0f5fb, 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: #f0f5fb;
  border-left: 4px solid #1E50A2;
  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;
  }
}
