@charset "UTF-8";

/*--------------------------------------------------------------
# 1. フォントとルート変数
--------------------------------------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Noto+Sans+JP:wght@400;500;700&family=Orbitron:wght@400;500;700;900&display=swap');

:root {
  /* カラーパレット */
  --primary-color: #7e57c2; /* ゲーム風の紫色 */
  --secondary-color: #00e676; /* ネオングリーン */
  --accent-color: #ff3d00; /* アクセントカラー */
  --text-color: #e0e0e0; /* 明るめの文字色 */
  --background-color: #121212; /* ダークモード背景 */
  --panel-color: rgba(30, 30, 40, 0.85); /* パネル背景色 */
  
  /* エフェクト */
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  --glow: 0 0 10px rgba(126, 87, 194, 0.5);
  --border-glow: 0 0 5px var(--secondary-color);
  
  /* アニメーション */
  --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/*--------------------------------------------------------------
# 2. 基本スタイル
--------------------------------------------------------------*/
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: 'Noto Sans JP', 'Orbitron', sans-serif;
  margin: 0;
  padding: 0;
  background: var(--background-color) url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/><path d="M0 0L50 50L100 0ZM0 100L50 50L100 100Z" fill="rgba(126, 87, 194, 0.05)"/></svg>');
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 0.5s ease;
}

body.loaded {
  opacity: 1;
}

/*--------------------------------------------------------------
# 3. レイアウト
--------------------------------------------------------------*/
.container {
  max-width: 1100px; /* 最大幅を少し縮小 */
  margin: 2rem auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

/* 共通セクションスタイル */
section {
  background-color: var(--panel-color);
  padding: 2.5rem 1.5rem; /* パディングを調整 */
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  margin: 4rem auto 4rem; /* 上下のマージンを増やす */
  scroll-margin-top: 150px; /* スクロール時の余白を増やす */
  position: relative;
  z-index: 1;
  border: 1px solid rgba(126, 87, 194, 0.3);
  max-width: 1200px; /* コンテンツ幅を調整 */
  width: 90%; /* 横幅を90%に制限 */
  color: var(--text-color);
  overflow: hidden;
  box-sizing: border-box; /* ボックスサイズの計算方法を修正 */
}

section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  z-index: 1;
}

section::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50px;
  height: 50px;
  background-image: url('data:image/svg+xml;utf8,<svg width="50" height="50" viewBox="0 0 50 50" xmlns="http://www.w3.org/2000/svg"><path d="M0 0 L50 0 L50 50 Z" fill="rgba(126, 87, 194, 0.2)"/></svg>');
  z-index: 0;
}

section h2 {
  margin: 0 0 1.5rem 0;
  font-size: 2.5rem;
  font-family: 'Orbitron', 'Noto Sans JP', sans-serif;
  color: var(--secondary-color);
  text-shadow: 0 0 10px rgba(0, 230, 118, 0.3);
  position: relative;
  display: inline-block;
  text-align: center;
  width: 100%;
}

section h2::before {
  content: '[';
  color: var(--accent-color);
  margin-right: 0.5rem;
  font-weight: 900;
  transition: all 0.3s ease;
}

section h2::after {
  content: ']';
  color: var(--accent-color);
  margin-left: 0.5rem;
  font-weight: 900;
  transition: all 0.3s ease;
}

section:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border-color: var(--secondary-color);
}

section:hover h2::before {
  color: var(--secondary-color);
  margin-right: 1rem;
}

section:hover h2::after {
  color: var(--secondary-color);
  margin-left: 1rem;
}

/*--------------------------------------------------------------
# 4. ヘッダーとナビゲーション
--------------------------------------------------------------*/
header {
  /* background: linear-gradient(to right, var(--primary-color), var(--secondary-color)); */
  background-color: rgba(126, 87, 194, 0.8); /* 半透明のプライマリカラーに変更 */
  backdrop-filter: blur(10px); /* ガラス効果を追加 */
  color: white;
  padding: 0.5rem 1rem; /* パディングを調整 */
  /* text-align: center; */ /* 中央揃えを解除 */
  position: fixed; /* 固定位置に設定 */
  width: 100%;
  top: 0;
  left: 0; /* 左端にも固定 */
  z-index: 1000;
  box-shadow: var(--shadow);
  display: flex;
  /* flex-direction: column; */ /* 横並びに変更 */
  align-items: center;
  justify-content: space-between; /* アイコンとナビゲーションを両端に配置 */
  height: 60px; /* ヘッダーの高さを固定 */
  border-bottom: 1px solid rgba(126, 87, 194, 0.3); /* 細い境界線に変更 */
  overflow: hidden;
  box-sizing: border-box; /* ボックスサイズの計算方法を修正 */
  transition: background-color 0.3s ease, opacity 0.3s ease; /* トランジションを追加 */
}

