/* Weathercock HP見積もりシミュレーター */
.wcest {
  --wcest-navy: #1b3a5c;
  --wcest-accent: #2f6db3;
  --wcest-line: #06c755;
  --wcest-border: #d8dee6;
  --wcest-bg: #f5f8fb;
  --wcest-text: #22303e;
  max-width: 860px;
  margin: 0 auto;
  color: var(--wcest-text);
  font-size: 15px;
  line-height: 1.6;
  box-sizing: border-box;
}
.wcest *, .wcest *::before, .wcest *::after { box-sizing: border-box; }

.wcest-section { margin-bottom: 28px; }
.wcest-heading {
  font-size: 17px;
  font-weight: 700;
  color: var(--wcest-navy);
  border-left: 4px solid var(--wcest-accent);
  padding-left: 10px;
  margin: 0 0 12px;
}

/* プランカード */
.wcest-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.wcest-plan {
  display: block;
  border: 2px solid var(--wcest-border);
  border-radius: 10px;
  padding: 14px 12px;
  cursor: pointer;
  background: #fff;
  text-align: center;
}
.wcest-plan input { position: absolute; opacity: 0; pointer-events: none; }
.wcest-plan:has(input:checked) { border-color: var(--wcest-accent); background: var(--wcest-bg); }
.wcest-plan-label { display: block; font-weight: 700; font-size: 16px; }
.wcest-plan-price { display: block; color: var(--wcest-accent); font-weight: 700; font-size: 18px; margin-top: 4px; }
.wcest-plan-pages { display: block; font-size: 12px; color: #66788c; margin-top: 2px; }

/* ページ数 */
.wcest-pages { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.wcest-pages label { font-weight: 700; }
.wcest-step {
  width: 36px; height: 36px;
  border: 1px solid var(--wcest-border);
  border-radius: 8px;
  background: #fff;
  font-size: 18px;
  cursor: pointer;
}
.wcest-pages-input {
  width: 72px; height: 36px;
  text-align: center;
  border: 1px solid var(--wcest-border);
  border-radius: 8px;
  font-size: 16px;
}
.wcest-pages-note { font-size: 12px; color: #66788c; flex-basis: 100%; }

/* オプション行 */
.wcest-options { display: flex; flex-direction: column; gap: 8px; }
.wcest-option {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px;
  border: 1px solid var(--wcest-border);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  cursor: pointer;
}
.wcest-option input { margin-right: 2px; }
.wcest-option-label { font-weight: 600; }
.wcest-option-price { margin-left: auto; font-weight: 700; color: var(--wcest-navy); white-space: nowrap; }
.wcest-option-note { flex-basis: 100%; font-size: 12px; color: #66788c; padding-left: 24px; }

/* 結果 */
.wcest-result {
  border: 2px solid var(--wcest-navy);
  border-radius: 12px;
  padding: 18px;
  background: var(--wcest-bg);
}
.wcest-totals {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.wcest-total {
  background: #fff;
  border: 1px solid var(--wcest-border);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex; flex-direction: column;
}
.wcest-total-label { font-size: 12px; color: #66788c; }
.wcest-total-value { font-size: 22px; font-weight: 700; color: var(--wcest-navy); }
.wcest-total-main { border-color: var(--wcest-accent); }
.wcest-total-main .wcest-total-value { color: var(--wcest-accent); font-size: 26px; }

.wcest-breakdown { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; }
.wcest-breakdown th, .wcest-breakdown td { border: 1px solid var(--wcest-border); padding: 8px 10px; text-align: left; }
.wcest-breakdown th { background: var(--wcest-navy); color: #fff; }
.wcest-breakdown .wcest-amount { text-align: right; white-space: nowrap; font-weight: 600; }
.wcest-breakdown .wcest-running-row td { background: #eef3f8; color: #44566b; font-weight: 400; }

.wcest-note { font-size: 12px; color: #66788c; margin: 10px 0 0; }

.wcest-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.wcest-copy {
  border: 1px solid var(--wcest-navy);
  color: var(--wcest-navy);
  background: #fff;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
}
.wcest-cta {
  background: var(--wcest-accent);
  color: #fff !important;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 700;
  text-decoration: none !important;
}
.wcest-cta-line { background: var(--wcest-line); }

@media (max-width: 640px) {
  .wcest-plans { grid-template-columns: 1fr; }
  .wcest-totals { grid-template-columns: 1fr; }
  .wcest-total-value { font-size: 20px; }
}
