/* ========================================
   Estimate Simulator Page
   ======================================== */
:root {
  --est-blue: #87bfc1;
  --est-blue-light: #e4f2f2;
  --est-dark: #74645c;
  --est-gray-50: #fafafa;
  --est-gray-100: #f5f5f5;
  --est-gray-200: #e5e5e5;
  --est-gray-300: #d4d4d4;
  --est-gray-400: #a3a3a3;
  --est-gray-500: #737373;
  --est-gray-600: #525252;
  --est-gray-700: #404040;
  --est-white: #ffffff;
  --est-radius: 12px;
  --est-radius-sm: 8px;
}

* {
  box-sizing: border-box;
}

body.page-estimate {
  -webkit-font-smoothing: antialiased;
  background: var(--est-gray-50);
  color: var(--est-dark);
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  line-height: 1.7;
  margin: 0;
  padding: 0;
}

.est-container {
  margin: 0 auto;
  max-width: 1120px;
  padding: 0 24px;
}

/* ---- Header ---- */
.est-header {
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--est-gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
}

.est-header .header-inner {
  align-items: center;
  display: flex;
  height: 64px;
  justify-content: space-between;
}

.est-header .logo {
  color: var(--est-dark);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.est-header .logo em {
  color: var(--est-blue);
  font-style: normal;
}

.btn-header {
  align-items: center;
  background: var(--est-blue);
  border-radius: 100px;
  color: var(--est-gray-50);
  display: inline-flex;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.btn-header:hover {
  opacity: 0.8;
}

/* ---- Hero ---- */
.est-hero {
  background: linear-gradient(135deg, #edf6f6 0%, var(--est-gray-50) 100%);
  padding: 80px 0 48px;
}

.est-hero-inner {
  /* max-width: 640px; */
}

.tag {
  align-items: center;
  background: var(--est-blue);
  border-radius: 100px;
  color: var(--est-gray-50);
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  padding: 4px 12px;
}

.est-hero h1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0 0 16px;
}

.est-hero-desc {
  color: var(--est-gray-500);
  font-size: 15px;
  line-height: 1.8;
  margin: 0;
}

/* ---- Main Layout ---- */
.est-main {
  padding: 48px 0 120px;
}

.est-layout {
  align-items: start;
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr 360px;
}

/* ---- Category ---- */
.est-category {
  margin-bottom: 40px;
}

.est-category-header {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.est-cat-icon {
  align-items: center;
  background: var(--est-blue);
  border-radius: 10px;
  color: var(--est-white);
  display: inline-flex;
  font-size: 15px;
  font-weight: 800;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.est-category-header h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

/* ---- Card ---- */
.est-card-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.est-card {
  -webkit-user-select: none;
  -ms-user-select: none;
  align-items: center;
  background: var(--est-white);
  border: 2px solid var(--est-gray-200);
  border-radius: var(--est-radius);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  padding: 16px 20px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  -moz-user-select: none;
       user-select: none;
}

.est-card:hover {
  border-color: var(--est-gray-300);
}

.est-card.checked {
  background: #f3f9f9;
  border-color: var(--est-blue);
  box-shadow: 0 0 0 1px var(--est-blue);
}

.est-card--consult {
  background: var(--est-gray-100);
  border-color: var(--est-gray-200);
  cursor: default;
}

.est-card--consult:hover {
  border-color: var(--est-gray-200);
}

.est-card-left {
  align-items: center;
  display: flex;
  flex: 1;
  gap: 12px;
  min-width: 0;
}

.est-card-right {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.est-check {
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  background: var(--est-white);
  border: 2px solid var(--est-gray-300);
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
  height: 20px;
  position: relative;
  transition: background 0.15s, border-color 0.15s;
  width: 20px;
}

.est-check:checked {
  background: var(--est-blue);
  border-color: var(--est-blue);
}

.est-check:checked::after {
  border: 2px solid var(--est-white);
  border-left: none;
  border-top: none;
  content: "";
  height: 10px;
  left: 50%;
  position: absolute;
  top: 40%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 5px;
}

.est-card-info h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}

.est-card-note {
  color: var(--est-gray-400);
  font-size: 12px;
  line-height: 1.5;
  margin: 4px 0 0;
}

.est-card-price {
  color: var(--est-dark);
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.est-card-price--consult {
  color: var(--est-gray-500);
  font-size: 13px;
  font-weight: 600;
}

/* ---- Quantity ---- */
.est-qty-wrap {
  align-items: center;
  display: flex;
  gap: 4px;
}

.qty-btn {
  align-items: center;
  background: var(--est-white);
  border: 1px solid var(--est-gray-300);
  border-radius: 6px;
  color: var(--est-gray-600);
  cursor: pointer;
  display: inline-flex;
  font-size: 16px;
  font-weight: 600;
  height: 28px;
  justify-content: center;
  line-height: 1;
  transition: background 0.15s;
  width: 28px;
}

.qty-btn:hover {
  background: var(--est-gray-100);
}

.qty-input {
  -moz-appearance: textfield;
  border: 1px solid var(--est-gray-300);
  border-radius: 6px;
  color: var(--est-dark);
  font-size: 14px;
  font-weight: 600;
  height: 28px;
  text-align: center;
  width: 40px;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-unit {
  color: var(--est-gray-400);
  font-size: 12px;
  margin-left: 2px;
}

/* ---- Summary ---- */
.est-summary-wrap {
  position: sticky;
  top: 88px;
}

.est-summary {
  background: var(--est-white);
  border: 1px solid var(--est-gray-200);
  border-radius: var(--est-radius);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  padding: 28px 24px;
}

.est-summary-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.est-summary h2 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.btn-reset {
  background: var(--est-blue);
  border: 1px solid var(--est-blue);
  border-radius: 100px;
  color: var(--est-white);
  cursor: pointer;
  font-weight: 700;
  font-size: 12px;
  opacity: 0;
  padding: 4px 18px;
  pointer-events: none;
  transition: opacity 0.2s;
}

.btn-reset.visible {
  opacity: 1;
  pointer-events: auto;
}

.btn-reset:hover {
  opacity: 0.8;
}

.est-summary-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
}

.est-summary-empty {
  color: var(--est-gray-400);
  font-size: 14px;
  margin: 0;
  padding: 12px 0;
  text-align: center;
}

.est-summary-item {
  align-items: flex-start;
  display: flex;
  font-size: 13px;
  gap: 12px;
  justify-content: space-between;
}

.est-si-name {
  color: var(--est-gray-600);
  flex: 1;
  min-width: 0;
}

.est-si-qty {
  color: var(--est-blue);
  font-size: 12px;
  font-weight: 600;
}

.est-si-price {
  color: var(--est-dark);
  font-weight: 600;
  white-space: nowrap;
}

.est-summary-divider {
  background: var(--est-gray-200);
  height: 1px;
  margin: 20px 0 16px;
}

.est-summary-total {
  align-items: center;
  display: flex;
  font-size: 14px;
  justify-content: space-between;
  margin-bottom: 8px;
}

.est-total-price {
  font-size: 18px;
  font-weight: 700;
}

.est-summary-tax {
  align-items: center;
  color: var(--est-gray-500);
  display: flex;
  font-size: 13px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.est-summary-grand {
  align-items: center;
  border-top: 2px solid var(--est-dark);
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 16px 0;
}

.est-summary-grand span:first-child {
  font-size: 14px;
  font-weight: 700;
}

.est-grand-price {
  color: var(--est-blue);
  font-size: 24px;
  font-weight: 800;
}

.btn-estimate {
  background: #E9E4A5;
  border-radius: 100px;
  color: --est-dark;
  display: block;
  border: 3px double var(--est-dark);
  font-size: 15px;
  font-weight: 700;
  padding: 14px;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.2s;
  width: 100%;
}

.btn-estimate:hover {
  opacity: 0.85;
}

.est-summary-note {
  color: var(--est-gray-400);
  font-size: 11px;
  line-height: 1.6;
  margin: 16px 0 0;
  text-align: center;
}

/* ---- Mobile Floating Total ---- */
.est-mobile-total {
  -webkit-transform: translateY(100%);
  background: var(--est-white);
  border-top: 1px solid var(--est-gray-200);
  bottom: 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  display: none;
  left: 0;
  padding: 12px 16px;
  position: fixed;
  right: 0;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 100;
}

.est-mobile-total.visible {
  transform: translateY(0);
}

.est-mobile-actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.btn-reset--mobile {
  font-size: 14px;
  padding: 10px 24px;
}

.est-mobile-total-inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 600px;
}

.est-mobile-total-info {
  display: flex;
  flex-direction: column;
}

.est-mobile-label {
  color: var(--est-gray-500);
  font-size: 11px;
}

.est-mobile-price {
  color: var(--est-blue);
  font-size: 20px;
  font-weight: 800;
}

.btn-mobile-estimate {
  align-items: center;
  background: #E9E4A5;
  border: 1px solid transparent;
  border-radius: 100px;
  color: var(--est-dark);
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 24px;
  text-decoration: none;
}

/* ---- Footer ---- */
.est-footer {
  background: var(--est-dark);
  color: var(--est-white);
  padding: 48px 0;
}

.est-footer .footer-inner {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.est-footer .footer-logo {
  color: var(--est-white);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.est-footer .footer-logo em {
  color: var(--est-blue);
  font-style: normal;
}

.est-footer .footer-links {
  display: flex;
  gap: 24px;
}

.est-footer .footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s;
}

.est-footer .footer-links a:hover {
  color: var(--est-white);
}

.est-footer .footer-copy {
  color: rgba(255, 255, 255, 0.35);
  font-size: 12px;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 900px) {
  .est-layout {
    grid-template-columns: 1fr;
  }
  .est-summary-wrap {
    display: none;
    position: static;
  }
  .est-mobile-total {
    display: block;
  }
  .est-main {
    padding-bottom: 100px;
  }
}
@media (max-width: 600px) {
  .est-hero {
    padding: 60px 0 32px;
  }
  .est-hero h1 {
    font-size: 28px;
  }
  .est-hero-desc {
    font-size: 13px;
  }
  .est-card {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px;
  }
  .est-card-right {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
  }
  .est-card-price {
    font-size: 14px;
  }
  .est-category-header h2 {
    font-size: 17px;
  }
}
/*# sourceMappingURL=sourcemaps/estimate.css.map */
