/* Hallmark · shape: Bento Grid · genre: editorial · theme: Studio (deal 3/3, seed used-car-dealer-chiba-3686·81d35d81·2026-11-16·r0) · redesign: full · draw: 31df94
 * hero: Poster (/), Banner (/stock.php), Banner (/vehicle-detail.php) · nav: edge-aligned three-part bar, nine real destinations · footer: colophon block (swapped from letter close: the footer carries the address and licence) · imagery: photographs, the owner's stock photos from the database · signature: the lead car's total price set at display size on an orange baseline guide
 * axes: light/roman-serif/warm · posture: restrained · contrast: pass · fold: pass · job: buy · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 · weakest: S, a used-car page can drift generic; led with the owner's own stock photo and the real total prices, and said why the cars are cheap in the owner's facts */
/* Hallmark · dropped featured-loading, featured-error · the featured cars now render on the server, so the spinner and the "読み込みに失敗しました" line the owner asked to remove have nothing left to report */
/* Hallmark · dropped features-title · the three-point features list merged into the five numbered reasons, its facts kept word for word */
/* Hallmark · dropped /privacy.php · the same page as privacy.php, which the new footer links on every page */
/* Hallmark · dropped the Google sign-in link on /login.php · Dev has no Google OAuth set up, so the link is absent there only; production still renders it from oauth_config.json */
/* Hallmark · dismissed 67 · "TZ-G 4WD" and the other grades are auction data printed as the sheet gives them, and .blog-cover-label is display: none on the new pages */
/* Hallmark · dismissed 67 · "アベオート (ABE AUTO)" on /en/about.php is the company name in the info table, set as the wordmark is */
/* Hallmark · dismissed 19 · the remaining en dashes are price ranges ("¥200,000–¥500,000", "20万–50万") and the indexed <title> lines of en/, kept as search engines show them */
/* Hallmark · dismissed 54 · "How it works" on /en/services.php is the heading of each service's numbered steps, the same as 手続きの流れ on services.php, not a label above a heading */
/* Hallmark · answered F4 · each page fills one primary: the search on / and /stock.php, the back-to-stock link only on the not-found state of /vehicle-detail.php */
/* Hallmark · dismissed F15 · one container, 1440px; the 960px is the 60rem breakpoint, not a second width */
@import url("./tokens.css");
@import url("./base.css");

/* ─── Tokens for this site (Japanese faces behind the theme's Latin faces) ─── */
:root {
  --font-display: "Hedvig Letters Serif", "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --font-body: "Geist", "Hiragino Sans", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
  --display-weight: 500;
  --tracking-display: 0;
  --nav-h: 72px;
  --color-line: oklch(72% 0.19 150); --color-line-ink: oklch(16% 0.032 250);
  --color-wa: oklch(43% 0.085 178); --color-wa-ink: oklch(97.2% 0.006 215);
  --bar-h: 64px;
  --color-on-ink: oklch(97.2% 0.006 215);
  --color-on-ink-2: oklch(84% 0.012 225);
  --color-hero: oklch(27% 0.05 250); /* トップのPCヒーローの背景（--color-ink より少し明るい紺） */
  --color-ink-rule: color-mix(in oklab, var(--color-on-ink) 22%, transparent);
  --color-scrim: color-mix(in oklab, var(--color-ink) 78%, transparent);
  --color-scrim-0: color-mix(in oklab, var(--color-ink) 0%, transparent);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (max-width: 60rem) { :root { --nav-h: 64px; } }

/* ─── Base for Japanese text ─── */
.hm h1, .hm h2 { line-height: 1.25; }
.hm h1, .hm h2, .hm h3 { font-feature-settings: "palt"; }
:where(.hm) h1 { max-width: 14em; }
:where(.hm) h2 { max-width: 16em; }
:where(.hm) h3 { max-width: 24em; line-height: 1.4; }
:where(.hm) p:not([class]) { max-width: 36em; }
:where(.hm) .lead { color: var(--color-ink-2); max-width: 32em; }
.hm a:hover { text-decoration-color: var(--color-accent); }
.num { font-variant-numeric: tabular-nums; }

.proof {
  background-color: var(--color-paper);
  background-image: var(--grain), radial-gradient(circle at 1px 1px, var(--color-dot) 1px, transparent 1.4px);
  background-size: 160px 160px, 24px 24px;
}

/* Crop marks at the corners of a printed piece */
.crop { position: relative; --l: 8px; --o: 12px; }
.crop::before {
  content: ""; position: absolute; inset: calc(-1 * var(--o)); pointer-events: none;
  background:
    linear-gradient(var(--color-mark), var(--color-mark)) 0 var(--o) / var(--l) 1px no-repeat,
    linear-gradient(var(--color-mark), var(--color-mark)) var(--o) 0 / 1px var(--l) no-repeat,
    linear-gradient(var(--color-mark), var(--color-mark)) 100% var(--o) / var(--l) 1px no-repeat,
    linear-gradient(var(--color-mark), var(--color-mark)) calc(100% - var(--o)) 0 / 1px var(--l) no-repeat,
    linear-gradient(var(--color-mark), var(--color-mark)) 0 calc(100% - var(--o)) / var(--l) 1px no-repeat,
    linear-gradient(var(--color-mark), var(--color-mark)) var(--o) 100% / 1px var(--l) no-repeat,
    linear-gradient(var(--color-mark), var(--color-mark)) 100% calc(100% - var(--o)) / var(--l) 1px no-repeat,
    linear-gradient(var(--color-mark), var(--color-mark)) calc(100% - var(--o)) 100% / 1px var(--l) no-repeat;
}

/* ─── Controls ─── */
.hm-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs);
  min-height: 48px; padding: 0 var(--space-lg);
  border: var(--rule-hair) solid var(--color-ink); border-radius: 2px;
  background: transparent; color: var(--color-ink);
  font: 500 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.hm-btn::after { content: ""; position: absolute; inset: 2px; border: var(--rule-hair) solid var(--color-mark); border-radius: 1px; pointer-events: none; opacity: 0.45; }
.hm-btn svg { flex-shrink: 0; }
.hm-btn:hover { background: var(--color-paper-2); }
.hm-btn:active { transform: translateY(1px); }
.hm-btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.hm-btn:disabled, .hm-btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.hm-btn--primary { background: var(--color-accent); color: var(--color-accent-ink); }
.hm-btn--primary:hover { background: color-mix(in oklab, var(--color-accent) 86%, var(--color-ink)); }
.hm-btn--paper { background: var(--color-paper-hi); color: var(--color-ink); border-color: var(--color-paper-hi); }
.hm-btn--paper:hover { background: var(--color-paper-2); }
.hm-btn--line { border-color: var(--color-on-ink); color: var(--color-on-ink); }
.hm-btn--line::after { border-color: var(--color-ink-rule); }
.hm-btn--line:hover { background: color-mix(in oklab, var(--color-on-ink) 10%, transparent); }
.hm-btn--line:focus-visible, .hm-btn--paper:focus-visible { outline-color: var(--color-on-ink); }

.hm-skip { position: absolute; left: var(--space-md); top: -100px; z-index: var(--z-modal); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-on-ink); }
.hm-skip:focus-visible { top: var(--space-xs); outline: 2px solid var(--color-focus); }

/* ─── Header ─── */
.hm-header {
  position: sticky; top: 0; z-index: var(--z-sticky-nav);
  background-color: var(--color-paper);
  background-image: var(--grain), radial-gradient(circle at 1px 1px, var(--color-dot) 1px, transparent 1.4px);
  background-size: 160px 160px, 24px 24px;
  border-bottom: var(--rule-hair) solid var(--color-rule);
}
.hm-header-row { display: flex; align-items: center; gap: var(--space-xl); min-height: var(--nav-h); }
.hm-wordmark { display: flex; flex-direction: column; gap: var(--space-3xs); text-decoration: none; color: var(--color-ink); flex-shrink: 0; }
.hm-wordmark-name { font-family: var(--font-display); font-size: var(--text-xl); line-height: 1; letter-spacing: 0.02em; }
.hm-wordmark-sub { font-size: var(--text-xs); color: var(--color-muted); }
.hm-wordmark:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }

.hm-nav { flex: 1; min-width: 0; }
.hm-nav ul { display: flex; align-items: center; gap: var(--space-lg); margin: 0; padding: 0; list-style: none; }
.hm-nav .nav-link { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--text-sm); font-weight: 500; color: var(--color-ink-2); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; transition: color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.hm-nav .nav-link:hover { color: var(--color-ink); border-bottom-color: var(--color-rule); }
.hm-nav .nav-link.active { color: var(--color-ink); border-bottom-color: var(--color-accent); }
.hm-nav .nav-link:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

.has-megamenu { position: relative; }
.megamenu-wrapper { display: flex; align-items: center; gap: var(--space-3xs); }
.megamenu-trigger { display: inline-grid; place-items: center; width: 32px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--color-ink-2); cursor: pointer; transition: transform var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.megamenu-trigger:hover { color: var(--color-ink); }
.megamenu-trigger[aria-expanded="true"] { transform: rotate(180deg); }
.megamenu-trigger:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 0; }
.megamenu {
  position: absolute; left: 0; top: calc(100% + var(--space-xs)); z-index: var(--z-dropdown);
  width: 340px; padding: var(--space-xs);
  background: var(--color-paper-hi); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); box-shadow: var(--shadow-sheet);
  opacity: 0; transform: translateY(-4px);
  transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out);
}
.megamenu.show { opacity: 1; transform: none; }
.megamenu:focus { outline: none; }
.megamenu-content { display: flex; flex-direction: column; }
.megamenu-item { display: flex; justify-content: space-between; gap: var(--space-md); padding: var(--space-sm) var(--space-md); border-radius: 2px; color: var(--color-ink); text-decoration: none; font-size: var(--text-sm); }
.megamenu-item + .megamenu-item { border-top: var(--rule-hair) solid var(--color-rule); }
.megamenu-item strong { font-weight: 500; }
.megamenu-item span { color: var(--color-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.megamenu-item:hover { background: var(--color-paper-2); }
.megamenu-item:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }

.hm-header-cta { display: flex; align-items: center; gap: var(--space-md); flex-shrink: 0; }
.hm-header-tel { font-family: var(--font-display); font-size: var(--text-lg); color: var(--color-ink); text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hm-header-tel:hover { text-decoration: underline; text-decoration-color: var(--color-accent); }
.hm-header-tel:focus-visible, .hm-header-logout:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.hm-header-logout { font-size: var(--text-sm); color: var(--color-muted); }

/* Language switch (components/lang_switch.php) on the new pages */
.hm .lang-switch { position: relative; }
.hm .lang-switch-btn {
  list-style: none; cursor: pointer; user-select: none;
  display: inline-flex; align-items: center; gap: var(--space-2xs);
  min-height: 40px; padding: 0 var(--space-sm);
  border: var(--rule-hair) solid var(--color-rule); border-radius: 2px;
  color: var(--color-ink-2); font-size: var(--text-sm); font-weight: 500; white-space: nowrap;
  transition: border-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out);
}
.hm .lang-switch-btn::-webkit-details-marker { display: none; }
.hm .lang-switch-btn:hover, .hm .lang-switch[open] .lang-switch-btn { color: var(--color-ink); border-color: var(--color-ink); }
.hm .lang-switch-btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.hm .lang-switch-menu {
  position: absolute; right: 0; top: calc(100% + var(--space-xs)); z-index: var(--z-dropdown);
  min-width: 200px; margin: 0; padding: var(--space-2xs); list-style: none;
  background: var(--color-paper-hi); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); box-shadow: var(--shadow-sheet);
}
.hm .lang-switch-menu a { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); padding: var(--space-sm) var(--space-md); border-radius: 2px; color: var(--color-ink); text-decoration: none; font-size: var(--text-sm); white-space: nowrap; }
.hm .lang-switch-menu a:hover { background: var(--color-paper-2); }
.hm .lang-switch-menu a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
.hm .lang-switch-menu a.is-current { font-weight: 500; }

.hm-menu-btn { display: none; place-items: center; width: 44px; height: 44px; padding: 0; border: var(--rule-hair) solid var(--color-rule); border-radius: 2px; background: var(--color-paper-hi); color: var(--color-ink); cursor: pointer; }
.hm-menu-btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.hm-menu-btn:active { transform: translateY(1px); }
.hm-menu-close { display: none; }
.hm-menu-btn[aria-expanded="true"] .hm-menu-open { display: none; }
.hm-menu-btn[aria-expanded="true"] .hm-menu-close { display: block; }

@media (max-width: 79.99rem) { .hm-header-tel { display: none; } }
@media (max-width: 74.99rem) {
  .hm-header-row { gap: var(--space-md); }
  .hm-header-cta { margin-left: auto; }
  .hm-menu-btn { display: inline-grid; }
  .hm-nav { flex: 0; }
  .hm-nav ul { display: none; }
  .hm-nav ul.show {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: fixed; inset: var(--nav-h) 0 0 0; z-index: var(--z-sticky-nav);
    padding: var(--space-md) var(--gutter) calc(var(--bar-h) + var(--space-xl));
    background: var(--color-paper); overflow-y: auto;
  }
  .hm-nav ul.show > li { border-bottom: var(--rule-hair) solid var(--color-rule); }
  .hm-nav ul.show .nav-link { min-height: 56px; font-size: var(--text-md); border-bottom: 0; }
  .megamenu-wrapper { justify-content: space-between; }
  .megamenu { position: static; width: auto; margin-bottom: var(--space-sm); box-shadow: none; }
}

