/* ベーススタイル */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1f2937;
  line-height: 1.6;
  background-color: #ffffff;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ヘッダー */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
  transition: all 0.3s ease;
}

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

.logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c5aa0;
  text-decoration: none;
  transition: color 0.3s ease;
  letter-spacing: 0.02em;
}

.logo a:hover {
  color: #1a4480;
}

.desktop-nav {
  display: none;
  gap: 3rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: #6c757d;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #2c5aa0, #4a90e2);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: #2c5aa0;
}

.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #6c757d;
  transition: color 0.3s ease;
  border-radius: 8px;
}

.mobile-menu-btn:hover {
  color: #2c5aa0;
  background: rgba(44, 90, 160, 0.05);
}

.mobile-menu {
  display: none;
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.mobile-menu.active {
  display: block;
}

.mobile-nav-link {
  display: block;
  padding: 1rem;
  color: #6c757d;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  border-radius: 8px;
  margin: 0 1rem;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: #2c5aa0;
  background-color: rgba(44, 90, 160, 0.05);
}

/* ヒーローセクション */
.hero-section {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(44, 90, 160, 0.6) 0%, rgba(74, 144, 226, 0.6) 100%), 
              url('images/news.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
  color: white;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(44, 90, 160, 0.3) 100%);
  z-index: 1;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  padding: 4rem 2rem;
  position: relative;
  z-index: 2;
  backdrop-filter: blur(3px);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-description {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* メインコンテンツ */
.main-content {
  padding: 3rem 0 5rem;
  min-height: calc(100vh - 80px);
  background: #fafafa;
}

/* お知らせコンテナ */
.news-container {
  max-width: 800px;
  margin: 0 auto;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* お知らせアイテム */
.news-item {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.2s ease;
}

.news-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: #d1d5db;
}

.news-header {
  padding: 1.5rem 2rem 1rem;
  border-bottom: 1px solid #f3f4f6;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.news-date {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}

.news-category {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.news-category-red {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.news-category-blue {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #dbeafe;
}

.news-category-yellow {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fed7aa;
}

.news-category-green {
  background: #f0fdf4;
  color: #059669;
  border: 1px solid #bbf7d0;
}

.news-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.news-content {
  padding: 1rem 2rem 2rem;
}

.news-content p {
  margin-bottom: 1rem;
  color: #4b5563;
  line-height: 1.7;
  font-size: 0.95rem;
}

.news-content p:last-child {
  margin-bottom: 0;
}

/* リスト */
.news-list-items {
  margin: 1rem 0;
  padding-left: 1.5rem;
  list-style: none;
}

.news-list-items li {
  margin-bottom: 0.5rem;
  color: #4b5563;
  position: relative;
  line-height: 1.6;
}

.news-list-items li::before {
  content: "•";
  position: absolute;
  left: -1rem;
  color: #2c5aa0;
  font-weight: bold;
}

/* 情報ボックス */
.info-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-left: 4px solid #2c5aa0;
}

.info-title {
  font-size: 1rem;
  font-weight: 600;
  color: #2c5aa0;
  margin-bottom: 0.75rem;
}

/* イベント詳細 */
.event-details {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.event-title {
  font-size: 1rem;
  font-weight: 600;
  color: #2c5aa0;
  margin-bottom: 1rem;
}

.event-info {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1rem;
}

.event-info dt {
  font-weight: 600;
  color: #374151;
  font-size: 0.9rem;
}

.event-info dd {
  color: #4b5563;
  font-size: 0.9rem;
}

/* スケジュール変更 */
.schedule-change {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.change-title {
  font-size: 1rem;
  font-weight: 600;
  color: #2c5aa0;
  margin-bottom: 1rem;
}

.schedule-table-container {
  overflow-x: auto;
  margin: 1rem 0;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
}

.schedule-table th,
.schedule-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.9rem;
}

.schedule-table th {
  background: #f9fafb;
  font-weight: 600;
  color: #374151;
}

.schedule-table tbody tr:last-child td {
  border-bottom: none;
}

/* ヒントセクション */
.tips-section {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-left: 4px solid #2c5aa0;
}

.tips-title {
  font-size: 1rem;
  font-weight: 600;
  color: #2c5aa0;
  margin-bottom: 0.75rem;
}

/* ページネーション */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
  padding: 2rem 0;
}

.pagination-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  color: #374151;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  font-size: 0.9rem;
}

.pagination-btn:hover:not(:disabled) {
  background: #f9fafb;
  border-color: #9ca3af;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-numbers {
  display: flex;
  gap: 0.5rem;
}

.pagination-number {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  color: #374151;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.pagination-number:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.pagination-number.active {
  background: #2c5aa0;
  border-color: #2c5aa0;
  color: white;
}

/* スクロールトップボタン */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  background: #2c5aa0;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(44, 90, 160, 0.3);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(44, 90, 160, 0.4);
  background: #1a4480;
}

/* レスポンシブデザイン */
@media (min-width: 768px) {
  .desktop-nav {
      display: flex;
  }

  .mobile-menu-btn {
      display: none;
  }

  .mobile-menu {
      display: none !important;
  }

  .news-header {
      padding: 2rem 2.5rem 1.5rem;
  }

  .news-content {
      padding: 1.5rem 2.5rem 2.5rem;
  }

  .event-info {
      grid-template-columns: 8rem 1fr;
  }
}

@media (max-width: 767px) {
  .news-header {
      padding: 1.25rem 1.5rem 1rem;
  }

  .news-content {
      padding: 1rem 1.5rem 1.5rem;
  }

  .news-title {
      font-size: 1.125rem;
  }

  .info-box,
  .event-details,
  .schedule-change,
  .tips-section {
      padding: 1.25rem;
  }

  .pagination {
      flex-direction: column;
      gap: 1rem;
  }

  .pagination-btn {
      padding: 0.625rem 1rem;
      font-size: 0.875rem;
  }

  .event-info {
      grid-template-columns: 1fr;
      gap: 0.25rem 0;
  }

  .event-info dt {
      margin-top: 0.75rem;
      font-size: 0.875rem;
  }

  .event-info dt:first-child {
      margin-top: 0;
  }

  .event-info dd {
      font-size: 0.875rem;
  }

  .scroll-top-btn {
      bottom: 1rem;
      right: 1rem;
      width: 2.5rem;
      height: 2.5rem;
  }
}

@media (max-width: 480px) {
  .container {
      padding: 0 0.75rem;
  }

  .news-header {
      padding: 1rem 1.25rem 0.75rem;
  }

  .news-content {
      padding: 0.75rem 1.25rem 1.25rem;
  }

  .news-title {
      font-size: 1rem;
  }

  .info-box,
  .event-details,
  .schedule-change,
  .tips-section {
      padding: 1rem;
  }

  .schedule-table th,
  .schedule-table td {
      padding: 0.5rem;
      font-size: 0.8rem;
  }

  .pagination-numbers {
      gap: 0.25rem;
  }

  .pagination-number {
      width: 2rem;
      height: 2rem;
      font-size: 0.8rem;
  }
}

/* アニメーション */
@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.5s ease-out;
}

/* フォーカススタイル */
*:focus {
  outline: 2px solid #2c5aa0;
  outline-offset: 2px;
}

.nav-link:focus,
.mobile-nav-link:focus,
.pagination-btn:focus,
.pagination-number:focus,
.scroll-top-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.3);
  border-radius: 4px;
}

