/* 投資判断（RevoDecision）の画面。共通の .button（editorial.css）より後に読み、必要なところだけ強く当てる（読む順：editorial.css → … → この CSS → property-v13.css → fonts.css → sample-papers.css） */
.dec-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.dec-layout > * { min-width: 0; }
.dec-form { padding: 18px; }
.dec-choose { display: flex; flex-wrap: wrap; gap: 14px 24px; }
.dec-label { margin: 0 0 6px; color: var(--muted); font-size: 12.5px; }
.dec-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.dec-seg .button.dec-chip { min-height: 44px; padding: 6px 16px; border: 1px solid #cfc4c8; border-radius: 999px; background: #fff; color: var(--ink); font-size: 14.5px; font-weight: 600; box-shadow: none; }
.dec-seg .button.dec-chip.is-on { border-color: var(--wine); background: var(--wine); color: #fff; }
.dec-import { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin: 16px 0 0; padding: 12px; border-radius: 10px; background: #f7f3f4; }
.dec-import .dec-field { flex: 1 1 220px; margin: 0; }
.dec-group { min-width: 0; margin: 18px 0 0; padding: 14px 0 0; border: 0; border-top: 1px solid var(--line); } /* fieldset は中身の幅まで広がるので、0 にして画面幅に収める */
.dec-group legend { padding: 0 6px 0 0; color: var(--wine); font-size: 15px; font-weight: 700; }
.dec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px 14px; margin-top: 8px; }
.dec-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 13px; color: var(--ink); }
.dec-field > span:first-child { line-height: 1.5; }
.dec-req { margin-left: 6px; padding: 1px 6px; border-radius: 4px; background: #f6e7ec; color: var(--wine); font-size: 11px; font-weight: 700; }
.dec-input { display: flex; align-items: center; gap: 6px; }
.dec-input input { flex: 1 1 auto; min-width: 0; }
.dec-input em { flex: 0 0 auto; color: var(--muted); font-size: 12px; font-style: normal; white-space: nowrap; }
.dec-field input, .dec-field select { box-sizing: border-box; width: 100%; max-width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid #cfc4c8; border-radius: 8px; background: #fff; font-size: 16px; color: var(--ink); }
.dec-fills { margin-top: 8px; }
.dec-confirm { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 0; padding: 12px; border-radius: 10px; background: #fbf6e9; font-size: 13.5px; line-height: 1.7; }
.dec-confirm input { width: 22px; height: 22px; margin-top: 2px; flex: 0 0 auto; }
.dec-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.dec-result { padding: 18px; }
#dec-result.is-stale { position: relative; }
#dec-result.is-stale > * { opacity: .45; }
#dec-result.is-stale::before { content: attr(data-stale-note); display: block; margin-bottom: 10px; padding: 10px 12px; border-radius: 8px; background: var(--amber-soft, #fbf1dd); color: var(--amber, #8b6228); font-size: 13.5px; font-weight: 600; }
.dec-busy { margin: 0; padding: 12px; border-radius: 8px; background: var(--amber-soft, #fbf1dd); color: var(--amber, #8b6228); font-size: 14px; }
.dec-verdict { margin: 4px 0 12px; padding: 12px 14px; border-radius: 10px; font-size: 19px; line-height: 1.6; }
.dec-verdict[data-level="go"], .dec-verdict[data-level="hold"] { background: #edf4ef; color: #2f5d43; }
.dec-verdict[data-level="conditional"], .dec-verdict[data-level="even"] { background: #fbf1dd; color: #7a5420; }
.dec-verdict[data-level="stop"], .dec-verdict[data-level="sell"] { background: #f9ecef; color: #7d293e; }
.dec-result h3 { margin: 20px 0 8px; padding-bottom: 4px; border-bottom: 1px solid var(--line); color: var(--wine); font-size: 16px; }
.dec-now { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 0; }
.dec-now > div { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.dec-now dt { color: var(--muted); font-size: 12px; }
.dec-now dd { margin: 2px 0 0; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dec-now dd small, .dec-table small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 400; }
.dec-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.dec-table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.dec-table td:first-child { white-space: nowrap; }
.dec-table th, .dec-table td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.dec-table thead th { color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
.dec-compare td { white-space: nowrap; }
.dec-compare small { white-space: normal; } /* 幅の狭い画面では「〜」の後で折り返し、横に流さない */
.dec-compare tr.is-best th { color: var(--wine); }
.dec-compare tr.is-whatif th, .dec-compare tr.is-whatif td { color: var(--muted); }
.dec-whatif { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 4px; border: 1px solid #cfc4c8; color: var(--muted); font-size: 11px; font-weight: 600; vertical-align: 1px; }
.dec-report-link { margin: 0 0 12px; }
.dec-compare tbody th { white-space: nowrap; }
.dec-works td:first-child, .dec-works .dec-cost { white-space: nowrap; }
.dec-best, .dec-big { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 4px; background: var(--wine); color: #fff; font-size: 11px; font-weight: 700; vertical-align: 1px; }
.dec-big { background: #8b6228; }
.dec-bar-row td { padding-top: 0; }
.dec-bar { display: block; width: 100%; max-width: 420px; height: 28px; }
.dec-bar .dec-range { stroke: #c9a3ae; stroke-width: 6; stroke-linecap: round; }
.dec-bar .dec-mid { fill: var(--wine); }
.dec-bar .dec-zero { stroke: #8c8c8c; stroke-width: 1; stroke-dasharray: 3 3; }
.dec-limits { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.9; }
.dec-needs { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.9; }
.dec-note { color: var(--muted); font-size: 12.5px; line-height: 1.8; }
.dec-assumed { margin-top: 16px; font-size: 13px; line-height: 1.8; }
.dec-assumed summary { cursor: pointer; color: var(--wine); font-weight: 600; }
.dec-foot { margin-top: 16px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.dec-open { margin: 10px 0 0; }
@media (min-width: 1100px) { .dec-layout { grid-template-columns: minmax(360px, 1fr) minmax(420px, 1.2fr); align-items: start; } } /* 結果は画面より長いので sticky にしない（下の方が読めなくなる） */
@media (max-width: 560px) { .dec-form, .dec-result { padding: 14px; } .dec-grid { grid-template-columns: 1fr; } .dec-verdict { font-size: 17px; } .dec-now { grid-template-columns: 1fr 1fr; } .dec-now dd { font-size: 16px; } }
@media print { .dec-form, .dec-actions, .dec-open { display: none !important; } #dec-result.is-stale::before { display: none; } }
