/* --------------- 全体設定 --------------- */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans JP", sans-serif;
  background: #f7f7f9;
  margin: 0;
  color: #222;
  line-height: 1.6;
}

header {
  background: #2563eb;
  color: white;
  padding: 16px;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px;
}

/* --------------- カード --------------- */
.card {
  background: #fff;
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);  /* 影を控えめに */
}

.card-title {
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: bold;
}

/* --------------- 入力欄 --------------- */
label {
  margin-top: 10px;
  display: block;
  font-weight: 600;
}

input, select {
  width: 100%;
  padding: 10px;
  margin-top: 4px;
  box-sizing: border-box;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
}

input:focus, select:focus {
  border-color: #2563eb;
  outline: none;
}

/* --------------- ボタン --------------- */
button {
  width: 100%;
  padding: 14px;
  margin-top: 20px;
  font-size: 18px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.15s;
}

button:active {
  transform: scale(0.96); /* 沈み込み効果 */
  background: #1e4fbe;
}

/* コピー用ボタン */
#copySummaryButton {
  background: #475569;
  font-size: 16px;
}

#copySummaryButton:active {
  background: #1e293b;
}

/* --------------- 結果表示 --------------- */
.result-value {
  font-size: 32px;
  font-weight: bold;
  padding: 4px 0;
}

.sub {
  font-size: 15px;
  font-weight: bold;
}

.muted {
  color: #666;
  font-size: 14px;
}

.hidden {
  display: none;
}

/* --------------- 円グラフ --------------- */
.chart-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.chart-legend {
  margin-top: 10px;
  font-size: 14px;
}

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

.chart-legend-color {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  margin-right: 6px;
}

/* --------------- ヘルプテキスト --------------- */
#interpretationMain {
  font-size: 14px;
  margin-top: 10px;
  line-height: 1.6;
}

/* --------------- スマホ最適化 --------------- */
@media (max-width: 480px) {
  .card {
    padding: 16px;
  }
  button {
    font-size: 16px;
    padding: 12px;
  }
  input, select {
    font-size: 15px;
  }
  .result-value {
    font-size: 28px;
  }
}
