.ssm-manual {
  --ssm-ink: #142235;
  --ssm-muted: #667085;
  --ssm-line: #e6d8c4;
  --ssm-bg: #fffaf2;
  --ssm-panel: #ffffff;
  --ssm-soft: #effaf6;
  --ssm-green: #137b63;
  --ssm-green-dark: #0f604f;
  --ssm-blue: #2f62d6;
  --ssm-yellow: #fff3bf;
  --ssm-shadow: 0 18px 48px rgba(20, 34, 53, 0.08);
  color: var(--ssm-ink);
  background: linear-gradient(180deg, #fffdfa 0%, #f8f1e8 100%);
  border: 1px solid var(--ssm-line);
  border-radius: 18px;
  width: min(1760px, calc(100vw - 32px));
  max-width: none;
  margin-left: calc(50% - min(880px, calc(50vw - 16px)));
  margin-right: calc(50% - min(880px, calc(50vw - 16px)));
  padding: 28px;
  font-family: "Noto Sans CJK JP", "Noto Sans JP", "IPAexGothic", "IPAGothic", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ssm-manual *,
.ssm-manual *::before,
.ssm-manual *::after {
  box-sizing: border-box;
}

.ssm-manual a {
  color: var(--ssm-green);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.ssm-manual__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: 12px 0 26px;
}

.ssm-manual__eyebrow,
.ssm-manual__mode,
.ssm-section__purpose {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  background: #dff6ef;
  color: #08624f;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
}

.ssm-manual__title {
  margin: 14px 0 10px;
  font-family: "Noto Serif CJK JP", "Noto Serif JP", "IPAexMincho", "IPAMincho", "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif;
  font-size: 38px;
  line-height: 1.25;
  font-weight: 700;
}

.ssm-manual__lead {
  max-width: 780px;
  margin: 0;
  color: var(--ssm-muted);
  line-height: 1.9;
}

.ssm-manual__mode {
  background: #eef4ff;
  color: #25499a;
}

.ssm-manual__tools {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--ssm-line);
  border-radius: 14px;
  box-shadow: var(--ssm-shadow);
}

.ssm-search {
  display: grid;
  gap: 6px;
}

.ssm-search span,
.ssm-purpose-label {
  color: var(--ssm-muted);
  font-size: 13px;
  font-weight: 700;
}

.ssm-search input {
  min-height: 44px;
  border: 1px solid var(--ssm-line);
  border-radius: 10px;
  padding: 10px 14px;
  background: #fff;
  color: var(--ssm-ink);
  font-size: 15px;
}

.ssm-purpose {
  display: grid;
  gap: 8px;
}

.ssm-purpose__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ssm-purpose__chip,
.ssm-lightbox__close,
.ssm-lightbox__open {
  appearance: none;
  border: 1px solid var(--ssm-line);
  border-radius: 999px;
  background: #fff;
  color: var(--ssm-ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  min-height: 38px;
  padding: 8px 14px;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.ssm-purpose__chip:hover,
.ssm-lightbox__close:hover,
.ssm-lightbox__open:hover {
  transform: translateY(-1px);
}

.ssm-purpose__chip.is-active {
  background: var(--ssm-green);
  border-color: var(--ssm-green);
  color: #fff;
}

.ssm-manual__layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-top: 24px;
}

.ssm-manual__nav {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--ssm-line);
  border-radius: 14px;
}

.ssm-manual__nav-title {
  margin: 0 0 6px;
  color: var(--ssm-muted);
  font-size: 13px;
  font-weight: 800;
}

.ssm-manual__nav a {
  display: block;
  border-radius: 9px;
  color: var(--ssm-ink);
  font-weight: 700;
  line-height: 1.5;
  padding: 9px 10px;
  text-decoration: none;
}

.ssm-manual__nav a:hover,
.ssm-manual__nav a.is-active {
  background: var(--ssm-soft);
  color: var(--ssm-green-dark);
}

.ssm-manual__content {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.ssm-section,
.ssm-manual-section {
  background: var(--ssm-panel);
  border: 1px solid var(--ssm-line);
  border-radius: 16px;
  box-shadow: var(--ssm-shadow);
  padding: 26px;
}

.ssm-section.is-hidden,
.ssm-manual-section.is-hidden,
.ssm-manual__nav a.is-hidden {
  display: none;
}

.ssm-section h2,
.ssm-manual-section h2 {
  margin: 0 0 12px;
  font-family: "Noto Serif CJK JP", "Noto Serif JP", "IPAexMincho", "IPAMincho", "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif;
  font-size: 30px;
  line-height: 1.35;
}

.ssm-section h3,
.ssm-manual-section h3 {
  margin: 24px 0 10px;
  font-size: 21px;
  line-height: 1.45;
}

.ssm-section p,
.ssm-manual-section p {
  margin: 0 0 14px;
  color: #344054;
  line-height: 1.9;
}

.ssm-section ul,
.ssm-manual-section ul,
.ssm-section ol,
.ssm-manual-section ol {
  margin: 0 0 18px 1.25em;
  padding: 0;
  color: #344054;
  line-height: 1.9;
}

.ssm-section li + li,
.ssm-manual-section li + li {
  margin-top: 4px;
}

.ssm-section blockquote,
.ssm-callout {
  margin: 16px 0;
  border-left: 4px solid var(--ssm-green);
  background: var(--ssm-soft);
  border-radius: 0 10px 10px 0;
  color: #1f4f45;
  padding: 14px 16px;
}

.ssm-table-wrap {
  overflow-x: auto;
  margin: 18px 0;
  border: 1px solid var(--ssm-line);
  border-radius: 12px;
}

.ssm-section table,
.ssm-manual-section table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: #fff;
}

.ssm-section th,
.ssm-manual-section th,
.ssm-section td,
.ssm-manual-section td {
  border-bottom: 1px solid #f0e4d6;
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.ssm-section th,
.ssm-manual-section th {
  background: #fff8e6;
  color: #5a4300;
  font-size: 13px;
}

.ssm-screenshot {
  width: min(980px, 100%);
  max-width: 100%;
  margin: 24px auto;
  border: 1px solid var(--ssm-line);
  border-radius: 14px;
  overflow: hidden;
  background: #f9fafb;
  box-shadow: 0 18px 52px rgba(20, 34, 53, 0.12);
}

.ssm-screenshot__button {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 520px;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}

.ssm-screenshot__button::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 96px;
  background: linear-gradient(180deg, rgba(249, 250, 251, 0), rgba(249, 250, 251, 0.92));
  pointer-events: none;
}

.ssm-screenshot__button::after {
  content: "クリックで大きく表示";
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  border-radius: 999px;
  background: rgba(19, 123, 99, 0.94);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  padding: 10px 13px;
  box-shadow: 0 10px 26px rgba(20, 34, 53, 0.18);
  pointer-events: none;
}

.ssm-screenshot img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  image-rendering: auto;
}

