/*
Theme Name: Twenty Twenty-Five Child
Version: 1.0
Template: twentytwentyfive
*/
.cat-div {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 12px;   /* ← 角を丸く */
  padding: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); /* うっすら影 */
  margin: 12px 0;
}

/* タイトル行（タイトル＋★を横並びに） */
.cat-div .entry-title {
  background-color: #2c6bb2; /* 濃い青 */
  color: #fff;
  font-size: 1.2em;
  font-weight: bold;
  margin: 0;
  padding: 10px 14px;
  letter-spacing: 0.3px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;

  display: flex;              /* 横並びに */
  justify-content: space-between; /* 左右に配置 */
  align-items: center;
}

/* ★アイコン */
.cat-div .entry-stars {
  color: #d4af37;   /* 金色 */
  font-size: 0.9em; /* 少し小さめ */
  margin-left: 8px;
  text-align: right;
}

/* 本文（説明部分） */
.cat-div p {
  font-size: 0.8em;
  line-height: 1.7;
  color: #333;
  margin: 0;
  padding: 12px 14px 16px;
}

/* iframe */
.cat-div iframe {
  width: 100%;
  border: none;
  display: block;
  margin: 10px 0;
  border-radius: 8px;
}

.toc_list {
    font-size: 0.7em;
}

.star-full,
.star-half,
.star-grey,
.star-half-hidden {
  display: inline-block;
  font-size: 1.5em;
  position: relative;
}

/* ===== 1個の星（全体表示） ===== */
.star-full {
  color: gold;
}

/* ===== 灰色の星 ===== */
.star-grey {
  color: #ccc;
}

/* ===== 半分灰色タイプ ===== */
.star-half {
  color: #ccc;           /* ベースは灰色 */
}
.star-half::before {
  content: '★';
  position: absolute;
  left: 0;
  width: 50%;            /* 左半分だけ塗る */
  overflow: hidden;
  color: gold;
}

/* ===== 半分非表示タイプ（右半分透明） ===== */
.star-half-hidden {
  color: gold;
}
.star-half-hidden::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;            /* 右半分を隠す */
  height: 100%;
  background: #f8f8f8;   /* 背景と同色（透明に見せる） */
}
