/* コンテンツ下部の余白修正 */
#content {
  margin-bottom: 0;
}

/* コンテンツ上部の余白修正 */
.l-content {
  padding-top: 0;
}

/* ページタイトル削除 */
h1.c-pageTitle[data-style=b_bottom] {
  border-bottom: none;
}

h1.c-pageTitle[data-style=b_bottom]>span.c-pageTitle__inner {
  display: none;
  border-bottom: none;
}

.c-pageTitle:after {
  display: none;
}

.l-mainContent__inner>.post_content {
  margin-top: 0;
}

/* 総合成績ボックス */
.totalStatsBox {
  margin-bottom: 40px;
}

.statsCard {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* プログレスバーのアニメーション */
.progress-bar {
  position: relative;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* カテゴリーアイテム */
.category-item {
  transition: all 0.3s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.category-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.category-item h3 a:hover {
  text-decoration: underline !important;
}

.child-categories a:hover {
  color: var(--color_main) !important;
  text-decoration: underline !important;
}

/* リセットボタン */
#reset-button:hover {
  transform: scale(1.05);
}

#reset-button:active {
  transform: scale(0.98);
}

/* レスポンシブ対応 */
@media screen and (max-width: 959px) {
  .wrapperBox {
    padding: 15px !important;
  }

  .statsCard {
    padding: 15px !important;
  }

  .totalStatsBox h2,
  .categoryStatsBox h2 {
    font-size: 20px !important;
  }

  .category-item {
    padding: 12px !important;
  }

  .category-item h3 {
    font-size: 18px !important;
  }

  .child-categories {
    margin-left: 15px !important;
  }

  #reset-button {
    width: 100%;
    padding: 15px 20px !important;
  }
}

@media screen and (max-width: 620px) {
  .statsCard p {
    font-size: 16px !important;
  }

  #total-correct,
  #total-quizzes {
    font-size: 28px !important;
  }

  .category-correct {
    font-size: 20px !important;
  }

  .progress-bar {
    height: 25px !important;
  }
}

