@import url("/mobile.css?v=20260728");

.memo-header {
  margin-bottom: 28px;
}

.memo-toc {
  /* 記事の並び順は、この4つの数値を変更するだけで調整できます。 */
  --order-armor: 1;
  --order-season: 2;
  --order-pool: 3;
  --order-rdu: 4;

  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 0 48px;
  padding: 16px 20px 8px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dedcd6;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(32, 38, 43, 0.06);
}

.memo-toc-title {
  margin: 0;
  padding: 0 0 12px;
  color: #171b1f;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
}

.memo-toc ol {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #eceae5;
}

.memo-toc li {
  width: 100%;
  min-width: 0;
  margin: 0;
  border-bottom: 1px solid #eceae5;
}

.memo-toc li:last-child {
  border-bottom: 0;
}

.memo-toc li:has(a[href="#armor-history-title"]) {
  order: var(--order-armor);
}

.memo-toc li:has(a[href="#season-history-title"]) {
  order: var(--order-season);
}

.memo-toc li:has(a[href="#pool-title"]) {
  order: var(--order-pool);
}

.memo-toc li:has(a[href="#rdu-beast-title"]) {
  order: var(--order-rdu);
}

.memo-toc a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  gap: 12px;
  padding: 14px 0;
  color: #30373d;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

.memo-toc a:hover {
  color: #111;
}

.memo-toc-number {
  display: none;
}

.memo-toc-arrow {
  justify-self: end;
  color: #a0a5a9;
  font-size: 13px;
  transition: transform .15s ease, color .15s ease;
}

.memo-toc a:hover .memo-toc-arrow {
  color: #111;
  transform: translateX(3px);
}

body:has(#armor-history-title:target) .memo-toc a[href="#armor-history-title"],
body:has(#season-history-title:target) .memo-toc a[href="#season-history-title"],
body:has(#pool-title:target) .memo-toc a[href="#pool-title"],
body:has(#rdu-beast-title:target) .memo-toc a[href="#rdu-beast-title"] {
  color: #111;
}

body:has(#armor-history-title:target) .memo-toc a[href="#armor-history-title"] .memo-toc-arrow,
body:has(#season-history-title:target) .memo-toc a[href="#season-history-title"] .memo-toc-arrow,
body:has(#pool-title:target) .memo-toc a[href="#pool-title"] .memo-toc-arrow,
body:has(#rdu-beast-title:target) .memo-toc a[href="#rdu-beast-title"] .memo-toc-arrow {
  color: #111;
  transform: translateX(3px);
}

.memo-date {
  display: none !important;
}

.memo-page > .memo-entry {
  display: none;
}

.memo-page > .memo-entry:has(:target) {
  display: block;
  scroll-margin-top: 24px;
}

#armor-history-title,
#season-history-title,
#pool-title,
#rdu-beast-title {
  scroll-margin-top: 24px;
}

@media (max-width: 760px) {
  html body .memo-toc {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 0 32px !important;
    padding: 12px 14px 4px !important;
    overflow: hidden !important;
    border-radius: 10px !important;
  }

  html body .memo-toc-title {
    margin: 0 !important;
    padding: 0 0 10px !important;
    font-size: 12px !important;
  }

  html body .memo-toc ol {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html body .memo-toc li {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  html body .memo-toc a {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 16px !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 44px !important;
    box-sizing: border-box !important;
    gap: 8px !important;
    padding: 11px 0 !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }

  html body .memo-toc-number {
    display: none !important;
  }

  html body .memo-toc-arrow {
    display: block !important;
    justify-self: end !important;
    width: 16px !important;
    text-align: right !important;
  }

  html body .memo-page > .memo-entry {
    display: none !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  html body .memo-page > .memo-entry:has(:target) {
    display: block !important;
  }
}

@media (max-width: 390px) {
  html body .memo-toc {
    padding-right: 12px !important;
    padding-left: 12px !important;
  }

  html body .memo-toc a {
    font-size: 12.5px !important;
  }
}
