/* ===== 経費削減シミュレーター ===== */

.cost-sim {
  background: linear-gradient(160deg, #f0fdf4 0%, #d1fae5 100%);
  border: 2px solid #6ee7b7;
  border-radius: 16px;
  padding: 1.75rem;
  margin: 2rem 0;
}

/* ヘッダー */
.cost-sim__header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.cost-sim__badge {
  display: inline-block;
  background: #16a34a;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.cost-sim__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #14532d;
  margin: 0 0 0.35rem;
  line-height: 1.4;
}

.cost-sim__desc {
  color: #6b7280;
  font-size: 0.875rem;
  margin: 0;
}

/* 入力エリア */
.cost-sim__body {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.cost-sim__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 580px) {
  .cost-sim__grid {
    grid-template-columns: 1fr;
  }
}

.cost-sim__field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.cost-sim__field--full {
  margin-bottom: 1rem;
}

.cost-sim__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
  margin: 0;
}

.cost-sim__input-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #f9fafb;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.cost-sim__input-wrap:focus-within {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}

.cost-sim__input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 1rem;
  color: #111827;
  outline: none;
  min-width: 0;
}

.cost-sim__input::placeholder {
  color: #9ca3af;
}

.cost-sim__unit {
  font-size: 0.875rem;
  color: #6b7280;
  flex-shrink: 0;
}

.cost-sim__hint {
  font-size: 0.72rem;
  color: #9ca3af;
  margin: 0;
}

.cost-sim__select {
  background: #f9fafb;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  padding: 0.52rem 0.75rem;
  font-size: 0.9rem;
  color: #374151;
  cursor: pointer;
  outline: none;
  width: 100%;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.cost-sim__select:focus {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}

/* チェックボックス */
.cost-sim__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.25rem;
}

.cost-sim__check {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: #f3f4f6;
  border: 1.5px solid #e5e7eb;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
  font-size: 0.84rem;
  color: #374151;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  user-select: none;
}

.cost-sim__check:hover {
  border-color: #16a34a;
  background: #f0fdf4;
  color: #15803d;
}

.cost-sim__check input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: #16a34a;
  cursor: pointer;
  flex-shrink: 0;
}

.cost-sim__check--checked {
  background: #dcfce7;
  border-color: #16a34a;
  color: #15803d;
  font-weight: 600;
}

/* ボタン群 */
.cost-sim__action {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-top: 0.5rem;
}

.cost-sim__btn {
  background: #16a34a;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.72rem 2.25rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 0.18s, transform 0.1s;
}

.cost-sim__btn:hover {
  background: #15803d;
}

.cost-sim__btn:active {
  transform: scale(0.97);
}

.cost-sim__btn-sub {
  background: transparent;
  border-radius: 8px;
  padding: 0.5rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  line-height: 1;
}

.cost-sim__btn-sub--sample {
  color: #16a34a;
  border: 1.5px solid #86efac;
}

.cost-sim__btn-sub--sample:hover {
  background: #dcfce7;
  border-color: #16a34a;
}

.cost-sim__btn-sub--reset {
  color: #6b7280;
  border: 1.5px solid #d1d5db;
}

.cost-sim__btn-sub--reset:hover {
  background: #f3f4f6;
  color: #374151;
}

/* 待機プレースホルダー */
.cost-sim__result {
  margin-top: 1.25rem;
}

.cost-sim__placeholder {
  border: 1.5px dashed #a7f3d0;
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  text-align: center;
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.6;
  background: rgba(255, 255, 255, 0.5);
}

.cost-sim__placeholder-icon {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
  opacity: 0.5;
}

/* 結果カード */
.cost-sim__result-inner {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.cost-sim__result-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #14532d;
  margin: 0 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid #d1fae5;
}

.cost-sim__numbers {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.cost-sim__num-row {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.cost-sim__num-label {
  font-size: 0.9rem;
  color: #374151;
}

.cost-sim__num-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #059669;
  line-height: 1;
}

.cost-sim__num-row--main .cost-sim__num-value {
  font-size: 2.2rem;
}

.cost-sim__num-unit {
  font-size: 1rem;
  font-weight: 600;
  color: #059669;
}

.cost-sim__num-suffix {
  font-size: 0.9rem;
  color: #374151;
}

.cost-sim__per-person {
  font-size: 0.84rem;
  color: #6b7280;
  background: #f3f4f6;
  border-radius: 8px;
  padding: 0.5rem 0.85rem;
  margin: 0 0 1.1rem;
}

.cost-sim__per-person strong {
  color: #374151;
}

.cost-sim__categories {
  margin-bottom: 1rem;
}

.cost-sim__cat-title {
  font-size: 0.84rem;
  font-weight: 600;
  color: #374151;
  margin: 0 0 0.45rem;
}

.cost-sim__cat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.cost-sim__cat-item {
  background: #dcfce7;
  color: #15803d;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #86efac;
}

.cost-sim__comment {
  background: #f0fdf4;
  border-left: 3px solid #16a34a;
  border-radius: 0 8px 8px 0;
  padding: 0.8rem 1rem;
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.7;
  margin: 0 0 1.25rem;
}

/* 次にやること */
.cost-sim__actions {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 1rem 1.1rem;
  margin-bottom: 1.1rem;
}

.cost-sim__actions-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #92400e;
  margin: 0 0 0.55rem;
}

.cost-sim__actions-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cost-sim__action-item {
  font-size: 0.84rem;
  color: #374151;
  line-height: 1.55;
  padding-left: 1.1rem;
  position: relative;
}

.cost-sim__action-item::before {
  content: "・";
  position: absolute;
  left: 0;
  color: #d97706;
}

/* 関連記事 */
.cost-sim__related {
  border-top: 1px solid #e5e7eb;
  padding-top: 1rem;
}

.cost-sim__related-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #6b7280;
  margin: 0 0 0.5rem;
}

.cost-sim__related-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cost-sim__related-list li::before {
  content: "→ ";
  color: #9ca3af;
}

.cost-sim__related-list a {
  font-size: 0.84rem;
  color: #2563eb;
  text-decoration: none;
}

.cost-sim__related-list a:hover {
  text-decoration: underline;
}

/* 増加（マイナス削減）表示 */
.cost-sim__num-value--negative {
  color: #dc2626;
}

.cost-sim__num-unit--negative {
  color: #dc2626;
}

/* エラー */
.cost-sim__error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  text-align: center;
  margin: 0;
}

.detail-sim-cta {
  margin: 18px 0 28px;
  padding: 18px 20px;
  border: 1px solid #d9e7f7;
  background: #f5f9ff;
  border-radius: 14px;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.detail-sim-cta__text {
  min-width: 0;
}

.detail-sim-cta__label {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  color: #2563eb;
}

.detail-sim-cta__title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  color: #1f2937;
}

.detail-sim-cta__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: #4b5563;
}

.detail-sim-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 12px 18px;
  border-radius: 10px;
  background: #1e5fa8;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
}

.detail-sim-cta__btn:hover {
  background: #164b86;
  color: #fff;
}

@media (max-width: 640px) {
  .detail-sim-cta {
    display: block;
    padding: 16px;
  }

  .detail-sim-cta__btn {
    width: 100%;
    margin-top: 14px;
    min-width: 0;
  }
}