/* styles.css */
:root {
  --primary: #007BFF;
  --bg: #111;
  --card-bg: rgba(255,255,255,0.05);
  --text: #eee;
  --radius: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', sans-serif;
  position: relative;
  overflow-x: hidden;
}

/* 背景シェイプ */
.background {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  overflow: hidden;
}
.shape {
  position: absolute;
  border-radius: 50%;
}
.shape1 { width:250px; height:250px; top:10%; left:15%; background:rgba(255,99,71,0.2); animation:float1 8s ease-in-out infinite alternate; }
.shape2 { width:200px; height:200px; top:60%; left:65%; background:rgba(60,179,113,0.2); animation:float2 10s ease-in-out infinite alternate; }
.shape3 { width:180px; height:180px; top:35%; left:80%; background:rgba(65,105,225,0.2); animation:float3 12s ease-in-out infinite alternate; }
.shape4 { width:220px; height:220px; top:20%; left:75%; background:rgba(255,215,0,0.2); clip-path:polygon(50% 0%,100% 100%,0% 100%); animation:float4 9s ease-in-out infinite alternate; }
.shape5 { width:150px; height:250px; top:70%; left:25%; background:rgba(147,112,219,0.2); transform:rotate(45deg); animation:float5 7s ease-in-out infinite alternate; }
.shape6 { width:100px; height:100px; top:50%; left:50%; background:transparent; border:3px solid rgba(255,99,71,0.4); clip-path:circle(); animation:float6 11s ease-in-out infinite alternate; }
.shape7 { width:180px; height:180px; top:80%; left:10%; background:transparent; border:2px dashed rgba(60,179,113,0.4); clip-path:polygon(0 0,100% 0,100% 100%); animation:float7 14s ease-in-out infinite alternate; }

@keyframes float1 { 0%{transform:translate(0,0);}100%{transform:translate(50px,-50px);} }
@keyframes float2 { 0%{transform:translate(0,0);}100%{transform:translate(-40px,40px);} }
@keyframes float3 { 0%{transform:translate(0,0);}100%{transform:translate(30px,30px);} }
@keyframes float4 { 0%{transform:translate(0,0);}100%{transform:translate(-60px,-30px);} }
@keyframes float5 { 0%{transform:translate(0,0);}100%{transform:translate(50px,60px);} }
@keyframes float6 { 0%{transform:translate(0,0);}100%{transform:translate(-20px,50px);} }
@keyframes float7 { 0%{transform:translate(0,0);}100%{transform:translate(60px,-20px);} }

/* ヘッダー */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--primary), #0056b3);
  padding: 24px 0;
  text-align: center;
}
.logo {
  font-size: 3rem;
  color: #fff;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce { 0%,100%{transform:translateY(0);}50%{transform:translateY(-8px);} }

/* メインコンテンツ */
main {
  width: 90%;
  max-width: 1920px;
  margin: auto;
  padding: 96px 0;
}

/* ゲーム一覧 */
.games-overview {
  display: grid;
  gap: 64px;
  grid-template-columns: 1fr;
}
@media (min-width: 1200px) {
  .games-overview {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "escape-ishi escape-kominka"
      "brick-house brick-house";
  }
  #escape-ishi { grid-area: escape-ishi; }
  #escape-kominka { grid-area: escape-kominka; }
  #brick-house  { grid-area: brick-house; }
}

/* 各ゲームセクション */
.game {
  background: var(--card-bg);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(0,0,0,0.7);
  margin: 0 24px;
}
.game-title {
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 24px;
}

/* カルーセル */
.carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.carousel.video-only {
  max-width: 850px;
  margin: 0 auto 32px;
  padding: 0;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
}
.slide.active { opacity: 1; }
.slide img,
.carousel.video-only .slide iframe {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius);
}

/* ストアバッジ */
.links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}
.store-badge {
  transition: transform 0.3s;
}
.store-badge.google {
  height: 80px;
}
.store-badge.apple {
  height: 65px;
}
.store-badge:hover {
  transform: scale(1.1);
}

/* その他応募作品 */
.others {
  margin-top: 96px;
}
.other-video-container {
  display: flex;
  justify-content: center;
  padding: 16px;
}
.other-video {
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(0,0,0,0.7);
}

/* メンバー紹介 */
.team {
  margin-top: 96px;
  text-align: center;
}
.team-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 64px;
  flex-wrap: wrap;
  margin: 32px auto 0;
}
.member-card {
  background: var(--card-bg);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(0,0,0,0.7);
  transition: transform 0.3s;
  text-align: center;
  width: 300px;
}
.member-card:hover {
  transform: translateY(-8px);
}
.member-card h3 {
  color: var(--primary);
  margin-bottom: 16px;
}
.x-btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 12px 16px;
  border-radius: 4px;
  text-decoration: none;
  margin-top: 12px;
  transition: background 0.3s;
}
.x-btn:hover {
  background: #0056b3;
}

/* フッター */
.site-footer {
  width: 90%;
  max-width: 1920px;
  margin: 0 auto;
  text-align: center;
  padding: 32px;
  color: #777;
  font-size: 0.9rem;
}

/* モバイル対応 */
@media (max-width: 767px) {
  main {
    padding: 48px 0;
  }
  .logo {
    font-size: 2rem;
  }
  .game {
    margin: 0 12px;
    padding: 16px;
  }
  .game-title {
    font-size: 1.5rem;
    margin-bottom: 16px;
  }
  .games-overview {
    gap: 32px;
  }
  .carousel {
    aspect-ratio: 4/3;
  }
  .links {
    flex-direction: column;
    gap: 8px;
  }
  .store-badge.google{
    height: 60px;
}
  .store-badge.apple {
    height: 55px;
  }
  .team-grid {
    flex-direction: column;
    gap: 32px;
    width: 100%;
  }
  .member-card {
    width: 90%;
    padding: 24px;
  }
  .others {
    margin-top: 48px;
  }
  .other-video-container {
    padding: 8px;
  }
}
