/* Catalogue and selector refinements, shared by both entry pages. */
.hose-table-scroll { max-width: 100%; overflow-x: auto; }
.hose-spec-table { width: 100%; min-width: 460px; border-collapse: collapse; font-size: 14px; }
.hose-spec-table th, .hose-spec-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.hose-spec-table thead { background: var(--accent-soft); }
:root {
  --shadow-soft: 0 3px 8px rgb(16 50 74 / .08);
  --radius: 8px;
}
body { letter-spacing: 0; }
:where(a, button, input, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
input::placeholder { color: var(--muted); opacity: 1; }
:where(section[id]) { scroll-margin-top: 160px; }
.site-header { background: var(--surface); backdrop-filter: none; gap: 16px; }
.nav-pill { box-shadow: 0 3px 8px rgb(3 105 161 / .16); }
.header-whatsapp { box-shadow: none; border-radius: var(--radius-control); }
.section-heading h2 { font-size: 36px; line-height: 1.25; }
.section-heading p { max-width: 70ch; line-height: 1.65; }
.catalog-tools { gap: 16px; }
.brand-filter-row { background: var(--surface); box-shadow: none; }
.brand-filter-button { box-shadow: none; border-radius: var(--radius-control); }
.brand-filter-button:hover { border-color: var(--accent); }
.product-card { box-shadow: none; }
.product-card:hover { transform: translateY(-2px); box-shadow: 0 3px 8px rgb(16 50 74 / .1); }
.product-image-wrap { aspect-ratio: 1; min-width: 0; min-height: 0; }
.product-image-wrap img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.product-card-content { gap: 5px; }
.product-code small { color: var(--muted); }
.product-card h3 { line-height: 1.5; }
.inquiry-button { min-height: 44px; border-radius: var(--radius-control); }
.catalog-reset-row { display: flex; justify-content: flex-end; margin: 0 0 12px; }
.catalog-reset-row:has([hidden]) { display: none; }
.catalog-reset {
  min-height: 44px; padding: 8px 14px; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius-control);
  color: var(--accent-strong); background: var(--surface); font: inherit;
}
.catalog-reset:hover { border-color: var(--accent); background: var(--accent-soft); }
.empty-state { grid-column: 1 / -1; padding: 32px 16px; text-align: center; line-height: 1.7; }
.pump-workbench, .pump-main-panel, .dialog-content { min-width: 0; }
.pump-category-panel { box-shadow: none; }
.pump-form-step, .pump-advanced-filters { border-radius: var(--radius-control); box-shadow: none; }
.pump-form-step { background: transparent; }
.pump-result-card { border-radius: var(--radius-control); box-shadow: 0 2px 6px rgb(16 50 74 / .07); }
.pump-specs { gap: 5px; }
.pump-specs > * { border-radius: var(--radius-control); }
.pump-mobile-toggle { display: none; }
.product-dialog { border-radius: var(--radius-control); }
.dialog-body { gap: 32px; }
.dialog-content h2 { font-size: 30px; line-height: 1.35; overflow-wrap: anywhere; }
.detail-list, .product-spec-table { max-height: none; overflow: visible; padding-right: 0; }
.compact-detail-list span { min-width: 0; overflow-wrap: anywhere; }
.thumb-button { border-radius: var(--radius-control); }
.seo-faq-grid { gap: 16px 28px; }
.seo-faq-grid > * { box-shadow: none; }
@media (min-width: 981px) and (max-width: 1320px) {
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 641px) and (max-width: 980px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .pump-mobile-toggle {
    display: flex; grid-column: 1 / -1; justify-content: space-between; align-items: center;
    width: 100%; min-height: 44px; border: 0; border-radius: var(--radius-control);
    background: var(--accent-soft); color: var(--accent-strong);
    padding: 10px 14px; font: inherit; font-weight: 700; cursor: pointer;
  }
  .pump-mobile-toggle::after { content: "−"; font-size: 22px; }
  .pump-mobile-toggle[aria-expanded="false"]::after { content: "+"; }
  .pump-category-panel.filters-collapsed > :not(.pump-mobile-toggle) { display: none; }
  .dialog-body { gap: 20px; }
}
@media (max-width: 640px) {
  .site-header { gap: 8px; padding: 8px 12px; }
  .brand-logo { width: 100%; max-width: 232px; }
  .brand { min-width: 0; }
  .nav { width: 100%; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; padding: 3px; overflow: visible; }
  .nav a { min-width: 0; min-height: 44px; padding: 0; font-size: 14px; }
  .nav-pill { display: none; }
  .nav a.is-active { background: var(--accent); color: #fff; }
  .nav a:hover { background: var(--accent-soft); color: var(--accent-strong); }
  .theme-toggle { min-width: 44px; padding: 8px; }
  .section-heading h2, .store-directions h2 { font-size: 28px; }
  .hero h1 { font-size: 32px; }
  .pump-page-hero h1, .tsurumi-hero h1 { font-size: 27px; white-space: normal; }
  .filters { gap: 6px; }
  .filters button { min-height: 44px; padding: 8px 12px; }
  .search-box input, .pump-finder-panel select, .pump-finder-panel input { font-size: 16px; min-height: 44px; }
  .product-card-content { padding: 10px; }
  .product-brand-logo img { max-width: 100%; }
  .inquiry-button { min-height: 44px; }
  .dialog-body { padding: 8px 16px 24px; }
  .dialog-content h2 { font-size: 24px; }
  .compact-detail-list li { grid-template-columns: 90px minmax(0, 1fr); gap: 12px; }
  .pump-result-image { min-width: 0; }
  .pump-result-card { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* ---- 2026-09-19 UI fixes ---- */
/* Hero headline: two fixed lines, sized so neither line can wrap and orphan a character. */
.hero h1 { font-size: clamp(30px, 2.55vw, 42px); line-height: 1.14; max-width: none; }
.hero h1 span { display: block; white-space: nowrap; }

/* WhatsApp enquiry buttons: readable label size. */
.inquiry-button { font-size: 13px; }
.tsurumi-inquiry { font-size: 13px; }

@media (max-width: 760px) {
  .hero h1 { font-size: clamp(26px, 7.6vw, 34px); max-width: none; }
  .inquiry-button { min-height: 40px; font-size: 13px; }

  /* Compact sticky header: the logo row scrolls away, the nav row stays. */
  .site-header { top: -50px; padding: 8px 12px; gap: 8px; min-height: 0; }
  .brand-logo { height: 40px; }
  .theme-toggle { min-width: 40px; width: 40px; min-height: 40px; padding: 0; font-size: 0; border-color: transparent; background: transparent; }
  .theme-toggle::before { content: "◐"; font-size: 20px; line-height: 1; color: var(--muted); }

  /* WhatsApp stays reachable as a floating button once the logo row has scrolled away. */
  .header-contact { position: fixed; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 30; }
  .header-whatsapp, .header-whatsapp:hover {
    width: 56px; min-width: 56px; height: 56px; min-height: 56px; padding: 0;
    border-radius: 50%;
    box-shadow: 0 8px 22px rgb(6 45 67 / .28);
  }
  .header-whatsapp svg { width: 28px; height: 28px; }
  .site-header { grid-template-columns: 1fr auto; }
  /* keep the floating button clear of the last line of content */
  .site-footer { padding-bottom: 88px; }
}

/* Company facts: a KPI row, not a chart - label + value, proportional figures. */
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 24px);
  margin: 0 0 22px;
  padding: 18px 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about-stats li { display: grid; gap: 2px; min-width: 0; }
.about-stats strong {
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.05;
  color: var(--accent-strong);
  letter-spacing: -0.01em;
}
.about-stats span { color: var(--muted); font-size: 14px; font-weight: 700; }
.about-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 4px; }
.about-links a { color: var(--accent-strong); font-weight: 800; }

/* Popular-search panel */
.search-group { margin-bottom: 14px; }
.search-group h3 {
  margin: 0 0 7px;
  font-size: 13px;
  font-weight: 900;
  color: var(--muted);
}
.search-group-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.category-chip { font-size: 13px; min-height: 34px; padding: 0 13px; }
.category-chip-link { display: inline-flex; align-items: center; text-decoration: none; }
.other-brands { border-top: 1px solid var(--line); padding-top: 12px; }
.other-brands summary { cursor: pointer; font-weight: 900; font-size: 14px; }
.other-brands p { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.other-brands-list { color: var(--muted); }

@media (max-width: 760px) {
  .about-stats { padding: 14px 0; gap: 8px; }
  .about-stats span { font-size: 12.5px; }
}
