/* ================================
   全体スタイル
================================ */
body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  color: #222;  
  line-height: 1.6;

  background: linear-gradient(-45deg,#01060f, #1e3c72, #2a5298, #00c6ff, #f0f9ff);
  background-size: 400% 400%;
  animation: gradientBG 20s ease infinite;
}

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


/* ================================
   レスポンシブ調整
================================ */

/* タブレット以下 (max-width: 1024px) */
@media (max-width: 1024px) {
  .page-title {
    font-size: 2.2rem;
  }
  .subtitle {
    font-size: 1rem;
  }
  .member-card {
    padding: 1.2rem;
  }
  .modal-content {
    width: 85%;
    padding: 1.5rem;
  }
}

/* スマホ (max-width: 600px) */
@media (max-width: 600px) {
  header nav {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    text-align: center;
  }

  .page-title {
    font-size: 1.8rem;
  }
  .subtitle {
    font-size: 0.95rem;
  }

  /* メンバーリストは1列表示 */
  .member-list {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }

  /* カード */
  .member-card {
    width: 100%;
    padding: 1rem;
  }
  .member-card img {
    height: auto;
  }

  /* モーダル */
  .modal-content {
    width: 90%;
    max-height: 85vh;  /* 画面に収める */
    overflow-y: auto;  /* はみ出す場合スクロール */
    padding: 1.2rem;
  }
}

/* ハンバーガーアイコンの基本 */
.hamburger {
  display: none; /* PCでは非表示 */
  font-size: 2rem;
  cursor: pointer;
  color: #fff;
}

/* スマホ時の表示 */

/* スマホ時に ☰ を表示する */
@media (max-width: 768px) {
  .hamburger {
    display: block;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #fff;
    z-index: 1000;
  }
}




 /* ==========================
   ハンバーガーメニュー
========================== */
@media (max-width: 768px) {
  /* オーバーレイ */
  #overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
  }
  #overlay.active {
    display: block;
  }

  /* メニュー本体（右からスライドイン） */
  #navMenu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -250px; /* 初期は画面外 */
    width: 220px;
    height: 100%;
    background: rgba(0,0,0,0.95);
    padding: 2rem 1rem;
    border-left: 2px solid rgba(0,198,255,0.3);
    transition: right 0.4s ease;
    z-index: 999;
  }

  /* 開いた状態 */
  #navMenu.active {
    right: 0;
  }

  #navMenu a {
    margin: 15px 0;
    color: #fff;
    text-align: left;
    font-size: 1.2rem;
  }
}




/* ================================
   ヘッダー
================================ */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #222;
  padding: 1.5rem 2rem;
  position: sticky;
  top: 0;
  transition: all 0.3s ease;
  z-index: 1000;
}

header.shrink {
  padding: 0.5rem 2rem;
  background: rgba(34, 34, 34, 0.546);
  backdrop-filter: blur(6px);
}

/* ロゴ画像 */
.logo img {
  height: 50px;
  transition: height 0.3s ease;
}

header.shrink .logo img {
  height: 35px;
}

/* ================================
   ナビゲーション
================================ */
/* ================================
   ナビゲーションの文字色調整
================================ */
nav a {
  color: #fff;              /* 白文字に */
  text-decoration: none;
  margin: 0 1rem;
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.3s;
}

nav a:hover {
  color: #00c6ff;           /* ホバー時は水色に */
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #00c6ff;      /* 下線も水色 */
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}
/* ================================
   スライダー
================================ */
.hero-slider {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-slider .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;   /* 最初は非表示 */
}

.hero-slider .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* キャッチコピー */
.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  background: rgba(0,0,0,0.4);
  padding: 2rem;
  border-radius: 12px;
}

/* スライダー矢印 */
.hero-slider .prev, .hero-slider .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 16px;
  color: white;
  font-size: 2rem;
  font-weight: bold;
  user-select: none;
  transition: color 0.3s ease;
  z-index: 10;
}

.hero-slider .prev:hover, .hero-slider .next:hover {
  color: #e63946;
}

.hero-slider .prev { left: 20px; }
.hero-slider .next { right: 20px; }

/* ドットナビゲーション */
.dots {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
  z-index: 10;
}

.dots span {
  cursor: pointer;
  height: 12px;
  width: 12px;
  margin: 0 5px;
  background-color: rgba(255,255,255,0.6);
  border-radius: 50%;
  display: inline-block;
  transition: background 0.3s ease;
}

.dots span.active {
  background-color: #e63946;
}

/* ================================
   フェードインアニメーション
================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* ================================
   ゲームカード（Gamesページ）
================================ */
.game-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  padding: 2rem;
}