.ssm-screenshot figcaption {
  padding: 10px 12px;
  color: var(--ssm-muted);
  font-size: 13px;
  line-height: 1.6;
}

.ssm-no-results {
  display: none;
  border: 1px dashed var(--ssm-line);
  border-radius: 14px;
  background: #fff;
  color: var(--ssm-muted);
  padding: 24px;
  text-align: center;
}

.ssm-no-results.is-visible {
  display: block;
}

.ssm-lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(12, 20, 34, 0.76);
}

.ssm-lightbox.is-open {
  display: flex;
}

.ssm-lightbox__panel {
  width: min(1560px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  max-height: calc(100dvh - 36px);
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.ssm-lightbox__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--ssm-line);
}

.ssm-lightbox__title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
}

.ssm-lightbox__img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
}

.ssm-glossary-term {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  vertical-align: baseline;
}

.ssm-glossary-help {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  border: 1px solid #9ad8c5;
  border-radius: 999px;
  background: #e8f8f2;
  color: var(--ssm-green-dark);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  padding: 0;
}

.ssm-glossary-help:hover,
.ssm-glossary-help:focus-visible {
  background: var(--ssm-green);
  border-color: var(--ssm-green);
  color: #fff;
  outline: 2px solid rgba(19, 123, 99, 0.18);
  outline-offset: 2px;
}