/* ヘッダーが最上部でない場合のスタイル */
header:not(.at-top) {
  background-color: rgba(0, 0, 0, 0.1); /* より不透明な既存の色 */
}

/* ヘッダーが最上部の場合のスタイル */
header.at-top {
  background-color: rgba(0, 0, 0, 1); /* より透明な既存の色 */
  box-shadow: none; /* 影を削除 */
}


/* ヘッダーの上へのスライド（非表示状態） */
/* header.nav-hidden {
  transform: translateY(-100%);
} */

/* ヘッダーのスライドダウン（表示状態） */
/* header.nav-visible {
  transform: translateY(0);
} */

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between; /* 要素間のスペースを均等に配置 */
    width: 100%; /* コンテンツがヘッダー全体に広がるようにする */
}

.header-icon {
    height: 40px; /* アイコンの高さを調整 */
    width: auto;
    margin-right: 0.5rem; /* アイコンとタイトルの間にマージンを調整 */
}

.header-title {
    font-family: 'Orbitron', 'Noto Sans JP', sans-serif;
    font-size: 1.8rem; /* 文字サイズを調整 */
    font-weight: 700;
    color: var(--text-color); /* 文字色を調整 */
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    margin-right: 1rem; /* タイトルとナビゲーションの間にマージンを追加 */
}

/* ヘッダーのタイトル */
header h1 {
  margin: 0; /* h1のデフォルトマージンを削除 */
  /* font-size: 2rem; */ /* サイズ調整は不要になったためコメントアウト */
  /* font-family: \'Press Start 2P\', \'Orbitron\', cursive; */
  /* text-shadow: 0 0 5px rgba(255, 255, 255, 0.7); */
  /* letter-spacing: 2px; */
  /* position: relative; */
  /* display: inline-block; */
}

/* header h1::after {
  content: \'\';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--secondary-color);
  box-shadow: var(--glow);
  animation: pulse 1.5s infinite alternate;
} */

/* ナビゲーション */
nav {
    margin-left: auto; /* ナビゲーションを右側に寄せる */
}
nav ul {
  list-style: none;
  padding: 0;
  margin: 0; /* ulのデフォルトマージンを削除 */
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

nav ul li {
  display: inline-block;
  margin: 0.3rem 0.8rem;
}

nav ul li a {
  color: white;
  text-decoration: none;
  position: relative;
  padding: 0.5rem 1rem;
  transition: var(--transition);
  overflow: hidden;
  font-family: 'Orbitron', 'Noto Sans JP', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
}

nav ul li a:hover {
  color: var(--secondary-color);
  text-shadow: 0 0 8px var(--secondary-color);
  transform: translateY(-2px);
}

nav ul li a::before {
  content: '>';
  position: absolute;
  left: -10px;
  opacity: 0;
  transition: var(--transition);
}

nav ul li a:hover::before {
  left: 0;
  opacity: 1;
}

nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: 0;
  left: 0;
  background-color: var(--secondary-color);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: var(--glow);
}

nav ul li a:hover::after {
  width: 100%;
}

/* ハンバーガーメニュー */
.hamburger {
  display: none;
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 24px;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: white;
  position: absolute;
  transition: var(--transition);
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 11px; }
.hamburger span:nth-child(3) { bottom: 0; }

.hamburger.active span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/*--------------------------------------------------------------
# 5. フッター
--------------------------------------------------------------*/
footer {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: #000;
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3);
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    -45deg,
    rgba(0, 0, 0, 0.05),
    rgba(0, 0, 0, 0.05) 10px,
    rgba(0, 0, 0, 0) 10px,
    rgba(0, 0, 0, 0) 20px
  );
  opacity: 1;
  z-index: 0;
}

footer p {
  position: relative;
  z-index: 1;
  font-family: 'Orbitron', sans-serif;
  font-weight: 500;
  letter-spacing: 1px;
  margin: 0;
}

/*--------------------------------------------------------------
# 6. 各セクション固有のスタイル
--------------------------------------------------------------*/
/* ホームセクション */
#home {
  padding-top: 120px;
  min-height: calc(100vh - 150px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--panel-color) url('data:image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><rect width="20" height="20" fill="none"/><circle cx="10" cy="10" r="1" fill="rgba(126, 87, 194, 0.15)"/></svg>');
  text-align: center;
  margin-bottom: 1.5rem;
}

