@import url('https://fonts.googleapis.com/css2?family=RocknRoll+One&family=Yusei+Magic&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Yusei Magic", sans-serif;
  font-weight: 400;
  font-style: normal;
  background: #0a0a0a;
  color: #e0e0e0;
  min-height: 100vh;
}

header {
  background: rgba(20, 20, 20, 0.95);
  padding: 1rem 2rem;
  box-shadow: 0 2px 10px rgba(255, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 0, 0, 0.3);
}

.header-content {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(255, 0, 0, 0.5);
}

.submit-game-btn {
  background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
}

.submit-game-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 25px rgba(255, 0, 0, 0.6);
}

.container {
  max-width: 1440px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.hero {
  text-align: center;
  padding: 3rem 0;
  color: white;
  background: linear-gradient(180deg, rgba(255, 0, 0, 0.1) 0%, transparent 100%);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

.hero p {
  font-size: 1.3rem;
  opacity: 0.9;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.game-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  cursor: pointer;
}

.game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.game-thumbnail {
  width: 100%;
  height: 250px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
  overflow: hidden;
}

.game-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-info {
  padding: 1.5rem;
}

.game-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #333;
}

.game-author {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.game-genre {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: #f0f0f0;
  border-radius: 15px;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.8rem;
}

.game-description {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.storage-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: #4285f4;
  color: white;
  border-radius: 15px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.button-group {
  display: flex;
  gap: 0.5rem;
}

.download-btn,
.view-btn {
  flex: 1;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: opacity 0.2s;
  text-decoration: none;
  display: block;
  text-align: center;
}

.view-btn {
  background: #3498db;
}

.download-btn:hover,
.view-btn:hover {
  opacity: 0.9;
}

.report-btn {
  background: #ff4757;
  color: white;
  border: none;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: opacity 0.2s;
}

.report-btn:hover {
  opacity: 0.8;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  max-width: 1000px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  margin: 2rem;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.modal-title::before,
.modal-title::after {
  content: '';
  width: 40px;
  height: 3px;
  background: #333;
  border-radius: 2px;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
}

.info-box {
  background: #e3f2fd;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 5px;
}

.info-box h3 {
  color: #1976d2;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.info-box p,
.info-box li {
  color: #333;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.info-box ul {
  margin-top: 0.5rem;
  margin-left: 1.2rem;
}

.info-box strong {
  color: #1976d2;
}

.warning-box {
  background: #fff3cd;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 5px;
}

.warning-box h3 {
  color: #856404;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.warning-box p {
  color: #333;
  font-size: 0.9rem;
}

.email-template {
  background: #f8f9fa;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1rem 0;
  font-family: monospace;
  font-size: 0.9rem;
  line-height: 1.8;
  white-space: pre-wrap;
  color: #ff0000;
}

.copy-btn {
  background: #28a745;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  transition: opacity 0.2s;
}

.copy-btn:hover {
  opacity: 0.8;
}

.detail-image {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 1.5rem;
}

.detail-video {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 10px;
  margin-bottom: 1.5rem;
}

.detail-section {
  margin-bottom: 2rem;
  position: relative;
}

.detail-section h3 {
  color: #333;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.media-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.media-gallery > div {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.media-gallery img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  cursor: zoom-in;
  transition: transform 0.2s;
}

.media-gallery > div:hover img {
  transform: scale(1.05);
}

.detail-image {
  cursor: zoom-in;
  transition: opacity 0.3s;
}

.detail-image:hover {
  opacity: 0.9;
}

.empty-state {
  text-align: center;
  padding: 3rem;
  color: white;
}

.empty-state h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.step-number {
  display: inline-block;
  width: 30px;
  height: 30px;
  background: #667eea;
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 30px;
  font-weight: bold;
  margin-right: 0.5rem;
}

.step-item {
  margin-bottom: 1.5rem;
  padding-left: 2.5rem;
  position: relative;
}

.step-item .step-number {
  position: absolute;
  left: 0;
  top: 0;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.radio-option {
  display: flex;
  align-items: center;
  padding: 0.8rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.radio-option:hover {
  border-color: #667eea;
  background: #f8f9ff;
}

.radio-option input[type="radio"] {
  width: auto;
  margin-right: 0.8rem;
}

.radio-option label {
  cursor: pointer;
  margin: 0;
  flex: 1;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
}

.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  min-height: 100px;
}

.submit-btn {
  width: 100%;
  background: #ff4757;
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  transition: opacity 0.2s;
}

.submit-btn:hover {
  opacity: 0.9;
}

/* レスポンシブ対応: 768px以下 */
@media (max-width: 768px) {
  .games-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .container {
    padding: 0 1rem;
  }

  .header-content {
    padding: 0.5rem 0;
  }

  .logo {
    font-size: 1.4rem;
  }

  .submit-game-btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  .modal-content {
    width: 95%;
    max-height: 90vh;
    margin: 1rem;
  }

  .game-thumbnail {
    height: 200px;
  }
}

/* パンくずリスト */
.breadcrumb {
  max-width: 1440px;
  margin: 20px auto;
  padding: 10px 20px;
  background-color: rgba(30, 30, 30, 0.8);
  border-radius: 8px;
}

.breadcrumb ol {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: #e0e0e0;
}

.breadcrumb li:not(:last-child)::after {
  content: "›";
  margin: 0 8px;
  color: #999;
}

.breadcrumb a {
  color: #ff6666;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: #ff3333;
  text-decoration: underline;
}