/* ── 切り替えバー ── */
.g-toggle-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  background: #f7f8fa;
  padding: 12px 16px;
  border-radius: 10px;
  flex-wrap: wrap;
}
.g-toggle-bar > p {
  margin: 0;
  font-size: 13px;
  color: #888;
  font-weight: 600;
  letter-spacing: .05em;
}
.g-btn {
  padding: 9px 24px;
  border-radius: 999px;
  border: 2px solid #2563eb;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s, color .18s, box-shadow .18s;
  letter-spacing: .03em;
  line-height: 1;
}
.g-btn.active {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 2px 8px rgba(37,99,235,.35);
}
.g-btn:not(.active) {
  background: #fff;
  color: #2563eb;
}
.g-btn:not(.active):hover {
  background: #eff6ff;
}

/* ── 行見出し ── */
.g-heading {
  font-size: 20px;
  font-weight: 800;
  margin: 44px 0 16px;
  padding: 8px 20px;
  display: inline-block;
  background: #2563eb;
  color: #fff;
  border-radius: 6px;
  letter-spacing: .08em;
  box-shadow: 0 2px 8px rgba(37,99,235,.25);
}

/* ── 用語リスト ── */
.g-list {
  display: grid;
  gap: 12px;
  margin: 0 0 8px;
  padding: 0;
}
.g-list dt {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
.g-jp {
  font-size: 18px;
  font-weight: 800;
  color: #111827;
  line-height: 1.3;
}
.g-en {
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
  background: #f3f4f6;
  padding: 2px 8px;
  border-radius: 4px;
}
.g-en-main {
  font-size: 18px;
  font-weight: 800;
  color: #1d4ed8;
}
.g-list dd {
  margin: 6px 0 0 0;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.85;
  color: #374151;
  background: #f9fafb;
  border-left: 3px solid #dbeafe;
  border-radius: 0 6px 6px 0;
}

/* 各用語をカード風に */
.g-list > div {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px 18px;
  transition: box-shadow .15s, border-color .15s;
}
.g-list > div:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.07);
  border-color: #bfdbfe;
}

/* ABCビュー非表示（JS が切り替え） */
#g-view-abc { display: none; }

/* モバイル対応 */
@media (max-width: 640px) {
  .g-heading { width: 44px; height: 44px; font-size: 13px; }
  .g-jp, .g-en-main { font-size: 16px; }
  .g-btn { padding: 8px 16px; font-size: 13px; }
}