#home h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: gameTitle 3s infinite alternate;
  font-family: 'Press Start 2P', 'Orbitron', cursive;
  text-shadow: 0 0 15px rgba(0, 230, 118, 0.5);
}

#home p {
  font-size: 1.2rem;
  max-width: 800px;
  line-height: 1.8;
  margin: 1rem 0;
  font-family: 'Orbitron', 'Noto Sans JP', sans-serif;
  position: relative;
}

/* ゲーム紹介セクション */
#games {
  padding-top: 120px;
  min-height: calc(100vh - 200px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  background: var(--panel-color) url('data:image/svg+xml;utf8,<svg width="30" height="30" viewBox="0 0 30 30" xmlns="http://www.w3.org/2000/svg"><rect width="30" height="30" fill="none"/><path d="M15 5 L25 15 L15 25 L5 15 Z" stroke="rgba(126, 87, 194, 0.1)" stroke-width="1" fill="none"/></svg>');
  margin-bottom: 6rem; /* マージンを大幅に増加 */
  box-sizing: border-box;
  width: 100%;
}

.welcome-text {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
  padding: 0 1rem;
  width: 100%;
  box-sizing: border-box;
}

/* チーム紹介セクション */
#about {
  padding-top: 120px; /* パディングを増やす */
  margin-top: 0; /* ネガティブマージンを削除 */
  margin-bottom: 6rem; /* マージンを大幅に増加 */
  background: var(--panel-color) url('data:image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><rect width="20" height="20" fill="none"/><circle cx="10" cy="10" r="1" fill="rgba(126, 87, 194, 0.15)"/></svg>');
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  margin: 1rem 0;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
}

.about-content p:first-child {
  font-family: 'Orbitron', 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--secondary-color);
  text-shadow: 0 0 5px rgba(0, 230, 118, 0.3);
}

/* 共通セクションパディング */
#team, #blog, #contact {
  padding-top: 120px;
  margin-top: 0; /* ネガティブマージンを削除 */
  margin-bottom: 6rem; /* マージンを大幅に増加 */
}

/* セクション背景パターン */
#team { 
  background: var(--panel-color) url('data:image/svg+xml;utf8,<svg width="30" height="30" viewBox="0 0 30 30" xmlns="http://www.w3.org/2000/svg"><rect width="30" height="30" fill="none"/><circle cx="15" cy="15" r="7" stroke="rgba(126, 87, 194, 0.1)" stroke-width="1" fill="none"/></svg>');
}
#blog { 
  background: var(--panel-color) url('data:image/svg+xml;utf8,<svg width="30" height="30" viewBox="0 0 30 30" xmlns="http://www.w3.org/2000/svg"><rect width="30" height="30" fill="none"/><rect x="8" y="8" width="14" height="14" stroke="rgba(126, 87, 194, 0.1)" stroke-width="1" fill="none"/></svg>');
}
#contact { 
  background: var(--panel-color) url('data:image/svg+xml;utf8,<svg width="30" height="30" viewBox="0 0 30 30" xmlns="http://www.w3.org/2000/svg"><rect width="30" height="30" fill="none"/><path d="M5 15 L15 5 L25 15 L15 25 Z" stroke="rgba(126, 87, 194, 0.1)" stroke-width="1" fill="none"/></svg>');
}

/* サンクスページ */
#thanks {
  margin-top: 120px;
  text-align: center;
  padding: 3rem;
}

.back-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 2rem;
  transition: var(--transition);
}

.back-button:hover {
  background-color: #357abd;
  transform: translateY(-2px);
}

/*--------------------------------------------------------------
# 7. ゲームカードのスタイル
--------------------------------------------------------------*/
.game {
  display: flex;
  flex-direction: column;
  background: rgba(20, 20, 30, 0.7);
  border-radius: 12px;
  border: 2px solid var(--primary-color);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow);
  position: relative;
}

.game::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  z-index: -1;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
  border-radius: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.game:hover::before {
  opacity: 0.8;
}

.game img {
  width: 100%;
  aspect-ratio: 4 / 4;
  object-fit: cover;
  border-bottom: 2px solid var (--primary-color);
  filter: brightness(0.9);
  transition: all 0.5s ease;
}

.game:hover img {
  filter: brightness(1.1);
  transform: scale(1.05);
}

.game-content {
  padding: 1.5rem;
  color: var(--text-color);
}

