/* ==============================
   ヴォクシー見積もり実例ページ用
   既存CSSの補助のみ
============================== */

.voxy-estimate-case-page .trust-v2-hero-head h1 {
  margin: 0 0 12px;
  padding: 0;
  color: #ffffff;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
}

.voxy-estimate-case-page .trust-v2-hero-car img {
  max-height: 300px;
  border-radius: 14px;
}

/* 3件一覧 */
.voxy-estimate-case-page .case-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.voxy-estimate-case-page .case-summary-card {
  display: flex;
  flex-direction: column;
  min-height: 210px;
  padding: 16px;
  border: 2px solid #d8e3f1;
  border-radius: 16px;
  background: #fff;
  color: #1d2b3f;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(19, 43, 85, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.voxy-estimate-case-page .case-summary-card:hover {
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(19, 43, 85, 0.12);
}

.voxy-estimate-case-page .case-summary-card.is-good {
  border-color: #bbf7d0;
  background: linear-gradient(180deg, #f0fdf4 0%, #fff 72%);
}

.voxy-estimate-case-page .case-summary-card.is-warn {
  border-color: #fed7aa;
  background: linear-gradient(180deg, #fff7ed 0%, #fff 72%);
}

.voxy-estimate-case-page .case-summary-card.is-caution {
  border-color: #fecaca;
  background: linear-gradient(180deg, #fff7f7 0%, #fff 72%);
}

.voxy-estimate-case-page .case-summary-label {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #132b55;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.voxy-estimate-case-page .case-summary-card strong {
  display: block;
  color: #132b55;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 900;
}

.voxy-estimate-case-page .case-summary-judge {
  display: inline-flex;
  width: fit-content;
  margin: 10px 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d8e3f1;
  color: #dc2626;
  font-size: 12px;
  font-weight: 900;
}

.voxy-estimate-case-page .case-summary-card p {
  flex: 1;
  margin: 0 !important;
  color: #64748b;
  font-size: 13px;
  line-height: 1.7;
  font-weight: 700;
}

.voxy-estimate-case-page .case-summary-link {
  display: inline-flex;
  margin-top: 12px;
  color: #284b83;
  font-size: 12px;
  font-weight: 900;
}

/* 総合判定 */
.voxy-estimate-case-page .case-result-box {
  margin: 14px 0 16px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 2px solid #d8e3f1;
  background: #fff;
}

.voxy-estimate-case-page .case-result-box.is-good {
  border-color: #86efac;
  background: linear-gradient(180deg, #f0fdf4 0%, #fff 75%);
}

.voxy-estimate-case-page .case-result-box.is-warn {
  border-color: #fdba74;
  background: linear-gradient(180deg, #fff7ed 0%, #fff 75%);
}

.voxy-estimate-case-page .case-result-box.is-caution {
  border-color: #fca5a5;
  background: linear-gradient(180deg, #fff7f7 0%, #fff 75%);
}

.voxy-estimate-case-page .case-result-label {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.voxy-estimate-case-page .case-result-box strong {
  display: block;
  margin-bottom: 6px;
  color: #132b55;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.45;
}

.voxy-estimate-case-page .case-result-box p {
  margin: 0 !important;
  color: #475569;
  font-size: 14px;
  line-height: 1.8;
  font-weight: 700;
}

/* 見積もり条件 */
.voxy-estimate-case-page .case-spec-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 18px;
}

.voxy-estimate-case-page .case-spec-grid div {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #d8e3f1;
  background: #f4f8fc;
}

.voxy-estimate-case-page .case-spec-grid span {
  display: block;
  margin-bottom: 4px;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
}

.voxy-estimate-case-page .case-spec-grid strong {
  display: block;
  color: #132b55;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.45;
}

/* 画像2枚比較（依頼見積もりは小さく、赤ペン診断は大きく） */
.voxy-estimate-case-page .case-image-compare {
  display: grid;
  grid-template-columns: minmax(0, 0.34fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin: 18px 0;
}

.voxy-estimate-case-page .case-image-card {
  padding: 12px;
  border: 1px solid #d8e3f1;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(19, 43, 85, 0.05);
}

.voxy-estimate-case-page .case-image-card:not(.is-akapen) {
  padding: 10px;
}

.voxy-estimate-case-page .case-image-card:not(.is-akapen) .case-image-label {
  font-size: 10px;
  padding: 2px 8px;
}

.voxy-estimate-case-page .case-image-card.is-akapen {
  border-color: #fecaca;
  background: linear-gradient(180deg, #fff7f7 0%, #fff 75%);
  padding: 14px;
}

.voxy-estimate-case-page .case-image-label {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #132b55;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.voxy-estimate-case-page .case-image-card.is-akapen .case-image-label {
  background: #dc2626;
}

.voxy-estimate-case-page .case-image-placeholder,
.voxy-estimate-case-page .case-image-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.voxy-estimate-case-page .case-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed #cbd5e1;
  background:
    linear-gradient(135deg, rgba(244, 248, 252, .9), rgba(255,255,255,.96));
  color: #64748b;
  text-align: center;
}

.voxy-estimate-case-page .case-image-card:not(.is-akapen) .case-image-placeholder {
  min-height: 180px;
}

.voxy-estimate-case-page .case-image-card.is-akapen .case-image-placeholder {
  min-height: 480px;
}

.voxy-estimate-case-page .case-image-card:not(.is-akapen) .case-image-placeholder span {
  font-size: 12px;
}

.voxy-estimate-case-page .case-image-card:not(.is-akapen) .case-image-placeholder small {
  font-size: 10px;
}

.voxy-estimate-case-page .case-image-placeholder span {
  display: block;
  color: #132b55;
  font-size: 15px;
  font-weight: 900;
}

.voxy-estimate-case-page .case-image-placeholder small {
  display: block;
  margin-top: 6px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
}

/* 実際の見積もり画像 */
.voxy-estimate-case-page .case-real-estimate-card,
.voxy-estimate-case-page .case-diagnosis-image-card {
  margin: 18px 0;
  padding: 14px;
  border: 1px solid #d8e3f1;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(19, 43, 85, 0.05);
}

.voxy-estimate-case-page .case-real-estimate-card img,
.voxy-estimate-case-page .case-diagnosis-image-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.voxy-estimate-case-page .case-diagnosis-image-card {
  border-color: #fecaca;
  background: linear-gradient(180deg, #fff7f7 0%, #fff 75%);
}

.voxy-estimate-case-page .case-image-note,
.voxy-estimate-case-page .case-rebuild-note {
  margin: 10px 0 0 !important;
  padding: 10px 12px !important;
  border-radius: 10px;
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  line-height: 1.7;
  font-weight: 700;
}

.voxy-estimate-case-page .case-rebuild-note {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
}

/* CTA画像枠 */
.voxy-estimate-case-page .case-cta-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  border: 2px dashed rgba(255, 255, 255, .42);
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .88);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

/* レスポンシブ */

  .voxy-estimate-case-page .trust-v2-hero-car img {
    max-height: none;
  }

  .voxy-estimate-case-page .case-summary-grid {
    grid-template-columns: 1fr;
  }

  .voxy-estimate-case-page .case-spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .voxy-estimate-case-page .case-image-compare {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .voxy-estimate-case-page .case-image-card:not(.is-akapen) {
    max-width: 260px;
    margin: 0 auto;
  }

  .voxy-estimate-case-page .case-image-card:not(.is-akapen) .case-image-placeholder {
    min-height: 140px;
  }

  .voxy-estimate-case-page .case-image-card.is-akapen .case-image-placeholder {
    min-height: 360px;
  }
}

@media (max-width: 640px) {
  .voxy-estimate-case-page .case-spec-grid {
    grid-template-columns: 1fr;
  }

  .voxy-estimate-case-page .case-image-card:not(.is-akapen) {
    max-width: 220px;
  }

  .voxy-estimate-case-page .case-image-card:not(.is-akapen) .case-image-placeholder {
    min-height: 120px;
  }

  .voxy-estimate-case-page .case-image-card.is-akapen .case-image-placeholder {
    min-height: 300px;
  }

  .voxy-estimate-case-page .trust-v2-hero-head h1 {
    font-size: 26px;
    font-weight: bold;
  }
}
/* 簡略目次 */
.voxy-estimate-case-page .case-simple-toc {
  display: grid;
  grid-template-columns: auto repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
  margin: 18px 0 22px;
  padding: 12px;
  border: 1px solid #dbeafe;
  border-left: 4px solid #2563eb;
  border-radius: 8px;
  background: #f8fbff;
}

.voxy-estimate-case-page .case-simple-toc-label {
  color: #0756a6;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.voxy-estimate-case-page .case-simple-toc a {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #e5edf8;
  border-radius: 6px;
  background: #fff;
  color: #0f3f91;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
  text-decoration: none;
}

.voxy-estimate-case-page .case-simple-toc a::after {
  content: "›";
  margin-left: auto;
  padding-left: 8px;
  color: #2563eb;
  font-weight: 900;
}

.voxy-estimate-case-page .case-simple-toc a:hover,
.voxy-estimate-case-page .case-simple-toc a:focus {
  border-color: #bfdbfe;
  color: #c01818;
  text-decoration: none;
}

@media (max-width: 900px) {
  .voxy-estimate-case-page .case-simple-toc {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .voxy-estimate-case-page .case-simple-toc-label {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .voxy-estimate-case-page .case-simple-toc {
    grid-template-columns: 1fr;
    margin: 14px 0 18px;
    padding: 10px;
  }
}
