/* =========================================================
   トップページ: 屈辱の腕立て伏せ / トレーニング日誌 のセクション
   (カレンダーの見た目は blog.css の .log-cal を使う)
========================================================= */
.top-sec {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 70px 20px 20px;
}
.top-sec .news-more {
  margin-top: 14px;
}
.top-sec-lead {
  margin: -18px 0 22px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--neon-red);
}

/* 屈辱の腕立て伏せ: テンポ別ベスト + 総合計 */
.top-pushup {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.top-pu-card {
  display: block;
  padding: 18px 18px 16px;
  text-decoration: none;
  color: var(--text-main);
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-top: 3px solid var(--tempo, var(--neon-blue));
  animation: blog-rise 0.6s both;
  animation-delay: calc(var(--i, 0) * 0.07s);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
a.top-pu-card:hover {
  transform: translateY(-2px);
  background: rgba(0, 200, 255, 0.06);
}
.top-pu-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-sub);
}
.top-pu-value {
  margin-top: 6px;
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  color: var(--tempo, #fff);
  text-shadow: 0 0 16px color-mix(in srgb, var(--tempo, #00c8ff) 45%, transparent);
}
.top-pu-unit {
  margin-left: 3px;
  font-size: 0.95rem;
  color: var(--text-main);
  text-shadow: none;
}
.top-pu-sub {
  margin-top: 6px;
  font-size: 0.74rem;
  color: var(--text-sub);
  white-space: pre;
}
/* 総合計は金色 (腕立てページの日別テーブルの合計と同じ) */
.top-pu-card.is-total {
  --tempo: #ffd84d;
  background: linear-gradient(160deg, rgba(255, 216, 77, 0.1), var(--bg-card) 60%);
  border-color: rgba(255, 216, 77, 0.35);
  border-top-color: #ffd84d;
}

@media (max-width: 760px) {
  .top-pushup {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .top-pushup .top-pu-card {
    padding: 14px 10px 12px;
  }
  .top-pushup .top-pu-label {
    font-size: 0.68rem;
  }
  .top-pushup .top-pu-sub {
    white-space: normal;
    font-size: 0.66rem;
  }
  .top-pu-value {
    font-size: 1.9rem;
  }
}

/* 並べ替えたあとのセクションの間隔 */
.top-sec + .news-section {
  padding-top: 70px;
}
.news-section + .nav-section {
  padding-top: 0;
}

/* 2秒に1回のベストの動画 */
.top-pu-video {
  max-width: 760px;
  margin: 22px auto 0;
}
.top-pu-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--border-soft);
  border-top: 3px solid #00c8ff;
  box-shadow: 0 0 30px rgba(0, 200, 255, 0.15);
}
.top-pu-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.top-pu-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-sub);
}
.top-pu-caption-label {
  padding: 2px 8px;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  color: #00c8ff;
  border: 1px solid rgba(0, 200, 255, 0.5);
}

/* 合計の段: 総合計 + テンポ別の合計 (それぞれ 1日あたり つき) */
.top-pu-totals {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr));
  margin-top: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
}
.top-pu-total {
  display: block;
  padding: 18px 18px 16px;
  text-decoration: none;
  color: var(--text-main);
  border-left: 1px solid var(--border-soft);
  box-shadow: inset 0 3px 0 var(--tempo);
  animation: blog-rise 0.6s both;
  animation-delay: calc(var(--i, 0) * 0.07s);
  transition: background 0.2s;
}
.top-pu-total:first-child {
  border-left: none;
}
.top-pu-total:hover {
  background: rgba(0, 200, 255, 0.05);
}
.top-pu-total .top-pu-value {
  font-size: 1.9rem;
}
.top-pu-total.is-all {
  background: linear-gradient(160deg, rgba(255, 216, 77, 0.1), transparent 70%);
}
.top-pu-total.is-all .top-pu-value {
  font-size: 2.5rem;
}
.top-pu-avg {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--text-sub);
}
.top-pu-avg b {
  font-size: 1.05rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: var(--tempo);
}
.top-pu-total .top-pu-sub {
  margin-top: 2px;
}