/* ゲームリンク */
.game a {
  display: block;
  color: var(--text-color);
  text-decoration: none;
  height: 100%;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

/* ゲームプレイボタンの強調表示 */
.game a::after {
  content: 'PLAY NOW';
  position: absolute;
  bottom: -40px;
  left: 0;
  width: 100%;
  padding: 15px 0;
  background: linear-gradient(to right, #ff3d00, #ff9100);
  color: white;
  text-align: center;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.game:hover a::after {
  bottom: 0;
  opacity: 1;
  animation: pulse-button 1.5s infinite alternate;
}

@keyframes pulse-button {
  0% {
    box-shadow: 0 5px 15px rgba(255, 61, 0, 0.3);
  }
  100% {
    box-shadow: 0 5px 20px rgba(255, 61, 0, 0.7), 0 0 10px rgba(255, 61, 0, 0.5);
  }
}

/* 未開発ゲーム表示 */
.game a[href="#"]::after {
  content: 'UNDER DEVELOPMENT';
  background: linear-gradient(to right, var(--accent-color), #ff9e80);
  animation: none;
}

.game a h3 {
  margin: 0.7rem;
  color: var(--secondary-color);
  text-align: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 1px;
  text-shadow: 0 0 5px rgba(0, 230, 118, 0.3);
}

/* 未開発ゲーム表示 */
.game a[href="#"] h3::after {
  content: '- COMING SOON -';
  display: block;
  font-size: 0.7rem;
  margin-top: 0.5rem;
  color: var (--accent-color);
  letter-spacing: 1px;
}

/*--------------------------------------------------------------
# 8. チームメンバーセクション
--------------------------------------------------------------*/
.members-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.member-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: var(--transition);
  position: relative;
}

.member-link::after {
  content: 'プロフィールを見る';
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: var(--secondary-color);
  color: #000;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.member-link:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.member-link:hover .member {
  transform: translateY(-5px) translateX(3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  border-color: var(--secondary-color);
}

.member {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(20, 20, 30, 0.7);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-left: 4px solid var(--accent-color);
  position: relative;
  overflow: hidden;
}

.member::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M0 0 L100 0 L100 100 Z" fill="rgba(255, 61, 0, 0.1)"/></svg>');
  z-index: 0;
}

.member:hover {
  transform: translateY(-5px) translateX(3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  border-color: var(--secondary-color);
}

.member-info {
  flex: 1;
  padding-right: 2rem;
  position: relative;
  z-index: 1;
}

.member-info h3 {
  margin: 0 0 0.8rem 0;
  color: var(--secondary-color);
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  text-shadow: 0 0 5px rgba(0, 230, 118, 0.3);
  position: relative;
  display: inline-block;
}

.member-info h3::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, var(--secondary-color), transparent);
}

.role {
  color: var(--text-color);
  margin: 0.8rem 0;
  font-weight: 500;
  font-family: 'Noto Sans JP', sans-serif;
  position: relative;
  padding-left: 20px;
}

.role::before {
  content: '⬥';
  position: absolute;
  left: 0;
  color: var(--accent-color);
}

.comment {
  font-style: italic;
  color: #aaa;
  margin: 0.8rem 0;
  padding: 0.5rem 0.8rem;
  border-left: 2px solid var(--primary-color);
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0 4px 4px 0;
}

.member-image {
  width: 140px;
  height: 140px;
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid var(--primary-color);
  box-shadow: 0 0 15px rgba(126, 87, 194, 0.3);
  transform: rotate(3deg);
  transition: all 0.5s ease;
  position: relative;
  z-index: 1;
}

.member:hover .member-image {
  transform: rotate(0deg) scale(1.05);
  border-color: var(--secondary-color);
  box-shadow: 0 0 20px rgba(0, 230, 118, 0.4);
}

.member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.1);
  transition: all 0.5s ease;
}

.member:hover .member-image img {
  filter: contrast(1.2) brightness(1.1);
}

/*--------------------------------------------------------------
# 9. 開発ブログのスタイル
--------------------------------------------------------------*/
.blog-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto;
}

.blog-post {
  background: rgba(20, 20, 30, 0.7);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  padding: 1.8rem;
  border-left: 3px solid var(--primary-color);
  position: relative;
}

.blog-post::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background-image: url('data:image/svg+xml;utf8,<svg width="80" height="80" viewBox="0 0 80 80" xmlns="http://www.w3.org/2000/svg"><path d="M0 80 L80 80 L80 0 Z" fill="rgba(126, 87, 194, 0.1)"/></svg>');
  z-index: 0;
}

