/* レーダーチャート */
.demo-size {
  height: 100px;
  display: flex; /* Flexboxを使用 */
  justify-content: center; /* 横方向の中央揃え */
  align-items: center; /* 縦方向の中央揃え */
  margin-left: 30%;
}

.radar-chart-large {
  background-color: #f5f5f5;
  border-radius: 10px;
  margin-bottom: 20px;
  padding: 20px;
  position: relative;
}

.radar-chart-visual {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto;
}

.radar-circle {
  position: absolute;
  border: 1px solid #e0e0e0;
  border-radius: 50%;
}

.circle-1 {
  width: 280px;
  height: 280px;
  top: 10px;
  left: 10px;
}

.circle-2 {
  width: 200px;
  height: 200px;
  top: 50px;
  left: 50px;
}

.circle-3 {
  width: 120px;
  height: 120px;
  top: 90px;
  left: 90px;
}

.radar-axis {
  position: absolute;
  width: 140px;
  height: 1px;
  background-color: #e0e0e0;
  top: 150px;
  left: 150px;
  transform-origin: left center;
}

.axis-1 {
  transform: rotate(0deg);
}
.axis-2 {
  transform: rotate(60deg);
}
.axis-3 {
  transform: rotate(120deg);
}
.axis-4 {
  transform: rotate(180deg);
}
.axis-5 {
  transform: rotate(240deg);
}
.axis-6 {
  transform: rotate(300deg);
}

.radar-shape {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  clip-path: polygon(
    150px 85px /* 平均余命 */,
    190px 120px /* 特定健診受診率 */,
    185px 170px /* 特定保健指導実施率 */,
    150px 250px /* 医療費 */,
    80px 210px /* 介護費 */,
    80px 90px /* 介護認定率 */
  );
}

.city-shape {
  background-color: rgba(166, 206, 57, 0.3);
  border: 2px solid var(--primary);
}

.average-shape {
  clip-path: polygon(
    150px 90px /* 平均余命 */,
    200px 120px /* 特定健診受診率 */,
    200px 180px /* 特定保健指導実施率 */,
    150px 210px /* 医療費 */,
    100px 180px /* 介護費 */,
    100px 120px /* 介護認定率 */
  );
  background-color: rgba(255, 107, 0, 0.3);
  border: 2px dashed #ff6b00;
}

.radar-labels {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.radar-label {
  position: absolute;
  font-size: 0.8rem;
  font-weight: 500;
  text-align: center;
  width: 100px;
}

.label-1 {
  top: 10px;
  left: 100px;
}
.label-2 {
  top: 80px;
  right: 0;
}
.label-3 {
  bottom: 80px;
  right: 0;
}
.label-4 {
  bottom: 10px;
  left: 100px;
}
.label-5 {
  bottom: 80px;
  left: 0;
}
.label-6 {
  top: 80px;
  left: 0;
}

.radar-chart-legend {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: white;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.legend-color {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  border-radius: 3px;
}

.legend-color.city {
  background-color: var(--primary);
}

.legend-color.average {
  background-color: #ff6b00;
}

.feature-highlight {
  box-sizing: border-box; /* 内側のパディングも含めた幅計算 */
  background-color: #fff5e6;
  padding: 15px;
  margin-top: 20px;
  border-radius: 0 5px 5px 0;
}

.feature-highlight h4 {
  color: var(--secondary);
  margin-bottom: 10px;
  text-decoration-line: none;
}
.feature-highlite p {
  margin: 0;
  font-size: 1.2rem;
}

.hypothesis-box {
  background-color: #fff0f0;
  border: 2px solid #ff6b00;
  padding: 15px;
  margin-top: 15px;
  border-radius: 5px;
  text-align: center;
}

.hypothesis-box h4 {
  color: #ff0000;
  margin-bottom: 10px;
}
