:root {
  color-scheme: light;
  --ink: #12304a;
  --ink-strong: #08243b;
  --muted: #5b7184;
  --line: #d8e4ed;
  --line-strong: #b8cfdf;
  --blue: #1768a6;
  --blue-dark: #0d4f83;
  --blue-soft: #eaf5fc;
  --cyan-soft: #eefbff;
  --green: #14785f;
  --green-soft: #eaf8f4;
  --amber: #9b5e09;
  --amber-soft: #fff7e7;
  --red: #a64237;
  --red-soft: #fff2ef;
  --paper: #ffffff;
  --page: #f4f8fb;
  --shadow: 0 12px 36px rgba(23, 64, 95, 0.09);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  overflow-x: hidden;
}

body {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--page);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
select {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

code {
  overflow-wrap: anywhere;
  word-break: break-word;
  color: #184f75;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  transform: translateY(-150%);
  border-radius: 8px;
  color: #fff;
  background: var(--ink-strong);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(184, 207, 223, 0.82);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1480px, calc(100% - 48px));
  min-width: 0;
  min-height: 86px;
  margin: 0 auto;
  gap: 24px;
}

.brand {
  flex: 0 1 410px;
  min-width: 220px;
}

.brand img {
  width: 410px;
  height: auto;
}

.header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 17px;
  font-weight: 750;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible,
.filter-button:focus-visible,
.quick-nav a:focus-visible,
.download-card:focus-visible,
.preview-image-button:focus-visible,
.mapping-details summary:focus-visible {
  outline: 3px solid rgba(23, 104, 166, 0.28);
  outline-offset: 3px;
}

/* 最重要の「入力資料 → 完成形」。説明より先に実物を見せる。 */
.document-pair {
  margin: 0 30px 28px;
  overflow: hidden;
  border: 2px solid #8ebbd7;
  border-radius: 18px;
  background: #f7fbfe;
  box-shadow: 0 10px 30px rgba(23, 104, 166, 0.09);
}

.document-pair-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding: 18px 22px;
  background: linear-gradient(110deg, #e8f5fc, #fff);
}

.document-pair-heading small,
.preview-label span {
  display: block;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.document-pair-heading h4 {
  margin: 2px 0 0;
  color: var(--ink-strong);
  font-size: 1.25rem;
}

.required-file-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  gap: 7px;
  list-style: none;
}

.required-file-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #c5dce9;
  border-radius: 999px;
  padding: 6px 10px;
  color: #214a67;
  background: #fff;
  font-size: 0.76rem;
  font-weight: 750;
}

.required-file-list span {
  color: var(--green);
}

.document-pair-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
  align-items: stretch;
  padding: 22px;
  gap: 14px;
}

.document-preview {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(260px, 42%) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px;
  background: #fff;
}

.document-preview-output {
  border-color: #b6dfd2;
  background: #fbfffd;
}

.preview-label {
  grid-column: 1 / -1;
}

.preview-label strong {
  display: block;
  margin-top: 1px;
  color: var(--ink-strong);
  font-size: 1rem;
}

.document-preview-output .preview-label span {
  color: var(--green);
}

.preview-image-button {
  position: relative;
  overflow: hidden;
  min-height: 205px;
  border: 1px solid #cad9e3;
  border-radius: 9px;
  padding: 0;
  background: #e8eef2;
  cursor: zoom-in;
}

.preview-image-button img {
  width: 100%;
  height: 205px;
  object-fit: contain;
  background: #fff;
  transition: transform 180ms ease;
}

.preview-image-button:hover img {
  transform: scale(1.025);
}

.preview-image-button > span {
  position: absolute;
  right: 8px;
  bottom: 8px;
  border-radius: 7px;
  padding: 4px 8px;
  color: #fff;
  background: rgba(8, 36, 59, 0.84);
  font-size: 0.7rem;
  font-weight: 800;
}

.preview-file-info {
  min-width: 0;
  align-self: center;
}

.preview-file-info strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink-strong);
  font-size: 0.95rem;
  line-height: 1.5;
}

.preview-file-info p {
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.65;
}

.preview-file-info a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  border-bottom: 1px solid currentColor;
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.4;
  text-decoration: none;
}

.pair-arrow {
  display: grid;
  place-items: center;
  color: var(--blue);
  font-size: 1.8rem;
  font-weight: 900;
}

