/* 八代市 被災者生活再建支援金ガイド
   uto-repair.css / uto-waste.css の明快なチラシ風スタイルを踏襲し、
   八代市のトーン＆マナー（藍碧 #235f7c）を基調に支援金申請に特化したUIを構築 */

.rebuild-page {
  --r-teal: #235f7c;
  --r-teal-light: #e8f3f8;
  --r-teal-border: #9dc4d4;
  --r-orange: #d8552f;
  --r-orange-light: #fff7ed;
  --r-blue: #1a5b93;
  --r-blue-light: #eff6ff;
  --r-yellow: #ca8a04;
  --r-yellow-light: #fefce8;
  --r-ink: #143540;
  --r-muted: #506a74;
  --r-line: #d3e2e8;
}

.rebuild-page .waste-lead b {
  color: var(--r-teal);
}

/* ---- ヒーローの要点カード ---- */
.rebuild-keyfacts {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.3fr;
  gap: 12px;
  max-width: 820px;
  margin: 28px 0 0;
}

.rebuild-keyfacts div {
  padding: 14px 18px;
  border: 3px solid var(--r-teal);
  border-radius: 10px;
  background: #fff;
  box-shadow: 4px 4px 0 var(--r-teal-border);
}

.rebuild-keyfacts dt {
  color: var(--r-muted);
  font-size: 13px;
  font-weight: 800;
}

.rebuild-keyfacts dd {
  margin: 4px 0 0;
  font-size: 24px;
  font-weight: 900;
  white-space: nowrap;
}

.rebuild-keyfacts .keyfact-highlight {
  border-color: var(--r-orange);
  background: var(--r-orange-light);
  box-shadow: 4px 4px 0 #fed7aa;
}

.rebuild-keyfacts .keyfact-highlight dd {
  color: var(--r-orange);
}

.rebuild-keyfacts .keyfact-deadline {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 4px 4px 0 #bfdbfe;
}

.rebuild-keyfacts .keyfact-deadline dd {
  font-size: 18px;
  line-height: 1.3;
}

/* ---- 申請前の3つの約束リスト ---- */
.rebuild-promises {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.rebuild-promises li {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  border: 3px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 6px 6px 0 #e2e8f0;
}

.rebuild-promises li:nth-child(1) {
  border-color: #f97316;
  box-shadow: 6px 6px 0 #ffedd5;
}

.rebuild-promises li:nth-child(2) {
  border-color: var(--r-teal-border);
  box-shadow: 6px 6px 0 var(--r-teal-light);
}

.rebuild-promises li:nth-child(3) {
  border-color: #60a5fa;
  box-shadow: 6px 6px 0 #dbeafe;
}

.rebuild-promises .promise-num {
  position: absolute;
  top: -16px;
  left: 20px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--r-teal);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.rebuild-promises li:nth-child(1) .promise-num {
  background: var(--r-orange);
}

.rebuild-promises h3 {
  margin: 14px 0 10px;
  font-size: 20px;
  line-height: 1.4;
}

.rebuild-promises p {
  margin: 0;
  color: var(--r-muted);
  font-size: 15px;
  line-height: 1.75;
}

.rebuild-promises .promise-warn {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 6px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

/* ---- 支給金額マトリクス表 ---- */
.matrix-section {
  max-width: 1180px;
  margin: 0 auto;
}

.matrix-switcher {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  justify-content: center;
}

.matrix-tab {
  min-height: 52px;
  padding: 10px 24px;
  border: 3px solid var(--r-teal);
  border-radius: 99px;
  background: #fff;
  color: var(--r-teal);
  font: inherit;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.15s ease;
}

.matrix-tab[aria-pressed="true"],
.matrix-tab.active {
  background: var(--r-teal);
  color: #fff;
  box-shadow: 0 4px 12px rgba(35, 95, 124, 0.25);
}

.rebuild-table-wrap {
  overflow-x: auto;
  border: 3px solid var(--r-teal);
  border-radius: 14px;
  background: #fff;
  box-shadow: 8px 8px 0 var(--r-teal-border);
}

.rebuild-matrix {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  text-align: center;
  font-size: 15px;
}

.rebuild-matrix th,
.rebuild-matrix td {
  padding: 16px 14px;
  border: 1px solid #dce7eb;
  vertical-align: middle;
}

.rebuild-matrix th {
  background: #f1f7f9;
  color: var(--r-ink);
  font-weight: 900;
}

.rebuild-matrix .matrix-cat-head {
  background: #235f7c;
  color: #fff;
  font-size: 15px;
  line-height: 1.4;
}

.rebuild-matrix .matrix-total-head {
  background: #17455c;
  color: #ffedd5;
  border-left: 2px solid #f97316;
  font-size: 16px;
  line-height: 1.4;
}

.rebuild-matrix .matrix-row-head {
  background: #f8fafc;
  font-weight: 800;
  text-align: left;
  line-height: 1.55;
}

.rebuild-matrix .matrix-num {
  font-size: 19px;
  font-weight: 900;
  color: var(--r-ink);
  white-space: nowrap;
}

.rebuild-matrix .matrix-total {
  font-size: 26px;
  font-weight: 950;
  color: #c2410c;
  background: #fff7ed;
  border-left: 2px solid #fdba74;
  white-space: nowrap;
}

.rebuild-matrix .matrix-total small {
  font-size: 16px;
  font-weight: 800;
  margin-left: 2px;
}

.matrix-notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.matrix-note-card {
  padding: 18px 20px;
  border-left: 6px solid var(--r-teal);
  border-radius: 8px;
  background: #f8fafc;
  font-size: 14px;
  line-height: 1.75;
}

.matrix-note-card.warn {
  border-left-color: var(--r-orange);
  background: #fff8f5;
}

.matrix-note-card b {
  display: block;
  margin-bottom: 6px;
  color: var(--r-ink);
  font-size: 15px;
}

/* ---- インタラクティブ診断 ---- */
.sim-form {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.sim-step {
  padding: 20px 24px;
  border: 3px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 4px 4px 0 #e2e8f0;
}

.sim-step legend {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
  font-size: 18px;
  font-weight: 900;
}

.sim-step legend span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--r-teal);
  color: #fff;
  font-size: 16px;
}

.sim-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.sim-options button {
  min-height: 48px;
  padding: 10px 18px;
  border: 2px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: var(--r-ink);
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 0 #e2e8f0;
  transition: all 0.15s ease;
}

.sim-options button:hover {
  border-color: var(--r-teal);
}

.sim-options button[aria-pressed="true"] {
  border-color: var(--r-teal);
  background: var(--r-teal);
  color: #fff;
  box-shadow: 0 3px 0 #143540;
}

.sim-result-box {
  max-width: 1180px;
  margin: 28px auto 0;
}

.sim-card {
  overflow: hidden;
  border: 4px solid var(--r-teal);
  border-radius: 16px;
  background: #fff;
  box-shadow: 8px 8px 0 var(--r-teal-border);
}

.sim-card.tone-wait {
  border-color: #d97706;
  box-shadow: 8px 8px 0 #fde68a;
}

.sim-card.tone-ng {
  border-color: #dc2626;
  box-shadow: 8px 8px 0 #fecaca;
}

.sim-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 26px;
  background: var(--r-teal);
  color: #fff;
}