/* ─── Hero (top page): the owner's stock photo beside the headline, the search below ─── */
.hm-hero { background: var(--color-hero); color: var(--color-on-ink); } /* 2026-11-16 黒に近い紺から少し明るい紺に（--color-hero） */
.hm-hero-inner {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center;
  gap: var(--space-xl) var(--gap-columns); padding-block: var(--space-2xl);
}
.hm-hero-img { grid-column: 2; grid-row: 1; justify-self: center; width: auto; max-width: 100%; height: auto; max-height: min(38rem, calc(100svh - 11rem)); border-radius: var(--radius-card); } /* 写真は切らずに全体を見せる（縦長・横長どちらでも） */
/* 2026-11-19 写真の枠をモダンに: 角丸を大きく、少し離した細い線の二重枠と深い影で浮かせる（PCのみ） */
.hm-hero-img {
  border-radius: 18px;
  outline: 1px solid color-mix(in oklab, var(--color-on-ink) 24%, transparent); outline-offset: 10px;
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--color-on-ink) 8%, transparent), 0 32px 64px -24px rgb(0 0 0 / .65), 0 12px 24px -12px rgb(0 0 0 / .4);
}
.hm-hero-text { grid-column: 1; grid-row: 1; min-width: 0; }
.hm-hero--nophoto .hm-hero-text { grid-column: 1 / -1; }
.hm-hero .hm-search { grid-column: 1 / -1; }
.hm-hero h1 { color: var(--color-on-ink); font-size: var(--text-display); word-break: keep-all; }
.hm-hero .lead { color: var(--color-on-ink-2); margin-top: var(--space-md); }
.hm-hero-tel { display: flex; flex-direction: column; gap: var(--space-2xs); margin-top: var(--space-xl); }
.hm-hero-tel a { display: inline-flex; align-items: center; gap: var(--space-sm); width: fit-content; font-family: var(--font-display); font-size: var(--text-2xl); line-height: 1.1; color: var(--color-on-ink); text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hm-hero-tel a:hover { text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; }
.hm-hero-tel a:focus-visible { outline: 2px solid var(--color-on-ink); outline-offset: 4px; }
.hm-hero-tel-note { font-size: var(--text-sm); color: var(--color-on-ink-2); }

.hm-search {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: end; gap: var(--space-md);
  padding: var(--space-lg); color: var(--color-ink);
  background: var(--color-paper-hi); border-radius: var(--radius-card); box-shadow: var(--shadow-sheet);
}
.hm-search.crop::before { --color-mark: var(--color-on-ink-2); }
.hm-search-field { position: relative; display: flex; flex-direction: column; gap: var(--space-xs); min-width: 0; }
.hm-search-field label { font-size: var(--text-sm); font-weight: 500; color: var(--color-ink-2); }
.hm-search-field::after { content: ""; position: absolute; right: var(--space-md); bottom: 21px; width: 8px; height: 8px; border-right: 2px solid var(--color-ink-2); border-bottom: 2px solid var(--color-ink-2); transform: rotate(45deg); pointer-events: none; }
.hm-search select, .hm-field {
  width: 100%; min-height: 52px; padding: 0 var(--space-2xl) 0 var(--space-md);
  border: var(--rule-hair) solid var(--color-muted); border-radius: var(--radius-card);
  background: var(--color-paper-hi); color: var(--color-ink); font-size: var(--text-md);
  appearance: none; -webkit-appearance: none; cursor: pointer;
  transition: border-color var(--dur-short) var(--ease-out);
}
.hm-search select:hover, .hm-field:hover { border-color: var(--color-ink); }
.hm-search select:focus-visible, .hm-field:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 1px; border-color: var(--color-ink); }
.hm-search select:disabled, .hm-field:disabled { opacity: 0.55; cursor: not-allowed; }
.hm-search .hm-btn { min-height: 52px; padding-inline: var(--space-xl); }
.hm-search-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); padding-top: var(--space-sm); border-top: var(--rule-hair) solid var(--color-rule); font-size: var(--text-sm); }
.hm-search-foot a { color: var(--color-ink-2); }
.hm-search-foot a:hover { color: var(--color-ink); }
.hm-search-foot a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

@media (max-width: 60rem) {
  .hm-hero { background: var(--color-paper); color: var(--color-ink); }
  .hm-hero-inner { grid-template-columns: minmax(0, 1fr); padding-block: 0 var(--space-2xl); }
  .hm-hero-img { grid-column: 1; grid-row: 1; margin-inline: calc(var(--gutter) * -1); width: calc(100% + var(--gutter) * 2); max-width: none; max-height: none; border-radius: 0; outline: none; box-shadow: none; }
  .hm-hero-text { grid-column: 1; grid-row: 2; }
  .hm-hero--nophoto .hm-hero-inner { padding-top: var(--space-xl); }
  .hm-hero--nophoto .hm-hero-text { grid-row: 1; }
  .hm-hero h1 { color: var(--color-ink); }
  .hm-hero .lead { color: var(--color-ink-2); }
  .hm-hero-tel { margin-top: var(--space-md); }
  .hm-hero-tel a { color: var(--color-ink); font-size: var(--text-xl); }
  .hm-hero-tel a:focus-visible { outline-color: var(--color-focus); }
  .hm-hero-tel-note { color: var(--color-muted); }
  .hm-search { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: var(--space-md); }
  .hm-search .hm-btn { grid-column: 1 / -1; }
  .hm-search.crop::before { --color-mark: var(--color-mark); }
}
@media (max-width: 40rem) {
  .hm-search { grid-template-columns: minmax(0, 1fr); }
  .hm-search-field:first-child { grid-column: auto; }
}

/* ─── Section heads ─── */
.hm-head-split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-md) var(--gap-columns); align-items: end; margin-bottom: var(--space-2xl); }
.hm-head-split h2 { grid-column: 1 / 7; }
.hm-head-split .lead { grid-column: 8 / 13; }
@media (max-width: 60rem) { .hm-head-split h2, .hm-head-split .lead { grid-column: 1 / -1; } }

/* ─── Car card (includes/hm_car.php and js/stock.js) ─── */
.hm-car {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: var(--color-paper-hi); border-radius: var(--radius-card); box-shadow: var(--shadow-sheet);
}
.hm-car-photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-card) var(--radius-card) 0 0; background: var(--color-paper-3); }
.hm-car-photo img { width: 100%; height: 100%; object-fit: cover; outline: 1px solid color-mix(in oklab, var(--color-ink) 8%, transparent); outline-offset: -1px; }
/* 在庫一覧など同じ大きさのカードが並ぶところ: 写真を切らずに全体を見せる（トップのベントは別の形） */
.hm-car:not(.hm-car--lead, .hm-car--side, .hm-car--row) .hm-car-photo { aspect-ratio: 3 / 4; }
.hm-car:not(.hm-car--lead, .hm-car--side, .hm-car--row) .hm-car-photo img { object-fit: contain; }
.hm-car-noimg { display: grid; place-items: center; width: 100%; height: 100%; font-size: var(--text-sm); color: var(--color-muted); }
.hm-car-body { display: flex; flex-direction: column; gap: var(--space-sm); padding: var(--space-lg); flex: 1; }
.hm-car-name { font-family: var(--font-body); font-weight: 500; font-size: var(--text-lg); line-height: 1.5; max-width: none; word-break: auto-phrase; } /* 日本語は言葉の切れ目で折り返す（Chrome・Edge） */
.hm-car-name a { color: var(--color-ink); text-decoration: none; }
.hm-car-name a::after { content: ""; position: absolute; inset: 0; z-index: var(--z-raised); border-radius: var(--radius-card); }
.hm-car:hover .hm-car-name a { text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 1px; }
.hm-car-name a:focus-visible { outline: none; }
.hm-car-name a:focus-visible::after { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.hm-car-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 var(--space-xs); margin-top: auto; }
.hm-car-price-label { width: 100%; font-size: var(--text-sm); color: var(--color-muted); }
.hm-car-price-fig { font-family: var(--font-display); font-size: var(--text-3xl); line-height: 1; font-variant-numeric: tabular-nums; color: var(--color-ink); }
.hm-car-price-unit { font-size: var(--text-md); font-weight: 500; color: var(--color-ink); }
.hm-car-price-ask { font-size: var(--text-lg); font-weight: 500; }
.hm-car-spec { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); margin: 0; padding-top: var(--space-sm); border-top: var(--rule-hair) solid var(--color-rule); }
.hm-car-spec div { display: flex; flex-direction: column; }
.hm-car-spec dt { font-size: var(--text-xs); color: var(--color-muted); }
.hm-car-spec dd { margin: 0; font-size: var(--text-sm); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.car-card-actions { position: relative; z-index: calc(var(--z-raised) + 1); }
.btn-card-edit { font-size: var(--text-sm); color: var(--color-ink-2); }
.btn-card-edit:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* ─── 2. Picks: a bento of the cars on sale ─── */
.hm-picks { padding-block: var(--section-gap) var(--section-gap-s); }
.hm-bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); }
.hm-bento > * { grid-column: span 12; }
/* 横のカードも写真が上（左右に並べると縦長に切れて、車名も細い欄で折り返していた） */
.hm-bento .hm-car--side .hm-car-price-fig, .hm-bento .hm-car--row .hm-car-price-fig { font-size: var(--text-2xl); font-variant-numeric: tabular-nums; }
.hm-car--lead .hm-car-photo { aspect-ratio: auto; flex: 1; min-height: 320px; }
.hm-car--lead .hm-car-name { font-size: var(--text-xl); }
.hm-car--lead .hm-car-body { flex: none; }
.hm-car--lead .hm-car-price { padding-bottom: var(--space-xs); border-bottom: var(--rule-hair) solid var(--color-accent); }
.hm-car--lead .hm-car-spec { border-top: 0; padding-top: 0; }
.hm-car--lead .hm-car-price-fig { font-size: var(--text-display); font-variant-numeric: tabular-nums; }
.hm-car--lead .hm-car-price-unit { font-size: var(--text-lg); }

.hm-tile { position: relative; display: flex; flex-direction: column; gap: var(--space-sm); min-height: 240px; padding: var(--space-xl); border-radius: var(--radius-card); text-decoration: none; color: var(--color-ink); }
.hm-tile p { max-width: 36em; color: var(--color-ink-2); }
.hm-tile h3 { font-size: var(--text-title); }
.hm-tile-link { margin-top: auto; font-weight: 500; text-decoration: underline; text-decoration-color: var(--color-rule); text-underline-offset: 0.2em; }
.hm-tile:hover .hm-tile-link { text-decoration-color: var(--color-accent); }
.hm-tile:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.hm-tile--quick { background: var(--color-paper-2); }
.hm-tile--stock { background: var(--color-ink); color: var(--color-on-ink); }
.hm-tile--stock p { color: var(--color-on-ink-2); }
.hm-tile--stock .hm-tile-link { text-decoration-color: var(--color-ink-rule); }
.hm-tile--stock:focus-visible { outline-color: var(--color-accent); }
.hm-tile-fig { display: flex; align-items: baseline; gap: var(--space-2xs); }
.hm-tile-fig .num { font-family: var(--font-display); font-variant-numeric: tabular-nums; font-size: var(--text-display); line-height: 1; color: var(--color-on-ink); }
.hm-tile-unit { font-size: var(--text-lg); color: var(--color-on-ink); }

@media (min-width: 60rem) {
  .hm-bento > .hm-car--lead { grid-column: 1 / 8; grid-row: span 2; }
  .hm-bento > .hm-car--side { grid-column: 8 / 13; }
  .hm-bento > .hm-car--row { grid-column: span 4; }
  .hm-bento > .hm-tile--quick { grid-column: 1 / 9; }
  .hm-bento > .hm-tile--stock { grid-column: 9 / 13; }
  /* two cars: the second stands beside the lead at full height */
  .hm-bento--2 > .hm-car--lead { grid-row: span 1; }
  .hm-bento--2 > .hm-car--lead .hm-car-photo { flex: none; aspect-ratio: 4 / 3; min-height: 0; }
  .hm-bento.hm-bento--2 > .hm-car--side { flex-direction: column; }
  .hm-bento.hm-bento--2 > .hm-car--side .hm-car-photo { width: 100%; flex: 1; min-height: 0; aspect-ratio: auto; border-radius: var(--radius-card) var(--radius-card) 0 0; }
  .hm-bento.hm-bento--2 > .hm-car--side .hm-car-body { flex: none; }
  /* one car: the two tiles stack beside it */
  .hm-bento--1 > .hm-tile--quick, .hm-bento--1 > .hm-tile--stock { grid-column: 8 / 13; }
  .hm-bento--0 > .hm-tile--quick { grid-column: 1 / 9; }
}
@media (max-width: 59.99rem) {
  .hm-bento .hm-car--side { flex-direction: column; }
  .hm-bento .hm-car--side .hm-car-photo { width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius-card) var(--radius-card) 0 0; }
  .hm-car--lead .hm-car-photo { aspect-ratio: 4 / 3; min-height: 0; flex: none; }
  .hm-car--lead .hm-car-price-fig { font-size: var(--text-display-s); }
}

/* ─── 3. Reasons: numbered rows ─── */
.hm-reasons { padding-block: var(--section-gap-s) var(--section-gap); }
.hm-reasons-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-2xl) var(--gap-columns); align-items: start; }
.hm-reasons-grid h2 { grid-column: 1 / 5; position: sticky; top: calc(var(--nav-h) + var(--space-xl)); }
.hm-rows { grid-column: 5 / 13; margin: 0; padding: 0; list-style: none; counter-reset: row; border-top: var(--rule-hair) solid var(--color-ink); }
.hm-rows li { counter-increment: row; display: grid; grid-template-columns: 4rem minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-xs) var(--gap-columns); align-items: baseline; padding-block: var(--space-xl); border-bottom: var(--rule-hair) solid var(--color-rule); }
.hm-rows li::before { content: counter(row, decimal-leading-zero); font-family: var(--font-display); font-size: var(--text-xl); color: var(--color-muted); font-variant-numeric: tabular-nums; }
.hm-rows h3 { font-size: var(--text-title); }
.hm-rows p { color: var(--color-ink-2); }
@media (max-width: 60rem) {
  .hm-reasons-grid h2 { grid-column: 1 / -1; position: static; }
  .hm-rows { grid-column: 1 / -1; }
  .hm-rows li { grid-template-columns: 3rem minmax(0, 1fr); }
  .hm-rows li p { grid-column: 2; }
}

/* ─── 4. Prices: the agency fee table ─── */
.hm-prices { padding-block: var(--section-gap-s); background: var(--color-paper-2); }
.hm-prices-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-xl) var(--gap-columns); align-items: start; }
.hm-prices-head { grid-column: 1 / 5; display: flex; flex-direction: column; gap: var(--space-md); }
.hm-price-table { grid-column: 5 / 13; width: 100%; border-collapse: collapse; font-size: var(--text-md); }
.hm-price-table thead th { padding-bottom: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-ink); font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); text-align: left; }
.hm-price-table tbody th, .hm-price-table tbody td { padding-block: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); vertical-align: baseline; text-align: left; }
.hm-price-table tbody th { font-weight: 500; padding-right: var(--space-lg); }
.hm-price-table tbody th a { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-rule); text-underline-offset: 0.2em; }
.hm-price-table tbody th a:hover { text-decoration-color: var(--color-accent); }
.hm-price-table tbody th a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.hm-price-table td { color: var(--color-ink-2); }
.hm-price-table .hm-price-col { text-align: right; white-space: nowrap; color: var(--color-ink); }
.hm-price-fig { font-family: var(--font-display); font-variant-numeric: tabular-nums; font-size: var(--text-3xl); line-height: 1; margin-right: var(--space-3xs); }
.hm-price-word { font-weight: 500; }
.hm-prices-note { grid-column: 5 / 13; font-size: var(--text-sm); color: var(--color-ink-2); }
.hm-prices-note a { margin-left: var(--space-xs); color: var(--color-ink); }
.hm-prices-note a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
@media (max-width: 60rem) {
  .hm-prices-head, .hm-price-table, .hm-prices-note { grid-column: 1 / -1; }
}
@media (max-width: 40rem) {
  .hm-price-table thead { display: none; }
  .hm-price-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2xs) var(--space-md); padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); }
  .hm-price-table tbody th, .hm-price-table tbody td { padding: 0; border: 0; }
  .hm-price-table tbody td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; font-size: var(--text-sm); }
  .hm-price-fig { font-size: var(--text-2xl); }
}

