/* ============================
   リセットと基本設定
   ============================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", Meiryo, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

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

/* ============================
   ヘッダー
   ============================ */
.site-header {
  background-color: #003d82;
  color: #fff;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-img {
  height: 60px;
  width: auto;
}

.main-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  gap: 25px;
  align-items: center;
}

.nav-list a {
  color: #fff;
  font-weight: 500;
  padding: 8px 15px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

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

.menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: #fff;
  margin: 3px 0;
  transition: 0.3s;
}

/* ============================
   ページヘッダー
   ============================ */
.page-header {
  background: linear-gradient(135deg, #003d82 0%, #0056b3 100%);
  background-image:
    linear-gradient(to bottom, rgba(0, 61, 130, 0.7), rgba(0, 86, 179, 0.7)),
    url('../images/team-photo.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  padding: 100px 0;
  text-align: center;
  position: relative;
}

.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.page-header .container {
  position: relative;
  z-index: 2;
}

.page-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8),
               0 0 20px rgba(0, 0, 0, 0.5);
  letter-spacing: 2px;
}

.page-subtitle {
  margin-top: 15px;
  font-size: 1.1rem;
  opacity: 1;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.8),
               0 0 15px rgba(0, 0, 0, 0.5);
}

/* ============================
   メインビジュアル
   ============================ */
.main-visual {
  position: relative;
  height: 100vh;
  overflow: hidden;
  margin-top: -90px;
  padding-top: 90px;
}

