.maboroshi-guide .guide-section { line-height: 1.8; }
.maboroshi-guide .guide-section h2,
.maboroshi-guide [data-static-list] > h2 { color: var(--accent); font-size: 1.2rem; margin: 0 0 .8rem; }
.maboroshi-guide .guide-group { margin: 2rem 0; min-width: 0; }
.maboroshi-guide .guide-group > h2 { color: var(--accent); font-size: 1.35rem; border-bottom: 2px solid #a8cce1; padding-bottom: .65rem; }
.maboroshi-guide .guide-group [data-static-list] > h3,
.maboroshi-guide .guide-group .guide-section > h3 { color: var(--accent); font-size: 1.2rem; margin: 1.25rem 0 .8rem; }
.maboroshi-guide .guide-group .guide-section h4 { color: var(--brand); font-size: 1.02rem; }
.maboroshi-guide .guide-group .character-detail-item h4 { margin: 0; color: var(--brand); font-size: .82rem; line-height: 1.45; white-space: nowrap; }
.maboroshi-guide .guide-toc--main h2 { font-size: 1.15rem; color: var(--accent); margin: 0 0 .65rem; }
.maboroshi-guide .guide-toc--main > ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .2rem 1rem; }
.maboroshi-guide .guide-toc--local { margin: 0 0 1.25rem; }
.maboroshi-guide .guide-back { text-align: right; margin: 1rem 0; }
.maboroshi-guide .guide-back a { display: inline-flex; align-items: center; min-height: 44px; }
.maboroshi-guide [data-static-list] > h2 { margin-top: 1.25rem; }
.maboroshi-guide .guide-section h3 { font-size: 1.02rem; color: var(--brand); }
.maboroshi-guide .guide-section ol,
.maboroshi-guide .guide-section ul { padding-left: 1.5rem; }
.maboroshi-guide .guide-section li + li { margin-top: .55rem; }
.maboroshi-guide .guide-chapter + .guide-chapter { border-top: 1px solid #c7e4f1; margin-top: 1.25rem; padding-top: .6rem; }
.maboroshi-guide [id] { scroll-margin-top: 6.5rem; }
.maboroshi-guide .guide-toc ul { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; padding: 0; margin: 0; list-style: none; }
.maboroshi-guide .guide-toc a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.maboroshi-guide .guide-dl { display: grid; grid-template-columns: minmax(6rem, 1fr) minmax(0, 4fr); gap: .55rem 1rem; }
.maboroshi-guide .guide-dl dt { font-weight: 800; }
.maboroshi-guide .guide-dl dd { margin: 0; }
.maboroshi-guide .guide-zone { border-top: 1px solid #d8e9f3; padding-top: .35rem; }
.maboroshi-guide .guide-zone p { margin: .4rem 0; }
.maboroshi-guide .guide-list-actions { display: flex; justify-content: flex-end; margin-bottom: .5rem; }
.maboroshi-guide .guide-column-label { display: block; padding: .6rem; }
.maboroshi-guide .character-table.guide-table { min-width: 0; }
.maboroshi-guide .guide-table th:nth-child(n),
.maboroshi-guide .guide-table td:nth-child(n) { width: auto; }
.maboroshi-guide .guide-table th:first-child,
.maboroshi-guide .guide-table td:first-child { width: 31%; }
.maboroshi-guide .guide-table--missions th:first-child,
.maboroshi-guide .guide-table--missions td:first-child { width: 28%; }
.maboroshi-guide .guide-table--missions th:nth-child(2),
.maboroshi-guide .guide-table--missions td:nth-child(2) { width: 20%; }
.maboroshi-guide .guide-table--missions th:last-child,
.maboroshi-guide .guide-table--missions td:last-child { width: 11%; }
.maboroshi-guide .guide-table--demons th:first-child,
.maboroshi-guide .guide-table--demons td:first-child { width: 24%; }
.maboroshi-guide .guide-table--demons th:nth-child(2),
.maboroshi-guide .guide-table--demons td:nth-child(2) { width: 14%; }
.maboroshi-guide .guide-table--sephirot th:first-child,
.maboroshi-guide .guide-table--sephirot td:first-child { width: 22%; }
.maboroshi-guide .guide-table--sephirot th:nth-child(2),
.maboroshi-guide .guide-table--sephirot td:nth-child(2) { width: 20%; }
.maboroshi-guide .guide-table--soundtrack th:first-child,
.maboroshi-guide .guide-table--soundtrack td:first-child { width: 65%; }
.maboroshi-guide .guide-table--soundtrack th:nth-child(2),
.maboroshi-guide .guide-table--soundtrack td:nth-child(2) { width: 20%; }
.maboroshi-guide .guide-table .character-detail-cell { width: auto !important; }
.maboroshi-guide .guide-card-line { font-size: .88rem; line-height: 1.65; margin: .25rem .65rem .6rem; overflow-wrap: anywhere; }
.maboroshi-guide .guide-card-label { display: block; color: var(--brand); font-weight: 800; font-size: .76rem; }
.maboroshi-guide .character-card-summary { grid-template-columns: minmax(0, 1fr) minmax(4rem, 30%); }
.maboroshi-guide .character-card-value { display: flex; flex-direction: column; gap: .15rem; border-radius: .6rem; padding: .35rem; }
.maboroshi-guide .character-card-value > span:first-child { font-size: .68rem; font-weight: 500; }
.maboroshi-guide .character-card-value > span:last-child { font-size: .8rem; }
.maboroshi-guide .guide-empty { padding: 1rem; line-height: 1.7; }
.maboroshi-guide .character-controls select { width: 100%; min-height: 44px; font: inherit; padding: .4rem; color: var(--text-main); border: 1px solid #a8cce1; border-radius: .5rem; background: #fff; }
.maboroshi-guide .character-mobile-sort-button,
.maboroshi-guide .character-name-button { min-height: 44px; }
@media (max-width: 850px) {
  .maboroshi-guide .guide-group .character-detail-item h4 { font-size: .86rem; line-height: 1.38; }
  .maboroshi-guide .guide-toc--main > ul { grid-template-columns: minmax(0, 1fr); }
  .maboroshi-guide .character-mobile-list-head { display: flex; flex-wrap: wrap; padding: 0; }
  .maboroshi-guide .character-mobile-list-head button { flex: 1 1 6rem; }
  .maboroshi-guide .guide-dl { grid-template-columns: minmax(5rem, 1fr) minmax(0, 2.7fr); gap: .5rem; }
  .maboroshi-guide .guide-toc ul { gap: .1rem .8rem; }
  .maboroshi-guide .guide-section { line-height: 1.85; }
}