/* ─── 5. News: an index ─── */
.hm-news { padding-block: var(--section-gap); }
.hm-news-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-xl) var(--gap-columns); align-items: start; }
.hm-news-grid h2 { grid-column: 1 / 5; }
.hm-news-list { grid-column: 5 / 13; margin: 0; padding: 0; list-style: none; border-top: var(--rule-hair) solid var(--color-ink); }
.hm-news-row { display: grid; grid-template-columns: 9rem 6rem minmax(0, 1fr); gap: var(--space-md); align-items: baseline; padding-block: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); color: var(--color-ink); text-decoration: none; }
.hm-news-row time, .hm-news-cat { font-size: var(--text-sm); color: var(--color-muted); font-variant-numeric: tabular-nums; }
.hm-news-title { font-size: var(--text-lg); font-weight: 500; }
.hm-news-row:hover .hm-news-title { text-decoration: underline; text-decoration-color: var(--color-accent); }
.hm-news-row:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.hm-news-more { grid-column: 5 / 13; }
.hm-news-more a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
@media (max-width: 60rem) {
  .hm-news-grid h2, .hm-news-list, .hm-news-more { grid-column: 1 / -1; }
  .hm-news-row { grid-template-columns: auto minmax(0, 1fr); }
  .hm-news-title { grid-column: 1 / -1; }
}

/* ─── 6. Close: call us, and the terms of sale ─── */
.hm-close { padding-block: var(--section-gap-s); background: var(--color-ink); color: var(--color-on-ink); }
.hm-close-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-2xl) var(--gap-columns); align-items: start; }
.hm-close-call { grid-column: 1 / 7; display: flex; flex-direction: column; gap: var(--space-lg); }
.hm-close h2 { color: var(--color-on-ink); }
.hm-close-tel a { font-family: var(--font-display); font-size: var(--text-display-s); line-height: 1; color: var(--color-on-ink); text-decoration: none; white-space: nowrap; }
.hm-close-tel a:hover { text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; }
.hm-close-tel a:focus-visible { outline: 2px solid var(--color-on-ink); outline-offset: 4px; }
.hm-close-actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.hm-terms { grid-column: 8 / 13; margin: 0; border-top: var(--rule-hair) solid var(--color-on-ink); }
.hm-terms div { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: var(--space-md); padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-ink-rule); }
.hm-terms dt { font-size: var(--text-sm); color: var(--color-on-ink-2); }
.hm-terms dd { margin: 0; color: var(--color-on-ink); }
@media (max-width: 60rem) {
  .hm-close-call, .hm-terms { grid-column: 1 / -1; }
}

/* ─── Footer ─── */
.hm-footer {
  padding-block: var(--space-3xl) var(--space-2xl);
  background-color: var(--color-paper);
  background-image: var(--grain), radial-gradient(circle at 1px 1px, var(--color-dot) 1px, transparent 1.4px);
  background-size: 160px 160px, 24px 24px;
  border-top: var(--rule-hair) solid var(--color-rule);
  font-size: var(--text-sm); color: var(--color-ink-2);
}
.hm-footer-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-xl) var(--gap-columns); }
.hm-footer-mast { grid-column: 1 / 6; display: flex; flex-direction: column; gap: var(--space-sm); align-items: flex-start; }
.hm-footer-wordmark { font-family: var(--font-display); font-size: var(--text-3xl); line-height: 1; letter-spacing: 0.02em; color: var(--color-ink); text-decoration: none; }
.hm-footer-name { color: var(--color-ink); font-weight: 500; }
.hm-footer-address { font-style: normal; line-height: 1.8; }
.hm-footer-links { grid-column: 7 / 10; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-sm) var(--space-lg); align-content: start; }
.hm-footer-legal { grid-column: 10 / 13; display: flex; flex-direction: column; gap: var(--space-sm); }
.hm-footer a { color: var(--color-ink-2); }
.hm-footer a:hover { color: var(--color-ink); }
.hm-footer a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.hm-footer-links a { white-space: nowrap; text-decoration: none; }
.hm-footer-links a:hover { text-decoration: underline; text-decoration-color: var(--color-accent); }
@media (max-width: 60rem) {
  .hm-footer-mast, .hm-footer-links, .hm-footer-legal { grid-column: 1 / -1; }
}
@media (max-width: 47.99rem) {
  .hm-footer { padding-bottom: calc(var(--bar-h) + var(--space-2xl) + env(safe-area-inset-bottom)); }
}

/* ─── Mobile contact bar ─── */
.hm-mobile-bar { display: none; }
@media (max-width: 47.99rem) {
  .hm-mobile-bar {
    position: fixed; inset: auto 0 0 0; z-index: var(--z-sticky);
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-2xs);
    padding: var(--space-2xs) var(--space-2xs) calc(var(--space-2xs) + env(safe-area-inset-bottom));
    background: var(--color-paper-hi); border-top: var(--rule-hair) solid var(--color-rule);
    box-shadow: 0 -8px 24px -16px color-mix(in oklab, var(--color-ink) 40%, transparent);
  }
}
.hm-mobile-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-3xs); min-height: 56px; border-radius: 2px; color: var(--color-ink-2); font-size: var(--text-xs); font-weight: 500; text-decoration: none; transition: background-color var(--dur-micro) var(--ease-out); }
.hm-mobile-item:active { background: var(--color-paper-2); }
.hm-mobile-item:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
.hm-mobile-item--call { flex-direction: row; gap: var(--space-xs); background: var(--color-ink); color: var(--color-on-ink); font-size: var(--text-sm); }
.hm-mobile-item--call:active { background: var(--color-ink-2); }
.hm-mobile-item--call:focus-visible { outline-color: var(--color-accent); }

.back-to-top-btn {
  position: fixed; right: var(--space-md); bottom: var(--space-md); z-index: var(--z-raised);
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: var(--rule-hair) solid var(--color-rule); border-radius: 2px; background: var(--color-paper-hi); color: var(--color-ink); cursor: pointer;
  transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out);
}
.js .back-to-top-btn:not(.show) { opacity: 0; transform: translateY(8px); pointer-events: none; }
.back-to-top-btn:hover { border-color: var(--color-ink); }
.back-to-top-btn:active { transform: translateY(1px); }
.back-to-top-btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
@media (max-width: 47.99rem) { .back-to-top-btn { bottom: calc(var(--bar-h) + var(--space-md) + env(safe-area-inset-bottom)); } }

/* ════════════ Stock list (stock.php) ════════════ */
.hm-page-head { padding-block: var(--space-2xl) var(--space-xl); border-bottom: var(--rule-hair) solid var(--color-rule); background-color: var(--color-paper); background-image: var(--grain), radial-gradient(circle at 1px 1px, var(--color-dot) 1px, transparent 1.4px); background-size: 160px 160px, 24px 24px; }
.hm-page-head-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-md) var(--gap-columns); align-items: end; }
.hm-page-head h1 { grid-column: 1 / 6; font-size: var(--text-display-s); }
.hm-page-head .lead { grid-column: 7 / 13; }
@media (max-width: 60rem) { .hm-page-head h1, .hm-page-head .lead { grid-column: 1 / -1; } }

.stock-layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-2xl) var(--gap-columns); align-items: start; padding-block: var(--space-2xl) var(--section-gap-s); }
.filter-section { grid-column: 1 / 4; position: sticky; top: calc(var(--nav-h) + var(--space-lg)); }
.stock-main-content { grid-column: 4 / 13; min-width: 0; }
.filter-toggle { padding: var(--space-lg); background: var(--color-paper-2); border-radius: var(--radius-card); }
.filter-toggle > summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; list-style: none; cursor: pointer; }
.filter-toggle > summary::-webkit-details-marker { display: none; }
.filter-toggle > summary::after { content: ""; width: 8px; height: 8px; margin-right: var(--space-xs); border-right: 2px solid var(--color-ink-2); border-bottom: 2px solid var(--color-ink-2); transform: rotate(45deg); transition: transform var(--dur-short) var(--ease-out); }
.filter-toggle[open] > summary::after { transform: rotate(225deg); }
.filter-toggle > summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.filter-toggle > summary h2 { font-size: var(--text-title); }
.filter-form { display: flex; flex-direction: column; gap: var(--space-lg); margin-top: var(--space-md); }
.filter-group { margin: 0; padding: 0; border: 0; min-width: 0; }
.filter-group legend, .filter-maker-group > label { display: block; margin-bottom: var(--space-xs); padding: 0; font-size: var(--text-sm); font-weight: 500; color: var(--color-ink); }
.filter-group-content { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: var(--space-xs); align-items: end; }
.filter-form .form-group { display: flex; flex-direction: column; gap: var(--space-2xs); min-width: 0; }
.filter-form .form-group label { font-size: var(--text-xs); color: var(--color-muted); }
.range-sep { padding-bottom: var(--space-sm); color: var(--color-muted); }
.input-with-unit { position: relative; }
.input-with-unit input {
  width: 100%; min-height: 48px; padding: 0 var(--space-3xl) 0 var(--space-sm);
  border: var(--rule-hair) solid var(--color-muted); border-radius: var(--radius-card);
  background: var(--color-paper-hi); color: var(--color-ink); font-size: var(--text-md); font-variant-numeric: tabular-nums;
  transition: border-color var(--dur-short) var(--ease-out);
}
.input-with-unit input:hover { border-color: var(--color-ink); }
.input-with-unit input:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 1px; border-color: var(--color-ink); }
.input-with-unit input:disabled { opacity: 0.55; cursor: not-allowed; }
.input-with-unit .unit { position: absolute; right: var(--space-sm); top: 50%; transform: translateY(-50%); font-size: var(--text-xs); color: var(--color-muted); pointer-events: none; }
.maker-select-wrapper { position: relative; }
.maker-initial { display: none; }
.maker-select-wrapper select {
  width: 100%; min-height: 48px; padding: 0 var(--space-xl) 0 var(--space-sm);
  border: var(--rule-hair) solid var(--color-muted); border-radius: var(--radius-card);
  background: var(--color-paper-hi); color: var(--color-ink); font-size: var(--text-md);
  appearance: none; -webkit-appearance: none; cursor: pointer;
  transition: border-color var(--dur-short) var(--ease-out);
}
.maker-select-wrapper select:hover { border-color: var(--color-ink); }
.maker-select-wrapper select:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 1px; border-color: var(--color-ink); }
.maker-select-wrapper select:disabled { opacity: 0.55; cursor: not-allowed; }
.maker-select-arrow { position: absolute; right: var(--space-sm); top: 50%; transform: translateY(-50%); color: var(--color-ink-2); pointer-events: none; }
.filter-buttons { display: flex; flex-direction: column; gap: var(--space-xs); margin-top: var(--space-lg); }
.filter-buttons #search-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 52px;
  border: var(--rule-hair) solid var(--color-ink); border-radius: 2px; background: var(--color-accent); color: var(--color-accent-ink);
  font: 500 var(--text-md)/1 var(--font-body); cursor: pointer;
  transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.filter-buttons #search-btn:hover { background: color-mix(in oklab, var(--color-accent) 86%, var(--color-ink)); }
.filter-buttons #search-btn:active { transform: translateY(1px); }
.filter-buttons #search-btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.filter-buttons #search-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.filter-reset-link { min-height: 44px; padding: 0; border: 0; background: none; color: var(--color-ink-2); font-size: var(--text-sm); text-decoration: underline; text-decoration-color: var(--color-rule); text-underline-offset: 0.2em; cursor: pointer; }
.filter-reset-link:hover { color: var(--color-ink); text-decoration-color: var(--color-accent); }
.filter-reset-link:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.filter-reset-link:active { color: var(--color-ink); }
.filter-reset-link:disabled { opacity: 0.55; cursor: not-allowed; }

.hm-stock-count { display: flex; align-items: baseline; gap: var(--space-2xs); margin-bottom: var(--space-xl); font-size: var(--text-lg); }
.hm-stock-count .num { font-family: var(--font-display); font-variant-numeric: tabular-nums; font-size: var(--text-section); line-height: 1; }
.car-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xl) var(--gap-columns); transition: opacity var(--dur-short) var(--ease-out); }
.car-grid[aria-busy="true"] { opacity: 0.5; }
.car-grid > .hm-empty { grid-column: 1 / -1; }
.hm-empty { padding: var(--space-xl); background: var(--color-paper-2); border-radius: var(--radius-card); color: var(--color-ink-2); }
.pagination { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-2xl); }
.pagination a { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 var(--space-sm); border: var(--rule-hair) solid var(--color-rule); border-radius: 2px; color: var(--color-ink); text-decoration: none; font-variant-numeric: tabular-nums; transition: border-color var(--dur-short) var(--ease-out); }
.pagination a:hover { border-color: var(--color-ink); }
.pagination a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.pagination a.active { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-on-ink); }
@media (max-width: 74.99rem) { .car-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 在庫一覧の下の案内（支払総額の見方・メーカー別・購入の流れ・よくある質問） */
.hm-stock-guide { display: grid; gap: var(--space-2xl); max-width: 46em; margin-top: var(--section-gap-s); padding-top: var(--space-2xl); border-top: var(--rule-hair) solid var(--color-rule); }
.hm-stock-guide h2 { margin-bottom: var(--space-md); font-size: var(--text-title); }
.hm-stock-guide p, .hm-stock-guide li, .hm-stock-guide dd { color: var(--color-ink-2); line-height: 1.9; }
.hm-stock-guide p + p, .hm-stock-guide p + ul, .hm-stock-guide dl + p { margin-top: var(--space-xs); }
.hm-stock-guide ul:not(.hm-stock-makers) { padding-left: 1.25em; list-style: disc; }
.hm-stock-guide a { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 0.2em; }
.hm-stock-makers { display: flex; flex-wrap: wrap; gap: var(--space-xs); padding: 0; list-style: none; }
.hm-stock-makers a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-rule); border-radius: 2px; text-decoration: none; transition: border-color var(--dur-short) var(--ease-out); }
.hm-stock-makers a:hover { border-color: var(--color-ink); }
.hm-stock-makers a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.hm-stock-makers .num { color: var(--color-muted); font-variant-numeric: tabular-nums; }
.hm-stock-steps { display: grid; gap: var(--space-md); padding-left: 1.5em; list-style: decimal; }
.hm-stock-steps strong { display: block; color: var(--color-ink); font-weight: 500; }
.hm-stock-faq dt { margin-top: var(--space-md); color: var(--color-ink); font-weight: 500; }
.hm-stock-faq dt:first-child { margin-top: 0; }
.hm-stock-faq dd { margin: var(--space-2xs) 0 0; }
@media (max-width: 60rem) {
  .stock-layout { padding-top: var(--space-lg); }
  .filter-section, .stock-main-content { grid-column: 1 / -1; position: static; }
}
@media (max-width: 40rem) { .car-grid { grid-template-columns: minmax(0, 1fr); } }

