.cost-ratio-bar {
  background: var(--border);
  border-radius: var(--r-full);
  height: 14px;
  overflow: hidden;
  margin: 8px 0 4px;
}
.cost-ratio-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #e8803a);
  border-radius: var(--r-full);
  transition: width 1s ease;
}
.ratio-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink3); font-family: 'DM Mono', monospace; }
.total-card {
  background: var(--primary);
  border-radius: var(--r-lg);
  padding: 22px 16px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}
.total-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(107,159,212,.25), transparent 70%);
  pointer-events: none;
}
.total-label { font-size: 11px; color:var(--primary-mid); font-family: 'DM Mono', monospace; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.total-amount { font-family: 'Plus Jakarta Sans', var(--font-body, 'Noto Sans JP'), sans-serif; font-size: clamp(28px, 7vw, 48px); font-weight: 900; color: #ffffff; line-height: 1.1; margin-bottom: 6px; }
.total-amount em { color:var(--primary-mid); font-style: normal; font-size: .55em; }
.total-ratio { color: rgba(255,255,255,0.55); font-size: 13px; }
.cost-summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
@media (min-width: 520px) { .cost-summary-grid { grid-template-columns: repeat(3, 1fr); } }
.cost-summary-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 14px 12px;
  text-align: center;
}
.cost-summary-label { font-size: 11px; color: var(--ink3); margin-bottom: 4px; }
.cost-summary-val { font-family: 'DM Mono', monospace; font-size: 15px; font-weight: 500; color: var(--accent); }
.cost-cat-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink2);
  padding: 10px 16px;
  background: #fafaf8;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 600px) { .cost-cat-label { padding: 10px 20px; } }

.info-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: var(--r-full);
  margin-top: 5px;
}
.purchase-note {
  background: var(--green-light);
  border: 1px solid rgba(42,107,60,.2);
  border-radius: var(--r);
  padding: 12px 16px;
  font-size: 12px;
  color: #1a4a28;
  margin-bottom: 14px;
  display: flex;
  gap: 8px;
}
/* 特例・優遇チェックボックス */
.opt-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border: 1.5px solid var(--border); border-radius: var(--r);
  cursor: pointer; font-size: 13px; color: var(--ink);
  transition: all .15s; background: #fafaf8; user-select: none;
  margin-bottom: 6px;
}
.opt-item input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.opt-box {
  width: 20px; height: 20px;
  border: 1.5px solid var(--border); border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: transparent; flex-shrink: 0; transition: all .15s;
}
.opt-item:has(input:checked) { border-color: var(--accent); background: var(--accent-light, #fff3ec); }
.opt-item:has(input:checked) .opt-box { background: var(--accent); border-color: var(--accent); color: #fff; }
