/* =============================================================================
   Grayin Real Estate - main.css
   ==========================================================================
   不動産売却ナビ専用
   配色: ネイビー(見出し/罫線) + 赤(重要) + オレンジ(CTA/ポイント) + 黄(マーカー)
   ベースは白、青のベタ塗りは最小限
   ========================================================================== */

/* ------------------- Tokens ------------------- */
:root {
  --re-navy:        #1e3a5f;
  --re-navy-dark:   #0f2543;
  --re-navy-light:  #4a6b94;
  --re-red:         #c83434;
  --re-red-dark:    #a02828;
  --re-red-light:   #fae5e5;
  --re-orange:      #e76f51;
  --re-orange-dark: #c4593e;
  --re-orange-light:#fdebe5;
  --re-yellow:      #fff176;
  --re-yellow-bg:   rgba(255, 241, 118, 0.55);
  --re-blue-soft:   #e8f0f8;
  --re-gray-soft:   #f7f8fa;
  --re-gray-mid:    #e5e7eb;
  --re-gray-dark:   #c5c9d1;
  --re-text:        #222b3a;
  --re-text-muted:  #5c6577;
  --re-text-subtle: #8a93a8;
  --re-bg:          #ffffff;

  --re-radius-sm: 4px;
  --re-radius-md: 6px;
  --re-radius-lg: 10px;

  --re-shadow-sm: 0 1px 3px rgba(30, 58, 95, 0.06);
  --re-shadow-md: 0 2px 8px rgba(30, 58, 95, 0.08);
  --re-shadow-lg: 0 8px 24px rgba(30, 58, 95, 0.1);

  --re-font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI",
             "Meiryo UI", "Segoe UI", system-ui, sans-serif;

  --re-container-max: 1100px;
  --re-container-px: 20px;
}

/* ------------------- Reset / Base ------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--re-font);
  color: var(--re-text);
  background: var(--re-bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--re-navy); text-decoration: none; }
a:hover { color: var(--re-orange); }
h1, h2, h3, h4, h5, h6 { font-family: var(--re-font); line-height: 1.4; }

/* ------------------- Layout ------------------- */
.re-container {
  max-width: var(--re-container-max);
  margin: 0 auto;
  padding: 0 var(--re-container-px);
}
.re-container-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 var(--re-container-px);
}

/* ------------------- Top Bar ------------------- */
.re-topbar {
  background: var(--re-gray-soft);
  color: var(--re-text-muted);
  padding: 6px 0;
  font-size: 12px;
  border-bottom: 1px solid var(--re-gray-mid);
}
.re-topbar .re-container { text-align: right; }

/* ------------------- Header ------------------- */
.re-header {
  background: #fff;
  border-bottom: 1px solid var(--re-gray-mid);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.re-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.re-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--re-navy);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.re-logo .accent { color: var(--re-orange); }