.preview-modal {
  width: min(94vw, 1500px);
  max-width: none;
  height: min(92vh, 1000px);
  max-height: none;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  padding: 50px 18px 18px;
  background: #edf3f7;
  box-shadow: 0 28px 90px rgba(0, 23, 41, 0.38);
}

.preview-modal::backdrop {
  background: rgba(5, 24, 38, 0.76);
  backdrop-filter: blur(3px);
}

.preview-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--ink-strong);
  font-size: 1.5rem;
  cursor: pointer;
}

.preview-modal-body {
  width: 100%;
  height: 100%;
  overflow: auto;
  border-radius: 10px;
  background: #fff;
}

.preview-modal-body img {
  width: auto;
  max-width: none;
  min-width: 100%;
  min-height: 100%;
  object-fit: contain;
}

@media (max-width: 1180px) {
  .document-preview {
    grid-template-columns: 1fr;
  }

  .preview-label {
    grid-column: 1;
  }
}

@media (max-width: 840px) {
  .document-pair {
    margin-inline: 18px;
  }

  .document-pair-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .required-file-list {
    justify-content: flex-start;
  }

  .document-pair-grid {
    grid-template-columns: 1fr;
  }

  .pair-arrow {
    transform: rotate(90deg);
  }
}

@media print {
  .preview-image-button {
    min-height: 130px;
  }

  .preview-image-button img {
    height: 130px;
  }

  .preview-image-button > span,
  .preview-modal {
    display: none;
  }
}

.button-primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 7px 18px rgba(23, 104, 166, 0.2);
}

.button-primary:hover {
  background: var(--blue-dark);
}

.button-subtle {
  border-color: var(--line-strong);
  color: var(--blue-dark);
  background: #fff;
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 85% 22%, rgba(75, 166, 218, 0.22), transparent 32%),
    linear-gradient(135deg, #e8f5fc 0%, #fff 48%, #f1f9fd 100%);
}

.hero::after {
  position: absolute;
  top: -110px;
  right: -80px;
  width: 390px;
  height: 390px;
  border: 78px solid rgba(23, 104, 166, 0.05);
  border-radius: 50%;
  content: "";
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 76px 0 64px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 850px;
  margin: 0;
  color: var(--ink-strong);
  font-size: clamp(2.1rem, 4.4vw, 4.35rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.hero-copy {
  max-width: 880px;
  margin: 24px 0 0;
  color: #38566c;
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.9;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(720px, 100%);
  margin-top: 38px;
  border: 1px solid rgba(184, 207, 223, 0.8);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 30px rgba(23, 64, 95, 0.06);
}

.hero-stats div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
}

.hero-stats div + div {
  border-left: 1px solid var(--line);
}

.hero-stats strong {
  color: var(--blue);
  font-size: 2rem;
  line-height: 1;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.4;
}

.section {
  width: min(1480px, calc(100% - 48px));
  min-width: 0;
  margin: 0 auto;
  padding: 72px 0 0;
}

.section-heading {
  max-width: 790px;
}

.section-heading.compact {
  max-width: none;
  text-align: center;
}

.section-heading h2,
.notes-card h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: clamp(1.55rem, 2.5vw, 2.35rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.section-heading > p:last-child {
  margin: 12px 0 0;
  color: var(--muted);
}

.three-step-legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 30px 0 0;
  padding: 0;
  gap: 16px;
  list-style: none;
}

.three-step-legend li {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 7px 24px rgba(23, 64, 95, 0.05);
}

.legend-number {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-weight: 850;
}

.three-step-legend strong,
.three-step-legend small {
  display: block;
}

.three-step-legend strong {
  color: var(--ink-strong);
  line-height: 1.45;
}

.three-step-legend small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.guide-controls {
  padding-top: 88px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  margin-top: 28px;
  gap: 10px;
}

.filter-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 9px 15px 9px 18px;
  color: var(--ink);
  background: #fff;
  font-weight: 750;
  cursor: pointer;
}

.filter-button small {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
  background: var(--page);
  font-size: 0.75rem;
}

.filter-button.is-active {
  border-color: var(--blue);
  color: #fff;
  background: var(--blue);
  box-shadow: 0 6px 16px rgba(23, 104, 166, 0.18);
}

.filter-button.is-active small {
  color: var(--blue-dark);
  background: #fff;
}

.overview-panel {
  overflow: hidden;
  margin-top: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(23, 64, 95, 0.05);
}

.overview-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 18px 20px;
  background: linear-gradient(110deg, #eef8fd, #fff);
}

