@font-face {
  font-family: 'LightNovelPOP';
  src: url('file/font/LightNovelPOPv2.otf') format('opentype');
}

/* ──────────────────────────────────────────────
   🌌 ベース & 変数定義（一括管理用）
   ────────────────────────────────────────────── */
:root {
  /* メインカラー：近未来的なグラデーション */
  --clr-primary: #00d2ff;      /* ターコイズブルー */
  --clr-secondary: #3a47ff;    /* ネオンブルー */
  --clr-accent: #ff0055;       /* アクセント（ピンク/赤） */
  --clr-status-on: #0f0;       /* オンライン */
  --clr-status-off: #f33;      /* オフライン */

  /* 背景色：より深く、少し青みのある黒 */
  --bg-base: #05080a;
  --bg-panel: rgba(20, 30, 40, 0.6); /* ガラス用透過背景 */
  --bg-card: rgba(10, 15, 20, 0.8);

  /* テキスト色 */
  --text-main: #e0f0f5;
  --text-sub: #a0b0b5;

  /* フォント */
  --font-family: 'LightNovelPOP', sans-serif;
  
  /* エフェクト */
  --glitch-shadow: 2px 0 var(--clr-accent), -2px 0 var(--clr-primary);
  --neon-glow: 0 0 10px rgba(0, 210, 255, 0.7), 0 0 20px rgba(0, 210, 255, 0.3);
}

/* ベースリセット */
* {
  margin: 0; padding: 0; box-sizing: border-box;
}

/* * 💡 背景にSFチックな六角形パターンを追加 
 * (画像がない場合は無視されますが、CSSだけでも近未来的なグラデーションにします)
 */
body {
  font-family: var(--font-family) !important;
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--bg-base);
  /* * CSSのみで薄いグリッドとグラデーションの背景を作る
   */
  background-image: 
    linear-gradient(rgba(0, 210, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 210, 255, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, #102030 0%, #05080a 100%);
  background-size: 30px 30px, 30px 30px, 100% 100%;
  color: var(--text-main);
  margin: 0;
  padding-top: 130px; /* header + nav の高さ */
}

main {
  max-width: 1600px;
  margin: 0 auto;
  padding: 20px;
}

/* スムーズスクロール */
html {
  scroll-behavior: smooth;
}

/* ──────────────────────────────────────────────
   ✨ 共通コンポーネント
   ────────────────────────────────────────────── */

/* H2タイトル：下線から、枠で囲むSF UI風デザインへ */
.h2-1, section h2 {
  font-size: 2rem;
  color: #fff;
  padding: 10px 20px;
  margin-bottom: 2rem;
  display: inline-flex;
  align-items: center;
  position: relative;
  text-shadow: var(--neon-glow);
  letter-spacing: 0.1em;
}

/* タイトルの装飾（角のブラケット） */
.h2-1::before, section h2::before,
.h2-1::after, section h2::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 100%;
  border: 2px solid var(--clr-primary);
}

.h2-1::before, section h2::before {
  top: 0; left: 0;
  border-right: none;
}

.h2-1::after, section h2::after {
  top: 0; right: 0;
  border-left: none;
}

/* * 🧪 共通カードスタイル：全面的に書き換え
 * ガラスモルフィズム＋ホバー時に光が走るエフェクト
 */
.card {
  background: var(--bg-card);
  border-radius: 4px; /* SFっぽく角を少し鋭角に */
  color: var(--text-main);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  border: 1px solid rgba(0, 210, 255, 0.2);
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* ホバー時にわずかに青く光る層 */
.card::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 210, 255, 0.1), transparent);
  transition: 0.5s;
}

.card:hover, .card:focus {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--clr-primary);
  box-shadow: 0 10px 30px rgba(0, 210, 255, 0.3);
  outline: none;
}

.card:hover::before {
  left: 100%;
}

/* ──────────────────────────────────────────────
   📡 ヘッダー & ナビゲーション（ガラスモルフィズム強化）
   ────────────────────────────────────────────── */

header {
  position: fixed;
  top: 0; left: 0; right: 0;
  /* 青グラデから、ダークなガラス素材へ */
  background: var(--bg-panel);
  backdrop-filter: blur(15px); /* ブラーを強化 */
  -webkit-backdrop-filter: blur(15px);
  padding: 0.8rem 1.5rem;
  border-bottom: 1px solid rgba(0, 210, 255, 0.3);
  z-index: 1100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 15px;
  max-width: 100%;
  margin: 0;
  justify-content: flex-start;
}