.re-nav { display: flex; align-items: center; gap: 4px; }
.re-nav a {
  color: var(--re-text);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--re-radius-sm);
  transition: color 0.15s;
}
.re-nav a:hover { color: var(--re-orange); }
.re-nav a.re-head-cta {
  background: var(--re-orange);
  color: #fff;
  padding: 8px 16px;
  margin-left: 8px;
}
.re-nav a.re-head-cta:hover { background: var(--re-orange-dark); color: #fff; }

.re-nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.re-nav-toggle span { display: block; width: 24px; height: 2px; background: var(--re-navy); margin: 4px 0; }

/* ------------------- Buttons ------------------- */
.re-btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: var(--re-radius-sm);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  border: 0;
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1.4;
}
.re-btn-primary {
  background: var(--re-orange);
  color: #fff;
  box-shadow: 0 2px 6px rgba(231, 111, 81, 0.3);
}
.re-btn-primary:hover { background: var(--re-orange-dark); color: #fff; }
.re-btn-secondary {
  background: #fff;
  color: var(--re-navy);
  border: 1.5px solid var(--re-navy);
}
.re-btn-secondary:hover { background: var(--re-navy); color: #fff; }
.re-btn-ghost {
  background: transparent;
  color: var(--re-navy);
  border: 1.5px solid var(--re-gray-mid);
}
.re-btn-ghost:hover { border-color: var(--re-orange); color: var(--re-orange); }
.re-btn-lg { padding: 16px 32px; font-size: 16px; }
.re-btn-block { display: block; width: 100%; }

/* ------------------- Hero ------------------- */
.re-hero {
  background: #fff;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.re-hero::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, var(--re-navy) 0%, var(--re-orange) 100%);
}
.re-hero__title {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  color: var(--re-navy);
  margin: 0 0 16px;
  line-height: 1.5;
}
.re-hero__title .marker {
  background: linear-gradient(transparent 60%, var(--re-yellow-bg) 60%);
  padding: 0 4px;
}
.re-hero__subtitle {
  font-size: 17px;
  color: var(--re-text-muted);
  margin: 0 0 28px;
  line-height: 1.7;
}
.re-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ------------------- Emergency Callout（控えめ・archive上部用） ------------------- */
.re-kinkyu-callout {
  background: #fff;
  border: 1px solid var(--re-red);
  border-left: 4px solid var(--re-red);
  border-radius: var(--re-radius-sm);
  padding: 12px 16px;
  margin-bottom: 24px;
  font-size: 14px;
}
.re-kinkyu-callout__head {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.re-kinkyu-callout__label {
  background: var(--re-red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 3px;
  white-space: nowrap;
}
.re-kinkyu-callout__lead {
  color: var(--re-text);
  font-size: 13px;
  line-height: 1.6;
}
.re-kinkyu-callout__lead a {
  color: var(--re-red);
  font-weight: 700;
  text-decoration: underline;
}
.re-kinkyu-callout__lead a:hover { color: var(--re-red-dark); }

/* ------------------- Stats ------------------- */
.re-stats {
  padding: 36px 0;
  background: var(--re-gray-soft);
  border-top: 1px solid var(--re-gray-mid);
  border-bottom: 1px solid var(--re-gray-mid);
}
.re-stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  text-align: center;
}
.re-stat { padding: 12px; border-right: 1px solid var(--re-gray-mid); }
.re-stat:last-child { border-right: none; }
.re-stat__num {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: var(--re-red);
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.re-stat__label {
  color: var(--re-text-muted);
  font-size: 13px;
  margin-top: 8px;
}

/* ------------------- Section Title ------------------- */
.re-section {
  padding: 60px 0;
}
.re-section--alt { background: var(--re-gray-soft); }
.re-section-title {
  text-align: center;
  margin-bottom: 36px;
}
.re-section-title h2 {
  font-size: 26px;
  color: var(--re-navy);
  margin: 0 0 8px;
  position: relative;
  display: inline-block;
  padding: 0 32px;
}
.re-section-title h2::before,
.re-section-title h2::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 24px;
  height: 2px;
  background: var(--re-orange);
}
.re-section-title h2::before { left: 0; }
.re-section-title h2::after { right: 0; }
.re-section-title .lead { color: var(--re-text-muted); font-size: 14px; margin: 0; }

/* ------------------- Cards ------------------- */
.re-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.re-cards--2 { grid-template-columns: repeat(2, 1fr); }
.re-cards--4 { grid-template-columns: repeat(4, 1fr); }
.re-card {
  background: #fff;
  border: 1px solid var(--re-gray-mid);
  border-top: 3px solid var(--re-navy);
  border-radius: var(--re-radius-md);
  padding: 24px;
  transition: all 0.15s;
}
.re-card:hover {
  border-top-color: var(--re-orange);
  box-shadow: var(--re-shadow-md);
  transform: translateY(-2px);
}
.re-card__tag {
  display: inline-block;
  background: var(--re-red-light);
  color: var(--re-red);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 12px;
}
.re-card__tag--popular { background: var(--re-orange-light); color: var(--re-orange-dark); }
.re-card__tag--new { background: var(--re-blue-soft); color: var(--re-navy); }
.re-card__title {
  color: var(--re-navy);
  font-size: 18px;
  margin: 0 0 8px;
  font-weight: 700;
}
.re-card__title a { color: inherit; }
.re-card__title a:hover { color: var(--re-orange); }
.re-card__excerpt {
  color: var(--re-text-muted);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}
.re-card__link {
  color: var(--re-navy);
  font-size: 14px;
  font-weight: 600;
  margin-top: 16px;
  display: inline-block;
}
.re-card__link::after { content: " ›"; color: var(--re-orange); font-weight: 700; }
.re-card__link:hover { color: var(--re-orange); }

/* Card with situation icon */
.re-card__icon {
  width: 48px;
  height: 48px;
  background: var(--re-blue-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--re-navy);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
}

/* ------------------- Article ------------------- */
.re-article {
  max-width: 820px;
  margin: 0 auto;
}
.re-breadcrumb {
  font-size: 13px;
  color: var(--re-text-muted);
  margin-bottom: 16px;
}
.re-breadcrumb a { color: var(--re-navy); }
.re-breadcrumb .sep { margin: 0 6px; color: var(--re-gray-dark); }

.re-article__title {
  font-size: clamp(22px, 3.5vw, 28px);
  color: var(--re-navy);
  margin: 0 0 16px;
  line-height: 1.5;
}
.re-article__meta {
  font-size: 13px;
  color: var(--re-text-muted);
  border-bottom: 1px solid var(--re-gray-mid);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.re-article__body h2 {
  font-size: 22px;
  color: var(--re-navy);
  margin: 36px 0 16px;
  padding: 4px 0 8px 14px;
  border-left: 5px solid var(--re-orange);
  border-bottom: 2px solid var(--re-gray-mid);
}
.re-article__body h3 {
  font-size: 18px;
  color: var(--re-navy);
  margin: 28px 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px dotted var(--re-gray-dark);
}
.re-article__body h4 {
  font-size: 16px;
  color: var(--re-navy);
  margin: 20px 0 8px;
}
.re-article__body p {
  margin: 0 0 16px;
  color: var(--re-text);
}
.re-article__body p .marker,
.re-article__body .marker {
  background: linear-gradient(transparent 60%, var(--re-yellow-bg) 60%);
  font-weight: 600;
}
.re-article__body strong { color: var(--re-red); }
.re-article__body ul,
.re-article__body ol { margin: 0 0 16px; padding-left: 24px; }
.re-article__body li { margin-bottom: 6px; }

/* ------------------- Info / Point / Warning Boxes ------------------- */
.re-box {
  padding: 14px 18px;
  border-radius: 0 var(--re-radius-sm) var(--re-radius-sm) 0;
  margin: 20px 0;
  border-left: 4px solid;
}
.re-box__label {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 4px;
  display: block;
}
.re-box--info {
  background: #fafbfd;
  border-color: var(--re-navy);
  border-top: 1px solid var(--re-navy-light);
  border-right: 1px solid var(--re-navy-light);
  border-bottom: 1px solid var(--re-navy-light);
}
.re-box--info .re-box__label { color: var(--re-navy); }
.re-box--point {
  background: var(--re-orange-light);
  border-color: var(--re-orange);
}
.re-box--point .re-box__label { color: var(--re-orange-dark); }
.re-box--warning {
  background: var(--re-red-light);
  border-color: var(--re-red);
}
.re-box--warning .re-box__label { color: var(--re-red); }

/* ------------------- Inline CTA Box ------------------- */
.re-cta-inline {
  background: #fff;
  border: 2px solid var(--re-navy);
  padding: 28px;
  border-radius: var(--re-radius-md);
  text-align: center;
  margin: 36px 0;
  position: relative;
}
.re-cta-inline::before {
  content: attr(data-badge);
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--re-orange);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 12px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.re-cta-inline__title {
  color: var(--re-navy);
  font-size: 20px;
  margin: 0 0 8px;
  font-weight: 700;
}
.re-cta-inline__text {
  color: var(--re-text-muted);
  font-size: 14px;
  margin: 0 0 18px;
}

/* ------------------- Tables ------------------- */
.re-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  border: 1px solid var(--re-gray-mid);
  font-size: 14px;
}
.re-table th, .re-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--re-gray-mid);
  border-right: 1px solid var(--re-gray-mid);
  text-align: left;
}
.re-table th:last-child, .re-table td:last-child { border-right: none; }
.re-table th {
  background: var(--re-blue-soft);
  color: var(--re-navy);
  font-weight: 700;
  border-bottom: 2px solid var(--re-navy);
}
.re-table tr:nth-child(even) td { background: var(--re-gray-soft); }
.re-table td.num { color: var(--re-red); font-weight: 700; text-align: right; }
.re-table td.highlight { background: var(--re-yellow-bg) !important; font-weight: 700; }

/* ------------------- Checklist ------------------- */
.re-checklist {
  background: var(--re-gray-soft);
  border: 1px solid var(--re-gray-mid);
  border-radius: var(--re-radius-md);
  padding: 20px 24px;
  margin: 24px 0;
}
.re-checklist__title {
  color: var(--re-navy);
  font-size: 16px;
  margin: 0 0 12px;
  padding-left: 12px;
  border-left: 4px solid var(--re-orange);
}
.re-checklist ul { list-style: none; padding: 0; margin: 0; }
.re-checklist li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 14px;
  border-bottom: 1px dotted var(--re-gray-dark);
}
.re-checklist li:last-child { border-bottom: none; }
.re-checklist li::before {
  content: "✓";
  position: absolute;
  left: 4px;
  top: 8px;
  color: var(--re-orange);
  font-weight: 700;
  font-size: 16px;
}