.overview-heading span {
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.overview-heading h3 {
  margin: 2px 0 0;
  color: var(--ink-strong);
  font-size: 1rem;
  line-height: 1.45;
}

.overview-heading small {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.73rem;
}

.overview-table-wrap {
  min-width: 0;
  padding: 0 14px 12px;
}

.overview-table th,
.overview-table td {
  width: auto;
}

.overview-table th:first-child,
.overview-table td:first-child {
  width: 64px;
  text-align: center;
}

.overview-table th:nth-child(2),
.overview-table td:nth-child(2) {
  width: 24%;
}

.overview-table th:nth-child(3),
.overview-table td:nth-child(3) {
  width: 38%;
}

.overview-number {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--ink-strong);
  font-size: 0.7rem;
  font-weight: 850;
}

.overview-table td:nth-child(2) strong,
.overview-table td:nth-child(2) span {
  display: block;
}

.overview-table td:nth-child(2) strong {
  color: var(--blue-dark);
  font-size: 0.76rem;
}

.overview-table td:nth-child(2) span {
  margin-top: 2px;
  color: var(--ink-strong);
  font-size: 0.76rem;
  font-weight: 700;
}

.overview-input {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.overview-input + .overview-input {
  margin-top: 4px;
}

.overview-input b {
  display: inline-grid;
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--blue-dark);
  font-size: 0.63rem;
}

.overview-table a {
  color: var(--green);
  font-weight: 800;
  text-decoration-color: rgba(20, 120, 95, 0.3);
  text-underline-offset: 3px;
}

.quick-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 20px;
  gap: 8px;
}

.quick-nav a {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 10px 12px;
  color: #36586f;
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
}

.quick-nav a:hover {
  border-color: var(--blue);
  color: var(--blue-dark);
  background: #fff;
}

.quick-nav a span {
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 900;
}

.workflow-section {
  padding-top: 26px;
}

.result-count {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.workflow-list {
  display: grid;
  gap: 28px;
}

.workflow-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-top: 5px solid var(--blue);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.workflow-card.company-jfe-fukuyama {
  border-top-color: #1768a6;
}

.workflow-card.company-jfe-kurashiki {
  border-top-color: #5f62b5;
}

.workflow-card.company-oji {
  border-top-color: #14785f;
}

.workflow-card.company-terada {
  border-top-color: #9b5e09;
}

.workflow-header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 28px 32px 26px;
  background: linear-gradient(100deg, #fff 0%, #f8fbfd 100%);
}

.workflow-number {
  display: grid;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: var(--ink-strong);
  font-weight: 850;
  letter-spacing: 0.04em;
}

.workflow-title-block {
  min-width: 0;
}

.workflow-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.company-badge,
.output-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.73rem;
  font-weight: 800;
}

.company-badge {
  color: var(--blue-dark);
  background: var(--blue-soft);
}

.output-badge {
  color: var(--green);
  background: var(--green-soft);
}

.workflow-header h3 {
  margin: 8px 0 0;
  color: var(--ink-strong);
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.35;
}

.workflow-header p {
  max-width: 980px;
  margin: 8px 0 0;
  color: var(--muted);
}

.three-step-flow {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) 38px minmax(0, 1.35fr) 38px minmax(0, 1fr);
  align-items: stretch;
  padding: 28px 30px;
}

.flow-step {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 20px;
  background: #fff;
}

.input-step {
  background: #f7fbfe;
}

.read-step {
  background: var(--cyan-soft);
}

.output-step {
  background: var(--green-soft);
}

.step-heading {
  display: flex;
  align-items: center;
  gap: 9px;
}

.step-heading > span {
  display: grid;
  flex: 0 0 29px;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-size: 0.8rem;
  font-weight: 900;
}

.output-step .step-heading > span {
  background: var(--green);
}

.step-heading h4,
.downloads-heading h4 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 0.98rem;
  line-height: 1.4;
}

.flow-arrow {
  display: grid;
  place-items: center;
  color: #75a8cb;
  font-size: 1.55rem;
  font-weight: 800;
}

.input-files {
  display: grid;
  margin: 15px 0 0;
  padding: 0;
  gap: 11px;
  list-style: none;
}

.input-file {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 10px;
  border-radius: 10px;
  padding: 11px;
  background: #fff;
}

.file-order {
  display: grid;
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--blue-dark);
  font-size: 0.76rem;
  font-weight: 850;
}

