/* Restrained fee preview, matching the existing blue and paper palette. */
body.estimate-page { color: #293947; font-family: Meiryo, "Hiragino Kaku Gothic ProN", sans-serif; }
body.estimate-page main.main_post { box-sizing: border-box; width: calc(100% - 48px); max-width: 1100px; margin: 40px auto 64px; padding: 42px; background: #fff; }
.estimate-page-content { font-size: 16px; line-height: 1.95; letter-spacing: .015em; }
.estimate-page-content h1 { margin: 18px 0 20px; color: #293947; font-family: inherit; font-size: 28px; font-weight: 700; line-height: 1.65; }
.estimate-page-content h2 { margin: 30px 0 16px; color: #1b425d; font-family: inherit; font-size: 22px; font-weight: 700; line-height: 1.65; }
.estimate-page-content h3 { font-size: 18px; line-height: 1.7; }
.estimate-page-content p { margin: 0 0 18px; }
.estimate-page-content a { color: #1b425d; text-underline-offset: .2em; }
.estimate-page-content a:focus-visible { outline: 2px solid #1b425d; outline-offset: 4px; }
.estimate-breadcrumb { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 0 0 20px; font-size: 13px; line-height: 1.8; }
.estimate-next { margin: 36px 0 28px; padding: 24px; border-top: 1px solid #9bb5c7; border-bottom: 1px solid #9bb5c7; background: #f6f9fb; }
.estimate-next h2 { margin-top: 0; }
.estimate-next .estimate-actions { margin-bottom: 0; }
.estimate-actions > a { display: flex; align-items: center; justify-content: center; flex: 1 1 200px; min-height: 50px; padding: 12px 20px; border: 1px solid #7f9caf; border-radius: 2px; background: #fff; text-decoration: none; color: #1b425d; }
.estimate-actions > a.estimate-line { border-color: #65976b; color: #23572c; }
.estimate-about { margin: 30px 0; }
.estimate-about ul { padding-left: 1.4em; }
.estimate-about li { margin: 8px 0; }
.estimate-source { margin: 24px 0 0; padding-top: 18px; border-top: 1px solid #cbd8e2; font-size: 13px; line-height: 1.85; color: #4e5e6b; }
#estimate-widget { color: #293947; font-family: inherit; line-height: 1.85; }
#estimate-widget [hidden] { display: none !important; }
#estimate-widget *, #estimate-widget *::before, #estimate-widget *::after { box-sizing: border-box; }
.estimate-notice { margin: 0 0 28px; padding: 18px 22px; background: #f3f7fa; border-left: 3px solid #527a94; color: #293947; }
.estimate-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; align-items: start; }
.estimate-inputs, .estimate-results { min-width: 0; }
.estimate-results { padding: 24px; border: 1px solid #bdcdd8; background: #f7fafc; }
#estimate-widget fieldset { min-width: 0; border: 0; padding: 0; margin: 24px 0 0; }
#estimate-widget legend { padding: 0; margin: 0 0 18px; font-size: 19px; font-weight: 700; color: #1b425d; }
.estimate-field { display: block; margin: 0 0 22px; }
.estimate-field > label, .estimate-field > .estimate-label { display: block; margin: 0 0 7px; font-weight: 700; }
.estimate-field small, .estimate-help { display: block; margin: 6px 0 0; color: #4e5e6b; font-size: 13px; line-height: 1.8; }
#estimate-widget select, #estimate-widget input[type="number"] { display: block; width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #8099ac; border-radius: 2px; background: #fff; color: #293947; font: inherit; font-size: 16px; line-height: 1.5; }
#estimate-widget input[type="number"] { max-width: 160px; }
#estimate-widget select:focus-visible, #estimate-widget input:focus-visible, #estimate-widget button:focus-visible, #estimate-widget summary:focus-visible { outline: 2px solid #1b425d; outline-offset: 3px; }
#estimate-widget [aria-invalid="true"] { border-color: #9c3b32; outline-color: #9c3b32; }
.estimate-check { display: flex; align-items: flex-start; gap: 11px; min-height: 46px; margin: 0 0 10px; padding: 10px 0; cursor: pointer; }
.estimate-check input { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 4px; accent-color: #1b425d; }
.estimate-check span { min-width: 0; overflow-wrap: anywhere; }
.estimate-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0; }
#estimate-widget button { min-height: 48px; padding: 10px 20px; border: 1px solid #7f9caf; border-radius: 2px; background: #fff; color: #1b425d; font: inherit; font-size: 16px; cursor: pointer; }
#estimate-widget button:hover { background: #edf3f7; }
#estimate-widget button:disabled, #estimate-widget input:disabled, #estimate-widget select:disabled { cursor: default; opacity: .65; }
#estimate-errors { margin: 20px 0; padding: 15px 18px 15px 36px; border-left: 3px solid #9c3b32; background: #fff6f4; color: #7c2f28; font-size: 14px; }
#estimate-errors li { margin: 4px 0; }
#estimate-status { margin: 12px 0; font-size: 13px; color: #4e5e6b; }
#estimate-result h2 { margin: 0 0 18px; font: inherit; font-size: 21px; font-weight: 700; color: #1b425d; }
#estimate-result h3 { margin: 26px 0 10px; font-size: 16px; color: #293947; }
#estimate-result p { margin: 0 0 16px; }
#estimate-result .estimate-total-label { margin-bottom: 6px; font-size: 14px; }
#estimate-result .estimate-total { margin: 0 0 14px; color: #1b425d; font-size: clamp(25px, 3vw, 36px); font-weight: 700; line-height: 1.5; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.estimate-result-note, .estimate-empty { font-size: 14px; line-height: 1.85; }
#estimate-widget .estimate-breakdown { width: 100%; margin: 24px 0; border-collapse: collapse; table-layout: fixed; font-size: 14px; line-height: 1.75; }
.estimate-breakdown caption { text-align: left; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
#estimate-widget .estimate-breakdown th, #estimate-widget .estimate-breakdown td { padding: 10px; border-bottom: 1px solid #cbd8e2; background: transparent; color: #293947; overflow-wrap: anywhere; vertical-align: top; }
.estimate-breakdown th:first-child { width: 62%; text-align: left; }
.estimate-breakdown td, .estimate-breakdown thead th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.estimate-breakdown tbody th { font-weight: 400; }
#estimate-widget .estimate-breakdown tfoot th, #estimate-widget .estimate-breakdown tfoot td { border-top: 2px solid #8099ac; background: #edf3f7; font-weight: 700; }
.estimate-office-details { padding: 12px 0; border-top: 1px solid #cbd8e2; font-size: 14px; }
.estimate-office-details summary { min-height: 45px; cursor: pointer; color: #1b425d; font-weight: 700; }
.estimate-office-details ul, .estimate-unknown { padding-left: 1.3em; margin: 8px 0 0; font-size: 14px; }
.estimate-office-details li, .estimate-unknown li { margin: 7px 0; overflow-wrap: anywhere; }
@media (max-width: 850px) {
  .estimate-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 600px) {
  body.estimate-page main.main_post { width: calc(100% - 32px); margin: 32px 16px 48px; padding: 26px 20px; }
  .estimate-page-content h1 { font-size: 24px; }
  .estimate-page-content h2 { font-size: 21px; }
  .estimate-next { padding: 20px 16px; }
  .estimate-notice { padding: 16px; font-size: 14px; }
  .estimate-results { padding: 20px 16px; }
  #estimate-result h2 { font-size: 20px; }
  #estimate-widget .estimate-breakdown { font-size: 13px; }
  #estimate-widget .estimate-breakdown th, #estimate-widget .estimate-breakdown td { padding: 10px 6px; }
  .estimate-actions > button { flex: 1 1 140px; }
}
@media print {
  .estimate-actions { display: none; }
  .estimate-layout { display: block; }
  .estimate-results { margin-top: 24px; }
  .estimate-notice { break-inside: avoid; }
}
