@charset "UTF-8";

/*-------------------------------------------
大会履歴詳細ページ
-------------------------------------------*/

.tournament-detail {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 16px;
}


.tournament-image {
  margin: 0;
  overflow: hidden;
}

.tournament-image img {
  width: 100%;
  height: auto;
  display: block;
}

.tournament-content {
  padding: 0;
  line-height: 1.8;
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 40px;
}

.tournament-content > div {
  margin-bottom: 30px;
}

.tournament-content h2 {
  color: #ff6b35;
  font-size: 1.5rem;
  margin-top: 30px;
  margin-bottom: 15px;
  padding-bottom: 10px;
}

.tournament-content h3 {
  color: #333;
  font-size: 1.3rem;
  margin-top: 0;
  margin-bottom: 0;
}

.tournament-content p {
  margin-bottom: 15px;
}

.tournament-content ul,
.tournament-content ol {
  margin-bottom: 15px;
  padding-left: 20px;
}

.tournament-content li {
  margin-bottom: 8px;
}

/* 写真セクション */
.tournament-photos {
  margin-top: 40px;
  padding: 40px;
  background: #f8f9fa;
  border-top: 1px solid #eee;
}

.photos-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 30px;
  text-align: center;
  padding-bottom: 15px;
  border-bottom: 3px solid #ff6b35;
}

.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

.photo-item {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.photo-image {
  position: relative;
  overflow: hidden;
}

.photo-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.photo-item:hover .photo-image img {
  transform: scale(1.05);
}

.photo-info {
  padding: 20px;
}

.photo-description {
  font-size: 1rem;
  color: #333;
  margin-bottom: 12px;
  line-height: 1.5;
  font-weight: 500;
}

.photo-submitter {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
  font-style: italic;
}

.no-photos {
  text-align: center;
  padding: 60px 20px;
  color: #666;
  background: white;
  border-radius: 12px;
  border: 2px dashed #ddd;
}

.no-photos p {
  margin: 0;
  font-size: 1.1rem;
}

/* 協賛企業セクション */
.tournament-sponsors {
  margin-top: 40px;
  padding: 40px 0;
  background: #f8f9fa;
  border-top: 1px solid #eee;
}

.sponsors-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 30px;
  padding-bottom: 15px;
}

.sponsors-page-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin: 40px 0;
}

.sponsor-page-item {
  background: white;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  position: relative;
}

.sponsor-page-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.sponsor-stars-container {
  width: 100%;
  margin-bottom: 15px;
  order: -1; /* Stars at the top */
}

.sponsor-page-stars {
  display: flex;
  gap: 2px;
  justify-content: center; /* Centered stars */
  flex-wrap: wrap;
  width: 100%;
}

.sponsor-page-stars .star {
  color: #ff6b35;
  font-size: 1rem;
}

.sponsor-page-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: #333;
  margin: 0;
  line-height: 1.4;
  order: 0; /* Name after stars */
}

.sponsor-page-name a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.sponsor-page-name a:hover {
  color: #ff6b35;
}

.sponsor-page-logo {
  order: 1; /* Logo after name */
}

.sponsor-page-logo .sponsor-logo-img {
  max-width: 100%;
  height: auto;
  max-height: 80px;
  object-fit: contain;
}

.no-sponsors {
  text-align: center;
  padding: 60px 20px;
  color: #666;
  background: white;
  border-radius: 12px;
  border: 2px dashed #ddd;
}

.no-sponsors p {
  margin: 0;
  font-size: 1.1rem;
}

/* アクションボタン */
.tournament-actions {
  padding: 40px 0;
  text-align: center;
  margin-top: 40px;
}

.tournament-actions .btn {
  display: inline-block;
  padding: 15px 30px;
  margin: 0 10px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.tournament-actions .btn-primary {
  background: #ff6b35;
  color: white;
  border-color: #ff6b35;
}

.tournament-actions .btn-primary:hover {
  background: #e55a2b;
  border-color: #e55a2b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.tournament-actions .btn-secondary {
  background: transparent;
  color: #ff6b35;
  border-color: #ff6b35;
}

.tournament-actions .btn-secondary:hover {
  background: #ff6b35;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  
  .tournament-content {
    font-size: 1rem;
  }
  
  .tournament-photos {
    padding: 30px 0;
  }
  
  .photos-title {
    font-size: 1.5rem;
  }
  
  .photos-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
  
  .photo-image img {
    height: 180px;
  }
  
  .tournament-actions {
    padding: 30px 0;
  }
  
  .tournament-actions .btn {
    display: block;
    margin: 10px auto;
    max-width: 200px;
  }
  
  .sponsors-page-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 30px 0;
  }
  
  .sponsor-page-item {
    padding: 20px;
    gap: 12px;
  }
}

@media screen and (max-width: 480px) {
  
  .tournament-content {
    padding: 25px 15px;
  }
  
  .tournament-photos {
    padding: 25px 15px;
  }
  
  .photos-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .photo-image img {
    height: 200px;
  }
  
  .tournament-actions {
    padding: 20px 15px 25px;
  }
  
  .sponsors-page-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}
