/* =========================================
   エリア検索ウィジェット ＆ 費用シミュレーター
   ========================================= */

/* ---------- エリア検索（サイドバー） ---------- */
.evcn-search-widget {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px;
}
.evcn-search-widget .esw-title {
  font-size: 1rem; font-weight: 800; color: #1d4ed8;
  border-bottom: 2px solid #1d4ed8; padding-bottom: 8px; margin-bottom: 16px;
}
.evcn-search-widget label {
  display: block; font-size: .78rem; font-weight: 700; color: #374151; margin: 12px 0 4px;
}
.evcn-search-widget select,
.evcn-search-widget input[type="text"] {
  width: 100%; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 8px;
  font-size: .9rem; background: #fff; color: #111827;
}
.evcn-search-widget .esw-btns { display: flex; gap: 10px; margin-top: 18px; }
.evcn-search-widget .esw-reset {
  flex: 1; padding: 10px; border: 1px solid #d1d5db; border-radius: 8px;
  background: #fff; color: #374151; font-weight: 700; cursor: pointer; font-size: .88rem;
}
.evcn-search-widget .esw-submit {
  flex: 1; padding: 10px; border: none; border-radius: 8px;
  background: #2563eb; color: #fff; font-weight: 800; cursor: pointer; font-size: .88rem;
}
.evcn-search-widget .esw-submit:hover { background: #1d4ed8; }

/* ---------- 費用シミュレーター ---------- */
.evcn-sim {
  border: 1.5px solid #93c5fd; border-radius: 16px; overflow: hidden;
  background: #fff; margin: 32px 0;
}
.evcn-sim-head {
  background: linear-gradient(135deg, #dbeafe, #e0f2fe);
  text-align: center; padding: 24px 16px;
}
.evcn-sim-head .t1 { font-size: 1.4rem; font-weight: 900; color: #111827; }
.evcn-sim-head .t1 b { color: #ea580c; }
.evcn-sim-head .t2 { font-size: .85rem; color: #4b5563; margin-top: 6px; }

.evcn-sim-body { padding: 24px 20px 28px; }

/* ステップインジケーター */
.evcn-sim-steps {
  display: flex; justify-content: center; align-items: flex-start; gap: 0; margin-bottom: 24px;
}
.evcn-sim-step { display: flex; flex-direction: column; align-items: center; width: 72px; position: relative; }
.evcn-sim-step:not(:last-child)::after {
  content: ""; position: absolute; top: 14px; left: calc(50% + 16px);
  width: calc(100% - 32px); height: 2px; background: #e5e7eb;
}
.evcn-sim-step .dot {
  width: 28px; height: 28px; border-radius: 50%; background: #e5e7eb; color: #9ca3af;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .82rem;
  position: relative; z-index: 1;
}
.evcn-sim-step.active .dot { background: #0ea5e9; color: #fff; }
.evcn-sim-step.done .dot { background: #93c5fd; color: #fff; }
.evcn-sim-step .lbl { font-size: .68rem; color: #6b7280; margin-top: 6px; white-space: nowrap; }

/* 質問パネル */
.evcn-sim-panel { display: none; }
.evcn-sim-panel.active { display: block; }
.evcn-sim-q { text-align: center; font-size: 1.1rem; font-weight: 800; color: #1d4ed8; margin-bottom: 6px; }
.evcn-sim-note { text-align: center; font-size: .82rem; color: #6b7280; margin-bottom: 18px; }

.evcn-sim-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.evcn-sim-opt {
  border: 1.5px solid #d1d5db; border-radius: 12px; background: #fff; cursor: pointer;
  padding: 18px 12px; text-align: center; font-weight: 700; font-size: .9rem; color: #111827;
  transition: border-color .15s, box-shadow .15s;
}
.evcn-sim-opt:hover { border-color: #0ea5e9; box-shadow: 0 2px 12px rgba(14,165,233,.15); }
.evcn-sim-opt .ic { font-size: 1.5rem; display: block; margin-bottom: 6px; }

.evcn-sim-back {
  display: block; margin: 18px auto 0; background: none; border: none;
  color: #6b7280; font-size: .82rem; cursor: pointer; text-decoration: underline;
}

/* 結果 */
.evcn-sim-result-title { text-align: center; font-size: 1.1rem; font-weight: 800; color: #111827; margin-bottom: 4px; }
.evcn-sim-result-sub { text-align: center; font-size: .8rem; color: #6b7280; margin-bottom: 18px; }
.evcn-sim-answers {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 18px;
}
.evcn-sim-answers span {
  background: #eff6ff; color: #1d4ed8; font-size: .76rem; font-weight: 700;
  padding: 4px 12px; border-radius: 999px;
}
.evcn-sim-price {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 480px; margin: 0 auto 16px;
}
.evcn-sim-price > div {
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px; text-align: center;
}
.evcn-sim-price .pl { font-size: .78rem; color: #6b7280; margin-bottom: 4px; }
.evcn-sim-price .pv { font-size: 1.3rem; font-weight: 900; color: #ea580c; }
.evcn-sim-caution { font-size: .75rem; color: #9ca3af; text-align: center; max-width: 520px; margin: 0 auto 20px; line-height: 1.7; }
.evcn-sim-ctabox { text-align: center; }
.evcn-sim-ctabox p { font-weight: 700; margin-bottom: 12px; }
.evcn-sim-ctabtn {
  display: inline-block; background: linear-gradient(135deg, #f97316, #ea580c); color: #fff;
  font-weight: 800; font-size: 1rem; padding: 16px 36px; border-radius: 999px;
  text-decoration: none; box-shadow: 0 6px 24px rgba(249,115,22,.35);
}
@media (max-width: 480px) {
  .evcn-sim-steps { transform: scale(.85); }
  .evcn-sim-price { grid-template-columns: 1fr; }
}