/* ════════════ Vehicle detail (vehicle-detail.php) ════════════ */
#vehicle-detail-container { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-xl) var(--gap-columns); align-items: start; padding-block: var(--space-lg) var(--section-gap-s); }
#vehicle-detail-container > *, #vehicle-detail-container > .vehicle-content > * { grid-column: 1 / -1; min-width: 0; }
.breadcrumb-nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2xs) var(--space-xs); font-size: var(--text-sm); color: var(--color-muted); }
.breadcrumb-nav a { color: var(--color-ink-2); }
.breadcrumb-nav a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.error-box { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-md); padding-block: var(--space-3xl); }
.error-box h1 { font-size: var(--text-display-s); }

.vd-head { display: flex; flex-direction: column; gap: var(--space-md); }
.vd-sold { align-self: flex-start; padding: var(--space-2xs) var(--space-sm); background: var(--color-ink); color: var(--color-on-ink); font-size: var(--text-sm); border-radius: 2px; }
.vd-title { font-size: var(--text-2xl); line-height: 1.4; max-width: none; }
.admin-edit-bar a { font-size: var(--text-sm); color: var(--color-ink-2); }
.admin-edit-bar a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.vd-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2xs) var(--space-md); padding-bottom: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-accent); }
.vd-price-label { width: 100%; font-size: var(--text-sm); color: var(--color-muted); }
.vd-price-value { font-family: var(--font-display); font-size: var(--text-display); line-height: 1; font-variant-numeric: tabular-nums; }
.vd-price-value small { margin-left: var(--space-2xs); font-family: var(--font-body); font-size: var(--text-lg); font-weight: 500; }
.vd-price-yen { font-size: var(--text-sm); color: var(--color-ink-2); }

.vd-gallery { position: relative; }
.vd-slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--radius-card); background: var(--color-paper-3); }
.vd-slides::-webkit-scrollbar { display: none; }
.vd-slides:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.vd-slide { flex: 0 0 100%; margin: 0; aspect-ratio: 4 / 3; scroll-snap-align: start; cursor: zoom-in; }
.vd-slide img { width: 100%; height: 100%; object-fit: contain; } /* 2026-11-19 縦長の写真も切らずに全体を見せる（余白は背景色） */
.vd-nav { position: absolute; top: 50%; z-index: var(--z-raised); display: grid; place-items: center; width: 48px; height: 48px; padding: 0; transform: translateY(-50%); border: var(--rule-hair) solid var(--color-rule); border-radius: 2px; background: var(--color-paper-hi); color: var(--color-ink); cursor: pointer; box-shadow: var(--shadow-sheet); transition: background-color var(--dur-short) var(--ease-out); }
.vd-nav:hover { background: var(--color-paper-2); }
.vd-nav:active { transform: translateY(calc(-50% + 1px)); }
.vd-nav:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.vd-prev { left: var(--space-md); }
.vd-next { right: var(--space-md); }
.vd-count { position: absolute; right: var(--space-md); bottom: var(--space-md); z-index: var(--z-raised); padding: var(--space-2xs) var(--space-sm); background: var(--color-ink); color: var(--color-on-ink); font-size: var(--text-sm); font-variant-numeric: tabular-nums; border-radius: 2px; }
.vd-noimg { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--color-paper-2); color: var(--color-muted); border-radius: var(--radius-card); }

#vehicle-detail-container .price-note { font-size: var(--text-sm); color: var(--color-ink-2); max-width: 60em; }
.sale-terms { padding: var(--space-lg); background: var(--color-paper-2); border-radius: var(--radius-card); }
.sale-terms-title { font-weight: 500; margin-bottom: var(--space-xs); }
.sale-terms ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: var(--space-2xs); color: var(--color-ink-2); }
.sale-terms strong { color: var(--color-ink); font-weight: 500; }

.vehicle-content { display: contents; }
.vehicle-main-info { display: flex; flex-direction: column; gap: var(--space-2xl); }
.vehicle-main-info h2 { font-size: var(--text-xl); margin-bottom: var(--space-md); }
.specs-table { width: 100%; border-collapse: collapse; border-top: var(--rule-hair) solid var(--color-ink); }
.specs-table th, .specs-table td { padding: var(--space-sm) 0; border-bottom: var(--rule-hair) solid var(--color-rule); text-align: left; vertical-align: baseline; }
.specs-table th { width: 11em; font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }
.specs-table td { font-variant-numeric: tabular-nums; }
.features-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(12em, 1fr)); gap: 0 var(--gap-columns); margin: 0; padding: 0; list-style: none; border-top: var(--rule-hair) solid var(--color-ink); }
.features-list li { padding: var(--space-sm) 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
.description-content { max-width: 40em; line-height: 1.8; color: var(--color-ink-2); }
.description-content.is-plain { white-space: pre-wrap; }
.description-content img { border-radius: var(--radius-card); }

.contact-aside { display: flex; flex-direction: column; gap: var(--space-md); padding: var(--space-xl); background: var(--color-paper-hi); border-radius: var(--radius-card); box-shadow: var(--shadow-sheet); }
.contact-aside h2 { font-size: var(--text-xl); }
.contact-aside > p { color: var(--color-ink-2); }
.contact-aside .contact-info { display: flex; flex-direction: column; gap: var(--space-2xs); font-size: var(--text-sm); color: var(--color-ink-2); }
.contact-aside .contact-info strong { font-weight: 500; color: var(--color-ink); }
.contact-aside .contact-info a { font-family: var(--font-display); font-size: var(--text-lg); color: var(--color-ink); }
.contact-aside .contact-info a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.contact-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); }
.contact-actions a { display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 2px; font-weight: 500; text-decoration: none; transition: filter var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.contact-actions a:hover { filter: brightness(1.06); }
.contact-actions a:active { transform: translateY(1px); }
.contact-actions a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.contact-actions .btn-call { background: var(--color-ink); color: var(--color-on-ink); }
.contact-actions .btn-line { background: var(--color-line); color: var(--color-line-ink); }
.contact-actions .btn-wa { background: var(--color-wa); color: var(--color-wa-ink); }
.vd-form-btn { width: 100%; }
.line-contact { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: var(--space-xs) var(--space-md); padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); font-size: var(--text-sm); color: var(--color-ink-2); }
.line-contact h3 { margin: 0; font-size: var(--text-sm); font-weight: 500; color: var(--color-ink); }
.line-contact p { grid-column: 1; }
.line-qr-small { grid-column: 2; grid-row: 1 / 3; width: 96px; height: auto; border-radius: 2px; }

.back-to-list-btn {
  position: fixed; left: var(--space-md); bottom: var(--space-md); z-index: var(--z-raised);
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-md);
  border: var(--rule-hair) solid var(--color-ink); border-radius: 2px; background: var(--color-paper-hi); color: var(--color-ink);
  font-size: var(--text-sm); font-weight: 500; text-decoration: none; box-shadow: var(--shadow-sheet);
  transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out);
}
.js .back-to-list-btn:not(.show) { opacity: 0; transform: translateY(8px); pointer-events: none; }
.back-to-list-btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
@media (max-width: 47.99rem) { .back-to-list-btn { bottom: calc(var(--bar-h) + var(--space-md) + env(safe-area-inset-bottom)); } }

.vd-lightbox { max-width: min(1200px, 94%); max-height: 94%; padding: 0; border: 0; border-radius: var(--radius-card); background: var(--color-ink); }
.vd-lightbox::backdrop { background: color-mix(in oklab, var(--color-ink) 88%, transparent); }
.vd-lightbox img { max-height: 88dvh; width: auto; margin-inline: auto; }
.vd-lb-close { position: absolute; top: var(--space-xs); right: var(--space-xs); display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 2px; background: var(--color-paper-hi); color: var(--color-ink); cursor: pointer; }
.vd-lb-close:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.vd-lb-close:active { transform: translateY(1px); }

@media (min-width: 60rem) {
  #vehicle-detail-container > .vd-gallery { grid-column: 1 / 8; grid-row: 2 / 4; }
  #vehicle-detail-container > .vd-head { grid-column: 8 / 13; grid-row: 2; }
  #vehicle-detail-container .contact-aside { grid-column: 8 / 13; grid-row: 3 / 7; position: sticky; top: calc(var(--nav-h) + var(--space-lg)); }
  #vehicle-detail-container > .price-note { grid-column: 1 / 8; grid-row: 4; }
  #vehicle-detail-container > .sale-terms { grid-column: 1 / 8; grid-row: 5; }
  #vehicle-detail-container .vehicle-main-info { grid-column: 1 / 8; grid-row: 6; }
}

/* ════════════ Content pages (about, privacy, sold, thanks, contact, services, blog, login …) ════════════ */
.page-header { padding-block: var(--space-2xl) var(--space-xl); border-bottom: var(--rule-hair) solid var(--color-rule); background-color: var(--color-paper); background-image: var(--grain), radial-gradient(circle at 1px 1px, var(--color-dot) 1px, transparent 1.4px); background-size: 160px 160px, 24px 24px; }
.page-header .container { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-md) var(--gap-columns); align-items: end; }
.page-header h1 { grid-column: 1 / 7; font-size: var(--text-display-s); }
.page-header .container > p { grid-column: 8 / 13; font-size: var(--text-lead); line-height: 1.5; color: var(--color-ink-2); max-width: 32em; }
.page-header .container > p.blog-back { grid-column: 1 / -1; font-size: var(--text-sm); }
.page-header .container > p.page-header-title { grid-column: 1 / -1; font-family: var(--font-display); font-size: var(--text-display-s); line-height: 1.25; color: var(--color-ink); font-feature-settings: "palt"; }
.blog-back a { color: var(--color-ink-2); }
.blog-back a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
@media (max-width: 60rem) { .page-header h1, .page-header .container > p { grid-column: 1 / -1; } }

:is(.hm-about, .hm-privacy, .hm-sold, .hm-contact, .hm-services) main > .container { padding-block: var(--space-2xl) var(--section-gap-s); }
:is(.hm-about, .hm-sold, .hm-contact, .hm-services) main h2 { font-size: clamp(1.75rem, 1.5vw + 1.1rem, 2.75rem); margin-bottom: var(--space-xl); }
:where(.hm main) :where(ul:not([class])) { padding-left: 1.2em; }
:where(.hm main) :where(li:not([class]) + li:not([class])) { margin-top: var(--space-2xs); }
.service-nav li + li { margin-top: 0; }

/* Buttons the old pages use */
.hm .btn.btn-primary, .hm .btn-primary {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs);
  min-height: 52px; padding: 0 var(--space-xl);
  border: var(--rule-hair) solid var(--color-ink); border-radius: 2px; background: var(--color-accent); color: var(--color-accent-ink);
  font: 500 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.hm .btn-primary:hover { background: color-mix(in oklab, var(--color-accent) 86%, var(--color-ink)); }
.hm .btn-primary:active { transform: translateY(1px); }
.hm .btn-primary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.hm .btn-primary:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.hm-btn--brand-line { background: var(--color-line); color: var(--color-line-ink); border-color: var(--color-line); }
.hm-btn--brand-line:hover { background: color-mix(in oklab, var(--color-line) 88%, var(--color-ink)); }

/* Shared field style (contact, login, register) */
:is(.hm-contact, .hm-login, .hm-register) .form-group { display: flex; flex-direction: column; gap: var(--space-xs); margin-bottom: var(--space-lg); }
:is(.hm-contact, .hm-login, .hm-register) .form-group > label, .hm-contact .form-label { font-size: var(--text-sm); font-weight: 500; color: var(--color-ink); }
:is(.hm-contact, .hm-login, .hm-register) :is(input[type="text"], input[type="email"], input[type="tel"], input[type="password"], select, textarea) {
  width: 100%; min-height: 48px; padding: 0 var(--space-md);
  border: var(--rule-hair) solid var(--color-muted); border-radius: var(--radius-card);
  background: var(--color-paper-hi); color: var(--color-ink); font-size: var(--text-md);
  transition: border-color var(--dur-short) var(--ease-out);
}
.hm-contact textarea { min-height: 180px; padding-block: var(--space-sm); line-height: 1.7; resize: vertical; }
.hm-contact select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: var(--space-2xl); background-image: linear-gradient(45deg, transparent 50%, var(--color-ink-2) 50%), linear-gradient(135deg, var(--color-ink-2) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
:is(.hm-contact, .hm-login, .hm-register) :is(input, select, textarea):hover { border-color: var(--color-ink); }
:is(.hm-contact, .hm-login, .hm-register) :is(input, select, textarea):focus-visible { outline: 2px solid var(--color-focus); outline-offset: 1px; border-color: var(--color-ink); }
:is(.hm-contact, .hm-login, .hm-register) :is(input, select, textarea):disabled { opacity: 0.55; cursor: not-allowed; }
.hm input[type="checkbox"], .hm input[type="radio"] { width: 18px; height: 18px; accent-color: var(--color-ink); cursor: pointer; flex-shrink: 0; }
.hm input[type="checkbox"]:focus-visible, .hm input[type="radio"]:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.required { color: var(--color-error); }
.error-message { font-size: var(--text-sm); color: var(--color-error); }
.error-summary, .auth-error { margin-bottom: var(--space-lg); padding: var(--space-md) var(--space-lg); border-radius: var(--radius-card); background: color-mix(in oklab, var(--color-error) 10%, var(--color-paper-hi)); color: var(--color-error); }

/* ─── about.php ─── */
.hm-about main .container > section + section { margin-top: var(--section-gap-s); }
.about-content { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-2xl) var(--gap-columns); align-items: start; }
.about-content p { color: var(--color-ink-2); line-height: 1.9; max-width: 36em; }
.about-content p + p { margin-top: var(--space-md); }
.about-image { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-card); outline: 1px solid color-mix(in oklab, var(--color-ink) 8%, transparent); outline-offset: -1px; }
.info-table, .hours-table { width: 100%; border-collapse: collapse; border-top: var(--rule-hair) solid var(--color-ink); }
.info-table th, .info-table td, .hours-table th, .hours-table td { padding: var(--space-md) 0; border-bottom: var(--rule-hair) solid var(--color-rule); text-align: left; vertical-align: baseline; }
.info-table th, .hours-table th { width: 12em; padding-right: var(--space-lg); font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }
.info-table ul { margin: 0; padding-left: 1.2em; }
.store-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl) var(--gap-columns); align-items: start; }
.store-info h3 { font-size: var(--text-title); margin-bottom: var(--space-md); }
.store-info h4 { margin: var(--space-lg) 0 var(--space-2xs); font-size: var(--text-sm); font-weight: 500; color: var(--color-ink); }
.store-info p { color: var(--color-ink-2); }
.store-map iframe { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius-card); }
.staff-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.staff-card { display: grid; grid-template-columns: 200px minmax(0, 1fr); grid-template-rows: auto auto 1fr; gap: var(--space-2xs) var(--space-xl); align-items: start; }
.staff-photo { grid-row: 1 / 4; width: 200px; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-card); }
.staff-name { font-family: var(--font-display); font-size: var(--text-title); }
.staff-position { font-size: var(--text-sm); color: var(--color-muted); }
.staff-card p { color: var(--color-ink-2); max-width: 36em; }
.history-timeline { border-top: var(--rule-hair) solid var(--color-ink); }
.timeline-content { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: var(--space-md); padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); }
.timeline-year { font-family: var(--font-display); font-size: var(--text-lg); font-variant-numeric: tabular-nums; }
.timeline-content p { color: var(--color-ink-2); }
@media (max-width: 60rem) {
  .about-content, .store-grid { grid-template-columns: minmax(0, 1fr); }
  .staff-card { grid-template-columns: 120px minmax(0, 1fr); }
  .staff-photo { width: 120px; }
  .info-table th, .hours-table th { width: 7em; }
}