.blog-post:hover {
  transform: translateY(-5px) translateX(2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  border-color: var (--secondary-color);
}

.blog-date {
  color: #999;
  font-size: 0.9rem;
  margin-bottom: 0.7rem;
  font-family: 'Orbitron', monospace;
  padding-left: 18px;
  position: relative;
}

.blog-date::before {
  content: '⬤';
  position: absolute;
  left: 0;
  font-size: 0.5rem;
  color: var(--accent-color);
  top: 50%;
  transform: translateY(-50%);
}

.blog-post h3 {
  color: var(--secondary-color);
  margin: 0 0 1.2rem 0;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  position: relative;
  display: inline-block;
  text-shadow: 0 0 5px rgba(0, 230, 118, 0.3);
}

.blog-post h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, var(--secondary-color), transparent);
}

.blog-image {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border: 2px solid rgba(126, 87, 194, 0.3);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  position: relative;
}

.blog-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 70%, rgba(20, 20, 30, 0.8));
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.blog-post:hover .blog-image::before {
  opacity: 1;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  filter: brightness(0.9);
}

.blog-post:hover .blog-image img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.blog-post p {
  margin: 0 0 1.2rem 0;
  line-height: 1.8;
  color: var(--text-color);
  position: relative;
  z-index: 1;
}

/* 続きを読むボタンのコンテナ */
.read-more-container {
  text-align: center;
  margin: 1.5rem 0;
}

.read-more {
  display: inline-block;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  border: 1px solid var(--primary-color);
  transition: all 0.3s ease;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
}

.read-more:hover {
  background: rgba(126, 87, 194, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border-color: var(--secondary-color);
}

.blog-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 2.5rem;
}

/*--------------------------------------------------------------
# 9.5. SNS共有機能
--------------------------------------------------------------*/
#share {
  padding-top: 120px;
  margin-top: 0;
  margin-bottom: 6rem;
  background: var(--panel-color) url('data:image/svg+xml;utf8,<svg width="30" height="30" viewBox="0 0 30 30" xmlns="http://www.w3.org/2000/svg"><rect width="30" height="30" fill="none"/><path d="M5 15 L15 5 L25 15" stroke="rgba(126, 87, 194, 0.1)" stroke-width="1" fill="none"/></svg>');
}

.share-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.share-intro {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.sns-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0;
}

.sns-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  color: white;
  text-decoration: none;
  font-weight: 700;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  min-width: 160px;
  box-shadow: var(--shadow);
  font-family: 'Orbitron', sans-serif;
}

.sns-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.sns-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.5s ease;
}

.sns-button:hover::before {
  left: 100%;
}

.sns-button i {
  margin-right: 0.8rem;
  font-size: 1.2rem;
}

.twitter {
  background: #1DA1F2;
  border: 2px solid #1DA1F2;
}

.twitter:hover {
  background: #0d8ad3;
}

.facebook {
  background: #4267B2;
  border: 2px solid #4267B2;
}

.facebook:hover {
  background: #365899;
}

.line {
  background: #06C755;
  border: 2px solid #06C755;
}

.line:hover {
  background: #05a548;
}

.reddit {
  background: #FF4500;
  border: 2px solid #FF4500;
}

.reddit:hover {
  background: #e03d00;
}

.share-form {
  background: rgba(20, 20, 30, 0.7);
  padding: 2rem;
  border-radius: 12px;
  margin-top: 3rem;
  border: 1px solid rgba(126, 87, 194, 0.3);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.share-form h3 {
  margin-top: 0;
  color: var(--secondary-color);
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 5px rgba(0, 230, 118, 0.3);
}

.share-form textarea {
  width: 100%;
  min-height: 100px;
  background: rgba(10, 10, 15, 0.7);
  border: 1px solid var(--primary-color);
  border-radius: 8px;
  color: var(--text-color);
  padding: 1rem;
  font-family: 'Noto Sans JP', sans-serif;
  resize: vertical;
  box-sizing: border-box;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.share-form textarea:focus {
  border-color: var(--secondary-color);
  outline: none;
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.3);
}

.share-form select {
  padding: 0.8rem;
  background: rgba(10, 10, 15, 0.7);
  border: 1px solid var(--primary-color);
  border-radius: 4px;
  color: var(--text-color);
  font-family: 'Noto Sans JP', sans-serif;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.share-form select:focus {
  border-color: var(--secondary-color);
  outline: none;
}

.character-count {
  color: #aaa;
  font-size: 0.9rem;
  text-align: right;
  margin-top: -1rem;
  margin-bottom: 1rem;
}

/*--------------------------------------------------------------
# ナビゲーションリンク
--------------------------------------------------------------*/
.navigation-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-family: 'Orbitron', 'Noto Sans+JP', sans-serif;
  transition: all 0.3s ease;
  margin: 1.5rem 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
  font-size: 0.9rem;
  border: none;
}

.navigation-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: all 0.5s ease;
}

.navigation-button:hover::before {
  left: 100%;
}