.game-card {
  background: #1c1c1c;
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  width: 280px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.game-card h2 {
  color: #fff;
  margin: 0.5rem 0;
}

.game-card p {
  color: #bbb;
  font-size: 0.9rem;
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.5);
}

/* ================================
   サブタイトル
================================ */
.subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #ddd;
  margin-top: -1rem;
  margin-bottom: 2.5rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  font-style: italic;  
}

/* ================================
   メンバーカード（Membersページ）
================================ */
.page-title {
  text-align: center;
  margin: 2rem 0;
  font-size: 2.5rem;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  color: #fff;                        
  text-shadow: 0 0 10px rgba(0, 8, 10, 0.297); 
  letter-spacing: 0.1em; 
}

.member-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.member-card {
  background: rgba(0,0,0,0.8); 
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
  width: 250px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden; /* 光がはみ出さないように */
}

.member-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;      
  box-shadow: 0 4px 12px rgba(0,0,0,0.3); 
  margin-bottom: 1rem;
}

.member-card h2,
.member-card h3 {
  color: #fff !important;
}

.member-card h2 {
  font-size: 1.3rem;
  font-weight: 700;
}

.member-card .role {
  font-size: 0.85rem;
  color: #9ecbff; 
}

.member-card .comment {
  font-size: 0.85rem;
  color: #ddd;
  font-style: italic;
}

.member-card .sns {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 10px;
}


.member-card .sns a {
  color: #86f7ff;
  text-decoration: none;
  margin: 0 0.5rem;
  transition: transform 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
  font-size: 1.2rem;
}

.member-card .sns a:hover {
  color: #fff;
  transform: translateY(-2px) scale(1.1);
  text-shadow: 0 0 8px rgba(0,198,255,0.7);
}

.member-card:hover {
  transform: translateY(-12px) scale(1.05); 
  box-shadow: 0 12px 24px rgba(0,0,0,0.6);
}

.member-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(0,198,255,0.35),
    transparent
  );
  transition: all 0.6s ease;
}

.member-card:hover::after {
  left: 100%;
}

/* ================================
   モーダル
================================ */
.modal {
  display: none; 
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  animation: modalBgFade 0.4s forwards;
}


/* モーダル中身 */
.modal-content {
  border-radius: 10px;
  width: 80%;
  max-width: 600px;
  color: #fff;
  text-align: left;
  animation: fadeIn 0.5s;
  position: relative;
  opacity: 0;
  transform: scale(0.9);
  animation: modalFadeIn 0.4s forwards;
  background: rgba(0,0,0,0.88);
  color: #fff;
  border-radius: 14px;
  padding: 2rem 1.6rem;
  line-height: 1.8;
  box-shadow: 0 0 20px rgba(0,198,255,0.3);
  border: 2px solid transparent;
  background-clip: padding-box;
}


@keyframes borderGlow {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.modal-content h2 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.3rem;
  position: relative;
  display: inline-block;
  color: #fff;
}

.modal-content h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #00c6ff, transparent);
  animation: underline-glow 3s linear infinite;
}

.modal-content p {
  margin: 0.8rem 0;
  line-height: 1.6;
}


.modal .close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  cursor: pointer;
  color: #fff;
  font-weight: bold;
  transition: color 0.3s
}

.modal .close:hover {
  color: #00c6ff;
}

@keyframes fadeIn {
  from {opacity: 0; transform: translateY(-20px);}
  to {opacity: 1; transform: translateY(0);}
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes modalFadeOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.8);
  }
}

@keyframes modalBgFade {
  from { background: rgba(0,0,0,0); }
  to { background: rgba(0,0,0,0.7); }
}

.modal-content h2::after {
  background-size: 200% auto;
}



/* ================================
   litlink1
================================ */
.litlink1 {
color: rgb(122, 164, 255);          
}

.litlink1:hover {
  text-decoration: underline;
}

/* ================================
   litlink
================================ */
.litlink {
  font-size: 0.9rem;   /* ← ここで文字サイズを小さくする */
  color: rgb(122, 164, 255);          
  text-decoration: none;
  display: inline-block;
  margin-top: 4px;
}

.litlink:hover {
  text-decoration: underline;
}

/* ================================
   フォーム（Contactページ）
================================ */
form {
  max-width: 600px;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

form input, form textarea, form button {
  padding: 0.8rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
}

form input, form textarea {
  background: #222;
  color: #eee;
}

form button {
  background: #e63946;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s ease;
}

form button:hover {
  background: #d62839;
}

/* ================================
   フッター
================================ */
footer {
  background: #222;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #ddd;
}

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