.ssm-glossary-popover {
  position: fixed;
  left: var(--ssm-glossary-left, 50%);
  top: var(--ssm-glossary-top, 50%);
  z-index: 100000;
  display: none;
  width: min(360px, calc(100vw - 28px));
  color: #142235;
}

.ssm-glossary-popover.is-open {
  display: block;
}

.ssm-glossary-popover__card {
  position: relative;
  overflow: hidden;
  border: 1px solid #cfeade;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 62px rgba(20, 34, 53, 0.18);
  padding: 18px;
}

.ssm-glossary-popover__card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  background: linear-gradient(90deg, #137b63, #f2c94c, #ff7a59);
}

.ssm-glossary-popover__close {
  appearance: none;
  position: absolute;
  top: 14px;
  right: 14px;
  border: 1px solid #e6d8c4;
  border-radius: 999px;
  background: #fff;
  color: #344054;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  min-height: 32px;
  padding: 6px 10px;
}

.ssm-glossary-popover__head {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding-right: 62px;
}

.ssm-glossary-popover__head img {
  display: block;
  width: 62px;
  height: 62px;
  border-radius: 999px;
  object-fit: cover;
  background: #effaf6;
}

.ssm-glossary-popover__head p {
  margin: 0 0 4px;
  color: var(--ssm-green-dark);
  font-size: 12px;
  font-weight: 900;
}

.ssm-glossary-popover__head h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.ssm-glossary-popover__head small {
  display: block;
  margin-top: 4px;
  color: var(--ssm-muted);
  font-weight: 700;
}

.ssm-glossary-popover__description,
.ssm-glossary-popover__tip {
  margin: 14px 0 0;
  color: #344054;
  font-size: 14px;
  line-height: 1.75;
}

.ssm-glossary-popover__tip {
  border-radius: 12px;
  background: #fff8e6;
  color: #5a4300;
  padding: 10px 12px;
}

.ssm-manual mark {
  background: var(--ssm-yellow);
  color: inherit;
  border-radius: 4px;
  padding: 0 3px;
}

@media (max-width: 900px) {
  .ssm-manual {
    padding: 18px;
    border-radius: 14px;
  }

  .ssm-manual__hero,
  .ssm-manual__tools,
  .ssm-manual__layout {
    grid-template-columns: 1fr;
  }

  .ssm-manual__title {
    font-size: 30px;
  }

  .ssm-manual__nav {
    position: static;
    display: flex;
    overflow-x: auto;
    padding: 10px;
  }

  .ssm-manual__nav-title {
    display: none;
  }

  .ssm-manual__nav a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .ssm-section,
.ssm-manual-section {
    padding: 20px;
  }

  .ssm-screenshot__button {
    max-height: 420px;
  }

  .ssm-section h2,
.ssm-manual-section h2 {
    font-size: 26px;
  }
}

@media (max-width: 560px) {
  .ssm-manual {
    padding: 14px;
  }

  .ssm-purpose__chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .ssm-purpose__chip {
    flex: 0 0 auto;
  }

  .ssm-section,
.ssm-manual-section {
    padding: 18px;
  }

  .ssm-screenshot {
    margin: 18px 0;
  }

  .ssm-screenshot__button {
    max-height: 320px;
  }

  .ssm-screenshot__button::after {
    right: 10px;
    bottom: 10px;
    font-size: 12px;
    padding: 9px 11px;
  }

  .ssm-section table,
.ssm-manual-section table {
    min-width: 560px;
  }

  .ssm-glossary-popover.is-mobile {
    left: 12px;
    right: 12px;
    top: auto;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: auto;
  }

  .ssm-glossary-popover__card {
    border-radius: 18px 18px 16px 16px;
    padding: 16px;
  }

  .ssm-glossary-popover__head {
    grid-template-columns: 52px minmax(0, 1fr);
    padding-right: 56px;
  }

  .ssm-glossary-popover__head img {
    width: 52px;
    height: 52px;
  }
}
.ssm-screenshot--missing {
  display: grid;
  gap: 6px;
  padding: 22px;
  color: var(--ssm-muted);
}

