/* ============================================================
   breadcrumbs.css — Takumi Senpai · Trail Log Navigation
   Path: /css/breadcrumbs.css
   Load on: all individual quest article pages (after style.css)

   CONCEPT: TRAIL LOG — field operative breadcrumb system
   Tone: command-line · monospace · documentary dark
   ============================================================ */

/* ════════════════════════════════════════════════════════════
   BREADCRUMB WRAPPER  (.bc-trail)
   横スクロール可能・スクロールバー完全非表示
   ════════════════════════════════════════════════════════════ */
.bc-trail {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;            /* 折り返し禁止 — コマンドライン1行を死守 */
  gap: 0;

  /* ── 横スクロール ── */
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch; /* iOS慣性スクロール */

  /* ── スクロールバーを完全非表示（標準） ── */
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* IE / Edge (legacy) */

  /* ── 余白 ── */
  margin-top: 48px;
  margin-bottom: 12px;

  /* ── タイポグラフィ ── */
  font-family: 'Space Mono', monospace;
  font-size: 0.60rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  line-height: 1;
  position: relative;

  /* ── スワイプ操作感の補助 ── */
  cursor: grab;
}

.bc-trail:active {
  cursor: grabbing;
}

/* WebKit系（Chrome / Safari）のスクロールバーを非表示 */
.bc-trail::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* ── Individual crumb ────────────────────────────────────── */
.bc-crumb {
  display: inline-flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;          /* 各クラム内も1行固定 */
  flex-shrink: 0;               /* 横スクロール時に縮まない */
}

/* ════════════════════════════════════════════════════════════
   SHARED LINK STYLE
   ════════════════════════════════════════════════════════════ */
.bc-link {
  color: rgba(201, 168, 76, 0.55);
  text-decoration: none;
  letter-spacing: 0.20em;
  position: relative;
  padding-bottom: 1px;
  transition: color 0.18s ease;
  white-space: nowrap;
}

/* Hover: neon underline sweep */
.bc-link::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: rgba(201, 168, 76, 0.75);
  box-shadow:
    0 0 5px  rgba(201, 168, 76, 0.50),
    0 0 12px rgba(201, 168, 76, 0.25);
  transition: width 0.22s ease;
}

.bc-link:hover {
  color: rgba(201, 168, 76, 0.95);
}

.bc-link:hover::after {
  width: 100%;
}

/* ── Separator  ::  ──────────────────────────────────────── */
.bc-sep {
  display: inline-block;
  color: rgba(255, 255, 255, 0.15);
  margin: 0 8px;
  letter-spacing: 0;
  font-size: 0.55rem;
  user-select: none;
  flex-shrink: 0;               /* セパレーターも縮まない */
  white-space: nowrap;
}

/* ════════════════════════════════════════════════════════════
   HQ CRUMB  (.bc-hq)
   ════════════════════════════════════════════════════════════ */
.bc-hq {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(201, 168, 76, 0.55);
}

.bc-hq-bracket {
  color: rgba(201, 168, 76, 0.25);
  font-size: 0.55rem;
  letter-spacing: 0;
}

/* ════════════════════════════════════════════════════════════
   CATEGORY CRUMB  (.bc-category-link)
   ════════════════════════════════════════════════════════════ */
.bc-category-link {
  color: rgba(240, 236, 228, 0.40);
  letter-spacing: 0.20em;
  white-space: nowrap;
}

.bc-category-link:hover {
  color: rgba(240, 236, 228, 0.80);
}

/* 複数カテゴリ間の区切り「 · 」 */
.bc-cat-sep {
  color: rgba(255, 255, 255, 0.15);
  letter-spacing: 0;
  user-select: none;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════
   CURRENT PAGE  (.bc-current)
   ════════════════════════════════════════════════════════════ */
.bc-current {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(240, 236, 228, 0.75);
  letter-spacing: 0.16em;
  font-size: 0.58rem;

  /* 横スクロール化したので切り詰め系スタイルはすべて解除 */
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;

  /* 末尾に余白：スクロール終端が窮屈に見えないように */
  padding-right: 16px;
}

/* ── 📍 Pulse blink animation ────────────────────────────── */
.bc-current-icon {
  display: inline-block;
  font-size: 0.70rem;
  line-height: 1;
  flex-shrink: 0;
  animation: bc-pulse 2.4s ease-in-out infinite;
}

@keyframes bc-pulse {
  0%,  100% { opacity: 1;    transform: scale(1);    }
  40%        { opacity: 0.25; transform: scale(0.82); }
  70%        { opacity: 0.80; transform: scale(1.08); }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   nowrap + 横スクロールで対応するためフォントサイズのみ調整。
   旧 @media (max-width: 400px) の .bc-crumb--category { display:none }
   は廃止 — これが "[HQ] :: :: 📍" カテゴリ抜けの原因だった。
   ════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  .bc-trail {
    font-size: 0.52rem;
    letter-spacing: 0.14em;
    margin-top: 36px;
    margin-bottom: 10px;
  }

  .bc-sep {
    margin: 0 5px;
    font-size: 0.48rem;
  }

  .bc-current {
    font-size: 0.48rem;
    letter-spacing: 0.12em;
  }
}