/* ------------------- Forms ------------------- */
.re-form { max-width: 640px; margin: 0 auto; }
.re-form__group { margin-bottom: 20px; }
.re-form__label {
  display: block;
  font-weight: 700;
  color: var(--re-navy);
  font-size: 14px;
  margin-bottom: 6px;
}
.re-form__label .required {
  background: var(--re-red);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 8px;
  font-weight: 700;
}
.re-form__input,
.re-form__select,
.re-form__textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--re-gray-mid);
  border-radius: var(--re-radius-sm);
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  color: var(--re-text);
  transition: border-color 0.15s;
}
.re-form__input:focus,
.re-form__select:focus,
.re-form__textarea:focus {
  outline: none;
  border-color: var(--re-orange);
  box-shadow: 0 0 0 3px rgba(231, 111, 81, 0.15);
}
.re-form__textarea { min-height: 140px; resize: vertical; }
.re-form__hint {
  font-size: 12px;
  color: var(--re-text-muted);
  margin-top: 4px;
}
.re-form__honey { display: none !important; }
.re-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.re-form__consent {
  background: var(--re-gray-soft);
  padding: 14px 18px;
  border-radius: var(--re-radius-sm);
  margin: 20px 0;
  font-size: 14px;
}
.re-form__consent label { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.re-form__consent input[type="checkbox"] { margin-top: 4px; }

/* ------------------- Sidebar ------------------- */
.re-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  max-width: var(--re-container-max);
  margin: 0 auto;
  padding: 0 var(--re-container-px);
}
.re-layout--single { grid-template-columns: 1fr; max-width: 820px; }
.re-sidebar { font-size: 14px; }
.re-sidebar__block {
  background: var(--re-gray-soft);
  border: 1px solid var(--re-gray-mid);
  border-radius: var(--re-radius-md);
  padding: 18px;
  margin-bottom: 16px;
}
.re-sidebar__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--re-navy);
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--re-gray-mid);
}
.re-sidebar__list { list-style: none; padding: 0; margin: 0; }
.re-sidebar__list li { padding: 6px 0; border-bottom: 1px dotted var(--re-gray-mid); }
.re-sidebar__list li:last-child { border-bottom: none; }
.re-sidebar__list a { color: var(--re-text); }
.re-sidebar__list a:hover { color: var(--re-orange); }

