@scope (.fixed-content) {

.weekly-chart-section {
  padding: 60px 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

.weekly-chart-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.weekly-chart-section .section-label {
  font-size: 11px;
  color: #2B5E4E;
  letter-spacing: 4px;
  margin-bottom: 10px;
}

.weekly-chart-section h2 {
  font-size: 1.9rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
}

.weekly-chart-section .section-desc {
  color: #666;
  font-size: 14px;
  margin-bottom: 40px;
}

.chart-wrapper {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  position: relative;
}

.chart-canvas-container {
  position: relative;
  height: 300px;
}

.chart-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #999;
  font-size: 14px;
}

.chart-loading::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #2B5E4E;
  border-top-color: transparent;
  border-radius: 50%;
  margin-left: 10px;
  vertical-align: middle;
  animation: spin 1s linear infinite;
}

.chart-legend {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
  font-size: 13px;
  color: #666;
}

.chart-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chart-legend-color {
  width: 14px;
  height: 14px;
  border-radius: 3px;
}

.chart-legend-color.visitors {
  background: #2B5E4E;
}

.chart-legend-color.pageviews {
  background: rgba(43, 94, 78, 0.4);
}

.chart-note {
  color: #999;
  font-size: 11px;
  margin-top: 20px;
}

.chart-error {
  color: #c00;
  font-size: 14px;
  padding: 40px;
}

/* レスポンシブ */
@media (max-width: 767px) {
  .weekly-chart-section {
    padding: 40px 15px;
  }
  .weekly-chart-section h2 {
    font-size: 1.5rem;
  }
  .chart-wrapper {
    padding: 20px 15px;
  }
  .chart-canvas-container {
    height: 250px;
  }
  .chart-legend {
    flex-direction: column;
    gap: 10px;
  }
}

}

@keyframes spin {
  to { transform: rotate(360deg); }
}