/* 相続の期限リスト(自己診断ツール) ― style.css のあとに読み込む */
.dc {
  position: relative; margin: 32px 0 0; padding: 26px 28px 28px;
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: 0 1px 0 var(--line);
}
.dc::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-radius: var(--radius) var(--radius) 0 0; background: linear-gradient(90deg, var(--navy) 0 70%, var(--gold) 70% 100%); }
.dc-badge { margin-bottom: 8px; }
.dc-title { margin: 0 0 4px; font-size: 20px; font-weight: 700; line-height: 1.5; color: var(--navy); }
.dc-lead { margin: 0 0 18px; font-size: 18px; line-height: 1.85; color: var(--ink-sub); }

.dc-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; padding: 18px 18px 16px; background: var(--navy-50); border-radius: 6px; }
.dc-field[hidden] { display: none; }
.dc-field label { display: block; margin-bottom: 6px; font-size: 18px; font-weight: 700; color: var(--navy); line-height: 1.6; }
.dc-field .dc-opt { margin-left: 4px; font-size: 18px; font-weight: 400; color: var(--ink-sub); }
.dc-field input[type="date"] {
  width: 100%; padding: 11px 12px; font: inherit; font-size: 18px; line-height: 1.4; color: var(--ink);
  background: #fff; border: 1px solid var(--line-strong); border-radius: 6px;
}
.dc-field input[type="date"]:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.dc-hint { margin: 6px 0 0; font-size: 18px; color: var(--ink-sub); }
.dc-error { grid-column: 1 / -1; margin: 0; font-size: 18px; color: var(--alert); line-height: 1.6; }
.dc-error:empty { display: none; }
.dc-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.dc-run {
  padding: 13px 34px; border: 0; border-radius: 8px; cursor: pointer;
  background: var(--navy); color: #fff; font: inherit; font-size: 18px; font-weight: 700; letter-spacing: .08em; line-height: 1.5;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.dc-run:hover { background: var(--navy-700); transform: translateY(-1px); box-shadow: 0 8px 18px rgba(18,31,62,.16); }
.dc-privacy { flex: 1 1 220px; margin: 0; font-size: 18px; line-height: 1.7; color: var(--ink-sub); }

.dc-result { margin-top: 24px; }
.dc-result[hidden] { display: none; }
.dc-result-title { margin: 0 0 10px; font-size: 18px; font-weight: 700; color: var(--navy); }
.dc-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden; }
.dc-item {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: center;
  padding: 13px 16px 13px 18px; background: #fff; border-left: 4px solid var(--line-strong); line-height: 1.6;
}
.dc-item + .dc-item { border-top: 1px solid var(--line); }
.dc-item.is-main { background: var(--panel); }
.dc-item .dc-name { font-size: 18px; font-weight: 700; color: var(--navy); }
.dc-item .dc-date { text-align: right; font-size: 18px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.dc-item .dc-note { grid-column: 1; font-size: 18px; color: var(--ink-sub); }
.dc-item .dc-left { text-align: right; font-size: 18px; font-weight: 700; }
.dc-item.st-over { border-left-color: var(--alert); }
.dc-item.st-over .dc-left { color: var(--alert); }
.dc-item.st-soon { border-left-color: #d0752f; }
.dc-item.st-soon .dc-left { color: #b35a17; }
.dc-item.st-near { border-left-color: var(--gold); }
.dc-item.st-near .dc-left { color: var(--gold-ink); }
.dc-item.st-ok { border-left-color: #6e9c80; }
.dc-item.st-ok .dc-left { color: #2f6e4a; }
.dc-caution { margin: 12px 0 0; font-size: 18px; line-height: 1.8; color: var(--ink-sub); }

.dc-next { margin-top: 20px; padding: 22px 22px 18px; text-align: center; background: var(--navy); border-radius: var(--radius); }
.dc-next .dc-next-lead { margin: 0 0 4px; font-size: 18px; font-weight: 700; line-height: 1.6; color: #fff; }
.dc-next .dc-next-sub { margin: 0 0 16px; font-size: 18px; line-height: 1.8; color: #cdd3e0; }
.dc-next .btn.primary { background: #fff; color: var(--navy); border-color: #fff; }
.dc-next .btn.primary::before { background: var(--gold-ink); }
.dc-next .dc-next-note { margin: 12px 0 0; font-size: 18px; line-height: 1.7; color: #b9c1d3; }

@media (max-width: 700px) {
  .dc { padding: 22px 16px 20px; }
  .dc-form { grid-template-columns: 1fr; padding: 14px; }
  .dc-run { width: 100%; }
  .dc-item { grid-template-columns: 1fr; }
  .dc-item .dc-date, .dc-item .dc-left { text-align: left; }
  .dc-next { padding: 20px 14px 16px; }
}

/* ===== 11/4 本人決定：06案（たたんで大きなボタン1つ）＋03案のカレンダーの絵（tools/dc-fold.cjs が書く） ===== */
/* style.css の「body .dc」より強くするため、.dc-fold を付けた枠だけに効かせる */
body .dc.dc-fold { background: linear-gradient(135deg, #fff8e8, #ffe7bd); border: 0; border-radius: 20px; box-shadow: 0 14px 34px rgba(224,123,26,.22); text-align: center; padding: 30px 28px; }
.dc-fold .dc-art { width: 112px; height: 112px; margin: 0 auto 12px; border-radius: 50%; background: #ffe4ad; display: grid; place-items: center; }
.dc-fold .dc-art svg { display: block; width: 78px; height: 78px; transform: rotate(-6deg); }
body .dc.dc-fold .dc-title { justify-content: center; font-size: 28px; }
body .dc.dc-fold .dc-title::before { display: none; }
.dc-fold .dc-lead { max-width: 34em; margin-left: auto; margin-right: auto; }
.dc-fold .dc-form, .dc-fold .dc-result { text-align: left; }
.dc-fold.is-folded .dc-form { display: none; }
.dc-open { display: inline-flex; align-items: center; gap: 14px; margin: 6px auto 0; padding: 20px 34px 20px 24px; border: 0; border-radius: 999px; cursor: pointer; background: #e07b1a; color: #fff; font: inherit; font-size: 26px; font-weight: 700; letter-spacing: .06em; line-height: 1.4; box-shadow: 0 6px 0 #b25e0d, 0 14px 26px rgba(224,123,26,.35); }
.dc-open[hidden] { display: none; }
.dc-open:hover { background: #c96a10; }
.dc-open-ic { flex: none; width: 44px; height: 44px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e07b1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4M8 15l2.5 2.5L16 13'/%3E%3C/svg%3E") center / 26px no-repeat; }
.dc-open-ar { flex: none; width: 14px; height: 14px; margin-left: 4px; border-right: 4px solid #fff; border-bottom: 4px solid #fff; transform: rotate(-45deg); }
@media (max-width: 700px) {
  body .dc.dc-fold { padding: 26px 16px; }
  .dc-fold .dc-art { width: 100px; height: 100px; }
  .dc-fold .dc-art svg { width: 70px; height: 70px; }
  body .dc.dc-fold .dc-title { font-size: 23px; }
  .dc-open { width: 100%; justify-content: center; padding: 16px 24px 16px 16px; font-size: 22px; }
}