/* ------------------- Pagination ------------------- */
.re-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 32px 0;
}
.re-pagination .page-numbers,
.re-pagination a {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--re-gray-mid);
  border-radius: var(--re-radius-sm);
  color: var(--re-navy);
  text-decoration: none;
  background: #fff;
  font-size: 14px;
}
.re-pagination .current { background: var(--re-navy); color: #fff; border-color: var(--re-navy); }
.re-pagination a:hover { border-color: var(--re-orange); color: var(--re-orange); }

/* ------------------- Footer ------------------- */
.re-footer {
  background: #2a3a52;
  color: #c0cad9;
  padding: 36px 0 18px;
  margin-top: 60px;
}
.re-footer__brand { font-size: 18px; font-weight: 700; color: #fff; }
.re-footer__brand .accent { color: var(--re-orange); }
.re-footer__tagline { font-size: 14px; opacity: 0.8; margin: 8px 0 24px; }
.re-footer__nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}
.re-footer__col h4 {
  color: #fff;
  font-size: 14px;
  margin: 0 0 10px;
  font-weight: 600;
}
.re-footer__col ul { list-style: none; padding: 0; margin: 0; }
.re-footer__col li { padding: 4px 0; font-size: 13px; }
.re-footer__col a { color: #c0cad9; }
.re-footer__col a:hover { color: var(--re-orange); }
.re-footer__copy {
  border-top: 1px solid #3d4f6b;
  padding-top: 14px;
  margin-top: 20px;
  text-align: center;
  font-size: 12px;
  color: #8a93a8;
}
.re-footer__copy .accent { color: var(--re-orange); }

/* ------------------- 404 / Search Empty ------------------- */
.re-empty {
  text-align: center;
  padding: 60px 20px;
  max-width: 600px;
  margin: 0 auto;
}
.re-empty h1 {
  font-size: 48px;
  color: var(--re-navy);
  margin: 0 0 16px;
}
.re-empty p { color: var(--re-text-muted); margin-bottom: 24px; }

/* ------------------- Utilities ------------------- */
.re-text-center { text-align: center; }
.re-text-muted { color: var(--re-text-muted); }
.re-mt-2 { margin-top: 16px; }
.re-mt-4 { margin-top: 32px; }
.re-mb-2 { margin-bottom: 16px; }
.re-mb-4 { margin-bottom: 32px; }

/* ------------------- Responsive ------------------- */
@media (max-width: 920px) {
  .re-cards { grid-template-columns: repeat(2, 1fr); }
  .re-cards--4 { grid-template-columns: repeat(2, 1fr); }
  .re-layout { grid-template-columns: 1fr; }
  .re-footer__nav { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .re-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: 16px; border-bottom: 1px solid var(--re-gray-mid); align-items: stretch; }
  .re-nav.is-open { display: flex; }
  .re-nav-toggle { display: block; }
  .re-cards, .re-cards--4 { grid-template-columns: 1fr; }
  .re-stats__grid { grid-template-columns: 1fr; }
  .re-stat { border-right: none; border-bottom: 1px solid var(--re-gray-mid); }
  .re-stat:last-child { border-bottom: none; }
  .re-hero { padding: 40px 0; }
  .re-section { padding: 40px 0; }
  .re-article { padding: 0; }
  .re-form__row { grid-template-columns: 1fr; }
  .re-footer__nav { grid-template-columns: 1fr; }
  .re-hero__cta { flex-direction: column; align-items: stretch; }
}

/* =============================================================
 * エリアページ 簡易査定試算ツール
 * ============================================================= */
.re-estimator {
  background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 100%);
  border: 2px solid var(--re-orange);
  border-radius: 12px;
  padding: 24px;
  margin: 24px 0;
}
.re-estimator__title {
  margin: 0 0 8px;
  font-size: 20px;
  color: var(--re-navy);
}
.re-estimator__lead {
  margin: 0 0 16px;
  color: var(--re-gray-dark);
  font-size: 14px;
}
.re-estimator__form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}
.re-estimator__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--re-navy);
  position: relative;
}
.re-estimator__input {
  padding: 12px 36px 12px 14px;
  border: 1px solid var(--re-gray-mid);
  border-radius: 8px;
  font-size: 16px;
  background: #fff;
  font-family: inherit;
}
.re-estimator__input:focus {
  outline: 2px solid var(--re-orange);
  outline-offset: 1px;
  border-color: var(--re-orange);
}
.re-estimator__unit {
  position: absolute;
  right: 12px;
  bottom: 12px;
  color: var(--re-gray-dark);
  font-size: 13px;
  pointer-events: none;
}
.re-estimator__result {
  margin-top: 16px;
}
.re-estimator__result-box {
  background: #fff;
  border: 1px solid var(--re-orange);
  border-radius: 8px;
  padding: 16px;
}
.re-estimator__band {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--re-gray-dark);
}
.re-estimator__price {
  margin: 0 0 16px;
  font-size: 22px;
  color: var(--re-red);
  font-weight: 700;
}
.re-estimator__cta {
  margin: 0;
}
.re-estimator__error {
  margin: 0;
  padding: 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  color: #b91c1c;
  font-size: 14px;
}
.re-estimator__note {
  margin-top: 12px;
  color: var(--re-gray-dark);
}