@media (max-width: 760px) {
  .top-pu-totals {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  /* スマホ: 総合計は1段まるごと使う */
  .top-pu-total.is-all {
    grid-column: 1 / -1;
    border-bottom: 1px solid var(--border-soft);
  }
  .top-pu-total {
    padding: 14px 10px 12px;
  }
  .top-pu-total:nth-child(2) {
    border-left: none;
  }
  .top-pu-total .top-pu-value {
    font-size: 1.35rem;
  }
  .top-pu-total.is-all .top-pu-value {
    font-size: 2.2rem;
  }
  .top-pu-total .top-pu-label {
    font-size: 0.68rem;
  }
}
.top-pu-avg + .top-pu-avg {
  margin-top: 2px;
}
.top-pu-avg-en {
  min-width: 5.2em;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  color: var(--tempo);
  opacity: 0.75;
}
@media (max-width: 760px) {
  .top-pu-avg-en {
    display: none;
  }
}

/* ---------- 名言ガチャ (circle-slider の真ん中のキャラ) ---------- */
.cs-hint {
  margin: 14px 0 0;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-sub);
}
.cs-hint b {
  color: var(--neon-cyan);
}
.cs-quote {
  position: relative;
  max-width: 640px;
  margin: 18px auto 0;
  padding: 22px 26px 18px;
  text-align: center;
  background: rgba(6, 12, 30, 0.95);
  border: 1px solid var(--neon-blue);
  box-shadow: 0 0 30px rgba(0, 200, 255, 0.25);
}
/* 上のキャラから出る吹き出しのしっぽ */
.cs-quote::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  width: 18px;
  height: 18px;
  background: rgba(6, 12, 30, 0.95);
  border-left: 1px solid var(--neon-blue);
  border-top: 1px solid var(--neon-blue);
  transform: translateX(-50%) rotate(45deg);
}
.cs-quote.show {
  animation: cs-quote-pop 0.35s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
@keyframes cs-quote-pop {
  from { opacity: 0; transform: translateY(10px) scale(0.94); }
  to { opacity: 1; transform: none; }
}
.cs-quote-kicker {
  margin: 0;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.35em;
  color: var(--neon-cyan);
}
.cs-quote-text {
  margin: 10px 0 0;
  font-size: clamp(1rem, 2.6vw, 1.25rem);
  font-weight: 900;
  line-height: 1.7;
  color: #fff;
  text-shadow: 0 0 14px rgba(0, 200, 255, 0.35);
}
/* 回っている間は少しぼかして、ガラガラ感 */
.cs-quote.rolling .cs-quote-text {
  filter: blur(1.5px);
  opacity: 0.6;
}
.cs-quote-author {
  min-height: 1.4em;
  margin: 8px 0 0;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--neon-red);
}
.cs-quote-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 14px;
}
.cs-quote-again {
  padding: 7px 16px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 900;
  color: #fff;
  background: var(--neon-red);
  border: none;
  cursor: pointer;
  transition: filter 0.2s;
}
.cs-quote-again:hover {
  filter: brightness(1.15);
}
.cs-quote-more {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--neon-blue);
  text-decoration: none;
}
.cs-quote-close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 30px;
  height: 30px;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--text-sub);
  background: none;
  border: none;
  cursor: pointer;
}
.cs-quote-close:hover {
  color: #fff;
}
/* ガチャを回している間、キャラがぶるぶる震える */
.cs-item.gacha-shake .cs-item-inner {
  animation: cs-shake 0.12s linear infinite;
}
@keyframes cs-shake {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-4deg) scale(1.02); }
  75% { transform: rotate(4deg) scale(1.02); }
}
@media (prefers-reduced-motion: reduce) {
  .cs-item.gacha-shake .cs-item-inner,
  .cs-quote.show {
    animation: none;
  }
}
