/* --- デザイン設定 --- */
:root {
  --bg: #0f1115;
  --card: #1a1d24;
  /* ご希望のネオンピンク！ */
  --primary: #ff33cc; 
  --primary-hover: #ff66dd;
  --primary-glow: rgba(255, 51, 204, 0.4);
  --text: #ffffff;
  --text-sub: #9ca3af;
  --border: rgba(255, 255, 255, 0.1);
}

body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; display: block; }

/* コンテナ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

/* --- ヘッダー --- */
.landing-header, .page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  margin-bottom: 40px;
}

.header-logo {
  height: 40px; /* ロゴの高さ調整 */
  width: auto;
}

.status-badge {
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 15px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-family: monospace;
  border: 1px solid var(--border);
}

/* --- ヒーローセクション (トップ画面) --- */
.hero-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 左右2分割 */
  align-items: center;
  gap: 50px;
  margin-top: 40px;
}

/* 左側テキスト */
.main-title {
  font-size: 4rem;
  line-height: 1.1;
  font-weight: 900;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.text-gradient {
  color: var(--primary);
  text-shadow: 0 0 20px var(--primary-glow);
}

.sub-text {
  font-size: 1.1rem;
  color: var(--text-sub);
  margin-bottom: 40px;
}

/* 右側画像 */
.hero-image {
  position: relative;
  /* ↓ この2行を追加します！ ↓ */
  opacity: 0; /* 最初は見えなくする */
  animation: zoomInHero 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards; /* アニメーション設定 */
}

.hero-image {
  position: relative;
  opacity: 0;
  /* ↓ たっぷり3秒かけます */
  animation: zoomInHero 3s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.hero-image img {
  width: 100%;
  border-radius: 20px;
  /* ↓ ピンクの光と深い黒の影を組み合わせて、浮遊感を強調！ */
  box-shadow: 0 30px 60px -12px rgba(255, 51, 204, 0.5), 
              0 50px 120px -20px rgba(0, 0, 0, 0.8);
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255,255,255,0.1);
}

/* 背後の光るエフェクト */
.glow-effect {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: var(--primary);
  filter: blur(80px);
  opacity: 0.4;
  z-index: 1;
  border-radius: 50%;
}

/* --- ボタンデザイン --- */
.btn-neon {
  background: var(--primary);
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 0 20px var(--primary-glow);
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-block;
}

.btn-neon:hover {
  transform: translateY(-2px);
  background: var(--primary-hover);
  box-shadow: 0 0 30px var(--primary-glow);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 25px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: bold;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }

.sub-links {
  margin-top: 20px;
  display: flex;
  gap: 20px;
}

.link-text {
  color: var(--text-sub);
  font-size: 0.9rem;
  border-bottom: 1px solid transparent;
}
.link-text:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.note {
  margin-top: 40px;
  font-size: 0.8rem;
  color: #555;
}

/* --- プロフィールページ用 (以前のスタイルを継承) --- */
.profile-header {
  display: flex; align-items: center; gap: 30px; margin-bottom: 40px;
  padding-bottom: 30px; border-bottom: 1px solid var(--border);
}
.profile-avatar img {
  width: 120px; height: 120px; border-radius: 50%; border: 3px solid var(--primary);
}
.profile-info h1 { font-size: 2rem; margin: 0 0 15px 0; }
.handle { font-size: 1rem; color: var(--text-sub); font-weight: normal; }
.profile-stats { display: flex; gap: 30px; }
.stat-value { font-size: 1.5rem; font-weight: bold; }
.stat-label { font-size: 0.9rem; color: var(--text-sub); }

.nft-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px;
}
.nft-card {
  background: var(--card); border-radius: 16px; overflow: hidden; border: 1px solid var(--border);
  transition: transform 0.2s;
}
.nft-card:hover { transform: translateY(-5px); border-color: var(--primary); }
.nft-img-wrapper { position: relative; height: 200px; }
.nft-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.badge-votes {
  position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,0.7); color: var(--primary);
  padding: 4px 8px; border-radius: 6px; font-size: 0.75rem; font-weight: bold;
}
.nft-info { padding: 15px; }
.nft-title { font-weight: bold; margin-bottom: 15px; font-size: 0.95rem; }
.btn-vote {
  width: 100%; padding: 12px; border-radius: 8px; border: none;
  background: var(--primary); color: white; font-weight: bold; cursor: pointer;
}
.btn-vote:hover { background: var(--primary-hover); box-shadow: 0 0 15px var(--primary-glow); }

/* スマホ対応 */
@media (max-width: 768px) {
  .hero-wrapper { grid-template-columns: 1fr; text-align: center; }
  .main-title { font-size: 2.5rem; }
  .landing-text-block { margin: 0; text-align: center; }
  .sub-links { justify-content: center; }
  .hero-image { order: -1; margin-bottom: 20px; } /* スマホでは画像を上に */
}
/* --- アニメーション定義 --- */
@keyframes zoomInHero {
  0% {
    opacity: 0;
    transform: scale(1.5) translateY(30px); /* 最初は1.5倍で少し下に */
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0); /* 元のサイズと位置に戻る */
  }
}
/* --- メニューセクション --- */
.menu-section {
  margin-top: 80px;
  padding-bottom: 60px;
}

.menu-title {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 30px;
  color: var(--text-sub);
  letter-spacing: 0.1em;
  border-left: 4px solid var(--primary);
  padding-left: 15px;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.menu-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 25px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}

.menu-card:hover {
  background: rgba(255, 51, 204, 0.1);
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px -10px rgba(255, 51, 204, 0.3);
}

.menu-card .icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 15px;
}

.menu-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 5px 0;
  color: white;
}

.menu-card p {
  font-size: 0.9rem;
  color: var(--text-sub);
  margin: 0;
}

/* Coming Soon (Disabled) */
.menu-card.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  border-style: dashed;
}
.menu-card.disabled:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

/* ドキュメント・チュートリアル用スタイル */
.doc-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  color: #eee;
}
.doc-header { text-align: center; margin-bottom: 50px; }
.doc-title { font-size: 2.5rem; font-weight: 900; color: var(--primary); margin-bottom: 10px; }
.doc-section { margin-bottom: 60px; background: #15181e; padding: 30px; border-radius: 20px; border: 1px solid #333; }
.doc-section h2 { border-bottom: 2px solid var(--primary); padding-bottom: 10px; margin-bottom: 20px; font-size: 1.5rem; }
.doc-section h3 { color: var(--primary); margin-top: 30px; margin-bottom: 10px; }
.doc-section p, .doc-section li { color: #ccc; line-height: 1.8; margin-bottom: 10px; }
.doc-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.doc-table th, .doc-table td { border: 1px solid #444; padding: 12px; text-align: left; }
.doc-table th { background: #222; color: var(--primary); }
/* --- 戻るボタン (共通) --- */
.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #aaa;
  font-weight: bold;
  font-size: 0.9rem;
  text-decoration: none;
  transition: 0.3s;
  padding: 8px 12px;
  border-radius: 8px;
}
.nav-back:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}
.nav-back span {
  font-size: 1.2rem;
}