/* Shared, script-free manual layout. */
:root {
  --navy: #172d43;
  --ink: #243d50;
  --muted: #566b78;
  --teal: #086e69;
  --line: #dbe5e7;
  --paper: #f5f8f8;
  --soft: #e8f4f1;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font:
    16px/1.85 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Noto Sans JP",
    sans-serif;
}
a {
  color: var(--teal);
  text-underline-offset: 4px;
}
a:hover {
  text-decoration-thickness: 2px;
}
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #b95b12;
  outline-offset: 5px;
  border-radius: 3px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  color: var(--navy);
  line-height: 1.5;
}
h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  letter-spacing: 0.03em;
  margin-bottom: 20px;
}
h2 {
  font-size: 1.55rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.12rem;
  margin-bottom: 10px;
}
p {
  margin-bottom: 16px;
}
ul,
ol {
  padding-left: 1.5em;
}
li + li {
  margin-top: 9px;
}
.wrap {
  max-width: 1160px;
  margin: auto;
  padding: 0 28px;
}
.skip {
  position: absolute;
  top: -80px;
  left: 20px;
  background: white;
  padding: 10px;
  z-index: 5;
}
.skip:focus {
  top: 12px;
}
.header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 88px;
  padding-block: 16px;
}
.brand {
  font-size: 1.45rem;
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.brand span {
  font-size: 0.72rem;
  display: block;
  letter-spacing: 0.13em;
  color: var(--muted);
  font-weight: 500;
}
.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 0.88rem;
}
.nav a {
  text-decoration: none;
  color: var(--ink);
}
.nav a[aria-current="page"] {
  color: var(--teal);
  font-weight: 700;
  border-bottom: 2px solid var(--teal);
}
.nav .login {
  border: 1px solid var(--line);
  padding: 7px 15px;
  border-radius: 6px;
}
.hero {
  padding: 65px 0 48px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(115deg, #edf6f3, #f8fafb);
}
.eyebrow {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--teal);
  margin-bottom: 14px;
}
.lead {
  font-size: 1.07rem;
  max-width: 710px;
  color: var(--muted);
  margin-bottom: 0;
}
.crumb {
  font-size: 0.8rem;
  margin-bottom: 25px;
  color: var(--muted);
}
.overview {
  padding-block: 44px 72px;
}
.section-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 12px;
}
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
}
.role-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.role-tag {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 16px;
}
.role-card h2 {
  font-size: 1.7rem;
  margin-bottom: 12px;
}
.role-card p {
  color: var(--muted);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  background: var(--teal);
  color: white;
  border-radius: 6px;
  padding: 11px 19px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: auto;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 28px;
}
.flow {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 24px 0 10px;
}
.flow li {
  margin: 0;
  background: var(--paper);
  border-top: 3px solid #9ac8bd;
  padding: 18px 16px;
  border-radius: 3px;
}
.flow .num {
  font-size: 0.8rem;
  color: var(--teal);
  display: block;
  margin-bottom: 8px;
}
.flow strong {
  display: block;
  font-size: 0.93rem;
}
.flow small {
  display: block;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 7px;
}
.fine {
  font-size: 0.83rem;
  color: var(--muted);
}
.prepare {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.prepare p {
  font-size: 0.92rem;
  margin-bottom: 0;
  color: var(--muted);
}
.layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 44px;
  padding-block: 40px 70px;
}
.toc {
  align-self: start;
  position: sticky;
  top: 24px;
  font-size: 0.86rem;
}
.toc-title {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}
.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.toc a {
  display: block;
  padding: 10px 12px;
  border-left: 2px solid var(--line);
  color: var(--muted);
  text-decoration: none;
}
.toc a:hover {
  background: var(--soft);
  color: var(--teal);
  border-color: var(--teal);
}
.toc .other {
  display: block;
  margin-top: 25px;
  border: 0;
  padding: 0;
  color: var(--teal);
}
.article {
  min-width: 0;
}
.chapter {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 24px;
  scroll-margin-top: 24px;
}
.chapter h2 {
  display: flex;
  gap: 14px;
  align-items: baseline;
}
.chapter h2 span {
  color: var(--teal);
  font-size: 0.9rem;
  flex-shrink: 0;
}
.steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
}
.steps > li {
  position: relative;
  padding: 0 0 20px 39px;
  counter-increment: step;
  margin: 0;
}
.steps > li:before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--teal);
  width: 26px;
  height: 26px;
  text-align: center;
  font-size: 0.8rem;
  line-height: 26px;
  font-weight: 700;
}
.steps > li:last-child {
  padding-bottom: 0;
}
.steps strong {
  color: var(--navy);
}
.note {
  background: #eef6f4;
  border-left: 3px solid var(--teal);
  padding: 15px 18px;
  font-size: 0.9rem;
  margin-top: 20px;
}
.note p:last-child {
  margin-bottom: 0;
}
.note strong {
  display: block;
  margin-bottom: 4px;
}
.warning {
  background: #fff8ed;
  border-color: #b77920;
}
.action {
  font-weight: 700;
  color: var(--navy);
}
.mini-flow {
  border: 1px dashed #9ebdb7;
  border-radius: 6px;
  padding: 16px 20px;
  background: #f8fbfa;
  font-size: 0.91rem;
  margin: 20px 0;
}
.mini-flow .fine {
  display: block;
  margin-bottom: 8px;
}
details {
  border-top: 1px solid var(--line);
  padding: 15px 0;
}
details:last-child {
  padding-bottom: 0;
}
summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
}
details p {
  margin: 12px 0 0;
}
.next {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  padding: 12px 0;
}
.footer {
  background: var(--navy);
  color: #d4e1e7;
  padding: 30px 0;
  font-size: 0.82rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer a {
  color: #e5f4f0;
}
.footer p {
  margin: 0;
}
.footer nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
@media (max-width: 800px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .nav {
    width: 100%;
    gap: 10px 20px;
  }
  .hero {
    padding: 38px 0 32px;
  }
  .layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 24px;
  }
  .toc {
    position: static;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
  }
  .toc ol {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .toc .other {
    margin-top: 14px;
  }
  .flow {
    grid-template-columns: 1fr 1fr;
  }
  .cards {
    gap: 16px;
  }
  .role-card {
    padding: 24px;
  }
  .prepare {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
@media (max-width: 520px) {
  .wrap {
    padding-inline: 18px;
  }
  .nav {
    font-size: 0.8rem;
    gap: 8px 16px;
  }
  .nav .login {
    padding: 4px 10px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 1.9rem;
  }
  .overview {
    padding-top: 26px;
  }
  .panel,
  .chapter {
    padding: 23px 20px;
  }
  .flow {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .flow li {
    padding: 14px 12px;
  }
  .toc ol {
    grid-template-columns: 1fr;
  }
  .chapter h2 {
    font-size: 1.3rem;
    gap: 10px;
  }
  .steps > li {
    padding-left: 34px;
  }
  .lead {
    font-size: 1rem;
  }
  .role-card h2 {
    font-size: 1.5rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
@media print {
  body {
    background: white;
    font-size: 11pt;
  }
  .header,
  .toc,
  .footer,
  .next,
  .skip {
    display: none;
  }
  .hero {
    padding: 10px 0;
    background: white;
  }
  .layout {
    display: block;
  }
  .chapter,
  .panel {
    border: 0;
    padding: 15px 0;
  }
  .chapter {
    break-inside: auto;
  }
  .wrap {
    max-width: none;
    padding: 0;
  }
  details {
    display: block;
  }
  details > p {
    display: block;
  }
  .cards {
    display: block;
  }
  .role-card {
    margin-bottom: 15px;
  }
  .button {
    color: var(--ink);
    background: white;
  }
  a {
    color: var(--ink);
  }
}
.manual-shot {
  margin: 24px 0 30px;
  padding: 12px;
  border: 1px solid #dbe4ee;
  border-radius: 14px;
  background: #f8fafc;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.manual-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.manual-shot figcaption {
  margin-top: 10px;
  color: #334155;
  font-size: 0.94rem;
  line-height: 1.7;
}

/* 目次の幅（240px）はそのまま。タイトル部分と本文エリアを同じ幅で中央に揃え、本文（図）の側を広げる */
/* 目次のあるページ（販売店向け等）だけに効かせる。概要ページは元の幅のまま */
body:has(.wrap.layout) .hero .wrap,
body:has(.wrap.layout) .footer .wrap,
.wrap.layout {
  max-width: 1480px;
}
/* 画像はクリックで拡大表示（manual.js） */
.manual-shot img {
  cursor: zoom-in;
}
.shot-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.shot-pair .manual-shot {
  margin: 12px 0 24px;
}
@media (max-width: 800px) {
  .shot-pair {
    grid-template-columns: 1fr;
  }
}
.zoom-hint {
  font-size: 0.86rem;
  color: var(--muted);
}
.lightbox {
  border: 0;
  padding: 0;
  max-width: 96vw;
  max-height: 96vh;
  background: transparent;
}
.lightbox::backdrop {
  background: rgba(15, 23, 42, 0.82);
}
.lightbox img {
  display: block;
  max-width: 96vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  background: white;
  cursor: zoom-out;
}
.lightbox p {
  margin: 10px 0 0;
  color: white;
  font-size: 0.95rem;
  text-align: center;
}
.lightbox button {
  position: fixed;
  top: 14px;
  right: 18px;
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  font: inherit;
  font-weight: 700;
  color: var(--navy);
  background: white;
  cursor: pointer;
}

.role-card[hidden] {
  display: none;
}