.navigation-button i {
  margin-right: 0.8rem;
  font-size: 1.1rem;
}

.navigation-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.3);
}

/* ナビゲーションリンクの種類によるスタイル変更 */
.back-home {
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.prev-posts {
  background: linear-gradient(to right, #4a148c, #7e57c2);
}

.next-posts {
  background: linear-gradient(to right, #00796b, #00e676);
}

/* ナビゲーションコンテナ */
.navigation-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2.5rem auto;
  text-align: center;
  max-width: 900px;
  width: 90%;
}

@media screen and (max-width: 768px) {
  .navigation-button {
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
    width: auto;
  }
  
  .navigation-container {
    flex-direction: column;
    width: 100%;
    max-width: none;
    margin: 1.5rem auto;
    padding: 0 1rem;
    box-sizing: border-box;
  }
}

@media screen and (max-width: 480px) {
  .navigation-button {
    width: 100%;
    box-sizing: border-box;
    justify-content: flex-start;
    text-align: left;
  }
}

@media screen and (max-width: 768px) {
  /* ハンバーガーメニュー関連のスタイル調整 */
  nav .hamburger {
    display: block; /* ハンバーガーメニューを表示 */
    position: absolute; /* header-contentに対して絶対配置 */
    right: 1rem; /* 右端からの位置 */
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001; /* ナビゲーションメニューより手前に */
  }

  nav ul {
    display: flex; /* 初期状態はflexにしておく */
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* 上から配置 */
    position: fixed;
    top: 0;
    right: -100%; /* 初期状態では画面外の右側に配置 (幅100%で隠す) */
    width: 70%; /* メニューの幅を調整 */
    max-width: 300px; /* 最大幅を設定 */
    height: 100vh;
    background-color: var(--panel-color);
    padding-top: 60px; /* ヘッダーの高さ分オフセット */
    transition: right 0.3s ease-in-out;
    z-index: 1000; /* ヘッダーより手前、ハンバーガーより奥 */
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    overflow-y: auto; /* メニュー項目が多い場合にスクロール可能に */
  }

  nav ul.active {
    right: 0; /* activeクラスが付いたら右端に表示 */
  }

  nav ul li {
    display: block;
    width: 100%;
    text-align: center;
    margin: 0; /* マージンをリセット */
  }

  nav ul li a {
    padding: 1.2rem 1rem; /* パディングを調整 */
    display: block;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* 区切り線 */
    transition: background-color 0.2s ease;
  }

  nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.05); /* ホバー時の背景色 */
    color: var(--secondary-color); /* ホバー時の文字色 */
  }

  /* ヘッダータイトルの調整 */
  .header-title {
    font-size: 1rem; /* スマホでは少し小さく */
    margin-right: auto; /* ハンバーガーメニューとのスペースを確保 */
    padding-left: 0.5rem; /* アイコンとのスペース調整 */
  }

  .header-icon {
    height: 35px; /* スマホでは少し小さく */
  }

  /* 他のレスポンシブスタイル ... */
  section {
    padding: 1.5rem 1rem;
    margin: 3rem auto;
  }
  
  /* ホームセクション */
  #home h2 {
    font-size: 2rem;
  }
  
  #home p {
    font-size: 1rem;
    padding: 0 1rem;
  }

  /* チームメンバー */
  .member {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }

  .member-info {
    padding-right: 0;
    padding-bottom: 1rem;
  }

  .member-image {
    width: 120px;
    height: 120px;
  }
  
  .member-link::after {
    position: static;
    display: inline-block;
    margin-top: 1rem;
    opacity: 1;
    transform: none;
  }

  /* ブログ */
  .blog-container {
    padding: 0 1rem;
  }
  
  .blog-nav {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  .blog-post h3 {
    font-size: 1.3rem;
  }
  
  /* SNS共有 */
  .sns-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .sns-button {
    width: 80%;
    margin-bottom: 0.8rem;
  }
  
  /* フォーム */
  form {
    padding: 0 1rem;
  }
  
  form input, form textarea {
    font-size: 16px; /* iOSでのズーム防止 */
  }
  
  form button {
    width: 100%;
    padding: 1rem 0;
  }
  
  /* ゲームカード */
  .game a::after {
    font-size: 0.8rem;
    padding: 10px 0;
  }
}

