@charset "UTF-8";

/* ========================================================================== 
   Base / Theme
   ========================================================================== */
:root {
  --sidebar-width: 320px;
  --sidebar-bg: #f7f9fc;
  --sidebar-border: #d9e2ec;
  --content-max: 980px;
  --global-header-height: 64px;
  --breadcrumb-height: 42px;
  --header-height: 56px;
  --search-height: 40px;
  --search-gap: 16px;
  --search-space: 24px;
  --accent: #3498db;
  --text: #333333;
  --muted: #64748b;
  --shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  --surface: #ffffff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: calc(var(--global-header-height) + var(--breadcrumb-height));
  font-family: Arial, Roboto, "Noto Sans JP", "游ゴシック Medium", "游ゴシック体", "Yu Gothic Medium", YuGothic, "ヒラギノ角ゴ ProN", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  transition: padding-top 0.2s ease;
}

body.search-open {
  padding-top: calc(var(--global-header-height) + var(--breadcrumb-height) + var(--search-height) + 28px);
}

/* ========================================================================== 
   Global Header
   ========================================================================== */
.global-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  min-height: var(--global-header-height);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #e5e7eb;
}

.global-header__inner {
  position: relative;
  max-width: 1440px;
  min-height: var(--global-header-height);
  margin: 0 auto;
  padding: 12px 20px 0;
  display: flex;
  align-items: flex-start;
  align-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

.global-header__product {
  flex: 1 1 100%;
  min-width: 0;
  max-width: 100%;
  padding-right: 56px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
  color: #0f172a;
}


.global-header__actions {
  position: absolute;
  top: 12px;
  right: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
}


.header-icon-button,
.menu-toggle {
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.header-icon-button:hover,
.menu-toggle:hover,
.search-panel__button:hover,
.nav-links a:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  text-decoration: none;
}

.search-toggle__icon {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #111827;
  border-radius: 50%;
}

.search-toggle__icon::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 7px;
  height: 2px;
  background: #111827;
  border-radius: 999px;
  transform: rotate(45deg);
  transform-origin: center;
}

.global-header__search {
  position: relative;
  flex: 1 1 100%;
  min-width: 0;
  padding: 8px 20px 12px;
}


.global-header__search[hidden] {
  display: none !important;
}

.global-header__search .search-panel {
  max-width: min(720px, 100%);
  margin-left: auto;
}

.global-header__page {
  display: none;
}


/* ========================================================================== 
   Breadcrumbs
   ========================================================================== */
.global-header__breadcrumbs {
  max-width: 1440px;
  margin: 0 auto;
  padding: 4px 20px 12px;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  min-height: var(--breadcrumb-height);
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: #94a3b8;
  margin-right: 6px;
  font-weight: 700;
}

.breadcrumb-link,
.breadcrumb-current {
  display: inline-block;
  max-width: min(42vw, 560px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.92rem;
  line-height: 1.4;
}

.breadcrumb-link {
  color: #0f172a;
  text-decoration: none;
}

.breadcrumb-link:hover,
.breadcrumb-link:focus {
  text-decoration: underline;
}

.breadcrumb-current {
  color: #475569;
  font-weight: 600;
}


/* ========================================================================== 
   Common Elements
   ========================================================================== */
a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

img.img-block {
  display: block;
  margin: 20px auto;
}

img.img-inline {
  display: inline-block;
  margin: 0 2px;
  vertical-align: middle;
}

.nowrap-inline {
  white-space: nowrap;
}

.app-shell {
  min-height: 100vh;
}

.mobile-topbar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--header-height);
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  align-items: center;
  padding: 0 16px;
}

.mobile-topbar__title {
  font-weight: 700;
  color: #1f2937;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-left: 12px;
}

.mobile-topbar__left {
  display: flex;
  align-items: center;
  min-width: 0;
}

.menu-toggle__icon {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 2px;
  background: #111827;
  border-radius: 999px;
}

.menu-toggle__icon::before,
.menu-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: #111827;
  border-radius: 999px;
}

.menu-toggle__icon::before {
  top: -6px;
}

.menu-toggle__icon::after {
  top: 6px;
}

/* ========================================================================== 
   Sidebar / TOC
   ========================================================================== */
.sidebar-overlay {
  display: none;
}

.sidebar {
  position: fixed;
  top: var(--global-header-height);
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  overflow-y: auto;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  padding: 20px 16px 28px;
  z-index: 950;
}