/* ─── privacy.php ─── */
.policy-content { max-width: 46em; }
.policy-content > p { color: var(--color-ink-2); line-height: 1.9; }
.policy-content h2 { margin: var(--space-2xl) 0 var(--space-sm); font-size: var(--text-xl); }
.policy-content ul { color: var(--color-ink-2); line-height: 1.9; }
.policy-date { margin-top: var(--space-2xl); font-size: var(--text-sm); color: var(--color-muted); }

/* ─── sold.php ─── */
.intro-text { margin-bottom: var(--space-2xl); color: var(--color-ink-2); }
.sold-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xl) var(--gap-columns); }
.sold-card { display: flex; flex-direction: column; background: var(--color-paper-hi); border-radius: var(--radius-card); box-shadow: var(--shadow-sheet); }
.sold-card .car-image { aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius-card) var(--radius-card) 0 0; background: var(--color-paper-3); }
.sold-card .car-image img { width: 100%; height: 100%; object-fit: contain; } /* 写真は切らない。オーナーの写真は縦長（3:4）が多いので枠も 3:4、横長は上下に余白 */
.sold-card .car-info { display: flex; flex-direction: column; gap: var(--space-sm); padding: var(--space-lg); flex: 1; }
.sold-card h3 { font-family: var(--font-body); font-weight: 500; font-size: var(--text-lg); line-height: 1.5; }
.sold-card .car-meta { font-size: var(--text-sm); color: var(--color-ink-2); }
.sold-info-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-xs); margin-top: auto; padding-top: var(--space-sm); border-top: var(--rule-hair) solid var(--color-rule); }
.sold-status { padding: var(--space-3xs) var(--space-xs); border-radius: 2px; background: var(--color-ink); color: var(--color-on-ink); font-size: var(--text-xs); font-weight: 500; }
.sold-date-bottom { font-size: var(--text-sm); color: var(--color-muted); }
.cta-section { margin-top: var(--section-gap-s); padding: var(--space-2xl) var(--space-xl); border-radius: var(--radius-card); background: var(--color-paper-2); }
.cta-section h2 { margin-bottom: var(--space-md); }
.cta-section p { margin-bottom: var(--space-xl); color: var(--color-ink-2); }
@media (max-width: 74.99rem) { .sold-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .sold-grid { grid-template-columns: minmax(0, 1fr); } }

/* ─── thanks.php ─── */
.thanks-container { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-lg); padding-block: var(--space-3xl) var(--section-gap-s); }
.thanks-container h1 { font-size: var(--text-display-s); }
.thanks-container p { color: var(--color-ink-2); max-width: 40em; line-height: 1.9; }

/* ─── contact.php ─── */
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-2xl) var(--gap-columns); align-items: start; }
.hm-contact .contact-info { grid-column: 1 / 6; }
.hm-contact .contact-form { grid-column: 7 / 13; padding: var(--space-xl); background: var(--color-paper-hi); border-radius: var(--radius-card); box-shadow: var(--shadow-sheet); }
.hm-contact .contact-form h2 { font-size: var(--text-2xl); }
.contact-method { padding-block: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.contact-method:first-of-type { border-top-color: var(--color-ink); }
.contact-method h3 { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-xs); font-family: var(--font-body); font-weight: 500; font-size: var(--text-lg); }
.contact-icon { flex-shrink: 0; color: var(--color-ink-2); }
.contact-method p { color: var(--color-ink-2); }
.contact-method p + p { margin-top: var(--space-2xs); }
.contact-tel { font-family: var(--font-display); font-size: var(--text-2xl); color: var(--color-ink); text-decoration: none; font-variant-numeric: tabular-nums; }
.contact-tel:hover { text-decoration: underline; text-decoration-color: var(--color-accent); }
.contact-tel:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.qr-code-container img { width: 140px; margin-top: var(--space-sm); border-radius: 2px; }
.contact-line-btn-row { margin-top: var(--space-sm); }
.business-hours { padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.business-hours h3 { margin-bottom: var(--space-md); font-size: var(--text-lg); }
.vehicle-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(14em, 1fr)); gap: var(--space-2xs) var(--space-md); margin: 0; padding: var(--space-sm); list-style: none; max-height: 240px; overflow-y: auto; border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper); }
.vehicle-checks label { display: flex; align-items: flex-start; gap: var(--space-xs); padding-block: var(--space-2xs); font-size: var(--text-sm); cursor: pointer; }
.form-check { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs); margin-bottom: var(--space-xl); }
.form-check label { font-size: var(--text-sm); }
.form-check .error-message { width: 100%; }
.hm-contact .contact-form .btn-primary { width: 100%; }
.faq-section { margin-top: var(--section-gap-s); max-width: 52em; }
.faq-item { border-bottom: var(--rule-hair) solid var(--color-rule); }
.faq-item:first-of-type { border-top: var(--rule-hair) solid var(--color-ink); }
.faq-question { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); min-height: 64px; padding-block: var(--space-md); font-weight: 500; font-size: var(--text-lg); cursor: pointer; }
.faq-question::after { content: ""; flex-shrink: 0; width: 8px; height: 8px; margin-right: var(--space-xs); border-right: 2px solid var(--color-ink-2); border-bottom: 2px solid var(--color-ink-2); transform: rotate(45deg); transition: transform var(--dur-short) var(--ease-out); }
.faq-question.open::after { transform: rotate(225deg); }
.faq-question:hover { color: var(--color-ink-2); }
.js .faq-answer { max-height: 0; overflow: hidden; }
.faq-answer p { color: var(--color-ink-2); line-height: 1.9; }
.faq-answer p + p { margin-top: var(--space-xs); }
.faq-answer > :last-child { margin-bottom: var(--space-lg); }
.faq-details { margin-top: var(--space-sm); }
.faq-details summary { cursor: pointer; font-weight: 500; }
.faq-details summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.faq-details ul { margin-top: var(--space-xs); padding-left: 1.2em; color: var(--color-ink-2); }
@media (max-width: 60rem) {
  .hm-contact .contact-info, .hm-contact .contact-form { grid-column: 1 / -1; }
  .hm-contact .contact-form { padding: var(--space-lg); }
}

/* ─── services.php ─── */
.svc-private { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-md) var(--gap-columns); padding: var(--space-2xl) var(--space-xl); border-radius: var(--radius-card); background: var(--color-paper-2); }
.svc-private > * { grid-column: 1 / 8; }
.svc-private h2 { margin-bottom: 0; }
.svc-private > p { color: var(--color-ink-2); line-height: 1.9; }
.svc-private strong { font-weight: 500; color: var(--color-ink); }
.svc-private-points { grid-column: 8 / 13; grid-row: 1 / 4; margin: 0; padding: 0; list-style: none; border-top: var(--rule-hair) solid var(--color-ink); }
.svc-private-points li { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--space-2xs) var(--space-sm); padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); }
.svc-private-points li + li { margin-top: 0; }
.svc-private-points strong { font-family: var(--font-display); font-size: var(--text-2xl); font-variant-numeric: tabular-nums; }
.svc-note { font-size: var(--text-sm); color: var(--color-ink-2); }
.svc-actions { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-sm); }
.svc-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--space-lg);
  border: var(--rule-hair) solid var(--color-ink); border-radius: 2px; background: transparent; color: var(--color-ink);
  font-weight: 500; line-height: 1.4; text-align: center; text-decoration: none; padding-block: var(--space-xs);
  transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.svc-btn:hover { background: var(--color-paper-hi); }
.svc-btn:active { transform: translateY(1px); }
.svc-btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.svc-btn-line { background: var(--color-line); border-color: var(--color-line); color: var(--color-line-ink); }
.svc-btn-line:hover { background: color-mix(in oklab, var(--color-line) 88%, var(--color-ink)); }
.svc-btn-form { background: var(--color-accent); color: var(--color-accent-ink); }
.svc-btn-form:hover { background: color-mix(in oklab, var(--color-accent) 86%, var(--color-ink)); }
.service-nav { margin-block: var(--space-2xl) 0; }
.service-nav ul { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin: 0; padding: 0; list-style: none; }
.service-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-rule); border-radius: 2px; color: var(--color-ink); text-decoration: none; font-size: var(--text-sm); font-weight: 500; transition: border-color var(--dur-short) var(--ease-out); }
.service-nav a:hover { border-color: var(--color-ink); }
.service-nav a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.service-section { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--gap-columns); padding-top: var(--space-3xl); margin-top: var(--space-3xl); border-top: var(--rule-hair) solid var(--color-ink); scroll-margin-top: calc(var(--nav-h) + var(--space-md)); }
.service-section > * { grid-column: 1 / -1; }
.service-header { grid-column: 1 / 5; }
.service-content { grid-column: 5 / 13; }
.service-title { margin-bottom: 0; }
.service-content p { color: var(--color-ink-2); line-height: 1.9; max-width: 40em; }
.service-content p + p { margin-top: var(--space-sm); }
.service-features { grid-column: 5 / 13; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); margin-top: var(--space-2xl); }
.feature-card { padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); }
.feature-card h3 { margin: 0 0 var(--space-xs); font-family: var(--font-body); font-size: var(--text-md); font-weight: 500; }
.feature-card p { font-size: var(--text-sm); color: var(--color-ink-2); }
.service-section > h3 { grid-column: 5 / 13; margin: var(--space-2xl) 0 var(--space-md); font-size: var(--text-xl); }
.service-section > p { grid-column: 5 / 13; font-size: var(--text-sm); color: var(--color-ink-2); }
.service-section > p + p { margin-top: var(--space-2xs); }
.price-table { grid-column: 5 / 13; width: 100%; margin-bottom: var(--space-md); border-collapse: collapse; border-top: var(--rule-hair) solid var(--color-ink); }
.price-table th, .price-table td { padding: var(--space-md) 0; border-bottom: var(--rule-hair) solid var(--color-rule); text-align: left; vertical-align: baseline; }
.price-table th { font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }
.price-table th:last-child, .price-table td:last-child { text-align: right; white-space: nowrap; padding-left: var(--space-md); }
.price-table td:last-child { font-family: var(--font-display); font-size: var(--text-xl); font-variant-numeric: tabular-nums; }
.process-steps { grid-column: 5 / 13; margin: 0; padding: 0; list-style: none; counter-reset: step; border-top: var(--rule-hair) solid var(--color-ink); }
.process-step { counter-increment: step; display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: var(--space-2xs) var(--space-md); padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); }
.process-step::before { content: counter(step); grid-row: 1 / 3; font-family: var(--font-display); font-size: var(--text-xl); color: var(--color-muted); font-variant-numeric: tabular-nums; }
.process-step h3 { margin: 0; font-family: var(--font-body); font-size: var(--text-md); font-weight: 500; }
.process-step p { font-size: var(--text-sm); color: var(--color-ink-2); }
.cta-box { grid-column: 5 / 13; margin-top: var(--space-2xl); padding: var(--space-xl); border-radius: var(--radius-card); background: var(--color-paper-2); }
.cta-box h3 { margin-bottom: var(--space-xs); font-size: var(--text-xl); }
.cta-box p { color: var(--color-ink-2); }
.cta-box .btn-primary { min-height: 48px; padding-inline: var(--space-lg); background: var(--color-ink); color: var(--color-on-ink); }
.cta-box .btn-primary:hover { background: var(--color-ink-2); }
@media (max-width: 60rem) {
  .svc-private { padding: var(--space-xl) var(--space-lg); }
  .svc-private > *, .svc-private-points { grid-column: 1 / -1; grid-row: auto; }
  .service-header, .service-content, .service-features, .service-section > h3, .service-section > p, .price-table, .process-steps, .cta-box { grid-column: 1 / -1; }
  .service-header { margin-bottom: var(--space-lg); }
  .service-features { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
@media (max-width: 40rem) { .svc-actions > a { flex: 1 1 100%; } }

/* ─── blog.php ─── */
.blog-wrapper { width: 100%; max-width: var(--container); margin-inline: auto; padding: var(--space-2xl) var(--gutter) var(--section-gap-s); }
.category-tabs { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-bottom: var(--space-2xl); }
.category-tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-rule); border-radius: 2px; color: var(--color-ink); text-decoration: none; font-size: var(--text-sm); font-weight: 500; transition: border-color var(--dur-short) var(--ease-out); }
.category-tabs a:hover { border-color: var(--color-ink); }
.category-tabs a.active { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-on-ink); }
.category-tabs a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.blog-card { position: relative; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-xl) var(--gap-columns); padding-block: var(--space-xl); border-bottom: var(--rule-hair) solid var(--color-rule); }
.blog-card:first-of-type { border-top: var(--rule-hair) solid var(--color-ink); }
.blog-card-thumb { aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius-card); background: var(--color-paper-2); }
.blog-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { display: flex; flex-direction: column; gap: var(--space-sm); min-width: 0; }
.blog-card-meta, .blog-detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs) var(--space-md); font-size: var(--text-sm); color: var(--color-muted); font-variant-numeric: tabular-nums; }
.blog-card-category, .blog-detail-category { padding: var(--space-3xs) var(--space-xs); border: var(--rule-hair) solid var(--color-rule); border-radius: 2px; color: var(--color-ink-2); font-size: var(--text-xs); font-weight: 500; }
.blog-card-title { font-family: var(--font-body); font-weight: 500; font-size: var(--text-xl); line-height: 1.5; max-width: none; }
.blog-card-title a { color: var(--color-ink); text-decoration: none; }
.blog-card-title a::after { content: ""; position: absolute; inset: 0; }
.blog-card:hover .blog-card-title a { text-decoration: underline; text-decoration-color: var(--color-accent); }
.blog-card-title a:focus-visible { outline: none; }
.blog-card-title a:focus-visible::after { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.blog-card-excerpt { color: var(--color-ink-2); }
.blog-card-readmore { position: relative; z-index: var(--z-raised); align-self: flex-start; margin-top: auto; font-size: var(--text-sm); font-weight: 500; color: var(--color-ink); }
.blog-card-readmore:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.pagination span, .pagination .current { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 var(--space-sm); border: var(--rule-hair) solid var(--color-ink); border-radius: 2px; background: var(--color-ink); color: var(--color-on-ink); font-variant-numeric: tabular-nums; }
.no-posts { padding: var(--space-2xl); border-radius: var(--radius-card); background: var(--color-paper-2); }
.no-posts h2 { margin-bottom: var(--space-sm); font-size: var(--text-xl); }
.no-posts p { color: var(--color-ink-2); }
/* Generated covers for posts without a photo (components/blog_cover.php) */
.hm .blog-cover { display: flex; flex-direction: column; justify-content: flex-end; gap: var(--space-2xs); width: 100%; height: 100%; min-height: 160px; padding: var(--space-lg); background-color: var(--color-paper-2); background-image: radial-gradient(circle at 1px 1px, var(--color-dot) 1px, transparent 1.4px); background-size: 24px 24px; color: var(--color-ink); }
.hm .blog-cover-brand, .hm .blog-cover-label, .hm .blog-cover-line { display: none; }
.hm .blog-cover-sub { font-family: var(--font-display); font-size: var(--text-xl); line-height: 1.2; font-variant-numeric: tabular-nums; }
.hm .blog-cover-ja { padding-top: var(--space-2xs); border-top: var(--rule-hair) solid var(--color-accent); font-size: var(--text-sm); color: var(--color-ink-2); }
@media (max-width: 47.99rem) { .blog-card { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); } }