.input-file > div {
  min-width: 0;
}

.input-file strong,
.input-file code,
.required-label {
  display: block;
}

.input-file strong {
  color: var(--ink-strong);
  font-size: 0.85rem;
  line-height: 1.45;
}

.input-file code {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.required-label {
  width: max-content;
  margin-top: 7px;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 0.66rem;
  font-weight: 800;
}

.required-label.required {
  color: #8d372e;
  background: var(--red-soft);
}

.required-label.optional {
  color: var(--muted);
  background: #eef3f6;
}

.step-summary {
  display: block;
  margin-top: 15px;
  color: var(--blue-dark);
  font-size: 0.91rem;
  line-height: 1.6;
}

.flow-step ul,
.workflow-notes ul,
.notes-card ul {
  margin: 12px 0 0;
  padding-left: 1.25em;
}

.flow-step li,
.workflow-notes li,
.notes-card li {
  padding-left: 0.18em;
}

.flow-step li {
  color: #405e72;
  font-size: 0.82rem;
  line-height: 1.68;
}

.flow-step li + li,
.workflow-notes li + li,
.notes-card li + li {
  margin-top: 6px;
}

.output-file {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
  border-radius: 10px;
  padding: 11px;
  background: #fff;
}

.output-file > span {
  display: grid;
  flex: 0 0 39px;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: var(--green);
  font-size: 0.65rem;
  font-weight: 900;
}

.output-file strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink-strong);
  font-size: 0.83rem;
  line-height: 1.45;
}

.output-step > p {
  margin: 13px 0 0;
  color: #3f6459;
  font-size: 0.82rem;
}

.output-step dl {
  display: grid;
  margin: 13px 0 0;
  gap: 6px;
}

.output-step dl div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 8px;
  border-top: 1px solid rgba(20, 120, 95, 0.14);
  padding-top: 7px;
}

.output-step dt,
.output-step dd {
  margin: 0;
  font-size: 0.73rem;
  line-height: 1.55;
}

.output-step dt {
  color: #4b7167;
  font-weight: 800;
}

.output-step dd {
  min-width: 0;
  color: var(--ink);
}

.workflow-notes {
  margin: 0 30px 26px;
  border-left: 4px solid #e7ad43;
  border-radius: 0 12px 12px 0;
  padding: 15px 18px;
  background: var(--amber-soft);
}

.workflow-notes > strong {
  color: #80500b;
  font-size: 0.88rem;
}

.workflow-notes > strong span {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #b97715;
  font-size: 0.7rem;
}

.workflow-notes ul {
  color: #74521e;
  font-size: 0.81rem;
  line-height: 1.65;
}

