.analysis-section {
  margin: 20px 0;
  max-width: 760px;
}

.analysis-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 12px;
}

.analysis-figure {
  margin: 0;
  text-align: center;
  padding: 12px;
}

.analysis-figure img {
  max-width: 100%;
  height: auto;
}

.analysis-content {
  padding-left: 12px;
}

.comment-box {
  border: 1px solid #000;
  padding: 8px;
  color: black;
  line-height: 18px;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .analysis-grid {
    grid-template-columns: 1fr;
  }

  .analysis-content {
    padding-left: 0;
  }
}

.strategy-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 12px;
  align-items: start;
}

.forecast-section {
  margin: 20px 0;
  max-width: 720px;
}

.forecast-grid {
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 20px;
  align-items: start;
}

.forecast-image {
  text-align: center;
  padding-top: 10em;
}

.forecast-image img {
  max-width: 100%;
  height: auto;
}

.forecast-chart {
  margin: 20px 30px;
  max-width: 720px;
  text-align: center;
}

.forecast-chart img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .strategy-grid {
    grid-template-columns: 1fr;
  }

  .strategy-grid .strategy-content {
    order: 2;
  }

  .strategy-grid .strategy-figure {
    order: 1;
    padding: 0;
  }

  .forecast-grid {
    grid-template-columns: 1fr;
  }
}

.simulation-knit-grid {
  display: flex;
  gap: 12px;
  align-items: start;
}

.simulation-knit {
  max-width:340px;
}

.simulation-knit-figure {
  max-width:420px;
  text-align:center;
}

/* 段落4用の追加CSS */
.simulation-section {
  margin: 20px 0;
}

.simulation-content {
  max-width: 760px;
  margin: 20px 0;
}

.simulation-table {
  margin: 20px 0;
  max-width: 760px;
}

.simulation-table table {
  border-collapse: collapse;
  border-spacing: 0;
  border: 1px solid #818181;
  width: 100%;
}

.simulation-table th,
.simulation-table td {
  border: 1px solid #818181;
  padding: 8px;
  text-align: center;
  white-space: nowrap;
}

.simulation-table thead tr {
  background-color: #cccccc;
}

.simulation-table .highlight-row {
  background-color: #ffff00;
}

.simulation-table figcaption {
  text-align: center;
  margin-top: 5px;
}

.simulation-table .negative {
  color: #ff0000;
}

.simulation-note,
.simulation-notes,
.simulation-result {
  max-width: 760px;
  margin: 15px 0;
  line-height: 18px;
}

.simulation-notes {
  font-size: 92%;
}
@media (max-width: 768px) {
  .simulation-table table {
    font-size: 90%;
  }

  .simulation-table th,
  .simulation-table td {
    padding: 4px;
  }
}

/* 段落5用の追加CSS */
.case-study-section {
  margin: 20px 0;
  max-width: 950px;
}

.case-study-table {
  border: 1px solid #818181;
  margin: 20px 0;
}

.case-study-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  border-bottom: 1px solid #818181;
}

.case-study-row:last-child {
  border-bottom: none;
}

.case-study-header {
  background-color: #cccccc;
  padding: 8px 0 8px 8px;
  margin: 0;
  color: #333333;
  font-size: 100%;
  font-weight: bold;
  display: flex;
  align-items: center;
  border-right: 1px solid #818181;
}

.case-study-links {
  padding: 8px 0 8px 8px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5em;
}

.case-study-links a {
  white-space: nowrap;
}

.case-study-caption {
  text-align: center;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .case-study-row {
    grid-template-columns: 1fr;
  }

  .case-study-header {
    border-right: none;
    border-bottom: 1px solid #818181;
  }

  .case-study-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3em;
  }
}
