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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
/* =========================================================
   吹き出し 完全版（左右同一デザイン・兄は顔が右／全体右寄せ）
========================================================= */

.mark-highlight{
  font-weight: bold;
  text-decoration: underline;
  text-decoration-color: #ffff66;
  text-decoration-thickness: 0.8em; /* 太さ＝マーカー幅 */
  text-underline-offset: -0.2em;    /* 文字に重ねる */
  text-decoration-skip-ink: none;   /* 文字の下で途切れない */
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.mark-caution{
  font-weight: bold;
  text-decoration: underline;
  text-decoration-color: #ffcc66;
  text-decoration-thickness: 0.8em;
  text-underline-offset: -0.2em;
  text-decoration-skip-ink: none;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}


/* 吹き出し（共通） */
.kabumi-balloon,
.ani-balloon {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 1em;
  width: 100%;
}

/* 兄の吹き出しは右寄せ（顔が右に来る想定のHTML） */
.ani-balloon {
  justify-content: flex-end;
}

/* 顔アイコン（共通）：正円・比率維持・縮まない */
img.kabumi-icon,
img.ani-icon {
  aspect-ratio: 1 / 1;
  height: auto !important;
  object-fit: cover;
  border-radius: 50% !important;
  flex: 0 0 auto;
  flex-shrink: 0;
  display: block;
}

/* PC/タブレット基準サイズ */
img.kabumi-icon { width: 150px !important; min-width: 150px; margin-right: 10px !important; }
img.ani-icon    { width: 120px !important; min-width: 120px; margin-left: 10px !important; }

/* スマホは少し小さく */
@media (max-width: 600px) {
  img.kabumi-icon { width: 110px !important; min-width: 110px; }
  img.ani-icon    { width:  90px !important; min-width:  90px; }
  .kabumi-balloon, .ani-balloon { gap: 8px; }
}

/* 吹き出しのボックス見た目（左右で同一デザイン） */
.kabumi-balloon .is-style-balloon-left-box,
.ani-balloon .is-style-balloon-right-box {
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 10px;
  padding: 10px 12px;
  color: inherit;
  margin: 0; /* pの既定余白を打ち消し、アイコンとの間隔はgapに任せる */
  max-width: 100%;
  word-wrap: break-word;
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
}

/* 吹き出し内リスト：チェックマーク化（左右共通・色も共通） */
.kabumi-balloon ul,
.ani-balloon ul {
  list-style: none !important;
  margin: 6px 0 0;       /* 吹き出し本文の直後に来ても詰まり過ぎないように */
  padding-left: 1.5em;
}
.kabumi-balloon ul li,
.ani-balloon ul li {
  position: relative;
  margin-bottom: 6px;
  padding-left: 1.2em;
}
.kabumi-balloon ul li::before,
.ani-balloon ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #000;
  font-weight: bold;
}

/* ここから下は既存の他要素（必要ならそのまま） ------------------- */



/* PV表示を非表示 */
.admin-pv { display: none !important; }

/* グローバルメニュー太字 */
#navi ul li a { font-weight: bold; }

/* レベルボックス */
.article-level-box {
  max-width: 300px;
  margin: 20px auto;
  border: 2px solid #ddd;
  border-radius: 8px;
  background: #fff;
  padding: 12px 16px;
  text-align: left;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.article-level-box h2 {
  margin: 0 0 10px;
  font-size: 1.1em;
  color: #333;
  text-align: center;
}
.article-level-box table { width: 100%; border-collapse: collapse; }
.article-level-box td { padding: 6px 8px; }
.article-level-box tr.alt { background: #f9f9f9; }
.article-level-box .stars { color: crimson; font-size: 1.1em; letter-spacing: 2px; }
.article-level-box .score { color: #777; margin-left: 5px; }

/* 記事本文内のチェックリスト（サイト全体適用） */
.entry-content ul{
  list-style: none !important;
  margin: 0;
  padding-left: 1.5em;
  background: #fff;
}
.entry-content ul li{
  position: relative;
  margin-bottom: 6px;
  padding-left: 1.2em;
}
.entry-content ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #000;
  font-weight: bold;
}
.entry-content ul {
  margin: 0 0 30px 0; /* 下だけ30pxの余白を追加 */
}

.mark-highlight a, .mark-caution a {
  text-decoration-color: inherit;
  text-decoration-thickness: inherit;
  text-decoration-skip-ink: inherit;
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}