.sim-card.tone-wait .sim-card-header {
  background: #b45309;
}

.sim-card.tone-ng .sim-card-header {
  background: #b91c1c;
}

.sim-card-icon {
  display: grid;
  place-items: center;
  flex: 0 0 54px;
  height: 54px;
  border-radius: 50%;
  background: #fff;
  color: var(--r-teal);
  font-size: 32px;
  font-weight: 950;
}

.sim-card.tone-wait .sim-card-icon {
  color: #b45309;
}

.sim-card.tone-ng .sim-card-icon {
  color: #b91c1c;
}

.sim-card-header h3 {
  margin: 0;
  font-size: 26px;
  line-height: 1.3;
}

.sim-card-header p {
  margin: 4px 0 0;
  font-size: 14px;
  opacity: 0.9;
}

.sim-card-body {
  padding: 24px 26px;
}

.sim-amount-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 24px;
  border-radius: 12px;
  background: #fff8f3;
  border: 2px solid #fdba74;
}

.sim-amount-banner .amount-label {
  font-size: 16px;
  font-weight: 800;
  color: #9a3412;
}

.sim-amount-banner .amount-val {
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 950;
  color: var(--r-orange);
}

.sim-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.sim-breakdown div {
  padding: 14px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.sim-breakdown dt {
  font-size: 12px;
  color: var(--r-muted);
  font-weight: 800;
}

.sim-breakdown dd {
  margin: 4px 0 0;
  font-size: 20px;
  font-weight: 900;
  color: var(--r-ink);
}

.sim-docs-block {
  margin-top: 24px;
  padding: 20px;
  border: 2px solid var(--r-teal-border);
  border-radius: 10px;
  background: #f1f8fa;
}

.sim-docs-block h4 {
  margin: 0 0 12px;
  font-size: 17px;
  color: var(--r-teal);
}

.sim-docs-block ol {
  margin: 0;
  padding-left: 22px;
}

.sim-docs-block li {
  margin: 6px 0;
  font-size: 15px;
  font-weight: 700;
}

.sim-notes-list {
  margin: 18px 0 0;
  padding-left: 20px;
}

.sim-notes-list li {
  margin: 8px 0;
  font-size: 14px;
  line-height: 1.7;
  color: #334155;
}

/* ---- 再建方法（加算支援金）の注意カード ---- */
.methods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
}

.method-card {
  padding: 24px;
  border: 3px solid #cbd5e1;
  border-radius: 14px;
  background: #fff;
  box-shadow: 6px 6px 0 #e2e8f0;
}