/* =============================================================
 * 価格帯ヒストグラム
 * ============================================================= */
.re-histogram {
  margin: 16px 0;
  background: var(--re-gray-soft);
  border-radius: 8px;
  padding: 16px;
}
.re-histogram__row {
  display: grid;
  grid-template-columns: 140px 1fr 80px;
  gap: 12px;
  align-items: center;
  padding: 6px 0;
  font-size: 14px;
}
.re-histogram__label {
  color: var(--re-navy);
  font-weight: 600;
}
.re-histogram__bar {
  background: #fff;
  border-radius: 4px;
  height: 18px;
  overflow: hidden;
  border: 1px solid var(--re-gray-mid);
}
.re-histogram__fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--re-orange) 0%, var(--re-red) 100%);
  border-radius: 4px;
}
.re-histogram__count {
  text-align: right;
  color: var(--re-gray-dark);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 768px) {
  .re-estimator__form {
    grid-template-columns: 1fr;
  }
  .re-histogram__row {
    grid-template-columns: 100px 1fr 60px;
    font-size: 12px;
  }
}

/* =============================================================
 * 価格推移サマリ
 * ============================================================= */
.re-trend-summary {
  background: var(--re-gray-soft);
  border-left: 4px solid var(--re-orange);
  padding: 12px 16px;
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--re-navy);
}
.re-trend-summary strong {
  color: var(--re-red);
}

/* 推移は行が多いのでヒストグラム行のラベル幅を年表示に合わせて狭く */
.re-histogram--trend .re-histogram__row {
  grid-template-columns: 60px 1fr 140px;
}
