:root {
  --black: #111;
  --dark: #333;
  --mid: #777;
  --line: #bbb;
  --light: #eee;
  --pale: #f7f7f7;
  --white: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--black);
  background: var(--white);
  font-family: Arial, "Noto Sans JP", sans-serif;
  line-height: 1.65;
}
a { color: inherit; }
button, input { font: inherit; }
.container { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--black);
  background: rgba(255,255,255,.96);
}
.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo { font-size: 20px; font-weight: 700; text-decoration: none; }
.global-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.global-nav a {
  padding: 8px 12px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-size: 14px;
}
.global-nav a[aria-current="page"] { color: var(--white); background: var(--black); }
.menu-button { display: none; padding: 8px 12px; border: 1px solid var(--black); background: white; }

.section { padding: 72px 0; border-bottom: 1px solid var(--black); }
.section:nth-child(even) { background: var(--pale); }
.section-label {
  display: block;
  margin-bottom: 8px;
  color: var(--mid);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
}
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 20px; font-size: clamp(34px, 5vw, 64px); line-height: 1.2; }
h2 { margin-bottom: 24px; font-size: clamp(26px, 3vw, 38px); line-height: 1.3; }
h3 { margin-bottom: 12px; font-size: 20px; }
.lead { max-width: 760px; font-size: 18px; }
.note { color: var(--dark); font-size: 14px; }
.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  padding: 4px 10px;
  border: 1px solid var(--black);
  font-size: 13px;
  font-weight: 700;
}
.hero { padding: 72px 0; border-bottom: 1px solid var(--black); background: var(--light); }
.hero-grid, .split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-actions, .button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
  display: inline-block;
  min-width: 150px;
  padding: 13px 20px;
  border: 1px solid var(--black);
  background: var(--black);
  color: var(--white);
  text-align: center;
  text-decoration: none;
  font-weight: 700;
}
.button.secondary { background: var(--white); color: var(--black); }
.button.small { min-width: 0; padding: 9px 12px; font-size: 13px; }
.image-placeholder {
  min-height: 300px;
  display: grid;
  place-items: center;
  border: 1px solid var(--black);
  background: #d5d5d5;
  color: var(--dark);
  text-align: center;
}
.image-placeholder.small { min-height: 160px; }
.grid-2, .grid-3, .grid-4 {
  display: grid;
  gap: 20px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  height: 100%;
  padding: 24px;
  border: 1px solid var(--black);
  background: var(--white);
}
.card > .image-placeholder:first-child {
  margin: -24px -24px 20px;
  border-width: 0 0 1px;
}
.card > .image-placeholder:not(:first-child) {
  margin-top: 16px;
}
.stack { display: grid; gap: 16px; }
.stack .card { height: auto; }
.icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid var(--black);
  background: var(--light);
  font-weight: 700;
}
.icon.circle { border-radius: 50%; }
.stat { font-size: 36px; font-weight: 700; line-height: 1.2; }
.comparison { width: 100%; border-collapse: collapse; background: var(--white); }
.comparison th, .comparison td { padding: 16px; border: 1px solid var(--black); text-align: left; vertical-align: top; }
.comparison th { background: var(--light); }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: step; }
.flow-item { position: relative; padding: 22px; border: 1px solid var(--black); background: white; }
.flow-item::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 12px;
  color: var(--mid);
  font-weight: 700;
}
.faq-item { border-top: 1px solid var(--black); }
.faq-item:last-child { border-bottom: 1px solid var(--black); }
.faq-item summary { padding: 18px 0; cursor: pointer; font-weight: 700; }
.faq-item p { padding: 0 0 20px; }
.cta-box { padding: 44px; border: 2px solid var(--black); background: var(--light); text-align: center; }
.site-footer { padding: 36px 0; background: var(--black); color: var(--white); }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; }

