* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  user-select: none;
  background: linear-gradient(135deg, #020617, #1e1b4b, #3b0764, #020617);
  background-size: 250% 250%;
  animation: gradientShift 14s ease infinite;
  position: relative;
  color: #ffffff;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 動的な背景グローとオーブ */
.orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.orb-1 {
  top: -120px;
  left: -120px;
  width: 620px;
  height: 620px;
  background: rgba(37, 99, 235, 0.22);
  filter: blur(140px);
}

.orb-2 {
  bottom: -120px;
  right: -120px;
  width: 680px;
  height: 680px;
  background: rgba(147, 51, 234, 0.22);
  filter: blur(150px);
}

.orb-3 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 720px;
  height: 720px;
  background: rgba(139, 92, 246, 0.18);
  filter: blur(160px);
}

#mouse-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  transition: background 0.1s ease-out;
}

/* ヘッダー領域 */
header {
  position: relative;
  z-index: 30;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 20px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-text {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.btn-login {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-login:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.user-profile {
  display: none;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  padding: 4px 14px 4px 6px;
  border-radius: 9999px;
  font-size: 13px;
  color: #ffffff;
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.btn-logout {
  background: transparent;
  border: none;
  color: #fda4af;
  cursor: pointer;
  font-size: 12px;
  margin-left: 4px;
}

.btn-logout:hover {
  color: #f43f5e;
  text-decoration: underline;
}

/* メインコンテナレイアウト */
.main-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 12px 20px 60px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* 開発のお知らせカード */
.announcement-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.badge {
  display: inline-block;
  background: linear-gradient(90deg, #6366f1, #a855f7);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 10px;
}

.announcement-card h2 {
  font-size: 1.45rem;
  margin-bottom: 10px;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.3;
}

.announcement-card p {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* コマンド センター バナー (管理者アカウントのみ) */
#center-banner-container {
  display: none; /* JS で許可チェック後に flex に切り替え */
  width: 100%;
  justify-content: center;
}

.banner-link {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-decoration: none;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(129, 140, 248, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 18px 24px;
  border-radius: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.banner-link:hover {
  transform: translateY(-2px);
  border-color: rgba(129, 140, 248, 0.8);
  box-shadow: 0 12px 35px rgba(99, 102, 241, 0.3);
}

.terminal-icon {
  width: 44px;
  height: 44px;
  background: rgba(99, 102, 241, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: monospace;
  font-size: 20px;
  color: #c7d2fe;
  flex-shrink: 0;
}

.banner-text-tag {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: #a5b4fc;
}

.banner-url {
  font-family: monospace;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

/* リンク グリッド セクション */
.links-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #e2e8f0;
  letter-spacing: 0.05em;
  text-align: center;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  text-decoration: none;
  color: #ffffff !important;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.link-card:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.link-card .icon {
  font-size: 18px;
  line-height: 1;
}

.link-card .label {
  font-weight: 600;
  font-size: 0.95rem;
  color: #ffffff;
}

.card-text {
  display: flex;
  flex-direction: column;
}

.card-text .sub-label {
  font-size: 10px;
  color: #94a3b8;
}

/* モーダル ウィンドウ */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 50;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-card {
  width: 100%;
  max-width: 480px;
  background: rgba(23, 23, 28, 0.95);
  border: 1px solid rgba(244, 63, 94, 0.4);
  border-radius: 20px;
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
  font-size: 14px;
  font-weight: 700;
  color: #fecdd3;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}

.modal-body {
  padding: 20px;
  font-size: 13px;
  color: #e2e8f0;
}

.modal-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 12px;
  padding: 14px;
  margin: 16px 0;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e11d48;
  color: #ffffff;
  font-size: 11px;
  font-weight: bold;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.btn-primary {
  background: #e11d48;
  color: #ffffff;
  text-decoration: none;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 12px;
  cursor: pointer;
}