/* ─── blog-detail.php ─── */
.blog-detail-wrapper { width: 100%; max-width: calc(46em + 2 * var(--gutter)); margin-inline: auto; padding: var(--space-2xl) var(--gutter) var(--section-gap-s); }
.blog-detail-header { display: flex; flex-direction: column; gap: var(--space-md); margin-bottom: var(--space-xl); }
.blog-detail-title { font-size: var(--text-3xl); line-height: 1.35; max-width: none; }
.blog-detail-thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-card); margin-bottom: var(--space-xl); }
.blog-detail-content { font-size: var(--text-md); line-height: 1.95; color: var(--color-ink-2); overflow-wrap: break-word; }
.blog-detail-content > * + * { margin-top: var(--space-md); }
.blog-detail-content h2 { margin-top: var(--space-2xl); padding-bottom: var(--space-xs); border-bottom: var(--rule-hair) solid var(--color-ink); font-size: var(--text-2xl); color: var(--color-ink); max-width: none; }
.blog-detail-content h3 { margin-top: var(--space-xl); font-size: var(--text-xl); color: var(--color-ink); }
.blog-detail-content a { color: var(--color-ink); }
.blog-detail-content img { height: auto; border-radius: var(--radius-card); }
.blog-detail-content ul, .blog-detail-content ol { padding-left: 1.4em; }
.blog-detail-content blockquote { margin-inline: 0; padding: var(--space-md) var(--space-lg); border-radius: var(--radius-card); background: var(--color-paper-2); }
.blog-detail-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: var(--text-sm); white-space: nowrap; border-top: var(--rule-hair) solid var(--color-ink); }
.blog-detail-content th, .blog-detail-content td { padding: var(--space-xs) var(--space-md) var(--space-xs) 0; border-bottom: var(--rule-hair) solid var(--color-rule); text-align: left; font-variant-numeric: tabular-nums; }
.blog-detail-content th { font-weight: 500; color: var(--color-ink); }
.blog-detail-content .blog-note { font-size: var(--text-sm); color: var(--color-muted); }
.blog-detail-content .blog-owner-note { padding: var(--space-md) var(--space-lg); border-radius: var(--radius-card); background: var(--color-paper-2); color: var(--color-ink); }
.blog-detail-nav { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap-columns); margin-top: var(--space-3xl); padding-top: var(--space-xl); border-top: var(--rule-hair) solid var(--color-ink); }
.blog-detail-nav a { display: flex; flex-direction: column; gap: var(--space-2xs); padding: var(--space-md); border: var(--rule-hair) solid var(--color-rule); border-radius: 2px; color: var(--color-ink); text-decoration: none; transition: border-color var(--dur-short) var(--ease-out); }
.blog-detail-nav a:hover { border-color: var(--color-ink); }
.blog-detail-nav a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.blog-nav-next { text-align: right; }
.blog-detail-nav .nav-label { font-size: var(--text-sm); color: var(--color-muted); }
.blog-detail-nav .nav-title { font-weight: 500; }
@media (max-width: 47.99rem) { .blog-detail-nav { grid-template-columns: minmax(0, 1fr); } }

/* ─── login.php · register.php · pending.php ─── */
.auth-wrap { padding: var(--space-3xl) var(--gutter) var(--section-gap-s); background-color: var(--color-paper); background-image: var(--grain), radial-gradient(circle at 1px 1px, var(--color-dot) 1px, transparent 1.4px); background-size: 160px 160px, 24px 24px; }
.auth-card { width: 100%; max-width: 30rem; margin-inline: auto; padding: var(--space-xl); background: var(--color-paper-hi); border-radius: var(--radius-card); box-shadow: var(--shadow-sheet); }
.auth-card h1 { margin-bottom: var(--space-xs); font-size: var(--text-2xl); }
.auth-sub, .auth-card > p { margin-bottom: var(--space-lg); color: var(--color-ink-2); }
.auth-hint { font-size: var(--text-xs); color: var(--color-muted); }
.auth-submit {
  display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; margin-top: var(--space-xs);
  border: var(--rule-hair) solid var(--color-ink); border-radius: 2px; background: var(--color-accent); color: var(--color-accent-ink);
  font: 500 var(--text-md)/1 var(--font-body); cursor: pointer;
  transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.auth-submit:hover { background: color-mix(in oklab, var(--color-accent) 86%, var(--color-ink)); }
.auth-submit:active { transform: translateY(1px); }
.auth-submit:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.auth-submit:disabled { opacity: 0.55; cursor: not-allowed; }
.auth-divider { display: flex; align-items: center; gap: var(--space-sm); margin-block: var(--space-lg); font-size: var(--text-sm); color: var(--color-muted); }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--color-rule); }
.btn-google { display: flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 48px; border: var(--rule-hair) solid var(--color-ink); border-radius: 2px; color: var(--color-ink); text-decoration: none; font-weight: 500; transition: background-color var(--dur-short) var(--ease-out); }
.btn-google:hover { background: var(--color-paper-2); }
.btn-google:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.auth-links { margin-top: var(--space-lg); font-size: var(--text-sm); color: var(--color-ink-2); }
.auth-links a { color: var(--color-ink); }
.auth-links a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.auth-links--admin { margin-top: var(--space-sm); font-size: var(--text-xs); color: var(--color-muted); }
.auth-links--admin a { color: var(--color-muted); }
.pending-email { font-family: var(--font-display); font-size: var(--text-lg); color: var(--color-ink); }

/* ════════════ search.php: the auction price search (an app screen, kept dense) ════════════ */
.hm-souba { --pt50: var(--color-muted); }
.hm-souba main > .container { padding-block: var(--space-xl) var(--section-gap-s); }
.srch-hero { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-xs) var(--space-lg); padding-bottom: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-ink); }
.srch-hero h1 { font-size: var(--text-2xl); }
.srch-hero p { font-size: var(--text-sm); color: var(--color-muted); }
.srch-logout { color: var(--color-ink-2); }
.srch-logout:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
#sf { margin-top: var(--space-md); }
.acc-wrap { margin-block: var(--space-xs); }
.acc-hdr { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); min-height: 48px; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper-hi); color: var(--color-ink); font-weight: 500; font-size: var(--text-sm); cursor: pointer; user-select: none; transition: border-color var(--dur-short) var(--ease-out); }
.acc-hdr:hover { border-color: var(--color-ink); }
.acc-hdr .acc-right { display: flex; align-items: center; gap: var(--space-sm); font-weight: 400; }
.summary-text { max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--text-xs); color: var(--color-muted); }
.acc-clear { font-size: var(--text-xs); color: var(--color-ink-2); }
.acc-clear:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.acc-body { padding: var(--space-md); border: var(--rule-hair) solid var(--color-rule); border-top: 0; border-radius: 0 0 var(--radius-card) var(--radius-card); background: var(--color-paper-2); }
.mk-car-container { display: flex; align-items: flex-start; gap: var(--space-sm); }
.maker-panel { flex: 0 0 220px; }
.model-panel { flex: 1; min-width: 0; }
.arrow-mid { flex-shrink: 0; padding-top: var(--space-3xl); color: var(--color-muted); }
.panel-actions { display: flex; flex-wrap: wrap; gap: var(--space-3xs) var(--space-xs); min-height: 24px; margin-bottom: var(--space-2xs); font-size: var(--text-xs); }
.panel-actions a { color: var(--color-ink-2); cursor: pointer; }
.panel-actions a:hover { color: var(--color-ink); }
.panel-actions a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.panel-actions .sep, .hm-souba .sep { padding: 0 var(--space-3xs); color: var(--color-muted); font-size: var(--text-xs); }
.scrollable-list { height: 220px; overflow-y: auto; padding: var(--space-3xs); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper-hi); }
.list-grp-hdr { margin-top: var(--space-3xs); padding: var(--space-2xs) var(--space-xs); background: var(--color-paper-2); color: var(--color-muted); font-size: var(--text-xs); }
.list-row { display: flex; align-items: center; gap: var(--space-xs); padding: var(--space-2xs) var(--space-xs); border-bottom: var(--rule-hair) solid var(--color-paper-2); font-size: var(--text-sm); color: var(--color-ink); cursor: pointer; }
.list-row:hover { background: var(--color-paper-2); }
.list-row input { width: 16px; height: 16px; }
.list-name { flex: 1; }
.list-cnt { margin-left: var(--space-3xs); white-space: nowrap; font-size: var(--text-xs); color: var(--color-muted); font-variant-numeric: tabular-nums; }
.model-filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs); margin-bottom: var(--space-2xs); }
.hm-souba :is(#model-filter, .fsel, .ftxt) { min-height: 36px; padding: 0 var(--space-xs); border: var(--rule-hair) solid var(--color-muted); border-radius: var(--radius-card); background: var(--color-paper-hi); color: var(--color-ink); font-size: var(--text-sm); transition: border-color var(--dur-short) var(--ease-out); }
.hm-souba :is(#model-filter, .fsel, .ftxt):hover { border-color: var(--color-ink); }
.hm-souba :is(#model-filter, .fsel, .ftxt):focus-visible { outline: 2px solid var(--color-focus); outline-offset: 1px; border-color: var(--color-ink); }
.hm-souba :is(#model-filter, .fsel, .ftxt):disabled { opacity: 0.55; cursor: not-allowed; }
#model-filter { width: 160px; }
.ftxt { width: 72px; font-variant-numeric: tabular-nums; }
.filter-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 var(--space-xl); }
.ftbl { width: 100%; border-collapse: collapse; }
.ftbl tr { border-bottom: var(--rule-hair) solid var(--color-rule); }
.ftbl tr:last-child { border-bottom: 0; }
.ftbl th { width: 88px; padding: var(--space-xs) var(--space-xs) var(--space-xs) 0; text-align: right; vertical-align: middle; white-space: nowrap; font-size: var(--text-xs); font-weight: 500; color: var(--color-muted); }
.ftbl td { padding: var(--space-xs) var(--space-2xs); vertical-align: middle; font-size: var(--text-sm); color: var(--color-ink); }
.r-lbl, .chk-lbl { display: inline-flex; align-items: center; gap: var(--space-3xs); margin-right: var(--space-sm); white-space: nowrap; font-size: var(--text-sm); color: var(--color-ink); cursor: pointer; }
.hm-souba .r-lbl input, .hm-souba .chk-lbl input { width: 16px; height: 16px; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs); margin-block: var(--space-md); }
.btn-search { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--space-xl); border: var(--rule-hair) solid var(--color-ink); border-radius: 2px; background: var(--color-accent); color: var(--color-accent-ink); font: 500 var(--text-md)/1 var(--font-body); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn-search:hover { background: color-mix(in oklab, var(--color-accent) 86%, var(--color-ink)); }
.btn-search:active { transform: translateY(1px); }
.btn-search:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.btn-search:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-csv { display: inline-flex; align-items: center; min-height: 48px; padding: 0 var(--space-lg); border: var(--rule-hair) solid var(--color-ink); border-radius: 2px; color: var(--color-ink); font-weight: 500; font-size: var(--text-sm); text-decoration: none; transition: background-color var(--dur-short) var(--ease-out); }
.btn-csv:hover { background: var(--color-paper-2); }
.btn-csv:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.srch-results-hdr { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-xs); margin: var(--space-md) 0 var(--space-xs); }
.srch-count { font-size: var(--text-sm); color: var(--color-muted); }
.srch-count strong { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 400; color: var(--color-ink); font-variant-numeric: tabular-nums; }
.srch-limit { margin-left: var(--space-2xs); font-size: var(--text-xs); color: var(--color-error); }
.srch-tbl-wrap { overflow-x: auto; border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper-hi); }
table.srch-tbl { width: 100%; border-collapse: collapse; font-size: var(--text-sm); white-space: nowrap; }
.srch-tbl th { padding: var(--space-xs) var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-ink); background: var(--color-paper-hi); text-align: left; font-size: var(--text-xs); font-weight: 500; color: var(--color-muted); }
.srch-tbl td { padding: var(--space-xs) var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-paper-2); color: var(--color-ink); vertical-align: middle; font-variant-numeric: tabular-nums; }
.srch-tbl tr:last-child td { border-bottom: 0; }
.srch-tbl tbody tr:hover td { background: var(--color-paper); }
.hm-souba .muted { color: var(--color-muted); }
.price-val { font-weight: 500; color: var(--color-ink); }
.car-nm { font-weight: 500; }
.car-gr { display: block; font-size: var(--text-xs); color: var(--color-muted); }
.sbdg { display: inline-block; padding: var(--space-3xs) var(--space-xs); border-radius: 2px; font-size: var(--text-xs); font-weight: 500; }
.sbdg-r { background: color-mix(in oklab, var(--color-success) 14%, var(--color-paper-hi)); color: var(--color-success); }
.sbdg-n { background: color-mix(in oklab, var(--color-error) 12%, var(--color-paper-hi)); color: var(--color-error); }
.sbdg-o { background: var(--color-paper-2); color: var(--color-muted); }
.srch-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-xs); margin: var(--space-md) 0 var(--space-xl); font-size: var(--text-sm); color: var(--color-muted); }
.srch-pager a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-rule); border-radius: 2px; color: var(--color-ink); text-decoration: none; transition: border-color var(--dur-short) var(--ease-out); }
.srch-pager a:hover { border-color: var(--color-ink); }
.srch-pager a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.srch-empty { padding: var(--space-2xl) var(--space-lg); border-radius: var(--radius-card); background: var(--color-paper-2); text-align: center; color: var(--color-ink-2); }
@media (max-width: 47.5rem) { .filter-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 40rem) {
  .mk-car-container { flex-direction: column; }
  .arrow-mid { display: none; }
  .maker-panel { flex: none; width: 100%; }
}