.mapping-details {
  margin: 0 30px 26px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.mapping-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  color: var(--blue-dark);
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.mapping-details summary::-webkit-details-marker {
  display: none;
}

.mapping-details summary::after {
  flex: 0 0 auto;
  content: "+";
  font-size: 1.3rem;
  line-height: 1;
}

.mapping-details[open] summary::after {
  content: "−";
}

.mapping-details summary small {
  margin-left: auto;
  border-radius: 999px;
  padding: 2px 8px;
  color: var(--muted);
  background: var(--page);
  font-size: 0.7rem;
}

.table-wrap {
  min-width: 0;
  border-top: 1px solid var(--line);
  padding: 0 16px 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

th,
td {
  width: 33.333%;
  overflow-wrap: anywhere;
  border-bottom: 1px solid var(--line);
  padding: 13px 12px;
  text-align: left;
  vertical-align: top;
}

th {
  color: #345970;
  background: #f4f8fb;
  font-size: 0.75rem;
  line-height: 1.45;
}

td {
  color: #425f72;
  font-size: 0.79rem;
  line-height: 1.62;
}

td:last-child {
  color: var(--blue-dark);
  font-weight: 700;
}

.downloads {
  border-top: 1px solid var(--line);
  padding: 25px 30px 30px;
  background: #f8fbfd;
}

.downloads-heading,
.downloads-heading > div {
  display: flex;
  align-items: center;
}

.downloads-heading {
  justify-content: space-between;
  gap: 24px;
}

.downloads-heading > div {
  gap: 12px;
}

.download-mark {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: var(--blue);
  font-size: 1.2rem;
  font-weight: 900;
}

.downloads-heading p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.text-link {
  flex: 0 0 auto;
  color: var(--blue-dark);
  font-size: 0.83rem;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(23, 104, 166, 0.35);
  text-underline-offset: 4px;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 17px;
  gap: 10px;
}

.download-card {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 13px;
  background: #fff;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.download-card:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
  box-shadow: 0 8px 18px rgba(23, 64, 95, 0.08);
}

.download-icon {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: var(--blue);
  font-size: 0.62rem;
  font-weight: 900;
}

.download-input .download-icon {
  background: #527792;
}

.download-reference .download-icon {
  background: var(--green);
}

.download-body {
  display: block;
  min-width: 0;
}

.download-body small,
.download-body strong,
.download-body span {
  display: block;
}

.download-body small {
  color: var(--blue);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.download-body strong {
  overflow-wrap: anywhere;
  margin-top: 2px;
  color: var(--ink-strong);
  font-size: 0.76rem;
  line-height: 1.45;
}

.download-body span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.4;
}

.download-arrow {
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--blue);
  font-size: 1.1rem;
  font-weight: 900;
}

.empty-state {
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  padding: 48px 24px;
  color: var(--muted);
  background: #fff;
  text-align: center;
}

.notes-section {
  padding-bottom: 84px;
}

.notes-card {
  border: 1px solid #b8d4e5;
  border-radius: var(--radius);
  padding: 36px;
  background: linear-gradient(135deg, #e9f5fc, #fff);
  box-shadow: var(--shadow);
}

.notes-card ul {
  max-width: 980px;
  margin-bottom: 24px;
  color: #3c5b70;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding: 30px 24px;
  background: #fff;
}

.site-footer img {
  width: min(320px, 55vw);
  height: auto;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.mobile-only {
  display: none;
}

noscript {
  display: block;
  padding: 20px;
  color: #8d372e;
  background: var(--red-soft);
  text-align: center;
}

@media (max-width: 1180px) {
  .header-inner,
  .section {
    width: min(100% - 36px, 1100px);
  }

  .hero-inner {
    width: min(100% - 36px, 1050px);
  }

  .brand {
    flex-basis: 330px;
  }

  .three-step-flow {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .flow-arrow {
    height: 20px;
    transform: rotate(90deg);
  }

  .download-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .header-inner {
    align-items: flex-start;
    min-height: 0;
    padding: 14px 0;
  }

  .brand {
    flex-basis: 285px;
  }

  .header-actions {
    align-items: stretch;
  }

  .header-actions .button {
    padding: 9px 12px;
    font-size: 0.78rem;
  }

  .hero-inner {
    padding: 58px 0 52px;
  }

  .three-step-legend {
    grid-template-columns: 1fr;
  }

  .quick-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .download-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .header-inner,
  .section,
  .hero-inner {
    width: calc(100% - 28px);
  }

  .site-header {
    position: static;
  }

  .header-inner {
    display: block;
    padding: 14px 0 16px;
  }

  .brand {
    display: block;
    width: min(100%, 350px);
    min-width: 0;
  }

  .header-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 12px;
    gap: 8px;
  }

  .header-actions .button {
    width: 100%;
    font-size: 0.82rem;
  }

  .hero-inner {
    padding: 44px 0 42px;
  }

  .hero h1 {
    font-size: clamp(2rem, 10vw, 2.6rem);
  }

  .hero-copy {
    font-size: 0.95rem;
    line-height: 1.78;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-stats div {
    padding: 13px 17px;
  }

  .hero-stats div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .mobile-only {
    display: initial;
  }

  .section {
    padding-top: 54px;
  }

  .three-step-legend li {
    padding: 16px;
  }

  .guide-controls {
    padding-top: 62px;
  }

  .filter-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-button {
    min-width: 0;
    justify-content: space-between;
    padding: 8px 10px 8px 13px;
    font-size: 0.8rem;
  }

  .quick-nav {
    grid-template-columns: 1fr;
  }

  .overview-heading {
    display: block;
    padding: 15px;
  }

  .overview-heading small {
    display: block;
    margin-top: 5px;
  }

  .overview-table-wrap {
    padding: 2px 12px 12px;
  }

  .overview-table tr {
    padding: 13px 0;
  }

  .overview-table td:first-child,
  .overview-table td:nth-child(2),
  .overview-table td:nth-child(3),
  .overview-table td:nth-child(4) {
    width: 100%;
    text-align: left;
  }

  .overview-table td:first-child {
    display: none;
  }

  .workflow-list {
    gap: 20px;
  }

  .workflow-card {
    border-radius: 16px;
  }

  .workflow-header {
    gap: 12px;
    padding: 20px 16px 18px;
  }

  .workflow-number {
    flex-basis: 41px;
    width: 41px;
    height: 41px;
    border-radius: 11px;
    font-size: 0.78rem;
  }

  .workflow-header h3 {
    font-size: 1.28rem;
  }

  .workflow-header p {
    font-size: 0.87rem;
    line-height: 1.7;
  }

  .three-step-flow {
    padding: 16px;
  }

  .flow-step {
    padding: 16px;
  }

  .workflow-notes,
  .mapping-details {
    margin-right: 16px;
    margin-left: 16px;
  }

  .mapping-details summary {
    align-items: flex-start;
    padding: 14px;
    font-size: 0.82rem;
  }

  .mapping-details summary small {
    display: none;
  }

  .table-wrap {
    padding: 0 12px 12px;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
    width: 100%;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
  }

  tr {
    border-bottom: 1px solid var(--line);
    padding: 11px 0;
  }

  td {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 9px;
    border: 0;
    padding: 5px 3px;
  }

  td::before {
    color: var(--muted);
    content: attr(data-label);
    font-size: 0.68rem;
    font-weight: 800;
  }

  .downloads {
    padding: 20px 16px 22px;
  }

  .downloads-heading {
    display: block;
  }

  .downloads-heading > div {
    align-items: flex-start;
  }

  .text-link {
    display: inline-block;
    margin-top: 14px;
  }

  .download-card {
    padding: 11px;
  }

  .notes-card {
    padding: 25px 20px;
  }

  .site-footer {
    display: block;
    text-align: center;
  }

  .site-footer img {
    margin: 0 auto;
  }

  .site-footer p {
    margin-top: 10px;
  }
}

@media print {
  @page {
    size: A4 portrait;
    margin: 12mm;
  }

  * {
    box-shadow: none !important;
    text-shadow: none !important;
  }

  html,
  body {
    overflow: visible !important;
    color: #111;
    background: #fff;
    font-size: 9.5pt;
  }

  .site-header {
    position: static;
    border: 0;
    background: #fff;
  }

  .header-inner {
    width: 100%;
    min-height: 0;
    padding-bottom: 6mm;
  }

  .brand img {
    width: 95mm;
  }

  .header-actions,
  .filter-bar,
  .quick-nav,
  .result-count,
  .downloads,
  .notes-section .button,
  .site-footer {
    display: none !important;
  }

  .hero {
    border: 1px solid #b9c8d3;
    background: #fff;
  }

  .hero::after {
    display: none;
  }

  .hero-inner,
  .section {
    width: 100%;
  }

  .hero-inner {
    padding: 10mm;
  }

  .hero h1 {
    font-size: 24pt;
  }

  .hero-copy {
    margin-top: 4mm;
  }

  .hero-stats {
    margin-top: 5mm;
  }

  .section {
    padding-top: 9mm;
  }

  .guide-controls {
    padding-top: 10mm;
  }

  .overview-panel {
    break-inside: avoid-page;
    border-radius: 0;
  }

  .overview-heading {
    padding: 3mm;
    background: #fff;
  }

  .three-step-legend {
    gap: 3mm;
  }

  .three-step-legend li {
    padding: 3.5mm;
  }

  .workflow-list {
    display: block;
  }

  .workflow-card {
    break-inside: avoid-page;
    margin-bottom: 8mm;
    border-radius: 0;
  }

  .workflow-header {
    padding: 5mm;
    background: #fff;
  }

  .workflow-header h3 {
    font-size: 15pt;
  }

  .three-step-flow {
    grid-template-columns: 1fr;
    padding: 5mm;
    gap: 3mm;
  }

  .flow-arrow {
    display: none;
  }

  .flow-step {
    break-inside: avoid;
    padding: 4mm;
    background: #fff;
  }

  .workflow-notes,
  .mapping-details {
    margin-right: 5mm;
    margin-left: 5mm;
  }

  .mapping-details {
    break-inside: auto;
  }

  .mapping-details summary {
    padding: 3mm;
  }

  .mapping-details summary::after {
    display: none;
  }

  .mapping-details[open] .table-wrap {
    display: block;
  }

  th,
  td {
    padding: 2.5mm;
    font-size: 8pt;
  }

  .notes-card {
    border-radius: 0;
    padding: 6mm;
    background: #fff;
  }

  a {
    text-decoration: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
