/*homepage*/
/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1f2937; /* ダークグレー */
  padding: 1rem 2rem;
  border-bottom: 1px solid #374151;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar .logo-img {
  height: 40px;
  border-radius: 10%;
}

.navbar .links {
  display: flex;
  gap: 1.5rem;
}

.navbar .link {
  font-weight: 500;
  color: #d1d5db;
}
.navbar .link:hover {
  color: #3b82f6;
}

.navbar-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* Discordアイコンのサイズと色 */
.navbar-center .discord-link svg {
    width: 30px;
    height: 30px;
    color: #ffffff; /* デフォルト白色 */
    transition: color 0.3s, transform 0.3s; /* 色と拡大をアニメーション */
}

/* ホバー時 */
.discord-link:hover svg {
    transform: scale(1.2);       /* 拡大 */
    color: #7289da;              /* ホバー時にDiscordブルーに変更 */
}

/* ハンバーガー関連 */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #fff;
  display: block;
}

/* プルダウンメニュー */
.dropdown-links {
  display: none;
  flex-direction: column;
  background: #1f2937;
  position: absolute;
  top: 100%;
  right: 1rem; /* 右寄せ */
  border: 1px solid #374151;
  border-radius: 5px;
  overflow: hidden;
  z-index: 1000;
}

.dropdown-links a {
  padding: 0.75rem 1.5rem;
  color: #d1d5db;
  text-decoration: none;
}

.dropdown-links a:hover {
  background: #374151;
  color: #3b82f6;
}

/* Hero Section */
#header {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  color: white;
  text-align: center;
  overflow: hidden;
}

.bg-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
}

#header::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.55); /* 半透明オーバーレイ */
  z-index: 1;
}

#header .content {
  position: relative; /* オーバーレイより前面 */
  z-index: 2;
  max-width: 900px;
  padding: 2rem;
}

#header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #f9fafb;
}

#header p {
  font-size: 1.1rem;
  color: #e5e7eb;
}

.pc_hid{
    display: none;
}

.pc_tab_hid{
    display: none;
}

/* サーバー統計表示 */
.server-stats {
  display: flex;
  justify-content: center; /* 中央揃え */
  align-items: center;
  gap: 2rem; /* 2つの間隔 */
  margin-top: 1.5rem;
  transform: translateX(-5px);
}

.server-stats .stat {
  background: #f8f9fa;
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  text-align: center;
  min-width: 140px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.server-stats .label {
  display: block;
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 0.3rem;
}

.server-stats .value {
  font-size: 1.4rem;
  font-weight: bold;
  color: #2c3e50;
}

/* About */
#about .content {
  max-width: 800px;
  margin: auto;
  text-align: center;
}
#about p {
  margin-top: 1rem;
  color: #9ca3af;
}

/* Features */
#features .content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1000px;
  margin: auto;
}

#features .game {
  background: #1f2937;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  transition: transform 0.2s;

  flex: 1 1 280px;   /* ← 最小280pxで、余白あれば伸びる */
  max-width: 450px; /* ← 伸びすぎ防止 */
}

#features img {
  width: 100%;
  height: auto;       /* ← 固定高さを外す */
  aspect-ratio: 16/9; /* ← アスペクト比維持で揃える */
  object-fit: cover;
}

#features .game:hover {
  transform: translateY(-4px);
}
#features .info {
  padding: 1.5rem;
}

#features h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #f9fafb;
}

#features p {
  color: #d1d5db;
}

/* Join Section (Dark but distinct) */
#join {
  background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
  text-align: center;
  padding: 4rem 2rem;
}

#join .section-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #f9fafb;
}

#join .section-description {
  font-size: 1rem;
  color: #d1d5db;
  margin-bottom: 2rem;
}

#join .join-btn {
  display: inline-block;
  background: #3b82f6;
  color: #fff;
  padding: 0.8rem 1.8rem;
  border-radius: 9999px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
}

#join .join-btn:hover {
  background: #2563eb;
  transform: translateY(-3px);
}



/*投票*/
#vote {
    background-color: #111; /* ダーク背景 */
    color: #fff;
    padding: 4rem 2rem;
    text-align: center;
}

#vote .section-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

#vote .section-description {
    font-size: 1rem;
    margin-bottom: 3rem;
    color: #ccc;
}

.voteLinks {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.vote-link {
    background-color: #1a1a1a;
    padding: 1.5rem;
    border-radius: 8px;
    width: 250px;
    text-decoration: none;
    color: #fff;
    transition: transform 0.3s, background-color 0.3s;
}

.vote-link:hover {
    transform: translateY(-5px);
    background-color: #272727;
}

.vote-link h5 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.vote-link .description {
    font-size: 0.9rem;
    color: #bbb;
}

/* Discord Section */
#discord {
  background: #2563eb;
  color: white;
  text-align: center;
}
#discord a {
  display: inline-block;
  margin-top: 1rem;
  background: white;
  color: #2563eb;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: background 0.2s;
}
#discord a:hover {
  background: #f3f4f6;
}

/* Footer */
#footer {
  background: #1f2937;
  color: #d1d5db;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
}

#footer p {
  margin: 0;
}

/* 利用規約・プライバシーポリシーを中央に */
.policy-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem; /* リンク間のスペース */
  margin-bottom: 1rem;
}

#footer .social-links .brand-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

#footer .social-links a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.3s;
}

#footer .social-links a:hover {
  color: #3b82f6;
}

/* スマホ用ナビバー調整 */
@media (max-width: 768px) {
  .hamburger {
    display: flex; /* モバイルで右端に表示 */
    margin-left: auto; /* 右端寄せ */
  }

  .link {
    display: none; /* PC用リンク非表示 */
  }

  .navbar-center {
    display: none; /* PC用Discord非表示 */
  }
  .pc_hid{
    display: block;
  }
  #header h1{
    font-size: 2.3rem;
  }
}

/*もっと画面小さい奴用*/
@media (max-width: 400px) {
  .hamburger {
    display: flex; /* モバイルで右端に表示 */
    margin-left: auto; /* 右端寄せ */
  }

  .link {
    display: none; /* PC用リンク非表示 */
  }

  .navbar-center {
    display: none; /* PC用Discord非表示 */
  }
  .pc_hid{
    display: block;
  }
  .pc_tab_hid{
    display: block;
  }
  .server-stats {
    flex-direction: column;
    gap: 1rem; /* 縦方向の間隔 */
  }
  #header h1{
    font-size: 1.7rem;
  }
  #header .server-description{
    white-space: nowrap;
  }
  #about .about-server{
    white-space: nowrap;
  }
  #vote .section-title{
    font-size: 1.7rem;
  }
  #discord .section-title{
    white-space: nowrap;
  }
  #footer .policy-links a{
    font-size: 1.0rem;
  }
}
    