/* ════════════ quick-buy.php: this week's one-price cars ════════════ */
.qb-container { width: 100%; max-width: var(--container); margin-inline: auto; padding: 0 var(--gutter) var(--section-gap-s); }
.qb-header { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-md) var(--gap-columns); align-items: end; margin-inline: calc(-1 * var(--gutter)); padding: var(--space-2xl) var(--gutter) var(--space-xl); border-bottom: var(--rule-hair) solid var(--color-rule); background-color: var(--color-paper); background-image: var(--grain), radial-gradient(circle at 1px 1px, var(--color-dot) 1px, transparent 1.4px); background-size: 160px 160px, 24px 24px; }
.qb-header h1 { grid-column: 1 / 7; font-size: var(--text-display-s); }
.qb-header p { grid-column: 8 / 13; font-size: var(--text-lead); line-height: 1.5; color: var(--color-ink-2); }
.qb-error { margin-top: var(--space-2xl); padding: var(--space-2xl); border-radius: var(--radius-card); background: var(--color-paper-2); color: var(--color-ink-2); }
.qb-cta-box { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-lg) var(--gap-columns); margin-top: var(--space-2xl); padding: var(--space-xl); border-radius: var(--radius-card); background: var(--color-paper-2); }
.qb-steps { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); margin: 0; padding: 0; list-style: none; counter-reset: qbstep; }
.qb-steps li { counter-increment: qbstep; display: flex; flex-direction: column; gap: var(--space-2xs); padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-ink); }
.qb-steps li::before { content: counter(qbstep); font-family: var(--font-display); font-size: var(--text-2xl); line-height: 1; color: var(--color-muted); }
.qb-steps strong { font-weight: 500; font-size: var(--text-lg); }
.qb-steps span { font-size: var(--text-sm); color: var(--color-ink-2); }
.qb-cta-text { grid-column: 1 / 8; font-size: var(--text-sm); color: var(--color-ink-2); }
.qb-cta-actions { grid-column: 8 / 13; display: flex; flex-wrap: wrap; gap: var(--space-xs); justify-content: flex-end; align-self: end; }
.qb-cta-btn, .qb-line-btn, .qb-btn-inquiry, .qb-card-line, .qb-btn-detail, .qb-more, .qb-faq-btn, .qb-modal-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--space-lg);
  border: var(--rule-hair) solid var(--color-ink); border-radius: 2px; background: transparent; color: var(--color-ink);
  font: 500 var(--text-sm)/1.2 var(--font-body); text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
:is(.qb-cta-btn, .qb-line-btn, .qb-btn-inquiry, .qb-card-line, .qb-btn-detail, .qb-more, .qb-faq-btn, .qb-modal-btn):hover { background: var(--color-paper-hi); }
:is(.qb-cta-btn, .qb-line-btn, .qb-btn-inquiry, .qb-card-line, .qb-btn-detail, .qb-more, .qb-faq-btn, .qb-modal-btn):active { transform: translateY(1px); }
:is(.qb-cta-btn, .qb-line-btn, .qb-btn-inquiry, .qb-card-line, .qb-btn-detail, .qb-more, .qb-faq-btn, .qb-modal-btn):focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
:is(.qb-cta-btn, .qb-btn-detail, .qb-more, .qb-modal-btn):disabled { opacity: 0.55; cursor: not-allowed; }
.qb-cta-btn { background: var(--color-accent); color: var(--color-accent-ink); }
.qb-cta-btn:hover { background: color-mix(in oklab, var(--color-accent) 86%, var(--color-ink)); }
:is(.qb-line-btn, .qb-card-line, .qb-faq-btn-line, .qb-modal-btn-line) { background: var(--color-line); border-color: var(--color-line); color: var(--color-line-ink); }
:is(.qb-line-btn, .qb-card-line, .qb-faq-btn-line, .qb-modal-btn-line):hover { background: color-mix(in oklab, var(--color-line) 88%, var(--color-ink)); }
:is(.qb-faq-btn-phone, .qb-modal-btn-phone) { background: var(--color-ink); color: var(--color-on-ink); }
:is(.qb-faq-btn-phone, .qb-modal-btn-phone):hover { background: var(--color-ink-2); }

.qb-tabs { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-2xl); }
.qb-tab { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-rule); border-radius: 2px; background: var(--color-paper-hi); color: var(--color-ink); font: 500 var(--text-sm)/1 var(--font-body); cursor: pointer; transition: border-color var(--dur-short) var(--ease-out); }
.qb-tab:hover { border-color: var(--color-ink); }
.qb-tab:active { transform: translateY(1px); }
.qb-tab:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.qb-tab:disabled { opacity: 0.55; cursor: not-allowed; }
.qb-tab.active { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-on-ink); }
.qb-tab-count { font-variant-numeric: tabular-nums; opacity: 0.75; }
.qb-toolbar { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-md); margin-top: var(--space-lg); }
.qb-field { display: flex; flex-direction: column; gap: var(--space-xs); min-width: 0; }
.qb-field > span { font-size: var(--text-sm); font-weight: 500; color: var(--color-ink); }
.qb-field :is(input, select) { width: 100%; min-height: 48px; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-muted); border-radius: var(--radius-card); background: var(--color-paper-hi); color: var(--color-ink); font-size: var(--text-md); transition: border-color var(--dur-short) var(--ease-out); }
.qb-field :is(input, select):hover { border-color: var(--color-ink); }
.qb-field :is(input, select):focus-visible { outline: 2px solid var(--color-focus); outline-offset: 1px; border-color: var(--color-ink); }
.qb-field :is(input, select):disabled { opacity: 0.55; cursor: not-allowed; }
.qb-result-count { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-muted); font-variant-numeric: tabular-nums; }
.qb-no-results { display: none; margin-top: var(--space-lg); padding: var(--space-xl); border-radius: var(--radius-card); background: var(--color-paper-2); color: var(--color-ink-2); }
.qb-no-results.active { display: block; }
.qb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xl) var(--gap-columns); margin-top: var(--space-lg); }
.qb-card { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--color-paper-hi); border-radius: var(--radius-card); box-shadow: var(--shadow-sheet); }
.qb-image-wrapper { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-card) var(--radius-card) 0 0; background: var(--color-paper-3); cursor: zoom-in; }
.qb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; /* 2026-11-19 写真を切らずに全体を見せる */ transition: opacity var(--dur-short) var(--ease-out); }
.qb-img-sheet { opacity: 0; object-fit: contain; background: var(--color-paper-hi); }
@media (hover: hover) {
  .qb-image-wrapper:hover .qb-img-car { opacity: 0; }
  .qb-image-wrapper:hover .qb-img-sheet { opacity: 1; }
}
.qb-badge-deadline, .qb-badge-score { position: absolute; top: var(--space-sm); z-index: var(--z-raised); padding: var(--space-3xs) var(--space-xs); border-radius: 2px; font-size: var(--text-xs); font-weight: 500; }
.qb-badge-deadline { left: var(--space-sm); background: var(--color-paper-hi); color: var(--color-ink); }
.qb-badge-urgent, .qb-badge-ended { background: var(--color-ink); color: var(--color-on-ink); }
.qb-badge-warning { background: var(--color-accent); color: var(--color-accent-ink); }
.qb-badge-new { background: var(--color-paper-hi); color: var(--color-ink); }
.qb-badge-score { right: var(--space-sm); background: var(--color-paper-hi); color: var(--color-ink); font-variant-numeric: tabular-nums; }
.qb-content { display: flex; flex-direction: column; gap: var(--space-xs); padding: var(--space-lg); flex: 1; }
.qb-lot-no { font-size: var(--text-xs); color: var(--color-muted); font-variant-numeric: tabular-nums; }
.qb-car-name { font-family: var(--font-body); font-weight: 500; font-size: var(--text-lg); line-height: 1.45; max-width: none; }
.qb-car-grade { font-size: var(--text-sm); color: var(--color-ink-2); }
.qb-spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xs) var(--space-md); padding-top: var(--space-sm); border-top: var(--rule-hair) solid var(--color-rule); }
.qb-spec-item { display: flex; flex-direction: column; }
.qb-spec-lbl { font-size: var(--text-xs); color: var(--color-muted); }
.qb-spec-val { font-size: var(--text-sm); font-weight: 500; font-variant-numeric: tabular-nums; }
.qb-listing-deadline { font-size: var(--text-sm); color: var(--color-ink-2); }
.qb-listing-deadline strong { font-weight: 500; }
.qb-total-row { display: flex; flex-direction: column; margin-top: auto; padding-top: var(--space-sm); }
.qb-total-label { font-size: var(--text-sm); color: var(--color-muted); }
.qb-total-value { font-family: var(--font-display); font-size: var(--text-3xl); line-height: 1.1; font-variant-numeric: tabular-nums; }
.qb-card-note { font-size: var(--text-xs); color: var(--color-muted); }
.qb-btn-detail { width: 100%; margin-top: var(--space-xs); }
.qb-card-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-xs); }
.qb-btn-inquiry { background: var(--color-ink); color: var(--color-on-ink); }
.qb-btn-inquiry:hover { background: var(--color-ink-2); }
.qb-more-wrap { display: flex; justify-content: center; margin-top: var(--space-2xl); }
.qb-disclaimer { margin-top: var(--space-xl); max-width: 60em; font-size: var(--text-sm); color: var(--color-ink-2); }
@media (max-width: 74.99rem) { .qb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 60rem) {
  .qb-header h1, .qb-header p, .qb-cta-text, .qb-cta-actions { grid-column: 1 / -1; }
  .qb-cta-actions { justify-content: flex-start; }
  .qb-steps { grid-template-columns: minmax(0, 1fr); }
  .qb-toolbar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .qb-toolbar .qb-field:first-child { grid-column: 1 / -1; }
}
@media (max-width: 40rem) { .qb-grid { grid-template-columns: minmax(0, 1fr); } .qb-cta-box { padding: var(--space-lg); } }

