:root {
  --navy: #15324a;
  --ink: #243d50;
  --muted: #60727e;
  --blue: #1769aa;
  --line: #dce5eb;
  --paper: #f5f8fa;
  --soft: #eaf3f9;
}
* {
  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(--blue);
  text-underline-offset: 4px;
}
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #e07a19;
  outline-offset: 4px;
  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.08rem;
  margin-bottom: 8px;
}
p {
  margin-bottom: 16px;
}
ul,
ol {
  padding-left: 1.5em;
}
.wrap {
  max-width: 1160px;
  margin: auto;
  padding: 0 28px;
}
.skip {
  position: absolute;
  top: -80px;
  left: 20px;
  background: #fff;
  padding: 10px;
  z-index: 5;
}
.skip:focus {
  top: 12px;
}
#site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fffffff2;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
#site-nav .wrap {
  width: min(1180px, 92%);
  max-width: none;
  margin: auto;
  padding: 0;
}
.navin {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  width: 112px;
  height: 60px;
  object-fit: contain;
}
.links {
  display: flex;
  align-items: center;
  gap: 25px;
}
.links a {
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}
.links a.current {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 0;
  border-radius: 7px;
  padding: 14px 23px;
  background: linear-gradient(135deg, var(--blue), #0560aa);
  color: #fff !important;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}
.button.small {
  padding: 9px 17px;
}
.hero {
  padding: 65px 0 50px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(115deg, #e9f4fa, #fafcfd);
}
.eyebrow {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--blue);
  margin-bottom: 14px;
}
.lead {
  font-size: 1.07rem;
  max-width: 720px;
  color: var(--muted);
  margin-bottom: 0;
}
.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 li + li {
  margin: 0;
}
.toc a {
  display: block;
  padding: 9px 12px;
  border-left: 2px solid var(--line);
  color: var(--muted);
  text-decoration: none;
}
.toc a:hover {
  background: var(--soft);
  color: var(--blue);
  border-color: var(--blue);
}
.toc .other {
  margin-top: 24px;
  border: 0;
  padding: 0;
  color: var(--blue);
}
.article {
  min-width: 0;
}
.chapter {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 24px;
  scroll-margin-top: 24px;
}
.chapter h2 {
  display: flex;
  align-items: center;
  gap: 15px;
}
.chapter h2 > span {
  display: inline-grid;
  place-items: center;
  min-width: 43px;
  height: 32px;
  border-radius: 4px;
  background: var(--navy);
  color: #fff;
  font-size: 0.8rem;
}
.chapter li + li {
  margin-top: 9px;
}
.steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
}
.steps > li {
  position: relative;
  padding: 0 0 18px 46px;
  counter-increment: step;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
}
.steps p {
  color: var(--muted);
  margin: 3px 0 0;
}
.steps.compact {
  margin-bottom: 0;
}
.manual-shot {
  margin: 24px 0;
}
.manual-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: 0 8px 24px rgba(21, 50, 74, 0.08);
}
figcaption {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.84rem;
}
.note {
  border-left: 4px solid var(--blue);
  background: var(--soft);
  padding: 16px 19px;
  margin-top: 18px;
}
.note p {
  margin: 4px 0 0;
  color: var(--muted);
}
.note.warning {
  border-color: #d58b22;
  background: #fff8e9;
}
.two-col,
.three-col {
  display: grid;
  gap: 18px;
  margin: 22px 0;
}
.two-col {
  grid-template-columns: repeat(2, 1fr);
}
.three-col {
  grid-template-columns: repeat(3, 1fr);
}
.two-col > div,
.three-col > div {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 20px;
}
.two-col p,
.three-col p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.fine {
  font-size: 0.84rem;
  color: var(--muted);
}
details {
  border-top: 1px solid var(--line);
  padding: 15px 0;
}
details:last-child {
  border-bottom: 1px solid var(--line);
}
summary {
  cursor: pointer;
  color: var(--navy);
  font-weight: 700;
}
details p {
  margin: 10px 0 0;
  color: var(--muted);
}
.footer {
  background: var(--navy);
  color: #dce7ee;
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.footer p {
  margin: 0;
  font-weight: 700;
}
.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.footer a {
  color: #fff;
  font-size: 0.84rem;
}
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .toc {
    position: static;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
  }
  .toc ol {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .toc a {
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }
  .three-col {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  body {
    font-size: 15px;
  }
  .wrap {
    padding-inline: 18px;
  }
  .links > a:not(.button):not(.global-link) {
    display: none;
  }
  .hero {
    padding: 45px 0 38px;
  }
  .hero br {
    display: none;
  }
  .layout {
    padding-block: 24px 50px;
    gap: 24px;
  }
  .toc ol,
  .two-col {
    grid-template-columns: 1fr;
  }
  .chapter {
    padding: 22px 18px;
  }
  .chapter h2 {
    align-items: flex-start;
    font-size: 1.3rem;
  }
  .footer-inner {
    display: block;
  }
  .footer nav {
    margin-top: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 22px 0;
}
.cards > div {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 20px;
}
.cards p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  margin: 20px 0;
}
table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.92rem;
}
th,
td {
  padding: 12px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
th {
  background: var(--soft);
  color: var(--navy);
  white-space: nowrap;
}
@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

/* 画面画像を読みやすい大きさで掲載するため、本文だけ横幅を広げる */
.layout.wrap {
  max-width: 1760px;
}
.layout {
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 32px;
}
.manual-shot img {
  cursor: zoom-in;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.manual-shot img:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(21, 50, 74, 0.16);
}
.manual-shot img:focus-visible {
  outline: 4px solid #e07a19;
  outline-offset: 4px;
}
.status-icon-examples {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.status-example {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafcfd;
}
.status-example img {
  width: auto;
  max-width: 100%;
  margin: auto;
  box-shadow: none;
  background: #fff;
}
.status-example figcaption {
  font-size: 0.8rem;
  line-height: 1.65;
}
.stocktaking-alert-shot {
  width: min(100%, 800px);
  margin: 24px auto;
}
.image-lightbox {
  width: min(96vw, 1900px);
  max-width: none;
  height: 96vh;
  max-height: none;
  margin: auto;
  padding: 56px 18px 18px;
  border: 0;
  border-radius: 12px;
  background: #12202b;
  color: #fff;
  overflow: hidden;
}
.image-lightbox::backdrop {
  background: rgba(4, 13, 20, 0.86);
  backdrop-filter: blur(3px);
}
.image-lightbox img {
  display: block;
  width: 100%;
  height: calc(96vh - 116px);
  object-fit: contain;
}
.image-lightbox p {
  margin: 10px 50px 0;
  text-align: center;
  font-size: 0.9rem;
  color: #eaf3f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.image-lightbox-close {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: #fff;
  color: #15324a;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.image-lightbox-close:focus-visible {
  outline: 4px solid #e07a19;
  outline-offset: 3px;
}
.terms-dialog {
  width: min(1100px, 96vw);
  max-width: none;
  height: 92vh;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
}
.terms-dialog::backdrop {
  background: rgba(4, 13, 20, 0.78);
}
.terms-dialog-header {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px 0 24px;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
}
.terms-dialog-header button {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-size: 28px;
  cursor: pointer;
}
.terms-dialog iframe {
  display: block;
  width: 100%;
  height: calc(92vh - 58px);
  border: 0;
  background: #fff;
}
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .status-icon-examples {
    grid-template-columns: 1fr;
  }
  .image-lightbox {
    width: 98vw;
    height: 94vh;
    padding: 52px 8px 10px;
  }
  .image-lightbox img {
    height: calc(94vh - 108px);
  }
}
