/* === HydeyTools Common Header ===
   hydey-gacha / panel-opener と揃えた共通ヘッダ。
   ロゴクリックで HydeyTools ツール一覧へ。
   中央にツール名（pref47）。右側に各画面固有のナビ要素を slot 配置。 */

.ht-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(
    180deg,
    rgba(15, 25, 45, 0.95),
    rgba(15, 25, 45, 0.85)
  );
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.ht-header-inner {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 12px;
  min-height: 52px;
  gap: 8px;
}

.ht-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.ht-logo img {
  height: 36px;
  display: block;
}

.ht-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}
.ht-tool {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #e6f0ff;
  font-family: "Kosugi Maru", system-ui, sans-serif;
  text-shadow:
    0 0 6px rgba(0, 166, 255, 0.4),
    0 2px 6px rgba(0, 0, 0, 0.4);
}

.ht-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}
.ht-nav .btn,
.ht-nav .ht-status {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.ht-nav .ht-status {
  color: #b8c5dc;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

/* モバイル: ロゴ縮小、タイトル非表示 (nav が幅を取るため) */
@media (max-width: 640px) {
  .ht-logo img { height: 28px; }
  .ht-title { display: none; }
  .ht-header-inner { padding: 8px 10px; }
  .ht-nav .btn { padding: 4px 8px; font-size: 11px; }
}