.ssm-screenshot--missing strong {
  color: var(--ssm-ink);
}

/* Compatibility with the shortcode's compact class names. */
.ssm-manual-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: 12px 0 26px;
}

.ssm-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  background: #dff6ef;
  color: #08624f;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
}

.ssm-manual-hero h1 {
  margin: 14px 0 10px;
  font-family: "Noto Serif CJK JP", "Noto Serif JP", "IPAexMincho", "IPAMincho", "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif;
  font-size: 38px;
  line-height: 1.25;
}

.ssm-manual-hero p {
  max-width: 780px;
  margin: 0;
  color: var(--ssm-muted);
  line-height: 1.9;
}

.ssm-manual-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.ssm-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--ssm-line);
  border-radius: 999px;
  background: #fff;
  color: var(--ssm-ink);
  font-weight: 800;
  padding: 10px 16px;
  text-decoration: none;
}

.ssm-button.is-primary {
  background: var(--ssm-green);
  border-color: var(--ssm-green);
  color: #fff;
}

.ssm-manual-tools {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--ssm-line);
  border-radius: 14px;
  box-shadow: var(--ssm-shadow);
}

.ssm-search-label {
  display: grid;
  gap: 6px;
}

.ssm-search-label span {
  color: var(--ssm-muted);
  font-size: 13px;
  font-weight: 700;
}

.ssm-search-label input {
  min-height: 44px;
  border: 1px solid var(--ssm-line);
  border-radius: 10px;
  padding: 10px 14px;
  background: #fff;
  color: var(--ssm-ink);
  font-size: 15px;
}

.ssm-purpose-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

button.ssm-purpose,
a.ssm-purpose {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ssm-line);
  border-radius: 999px;
  background: #fff;
  color: var(--ssm-ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  min-height: 38px;
  padding: 8px 14px;
  text-decoration: none;
}

button.ssm-purpose.is-active,
a.ssm-purpose.is-active {
  background: var(--ssm-green);
  border-color: var(--ssm-green);
  color: #fff;
}

.ssm-topic-summary {
  display: grid;
  gap: 6px;
  border: 1px solid #cfeade;
  border-radius: 14px;
  background: #f1fbf7;
  padding: 16px 18px;
}

.ssm-topic-summary span {
  color: var(--ssm-green-dark);
  font-size: 13px;
  font-weight: 900;
}

.ssm-topic-summary p {
  margin: 0;
  color: #375467;
  line-height: 1.7;
}

.ssm-manual-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-top: 24px;
}

.ssm-manual-nav {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--ssm-line);
  border-radius: 14px;
}

.ssm-manual-nav strong {
  color: var(--ssm-muted);
  font-size: 13px;
}

.ssm-manual-nav a {
  display: grid;
  gap: 3px;
  border-radius: 9px;
  color: var(--ssm-ink);
  padding: 9px 10px;
  text-decoration: none;
}

.ssm-manual-nav a:hover,
.ssm-manual-nav a.is-active {
  background: var(--ssm-soft);
  color: var(--ssm-green-dark);
}

.ssm-manual-nav small {
  color: var(--ssm-muted);
  line-height: 1.5;
}

.ssm-manual-content {
  display: grid;
  gap: 18px;
  min-width: 0;
}

@media (max-width: 900px) {
  .ssm-manual-hero,
  .ssm-manual-tools,
  .ssm-manual-layout {
    grid-template-columns: 1fr;
  }

  .ssm-manual-hero h1 {
    font-size: 30px;
  }

  .ssm-manual-nav {
    position: static;
    display: flex;
    overflow-x: auto;
    padding: 10px;
  }

  .ssm-manual-nav strong,
  .ssm-manual-nav small {
    display: none;
  }

  .ssm-manual-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}
