/* ========================
   兵庫クラブユースサッカー連盟 共通スタイル
   ======================== */

:root {
  --primary-color: #0066cc;
  --secondary-color: #00a859;
  --dark-color: #1a1a1a;
  --light-gray: #f5f5f5;
  --border-color: #e0e0e0;
  --text-color: #333;
  --white: #ffffff;
  --shadow: 0 2px 10px rgba(0,0,0,0.1);
  --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
}

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

body {
  font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--white);
}


/* ========================
   Hero Section
   ======================== */
.hero {
  text-align: center;
  padding-top: 0rem;        /* ★ 追加：上部に余白を追加 */
  padding-bottom: 3rem;     /* ★ 追加：下部にも余白を追加 */
  background-color: #f9f9f9;  /* ★ 追加：背景色で視認性を向上 */
}

.hero h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  font-weight: 700;  /* ★ 追加：フォント太さを強調 */
}

.hero .en-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 0.95rem;
  opacity: 0.95;
  margin-top: 0.5rem;  /* ★ 追加：英語タイトルとの間隔 */
}

/* ========================
   Section Container
   ======================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.section {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 1.5rem;
  color: var(--dark-color);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--primary-color);
  display: inline-block;
}
/* ========================
   Tournament Cards
   ======================== */
.tournament-cards {
  display: grid;
  gap: 1rem;
}
.tournament-card {
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 1.5rem;
  transition: all 0.3s;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.tournament-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.tournament-card h3 {
  font-size: 1.1rem;
  color: var(--dark-color);
  margin-bottom: 0;
  flex: 1;
}
.tournament-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.tournament-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--light-gray);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-color);
}
.tournament-tag.year {
  background: var(--primary-color);
  color: var(--white);
}
/* ========================
   Team Cards
   ======================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.team-card {
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 1rem;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
}

.team-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.team-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  background: var(--light-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary-color);
  overflow: hidden;
}

.team-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

.team-info {
  font-size: 0.8rem;
  color: #666;
}

/* ========================
   Search Form
   ======================== */
.search-form {
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--dark-color);
  font-size: 0.9rem;
}

.form-group select,
.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
  transition: border 0.3s;
}

.form-group select:focus,
.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
  min-height: 120px;
  resize: vertical;
}

.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
  cursor: pointer;
}

/* ========================
   Buttons
   ======================== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--primary-color);
  color: var(--white);
  text-decoration: none;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s;
  text-align: center;
}

.btn:hover {
  background: #0052a3;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: var(--secondary-color);
}

.btn-secondary:hover {
  background: #008a49;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--white);
}

.btn-block {
  width: 100%;
  display: block;
}

/* ========================
   Banner Section
   ======================== */
.banner-grid {
  display: grid;
  gap: 1rem;
}

.banner-item {
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
}

.banner-item:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.banner-item i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.banner-item h4 {
  color: var(--dark-color);
  margin-bottom: 0.25rem;
}

.banner-item p {
  font-size: 0.85rem;
  color: #666;
}

/* ========================
   Footer
   ======================== */
.footer {
  background: var(--dark-color);
  color: var(--white);
  padding: 2rem 1rem;
  margin-top: 3rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--secondary-color);
}

.footer-copyright {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ========================
   Loading Spinner
   ======================== */
.loading {
  text-align: center;
  padding: 2rem;
  color: #666;
}

.spinner {
  border: 3px solid var(--light-gray);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ========================
   Filter Section
   ======================== */
.filter-section {
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

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

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-group h4 {
  margin-bottom: 0.75rem;
  color: var(--dark-color);
  font-size: 1rem;
}

/* ========================
   Match List
   ======================== */
.match-list {
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.match-date-group {
  background: var(--light-gray);
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: var(--dark-color);
}

.match-item {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.match-item:last-child {
  border-bottom: none;
}

.match-time {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.match-teams {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.match-score {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
  min-width: 60px;
  text-align: center;
}

/* ========================
   Detail Page
   ======================== */
.detail-header {
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.detail-logo {
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
  background: var(--light-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--primary-color);
}

.detail-title {
  font-size: 1.8rem;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

.detail-subtitle {
  color: #666;
  font-size: 1rem;
}

.info-card {
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.info-card h3 {
  font-size: 1.3rem;
  color: var(--dark-color);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
}

.info-row {
  display: flex;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

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

.info-label {
  font-weight: 600;
  color: var(--dark-color);
  min-width: 20%;
  flex-shrink: 0;
}

.info-value {
  color: var(--text-color);
  flex: 1;
}

/* ========================
   Gallery
   ======================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-top: 1rem;
}

.gallery img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 4px;
}

/* ========================
   PDF Downloads
   ======================== */
.download-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.download-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--light-gray);
  border-radius: 4px;
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.3s;
}

.download-item:hover {
  background: var(--border-color);
}

.download-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

/* ========================
   Responsive Design (Tablet & Desktop)
   ======================== */
@media (min-width: 768px) {
  .hamburger {
    display: none !important;
  }

  .nav-menu {
    display: flex !important;
    position: static !important;
    top: auto !important;
    right: auto !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .nav-menu ul {
    display: flex !important;
    flex-direction: row !important;
  }

  .nav-menu ul li {
    border-bottom: none !important;
    border: none !important;
  }

  .nav-menu ul li a {
    display: flex !important;
    align-items: center !important;
    color: rgba(255,255,255,0.9) !important;
  }

  .hero {
    padding-top: 0rem;      /* ★ 修正：タブレット以上で余白さらに増加 */
    padding-bottom: 4rem;
  }

  .hero h2 {
    font-size: 2.5rem;
  }
  
  .hero .en-title {
    font-size: 3rem;
  }
  
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .footer-links {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .gallery img {
    height: 200px;
  }
  
  .banner-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========================
   Utility Classes
   ======================== */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

.hidden {
  display: none;
}

/* ========================================
   管理画面専用 - 既存style.cssの最後に追加
   ======================================== */

/* 管理画面の.containerが共通style.cssと衝突しないように */
.admin-wrapper .main-wrapper > main.container {
  max-width: 1200px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 18px !important;
}

@media (max-width: 860px) {
  .admin-wrapper .main-wrapper > main.container {
    padding: 14px !important;
  }
}

/* 管理画面のHero調整 */
.admin-wrapper .hero {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* ヘッダーとの間隔 */
.hero {
  padding: 4rem 2rem 3rem;
  margin-top: 0;
}
@media (max-width: 768px) {
  .hero {
    padding: 3rem 1.5rem 2rem;
  }
}