@import url("https://assets.oshikatsu-techo.com/v1/sha256/ed/ed1612aeb3645f29776f62152d1aef2bdd77aded0831f5acfd194ff4e8fc10e7.css");

body[data-page="home"] .layout-shell {
  max-width: 1280px;
  margin-top: 0;
}

body[data-page="home"] .main-content {
  flex: 1 1 auto;
  min-width: 0;
  padding-top: 2px;
  padding-bottom: 28px;
}

body[data-page="home"] .site-intro {
  margin-top: 0;
  padding-top: 0;
}

body[data-page="home"] .site-intro .subpage-title {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 1.35rem;
  line-height: 1.2;
  text-align: left;
}

.site-intro-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  margin-bottom: 8px;
}

.site-intro-links {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px;
}

.site-intro-top .subpage-back-link { margin: 0; }
.site-intro-top .page-updated-at { position: static; flex: 0 0 auto; text-align: right; }

.static-reference-section {
  scroll-margin-top: 1rem;
}

.static-reference-section > h2 {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 1.15rem;
  line-height: 1.3;
}

.static-section-note {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.character-table--reference { min-width: 760px; }
.character-table--reference th:nth-child(1),
.character-table--reference td:nth-child(1) { width: 24%; }
.character-table--reference th:nth-child(2),
.character-table--reference td:nth-child(2) { width: 31%; }
.character-table--reference th:nth-child(3),
.character-table--reference td:nth-child(3) { width: 20%; }
.character-table--reference th:nth-child(4),
.character-table--reference td:nth-child(4) { width: 25%; }

.reference-primary {
  color: var(--accent);
  font-weight: 900;
}

.reference-secondary {
  color: var(--text-main);
  font-weight: 800;
}

.reference-card-summary {
  cursor: default;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.75fr) minmax(150px, 0.85fr);
}

.reference-card-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.reference-card-main--joint {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.reference-joint-member-b::before {
  content: "・";
  margin-right: 2px;
  color: var(--brand);
}

.reference-card-category,
.reference-card-presentation {
  display: block;
  min-width: 0;
  padding: 5px 7px;
  border-radius: 10px;
  background: #f8e9eb;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
}

.reference-card-command {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 2rem;
  padding: 5px 7px;
  border-radius: 10px;
  background: #f8e9eb;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
}

@media (max-width: 600px) {
  body[data-page="home"] .main-content { padding: 6px 8px 8px; }

  body[data-page="home"] .layout-shell,
  body[data-page="home"] .main-content,
  body[data-page="home"] .panel,
  body[data-page="home"] .character-list,
  body[data-page="home"] .character-card {
    max-width: 100%;
    min-width: 0;
  }

  .site-intro-top { align-items: flex-start; margin-bottom: 6px; }
  .site-intro-links { gap: 6px; }
  .reference-card-summary { grid-template-columns: minmax(0, 1fr) minmax(110px, 0.72fr); }
  .reference-card-command { grid-column: 1 / -1; }
}