/* フッター */
.footer {
  background: linear-gradient(135deg, #0a4b87, #1e40af);
  color: white;
  padding: 5rem 0 2rem 0;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.02em;
}

.footer-subtitle {
  color: #bfdbfe;
  margin-top: 0.5rem;
  font-style: italic;
}

.footer-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.footer-detail:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.footer-icon {
  color: #93c5fd;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.footer-note {
  font-size: 0.875rem;
  color: #bfdbfe;
  margin-top: 0.5rem;
  line-height: 1.5;
}

.footer-map {
  width: 100%;
  height: 18rem;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.footer-iframe {
  border-radius: 15px;
  width: 100%;
  height: 100%;
}

.footer-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  margin: 4rem 0;
}

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

.footer-nav-section h3 {
  color: #93c5fd;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
}

.footer-nav-list {
  list-style: none;
  padding: 0;
}

.footer-nav-list li {
  margin-bottom: 0.75rem;
}

.footer-nav-link {
  color: white;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
  display: block;
  border-radius: 4px;
}

.footer-nav-link:hover {
  color: #93c5fd;
  transform: translateX(5px);
}

.footer-copyright {
  text-align: center;
  margin-top: 4rem;
  font-size: 0.875rem;
  color: #93c5fd;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* レスポンシブ対応：フッター */
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-nav {
    grid-template-columns: repeat(3, 1fr);
  }
}
