.hp {
  max-width: 960px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}
.bc {
  font-size: 0.82rem;
  color: var(--text-sub);
  margin-bottom: 1rem;
}
.bc a {
  color: #0066cc;
  text-decoration: none;
}
.bc a:hover {
  color: #0052a3;
  text-decoration: underline;
}
.hb {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem 2.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.hb-icon {
  width: 110px;
  height: 110px;
  border-radius: 14px;
  border: 2px solid var(--border-color);
  background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
  overflow: hidden;
  flex-shrink: 0;
}
.hb-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hb-info h1 {
  font-size: 2rem;
  margin: 0 0 0.15rem;
  font-weight: 800;
  line-height: 1.2;
}
.hb-info .en {
  color: var(--text-sub);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.role-t {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-top: 0.6rem;
  border: 1.5px solid;
}
.hb-desc {
  font-size: 0.9rem;
  color: var(--text-sub);
  line-height: 1.7;
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px dashed var(--border-color);
  width: 100%;
}
.hp-toc {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 2rem;
  overflow: hidden;
}
.hp-toc-header {
  background: var(--bg-base);
  padding: 10px 16px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-sub);
  letter-spacing: 1.5px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hp-toc-header i {
  color: var(--accent);
}
.hp-toc-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-color);
  margin: 0;
  padding: 0;
  list-style: none;
}
.hp-toc-item {
  background: var(--bg-surface);
}
.hp-toc-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  color: #0066cc;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.2s;
  text-decoration: none;
}
.hp-toc-link i {
  font-size: 0.95rem;
  color: #0066cc;
  width: 20px;
  text-align: center;
  opacity: 0.8;
}
.hp-toc-link:hover {
  background: var(--bg-base);
  color: #0052a3;
  text-decoration: underline;
}
.hp-toc-link:hover i {
  color: #0052a3;
  opacity: 1;
}