.visual-content {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.site-title {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.site-subtitle {
  font-size: 1.5rem;
}

/* Next Game フローティングカード */
.next-game-float {
  position: absolute;
  bottom: 40px;
  right: 40px;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 25px;
  max-width: 400px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  z-index: 10;
}

.float-title {
  font-size: 1.5rem;
  color: #003d82;
  margin-bottom: 15px;
  font-weight: bold;
  text-align: center;
  border-bottom: 2px solid #e63946;
  padding-bottom: 10px;
}

.game-card-float {
  background-color: transparent;
}

.game-card-float .game-date {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #e63946;
}

.game-card-float .tournament-name {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #003d82;
}

.game-card-float .opponent {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}

.game-card-float .game-location,
.game-card-float .game-time {
  font-size: 0.9rem;
  margin-bottom: 5px;
  color: #666;
}

/* ============================
   セクション共通
   ============================ */
section {
  padding: 60px 0;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 40px;
  color: #003d82;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #e63946;
}

/* ============================
   お知らせセクション（トップページ）
   ============================ */
.news-section {
  background-color: #fff;
}

.news-list {
  max-width: 800px;
  margin: 0 auto;
}

.news-item {
  border-bottom: 1px solid #e0e0e0;
  padding: 20px 0;
  transition: background-color 0.3s ease;
}

.news-item:hover {
  background-color: #f8f9fa;
}

.news-date {
  display: block;
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.news-title {
  font-size: 1.1rem;
  color: #003d82;
}

.news-title a:hover {
  color: #e63946;
}

.view-more {
  text-align: center;
  margin-top: 30px;
}

.btn-more {
  display: inline-block;
  padding: 12px 30px;
  background-color: #003d82;
  color: #fff;
  border-radius: 25px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.btn-more:hover {
  background-color: #002d61;
}

/* ============================
   Next Game セクション
   ============================ */
.next-game-section {
  background: linear-gradient(135deg, #003d82 0%, #0056b3 100%);
  color: #fff;
}

.next-game-section .section-title {
  color: #fff;
}

.next-game-section .section-title::after {
  background-color: #ffd700;
}

.game-card {
  max-width: 600px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  backdrop-filter: blur(10px);
}

.game-date {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffd700;
}

.tournament-name {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.opponent {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 15px;
}

.game-location,
.game-time {
  font-size: 1rem;
  margin-bottom: 8px;
}

/* ============================
   Twitterセクション
   ============================ */
.twitter-section {
  background-color: #fff;
}

.twitter-embed {
  max-width: 600px;
  margin: 0 auto;
}

/* ============================
   チーム紹介ページ
   ============================ */
.motto-section {
  background-color: #fff;
  padding: 80px 0;
}

.motto-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.motto-text {
  font-size: 1.5rem;
  line-height: 1.8;
  color: #003d82;
  font-weight: bold;
  margin-bottom: 30px;
}

.motto-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
}

.message-section {
  background-color: #f8f9fa;
  padding: 80px 0;
}

.message-content {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.message-photo {
  flex: 0 0 250px;
  text-align: center;
}

.message-photo img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 15px;
}

.coach-name {
  font-weight: bold;
  font-size: 1.1rem;
  color: #003d82;
}

.message-text {
  flex: 1;
}

.message-text p {
  margin-bottom: 20px;
  line-height: 1.8;
  font-size: 1rem;
  color: #333;
}

/* カルーセル */
.carousel-section {
  background-color: #fff;
  padding: 80px 0;
}

.carousel-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.carousel-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel-slide {
  display: none;
  width: 100%;
}

.carousel-slide.active {
  display: block;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.carousel-slide img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.slide-caption {
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 15px;
  text-align: center;
  font-size: 1.1rem;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  font-size: 3rem;
  padding: 10px 20px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  z-index: 10;
}

.carousel-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ccc;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.indicator.active {
  background-color: #003d82;
}

/* ============================
   ギャラリーページ
   ============================ */
.gallery-section {
  background-color: #f8f9fa;
  padding: 60px 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  aspect-ratio: 1;
  background-color: #ddd;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: #fff;
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .item-overlay {
  transform: translateY(0);
}

.item-title {
  font-size: 1rem;
  font-weight: 500;
}

/* モーダル */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.95);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80%;
  object-fit: contain;
  animation: zoom 0.3s;
}

@keyframes zoom {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: #ccc;
}

#modal-caption {
  margin: 20px auto;
  text-align: center;
  color: #fff;
  font-size: 1.2rem;
  max-width: 80%;
}

.modal-prev,
.modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: none;
  font-size: 3rem;
  padding: 10px 20px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.modal-prev:hover,
.modal-next:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

.modal-prev {
  left: 20px;
}

.modal-next {
  right: 20px;
}

/* ============================
   メンバー募集ページ
   ============================ */
.recruitment-section {
  background-color: #fff;
  padding: 60px 0;
}

.recruitment-info {
  max-width: 900px;
  margin: 0 auto;
}

.info-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  padding: 25px 0;
  border-bottom: 1px solid #e0e0e0;
}

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

.info-label {
  font-weight: bold;
  color: #003d82;
  font-size: 1.1rem;
}

.info-value {
  color: #333;
  line-height: 1.8;
}

.contact-section {
  background-color: #f8f9fa;
  padding: 60px 0;
}

.form-description {
  text-align: center;
  color: #666;
  margin-bottom: 40px;
  font-size: 1rem;
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
  background-color: #fff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.required {
  color: #e63946;
  margin-left: 5px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #003d82;
}

.form-group textarea {
  resize: vertical;
}

.form-submit {
  text-align: center;
  margin-top: 30px;
}

.btn-submit {
  background-color: #003d82;
  color: #fff;
  border: none;
  padding: 15px 50px;
  font-size: 1.1rem;
  font-weight: 500;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-submit:hover {
  background-color: #002d61;
}

.form-message {
  max-width: 700px;
  margin: 20px auto 0;
  padding: 15px;
  border-radius: 5px;
  text-align: center;
  display: none;
}

.form-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  display: block;
}

.form-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  display: block;
}

/* ============================
   スケジュールページ
   ============================ */
.calendar-section {
  background-color: #fff;
  padding: 60px 0;
}

.calendar-description {
  text-align: center;
  color: #666;
  margin-bottom: 40px;
  line-height: 1.8;
}

.calendar-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.calendar-note {
  text-align: center;
  color: #999;
  font-size: 0.9rem;
  margin-top: 20px;
}

.schedule-list-section {
  background-color: #f8f9fa;
  padding: 60px 0;
}

.schedule-list {
  max-width: 900px;
  margin: 0 auto;
}

.schedule-item {
  display: flex;
  gap: 30px;
  background-color: #fff;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.schedule-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.schedule-item.highlight {
  border: 3px solid #e63946;
}

.schedule-date {
  flex: 0 0 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #003d82 0%, #0056b3 100%);
  color: #fff;
  border-radius: 8px;
  padding: 15px;
}

.schedule-date .month {
  font-size: 0.9rem;
  font-weight: 500;
}

.schedule-date .day {
  font-size: 2.5rem;
  font-weight: bold;
  line-height: 1;
  margin: 5px 0;
}

.schedule-date .weekday {
  font-size: 1rem;
}

.schedule-content {
  flex: 1;
}

.schedule-type {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.schedule-item.practice .schedule-type {
  background-color: #e8f4f8;
  color: #0077b6;
}

.schedule-item.game .schedule-type {
  background-color: #fff3cd;
  color: #856404;
}

.schedule-item.event .schedule-type {
  background-color: #d4edda;
  color: #155724;
}

.schedule-title {
  font-size: 1.3rem;
  color: #003d82;
  margin-bottom: 8px;
}

.schedule-opponent {
  font-size: 1.1rem;
  color: #e63946;
  margin-bottom: 8px;
  font-weight: 600;
}

.schedule-time,
.schedule-location {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 5px;
}

.schedule-time::before {
  content: "⏰ ";
}

.schedule-location::before {
  content: "📍 ";
}

/* ============================
   試合結果ページ
   ============================ */
.results-section {
  background-color: #f8f9fa;
  padding: 60px 0;
}

.results-list {
  max-width: 900px;
  margin: 0 auto;
}

.result-item {
  background-color: #fff;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.result-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.result-item.win {
  border-left: 5px solid #28a745;
}

.result-item.lose {
  border-left: 5px solid #dc3545;
}

.result-item.draw {
  border-left: 5px solid #ffc107;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.result-date {
  font-size: 0.95rem;
  color: #666;
}

.result-tournament {
  font-size: 1rem;
  font-weight: 500;
  color: #003d82;
}

.result-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 15px;
}

.team {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
}

.our-team {
  flex-direction: row;
}

.opponent-team {
  flex-direction: row-reverse;
  text-align: right;
}

.team-name {
  font-size: 1.1rem;
  font-weight: 500;
  color: #333;
}

.team-score {
  font-size: 2.5rem;
  font-weight: bold;
  color: #003d82;
  min-width: 50px;
  text-align: center;
}

.result-status {
  flex: 0 0 auto;
}

.status-badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: bold;
}

.win-badge {
  background-color: #28a745;
  color: #fff;
}

.lose-badge {
  background-color: #dc3545;
  color: #fff;
}

.draw-badge {
  background-color: #ffc107;
  color: #333;
}

.result-notes {
  padding: 12px;
  background-color: #f8f9fa;
  border-radius: 5px;
  font-size: 0.95rem;
  color: #555;
}

.stats-section {
  background-color: #fff;
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.stat-card {
  background: linear-gradient(135deg, #003d82 0%, #0056b3 100%);
  color: #fff;
  border-radius: 10px;
  padding: 30px 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-card.win-stat {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.stat-card.lose-stat {
  background: linear-gradient(135deg, #dc3545 0%, #e63946 100%);
}

.stat-card.draw-stat {
  background: linear-gradient(135deg, #ffc107 0%, #ffb700 100%);
}

.stat-value {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
}

/* ============================
   お知らせページ
   ============================ */
.news-list-section {
  background-color: #f8f9fa;
  padding: 60px 0;
}

.news-articles {
  max-width: 900px;
  margin: 0 auto;
}

.news-article {
  background-color: #fff;
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-article:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.article-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.article-date {
  color: #666;
  font-size: 0.95rem;
}

.article-category {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.article-category.important {
  background-color: #dc3545;
  color: #fff;
}

.article-category.report {
  background-color: #28a745;
  color: #fff;
}

.article-category.info {
  background-color: #17a2b8;
  color: #fff;
}

.article-category.event {
  background-color: #ffc107;
  color: #333;
}

.article-title {
  font-size: 1.5rem;
  color: #003d82;
  margin-bottom: 20px;
  line-height: 1.4;
}

.article-content {
  color: #333;
  line-height: 1.8;
}

.article-content p {
  margin-bottom: 15px;
}

.article-content ul {
  margin: 15px 0;
  padding-left: 25px;
}

.article-content ul li {
  list-style: disc;
  margin-bottom: 8px;
  color: #555;
}

.article-content a {
  color: #003d82;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.article-content a:hover {
  color: #e63946;
}

.article-content strong {
  color: #003d82;
  font-weight: 600;
}

/* ============================
   管理画面
   ============================ */
.admin-title h1 {
  color: #fff;
  font-size: 1.5rem;
}

.admin-section {
  min-height: calc(100vh - 100px);
  padding: 40px 0;
}

.admin-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 30px;
}

.admin-sidebar {
  background-color: #fff;
  border-radius: 10px;
  padding: 20px;
  height: fit-content;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.admin-nav ul {
  list-style: none;
}

.admin-nav ul li {
  margin-bottom: 10px;
}

.admin-nav a {
  display: block;
  padding: 12px 15px;
  color: #333;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.admin-nav a:hover,
.admin-nav a.active {
  background-color: #003d82;
  color: #fff;
}

.admin-main {
  background-color: #fff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.admin-panel {
  display: none;
}

.admin-panel.active {
  display: block;
}

.panel-title {
  font-size: 1.8rem;
  color: #003d82;
  margin-bottom: 25px;
  border-bottom: 3px solid #003d82;
  padding-bottom: 10px;
}

.panel-description {
  color: #666;
  line-height: 1.8;
  margin-bottom: 20px;
}

.panel-actions {
  margin-bottom: 30px;
}

.btn-primary {
  background-color: #003d82;
  color: #fff;
  border: none;
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #002d61;
}

.btn-secondary {
  background-color: #6c757d;
  color: #fff;
  border: none;
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-secondary:hover {
  background-color: #5a6268;
}

.btn-edit {
  background-color: #ffc107;
  color: #333;
  border: none;
  padding: 6px 15px;
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
  margin-right: 5px;
}

.btn-delete {
  background-color: #dc3545;
  color: #fff;
  border: none;
  padding: 6px 15px;
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
}

.btn-link {
  color: #003d82;
  text-decoration: underline;
  font-weight: 500;
}

.form-container {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 30px;
}

.form-container h3 {
  color: #003d82;
  margin-bottom: 20px;
}

.form-group input[type="date"],
.form-group input[type="number"],
.form-group input[type="file"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  font-family: inherit;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.items-list {
  margin-top: 30px;
}

.items-list h3 {
  color: #003d82;
  margin-bottom: 15px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
}

.admin-table thead {
  background-color: #003d82;
  color: #fff;
}

.admin-table th,
.admin-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.admin-table tbody tr:hover {
  background-color: #f8f9fa;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
}

.badge.important {
  background-color: #dc3545;
  color: #fff;
}

.badge.report {
  background-color: #28a745;
  color: #fff;
}

.badge.info {
  background-color: #17a2b8;
  color: #fff;
}

.badge.event {
  background-color: #ffc107;
  color: #333;
}

.badge.win {
  background-color: #28a745;
  color: #fff;
}

.gallery-grid.admin {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.gallery-admin-item {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

.gallery-admin-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.gallery-admin-info {
  padding: 15px;
  background-color: #f8f9fa;
}

.gallery-admin-info p {
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: #333;
}

/* ============================
   フッター
   ============================ */
.site-footer {
  background-color: #222;
  color: #fff;
  padding: 30px 0;
  text-align: center;
}

/* ============================
   レスポンシブデザイン
   ============================ */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-list {
    display: none;
    position: absolute;
    top: 90px;
    left: 0;
    right: 0;
    background-color: #003d82;
    flex-direction: column;
    gap: 0;
    padding: 20px;
  }

  .nav-list.active {
    display: flex;
  }

  .nav-list li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-list a {
    display: block;
    padding: 15px;
  }

  .page-title {
    font-size: 2rem;
  }

  .site-title {
    font-size: 2rem;
  }

  .site-subtitle {
    font-size: 1.2rem;
  }

  .main-visual {
    height: 300px;
  }

  .next-game-float {
    position: static;
    max-width: 100%;
    margin: 20px;
    bottom: auto;
    right: auto;
  }

  section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .motto-text {
    font-size: 1.2rem;
  }

  .motto-description {
    font-size: 1rem;
  }

  .message-content {
    flex-direction: column;
    gap: 30px;
  }

  .message-photo {
    flex: 0 0 auto;
  }

  .message-photo img {
    max-width: 250px;
    margin: 0 auto;
  }

  .carousel-slide img {
    height: 300px;
  }

  .carousel-btn {
    font-size: 2rem;
    padding: 5px 15px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
  }

  .modal-prev,
  .modal-next {
    font-size: 2rem;
    padding: 5px 15px;
  }

  .modal-close {
    top: 10px;
    right: 20px;
    font-size: 30px;
  }

  .info-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .info-label {
    font-size: 1rem;
  }

  .contact-form {
    padding: 30px 20px;
  }

  .btn-submit {
    width: 100%;
  }

  .calendar-wrapper {
    margin: 0 -20px;
    border-radius: 0;
  }

  .calendar-wrapper iframe {
    height: 500px;
  }

  .schedule-item {
    flex-direction: column;
    gap: 20px;
  }

  .schedule-date {
    flex: 0 0 auto;
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
    padding: 15px 20px;
  }

  .schedule-date .day {
    font-size: 2rem;
  }

  .result-content {
    flex-direction: column;
    gap: 15px;
  }

  .team {
    width: 100%;
    justify-content: space-between;
  }

  .opponent-team {
    flex-direction: row;
    text-align: left;
  }

  .result-status {
    width: 100%;
    text-align: center;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-article {
    padding: 25px 20px;
  }

  .article-title {
    font-size: 1.3rem;
  }

  .article-content {
    font-size: 0.95rem;
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    margin-bottom: 20px;
  }

  .admin-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .admin-nav ul li {
    margin-bottom: 0;
  }

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

  .admin-table {
    font-size: 0.9rem;
  }

  .admin-table th,
  .admin-table td {
    padding: 8px;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 1.5rem;
  }

  .site-title {
    font-size: 1.5rem;
  }

  .site-subtitle {
    font-size: 1rem;
  }

  .game-card {
    padding: 20px;
  }

  .tournament-name {
    font-size: 1.2rem;
  }

  .opponent {
    font-size: 1.4rem;
  }

  .carousel-slide img {
    height: 200px;
  }

  .slide-caption {
    font-size: 0.9rem;
    padding: 10px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
  }

  .modal-prev,
  .modal-next {
    font-size: 1.5rem;
    padding: 5px 10px;
  }

  .modal-prev {
    left: 10px;
  }

  .modal-next {
    right: 10px;
  }

  .contact-form {
    padding: 20px 15px;
  }

  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group input[type="tel"],
  .form-group select,
  .form-group textarea {
    font-size: 0.9rem;
  }

  .calendar-wrapper iframe {
    height: 400px;
  }

  .result-item {
    padding: 20px;
  }

  .team-score {
    font-size: 2rem;
  }

  .stat-value {
    font-size: 2.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .news-article {
    padding: 20px 15px;
  }

  .article-title {
    font-size: 1.2rem;
  }

  .article-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .admin-main {
    padding: 20px;
  }

  .players-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ============================
   選手紹介セクション
   ============================ */
.players-section {
  background-color: #f8f9fa;
  padding: 80px 0;
}

.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.player-card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.player-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.player-photo {
  width: 100%;
  height: 250px;
  overflow: hidden;
  background-color: #e0e0e0;
}

.player-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-info {
  padding: 20px;
  text-align: center;
}

.player-number {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 8px;
  font-weight: 500;
}

.player-name {
  font-size: 1.2rem;
  color: #003d82;
  margin-bottom: 8px;
  font-weight: bold;
}

.player-position {
  font-size: 1rem;
  color: #e63946;
  font-weight: 500;
}