/* さらに小さい画面サイズ用の調整 */
@media screen and (max-width: 480px) {
  header h1 {
    font-size: 1.2rem;
  }
  
  section h2 {
    font-size: 1.5rem;
  }
  
  .blog-image {
    height: auto;
  }
  
  .member-info h3 {
    font-size: 1.3rem;
  }
  
  .nav-trigger {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }
  
  /* ナビゲーションの高さを抑える */
  nav ul {
    top: 70px;
  }
  
  /* ナビゲーション要素のタッチ領域拡大 */
  nav ul li a {
    padding: 1.2rem 1rem;
  }
  
  /* ゲームカードのボタンをタップしやすく */
  .game a::after {
    padding: 15px 0;
    font-size: 0.9rem;
  }
}

/*--------------------------------------------------------------
# 10. フォームスタイル
--------------------------------------------------------------*/
form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

form::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border: 1px solid rgba(126, 87, 194, 0.3);
  border-radius: 15px;
  z-index: -1;
  pointer-events: none;
}

form label {
  font-family: 'Orbitron', sans-serif;
  color: var(--secondary-color);
  margin-bottom: 0.3rem;
  display: block;
  font-size: 1rem;
  letter-spacing: 1px;
}

form input, form textarea {
  padding: 1rem;
  background: rgba(10, 10, 15, 0.7);
  border: 1px solid var(--primary-color);
  border-radius: 4px;
  transition: var(--transition);
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text-color);
  resize: vertical;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
}

form input:focus, form textarea:focus {
  border-color: var(--secondary-color);
  outline: none;
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.3), inset 0 2px 5px rgba(0, 0, 0, 0.2);
}

form textarea {
  min-height: 150px;
}

form button {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: #000;
  padding: 1rem 2rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 700;
  font-family: 'Orbitron', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  align-self: center;
  margin-top: 1rem;
}

form button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: all 0.5s ease;
}

form button:hover::before {
  left: 100%;
}

form button:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  letter-spacing: 2px;
}

/*--------------------------------------------------------------
# 11. アニメーションとエフェクト
--------------------------------------------------------------*/
@keyframes pulse {
  from { opacity: 0.6; }
  to { opacity: 1; }
}

@keyframes gameTitle {
  0% { text-shadow: 0 0 10px rgba(0, 230, 118, 0.5); }
  50% { text-shadow: 0 0 20px rgba(0, 230, 118, 0.8), 0 0 30px rgba(0, 230, 118, 0.4); }
  100% { text-shadow: 0 0 10px rgba(0, 230, 118, 0.5); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

@keyframes glow {
  0% { text-shadow: 0 0 5px rgba(0, 230, 118, 0.5); }
  50% { text-shadow: 0 0 15px rgba(0, 230, 118, 0.8), 0 0 20px rgba(0, 230, 118, 0.5); }
  100% { text-shadow: 0 0 5px rgba(0, 230, 118, 0.5); }
}

@keyframes borderPulse {
  0% { border-color: var(--primary-color); }
  50% { border-color: var(--secondary-color); }
  100% { border-color: var(--primary-color); }
}

@keyframes shine {
  0% { transform: rotate(30deg) translateX(-100%); }
  100% { transform: rotate(30deg) translateX(100%); }
}

/* 特殊効果クラス */
.pulse {
  animation: glow 2s infinite alternate;
}

.title-glow {
  animation: glow 1.5s infinite alternate;
}

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

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

/*--------------------------------------------------------------
# 12. レスポンシブデザイン
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  /* ハンバーガーメニュー関連のスタイル調整 */
  nav .hamburger {
    display: block; /* ハンバーガーメニューを表示 */
    position: absolute; /* header-contentに対して絶対配置 */
    right: 1rem; /* 右端からの位置 */
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001; /* ナビゲーションメニューより手前に */
  }

  nav ul {
    display: flex; /* 初期状態はflexにしておく */
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* 上から配置 */
    position: fixed;
    top: 0;
    right: -100%; /* 初期状態では画面外の右側に配置 (幅100%で隠す) */
    width: 70%; /* メニューの幅を調整 */
    max-width: 300px; /* 最大幅を設定 */
    height: 100vh;
    background-color: var(--panel-color);
    padding-top: 60px; /* ヘッダーの高さ分オフセット */
    transition: right 0.3s ease-in-out;
    z-index: 1000; /* ヘッダーより手前、ハンバーガーより奥 */
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    overflow-y: auto; /* メニュー項目が多い場合にスクロール可能に */
  }

  nav ul.active {
    right: 0; /* activeクラスが付いたら右端に表示 */
  }

  nav ul li {
    display: block;
    width: 100%;
    text-align: center;
    margin: 0; /* マージンをリセット */
  }

  nav ul li a {
    padding: 1.2rem 1rem; /* パディングを調整 */
    display: block;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* 区切り線 */
    transition: background-color 0.2s ease;
  }

  nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.05); /* ホバー時の背景色 */
    color: var(--secondary-color); /* ホバー時の文字色 */
  }

  /* ヘッダータイトルの調整 */
  .header-title {
    font-size: 1rem; /* スマホでは少し小さく */
    margin-right: auto; /* ハンバーガーメニューとのスペースを確保 */
    padding-left: 0.5rem; /* アイコンとのスペース調整 */
  }

  .header-icon {
    height: 35px; /* スマホでは少し小さく */
  }

  /* 他のレスポンシブスタイル ... */
  section {
    padding: 1.5rem 1rem;
    margin: 3rem auto;
  }
  
  /* ホームセクション */
  #home h2 {
    font-size: 2rem;
  }
  
  #home p {
    font-size: 1rem;
    padding: 0 1rem;
  }

  /* チームメンバー */
  .member {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }

  .member-info {
    padding-right: 0;
    padding-bottom: 1rem;
  }

  .member-image {
    width: 120px;
    height: 120px;
  }
  
  .member-link::after {
    position: static;
    display: inline-block;
    margin-top: 1rem;
    opacity: 1;
    transform: none;
  }

  /* ブログ */
  .blog-container {
    padding: 0 1rem;
  }
  
  .blog-nav {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  .blog-post h3 {
    font-size: 1.3rem;
  }
  
  /* SNS共有 */
  .sns-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .sns-button {
    width: 80%;
    margin-bottom: 0.8rem;
  }
  
  /* フォーム */
  form {
    padding: 0 1rem;
  }
  
  form input, form textarea {
    font-size: 16px; /* iOSでのズーム防止 */
  }
  
  form button {
    width: 100%;
    padding: 1rem 0;
  }
  
  /* ゲームカード */
  .game a::after {
    font-size: 0.8rem;
    padding: 10px 0;
  }
}

