/* 結果全体の外枠 */
#result {
  background: #fff;
  border: 3px solid #c8102e;
  border-radius: 16px;
  padding: 2rem;
  margin-top: 2.5rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  position: relative;
}

/* 外枠の見出しラベル（左上リボン風） */
#result::before {
  content: "JALシミュレーション結果";
  position: absolute;
  top: -14px;
  left: 20px;
  background: #c8102e;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}


/* 結果カード */
#result .result-card {
  background: linear-gradient(135deg, #fff, #fdf5f5);
  border: 2px solid #c8102e;
  border-radius: 12px;
  padding: 1.8rem;
  margin-top: 2rem;
  box-shadow: 0 6px 15px rgba(0,0,0,0.12);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* 上部に赤いリボン風の装飾 */
#result .result-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 6px;
  width: 100%;
  background: linear-gradient(90deg, #c8102e, #e74c3c);
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

/* 結果のタイトル */
#result .result-card h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #c8102e;
  text-shadow: 1px 1px 2px rgba(200,16,46,0.2);
}

#result .result-card p {
  font-size: 1.1rem;
  margin: 0.4rem 0;
  color: #444;
}

/* プログレスバー */
#result .progress {
  margin-top: 1.2rem;
  height: 22px;
  border-radius: 12px;
  overflow: hidden;
  background: #f0f0f0;
  border: 1px solid #ddd;
}

#result .progress-bar {
  background: linear-gradient(90deg, #c8102e, #ff5a5a);
  height: 100%;
  transition: width 0.5s ease;
  color: #fff;
  font-size: 0.85rem;
  line-height: 22px;
  text-align: center;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* 積算内訳テーブル */
#result table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  font-size: 0.9rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

#result th, #result td {
  padding: 0.75rem 0.9rem;
  border: 1px solid #eee;
}

#result th {
  background: linear-gradient(90deg, #c8102e, #e74c3c);
  color: #fff;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
}

#result td {
  text-align: center;
  color: #333;
}

#result tr:nth-child(even) td {
  background: #fdf5f5;
}

#result td strong {
  color: #c8102e;
  font-weight: 700;
}