.header-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px var(--clr-primary)); /* アイコンも光らせる */
}

header h1 {
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0;
  text-shadow: var(--neon-glow);
  letter-spacing: 0.05em;
}

/* ナビゲーション：ヘッダーと一体化させる */
nav {
  position: fixed;
  top: 68px; /* headerの下 */
  left: 0; right: 0;
  background: rgba(5, 8, 10, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  justify-content: center; /* 中央寄せに変更して見栄え良く */
  padding: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 210, 255, 0.2);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

nav a {
  color: var(--text-sub);
  text-decoration: none;
  padding: 1rem 1.5rem;
  font-weight: 600;
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.3s;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

/* スクロールバーのデザイン（細くサイバーに） */
nav::-webkit-scrollbar { height: 3px; }
nav::-webkit-scrollbar-thumb { background: var(--clr-primary); }

/* ホバー・カレント表示：下線をグラデーションに */
nav a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--clr-secondary), var(--clr-primary), var(--clr-secondary));
  transition: width 0.3s ease;
  box-shadow: 0 0 10px var(--clr-primary);
}

nav a:hover, nav a:focus {
  color: #fff;
  background: rgba(0, 210, 255, 0.05);
  outline: none;
}

nav a:hover::after, nav a:focus::after {
  width: 80%;
}

/* ──────────────────────────────────────────────
   🖥 各セクション共通
   ────────────────────────────────────────────── */
section {
  padding: 60px 20px;
  max-width: 1400px;
  margin: 0 auto 40px;
  border-bottom: 1px solid rgba(0, 210, 255, 0.1);
  position: relative;
}

/* ──────────────────────────────────────────────
   👾 サーバーリスト (Server List)
   ────────────────────────────────────────────── */
.server-list {
  display: grid;
  /* レスポンシブなグリッド：最小280px */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 2rem;
}

.server-card {
  composes: card;
  width: 100%;
  max-width: none; /* グリッドで管理するため解除 */
  display: flex;
  flex-direction: column;
}

.server-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  /* 画像下部を斜めにカットしてSF感を出す */
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
  border-bottom: none;
}

.server-info {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.5) 100%);
}

.server-info h3 {
  margin-bottom: 10px;
  font-size: 1.4rem;
  color: #fff;
  text-shadow: var(--neon-glow);
}

.server-info p {
  font-size: 0.95rem;
  color: var(--text-sub);
  line-height: 1.5;
  margin-bottom: 15px;
}

/* ステータス部分を下に固定 */
.server-status {
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--text-sub);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 10px;
}

.status-icon {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px; /* 丸から四角へ */
  margin-right: 8px;
  vertical-align: middle;
  background: #555;
  position: relative;
}

/* オンライン：脈動するアニメーションを追加 */
.status-icon.online {
  background: var(--clr-status-on);
  box-shadow: 0 0 10px var(--clr-status-on);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(0, 255, 0, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(0, 255, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 255, 0, 0); }
}

.status-icon.offline {
  background: var(--clr-status-off);
  box-shadow: 0 0 10px var(--clr-status-off);
}

/* ──────────────────────────────────────────────
   👥 運営紹介 (Admins)
   ────────────────────────────────────────────── */
#admins {
  background: relative;
}

.admin-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.admin-card {
  composes: card;
  width: 100%;
  max-width: none;
  padding: 30px;
  text-align: center;
  /* 少しだけ背景を明るくして浮かせる */
  background: rgba(20, 30, 40, 0.9);
}

.admin-icon {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  /* 2色のネオンボーダー */
  border: 3px solid transparent;
  background-image: linear-gradient(var(--bg-card), var(--bg-card)), 
                    linear-gradient(135deg, var(--clr-primary), var(--clr-secondary));
  background-origin: border-box;
  background-clip: content-box, border-box;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.5);
  transition: transform 0.3s;
}

.admin-card:hover .admin-icon {
  transform: rotate(5deg) scale(1.1);
}

.admin-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  text-shadow: var(--neon-glow);
}

.admin-description {
  font-size: 1rem;
  color: var(--text-sub);
  line-height: 1.6;
  margin-bottom: 20px;
  min-height: auto; /* 高度固定を解除 */
}

