@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 .en {
  all: unset;
  font-style: italic;
  color: #666;
  font-size: 0.92em;
  line-height: 1.7;
  display: block;
  margin-bottom: 0.8em;
}
.stargleamers-counter {
    text-align: center;
    margin: 40px 0;
    font-size: 1.1em;
    line-height: 1.8;
    letter-spacing: 0.03em;
    font-family: "Yu Mincho", serif;
    opacity: 0.85;
}
.stargleamer-number {
    font-weight: bold;
    color: #f0c040;
    text-shadow: 0 0 5px rgba(255,215,0,0.5);
}
/* スマホ用の優しい調整 */
@media screen and (max-width: 599px) {
    .stargleamers-counter {
        font-size: 1em;
        line-height: 1.9;
        margin: 28px 16px;
        letter-spacing: 0.04em;
        text-align: center;
    }

    .stargleamers-counter br {
        line-height: 2.2;
    }

    .stargleamer-number {
        font-weight: bold;
        color: #f0c040;
        text-shadow: 0 0 4px rgba(255, 215, 0, 0.45);
    }
}
.blogmura-banner {
  display: block;
  text-align: center;
  margin: 24px 0;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.blogmura-banner:hover {
  opacity: 1;
}
.pv-banner {
  text-align: center;
  margin: 24px 0;
}

.pv-banner img {
  display: block;
  margin: 0 auto 6px;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.pv-banner .pv-text {
  font-size: 0.85em;
  color: #ccc;
  text-decoration: none;
}

.pv-banner .pv-text:hover {
  color: #fff;
}

.pv-ranking-banner {
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
}

/* カテゴリバナー（横並び用に inline-block に統一） */
.pv-banner {
  display: inline-block;
  vertical-align: middle;
  margin: 24px 8px 24px 0;
  text-align: center;
}

.pv-banner img {
  display: block;
  margin: 0 auto 6px;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.pv-banner .pv-text {
  font-size: 0.85em;
  color: #ccc;
  text-decoration: none;
}

.pv-banner .pv-text:hover {
  color: #fff;
}

/* PVバナー（横並び） */
.pv-ranking-banner {
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

/* INバナー（横並び） */
.in-ranking-banner {
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

/* INバナー控えめ */
.in-ranking-banner img {
  opacity: 0.75;
  transition: opacity 0.25s ease;
}

.in-ranking-banner img:hover {
  opacity: 1;
}

/* コメント折りたたみボタンの文言を差し替え＋あたたかい光をつける */
.comment-btn {
  font-size: 0 !important; /* 元の文字を消す */
  background: #fff7e6; /* あたたかい光の色 */
  border: 1px solid #f0e2c5;
  border-radius: 10px;
  padding: 12px 16px;
  box-shadow: 0 2px 6px rgba(230, 190, 140, 0.35);
  cursor: pointer;
}

.comment-btn::after {
  content: "🕯️ 灯り手の掲示板はこちらから";
  font-size: 16px;
  color: inherit;
  text-shadow: 0 0 4px rgba(255, 230, 180, 0.8);
}

.comment-btn:hover {
  background: #fff1d2;
  border-color: #f0e4c8;
  box-shadow: 0 3px 10px rgba(230, 180, 120, 0.55);
  transition: 0.3s ease;
}

/* コメント一覧の見出し（h2）をあたたかく飾る */
h2#comments {
  background: #fff7e6; /* あたたかい光 */
  border-left: 4px solid #f0d8b0;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 22px;
  font-weight: 600;
  color: #5a4632;
  box-shadow: 0 2px 6px rgba(230, 190, 140, 0.25);
  margin-bottom: 20px;
}

/* 明かりを灯すボタンを星の村仕様に */
#submit {
  background: #fff7e6; /* あたたかい光 */
  border: 1px solid #f0e2c5;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 16px;
  font-weight: 600;
  color: #5a4632;
  box-shadow: 0 2px 6px rgba(230, 190, 140, 0.35);
  cursor: pointer;
  transition: 0.3s ease;
}

/* ホバーで灯りが強まる */
#submit:hover {
  background: #fff1d2;
  border-color: #f0d8b0;
  box-shadow: 0 3px 10px rgba(230, 180, 120, 0.55);
}

/* テキストにほのかな光 */
#submit {
  text-shadow: 0 0 4px rgba(255, 230, 180, 0.8);
}

.hoshi-like {
  display: flex;
  align-items: center;
  margin-top: 20px;
}

.hoshi-like-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border: 1px solid #f0e2c5;
  background-color: #fff7e6;
  border-radius: 10px;
  cursor: pointer;
  min-width: 90px;
  transition: 0.3s ease;
}

.hoshi-like-btn:hover {
  background-color: #fff1d2;
  box-shadow: 0 3px 10px rgba(230, 180, 120, 0.55);
}

.hoshi-like-btn::after {
  content: "🔭✨ like";
  font-size: 15px;
  font-weight: 600;
  color: #5a4632;
  white-space: nowrap;
  text-shadow: 0 0 4px rgba(255, 230, 180, 0.8);
}

.hoshi-like-count {
  margin-left: 8px;
  font-weight: 600;
  color: #8a7a6a;
}

/* 星が飛ぶアニメーション */
/* 1番：左上へ軽い放物線 */
@keyframes hoshi-fly-1 {
  0%   { opacity: 1; transform: translate(0, 0) scale(0.6); }
  30%  { transform: translate(-15px, -14px) scale(0.85); }
  60%  { transform: translate(-28px, -10px) scale(1.05); }
  100% { opacity: 0; transform: translate(-38px, -6px) scale(1.18); }
}

/* 2番：真上へ距離半分・超高速 */
@keyframes hoshi-fly-2-straight {
  0%   { opacity: 1; transform: translate(0, 0) scale(0.6); }
  100% { opacity: 0; transform: translate(0px, -20px) scale(1.2); }
}


/* 3番：右上へ軽い放物線 */
@keyframes hoshi-fly-3 {
  0%   { opacity: 1; transform: translate(0, 0) scale(0.6); }
  40%  { transform: translate(20px, -18px) scale(0.9); }
  70%  { transform: translate(30px, -10px) scale(1.1); }
  100% { opacity: 0; transform: translate(38px, -4px) scale(1.2); }
}

/* 4番：右へ滑らかに落ちる放物線（中間点多め） */
@keyframes hoshi-fly-4 {
  0%   { opacity: 1; transform: translate(0, 0) scale(0.6); }
  20%  { transform: translate(18px, -10px) scale(0.75); }
  40%  { transform: translate(35px, -6px) scale(0.9); }
  60%  { transform: translate(48px, 2px) scale(1.05); }
  80%  { transform: translate(58px, 10px) scale(1.15); }
  100% { opacity: 0; transform: translate(68px, 18px) scale(1.25); }
}

/* 共通 */
.hoshi-fly-star {
  position: absolute;
  font-size: 14px;
  pointer-events: none;
  animation-duration: 0.6s;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
}

/* 2番だけ超高速 */
.hoshi-fly-star.star-2 {
  animation-duration: 0.08s;
}

/* 押した後のボタンを光らせる */
.hoshi-like-btn.lit {
  background: radial-gradient(circle at center, #ffe9a8 0%, #ffdd77 40%, #f7c95a 70%, #e0a93a 100%);
  box-shadow: 0 0 12px rgba(255, 220, 120, 0.9), 0 0 20px rgba(255, 200, 80, 0.6);
  transform: scale(1.05);
  transition: all 0.4s ease;
}

.hoshi-like-btn.lit:hover {
  cursor: default;
}