@media (max-width: 800px) {
  .hp-toc-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .hp-toc-link {
    padding: 10px 12px;
    font-size: 0.8rem;
  }
}
.hp-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 1.5rem;
}
.hp-box-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-sub);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hp-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
}
.hp-row:last-child {
  border-bottom: none;
}
.hp-mode {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text-sub);
  min-width: 100px;
  background: var(--bg-base);
  padding: 4px 10px;
  border-radius: 4px;
}
.hp-vals {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;
}
.hp-life {
  color: #9ca3af;
  font-weight: 700;
  font-size: 0.88rem;
}
.hp-sh {
  color: #3b82f6;
  font-weight: 700;
  font-size: 0.88rem;
}
.hp-ar {
  color: #f59e0b;
  font-weight: 700;
  font-size: 0.88rem;
}
.hp-plus {
  color: var(--text-sub);
  font-size: 0.72rem;
}
.hp-total {
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-main);
  white-space: nowrap;
}
.sec {
  margin-bottom: 2rem;
}
.sec-h {
  font-size: 1.2rem;
  font-weight: 800;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sec-h i {
  color: var(--accent);
}
.sec-sub {
  font-size: 0.82rem;
  color: var(--text-sub);
  margin: -0.5rem 0 1rem;
  line-height: 1.5;
}
.passive-group {
  margin-bottom: 14px;
}
.passive-group-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  padding-left: 2px;
}
.passive-list {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}
.passive-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.82rem;
  line-height: 1.5;
}
.passive-item i {
  color: var(--accent);
  margin-top: 2px;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.passive-item strong {
  color: var(--text-main);
  display: block;
  font-size: 0.84rem;
  margin-bottom: 2px;
}
.passive-item span {
  color: var(--text-sub);
}
.passive-list-compact {
  padding: 8px 14px;
}
.passive-list-compact .passive-item {
  border: none;
  background: transparent;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-color);
}
.passive-list-compact .passive-item:last-child {
  border-bottom: none;
}
.ptbl {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}
.ptbl tr {
  border-bottom: 1px solid var(--border-color);
}
.ptbl tr:last-child {
  border-bottom: none;
}
.pk {
  padding: 10px 16px;
  font-weight: 700;
  color: var(--text-sub);
  width: 110px;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  background: var(--bg-base);
}
.pv {
  padding: 10px 16px;
  color: var(--text-main);
  font-size: 0.92rem;
}
.sr-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}
.sr-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}
.sr-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-base);
}
.sr-head i {
  font-size: 1.2rem;
  color: var(--accent);
}
.sr-info {
  display: flex;
  flex-direction: column;
}
.sr-label {
  font-size: 0.7rem;
  color: var(--text-sub);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sr-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
}
.sr-desc {
  padding: 10px 16px;
  font-size: 0.82rem;
  color: var(--text-sub);
  line-height: 1.5;
  margin: 0;
}
.sr-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--border-color);
}
.sr-stat {
  padding: 8px 16px;
  font-size: 0.82rem;
  display: flex;
  gap: 8px;
  border-right: 1px solid var(--border-color);
  flex: 1;
  min-width: 120px;
}
.sr-sk {
  color: var(--text-sub);
  font-weight: 600;
}
.sr-sv {
  color: var(--text-main);
  font-weight: 700;
}
.ab-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}
.ab-head {
  padding: 14px 18px;
  background: var(--bg-base);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ab-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.ab-title {
  font-size: 1.05rem;
  margin: 0;
  font-weight: 800;
  color: var(--text-main);
}
.ab-badges {
  display: flex;
  gap: 8px;
  align-items: center;
}
.ab-key {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f8f9fa;
  border: 1px solid #ced4da;
  border-bottom: 3px solid #adb5bd;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 800;
  color: #495057;
  text-transform: uppercase;
  font-family: var(--font-family);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.ab-key i {
  font-size: 0.75rem;
  color: var(--text-sub);
}
.cd {
  font-size: 0.72rem;
  padding: 3px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: #64748b;
  font-weight: 700;
  white-space: nowrap;
  background: #f1f5f9;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.cd i {
  color: #94a3b8;
}
.ult-cd {
  border-color: #fbd38d;
  color: #c05621;
  background: #fffaf0;
}
.ult-cd i {
  color: #ed8936;
}
.ab-desc {
  margin: 0;
}
.ab-section {
  padding: 12px 18px;
  border-top: 1px dashed var(--border-color);
}
.ab-section:first-of-type {
  border-top: none;
}
.ab-section-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ab-section-title i {
  font-size: 0.8rem;
}
.ab-section-title.tips {
  color: #22c55e;
}
.ab-tips-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ab-tips-item {
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 6px;
  padding-left: 1.2rem;
  position: relative;
}
.ab-tips-item::before {
  content: "•";
  position: absolute;
  left: 0.2rem;
  color: var(--accent);
  font-weight: bold;
}
.ab-tips-item:last-child {
  margin-bottom: 0;
}
.ab-stats {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  margin: 0;
}
.ab-stats tr {
  border-top: 1px solid var(--border-color);
}
.ab-stats tr:last-child {
  border-bottom: none;
}
.sk {
  padding: 8px 18px;
  color: var(--text-sub);
  font-weight: 600;
  width: 140px;
  background: var(--bg-base);
}
.sv {
  padding: 8px 18px;
  color: var(--text-main);
}
.perks-list {
  display: grid;
  gap: 8px;
}
.perk {
  padding: 12px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.perk strong {
  font-size: 0.92rem;
  color: var(--text-main);
}
.perk-en {
  font-size: 0.72rem;
  color: var(--text-sub);
}
.perk-desc {
  font-size: 0.84rem;
  color: var(--text-sub);
  line-height: 1.5;
  margin-top: 4px;
}
.back-l {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 1rem;
}
.back-l:hover {
  color: #fff;
  opacity: 0.9;
}
@media (max-width: 600px) {
  .hb {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem;
  }
  .hb-info h1 {
    font-size: 1.5rem;
  }
  .hb-desc {
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }
  .sk {
    width: 100px;
  }
  .pk {
    width: 80px;
  }
  .sr-cards {
    grid-template-columns: 1fr;
  }
  .hp-mode {
    min-width: 80px;
  }
}
.lp {
  max-width: 1450px;
  margin: 1.5rem auto;
  padding: 0 1.5rem;
}
.lp-t {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0 0 0.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.lp-t i {
  color: var(--accent);
}
.lp-sub {
  color: var(--text-sub);
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
}
.lp-cnt {
  color: var(--text-sub);
  font-size: 0.82rem;
  font-weight: 600;
}

/* ロール別セクション */
.role-sec {
  margin-bottom: 2rem;
}
.role-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 10px;
  margin-bottom: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--rh-color);
}
.role-header-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--rh-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.role-header-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}
.role-header-cnt {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-sub);
  margin-left: auto;
  background: var(--bg-base);
  padding: 3px 10px;
  border-radius: 12px;
}

