/* ===== ドロップダウンナビ ===== */

.nav-has-dropdown {
  position: relative;
}

.nav-dropdown-btn {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  font-size: 14px;
  letter-spacing: 0.08em;
  cursor: pointer;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  color: rgba(184, 196, 216, 0.9);
  transition: color 0.2s;
}

.nav-dropdown-btn:hover {
  color: rgba(201, 168, 76, 0.9);
}

.nav-arrow {
  font-size: 10px;
  transition: transform 0.25s;
}

.nav-has-dropdown.open > .nav-dropdown-btn .nav-arrow {
  transform: rotate(180deg);
}

/* ドロップダウンメニュー本体 */
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 160px;
  background: rgba(10, 6, 24, 0.97);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 10px;
  padding: 8px 0;
  list-style: none;
  margin: 0;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
}

.nav-dropdown-right {
  left: auto;
  right: 0;
}

.nav-has-dropdown.open > .nav-dropdown {
  display: block;
}

.nav-dropdown li a {
  display: block;
  padding: 8px 18px;
  font-size: 13px;
  color: rgba(184, 196, 216, 0.85);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.nav-dropdown li a:hover {
  background: rgba(201, 168, 76, 0.1);
  color: rgba(201, 168, 76, 0.95);
}

/* ポイント表示行 */
.nav-dropdown-points {
  padding: 6px 18px 8px;
  font-size: 12px;
  color: rgba(201, 168, 76, 0.7);
  border-bottom: 1px solid rgba(201, 168, 76, 0.12);
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}

/* ユーザーボタン */
.nav-user-btn {
  gap: 6px;
}

.nav-level {
  background: linear-gradient(135deg, rgba(201,168,76,0.3), rgba(201,168,76,0.1));
  border: 1px solid rgba(201,168,76,0.45);
  color: rgba(201, 168, 76, 0.95);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 20px;
}

.nav-username-short {
  font-size: 13px;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ログイン・会員登録 */
.nav-login-link {
  font-size: 13px;
  padding: 4px 10px !important;
}

.nav-register-link {
  font-size: 13px;
  padding: 4px 12px !important;
  background: linear-gradient(135deg, rgba(201,168,76,0.2), rgba(201,168,76,0.08));
  border: 1px solid rgba(201,168,76,0.4) !important;
  border-radius: 20px;
  color: rgba(201, 168, 76, 0.9) !important;
}

/* ===== モバイル（ハンバーガー展開時） ===== */
@media (max-width: 768px) {
  .nav-dropdown {
    position: static;
    border: none;
    border-radius: 0;
    background: rgba(201, 168, 76, 0.04);
    box-shadow: none;
    border-left: 2px solid rgba(201, 168, 76, 0.2);
    margin: 4px 0 4px 12px;
    padding: 4px 0;
    backdrop-filter: none;
  }

  .nav-dropdown-btn {
    width: 100%;
    padding: 8px 16px;
  }
}
