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

/************************************
****　全体のバランス
************************************/
.entry-content {/*本文下の空白を削除*/
padding-bottom: 0;
margin-bottom: 0;
}
@media (max-width: 1023px){
article > .entry-content, aritcle > footer.article-footer {/*本文左右の空白*/
padding: 0 20px;
}
}
@media screen and (max-width: 880px){
.page-body {
font-size: 16px;
}
}
@media screen and (max-width: 480px){
.page-body {
font-size: 15px;
}
}
img{
box-shadow: 0px 2px 5px 0 rgba(0,0,0,.2);
}
a {
 -webkit-tap-highlight-color:rgba(0,0,0,0);
}
.body .article {/*本文SNSフォロー下の空白*/
margin-bottom: 0;
}

/* ============================================
   YouTube風コメント欄（Cocoon専用）
============================================ */

/* 全体の枠 → 消す */
.comment-list {
  border: none;
  padding: 0;
  border-radius: 0;
}

/* タイトルの背景 → 消す */
.comment-title {
  margin: 0 0 16px 0;
  font-size: 24px;
  background: none;
  color: #222;
  padding-left: 0;
  font-weight: normal;
}
.comment-title {
  display: none;
}
.comment-title:before {
  content: "";
}

/* コメントリスト */
.commets-list {
  padding: 20px 20px 0 20px;
}

/* コメント1件の枠線 → 消す */
.commets-list > li {
  border-top: none;
  margin: 30px 0;
  padding-top: 20px;
}
.commets-list > li:first-child {
  border: none;
  margin-top: 0;
  padding-top: 0;
}

/* 子コメントの左線 → 消す */
.commets-list .children {
  border-left: none;
  margin: 0;
}

/* アバターはそのまま */

.commets-list .avatar {
  width: 40px;
  height: 40px;
  float: left;
  border-radius: 50%;
  margin-right: 10px;
}

/* コメント本文の背景 → 消す */
.comment-content {
  background: none;
  padding: 0;
  margin: 10px 0 6px 0;
  border-radius: 0;
  position: relative;
}

/* 吹き出しの三角 → 消す */
.comment-content::before {
  content: none;
}

/* コメント本文テキスト */
.comment-content p {
  font-size: 14px;
  margin: 1em 0;
  line-height: 1.5em;
}

/* 返信ボタンの背景 → 消す（YouTube風にシンプル化） */
.comment-reply-link {
  color: #666;
  border: none;
  border-radius: 0;
  background: none;
  padding: 0;
  transition: 0.3s;
}
.comment-reply-link:hover {
  color: #000;
  background: none;
}

/* コメント本文全体 */
.commets-list .comment-body {
  margin-bottom: 0;
}

/* コメントメタ情報のリンク（名前・投稿日）は無効化 */
.comment-meta a {
  pointer-events: none;
  text-decoration: none;
  color: #666;
}

/* ただし “編集リンク” だけは有効化する */
.comment-edit-link,
.comment-edit-link a {
  pointer-events: auto !important;
  color: #0073aa; /* WordPress標準の青 */
  text-decoration: underline;
}


/* 投稿日の見た目を調整 */
.comment-metadata {
  font-size: 13px;
  color: #666;
}


/* ============================================================
   既存コメント欄ふわっと   ============================================================ */
.comment-list .comment {
  opacity: 0;
  transform: translateY(20px);
  transition: 0.6s ease;
}

.comment-list .comment.show {
  opacity: 1;
  transform: translateY(0);
}
/* ============================================================
   AIコメントデザイン   ============================================================ */
#yt-comments-wrapper {
  margin-top: 20px;
  font-family: "Noto Sans JP", sans-serif;
}

.yt-comment {
  display: flex;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.yt-comment.show {
  opacity: 1;
  transform: translateY(0);
}

.yt-icon {
  width: 40px;
  height: 40px;
  background: #ccc;
  border-radius: 50%;
  margin-right: 12px;
}

.yt-content {
  flex: 1;
}

.yt-author {
  font-weight: bold;
  margin-bottom: 4px;
}

.yt-text {
  margin-bottom: 6px;
  line-height: 1.6;
}

.yt-actions {
  font-size: 14px;
  color: #666;
}
