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

/* ================================
   可読性調整：思考の森Project
   ================================ */

.entry-content {
  color: #e6e3dc;
  line-height: 1.9;
}

.entry-content a {
  color: #93c9f5;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content a:hover {
  color: #c2e0fb;
}

.related-entry-card-snippet,
.widget-entry-card-snippet {
  color: #c9c6bf;
}

.sidebar,
.sidebar a {
  color: #dcd9d2;
}

.cmg_backlink,
.cmtt-backlink,
.glossary-backlink {
  display: none !important;
}

/* ================================
   森の入口：投稿数・活動計
   ================================ */

.forest-doors .fd-door {
  position: relative;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  min-height: 168px;
}

.hp-forest-status {
  position: static;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  box-sizing: border-box;
  margin-top: auto;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(171, 211, 192, 0.16);
  color: #b9cbc2;
  font-size: 0.72rem;
  line-height: 1.2;
  text-decoration: none;
}

.hp-forest-total {
  white-space: nowrap;
  color: #c9d8d0;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.hp-forest-meter {
  display: flex;
  align-items: flex-end;
  gap: 0.58rem;
}

.hp-forest-period {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.23rem;
  min-width: 2.25rem;
}

.hp-forest-dot {
  display: block;
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: #74d8ad;
}

.hp-forest-dot.is-active {
  --hp-strength: 0.5;
  --hp-duration: 3.2s;
  --hp-rest-opacity: 0.43;
  --hp-peak-opacity: 0.79;
  --hp-peak-scale: 1.12;
  --hp-rest-glow: 3.5px;
  --hp-inner-glow: 9px;
  --hp-outer-glow: 15px;
  --hp-inner-alpha: 0.55;
  --hp-outer-alpha: 0.12;
  animation: hp-forest-breathe var(--hp-duration) ease-in-out infinite;
}

.hp-forest-dot.is-quiet {
  background: #728078;
  opacity: 0.36;
  box-shadow: none;
}

.hp-forest-period-label {
  color: #91a79c;
  font-size: 0.62rem;
  white-space: nowrap;
}

@keyframes hp-forest-breathe {
  0%,
  100% {
    opacity: var(--hp-rest-opacity);
    transform: scale(0.88);
    box-shadow: 0 0 var(--hp-rest-glow) rgba(116, 216, 173, 0.35);
  }

  50% {
    opacity: var(--hp-peak-opacity);
    transform: scale(var(--hp-peak-scale));
    box-shadow:
      0 0 var(--hp-inner-glow)
        rgba(116, 216, 173, var(--hp-inner-alpha)),
      0 0 var(--hp-outer-glow)
        rgba(86, 177, 139, var(--hp-outer-alpha));
  }
}

@media (max-width: 480px) {
  .forest-doors .fd-door {
    min-height: 164px;
  }

  .hp-forest-status {
    gap: 0.5rem;
  }

  .hp-forest-meter {
    gap: 0.38rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hp-forest-dot.is-active {
    animation: none;
    opacity: var(--hp-peak-opacity);
    transform: none;
    box-shadow: 0 0 var(--hp-inner-glow) rgba(116, 216, 173, 0.6);
  }
}

/* ================================
   記事末尾：匿名リアクション「灯りを置く」
   ================================ */

.hp-forest-light {
  --hp-light-color: #74d8ad;
  box-sizing: border-box;
  margin: 3.2rem 0 1.8rem;
  padding: 1.25rem 1.35rem 1.1rem;
  border: 1px solid rgba(145, 186, 164, 0.24);
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 0%, rgba(73, 118, 96, 0.14), transparent 62%),
    rgba(24, 34, 29, 0.52);
  color: #d9e4de;
  text-align: center;
}

.hp-forest-light-title {
  margin: 0 0 0.8rem;
  color: #c9d8d0;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
}

.hp-forest-light-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.62rem;
  min-height: 44px;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(116, 216, 173, 0.38);
  border-radius: 999px;
  background: rgba(20, 31, 26, 0.78);
  color: #dce8e1;
  font: inherit;
  font-size: 0.88rem;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.hp-forest-light-button:hover {
  border-color: rgba(116, 216, 173, 0.72);
  background: rgba(31, 52, 42, 0.9);
  color: #f0f7f3;
}

.hp-forest-light-button:focus-visible {
  outline: 2px solid #9de8c6;
  outline-offset: 4px;
}

.hp-forest-light-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.hp-forest-light-orb {
  display: block;
  width: 0.68rem;
  height: 0.68rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #748079;
  box-shadow: 0 0 3px rgba(116, 128, 121, 0.32);
  transition:
    background-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.hp-forest-light.is-lit .hp-forest-light-button {
  border-color: rgba(116, 216, 173, 0.72);
  background: rgba(31, 57, 45, 0.88);
}

.hp-forest-light.is-lit .hp-forest-light-orb {
  background: var(--hp-light-color);
  animation: hp-placed-light-breathe 3.4s ease-in-out infinite;
}

.hp-forest-light-count-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding-left: 0.62rem;
  border-left: 1px solid rgba(190, 218, 203, 0.22);
  color: #bcd0c5;
  font-variant-numeric: tabular-nums;
}

.hp-forest-light-hint,
.hp-forest-light-message {
  margin: 0.7rem 0 0;
  color: #98aaa0;
  font-size: 0.72rem;
  line-height: 1.6;
}

.hp-forest-light-message {
  min-height: 1.15em;
  margin-top: 0.25rem;
  color: #9ed5b9;
}

.hp-forest-light-message.is-error {
  color: #e1aa9c;
}

.hp-forest-light.is-busy .hp-forest-light-orb {
  animation: hp-light-waiting 900ms ease-in-out infinite alternate;
}

@keyframes hp-placed-light-breathe {
  0%,
  100% {
    opacity: 0.58;
    transform: scale(0.92);
    box-shadow: 0 0 5px rgba(116, 216, 173, 0.38);
  }

  50% {
    opacity: 1;
    transform: scale(1.15);
    box-shadow:
      0 0 10px rgba(116, 216, 173, 0.78),
      0 0 18px rgba(86, 177, 139, 0.28);
  }
}

@keyframes hp-light-waiting {
  from { opacity: 0.36; }
  to { opacity: 0.82; }
}

@media (max-width: 480px) {
  .hp-forest-light {
    margin-top: 2.5rem;
    padding: 1.1rem 0.85rem 1rem;
  }

  .hp-forest-light-button {
    width: 100%;
    max-width: 19rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hp-forest-light-button,
  .hp-forest-light-orb {
    transition: none;
  }

  .hp-forest-light.is-lit .hp-forest-light-orb,
  .hp-forest-light.is-busy .hp-forest-light-orb {
    animation: none;
  }

  .hp-forest-light.is-lit .hp-forest-light-orb {
    opacity: 1;
    box-shadow: 0 0 9px rgba(116, 216, 173, 0.68);
  }
}
