/* =================================================================
   HAMLAB Unified Header — u-* classes
   HamLog v2 / LabQSL / 将来のサービス共通ヘッダー
================================================================= */

html {
  scrollbar-gutter: stable;
}
input, select, textarea, button { font-family: inherit; }

/* ================================================================
   HAMLAB シリーズ共通デザイン規格 (Design Tokens)
   ページレイアウト・タイトル周りの統一値
   ここを変更するだけで全サービスに反映される
================================================================ */
:root {
  /* ================================================================
     コンテナ・レイアウト
  ================================================================ */
  --hl-container-pt:      32px;
  --hl-container-pb:      48px;
  --hl-container-px:      20px;
  --hl-container-px-sp:   14px;
  --hl-container-pt-sp:   20px;
  --hl-container-pb-sp:   40px;

  /* ================================================================
     ページタイトル
  ================================================================ */
  --hl-page-title-size:    20px;
  --hl-page-title-size-sp: 17px;
  --hl-page-title-color:   #1a1f36;
  --hl-page-title-weight:  700;
  --hl-page-title-mb:      20px;
  --hl-title-hr-color:     #e2e4e9;
  --hl-title-hr-margin:    8px;
  --hl-page-subtitle-size:  13px;
  --hl-page-subtitle-color: #9ca3af;

  /* ================================================================
     フォントサイズ
  ================================================================ */
  --hl-fs-body:  16px;   /* body デフォルト */
  --hl-fs-xs:    13px;   /* 補足・メタ情報・タイムスタンプ */
  --hl-fs-sm:    14px;   /* フォームラベル・テーブルth・バッジ */
  --hl-fs-base:  16px;   /* 本文・ボタン・テーブルtd・ナビ */
  --hl-fs-md:    16px;   /* フォーム入力値・主要リンク */
  --hl-fs-lg:    18px;   /* セクションタイトル */

  /* ================================================================
     ボーダー幅
  ================================================================ */
  --hl-bw:       1px;    /* 通常枠線 */
  --hl-bw-md:    1.5px;  /* インプット・ボタン・ページネーション */

  /* ================================================================
     ボーダー色
  ================================================================ */
  --hl-bc:        #e2e4e9;  /* メイン枠線色 */
  --hl-bc-subtle: #f3f4f6;  /* 薄い区切り（テーブル行間など） */
  --hl-bc-input:  #d1d5db;  /* インプット通常枠 */
  --hl-bc-focus:  #2563eb;  /* フォーカス時枠 */
  --hl-bc-error:  #dc2626;  /* エラー枠 */

  /* ================================================================
     角丸 (border-radius)
  ================================================================ */
  --hl-r-xs:   4px;    /* 最小（小バッジ・細部装飾） */
  --hl-r-sm:   6px;    /* 小（sm-btn・ドロップダウン項目） */
  --hl-r-md:   5px;    /* 標準（btn・input・select） */
  --hl-r-lg:   10px;   /* 大（カード・アラート・ドロップダウン枠） */
  --hl-r-xl:   12px;   /* 特大（LabQSL セクション・statsカード） */
  --hl-r-2xl:  14px;   /* 最大（ポップアップ・ワッフルパネル） */
  --hl-r-pill: 50vw;   /* 丸型（QSL ステータスボタン） */

  /* ================================================================
     コンポーネント間隔
  ================================================================ */
  --hl-gap-field:   4px;         /* フィールド内 label-input gap */
  --hl-gap-form:    14px;        /* フォーム内フィールド間 gap */
  --hl-pd-section:  24px;        /* セクション padding */
  --hl-mb-section:  20px;        /* セクション margin-bottom */
  --hl-pd-btn:      6px 18px 10px;   /* ボタン標準 padding（Noto Sans JP 光学補正：上-2/下+2） */
  --hl-pd-btn-sm:   4px 12px 6px;    /* ボタン小 padding（Noto Sans JP 光学補正：上-1/下+1） */
  /* ── ボタン共通サイズ（全サービス統一：ダッシュボード「今日のアクション」青ボタン基準） ── */
  --hl-btn-fs:      var(--hl-fs-xs);  /* ボタン共通フォントサイズ 13px */
  --hl-btn-pd:      4px 12px 6px;     /* ボタン共通 padding（Noto Sans JP 光学補正：上-1/下+1） */
  --hl-btn-radius:  6px;              /* ボタン共通 角丸 */
  --hl-pd-input:    6px 8px;     /* インプット標準 padding */
  --hl-pd-alert:    12px 16px;   /* アラート padding */

  /* ================================================================
     フォーム入力
  ================================================================ */
  --hl-placeholder-color: #d1d5db;  /* placeholder テキスト色 */

  /* ================================================================
     ブランド／役割カラー（トンマナの中核）
     ベース=ネイビー / 強調=くすみオレンジ / サブ=ブルー
  ================================================================ */
  --hl-navy:          #001B46;   /* ベース：ヘッダー・見出し・濃い背景 */
  --hl-accent:        #4a7fc1;   /* 強調：主要アクション・選択中・アクティブ・フォーカス */
  --hl-accent-hover:  #3d6ba8;   /* 強調ホバー */
  --hl-accent-soft:   #e8f0f9;   /* 強調の薄い背景（選択行・ハイライト面） */
  --hl-blue:          #2563eb;   /* サブ：補助動作・情報リンク・サブナビ */
  --hl-blue-hover:    #1d4ed8;   /* サブホバー */

  /* キャンペーン（期間限定の特典）を表す色。通常価格には使わない。
     申込フロー（campaign.css）とマイプランの両方から参照するため、
     どちらか一方に書かず共通トークンにしている。値がずれると
     「同じキャンペーンなのに画面によって色が違う」状態になる。 */
  --hl-campaign:       #e8830a;
  --hl-campaign-hover: #cf7309;
  --hl-campaign-soft:  #fef3e2;

  /* テキスト階調 */
  --hl-text:          #374151;   /* 本文 */
  --hl-text-muted:    #374151;   /* 補助テキスト */
  --hl-text-subtle:   #4b5563;   /* キャプション・微弱 */

  /* 面 */
  --hl-bg:            #f8f9fb;   /* 薄い面背景 */
  --hl-white:         #ffffff;

  /* ================================================================
     ステータスカラー
     各色につき text / bg / border の3トークンを持つ
  ================================================================ */
  --hl-success:        #15803d;
  --hl-success-bg:     #f0fdf4;
  --hl-success-border: #86efac;

  --hl-warning:        #92400e;
  --hl-warning-bg:     #fffbeb;
  --hl-warning-border: #fcd34d;

  --hl-danger:         #dc2626;
  --hl-danger-bg:      #fef2f2;
  --hl-danger-border:  #fca5a5;

  --hl-info:           #0369a1;
  --hl-info-bg:        #f0f9ff;
  --hl-info-border:    #bae6fd;

  /* コールサイン表示 */
  --hl-font-cs:   'Roboto Condensed', monospace;
  --hl-fs-cs:     16px;   /* 一覧表内 */
  --hl-fs-cs-lg:  18px;   /* カード・詳細 */
  --hl-fs-cs-xl:  24px;   /* ヒーロー・大見出し */
  --hl-ls-cs:     1px;    /* letter-spacing */
  --hl-color-cs:  #1a1f36;

  /* ── 後方互換エイリアス（旧 log/style.css の独自:root 由来）──
     既存コードの var() を壊さないための一時的な別名。
     将来的に正典トークンへ置換予定。 */
  --hl-border:  var(--hl-bc);          /* → --hl-bc */
  --hl-radius:  var(--hl-r-lg);        /* → --hl-r-lg */
  --hl-muted:   var(--hl-text-subtle); /* → --hl-text-subtle */
  --hl-max-w:   1100px;
}