/* さらに小さい画面サイズ用の調整 */
@media screen and (max-width: 480px) {
  header h1 {
    font-size: 1.2rem;
  }
  
  section h2 {
    font-size: 1.5rem;
  }
  
  .blog-image {
    height: auto;
  }
  
  .member-info h3 {
    font-size: 1.3rem;
  }
  
  .nav-trigger {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }
  
  /* ナビゲーションの高さを抑える */
  nav ul {
    top: 70px;
  }
  
  /* ナビゲーション要素のタッチ領域拡大 */
  nav ul li a {
    padding: 1.2rem 1rem;
  }
  
  /* ゲームカードのボタンをタップしやすく */
  .game a::after {
    padding: 15px 0;
    font-size: 0.9rem;
  }
}

/*--------------------------------------------------------------
# タッチデバイス向け最適化
--------------------------------------------------------------*/
@media (hover: none) {
  /* タッチデバイスでのホバー効果を調整 */
  .game:hover, 
  .member:hover,
  section:hover,
  .back-button:hover,
  .social-link:hover,
  .sns-button:hover,
  .skill-tag:hover {
    transform: none;
  }
  
  /* クリック/タップ時の視覚的フィードバック */
  .game:active, 
  .member:active,
  .back-button:active,
  .social-link:active,
  .sns-button:active {
    transform: scale(0.98);
    transition: transform 0.1s;
  }
  
  /* ボタン要素のタッチ領域拡大 */
  button,
  .sns-button,
  nav ul li a,
  .back-button {
    padding: 12px 20px;
  }
  
  /* フォーム要素のタッチ操作最適化 */
  input, 
  textarea, 
  select {
    font-size: 16px; /* iOS自動ズームを防止 */
  }
}

/* メディアクエリのさらなる細分化 */
/* 極小スマートフォンサイズ */
@media screen and (max-width: 320px) {
  header h1 {
    font-size: 1.1rem;
  }
  
  section h2 {
    font-size: 1.3rem;
  }
  
  .member-info h3,
  .blog-post h3 {
    font-size: 1.1rem;
  }
  
  .profile-details h2 {
    font-size: 1.5rem;
  }
  
  /* フォームとボタンの幅を最適化 */
  form button,
  .back-button {
    width: 100%;
  }
  
  /* 極小画面でのパディングを縮小 */
  section {
    padding: 1rem 0.8rem;
  }
  
  /* メニューのスペース最適化 */
  nav ul li a {
    padding: 0.8rem;
  }
}

/* プリント用スタイル */
@media print {
  body {
    background: white;
    color: black;
  }
  
  header, 
  footer, 
  .nav-trigger,
  .scroll-progress,
  form button {
    display: none;
  }
  
  section {
    page-break-inside: avoid;
    border: none;
    box-shadow: none;
    margin: 1cm 0;
  }
  
  a {
    color: #000;
    text-decoration: none;
  }
}