.sidebar__header {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.sidebar__eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

.sidebar__nav {
  display: block;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-list li {
  margin: 0;
}

.toc-link {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  color: #1f2937;
  line-height: 1.45;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.toc-link:hover {
  background: #eaf4ff;
  text-decoration: none;
}

.toc-link.is-active {
  background: #dbeafe;
  color: #0f172a;
  font-weight: 700;
}

.toc-link--lvl1 {
  font-weight: 700;
}

.toc-link--lvl2 {
  padding-left: 24px;
  font-size: 0.96rem;
}

.toc-link--lvl3 {
  padding-left: 40px;
  font-size: 0.92rem;
  color: #475569;
}

/* ========================================================================== 
   Search Panel
   ========================================================================== */
.search-panel {
  position: relative;
  z-index: 980;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  width: 100%;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.search-panel__row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-panel__input {
  flex: 1 1 auto;
  min-width: 120px;
  height: var(--search-height);
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.95rem;
  background: #ffffff;
}

.search-panel__button {
  height: var(--search-height);
  min-width: 40px;
  padding: 0 10px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  color: #111827;
  cursor: pointer;
}

.search-panel__status {
  min-width: 52px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}

.search-panel__results {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: min(50vh, 420px);
  overflow-y: auto;
  padding: 8px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(6px);
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.search-panel.has-results .search-panel__results {
  display: block;
}

.search-result {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: inherit;
}

.search-result:hover {
  background: #f8fafc;
  text-decoration: none;
}

.search-result__title {
  display: block;
  font-weight: 700;
  color: #0f172a;
}

.search-result__meta {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  color: var(--muted);
}

.search-result__snippet {
  display: block;
  margin-top: 4px;
  font-size: 0.86rem;
  color: #334155;
  line-height: 1.5;
}

mark.search-hit {
  background: #fff2a8;
  color: inherit;
  padding: 0 1px;
  border-radius: 2px;
}

/* ========================================================================== 
   Main Content
   ========================================================================== */
.content-area {
  margin-left: var(--sidebar-width);
  min-width: 0;
}

.content-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--search-space) 28px 40px;
}

.container {
  width: 100%;
}

h1 {
 font-size: 2em;
 display: block;
 width: 100%;
 padding: 10px 16px;
 margin-top: 0;
 margin-bottom: 20px;
 color: #FFFFFF;
 background-color: #0066B3;
 border-bottom: none;
 line-height: 1.4;
 font-weight: 700;
}

h2 {
 font-size: 1.5em;
 display: block;
 width: 100%;
 padding: 10px 16px;
 margin-top: 30px;
 margin-bottom: 20px;
 color: #FFFFFF;
 background-color: #0066B3;
 border-left: none;
 line-height: 1.4;
 font-weight: 700;
}

h3 {
 font-size: 1.2em;
 display: block;
 width: 100%;
 padding: 10px 14px;
 margin-top: 20px;
 margin-bottom: 16px;
 color: #333333;
 background-color: #F3F3F3;
 border-left: 4px solid #5B9BD5;
 border-bottom: none;
 line-height: 1.4;
 font-weight: 700;
}

h4 {
  font-size: 1.2em;
  padding-bottom: 0;
  margin-top: 20px;
  margin-bottom: 0;
}

h5 {
  font-size: 1em;
  padding-bottom: 5px;
  margin-top: 20px;
}

.heading-number {
  margin-right: 10px;
  color: #555555;
  font-weight: 700;
 font-family: Roboto, Arial, "Noto Sans JP", sans-serif;
}

p {
  margin-bottom: 1em;
  text-align: left;
}

.word-align-center {
  text-align: center !important;
}

.word-align-right {
  text-align: right !important;
}

.bordered-box {
  border: 2px solid #555555;
  background-color: #fafafa;
  padding: 15px;
  margin: 20px 0;
  border-radius: 4px;
}

.bordered-text {
  border: 1px solid #333333;
  display: inline-block;
  padding: 2px 6px;
  margin: 0 2px;
  border-radius: 3px;
  background-color: #ffffff;
  font-weight: 700;
  font-size: 0.9em;
  box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 20px 0;
  border: 1px solid #333333;
}

th,
td {
  border: 1px solid #333333;
  padding: 10px;
  vertical-align: top;
}

th {
  background-color: #eaf5ff;
  font-weight: 700;
}

/* ========================================================================== 
   Word-style Mapping
   ========================================================================== */
.word-break-marker {
  display: none !important;
}

.word-style-product-name,
.word-style-copyright,
.word-style-list-bullet,
.word-style-list-paragraph,
.word-style-circle-bullet,
.word-style-square-bullet,
.word-style-step,
.word-style-step-body,
.word-style-number,
.word-style-item-number,
.word-style-note,
.word-style-remark,
.word-style-caution,
.word-style-warning,
.word-style-danger,
.word-style-tip,
.word-style-reference {
  text-align: left;
}

.word-style-table-heading {
  text-align: center;
}

.word-style-figure {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.word-style-figure img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.word-style-cover-title {
  font-size: 2em;
  font-weight: 700;
  text-align: center;
  writing-mode: horizontal-tb;
}

th.word-style-table-heading,
td.word-style-table-heading,
th:has(.word-style-table-heading),
td:has(.word-style-table-heading) {
  font-weight: 700;
  background-color: #eaf5ff;
}

th.word-style-table-heading .word-style-table-heading,
td.word-style-table-heading .word-style-table-heading,
th:has(.word-style-table-heading) .word-style-table-heading,
td:has(.word-style-table-heading) .word-style-table-heading {
  font-weight: inherit;
  background: transparent;
}

/* ========================================================================== 
   Callout Blocks
   ========================================================================== */
.callout-block {
  --callout-border: #94a3b8;
  --callout-bg: #f8fafc;
  margin: 0 0 1.5em;
  padding: 1em 1.25em;
  border-top: 3px solid var(--callout-border);
  border-bottom: 3px solid var(--callout-border);
  background: var(--callout-bg);
}

.callout-block > :first-child {
  margin-top: 0;
}

.callout-block > :last-child {
  margin-bottom: 0;
}

.callout-block--note {
  --callout-border: #0ea5e9;
  --callout-bg: #f0f9ff;
}

.callout-block--caution {
  --callout-border: #f59e0b;
  --callout-bg: #fffbeb;
}

.callout-block--warning {
  --callout-border: #f97316;
  --callout-bg: #fff7ed;
}

.callout-block--danger {
  --callout-border: #dc2626;
  --callout-bg: #fef2f2;
}

.callout-block--tip {
  --callout-border: #10b981;
  --callout-bg: #ecfdf5;
}

.callout-block--remark {
  --callout-border: #6366f1;
  --callout-bg: #eef2ff;
}

.callout-block--reference {
  --callout-border: #0f766e;
  --callout-bg: #f0fdfa;
}

.callout-block .word-style-note,
.callout-block .word-style-caution,
.callout-block .word-style-warning,
.callout-block .word-style-danger,
.callout-block .word-style-tip,
.callout-block .word-style-remark,
.callout-block .word-style-reference {
  margin-bottom: 0.75em;
  font-size: 1.2em;
  font-weight: 700;
}

.callout-block--caution,
.callout-block--warning,
.callout-block--danger,
.callout-block--caution *,
.callout-block--warning *,
.callout-block--danger * {
  font-weight: 700;
}

.callout-block .word-style-caution,
.callout-block .word-style-warning,
.callout-block .word-style-danger {
  --callout-icon: "⚠";
  position: relative;
  padding-left: 1.8em;
}

.callout-block .word-style-caution::before,
.callout-block .word-style-warning::before,
.callout-block .word-style-danger::before {
  content: var(--callout-icon);
  position: absolute;
  left: 0;
  top: 0;
  color: var(--callout-border);
  font-weight: 700;
}

.callout-block .word-style-list-paragraph,
.callout-block .word-style-list-bullet,
.word-style-circle-bullet,
.word-style-list-paragraph,
.word-style-list-bullet {
  --list-paragraph-marker: "•";
  --list-paragraph-indent: 1.4em;
  position: relative;
  padding-left: var(--list-paragraph-indent);
  margin-bottom: 0.75em;
}

.word-style-circle-bullet::before {
  content: "●";
  position: absolute;
  left: 0;
  top: 0;
  color: #000000;
  font-weight: 700;
}

.word-style-square-bullet::before {
  content: "■";
  position: absolute;
  left: 0;
  top: 0;
  color: #000000;
  font-weight: 700;
}

.word-style-square-bullet {
  --list-paragraph-marker: "■";
  --list-paragraph-indent: 1.4em;
  position: relative;
  padding-left: var(--list-paragraph-indent);
  margin-bottom: 0.75em;
}

.callout-block .word-style-list-paragraph::before,
.callout-block .word-style-list-bullet::before, 
.callout-block .word-style-square-bullet::before,
.callout-block .word-style-circle-bullet::before {
  content: var(--list-paragraph-marker);
  position: absolute;
  left: 0;
  top: 0;
  color: var(--callout-border);
  font-weight: 700;
}

.bullet-paragraph--circle .bullet-paragraph-marker,
.word-style-circle-bullet.bullet-paragraph .bullet-paragraph-marker {
  color: var(--bullet-paragraph-marker-color);
}

.bullet-paragraph--square .bullet-paragraph-marker,
.word-style-square-bullet.bullet-paragraph .bullet-paragraph-marker {
  color: var(--bullet-paragraph-marker-color);
}

td > .callout-block:first-child,
th > .callout-block:first-child {
  margin-top: 0;
}

td > .callout-block:last-child,
th > .callout-block:last-child {
  margin-bottom: 0;
}

/* ========================================================================== 
 Circle / Square Bullet Paragraphs 
 ========================================================================== */
.bullet-paragraph {
  --bullet-paragraph-gap: 0.65em;
  --bullet-paragraph-marker-width: 1.2em;
  --bullet-paragraph-marker-color: #000000;
  display: flex;
  align-items: flex-start;
  gap: var(--bullet-paragraph-gap);
}

.bullet-paragraph-marker {
  flex: 0 0 var(--bullet-paragraph-marker-width);
  min-width: var(--bullet-paragraph-marker-width);
  color: var(--bullet-paragraph-marker-color);
  font-weight: 700;
  line-height: 1.6;
  white-space: pre-wrap;
}

.bullet-paragraph-content {
  flex: 1 1 auto;
  min-width: 0;
}

.bullet-paragraph.word-align-center {
  justify-content: center;
}

.bullet-paragraph.word-align-right {
  justify-content: flex-end;
}

.bullet-paragraph.word-align-center .bullet-paragraph-content {
  flex: 0 1 auto;
  text-align: left;
}

.bullet-paragraph.word-align-right .bullet-paragraph-content {
  text-align: right;
}

.callout-block .bullet-paragraph {
  --bullet-paragraph-marker-color: var(--callout-border);
}

/* ========================================================================== 
   Numbered Paragraphs
   ========================================================================== */
.word-numbered-paragraph {
  --paragraph-number-gap: 0.75em;
  --paragraph-number-color: #000000;
  --paragraph-number-font-weight: 700;
  --paragraph-number-min-width: 3.2em;
  display: flex;
  align-items: flex-start;
  gap: var(--paragraph-number-gap);
}

.paragraph-number-marker {
  flex: 0 0 var(--paragraph-number-min-width);
  min-width: var(--paragraph-number-min-width);
  color: var(--paragraph-number-color);
  font-weight: var(--paragraph-number-font-weight);
  line-height: 1.5;
  white-space: pre-wrap;
}

.paragraph-number-content {
  flex: 1 1 auto;
  min-width: 0;
}

.word-numbered-paragraph.word-align-center {
  justify-content: center;
}

.word-numbered-paragraph.word-align-right {
  justify-content: flex-end;
}

.word-align-center .paragraph-number-content {
  flex: 0 1 auto;
  text-align: left;
}

.word-align-right .paragraph-number-content {
  text-align: right;
}

.word-numbered-paragraph--item-number {
  --paragraph-number-min-width: 2.2em;
}

.word-numbered-paragraph:not([data-paragraph-number]),
.word-numbered-paragraph[data-paragraph-number=''] {
  display: block;
}

.word-numbered-paragraph:not([data-paragraph-number]) .paragraph-number-marker,
.word-numbered-paragraph[data-paragraph-number=''] .paragraph-number-marker {
  display: none;
}

/* ========================================================================== 
   Step Paragraphs (refactored)
   ========================================================================== */
.word-style-step,
.word-style-step-body {
  --step-number-gap: 0.75em;
  --step-number-color: #0066b3;
  --step-number-font-weight: 700;
  --step-number-font-size: 1.7em;
  --step-number-width: 1.5em;
}

.word-style-step {
  display: block;
  position: relative;
  padding-left: calc(var(--step-number-width) + var(--step-number-gap));
  min-height: calc(var(--step-number-font-size) * 1.2);
  text-align: left;
}

.word-style-step::before {
  content: attr(data-step-number);
  position: absolute;
  left: 0;
  top: 0;
  width: var(--step-number-width);
  color: var(--step-number-color);
  font-weight: var(--step-number-font-weight);
  font-size: var(--step-number-font-size);
  line-height: 1.15;
}

.word-style-step:not([data-step-number])::before,
.word-style-step[data-step-number='']::before {
  content: none;
  display: none;
}

.word-style-step-body {
  margin-left: calc(var(--step-number-width) + var(--step-number-gap));
  text-indent: 0;
  text-align: left;
}

.word-style-step img.img-inline {
  position: static;
  vertical-align: middle;
}

/* ========================================================================== 
   Figure / Step Layouts
   ========================================================================== */
.figure-numbered-layout {
  display: grid;
  grid-template-columns: minmax(240px, 42%) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin: 1.5em 0;
}

.figure-numbered-layout__media {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  min-width: 0;
}

.figure-numbered-layout__text {
  min-width: 0;
}

.figure-numbered-layout__media > * {
  width: 100%;
}

.figure-numbered-layout__media img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0;
}

.figure-numbered-layout__media .img-block {
  margin: 0;
}

.figure-numbered-layout__text > :first-child,
.step-figure-layout__text > :first-child {
  margin-top: 0;
}

.figure-numbered-layout__text > :last-child,
.step-figure-layout__text > :last-child {
  margin-bottom: 0;
}

.step-figure-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 24px;
  align-items: start;
  margin: 1.5em 0;
}

.step-figure-layout__text {
  min-width: 0;
}

.step-figure-layout__media {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.step-figure-layout__media > * {
  width: 100%;
}

.step-figure-layout__media img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0;
}

.step-figure-layout__media .img-block {
  margin: 0;
}

.youtube-embed {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0.75em 0 1.5em;
  aspect-ratio: 16 / 9;
}

.youtube-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.nav-links {
  margin-top: 40px;
  border-top: 1px solid #eeeeee;
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.nav-links a {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 min-height: 40px;
 padding: 0 14px;
 border: 1px solid #0066B3;
 border-radius: 999px;
 background: #0066B3;
 color: #FFFFFF;
}

/* ========================================================================== 
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .global-header__search .search-panel {
    max-width: min(560px, 100%);
  }
}

@media (max-width: 900px) {
  .content-inner {
    padding: var(--search-space) 20px 36px;
  }
}

@media (max-width: 834px) {
  :root {
    --global-header-height: 72px;
    --breadcrumb-height: 38px;
    --search-gap: 8px;
    --search-space: 20px;
  }

  body.search-open {
    padding-top: calc(var(--global-header-height) + var(--breadcrumb-height) + var(--search-height) + 40px);
  }

  .mobile-topbar {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    padding: 0;
    background: transparent;
    border-bottom: none;
    z-index: 1001;
    pointer-events: none;
  }

  .mobile-topbar__left {
    position: absolute;
    top: 10px;
    left: 12px;
    margin: 0;
    pointer-events: auto;
    z-index: 1002;
  }

  .mobile-topbar__title {
    display: none;
  }

  .menu-toggle {
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.16);
  }

  .sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    z-index: 940;
  }

  body.menu-open .sidebar-overlay {
    display: block;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: 8px 0 24px rgba(0, 0, 0, 0.12);
  }

  body.menu-open .sidebar {
    transform: translateX(0);
  }

  .content-area {
    margin-left: 0;
  }

  .content-inner {
    padding: var(--search-space) 16px 32px;
  }

  .global-header__inner {
    padding: 10px 12px 0;
    align-items: flex-start;
    gap: 8px;
  }

  .global-header__product {
    flex: 1 1 100%;
    min-width: 0;
    padding-left: 56px;
    padding-right: 52px;
  }

  .global-header__actions {
    position: absolute;
    top: 10px;
    right: 12px;
    gap: 0;
  }

  .global-header__search {
    flex: 1 1 100%;
    min-width: 0;
    padding: 8px 12px 10px;
  }

  .global-header__search .search-panel {
    max-width: 100%;
  }

  .search-panel__status {
    min-width: 48px;
  }

  .global-header__page {
    display: none;
  }

.global-header__breadcrumbs {
  padding: 2px 12px 10px;
}

.breadcrumb-list {
  gap: 4px;
  min-height: var(--breadcrumb-height);
}

.breadcrumb-link,
.breadcrumb-current {
  max-width: calc(100vw - 92px);
  font-size: 0.85rem;
}

  h1 {
    font-size: 1.7em;
  }

  .figure-numbered-layout,
  .step-figure-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .figure-numbered-layout__media {
    order: 1;
    align-items: center;
  }

  .figure-numbered-layout__text {
    order: 2;
  }

  .step-figure-layout__text {
    order: 1;
  }

  .step-figure-layout__media {
    order: 2;
    align-items: center;
  }

  img.img-block,
  .word-style-figure img,
  .figure-numbered-layout__media img,
  .step-figure-layout__media img {
    margin-left: auto;
    margin-right: auto;
  }

  .youtube-embed {
    max-width: 100%;
  }
}

/* ========================================================================== 
   Print
   ========================================================================== */
@media print {
  .global-header,
  .mobile-topbar,
  .global-header__actions,
  .global-header__search,
  .global-header__page,
  .global-header__breadcrumbs,
  .sidebar-overlay,
  .menu-toggle {
    display: none !important;
  }

  .sidebar {
    display: none !important;
  }

  body,
  body.search-open {
    padding-top: 0 !important;
  }

  .content-area {
    margin-left: 0 !important;
  }

  .content-inner {
    max-width: none !important;
    padding: 0 !important;
  }

  .nav-links {
    display: none !important;
  }
}

/* =========================================================
   Caution / Warning / Danger 内のアイコン付き表
   - 1列目を画像サイズ未満にしない
   - 画像を高さ方向中央揃え
   ========================================================= */

/* 対象ブロック内の表だけに適用 */
.callout-block--caution table,
.callout-block--warning table,
.callout-block--danger table {
  width: 100%;
  table-layout: auto;
  border-collapse: collapse;
}

/* 表セルは高さ方向中央揃え */
.callout-block--caution table td,
.callout-block--warning table td,
.callout-block--danger table td {
  vertical-align: middle;
}

/* 1列目は画像サイズ + padding 分より小さくしない */
.callout-block--caution table td:first-child,
.callout-block--warning table td:first-child,
.callout-block--danger table td:first-child {
  width: 45px;       /* 25px画像 + 左右padding 10pxずつ */
  min-width: 45px;
  white-space: nowrap;
  text-align: center;
}

/* 1列目の段落余白を消して中央寄せを安定させる */
.callout-block--caution table td:first-child p,
.callout-block--warning table td:first-child p,
.callout-block--danger table td:first-child p {
  margin: 0;
  text-align: center;
}

/* 1列目の画像は縮小させず、セル中央へ */
.callout-block--caution table td:first-child img,
.callout-block--warning table td:first-child img,
.callout-block--danger table td:first-child img {
  width: 25px !important;
  height: 25px !important;
  max-width: none;
  display: block;
  margin: 0 auto;
  vertical-align: middle;
}

/* ========================================================================== 
 Square Bullet Vertical Alignment Tweak 
 ========================================================================== */
.bullet-paragraph-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.bullet-paragraph--square .bullet-paragraph-marker,
.word-style-square-bullet.bullet-paragraph .bullet-paragraph-marker {
  transform: translateY(0.2em);
}

.word-style-square-bullet::before,
.callout-block .word-style-square-bullet::before {
  display: inline-block;
  line-height: 1;
  transform: translateY(0.2em);
  transform-origin: center;
}

/* H1-H3 heading number styling */
h1 .heading-number {
 color: #FFFFFF;
 font-family: Roboto, Arial, "Noto Sans JP", sans-serif;
}
h2 .heading-number {
 color: #FFFFFF;
 font-family: Roboto, Arial, "Noto Sans JP", sans-serif;
}
h3 .heading-number {
 font-family: Roboto, Arial, "Noto Sans JP", sans-serif;
}

/* Navigation style override */
.nav-links a:hover {
 background: #0066B3;
 color: #FFFFFF;
 border-color: #0066B3;
 text-decoration: none;
}

/* SIDEBAR / TOC THEME OVERRIDE */
.sidebar {
  background: #0066B3;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
}

.sidebar__header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.sidebar__eyebrow {
  color: #FFFFFF;
}

.sidebar .toc-link,
.sidebar .toc-link:link,
.sidebar .toc-link:visited,
.sidebar .toc-link .heading-number,
.sidebar .toc-link--lvl3 {
  color: #FFFFFF;
}

.sidebar .toc-link:hover,
.sidebar .toc-link:focus {
  background: #00579A;
  color: #FFFFFF;
  text-decoration: none;
}

.sidebar .toc-link.is-active,
.sidebar .toc-link[aria-current="true"],
.sidebar .toc-link[aria-current="page"] {
  background: #004A82;
  color: #FFFFFF;
  font-weight: 700;
}


/* Standalone TOC page (pages/toc.html) */
html.toc-page,
body.toc-page {
 height: 100%;
}
body.toc-page,
body.toc-page.search-open {
 margin: 0;
 padding: 0;
 font-family: Arial, Roboto, "Noto Sans JP", "游ゴシック Medium", "游ゴシック体", "Yu Gothic Medium", YuGothic, "ヒラギノ角ゴ ProN", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, sans-serif;
 color: #ffffff;
 background: transparent;
}
body.toc-page {
 overflow-y: auto;
}
body.toc-page .toc-page__nav,
body.toc-page .sidebar__nav {
 display: block;
 min-height: 100%;
}
body.toc-page .toc-list {
 list-style: none;
 padding: 0;
 margin: 0;
}
body.toc-page .toc-list li {
 margin: 0;
}
body.toc-page .toc-link {
 display: block;
 padding: 8px 10px;
 border-radius: 10px;
 color: #ffffff;
 line-height: 1.45;
 text-decoration: none;
 transition: background-color 0.2s ease, color 0.2s ease;
}
body.toc-page .toc-link:hover,
body.toc-page .toc-link:focus {
 background: #153d9b;
 color: #ffffff;
 text-decoration: none;
}
body.toc-page .toc-link.is-active,
body.toc-page .toc-link[aria-current="true"],
body.toc-page .toc-link[aria-current="page"] {
 background: #153d9b;
 color: #ffffff;
 font-weight: 700;
}
body.toc-page .toc-link--lvl1 {
 font-weight: 700;
}
body.toc-page .toc-link--lvl2 {
 padding-left: 24px;
 font-size: 0.96rem;
}
body.toc-page .toc-link--lvl3 {
 padding-left: 40px;
 font-size: 0.92rem;
 color: #ffffff;
}

/* ========================================================================== 
   Mobile Header Language Switch Override (v81)
   - Place JA/EN buttons on the lower-right area of header on mobile
   ========================================================================== */
@media (max-width: 834px) {
  .global-header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: flex-start;
    gap: 8px 12px;
  }

  .global-header__product {
    flex: 1 1 100%;
    min-width: 0;
    max-width: 100%;
    padding-left: 56px;
    padding-right: 0;
    white-space: normal;
    line-height: 1.4;
  }

  .global-header__actions {
    position: static;
    order: 2;
    width: 100%;
    margin-left: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding-right: 0;
  }

  .global-header__lang-switch {
    margin-right: 0;
    margin-left: 0;
    flex: 0 0 auto;
    justify-content: flex-end;
  }

  .global-header__search {
    order: 3;
    width: 100%;
    min-width: 0;
    padding: 8px 12px 10px;
  }
}

/* ==========================================================================
   Word table border-none preservation
   - The converter writes data-word-border-none on cells.
   - It writes data-word-outer-border-none on tables whose Word outer border
     is absent. Attribute-token selectors allow individual sides to be hidden.
   ========================================================================== */

/* Cell borders explicitly set to none in Word */
th[data-word-border-none~="top"],
td[data-word-border-none~="top"] {
  border-top: none !important;
}

th[data-word-border-none~="right"],
td[data-word-border-none~="right"] {
  border-right: none !important;
}

th[data-word-border-none~="bottom"],
td[data-word-border-none~="bottom"] {
  border-bottom: none !important;
}

th[data-word-border-none~="left"],
td[data-word-border-none~="left"] {
  border-left: none !important;
}

/* Table outer borders explicitly set to none in Word */
table[data-word-outer-border-none~="top"] {
  border-top: none !important;
}

table[data-word-outer-border-none~="right"] {
  border-right: none !important;
}

table[data-word-outer-border-none~="bottom"] {
  border-bottom: none !important;
}

table[data-word-outer-border-none~="left"] {
  border-left: none !important;
}

/* JA-only output: hide the unused language switch UI. */
.global-header__lang-switch { display: none !important; }