/* ================================================================
   共通ページャー（.hl-pager）— 全ページで使用
================================================================ */
.hl-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.hl-pager__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: var(--hl-r-md);
  font-size: var(--hl-fs-base);
  font-weight: 600;
  text-decoration: none;
  border: var(--hl-bw-md) solid var(--hl-bc);
  color: var(--hl-text);
  background: var(--hl-white);
  cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
  line-height: 1;
  font-family: inherit;
}
.hl-pager__btn:hover {
  background: var(--hl-accent-soft);
  border-color: var(--hl-accent);
  color: var(--hl-accent);
  text-decoration: none;
}
.hl-pager__btn.is-active,
.hl-pager__btn[aria-current="page"] {
  background: var(--hl-accent);
  border-color: var(--hl-accent);
  color: #fff;
  pointer-events: none;
}
.hl-pager__btn.is-disabled {
  opacity: .4;
  pointer-events: none;
}
.hl-pager__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 36px;
  color: var(--hl-text-subtle);
  font-size: var(--hl-fs-base);
}

/* ================================================================
   コールサイン表示（.hl-cs）— テーブル・カード共通
================================================================ */
.hl-cs {
  font-family: var(--hl-font-cs);
  font-weight: 700;
  font-size: var(--hl-fs-cs);
  letter-spacing: var(--hl-ls-cs);
  color: var(--hl-color-cs);
  line-height: 1.2;
}
.hl-cs--lg  { font-size: var(--hl-fs-cs-lg); }
.hl-cs--xl  { font-size: var(--hl-fs-cs-xl); letter-spacing: 2px; }
.hl-cs--dim { color: var(--hl-text-muted); font-weight: 400; font-style: italic; font-family: inherit; letter-spacing: 0; }

/* ================================================================
   グローバル placeholder スタイル（全サービス共通）
================================================================ */
::placeholder          { color: var(--hl-placeholder-color); opacity: 1; }
::-webkit-input-placeholder { color: var(--hl-placeholder-color); }
::-moz-placeholder         { color: var(--hl-placeholder-color); opacity: 1; }
:-ms-input-placeholder     { color: var(--hl-placeholder-color); }

/* ── ヘッダー全体 ── */
.u-header {
  background: #0A2A5E;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,.35);
  width: 100%;
  max-width: 100vw;
  letter-spacing: 0.04em;
}

/* ── 1段目 ── */
.u-topbar {
  display: flex;
  align-items: center;
  min-height: 68px;
  max-width: 1640px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 0;
  position: relative;
}

/* ロゴ */
.u-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex-shrink: 0;
}
.u-logo:hover { text-decoration: none; }
.u-logo__img { height: 28px; width: auto; display: block; }
.u-logo__text {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1.2px;
}