/* グリッドカード */
.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}
.gc {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 6px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.gc::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--role-c);
  opacity: 0;
  transition: opacity 0.25s;
}
.gc:hover {
  border-color: var(--role-c);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}
.gc:hover::before {
  opacity: 1;
}
.gc-icon {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
  border: 2px solid var(--border-color);
  overflow: hidden;
  margin-bottom: 6px;
  flex-shrink: 0;
  transition: border-color 0.25s;
}
.gc:hover .gc-icon {
  border-color: var(--role-c);
}
.gc-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gc-icon i {
  font-size: 1.4rem;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.gc-name {
  font-size: 0.84rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.2;
  color: var(--text-main);
}
.gc-en {
  font-size: 0.65rem;
  color: var(--text-sub);
  font-weight: 600;
  text-align: center;
  margin-top: 1px;
}
.gc-sr {
  font-size: 0.6rem;
  color: var(--sr-c, var(--accent));
  font-weight: 700;
  margin-top: 4px;
  padding: 1.5px 6px;
  border: 1px solid var(--sr-c, var(--accent));
  border-radius: 8px;
  white-space: nowrap;
}

/* クイックナビ */
.role-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.role-nav-item {
  flex: 1;
  min-width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-weight: 800;
  font-size: 1rem;
  transition: all 0.25s;
  color: var(--text-main);
}
.role-nav-item i {
  font-size: 1rem;
}
.role-nav-item:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

@media (max-width: 600px) {
  .hero-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 6px;
  }
  .gc {
    padding: 12px 4px 8px;
  }
  .gc-icon {
    width: 48px;
    height: 48px;
  }
  .gc-name {
    font-size: 0.78rem;
  }
  .role-nav-item {
    padding: 8px;
    font-size: 0.9rem;
  }
}
@media (min-width: 1000px) {
  .hero-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }
  .gc {
    padding: 18px 8px 14px;
  }
  .gc-icon {
    width: 68px;
    height: 68px;
  }
  .gc-name {
    font-size: 0.9rem;
  }
}
@media (min-width: 1450px) {
  .hero-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
  }
}

/* PC Desktop Layout: 3 Roles x 3 Columns */
@media (min-width: 1200px) {
  .roles-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
  }
  .role-sec {
    flex: 1;
    margin-bottom: 0;
    min-width: 0;
  }
  .hero-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px;
  }
  .gc {
    padding: 12px 4px 8px;
  }
  .gc-icon {
    width: 52px;
    height: 52px;
  }
  .gc-name {
    font-size: 0.8rem;
  }
  .role-header {
    padding: 8px 12px;
  }
  .role-header-title {
    font-size: 0.95rem;
  }
  .role-header-cnt {
    padding: 2px 8px;
    font-size: 0.7rem;
  }
}

/* 立ち回りセクション用 */
.strategy-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 24px;
  margin-top: 10px;
}
.strategy-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.strategy-item {
  margin-bottom: 1.8rem;
}
.strategy-item:last-child {
  margin-bottom: 0;
}
.strategy-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.strategy-title i {
  color: var(--accent);
  font-size: 1.2rem;
}
.strategy-desc {
  font-size: 0.92rem;
  color: var(--text-sub);
  line-height: 1.8;
  padding-left: 2rem;
}
.strategy-highlight {
  color: var(--accent);
  font-weight: 700;
}
@media (max-width: 600px) {
  .strategy-desc {
    padding-left: 0;
  }
}
