/* ==========================================================================
   rules.php / glossary.php / faq.php 専用スタイル
   - style.css の続き（トークンは style.css の :root をそのまま使う。ここでは足さない）
   - style.css は別エージェントが並行編集中のため触らず、新規クラスはすべてこちらに置く
   ========================================================================== */

/* --------------------------------------------------------------------------
   ページ内目次（rules.php / glossary.php 冒頭）
   -------------------------------------------------------------------------- */
.rule-toc {
  display: flex; flex-wrap: wrap; gap: 8px 10px;
  justify-content: center;
  margin: 0 0 28px;
  padding: 18px 20px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 18px;
}
.rule-toc a {
  font-size: 13.5px; font-weight: 700;
  color: var(--accent-ink);
  text-decoration: none;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--paper);
}
.rule-toc a:hover { background: var(--gold); }

/* --------------------------------------------------------------------------
   ルールブロック内の動画/GIF（gif_url・mp4_url があるセクションのみ）
   -------------------------------------------------------------------------- */
.rule-media {
  margin: 16px 0 4px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--paper);
  line-height: 0;
}
.rule-media video, .rule-media img { width: 100%; height: auto; display: block; }

/* --------------------------------------------------------------------------
   用語集（glossary.php）
   -------------------------------------------------------------------------- */
.gl-section-title {
  font-family: var(--font-head); font-weight: 900; font-size: 22px;
  color: var(--accent-ink);
  text-align: center;
  margin: 48px 0 20px;
}
.gl-section-title:first-of-type { margin-top: 0; }

.term-card {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-bottom: 18px;
}
.term-card h3 {
  font-family: var(--font-head); font-weight: 900; font-size: 17px;
  margin-bottom: 10px;
}
.term-card p { font-size: 14.5px; margin-bottom: 8px; }
.term-card ul { list-style: none; }
.term-card li { position: relative; padding-left: 18px; font-size: 14.5px; margin-bottom: 6px; }
.term-card li::before {
  content: ""; position: absolute; left: 2px; top: 0.7em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold-deep);
}
.term-card strong { color: var(--accent-ink); }

/* 状態異常・バフ カードグリッド */
.cond-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (max-width: 640px) { .cond-grid { grid-template-columns: 1fr; } }

.cond-card {
  display: flex; gap: 14px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px;
}
.cond-icon {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.cond-icon img { width: 24px; height: 24px; }
.cond-body { flex: 1; min-width: 0; }
.cond-name {
  font-family: var(--font-head); font-weight: 900; font-size: 15.5px;
  color: var(--accent-ink);
  display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap;
}
.cond-name .q { width: 1em; height: 1em; }
.cond-range { font-size: 12px; font-weight: 500; color: var(--ink-2); }
.cond-desc { font-size: 13.5px; color: var(--ink); margin-top: 4px; }
.cond-desc .q { width: 1.1em; height: 1.1em; }
.cond-levels { list-style: none; margin-top: 8px; }
.cond-levels li { font-size: 13px; color: var(--ink-2); margin-top: 3px; }
.cond-levels b { color: var(--ink); font-weight: 700; }

/* --------------------------------------------------------------------------
   よくある質問（faq.php）
   -------------------------------------------------------------------------- */
.faq-cat-title {
  font-family: var(--font-head); font-weight: 900; font-size: 19px;
  color: var(--accent-ink);
  margin: 40px 0 14px;
  display: flex; align-items: center; gap: 10px;
}
.faq-cat-title:first-of-type { margin-top: 0; }
.faq-cat-title::before {
  content: ""; width: 12px; height: 12px; border-radius: 4px;
  background: var(--gold); flex: none;
}

.faq-item {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 44px 16px 20px;
  font-weight: 700; font-size: 15px;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-head); font-size: 20px; color: var(--ink-2);
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-a {
  padding: 0 20px 18px;
  font-size: 14.5px; color: var(--ink); line-height: 1.85;
}
.faq-item .faq-a p { margin-bottom: 8px; }
.faq-item .faq-tags { margin-top: 8px; }
.faq-item .faq-tag {
  display: inline-block; font-size: 11.5px; font-weight: 700; color: var(--ink-2);
  background: var(--paper); border-radius: 999px; padding: 2px 10px; margin-right: 6px;
}

.faq-updated { text-align: center; font-size: 13px; color: var(--ink-2); margin: 8px 0 30px; }
.faq-note {
  font-size: 13px; color: var(--ink-2);
  background: var(--paper); border-radius: 14px; padding: 14px 18px;
  margin-top: 26px;
}
