/* チーム詳細ページ - 画像デザインに基づくスタイル */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #87CEEB 0%, #E6F3FF 100%);
  min-height: 100vh;
}

/* ヘッダー */
.site-header {
  background: linear-gradient(135deg, #87CEEB 0%, #4A90E2 100%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: white;
  font-weight: bold;
  gap: 10px;
}

.logo img {
  height: 40px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 30px;
}

.main-nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* メインコンテンツ */
.main-content {
  max-width: 800px;
  margin: 20px auto;
  padding: 0 20px;
}

/* チームヒーロー */
.team-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 30px;
  color: white;
  text-align: center;
}

.team-hero-content {
  max-width: 600px;
  margin: 0 auto;
}

.team-badge {
  margin-bottom: 20px;
}

.team-badge img {
  width: 80px;
  height: 80px;
  border-radius: 15px;
  background: white;
  padding: 10px;
  object-fit: contain;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.team-logo-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  margin: 0 auto;
}

.team-name {
  font-size: 2rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.team-tags {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tag {
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.team-intro {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.95;
}

/* チーム詳細 */
.team-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-section {
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.section-title {
  background: #f8fafc;
  color: #2d3748;
  padding: 15px 20px;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  border-bottom: 1px solid #e2e8f0;
}

.info-grid {
  padding: 0;
}

.info-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  border-bottom: 1px solid #e2e8f0;
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  padding: 15px 20px;
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
  font-weight: 600;
  color: #4A90E2;
  font-size: 0.9rem;
}

.info-value {
  padding: 15px 20px;
  border-right: 1px solid #e2e8f0;
  color: #333;
}

.info-row .info-value:last-child {
  border-right: none;
}

/* 大会結果セクション */
.tournament-results {
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.tournament-results .section-title {
  background: #fff5f5;
  color: #e53e3e;
}

.tournament-results .section-title::before {
  content: "🏆 ";
}

.year-results {
  padding: 20px;
  border-bottom: 1px solid #e2e8f0;
}

.year-results:last-child {
  border-bottom: none;
}

.year-results h4 {
  color: #c53030;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.year-results ul {
  list-style: none;
}

.year-results li {
  padding: 8px 0;
  border-bottom: 1px solid #fed7d7;
  color: #333;
}

.year-results li:last-child {
  border-bottom: none;
}

.year-results strong {
  color: #c53030;
}

/* 関連リンク */
.contact-buttons {
  padding: 20px;
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.contact-btn.website {
  background: linear-gradient(135deg, #4A90E2 0%, #667eea 100%);
  color: white;
}

.contact-btn.instagram {
  background: linear-gradient(135deg, #E1306C 0%, #F77737 100%);
  color: white;
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Instagram埋め込み */
.instagram-embed {
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
}

.instagram-embed .section-title {
  background: linear-gradient(135deg, #E1306C 0%, #F77737 100%);
  color: white;
  margin: -20px -20px 20px -20px;
  border-radius: 15px 15px 0 0;
}

.instagram-embed .section-title::before {
  content: "📷 ";
}

/* ページアクション */
.page-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.btn-back, .btn-report {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-back {
  background: #718096;
  color: white;
}

.btn-report {
  background: #38B2AC;
  color: white;
}

.btn-back:hover, .btn-report:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* フッター */
.site-footer {
  background: #2d3748;
  color: white;
  padding: 20px 0;
  margin-top: 40px;
}

.footer-content {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
  .main-content {
    margin: 10px auto;
    padding: 0 10px;
  }

  .team-hero {
    padding: 20px;
    margin-bottom: 20px;
  }

  .team-name {
    font-size: 1.5rem;
  }

  .team-tags {
    flex-direction: column;
    align-items: center;
  }

  .info-row {
    grid-template-columns: 1fr;
  }

  .info-label {
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
  }

  .info-value {
    border-right: none;
  }

  .header-container {
    flex-direction: column;
    gap: 10px;
  }

  .main-nav {
    gap: 15px;
  }

  .contact-buttons {
    flex-direction: column;
    align-items: center;
  }

  .contact-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .page-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-back, .btn-report {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}