/* ============================================
   ボーナス手取り計算シミュレーション
   ============================================ */

/* --- 棒グラフ --- */
.bonusCalc__chart {
  margin: 1.5rem 0;
}

.bonusCalc__chartBar {
  display: flex;
  width: 100%;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  background: #f3f4f6;
}

.bonusCalc__chartSegment {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  transition: width 0.4s ease;
  overflow: hidden;
}

.bonusCalc__chartLabel {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  padding: 0 4px;
}

.bonusCalc__chartSegment_type_health {
  background: #f59e0b;
}

.bonusCalc__chartSegment_type_nursing {
  background: #d97706;
}

.bonusCalc__chartSegment_type_pension {
  background: #ef4444;
}

.bonusCalc__chartSegment_type_employment {
  background: #8b5cf6;
}

.bonusCalc__chartSegment_type_tax {
  background: #6366f1;
}

.bonusCalc__chartSegment_type_net {
  background: #059669;
}

/* --- サマリー文 --- */
.bonusCalc__summary {
  margin: 1rem 0;
  padding: 1rem 1.25rem;
  background: #f0fdf4;
  border-left: 4px solid #059669;
  border-radius: 0 8px 8px 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.7;
}

/* --- アフィリエイトCTA --- */
.bonusCalc__affiliateCta {
  margin: 2rem 0;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #bbf7d0;
  border-radius: 12px;
}

.bonusCalc__affiliateCtaLabel {
  display: inline-block;
  background: #6b7280;
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.bonusCalc__affiliateCtaTitle {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.bonusCalc__affiliateCtaText {
  font-size: 0.9rem;
  color: #4b5563;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.bonusCalc__affiliateCtaButtons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.bonusCalc__affiliateCtaBtn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: #059669;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s;
}

.bonusCalc__affiliateCtaBtn:hover {
  background: #047857;
}

@media (max-width: 640px) {
  .bonusCalc__chartBar {
    height: 32px;
  }

  .bonusCalc__chartLabel {
    font-size: 0.5625rem;
  }

  .bonusCalc__affiliateCtaButtons {
    flex-direction: column;
  }

  .bonusCalc__affiliateCtaBtn {
    text-align: center;
    justify-content: center;
  }
}
