/* ================================================================
   glossary.css — BitTradeBlog 「用語集」一覧ページ
================================================================ */

/* ================================================================
   HERO
================================================================ */
.gl-hero {
  background: linear-gradient(160deg, var(--gray-900) 0%, var(--blue-800) 60%, var(--blue-700) 100%);
  padding: 52px 0 44px;
  position: relative;
  overflow: hidden;
}
.gl-hero::before {
  content: '';
  position: absolute;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,217,255,.09) 0%, transparent 70%);
  top: -140px; right: -100px;
  pointer-events: none;
}
.gl-hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}
.gl-hero__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.gl-hero__eyebrow::before,
.gl-hero__eyebrow::after {
  content: '';
  display: inline-block;
  width: 24px; height: 1px;
  background: var(--color-primary);
  opacity: .5;
}
.gl-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin: 0 0 10px;
}
.gl-hero__title span { color: var(--color-primary); }
.gl-hero__desc {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.5);
  margin: 0 auto 28px;
  max-width: 460px;
  line-height: var(--leading-normal);
}

/* 検索ボックス */
.gl-search-wrap {
  max-width: 520px;
  margin: 0 auto;
  position: relative;
}
.gl-search {
  width: 100%;
  height: 50px;
  padding: 0 48px 0 20px;
  background: rgba(255,255,255,.10);
  border: 1.5px solid rgba(255,255,255,.20);
  border-radius: var(--r-full);
  color: #fff;
  font-size: var(--text-base);
  font-family: var(--font-sans);
  outline: none;
  transition: var(--transition-normal);
  -webkit-appearance: none;
}
.gl-search::placeholder { color: rgba(255,255,255,.32); }
.gl-search:focus {
  background: rgba(255,255,255,.14);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0,217,255,.18);
}
.gl-search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,.35);
  pointer-events: none;
  font-size: 17px;
  line-height: 1;
}
.gl-hero__count {
  margin-top: 14px;
  font-size: var(--text-xs);
  color: rgba(255,255,255,.38);
}
.gl-hero__count strong {
  color: var(--color-primary);
  font-size: var(--text-sm);
}

/* ================================================================
   INDEX NAV（スティッキー）
================================================================ */
.gl-index-nav {
  position: sticky;
  top: var(--header-height);
  z-index: var(--z-sticky);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 4px rgba(0,50,80,.06);
}
.gl-index-nav__inner {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 var(--container-pad);
}
.gl-index-nav__inner::-webkit-scrollbar { display: none; }

.gl-index-nav__group {
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
}
.gl-index-nav__divider {
  width: 1px;
  background: var(--color-border);
  flex-shrink: 0;
  margin: 8px 4px;
}

.gl-index-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 42px;
  padding: 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-sub);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-fast);
  flex-shrink: 0;
  font-family: var(--font-sans);
  white-space: nowrap;
}
.gl-index-btn:hover {
  color: var(--color-primary-dark);
  background: var(--color-primary-dim);
}
.gl-index-btn.is-active {
  color: var(--color-primary-dark);
  border-bottom-color: var(--color-primary);
}
.gl-index-btn.is-disabled {
  color: var(--color-text-muted);
  opacity: .38;
  cursor: default;
  pointer-events: none;
}
.gl-index-btn--alpha {
  font-size: 11px;
  min-width: 26px;
  padding: 0 3px;
  font-family: var(--font-mono);
}

/* ================================================================
   ボディ
================================================================ */
.gl-body {
  background: var(--color-bg);
  padding: var(--sp-10) 0 var(--sp-20);
}

/* ================================================================
   用語セクション（行ごと）
================================================================ */
.gl-section {
  margin-bottom: var(--sp-6);
  scroll-margin-top: calc(var(--header-height) + 42px + 20px);
}
.gl-section.is-hidden { display: none; }

.gl-section__header {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--sp-4);
}
.gl-section__kana {
  display: none;
}
.gl-section__kana--alpha {
  font-size: var(--text-sm);
  font-family: var(--font-mono);
}
.gl-section__label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-text-muted);
  letter-spacing: .06em;
}

/* ================================================================
   用語リンクリスト
================================================================ */
.gl-terms {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.gl-term-link {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: var(--r-full);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: var(--transition-fast);
  white-space: nowrap;
}
.gl-term-link:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
  background: var(--color-primary-dim);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.gl-term-link.is-hidden { display: none; }

/* 検索ハイライト */
.gl-term-link mark {
  background: rgba(0,217,255,.25);
  color: var(--blue-700);
  border-radius: 2px;
  padding: 0 1px;
  font-style: normal;
}

/* ================================================================
   検索：結果なし
================================================================ */
.gl-no-result {
  text-align: center;
  padding: 60px 0;
  display: none;
}
.gl-no-result.is-visible { display: block; }
.gl-no-result__icon { font-size: 36px; margin-bottom: var(--sp-3); opacity: .3; }
.gl-no-result__text { font-size: var(--text-base); color: var(--color-text-muted); margin-bottom: var(--sp-1); }
.gl-no-result__sub  { font-size: var(--text-sm);  color: var(--color-text-muted); }

/* ================================================================
   CTA バナー
================================================================ */
.gl-cta {
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--blue-800) 100%);
  border-radius: var(--r-xl);
  padding: var(--sp-10) var(--sp-8);
  text-align: center;
  margin-top: var(--sp-12);
}
.gl-cta__title {
  font-family: var(--font-serif);
  font-size: clamp(17px, 2.5vw, 22px);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--sp-3);
}
.gl-cta__desc {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.5);
  margin-bottom: var(--sp-6);
  line-height: var(--leading-normal);
}

/* ================================================================
   レスポンシブ
================================================================ */
@media (max-width: 640px) {
  .gl-hero { padding: 36px 0 32px; }
  .gl-body { padding: var(--sp-8) 0 var(--sp-16); }
  .gl-cta  { padding: var(--sp-8) var(--sp-5); }
  .gl-term-link { font-size: var(--text-xs); padding: 6px 13px; }
}