/* メーカー検索・絞り込みUI */
.catalog-layout { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; }
.filter-panel { padding: 20px; border: 1px solid var(--black); background: var(--pale); }
.filter-group { padding: 18px 0; border-bottom: 1px solid var(--line); }
.filter-group:first-child { padding-top: 0; }
.filter-group:last-child { border-bottom: 0; }
.filter-group label { display: block; margin-top: 8px; }
.search-bar { display: flex; gap: 8px; margin-bottom: 20px; }
.search-bar input { width: 100%; padding: 12px; border: 1px solid var(--black); }
.category-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.category-tab { padding: 9px 14px; border: 1px solid var(--black); background: white; }
.category-tab.active { background: var(--black); color: white; }
.catalog-summary { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.maker-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.maker-card { padding: 20px; border: 1px solid var(--black); background: white; }
.maker-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.maker-logo { width: 64px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--light); font-size: 11px; }
.status { display: inline-block; padding: 4px 8px; border: 1px solid var(--black); font-size: 12px; font-weight: 700; }
.status.confirmed { background: var(--black); color: var(--white); }
.status.check { background: var(--light); }
.tag { display: inline-block; margin: 3px; padding: 3px 7px; border: 1px solid var(--line); font-size: 12px; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.pagination span { min-width: 36px; padding: 6px; border: 1px solid var(--black); text-align: center; }

/* パターン切替ナビ */
.pattern-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
}
.pattern-switch a,
.pattern-tab {
  padding: 8px 12px;
  border: 1px solid var(--black);
  background: var(--white);
  color: var(--black);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.pattern-switch a.active,
.pattern-tab.active {
  background: var(--black);
  color: var(--white);
}
.pattern-panel[hidden] { display: none !important; }

/* 対応メーカー：簡易一覧パターン（添付画像相当） */
.approval-board {
  padding: 40px 32px;
  border: 1px solid var(--black);
  background: var(--dark);
  color: var(--white);
}
.approval-banner {
  display: block;
  width: 100%;
  margin: 0 auto 36px;
  padding: 18px 24px;
  border: 1px solid var(--white);
  background: var(--white);
  color: var(--black);
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}
.approval-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 48px;
}
.approval-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px dashed rgba(255,255,255,.55);
}
.approval-item:nth-last-child(-n+2) { border-bottom: 0; }
.approval-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid var(--white);
  font-size: 11px;
  text-align: center;
  line-height: 1.2;
}
.approval-item h3 {
  margin: 0 0 4px;
  color: var(--white);
  font-size: 22px;
}
.approval-item p {
  margin: 0;
  color: rgba(255,255,255,.85);
  font-size: 14px;
}
.approval-notes {
  margin: 28px 0 0;
  color: rgba(255,255,255,.8);
  font-size: 12px;
}
.approval-notes p { margin: 0 0 6px; }

@media (max-width: 800px) {
  .container { width: min(100% - 32px, 1120px); }
  .header-inner { min-height: 60px; }
  .menu-button { display: block; }
  .global-nav { display: none; position: absolute; top: 60px; left: 0; right: 0; padding: 16px; border-bottom: 1px solid var(--black); background: white; }
  .global-nav.open { display: grid; }
  .hero, .section { padding: 48px 0; }
  .hero-grid, .split, .grid-2, .grid-3, .grid-4, .flow, .catalog-layout, .maker-grid, .approval-grid { grid-template-columns: 1fr; }
  .image-placeholder { min-height: 220px; }
  .comparison { display: block; overflow-x: auto; }
  .cta-box { padding: 28px 18px; }
  .footer-inner, .catalog-summary { flex-direction: column; }
  .approval-board { padding: 28px 18px; }
  .approval-banner { font-size: 15px; }
  .approval-item:nth-last-child(-n+2) { border-bottom: 1px dashed rgba(255,255,255,.55); }
  .approval-item:last-child { border-bottom: 0; }
  .approval-item h3 { font-size: 18px; }
}