.method-card:nth-child(1) {
  border-color: #3b82f6;
  box-shadow: 6px 6px 0 #dbeafe;
}

.method-card:nth-child(2) {
  border-color: #10b981;
  box-shadow: 6px 6px 0 #d1fae5;
}

.method-card:nth-child(3) {
  border-color: #f59e0b;
  box-shadow: 6px 6px 0 #fef3c7;
}

.method-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 10px;
}

.method-card-head h3 {
  margin: 0;
  font-size: 22px;
}

.method-amount {
  font-size: 18px;
  font-weight: 900;
  color: var(--r-orange);
}

.method-card ul {
  margin: 0;
  padding-left: 18px;
}

.method-card li {
  margin: 8px 0;
  font-size: 14px;
  line-height: 1.7;
}

.method-warn {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 6px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

/* ---- FAQ アコーディオン ---- */
.faq-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.15s;
}

.faq-item[open] {
  border-color: var(--r-teal);
  box-shadow: 0 4px 12px rgba(35, 95, 124, 0.08);
}

.faq-item summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
  background: #fff;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-q-badge {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--r-teal);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.faq-item summary::after {
  content: "＋";
  margin-left: auto;
  font-size: 20px;
  color: var(--r-teal);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-body {
  padding: 16px 20px 20px 64px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 15px;
  line-height: 1.8;
  color: #334155;
}

.faq-body p {
  margin: 0 0 8px;
}

.faq-body p:last-child {
  margin-bottom: 0;
}

.faq-body ul {
  margin: 6px 0 8px;
  padding-left: 20px;
}

/* ---- 書類リストテーブル ---- */
.docs-table-wrap {
  max-width: 1180px;
  margin: 0 auto;
  overflow-x: auto;
  border: 2px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.docs-table th,
.docs-table td {
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
}

.docs-table th {
  background: #f1f7f9;
  font-weight: 900;
  color: var(--r-ink);
}

.docs-table td:nth-child(2) {
  font-weight: 800;
}

.docs-table .badge-req {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: #fee2e2;
  color: #991b1b;
  font-size: 11px;
  font-weight: 900;
}

.docs-table .badge-cond {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: #fef3c7;
  color: #92400e;
  font-size: 11px;
  font-weight: 900;
}

.docs-table .badge-opt {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: #e2e8f0;
  color: #475569;
  font-size: 11px;
  font-weight: 900;
}

/* ---- 八代市専用 相談・申請窓口カード ---- */
.rebuild-page .contact-card {
  display: block; /* uto-repair.css の 3列 grid を解除 */
  max-width: 1000px;
  margin: 0 auto;
  padding: 32px 36px;
  border: 4px solid var(--r-teal);
  border-radius: 16px;
  background: #fff;
  box-shadow: 8px 8px 0 var(--r-teal-border);
}

.rebuild-page .contact-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--r-line);
}

.rebuild-page .contact-org {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  background: var(--r-teal-light);
  color: var(--r-teal);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
}

.rebuild-page .contact-header h3 {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 900;
  color: var(--r-ink);
}

.rebuild-page .contact-header p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: #334155;
}

.rebuild-page .contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.rebuild-page .contact-item {
  padding: 18px 22px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.rebuild-page .contact-item.highlight {
  border-color: var(--r-teal);
  background: var(--r-teal-light);
}

.rebuild-page .contact-item dt {
  color: var(--r-muted);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 6px;
}

.rebuild-page .contact-item dd {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
  color: var(--r-ink);
}

.rebuild-page .contact-item dd a {
  color: var(--r-teal);
  text-decoration: none;
}

.rebuild-page .contact-item dd a:hover {
  text-decoration: underline;
}

.rebuild-page .contact-item.info dd {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
  color: #1e293b;
}

.rebuild-page .contact-notice {
  padding: 14px 18px;
  border-radius: 8px;
  background: #f1f5f9;
  font-size: 13px;
  line-height: 1.6;
  color: #475569;
}

/* レスポンシブ調整 */
@media (max-width: 900px) {
  .rebuild-keyfacts,
  .rebuild-promises,
  .methods-grid {
    grid-template-columns: 1fr;
  }
  .sim-breakdown {
    grid-template-columns: 1fr;
  }
  .rebuild-page .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .rebuild-keyfacts dd {
    font-size: 20px;
  }
  .matrix-tab {
    font-size: 15px;
    padding: 8px 16px;
  }
  .rebuild-matrix {
    font-size: 13px;
  }
  .sim-card-header {
    padding: 16px 18px;
  }
  .sim-card-header h3 {
    font-size: 22px;
  }
  .sim-card-body {
    padding: 18px;
  }
  .faq-body {
    padding-left: 20px;
  }
  .rebuild-page .contact-card {
    padding: 20px 18px;
  }
  .rebuild-page .contact-header h3 {
    font-size: 22px;
  }
  .rebuild-page .contact-item dd {
    font-size: 20px;
  }
}