/* サービスバッジ（表示のみ） */
.u-svc-badge {
  display: flex;
  align-items: center;
  margin-left: 10px;
  flex-shrink: 0;
  pointer-events: none;
  user-select: none;
}
.u-svc-badge img {
  height: 28px;
  width: auto;
  display: block;
}
.u-svc-badge--sogo {
  background: linear-gradient(135deg, #1e3a5f 0%, #0e7490 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  padding: 4px 12px;
  border-radius: 6px;
  height: 28px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(14,116,144,.35);
}
.u-svc-badge--admin {
  background: linear-gradient(to bottom, #1e3a5f 0%, #0f2040 100%);
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 0 6px;
  border-radius: 8px;
  height: 28px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(15,32,64,.4);
  padding-bottom: 1px;
}
.u-admin-staff-zone {
  display: flex;
  align-items: center;
  gap: 8px;
}
.u-admin-staff-zone__badge {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #93c5fd;
  font-size: 16px;
  flex-shrink: 0;
}
.u-admin-staff-zone__name { font-size: 13px; font-weight: 700; color: #fff; line-height: 1.2; }
.u-admin-staff-zone__role { font-size: 10px; color: #93c5fd; font-weight: 600; letter-spacing: .04em; }

.u-svc-badge--alert {
  background: linear-gradient(to bottom, #2563eb 0%, #1e3a8a 100%);
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 0 6px;
  border-radius: 8px;
  height: 28px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(37,99,235,.35);
  padding-bottom: 1px;
}
.u-svc-badge--settings {
  background: linear-gradient(to bottom, #c77b3a 0%, #8f4e12 100%);
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 0 6px;
  border-radius: 8px;
  height: 28px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(168,94,30,.35);
  padding-bottom: 1px;
}

/* サービス切替ボタン */
.u-svc-switch {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: 10px;
  padding: 6px 13px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 7px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,.7);
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: .02em;
  font-family: inherit;
  position: relative;
}
.u-svc-switch:hover {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.38);
  color: #fff;
}
.u-svc-switch.is-open {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.42);
  color: #fff;
}
.u-svc-switch i { font-size: 14px; }

/* spacer */
.u-topbar__spacer { flex: 1; }

/* 右アイコン群 */
.u-topbar__right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: auto;
}

/* ── アカウントメニュー ── */
.u-acct { position: relative; }
.u-acct__trigger {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1); border: none; cursor: pointer;
  border-radius: 999px; padding: 5px 10px 5px 7px; color: #fff;
  font-family: inherit; transition: background .12s;
}
.u-acct__trigger:hover { background: rgba(255,255,255,.16); }
.u-acct-avatar {
  width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0;
}
.u-acct-name { font-family: 'Roboto Condensed', sans-serif; font-size: 14px; font-weight: 700; letter-spacing: .5px; }
.u-acct-badge {
  background: #ef4444; color: #fff; font-size: 11px; font-weight: 700;
  border-radius: 999px; padding: 0 6px 1px; min-width: 18px; text-align: center; line-height: 17px;
}
.u-acct__menu {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  background: #fff; border-radius: 12px; box-shadow: 0 8px 28px rgba(0,0,0,.18), 0 1.5px 4px rgba(0,0,0,.08);
  min-width: 240px; padding: 6px; z-index: 300;
}
.u-acct.is-open .u-acct__menu { display: block; }
.u-acct__head { padding: 10px 12px 8px; }
.u-acct__head-cs { font-family: 'Roboto Condensed', sans-serif; font-size: 16px; font-weight: 700; color: #1a1f36; letter-spacing: .5px; }
.u-acct__head-sub { font-size: 12px; color: #6b7280; margin-top: 1px; }
.u-acct__sep { height: 1px; background: #eef0f3; margin: 5px 8px; }
.u-acct__item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 12px; border-radius: 8px; font-size: 14px; color: #1a1f36;
  background: none; border: none; cursor: pointer; text-align: left; font-family: inherit;
  text-decoration: none; white-space: nowrap;
}
.u-acct__item:hover { background: #f0f7ff; color: #001B46; text-decoration: none; }
.u-acct__item i { font-size: 18px; color: #6b7280; flex-shrink: 0; }
.u-acct__item:hover i { color: #001B46; }
.u-acct__item--danger { color: #dc2626; }
.u-acct__item--danger i { color: #dc2626; }
.u-acct__item--danger:hover { background: #fef2f2; color: #b91c1c; }
.u-acct__item-badge {
  background: #ef4444; color: #fff; font-family: 'Roboto Condensed', Arial, sans-serif; font-size: 11px; font-weight: 700;
  border-radius: 999px; padding: 0 6px; margin-left: auto;
  min-width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center; line-height: 1;
}
.u-hdr-icon-btn--labeled .u-hdr-icon-btn__label { position: static; opacity: 1; }

.u-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.72);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: background .15s, border-color .15s, color .15s;
  text-decoration: none;
}
.u-icon-btn:hover {
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.4);
  color: #fff;
  text-decoration: none;
}
.u-icon-btn i { font-size: 17px; }
.u-icon-btn.is-open {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.45);
  color: #fff;
}

.u-notif-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: #ef4444;
  color: #fff;
  font-family: 'Roboto Condensed', Arial, sans-serif;
  font-size: 10px;
  font-weight: 800;
  padding: 0;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-sizing: border-box;
  border: 1.5px solid #001B46;
  pointer-events: none;
}

.u-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #2d4a7a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: rgba(255,255,255,.9);
  cursor: pointer;
  flex-shrink: 0;
  overflow: hidden;
  font-family: 'Roboto Condensed', monospace;
  letter-spacing: .5px;
  text-decoration: none;
}
.u-avatar:hover { opacity: .8; text-decoration: none; }
.u-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ── アカウントゾーン / コールサインゾーン ── */
.u-topbar__acct-zone {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px;
  min-width: 0;
  flex-shrink: 0;
}
.u-topbar__cs-zone {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px;
  flex-shrink: 0;
}
.u-topbar__zone-sep {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,.18);
  flex-shrink: 0;
  margin: 0 4px;
}
.u-acct-name {
  font-size: 12px;
  color: rgba(255,255,255,.72);
  white-space: nowrap;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.u-cs-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #0f6e56;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: rgba(255,255,255,.9);
  flex-shrink: 0;
  overflow: hidden;
  font-family: 'Roboto Condensed', monospace;
  letter-spacing: .5px;
  cursor: pointer;
}
.u-cs-avatar:hover { opacity: .8; }
.u-cs-avatar img { width: 100%; height: 100%; object-fit: cover; }
.u-cs-switch-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px 4px;
  min-height: 44px;
  cursor: pointer;
}
.u-cs-name {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  letter-spacing: .1em;
  font-family: 'Roboto Condensed', monospace;
}

.u-topbar__user-sep { color: rgba(255,255,255,.18); font-size: 13px; }
.u-topbar__username {
  font-family: 'Roboto Condensed', monospace;
  font-size: 14px;
  font-weight: 800;
  color: rgba(255,255,255,.88);
  text-decoration: none;
  letter-spacing: 1.5px;
}
.u-topbar__username:hover { color: #fff; text-decoration: none; }
.u-logout {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,.42);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: color .15s;
}
.u-logout:hover { color: rgba(255,255,255,.9); text-decoration: none; }

/* 使い方ガイドリンク */
/* アイコン＋ラベル型ヘッダーボタン */
.u-hdr-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: color .15s, background .15s;
  position: relative;
  line-height: 1;
}
.u-hdr-icon-btn i { font-size: 18px; }
.u-hdr-icon-btn__label {
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  color: rgba(255,255,255,.45);
}
.u-hdr-icon-btn:hover { color: #fff; background: rgba(255,255,255,.08); }
.u-hdr-icon-btn:hover .u-hdr-icon-btn__label { color: rgba(255,255,255,.75); }

.u-guide-link {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  white-space: nowrap;
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 20px;
  transition: color .15s, border-color .15s, background .15s;
  margin-right: 4px;
}
.u-guide-link i { font-size: 14px; }
.u-guide-link:hover {
  color: #fff;
  border-color: rgba(255,255,255,.35);
  background: rgba(255,255,255,.07);
  text-decoration: none;
}

/* ハンバーガー（モバイル） */
.u-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 12px;
  min-width: 44px;
  min-height: 44px;
  flex-shrink: 0;
  margin-left: 4px;
}
.u-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,.75);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.u-hamburger--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.u-hamburger--open span:nth-child(2) { opacity: 0; }
.u-hamburger--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── 2段目ナビ ── */
/* 1段統合: navbar は箱を消してナビを上段フレックスに流し込む */
.u-navbar {
  display: contents;
}
.u-nav {
  padding: 0;
  margin: 0 4px 0 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  min-width: 0;
  flex-wrap: nowrap;
}
.u-nav__item { position: relative; }
.u-nav__sep { width: 1px; height: 20px; background: #e2e4e9; margin: 0 4px; align-self: center; flex-shrink: 0; }
.u-nav__vsep { width: 1px; height: 16px; background: rgba(255,255,255,.18); margin: 0 4px; flex-shrink: 0; align-self: center; }
.u-nav__btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 11px;
  height: auto;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,.72);
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  text-decoration: none;
  transition: background .12s, color .12s;
  position: relative;
  letter-spacing: .02em;
}
.u-nav__btn:hover,
.u-nav__item--open .u-nav__btn {
  background: rgba(255,255,255,.12);
  color: #fff;
  text-decoration: none;
}
.u-nav__btn--active { color: #fff !important; }
.u-nav__btn--active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10px;
  right: 10px;
  height: 2px;
  background: #7df9ff;
  border-radius: 1px 1px 0 0;
}
.u-caret { font-size: 9px; opacity: .55; }
.u-nav__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  border: 1.5px solid #004F79;
  position: absolute;
  top: 5px;
  right: 18px;
}
.u-nav__badge {
  background: #ef4444;
  color: #fff;
  font-family: 'Roboto Condensed', Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 0 5px;
  border-radius: 10px;
  min-width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ナビドロップダウン */
.u-nav__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  min-width: 160px;
  padding: 5px;
  margin-top: 5px;
  z-index: 200;
  white-space: nowrap;
}
/* ボタンとパネルの隙間を透明領域で埋め、mouseleaveを防ぐ */
.u-nav__dropdown::before {
  content: '';
  position: absolute;
  top: -13px;
  left: 0;
  right: 0;
  height: 13px;
}
.u-nav__item--open .u-nav__dropdown { display: block; }
.u-nav__dropdown a,
.u-nav__dropdown-disabled {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  font-size: 12.5px;
  border-radius: 6px;
  text-decoration: none;
  transition: background .1s;
}
.u-nav__dropdown a { color: #1a1f36; }
.u-nav__dropdown a:hover { background: #f0f7ff; color: #001B46; text-decoration: none; }
.u-nav__dropdown-disabled { color: #bbb; cursor: default; }
.u-nav__dropdown-sep { height: 1px; background: #f0f0f0; margin: 4px 8px; }
.u-nav__dropdown-section {
  display: block;
  padding: 6px 12px 3px;
  font-size: 10px;
  font-weight: 800;
  color: #9ca3af;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.u-soon {
  font-size: 10px;
  background: #f0f0f0;
  color: #999;
  padding: 1px 6px;
  border-radius: 8px;
  margin-left: auto;
}

/* ── リッチドロップダウン ── */
.u-nav__dropdown--rich {
  min-width: 280px;
  padding: 8px;
  max-height: calc(100vh - 88px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
/* 右端のドロップダウン（その他）は右寄せにして画面外へはみ出さない */
.u-nav__item:last-child .u-nav__dropdown {
  left: auto;
  right: 0;
  transform: none;
}
.u-rich-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: background .12s;
}
.u-rich-item:hover { background: #f0f7ff; text-decoration: none; }
.u-rich-item__ico {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0;
}
.u-rich-item__ico--blue   { background: #dbeafe; color: #2563eb; }
.u-rich-item__ico--green  { background: #d1fae5; color: #059669; }
.u-rich-item__ico--amber  { background: #fef3c7; color: #d97706; }
.u-rich-item__ico--purple { background: #ede9fe; color: #7c3aed; }
.u-rich-item__ico--teal   { background: #ccfbf1; color: #0d9488; }
.u-rich-item__ico--red    { background: #fee2e2; color: #dc2626; }
.u-rich-item__body { flex: 1; min-width: 0; }
.u-rich-sep { font-size: 10px; font-weight: 700; color: #9ca3af; letter-spacing: .08em; text-transform: uppercase; padding: 8px 10px 3px; display: block; }
.u-rich-sep:not(:first-child) { border-top: 1px solid #f0f0f0; margin-top: 4px; }
.u-rich-item__title { font-size: 13px; font-weight: 700; color: #1a1f36; line-height: 1.2; }
.u-rich-item__desc  { font-size: 11px; color: #6b7280; margin-top: 1px; }

/* ── ワッフルパネル ── */
.u-waffle-wrap { position: relative; }
.u-waffle-panel {
  display: none;
  position: absolute;
  top: 100%;
  margin-top: 10px;
  left: 0;
  background: #fff;
  border-radius: 14px;
  padding: 18px 16px 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,.28);
  width: 490px;
  z-index: 300;
}
.u-waffle-panel::before {
  content: '';
  position: absolute;
  top: -18px;
  left: 0;
  right: 0;
  height: 18px;
}
.u-waffle-panel.is-open { display: block; }
.u-waffle-panel__title {
  font-size: 11px;
  font-weight: 800;
  color: #9ca3af;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.u-waffle-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}
.u-waffle-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 6px 10px;
  border-radius: 11px;
  cursor: pointer;
  border: 1.5px solid #e5e7eb;
  transition: border-color .15s, background .15s;
  text-decoration: none;
  position: relative;
  text-align: center;
}
.u-waffle-item:hover { border-color: #93c5fd; background: #f0f7ff; text-decoration: none; }
.u-waffle-item.is-current { border-color: #2563eb; background: #eff6ff; }
.u-waffle-item--dim { opacity: .38; pointer-events: none; }
/* button reset for waffle items that are buttons */
button.u-waffle-item { background: none; font-family: inherit; font-size: inherit; }
/* LOGサブパネル */
.u-waffle-sub { padding: 0; }
.u-waffle-sub__back {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0 10px;
  letter-spacing: .02em;
}
.u-waffle-sub__back:hover { color: #2563eb; }
.u-waffle-sub__header {
  font-size: 12px;
  font-weight: 800;
  color: #374151;
  letter-spacing: .04em;
  padding: 0 0 8px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 4px;
}
.u-waffle-sub__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 6px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  border-radius: 7px;
  transition: background .12s, color .12s;
}
.u-waffle-sub__item:hover { background: #f0f7ff; color: #2563eb; text-decoration: none; }
.u-waffle-sub__sep { border-top: 1px solid #e5e7eb; margin: 6px 0; }
.u-waffle-sub__section {
  font-size: 10px;
  font-weight: 800;
  color: #9ca3af;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 6px 2px;
}
.u-waffle-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.u-waffle-item__icon img {
  height: 26px;
  width: auto;
  display: block;
  max-width: 100%;
}
.u-waffle-item__desc {
  font-size: 10px;
  font-weight: 600;
  color: #6b7280;
  line-height: 1.3;
  letter-spacing: .01em;
}
.u-waffle-item.is-current .u-waffle-item__desc { color: #1d4ed8; }
.u-waffle-item__check {
  position: absolute;
  top: 5px;
  right: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
}
.u-waffle-item__check i { font-size: 9px; color: #fff; }
.u-waffle-soon {
  font-size: 10px;
  color: #9ca3af;
  margin-left: 4px;
  font-weight: 400;
}
.u-waffle-panel__footer {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid #f0f0f0;
  font-size: 11px;
  color: #9ca3af;
  text-align: center;
}

/* ── 通知パネル ── */
.u-notif-wrap { position: relative; }
.u-notif-panel {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,.22);
  z-index: 300;
  overflow: hidden;
}
.u-notif-panel.is-open { display: block; }
.u-notif-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 8px;
  border-bottom: 1px solid #f0f0f0;
}
.u-notif-panel__title { font-size: 13px; font-weight: 800; color: #1a1f36; }
.u-notif-panel__readall {
  font-size: 11px;
  font-weight: 700;
  color: #2563eb;
  background: none;
  border: none;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 5px;
}
.u-notif-panel__readall:hover { background: #f0f7ff; }
.u-notif-panel__list { max-height: 380px; overflow-y: auto; }
.u-notif-panel__loading { padding: 24px; text-align: center; font-size: 12px; color: #9ca3af; }
.u-notif-panel__empty { padding: 32px 16px; text-align: center; font-size: 12px; color: #9ca3af; }
.u-notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid #f8f8f8;
  cursor: pointer;
  transition: background .1s;
  text-decoration: none;
}
.u-notif-item:last-child { border-bottom: none; }
.u-notif-item:hover { background: #f7f9ff; text-decoration: none; }
.u-notif-item--unread { background: #fafbff; }
.u-notif-item__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.u-notif-item__body { flex: 1; min-width: 0; }
.u-notif-item__msg { font-size: 12px; color: #1a1f36; line-height: 1.45; }
.u-notif-item__msg strong { font-weight: 700; font-family: 'Roboto Condensed', monospace; letter-spacing: .04em; }
.u-notif-item__time { font-size: 10px; color: #9ca3af; margin-top: 3px; }
.u-notif-item__dot { width: 7px; height: 7px; border-radius: 50%; background: #ef4444; flex-shrink: 0; margin-top: 6px; }

/* ── モバイル (≤900px) ── */
@media (max-width: 900px) {
  .u-hamburger { display: flex; }
  .u-guide-link { display: none; }
  .u-topbar__actions-group { display: none; }
  .u-topbar__username { display: none; }
  .u-topbar__user-sep { display: none; }
  .u-logout { display: none; }
  .u-topbar__acct-zone { display: none; }
  .u-topbar__zone-sep { display: none; }
  .u-acct-name { display: none; }
  .u-nav__mobile-acct { display: block !important; }
  .u-navbar { display: contents; min-height: 0; background: none; }
  .u-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #001B46;
    flex-direction: column;
    align-items: stretch;
    padding: 6px 8px 16px;
    z-index: 200;
    box-shadow: 0 8px 16px rgba(0,0,0,.4);
    max-height: 80vh;
    overflow-y: auto;
  }
  .u-nav.is-open { display: flex; }
  .u-nav__item { width: 100%; }
  .u-nav__btn { width: 100%; justify-content: space-between; color: rgba(255,255,255,.85); border-radius: 8px; height: auto; padding: 10px 12px; }
  .u-nav__btn--active::after { display: none; }
  .u-nav__btn--active { background: rgba(255,255,255,.1) !important; }
  .u-nav__dropdown {
    display: none;
    position: static;
    transform: none;
    background: rgba(255,255,255,.06);
    border-radius: 6px;
    box-shadow: none;
    margin: 2px 0 4px;
    padding: 2px 4px;
  }
  .u-nav__item--open .u-nav__dropdown { display: block; }
  .u-nav__dropdown a,
  .u-nav__dropdown-disabled { color: rgba(255,255,255,.7); font-size: 12.5px; padding: 6px 12px; }
  .u-nav__dropdown a:hover { background: rgba(255,255,255,.08); color: #fff; }
  .u-nav__dropdown-sep { background: rgba(255,255,255,.1); }
  .u-soon { background: rgba(255,255,255,.1); color: rgba(255,255,255,.4); }
  .u-waffle-panel { width: calc(100vw - 32px); left: 0; }
  .u-waffle-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
  .u-topbar { padding: 0 12px; }
  .u-svc-switch span { display: none; }
  .u-topbar__right { gap: 6px; }
  /* アイコンボタン群はモバイルメニューでカバーするため非表示 */
  .u-hdr-icon-btn { display: none; }
  .u-notif-wrap { display: none; }
  /* コールサインゾーンはアバターのみ表示（テキストは非表示） */
  .u-cs-name { display: none; }
  .u-topbar__user-sep { display: none; }
  .u-cs-switch-trigger svg { display: none; }
}

/* ================================================================
   グローバル入力フィールド共通スタイル
================================================================ */
input[type=text],
input[type=email],
input[type=password],
input[type=number],
input[type=search],
input[type=tel],
input[type=url],
select,
textarea {
  border: 1.5px solid #d1d5db;
  border-radius: var(--hl-r-md);
  padding: var(--hl-pd-input);
  font-size: 16px;
  font-family: 'Roboto Condensed', 'Noto Sans JP', sans-serif;
  background: #fff;
  color: #1a1f36;
  min-height: 38px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color .15s, box-shadow .15s;
}
select {
  padding-top: 8px;
  padding-bottom: 8px;
  line-height: 1.4;
}
textarea {
  height: auto;
  resize: vertical;
}
input[type=text]::placeholder,
input[type=email]::placeholder,
input[type=search]::placeholder,
input[type=tel]::placeholder,
textarea::placeholder {
  color: var(--hl-placeholder-color);
}
input[type=text]:focus,
input[type=email]:focus,
input[type=password]:focus,
input[type=number]:focus,
input[type=search]:focus,
input[type=tel]:focus,
input[type=url]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--hl-bc-focus);
  box-shadow: 0 0 0 3px rgba(37,99,235,.08);
  background: #fffef5;
}

/* ── DXCC / Award Hunter ─────────────────────── */
.dxcc-select {
  width: auto !important;
  min-width: 110px;
  min-height: auto !important;
  font-size: 13px !important;
  padding: 5px 10px !important;
}
.dxcc-filter-row {
  display: flex !important;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.dxcc-cont-grid {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  gap: 10px;
  margin-bottom: 24px;
}
.dxcc-two-col {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important;
  gap: 20px;
}
@media (max-width: 900px) {
  .dxcc-cont-grid { grid-template-columns: repeat(4, 1fr) !important; }
  .dxcc-two-col   { grid-template-columns: 1fr !important; }
}

/* ── アワード達成バッジ ── */
@keyframes award-gold-glow {
  0%,100% { box-shadow: 0 0 8px rgba(255,215,0,.5), 0 0 24px rgba(255,165,0,.25); }
  50%      { box-shadow: 0 0 20px rgba(255,215,0,.95), 0 0 50px rgba(255,165,0,.55); }
}
@keyframes award-gold-shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.award-achieved-badge {
  position: absolute;
  bottom: 20px;
  left: 32px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(90deg, #b8860b 0%, #ffd700 30%, #fff5a0 50%, #ffd700 70%, #b8860b 100%);
  background-size: 250% auto;
  animation: award-gold-shimmer 3s linear infinite, award-gold-glow 2s ease-in-out infinite;
  border-radius: 28px;
  padding: 9px 22px;
  border: 1.5px solid rgba(255,215,0,.7);
  z-index: 2;
}
.award-achieved-badge__icon { font-size: 20px; }
.award-achieved-badge__text {
  font-size: 15px;
  font-weight: 800;
  color: #3d2000;
  letter-spacing: .04em;
}

/* ── 達成メダル画像グロー ── */
.medal-achieved-img {
  display: block;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,.6)) drop-shadow(0 2px 6px rgba(0,0,0,.4));
}

/* ── ドロップダウン 配下リンク（タブへのショートカット） ── */
.u-rich-sub-group { padding: 2px 0 2px; }
.u-rich-subitem { display:flex;align-items:center;gap:7px;padding:5px 10px 5px 20px;border-radius:8px;text-decoration:none;color:#374151;font-size:12px;transition:background .12s;line-height:1.3; }
.u-rich-subitem:hover { background:#f0f7ff;text-decoration:none; }
.u-rich-subitem::before { content:'';display:inline-block;width:12px;height:1px;background:#d1d5db;flex-shrink:0; }
.u-rich-subitem i { font-size:13px;color:#9ca3af;flex-shrink:0; }

/* ── ページタイトルアイコン（ドロップダウンと統一） ── */
.pg-ico { display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:10px;font-size:18px;flex-shrink:0; }
.pg-ico--blue   { background:#dbeafe;color:#2563eb; }
.pg-ico--green  { background:#d1fae5;color:#059669; }
.pg-ico--amber  { background:#fef3c7;color:#d97706; }
.pg-ico--purple { background:#ede9fe;color:#7c3aed; }
.pg-ico--teal   { background:#ccfbf1;color:#0d9488; }

/* ================================================================
   スマートフォン専用ナビゲーション (≤767px)
================================================================ */

/* ── PC版ヘッダーを767px以下で非表示 ── */
@media (max-width: 767px) {
  .u-header { display: none; }
}

/* ── スマホヘッダー ── */
.sp-header {
  display: none;
}
@media (max-width: 767px) {
  .sp-header {
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 200;
    background: #0A2A5E;
    height: 56px;
    padding: 0 12px;
    gap: 0;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
  }
}
.sp-header__logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.sp-header__logo svg {
  height: 36px;
  width: auto;
}
/* ロゴの文字部分（.lqsl-logo-3）は元々#fff なので白ヘッダー上でそのまま表示 */
.sp-header__cs-trigger {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  color: #fff;
  font-family: 'Roboto Condensed', monospace;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 5px 10px;
  cursor: pointer;
  margin: 0 10px;
  min-height: 36px;
  max-width: 160px;
  overflow: hidden;
}
.sp-header__cs-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sp-header__right {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-left: auto;
}
.sp-header__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  border-radius: 8px;
  color: rgba(255,255,255,.85);
  cursor: pointer;
  position: relative;
  text-decoration: none;
  font-size: 20px;
}
.sp-header__icon-btn:hover { background: rgba(255,255,255,.1); }
.sp-header__badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}
.sp-header__acct-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.3);
  overflow: hidden;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sp-header__acct-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ── ボトムナビ ── */
.sp-bottom-nav {
  display: none;
}
@media (max-width: 767px) {
  .sp-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: #1a1f36;
    border-top: 1px solid rgba(255,255,255,.08);
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -4px 16px rgba(0,0,0,.3);
  }
}
.sp-bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 4px;
  min-height: 56px;
  color: rgba(255,255,255,.5);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  transition: color .15s;
  -webkit-tap-highlight-color: transparent;
}
.sp-bottom-nav__item svg { width: 22px; height: 22px; flex-shrink: 0; }
.sp-bottom-nav__item--active { color: #fff; }
.sp-bottom-nav__item--active::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 15%;
  right: 15%;
  height: 4px;
  background: #ef4444;
  border-radius: 2px 2px 0 0;
}
.sp-bottom-nav__badge {
  position: absolute;
  top: 6px;
  right: calc(50% - 18px);
  min-width: 16px;
  height: 16px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

/* ── ページ共通: スマホ時のボトムナビ分余白 ── */
@media (max-width: 767px) {
  body {
    padding-bottom: calc(56px + env(safe-area-inset-bottom));
  }
}

/* ── 「その他」フルスクリーンメニュー ── */
.sp-fullmenu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #f8f9fb;
  flex-direction: column;
  overflow: hidden;
}
.sp-fullmenu.is-open { display: flex; }
.sp-fullmenu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 56px;
  background: #0A2A5E;
  color: #fff;
  flex-shrink: 0;
}
.sp-fullmenu__head-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .04em;
}
.sp-fullmenu__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  color: rgba(255,255,255,.8);
  cursor: pointer;
  font-size: 22px;
  border-radius: 8px;
}
.sp-fullmenu__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 16px calc(env(safe-area-inset-bottom) + 16px);
}
.sp-fullmenu__section { margin-bottom: 20px; }
.sp-fullmenu__section-title {
  font-size: 11px;
  font-weight: 700;
  color: #9ca3af;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  padding-left: 4px;
}
/* 主要機能: 2列グリッド */
.sp-fullmenu__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.sp-fullmenu__grid-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 14px 14px 12px;
  background: #fff;
  border: 1px solid #e2e4e9;
  border-radius: 12px;
  text-decoration: none;
  color: #1a1f36;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.sp-fullmenu__grid-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.sp-fullmenu__grid-label {
  font-size: 13px;
  font-weight: 700;
  color: #1a1f36;
}
.sp-fullmenu__grid-sub {
  font-size: 11px;
  color: #6b7280;
  margin-top: -2px;
}
/* 設定・サポート: 縦リスト */
.sp-fullmenu__list { background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid #e2e4e9; }
.sp-fullmenu__list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  color: #1a1f36;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid #f3f4f6;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.sp-fullmenu__list-item:last-child { border-bottom: none; }
.sp-fullmenu__list-item i { font-size: 18px; color: #6b7280; flex-shrink: 0; width: 20px; text-align: center; }
.sp-fullmenu__list-item--danger { color: #dc2626; }
.sp-fullmenu__list-item--danger i { color: #dc2626; }
.sp-fullmenu__list-chevron { margin-left: auto; color: #d1d5db; font-size: 14px; }

/* ── コールサイン切替ボトムシート ── */
.sp-cs-sheet {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 310;
}
.sp-cs-sheet.is-open { display: block; }
.sp-cs-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.4);
}
.sp-cs-sheet__panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding-bottom: env(safe-area-inset-bottom);
  max-height: 70vh;
  overflow-y: auto;
}
.sp-cs-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid #f3f4f6;
}
.sp-cs-sheet__title {
  font-size: 14px;
  font-weight: 700;
  color: #1a1f36;
}
.sp-cs-sheet__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #f3f4f6;
  border: none;
  border-radius: 50%;
  color: #6b7280;
  font-size: 16px;
  cursor: pointer;
}
.sp-cs-sheet__list { padding: 8px 16px; }
.sp-cs-sheet__btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 6px;
  border-radius: 10px;
  border: 1.5px solid #e2e4e9;
  background: #fff;
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.sp-cs-sheet__btn--active {
  border-color: #2563eb;
  background: #eff6ff;
}
.sp-cs-sheet__call {
  font-family: 'Roboto Condensed', monospace;
  font-size: 16px;
  font-weight: 700;
  color: #1a1f36;
  flex: 1;
}
.sp-cs-sheet__btn--active .sp-cs-sheet__call { color: #2563eb; }
.sp-cs-sheet__manage {
  display: block;
  text-align: center;
  padding: 14px;
  font-size: 13px;
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
  border-top: 1px solid #f3f4f6;
}

/* ── スクロールロック ── */
body.sp-menu-open { overflow: hidden; }
.pg-ico--red    { background:#fee2e2;color:#dc2626; }

/* ── LOG ポップアップメニュー ── */
.sp-log-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 310;
}
.sp-log-popup.is-open { display: block; }
.sp-log-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.4);
}
.sp-log-popup__panel {
  position: absolute;
  bottom: calc(56px + env(safe-area-inset-bottom));
  left: 0;
  right: 0;
  max-height: calc(100dvh - 56px - env(safe-area-inset-bottom) - 24px);
  background: #fff;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.sp-log-popup__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 12px;
  border-bottom: 1px solid #f3f4f6;
  flex-shrink: 0;
}
.sp-log-popup__title {
  font-size: 14px;
  font-weight: 700;
  color: #1a1f36;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sp-log-popup__list {
  padding: 8px 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.sp-log-popup__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  text-decoration: none;
  color: #1a1f36;
  border-bottom: 1px solid #f9fafb;
}
.sp-log-popup__item:last-child { border-bottom: none; }
.sp-log-popup__ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.sp-log-popup__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sp-log-popup__name { font-size: 14px; font-weight: 700; }
.sp-log-popup__desc { font-size: 12px; color: #6b7280; }
.sp-log-popup__sep {
  font-size: 11px;
  font-weight: 700;
  color: #9ca3af;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 8px 16px 4px;
  background: #f9fafb;
}

/* ── DXCC ── */
@media (max-width: 767px) {
  .udb-dxcc-head__pct { display:none; }
}

@media (max-width: 767px) {
  .dxcc-cont-grid { grid-template-columns:repeat(3, 1fr) !important; gap:8px !important; }
  .dxcc-cont-card { padding:10px 6px !important; }
  .dxcc-cont-card__name { font-size:11px !important; }
  .dxcc-cont-card__count { font-size:22px !important; margin:2px 0 !important; }
  .dxcc-cont-card__pct { font-size:12px !important; }
}
