body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: black;
  font-family: Arial, sans-serif;
  color: white;
  padding: 16px;
  font-size: 16px;
}

/* Text settings */
h1, h2, h3, h4, h5, h6 {
  font-family: Arial, sans-serif;
  color: white;
  margin-top: 0;
  line-height: 1.3;
}

h1, h2, h3 {
  font-size: calc(
    1rem
    * var(--heading-scale)
    * var(--context-scale, 1)
  );
}

h1 { --heading-scale: 1.8; }
h2 { --heading-scale: 1.4; }
h3 { --heading-scale: 1.2; }

.center-text {
  text-align: center;
}

.chart-title {
  --context-scale: 0.9;
  text-align: center;
  margin: 0 0 8px 0;
}

select {
  padding: 8px 16px;
  margin-bottom: 24px;
  border-radius: 6px;
  background: #222;
  color: white;
  border: 1px solid #555;
}

/* Layout */
.text-block {
  margin-bottom: 24px; /* ブロックごと区切る */
}

/* Footer */
.site-footer {
  margin: 24px 0 8px;
  font-size: 0.8rem;
  opacity: 0.6;
  text-align: center;
}

.chart-block {
  margin-bottom: 24px; /* ブロックごと区切る */
}

.chart-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

/* ── 縦積みストリップ（X軸共有・帯が縦に整列）── */
.dash {
  width: 100%;
  max-width: 880px;
}

.dash-section {
  margin-bottom: 20px;
}

.section-title {
  --context-scale: 0.85;
  text-align: left;
  margin: 0 0 8px 4px;
  opacity: 0.85;
}

.strip-stack {
  background: #15171c;            /* 不透明（背景動画を透過させない） */
  border-radius: 12px;
  padding: 8px 12px 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.strip {
  position: relative;
  height: 124px;
}

/* 最下段だけ横軸ラベルを出すぶん少し高く */
.strip-bottom {
  height: 150px;
}

.strip-label {
  position: absolute;
  top: 2px;
  left: 56px;                     /* Y軸領域(固定幅50)を避ける */
  font-size: 0.78rem;
  opacity: 0.7;
  pointer-events: none;
  z-index: 1;
}

.strip canvas {
  width: 100%;
  height: 100%;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* For mobile environment (width < 480px) */
@media (max-width: 480px) {
  .chart-card {
    height: 220px;
  }
}