:root {
  --ink: #1d1f26;
  --gray: #626875;
  --muted: #8b8f9c;
  --line: #e7e7ea;
  --bg: #e8e6e1;
  --paper: #ffffff;
  --orange: #ff6900;
  --pale: #fff5ef;
  --ok: #2f7d57;
  --warn: #8a5a12;
  --max: 1080px;
  font-family: "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: var(--ink);
  line-height: 1.55;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}
img { max-width: 100%; height: auto; display: block; }
a { color: #ed5f00; }
button { font: inherit; }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  z-index: 40;
}
.skip:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 16px;
  min-height: 56px;
  padding: 8px 20px;
  background: #fffc;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}
.site-nav a,
.sales-link {
  padding: 6px 10px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--gray);
  font-size: 13px;
  font-weight: 600;
}
.site-nav a:hover,
.sales-link:hover { background: var(--pale); color: var(--ink); }
.site-nav a[aria-current="page"] {
  background: var(--pale);
  color: var(--orange);
}
.sales-link {
  border: 1px solid var(--line);
  color: var(--ink);
  white-space: nowrap;
}

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.hero {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 28px 24px;
  margin-bottom: 20px;
}
.kicker {
  margin: 0 0 8px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.lede {
  margin: 0;
  color: var(--gray);
  font-size: 16px;
  max-width: 46em;
}

.mode-toggle {
  display: inline-flex;
  margin-top: 18px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7f6f3;
}
.mode-toggle a {
  min-width: 108px;
  padding: 8px 16px;
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
  color: var(--gray);
  font-weight: 700;
  font-size: 14px;
}
.mode-toggle a[aria-current="true"] {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 16px;
}
.panel h2 {
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.panel h3 {
  margin: 22px 0 8px;
  font-size: 16px;
}
.panel p { margin: 0 0 12px; }
.panel p:last-child { margin-bottom: 0; }
.note {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--pale);
  color: var(--warn);
  font-size: 14px;
}
.note--ok { background: #eef7f2; color: var(--ok); }

.steps {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
}
.step {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.step b {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--pale);
  color: var(--orange);
}
.step h3 { margin: 0 0 4px; font-size: 16px; }
.step p { margin: 0; color: var(--gray); font-size: 14px; }

.visual-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 0;
}
.visual-steps figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #f3f2ef;
}
.visual-steps img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.visual-steps img[src$=".svg"] {
  object-fit: contain;
  background: #fff;
}
.visual-steps figcaption {
  padding: 10px 12px 12px;
  font-size: 13px;
}
.visual-steps figcaption b {
  display: block;
  color: var(--orange);
  margin-bottom: 2px;
}

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  margin-top: 16px;
}
.shot {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #f3f2ef;
}
.shot img { width: 100%; }
.shot figcaption {
  padding: 10px 12px 12px;
  font-size: 13px;
  color: var(--gray);
}
.shot--phone img {
  max-height: 420px;
  width: auto;
  margin: 12px auto;
}

.catalog {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.catalog article {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.catalog img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: top;
}
.catalog .card-body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.catalog h2 { margin: 0 0 6px; font-size: 18px; }
.catalog p { margin: 0 0 14px; color: var(--gray); font-size: 14px; flex: 1; }
.card-links { display: flex; gap: 8px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid transparent;
}
.btn--primary { background: var(--orange); color: #fff; }
.btn--ghost { background: transparent; color: var(--orange); border-color: var(--orange); }

.spec-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}
.spec-nav a {
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--gray);
  padding: 4px 0;
}
.spec-nav a:hover { color: var(--orange); }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th, td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}
th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.table-wrap { overflow-x: auto; margin: 8px 0 0; }

.flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 12px 0 0;
}
.flow span {
  padding: 6px 10px;
  border-radius: 8px;
  background: #f3f2ef;
  font-size: 13px;
  font-weight: 600;
}
.flow i { color: var(--muted); font-style: normal; }

ul.plain, ol.plain { margin: 8px 0 0; padding-left: 1.2em; }
ul.plain li, ol.plain li { margin: 4px 0; }

.site-footer {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto 32px;
  color: var(--muted);
  font-size: 13px;
}

body.is-spec [data-mode="guide"],
body.is-guide [data-mode="spec"] { display: none; }

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr;
    padding: 10px 14px 12px;
  }
  .site-nav { justify-content: flex-start; }
  .sales-link { justify-self: start; }
  .catalog, .split, .visual-steps { grid-template-columns: 1fr; }
  .hero, .panel { padding: 20px 16px; }
}

@media print {
  .site-header, .mode-toggle, .skip { display: none !important; }
  body { background: #fff; }
  .panel, .hero { break-inside: avoid; }
  body.is-guide [data-mode="spec"],
  body.is-spec [data-mode="guide"] { display: none !important; }
}