/* SNSボタン：ネオン風アウトライン */
.admin-socials {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.admin-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  border: 1px solid var(--clr-primary);
  border-radius: 4px;
  width: 40px;
  height: 40px;
  color: var(--clr-primary);
  transition: all 0.3s;
  text-decoration: none;
  box-shadow: inset 0 0 5px rgba(0, 210, 255, 0.2);
}

.admin-socials a:hover {
  background-color: var(--clr-primary);
  color: var(--bg-base);
  box-shadow: 0 0 15px var(--clr-primary);
  transform: translateY(-3px);
}

/* ──────────────────────────────────────────────
   📜 コマンド一覧 (Commands) - UI風に大幅刷新
   ────────────────────────────────────────────── */
.command-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  width: 100%;
}

.command-card {
  width: 100%;
  max-width: none;
  padding: 0; /* paddingを解除してヘッダーを作る */
  border: 1px solid rgba(0, 210, 255, 0.15);
  background: rgba(10, 15, 20, 0.6);
}

/* コマンドカードの上部ヘッダー（OSのウィンドウ風） */
.command-name-wrapper {
  background: rgba(0, 210, 255, 0.1);
  padding: 10px 15px;
  border-bottom: 1px solid rgba(0, 210, 255, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.command-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-primary);
  margin-bottom: 0;
  text-shadow: 0 0 5px var(--clr-primary);
  border-bottom: none; /* 古い下線を消す */
  padding-bottom: 0;
  font-family: monospace; /* コマンドっぽく等幅フォント */
}

.command-name::before {
  content: "> "; /* プロンプト風装飾 */
  opacity: 0.7;
}

.command-servers {
  font-size: 0.8rem;
  color: var(--bg-base);
  background: var(--clr-primary); /* オレンジからメインカラーへ */
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 2px;
  box-shadow: 0 0 5px var(--clr-primary);
}

/* コマンド説明：ターミナル風 */
.command-description {
  font-size: 0.9rem;
  color: var(--text-sub);
  line-height: 1.5;
  padding: 15px; /* ここでパディングを入れる */
  font-family: monospace;
}

/* ──────────────────────────────────────────────
   🛠 フッター (Footer) - 深海の底のようなイメージ
   ────────────────────────────────────────────── */
footer {
  background: linear-gradient(to top, #000, #05080a);
  color: var(--text-sub);
  text-align: center;
  padding: 3rem 1rem;
  font-size: 0.9rem;
  border-top: 1px solid rgba(0, 210, 255, 0.2);
  margin-top: 60px;
  position: relative;
  overflow: hidden;
}

/* 光のアクセントを青〜紫のグラデに */
footer::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(58, 71, 255, 0.1), transparent 60%);
  animation: glow 15s linear infinite; /* 少しゆっくりに */
  z-index: 0;
}

.footer-inner {
  position: relative;
  z-index: 1;
}

footer small {
  display: block;
  font-size: 0.8rem;
  color: #607075;
  letter-spacing: 0.05em;
}

footer a {
  color: var(--clr-primary);
  text-decoration: none;
  font-weight: bold;
  transition: all 0.2s ease;
}
footer a:hover {
  color: #fff;
  text-shadow: var(--neon-glow);
}

/* ──────────────────────────────────────────────
   📱 レスポンシブ調整（スマホ対応もしっかり継続）
   ────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    /* スマホでは文字を少しだけ明るく */
    --text-main: #fff;
  }

  body {
    padding-top: 120px; /* ヘッダーが少し縮む分調整 */
  }

  main {
    padding: 10px;
  }

  header {
    padding: 0.6rem 1rem;
  }

  header h1 {
    font-size: 1.3rem;
  }

  nav {
    top: 61px;
    justify-content: flex-start; /* スマホでは左寄せでスクロール */
  }

  nav a {
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
  }

  section {
    padding: 40px 15px;
  }

  .h2-1, section h2 {
    font-size: 1.5rem;
    padding: 8px 15px;
  }

  .command-card {
    /* スマホでは少しコンパクトに */
  }
}

/* 横幅が狭いスマホ用 */
@media (max-width: 400px) {
  .header-inner {
    gap: 8px;
  }
  .header-icon {
    width: 28px; height: 28px;
  }
  header h1 {
    font-size: 1.1rem;
  }
  
  .command-name-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  .command-servers {
    align-self: flex-end; /* サーバー名は右下に */
  }
}