/* 全体スタイル */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #0f1923;
  color: #f0f0f0;
  font-family: 'M PLUS Rounded 1c', sans-serif;
}

/* カーソルトレイル */
.cursor-trail {
  position: fixed;
  top: 0;
  left: 0;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(255,0,85,0.5), rgba(255,0,85,0.3));
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  box-shadow: 0 0 20px rgba(255,0,85,0.6);
}

/* モバイルではカーソルトレイルを非表示 */
@media (max-width: 768px), (hover: none) {
  .cursor-trail {
    display: none !important;
  }
}

/* VALORANTロゴスタイル */
.valorant-logo {
  display: inline-block;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 900;
  font-size: 2rem;
  color: #ff4655;
  text-transform: uppercase;
  letter-spacing: 3px;
  position: relative;
  text-shadow: 0 0 10px rgba(255, 70, 85, 0.5);
}

.valorant-logo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(255, 70, 85, 0.3), transparent);
  animation: scan 2s linear infinite;
  z-index: 1;
}

.valorant-logo::after {
  content: 'V';
  position: absolute;
  left: -10px;
  top: -5px;
  font-size: 3rem;
  color: #00d4ff;
  opacity: 0.7;
  z-index: -1;
  transform: skew(-15deg);
}

@keyframes scan {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ナビゲーションロゴ */
.navbar-brand {
  position: absolute;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
}

.navbar-brand .valorant-logo {
  font-size: 1.5rem;
  letter-spacing: 2px;
}

/* ナビゲーション */
.navbar {
  background-color: #1a1f25;
  padding: 1rem;
  text-align: center;
  position: relative;
}

/* デスクトップのナビゲーションメニュー */
.nav-menu {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

/* モバイルメニューボタン（デスクトップでは非表示） */
.mobile-menu-toggle {
  display: none; /* デスクトップでは非表示 */
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: #f0f0f0;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

.navbar a {
  color: #f0f0f0;
  text-decoration: none;
  font-weight: bold;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: #ff4655;
}

/* アクティブなナビゲーションリンク */
.navbar a.active {
  color: #ff4655;
  background-color: rgba(255, 70, 85, 0.1);
  border: 1px solid #ff4655;
}

/* ヒーロー */
.hero {
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 70, 85, 0.1), transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.headline {
  font-size: 5rem;
  color: #ff4655;
  font-weight: 900;
  margin-bottom: 1rem;
  text-shadow: 0 0 20px rgba(255, 70, 85, 0.5);
  animation: pulse-glow 2s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
  0% { text-shadow: 0 0 20px rgba(255, 70, 85, 0.5); }
  100% { text-shadow: 0 0 30px rgba(255, 70, 85, 0.8), 0 0 40px rgba(255, 70, 85, 0.3); }
}

.typing-text {
  font-size: 2rem;
  margin-bottom: 2rem;
  height: 3rem;
}

.typing-label {
  color: #f0f0f0;
}

.typing-words {
  color: #00d4ff;
  font-weight: bold;
  border-right: 2px solid #00d4ff;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { border-color: #00d4ff; }
  51%, 100% { border-color: transparent; }
}

.hero-description {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.2rem;
  color: #e0e0e0;
  line-height: 1.6;
}

/* 統計ダッシュボード */
.stats-dashboard {
  max-width: 1400px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.dashboard-title {
  text-align: center;
  font-size: 2.5rem;
  color: #ff4655;
  margin-bottom: 3rem;
  position: relative;
}

.dashboard-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(45deg, #ff4655, #00d4ff);
}

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

.stat-card {
  background: linear-gradient(135deg, #1a1f25, #0f1923);
  border: 2px solid #333;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

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

.stat-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: #ff4655;
  box-shadow: 0 15px 35px rgba(255, 70, 85, 0.3);
}

.stat-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  color: #00d4ff;
  display: inline-block;
  text-shadow: 0 2px 4px rgba(0, 212, 255, 0.3);
}

.stat-unit {
  font-size: 1.5rem;
  color: #00d4ff;
  display: inline-block;
  margin-left: 0.5rem;
}

.stat-label {
  color: #f0f0f0;
  font-size: 1.1rem;
  margin: 1rem 0;
  font-weight: 600;
}

.stat-bar {
  width: 100%;
  height: 8px;
  background: #333;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 1rem;
}

.progress {
  height: 100%;
  width: 0%;
  border-radius: 4px;
  transition: width 2s ease-in-out;
}

.programming-progress { background: linear-gradient(45deg, #00d4ff, #42a5f5); }
.anime-progress { background: linear-gradient(45deg, #ff6b35, #ff8c42); }
.music-progress { background: linear-gradient(45deg, #f39c12, #e67e22); }
.movies-progress { background: linear-gradient(45deg, #e74c3c, #c0392b); }

/* ナビゲーションセクション */
.navigation-section {
  max-width: 1400px;
  margin: 6rem auto;
  padding: 0 2rem;
}

.nav-title {
  text-align: center;
  font-size: 2.5rem;
  color: #ff4655;
  margin-bottom: 3rem;
}

.navigation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.nav-card {
  position: relative;
  background: linear-gradient(135deg, #1a1f25, #0f1923);
  border: 2px solid #333;
  border-radius: 16px;
  padding: 2.5rem;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-card:hover .nav-background {
  opacity: 0.1;
}

.nav-card.about:hover .nav-background { background: linear-gradient(45deg, #ff4655, #ff6b77); }
.nav-card.hobbies:hover .nav-background { background: linear-gradient(45deg, #00d4ff, #42a5f5); }
.nav-card.games:hover .nav-background { background: linear-gradient(45deg, #f39c12, #e67e22); }
.nav-card.music:hover .nav-background { background: linear-gradient(45deg, #9b59b6, #8e44ad); }
.nav-card.contact:hover .nav-background { background: linear-gradient(45deg, #2ecc71, #27ae60); }

.nav-card:hover {
  transform: translateY(-15px) rotateX(5deg) rotateY(5deg);
  border-color: #ff4655;
  box-shadow: 0 20px 40px rgba(255, 70, 85, 0.3);
}

.nav-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.nav-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.nav-card h3 {
  font-size: 1.8rem;
  color: #ff4655;
  margin-bottom: 1rem;
  font-weight: 700;
}

.nav-card p {
  color: #e0e0e0;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.nav-arrow {
  font-size: 1.5rem;
  color: #00d4ff;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.nav-card:hover .nav-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ライブアクティビティ */
.live-activity {
  max-width: 1000px;
  margin: 6rem auto;
  padding: 0 2rem;
}

.activity-title {
  text-align: center;
  font-size: 2.5rem;
  color: #ff4655;
  margin-bottom: 3rem;
}

.activity-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.activity-item {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1a1f25, #0f1923);
  border: 1px solid #333;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.activity-item:hover {
  border-color: #ff4655;
  transform: translateX(10px);
  box-shadow: 0 8px 25px rgba(255, 70, 85, 0.2);
}

.activity-status {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 1.5rem;
  animation: pulse-status 2s infinite;
}

.activity-status.online { background: #2ecc71; }
.activity-status.active { background: #00d4ff; }
.activity-status.idle { background: #f39c12; }

@keyframes pulse-status {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.2); }
}

.activity-content h4 {
  color: #00d4ff;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.activity-content p {
  color: #e0e0e0;
  margin: 0;
  line-height: 1.6;
}

/* メイン画像 */
.featured-image {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem auto;
}

.featured-image img {
  width: 90%;
  max-width: 800px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(255,70,85,0.3);
  border: 2px solid #ff4655;
}

/* スライドショー（1枚ずつ切り替え型） */
.slideshow {
  position: relative;
  width: 90%;
  max-width: 800px;
  margin: 2rem auto;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(255,70,85,0.3);
  border: 2px solid #ff4655;
}

.slide {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 アスペクト比 */
}

.slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide img.active {
  opacity: 1;
}

/* フッター */
footer {
  background: #1a1f25;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

.footer-nav a {
  color: #f0f0f0;
  margin: 0 0.5rem;
  text-decoration: none;
  transition: color 0.3s ease;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
}

.footer-nav a:hover {
  color: #ff4655;
}

/* About Meページ */
.about-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.profile-card {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  background: linear-gradient(135deg, #1a1f25, #0f1923);
  border: 2px solid #ff4655;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(255, 70, 85, 0.3);
}

.profile-image img {
  width: 100%;
  border-radius: 12px;
  border: 2px solid #ff4655;
}

.skills {
  margin-top: 2rem;
}

.skill-list {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.skill-tag {
  background: #ff4655;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: bold;
}

/* コンタクトフォーム */
.contact-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.contact-form-container {
  background: linear-gradient(135deg, #1a1f25, #0f1923);
  border: 2px solid #ff4655;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(255, 70, 85, 0.3);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #ff4655;
  font-weight: bold;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: #0f1923;
  border: 2px solid #333;
  border-radius: 8px;
  color: #f0f0f0;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #ff4655;
  box-shadow: 0 0 10px rgba(255, 70, 85, 0.3);
}

.submit-btn {
  background: linear-gradient(45deg, #ff4655, #ff6b77);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 70, 85, 0.4);
}

/* 趣味グリッド */
.hobby-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

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

.hobby-card {
  background: linear-gradient(135deg, #1a1f25, #0f1923);
  border: 2px solid #ff4655;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease;
  box-shadow: 0 8px 32px rgba(255, 70, 85, 0.2);
}

.hobby-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(255, 70, 85, 0.4);
}

.hobby-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* ゲームリスト */
.game-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.game-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.game-item {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  background: linear-gradient(135deg, #1a1f25, #0f1923);
  border: 2px solid #ff4655;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(255, 70, 85, 0.2);
}

.game-item.featured {
  border-color: #00d4ff;
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.3);
}

.game-image img {
  width: 100%;
  border-radius: 8px;
}

.rank {
  color: #00d4ff;
  font-weight: bold;
  margin: 0.5rem 0;
}

.agent-tag {
  background: #00d4ff;
  color: #0f1923;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: bold;
  margin-right: 0.5rem;
}

/* 音楽グリッド */
.music-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.music-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.music-card {
  background: linear-gradient(135deg, #1a1f25, #0f1923);
  border: 2px solid #ff4655;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease;
}

.music-card:hover {
  transform: translateY(-5px);
}

.music-cover {
  width: 150px;
  height: 150px;
  background: linear-gradient(45deg, #ff4655, #00d4ff);
  border-radius: 12px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
}

.play-button {
  font-size: 2rem;
  color: white;
  transition: transform 0.3s ease;
}

.music-cover:hover .play-button {
  transform: scale(1.2);
}

/* ヒーローセクションのロゴ強化 */
.hero-logo {
  margin-bottom: 2rem;
}

.hero-logo .valorant-logo {
  font-size: 3rem;
  letter-spacing: 5px;
}

/* ゲームカード内のVALORANTロゴ */
.game-valorant-logo {
  font-size: 1.2rem;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

/* レスポンシブ対応 */
@media (max-width: 600px) {
  .headline {
    font-size: 2.5rem;
  }

  .navbar ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .slide-group img {
    width: 200px;
  }

  .slide-track {
    width: calc(200px * 6 + 20px * 6);
  }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  /* モバイルナビゲーション */
  .mobile-menu-toggle {
    display: flex !important;
  }
  
  /* デスクトップメニューを隠す */
  .nav-menu {
    position: fixed !important;
    top: 60px;
    left: -100% !important;
    width: 100%;
    height: calc(100vh - 60px);
    background-color: #1a1f25;
    flex-direction: column !important;
    justify-content: flex-start;
    align-items: center;
    padding-top: 2rem;
    transition: left 0.3s ease;
    z-index: 1000;
    border-top: 2px solid #333;
    margin: 0;
    list-style: none;
    gap: 0 !important;
  }
  
  .nav-menu.active {
    left: 0 !important;
  }
  
  .nav-menu li {
    margin: 0.8rem 0;
    width: 100%;
    text-align: center;
  }
  
  .navbar a {
    padding: 1rem 2rem !important;
    font-size: 1.1rem !important;
    border-radius: 8px;
    display: block;
    width: 80%;
    margin: 0 auto;
    text-align: center;
    border: 1px solid transparent;
    transition: all 0.3s ease;
  }
  
  .navbar a:hover,
  .navbar a.active {
    background-color: rgba(255, 70, 85, 0.1) !important;
    border-color: #ff4655 !important;
    color: #ff4655 !important;
  }

  /* ナビゲーション基本設定 */
  .navbar {
    padding: 0.8rem 1rem !important;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  /* ヒーローセクション */
  .hero {
    padding: 4rem 1rem 2rem;
  }
  
  .headline {
    font-size: 3rem;
  }
  
  .typing-text {
    font-size: 1.2rem;
  }
  
  /* 統計ダッシュボード */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  
  .stat-card {
    padding: 1rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  /* ナビゲーションカード */
  .navigation-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .nav-card {
    padding: 2rem;
  }
  
  /* プロフィールカード */
  .profile-card,
  .game-item {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  /* 趣味・音楽グリッド */
  .hobby-grid,
  .music-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  /* 超小型画面対応 */
  .mobile-menu-toggle {
    display: flex !important;
  }
  
  .nav-menu {
    position: fixed !important;
    top: 60px;
    left: -100% !important;
    flex-direction: column !important;
    gap: 0 !important;
  }
  
  .nav-menu.active {
    left: 0 !important;
  }
  
  .hero {
    padding: 3rem 1rem 2rem;
  }
  
  .headline {
    font-size: 2.5rem;
  }
  
  .navbar a {
    padding: 0.8rem 1.5rem !important;
    font-size: 1rem !important;
    width: 90%;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-card {
    padding: 0.8rem;
  }
  
  .nav-card {
    padding: 1.5rem;
  }
  
  .nav-card h3 {
    font-size: 1.2rem;
  }
}