.qb-faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-xl) var(--gap-columns); margin-top: var(--section-gap-s); }
.qb-faq-header { grid-column: 1 / 5; display: flex; flex-direction: column; gap: var(--space-sm); }
.qb-faq-title { font-size: clamp(1.75rem, 1.5vw + 1.1rem, 2.75rem); }
.qb-faq-subtitle { color: var(--color-ink-2); }
.qb-faq-list { grid-column: 5 / 13; border-top: var(--rule-hair) solid var(--color-ink); }
.qb-faq-item { border-bottom: var(--rule-hair) solid var(--color-rule); }
.qb-faq-q { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); width: 100%; min-height: 64px; padding: var(--space-md) 0; border: 0; background: none; color: var(--color-ink); font: 500 var(--text-lg)/1.5 var(--font-body); text-align: left; cursor: pointer; }
.qb-faq-q:hover { color: var(--color-ink-2); }
.qb-faq-q:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.qb-faq-q:active { color: var(--color-ink); }
.qb-faq-icon { flex-shrink: 0; width: 8px; height: 8px; margin-right: var(--space-xs); border-right: 2px solid var(--color-ink-2); border-bottom: 2px solid var(--color-ink-2); transform: rotate(45deg); transition: transform var(--dur-short) var(--ease-out); }
.qb-faq-q[aria-expanded="true"] .qb-faq-icon { transform: rotate(225deg); }
.qb-faq-a p { padding-bottom: var(--space-lg); color: var(--color-ink-2); line-height: 1.9; max-width: 40em; }
.qb-faq-cta { grid-column: 5 / 13; display: flex; flex-direction: column; gap: var(--space-md); padding: var(--space-xl); border-radius: var(--radius-card); background: var(--color-paper-2); }
.qb-faq-cta-text { color: var(--color-ink-2); }
.qb-faq-cta-btns { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
@media (max-width: 60rem) { .qb-faq-header, .qb-faq-list, .qb-faq-cta { grid-column: 1 / -1; } }

.qb-modal-overlay { display: none; position: fixed; inset: 0; z-index: var(--z-modal); align-items: center; justify-content: center; padding: var(--space-md); overflow-y: auto; background: color-mix(in oklab, var(--color-ink) 82%, transparent); }
.qb-modal-overlay.active { display: flex; }
.qb-modal { position: relative; width: 100%; max-width: 1120px; max-height: 92dvh; overflow-y: auto; border-radius: var(--radius-card); background: var(--color-paper-hi); box-shadow: var(--shadow-sheet); }
.qb-modal-close { position: sticky; top: var(--space-sm); float: right; z-index: var(--z-raised); display: grid; place-items: center; width: 44px; height: 44px; margin: var(--space-sm) var(--space-sm) 0 0; padding: 0; border: var(--rule-hair) solid var(--color-rule); border-radius: 2px; background: var(--color-paper-hi); color: var(--color-ink); cursor: pointer; }
.qb-modal-close:hover { border-color: var(--color-ink); }
.qb-modal-close:active { transform: translateY(1px); }
.qb-modal-close:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.qb-modal-body { display: flex; flex-direction: column; gap: var(--space-md); padding: var(--space-xl); }
.qb-modal-title { font-size: var(--text-2xl); padding-right: var(--space-3xl); max-width: none; }
.qb-modal-lot, .qb-modal-deadline { font-size: var(--text-sm); color: var(--color-ink-2); font-variant-numeric: tabular-nums; }
.qb-modal-media-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap-columns); }
.qb-modal-media-panel { display: flex; flex-direction: column; gap: var(--space-xs); }
.qb-modal-media-title { font-size: var(--text-sm); font-weight: 500; }
.qb-modal-sheet-frame, .qb-modal-car-frame { aspect-ratio: 4 / 3; overflow: hidden; border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper); }
.qb-modal-sheet-frame img, .qb-modal-car-frame img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.qb-modal-media-note { font-size: var(--text-xs); color: var(--color-muted); }
.qb-modal-specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--gap-columns); border-top: var(--rule-hair) solid var(--color-ink); }
.qb-modal-spec { display: flex; flex-direction: column; padding-block: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); }
.qb-modal-spec-label { font-size: var(--text-xs); color: var(--color-muted); }
.qb-modal-spec-value { font-weight: 500; font-variant-numeric: tabular-nums; }
.qb-modal-points { padding: var(--space-md) var(--space-lg); border-radius: var(--radius-card); background: var(--color-paper-2); }
.qb-modal-points-label { font-size: var(--text-sm); font-weight: 500; }
.qb-modal-points-text { color: var(--color-ink-2); }
.qb-modal-total { display: flex; flex-direction: column; padding-bottom: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-accent); }
.qb-modal-total-label { font-size: var(--text-sm); color: var(--color-muted); }
.qb-modal-total-value { font-family: var(--font-display); font-size: var(--text-display-s); line-height: 1.1; font-variant-numeric: tabular-nums; }
.qb-modal-notice { font-size: var(--text-sm); color: var(--color-ink-2); }
.qb-modal-btn-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xs); }
@media (max-width: 47.99rem) {
  .qb-modal-body { padding: var(--space-lg); }
  .qb-modal-media-grid, .qb-modal-btn-row { grid-template-columns: minmax(0, 1fr); }
  .qb-modal-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .hm-btn, .megamenu, .megamenu-trigger, .back-to-top-btn, .back-to-list-btn, .hm-nav .nav-link, .car-grid, .filter-toggle > summary::after, .contact-actions a, .vd-nav, .pagination a, .filter-buttons #search-btn, .input-with-unit input, .maker-select-wrapper select, .hm-search select, .hm .btn-primary, .svc-btn, .service-nav a, .category-tabs a, .blog-detail-nav a, .auth-submit, .btn-google, .faq-question::after, .acc-hdr, .btn-search, .btn-csv, .srch-pager a, .qb-tab, .qb-img, .qb-faq-icon, .qb-cta-btn, .qb-line-btn, .qb-btn-inquiry, .qb-card-line, .qb-btn-detail, .qb-more, .qb-faq-btn, .qb-modal-btn, .qb-field input, .qb-field select { transition: none; }
}

/* ─── Other languages (en / zh / id / vi): same system, fonts that carry the script ─── */
:root:lang(zh-Hans), :root:lang(zh) {
  --font-display: "Hedvig Letters Serif", "Noto Serif SC", "Songti SC", "SimSun", serif;
  --font-body: "Geist", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}
:root:lang(vi) {
  --font-display: "Noto Serif", "Times New Roman", serif;
}
:root:lang(en), :root:lang(id) {
  --font-display: "Hedvig Letters Serif", Georgia, serif;
  --font-body: "Geist", system-ui, sans-serif;
}
.hm-btn--wa { background: var(--color-wa); color: var(--color-wa-ink); border-color: var(--color-wa); }
.hm-btn--wa:hover { background: color-mix(in oklab, var(--color-wa) 86%, var(--color-ink)); }
.hm-btn--wa::after { border-color: var(--color-wa-ink); }
.hm-header-wa { min-height: 40px; padding-inline: var(--space-md); font-size: var(--text-sm); }
.hm-hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xl); }
.hm-hero-actions + .hm-hero-tel { margin-top: var(--space-lg); }
.hm-car-price-fig--yen { font-size: var(--text-2xl); font-variant-numeric: tabular-nums; }
.hm-car--lead .hm-car-price-fig--yen { font-size: var(--text-display-s); font-variant-numeric: tabular-nums; }
.hm-empty { margin-bottom: var(--space-lg); color: var(--color-ink-2); }
@media (max-width: 60rem) {
  .hm-hero .hm-btn--line { border-color: var(--color-ink); color: var(--color-ink); }
  .hm-hero .hm-btn--line::after { border-color: var(--color-mark); }
  .hm-hero .hm-btn--line:hover { background: var(--color-paper-2); }
  .hm-hero .hm-btn--line:focus-visible { outline-color: var(--color-focus); }
}
.hm-tile--stock h3 { color: var(--color-on-ink); }

/* ─── English pages (en/): parts the Japanese pages do not have ─── */
.hm .btn:not(.btn-primary) {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 var(--space-xl);
  border: var(--rule-hair) solid var(--color-ink); border-radius: 2px; background: transparent; color: var(--color-ink);
  font: 500 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.hm .btn:not(.btn-primary):hover { background: var(--color-paper-2); }
.hm .btn:not(.btn-primary):active { transform: translateY(1px); }
.hm .btn:not(.btn-primary):focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.en-contact-buttons, .thanks-actions { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.en-quick-contact { display: flex; flex-direction: column; gap: var(--space-sm); margin-bottom: var(--space-xl); padding: var(--space-lg); border-radius: var(--radius-card); background: var(--color-paper-2); }
.en-quick-contact p { color: var(--color-ink-2); }

/* stock (en) */
.hm-stock-en main > .container { padding-block: var(--space-2xl) var(--section-gap-s); }
.hm-stock-en .price-note { max-width: 46em; margin-bottom: var(--space-2xl); color: var(--color-ink-2); line-height: 1.8; }
.hm-stock-en .car-grid { margin-bottom: var(--space-2xl); }

/* one-price (en) */
.hm-oneprice main > .container { display: flex; flex-direction: column; gap: var(--space-lg); padding-block: var(--space-2xl) var(--section-gap-s); }
.op-steps { counter-reset: op; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); margin: 0; padding: 0; list-style: none; border-top: var(--rule-hair) solid var(--color-ink); }
.op-steps li { counter-increment: op; display: flex; flex-direction: column; gap: var(--space-xs); padding-top: var(--space-md); }
.op-steps li::before { content: counter(op); font-family: var(--font-display); font-size: var(--text-2xl); line-height: 1; color: var(--color-ink); }
.op-steps strong { font-weight: 500; }
.op-steps span { color: var(--color-ink-2); line-height: 1.7; }
.op-note { max-width: 46em; color: var(--color-ink-2); line-height: 1.8; }
div.op-note { display: flex; flex-direction: column; gap: var(--space-sm); max-width: none; padding: var(--space-xl); border-radius: var(--radius-card); background: var(--color-paper-2); }
div.op-note p:last-child { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.op-ja-name { display: block; margin-top: var(--space-3xs); font-size: var(--text-sm); font-weight: 400; color: var(--color-muted); }
.hm-oneprice .car-card-actions { margin-top: auto; padding-top: var(--space-sm); }
.op-ask { width: 100%; }
.op-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-xs); }
.op-pager a, .op-pager span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-md); border-radius: 2px; color: var(--color-ink); text-decoration: none; }
.op-pager a { border: var(--rule-hair) solid var(--color-ink); }
.op-pager a:hover { background: var(--color-paper-2); }
.op-pager a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.op-pager span { color: var(--color-muted); }
@media (max-width: 60rem) { .op-steps { grid-template-columns: minmax(0, 1fr); } }

/* buying guide (en) */
.hm-guide .policy-content ul { padding-left: 1.2em; }

/* ─── zh / id / vi top pages: guide, name transfer, FAQ, contact ─── */
:is(.zh-section, .id-section, .vi-section) { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-md) var(--gap-columns); padding-block: var(--section-gap-s); border-top: var(--rule-hair) solid var(--color-rule); }
:is(.zh-section, .id-section, .vi-section) > * { grid-column: 1 / 9; }
:is(.zh-section, .id-section, .vi-section) > h2 { grid-column: 1 / -1; margin-bottom: var(--space-sm); }
:is(.zh-list, .id-list, .vi-list) { margin: 0; padding-left: 1.2em; color: var(--color-ink-2); line-height: 1.9; }
:is(.zh-list, .id-list, .vi-list) li + li { margin-top: var(--space-2xs); }
:is(.zh-note, .id-note, .vi-note, .id-lang-note, .vi-lang-note, .id-contact-lang, .vi-contact-lang) { font-size: var(--text-sm); color: var(--color-muted); line-height: 1.8; }
.hm-hero .lead:is(.id-lang-note, .vi-lang-note) { margin-top: var(--space-xs); font-size: var(--text-sm); }
:is(.zh-info, .id-info, .vi-info) { color: var(--color-ink-2); line-height: 1.9; max-width: 46em; }
:is(.zh-h3, .id-h3, .vi-h3) { margin-top: var(--space-md); font-size: var(--text-xl); }
:is(.zh-meigi-cta, .id-meigi-cta, .vi-meigi-cta) { margin-top: var(--space-sm); }
:is(.zh-meigi-btn, .id-meigi-btn, .vi-meigi-btn) { white-space: normal; text-align: center; line-height: 1.4; padding-block: var(--space-xs); }
:is(.zh-faq, .id-faq, .vi-faq) { margin: 0; border-top: var(--rule-hair) solid var(--color-ink); }
:is(.zh-faq, .id-faq, .vi-faq) dt { padding-top: var(--space-md); font-weight: 500; color: var(--color-ink); }
:is(.zh-faq, .id-faq, .vi-faq) dd { margin: var(--space-2xs) 0 0; padding-bottom: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); color: var(--color-ink-2); line-height: 1.8; }
:is(.zh-contact-grid, .id-contact-grid, .vi-contact-grid) { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); }
:is(.zh-contact-card, .id-contact-card, .vi-contact-card) { display: flex; flex-direction: column; gap: var(--space-xs); padding: var(--space-lg); border-radius: var(--radius-card); background: var(--color-paper-hi); box-shadow: var(--shadow-sheet); }
:is(.zh-contact-card, .id-contact-card, .vi-contact-card) h3 { font-size: var(--text-xl); }
:is(.zh-contact-card, .id-contact-card, .vi-contact-card) p { color: var(--color-ink-2); overflow-wrap: anywhere; }
:is(.zh-qr, .id-qr, .vi-qr) { display: block; width: 160px; max-width: 100%; height: auto; margin-top: var(--space-xs); border-radius: 2px; }
@media (max-width: 60rem) {
  :is(.zh-section, .id-section, .vi-section) > * { grid-column: 1 / -1; }
  :is(.zh-contact-grid, .id-contact-grid, .vi-contact-grid) { grid-template-columns: minmax(0, 1fr); }
}
/* price tables with a notes column (shaken): the fee is the middle column, the note stays body text */
.price-table td:nth-child(2):not(:last-child) { font-family: var(--font-display); font-size: var(--text-xl); font-variant-numeric: tabular-nums; white-space: nowrap; padding-inline: var(--space-md); }
.price-table td:last-child:not(:nth-child(2)) { font-family: var(--font-body); font-size: var(--text-sm); color: var(--color-ink-2); white-space: normal; text-align: right; }
@media (max-width: 40rem) { .hm-header-wa { display: none; } }

/* ─── 2026-11-16 オーナー指示: Studio の「点の模様」と「トンボ（角の印）」を外す。戻すときはこのブロックを消す ─── */
:root { --color-dot: transparent; }
.crop::before { content: none; }

/* ─── 2026-11-16 オーナー指示: トップのおすすめも写真を切らない ───
   大小を組み合わせたベントをやめ、在庫一覧と同じ 3:4 の枠のカードを3列に並べる（写真は全体を表示）。
   戻すときはこのブロックを消す */
.hm-picks .hm-bento > .hm-car .hm-car-photo { aspect-ratio: 3 / 4; flex: none; width: 100%; min-height: 0; border-radius: var(--radius-card) var(--radius-card) 0 0; }
.hm-picks .hm-bento > .hm-car .hm-car-photo img { object-fit: contain; }
.hm-picks .hm-bento > .hm-car { flex-direction: column; }
.hm-picks .hm-bento > .hm-car--lead .hm-car-body { flex: 1; }
.hm-picks .hm-bento > .hm-car--lead .hm-car-name { font-size: var(--text-lg); }
.hm-picks .hm-bento > .hm-car--lead .hm-car-price { padding-bottom: 0; border-bottom: 0; }
.hm-picks .hm-bento > .hm-car--lead .hm-car-spec { padding-top: var(--space-sm); border-top: var(--rule-hair) solid var(--color-rule); }
.hm-picks .hm-bento > .hm-car--lead .hm-car-price-fig { font-size: var(--text-2xl); }
.hm-picks .hm-bento > .hm-car--lead .hm-car-price-unit { font-size: var(--text-md); }
@media (min-width: 60rem) {
  .hm-picks .hm-bento > .hm-car { grid-column: span 4; grid-row: auto; }
  .hm-picks .hm-bento--1 > .hm-tile { grid-column: span 4; }
  .hm-picks .hm-bento--2 > .hm-tile--quick { grid-column: span 4; }
  .hm-picks .hm-bento--2 > .hm-tile--stock { grid-column: 1 / -1; }
}
@media (min-width: 40rem) and (max-width: 59.99rem) {
  .hm-picks .hm-bento > .hm-car { grid-column: span 6; }
}

/* ─── 2026-11-16 お知らせの見出し画像（写真の無い記事）: 点の模様を外して空いた面を、大きな文字と種類ごとの色で埋める ─── */
.hm .blog-cover { justify-content: center; gap: var(--space-xs); padding: var(--space-xl); background-image: none; }
.hm .blog-cover-sub { font-size: var(--text-3xl); line-height: 1.1; }
.hm .blog-cover-ja { align-self: flex-start; padding-top: var(--space-xs); font-size: var(--text-md); }
.hm .blog-cover--report { background-color: var(--color-hero); color: var(--color-on-ink); }
.hm .blog-cover--report .blog-cover-ja { color: var(--color-on-ink-2); }
.hm .blog-cover--oneprice { background-color: var(--color-paper-3); }
@media (max-width: 47.99rem) { .hm .blog-cover { padding: var(--space-lg); } }
