/* 共通色とカーソルを引き継ぎ、文章ページではゲーム用の拡大を解除する。 */
html {
  zoom: 1;
}

body {
  background: #030312;
  font-family: 'DotGothic16', 'Hiragino Kaku Gothic ProN', 'メイリオ', sans-serif;
  font-size: 1rem;
  line-height: 1.9;
  overflow: visible;
}

.guide-page {
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
  padding: 32px 24px 48px;
  overflow-wrap: anywhere;
}

.guide-page h1 {
  margin: 24px 0 16px;
  font-size: 1.75rem;
  line-height: 1.5;
}

.guide-page p + p,
.guide-page ul + p,
.guide-page ol + p,
.guide-page .guide-table-wrapper + p {
  margin-top: 16px;
}

.guide-page a {
  color: #b4d6ff;
  text-underline-offset: 0.2em;
}

.guide-page a:hover {
  color: var(--ui-text-main);
}

.guide-page a:focus-visible {
  outline: 2px solid var(--ui-focus);
  outline-offset: 3px;
}

.guide-nav {
  margin: 16px 0 32px;
  padding: 16px;
  border: 1px solid #3b485d;
  background: #0b1020;
}

.guide-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 0;
  list-style: none;
}

.guide-nav a {
  display: inline-block;
  padding: 4px 0;
}

.guide-nav a[aria-current="page"] {
  color: var(--ui-text-main);
  font-weight: bold;
  text-decoration-thickness: 3px;
}

.guide-section {
  margin-top: 32px;
}

.guide-section h2 {
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #3b485d;
  font-size: 1.2rem;
  line-height: 1.6;
}

.guide-section h3 {
  margin: 24px 0 12px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.guide-section ul,
.guide-section ol {
  margin: 16px 0;
  padding-left: 1.5em;
}

.guide-section li + li {
  margin-top: 8px;
}

.guide-entry + .guide-entry {
  margin-top: 32px;
}

.guide-entry-heading {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}

.guide-entry-heading h3 {
  margin: 0;
}

.guide-portrait {
  display: block;
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  object-fit: contain;
  image-rendering: pixelated;
  margin-bottom: 12px;
}

.guide-entry-heading .guide-portrait {
  margin: 0;
}

.guide-table-wrapper {
  margin: 16px 0;
  overflow-x: auto;
}

.guide-page table {
  width: 100%;
  border-collapse: collapse;
  font: inherit;
}

.guide-page caption {
  margin-bottom: 8px;
  text-align: left;
}

.guide-page th,
.guide-page td {
  padding: 10px 12px;
  border: 1px solid #3b485d;
  text-align: left;
  vertical-align: top;
}

.guide-page th {
  background: #141c2d;
}

.guide-page code,
.guide-page kbd {
  padding: 0.1em 0.3em;
  border: 1px solid #3b485d;
  background: #141c2d;
  font: 0.95em/1.6 monospace;
}

.guide-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #3b485d;
}

.guide-page .guide-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: var(--ui-text-main);
  letter-spacing: 2px;
  text-decoration: none;
}

/* カーソルの場所を常に確保して、フォーカスでリンクの文字を動かさない。 */
.guide-back > .menu-cursor {
  position: static;
  height: auto;
  font: inherit;
  color: inherit;
  transform: none;
}

.guide-page .guide-back:focus-visible {
  outline: none;
}
