/* ベーススタイル */
.section-title {
  border-left: 4px solid #007bff;
  padding-left: 1rem;
  margin: 2rem 0;
}

.activity-section {
  margin-bottom: 3rem;
}

.image-gallery {
    margin-bottom: 2rem;
}

.image-gallery .row {
    margin-left: -10px;
    margin-right: -10px;
}

.image-gallery [class*="col-"] {
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.image-gallery img {
    display: block;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.image-gallery img:hover {
    transform: scale(1.02);
}

.info-box {
  background-color: #f8f9fa;
  padding: 2rem;
  border-radius: 8px;
  margin: 2rem 0;
}

/* ナビゲーションスタイル */
body {
  padding-top: 76px; /* ナビゲーションバーの高さ分の余白 */
}

.navbar {
  background-color: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
}

.navbar-nav .nav-link {
  padding: 1rem 1.25rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: #007bff;
}

/* スムーズスクロール */
html {
  scroll-behavior: smooth;
}

/* セクションのスクロールオフセット調整 */
section {
  scroll-margin-top: 80px;
}

/* ヒーローセクションスタイル - 修正 */
/* ヒーロー部分のスタイルは enhanced_style.css に移行し、この部分は無効化 */
/* 
.hero-section {
  position: relative;
  background-color: #000;
}

.overlay-band {
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.85);
  padding: 3rem 0;
  box-shadow: 0 0 50px rgba(255, 255, 255, 0.3);
}
*/

.carousel-item {
  transition: transform 2s ease, opacity .8s ease-out;
}

h1 {
  color: #333;
  font-weight: 600;
}

.content-box {
  color: #333;
}

.lead {
  font-size: 1.25rem;
  line-height: 2;
  letter-spacing: 0.05em;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
  .overlay-band {
    padding: 2rem 0;
  }

  .lead {
    font-size: 1rem;
    line-height: 1.8;
  }

  .image-gallery [class*="col-"] {
    margin-bottom: 15px;
  }
}

/* お知らせスタイル */
.news-list {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  max-height: 400px; /* 高さ制限を追加 */
  overflow-y: auto; /* 縦スクロールを追加 */
  padding: 0 15px; /* 内側の余白を追加 */
}

/* スクロールバーのスタイリング */
.news-list::-webkit-scrollbar {
  width: 8px;
}

.news-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.news-list::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.news-list::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* 既存のスタイルはそのまま */
.news-item {
  transition: background-color 0.3s ease;
  border-bottom: 1px solid #dee2e6;
  padding: 1rem 0;
}

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

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


.news-date {
  color: #6c757d;
  font-size: 0.9rem;
  white-space: nowrap;
}

.news-meta {
  min-width: 200px;
}

.news-content {
  flex-grow: 1;
}

.news-links {
  margin-top: 0.5rem;
}

/* バッジカラー */
.badge.bg-primary {
  background-color: #0d6efd !important;
}

.badge.bg-success {
  background-color: #198754 !important;
}

.badge.bg-info {
  background-color: #0dcaf0 !important;
}

.badge.bg-warning {
  background-color: #ffc107 !important;
}

@media (max-width: 768px) {
  .news-meta {
      min-width: auto;
      margin-bottom: 0.5rem;
  }
  
  .news-item .d-flex {
      flex-direction: column;
  }
}


/* 全体的な装飾の強化 */
body {
  background-color: #f8f9fa;
  color: #333;
  line-height: 1.8;
}

/* コンテナの装飾 */
.container {
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
  padding: 30px;
  margin-top: 1rem;
}

/* セクションタイトルの装飾強化 */
.section-title {
  position: relative;
  border-left: none;
  padding-left: 0;
  margin: 3rem 0 2rem;
  color: #2c3e50;
  font-weight: bold;
  text-align: center;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #007bff, #00d4ff);
  margin: 15px auto 0;
  border-radius: 2px;
}

/* カード要素の装飾 */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* テーブルの装飾 */
.table {
  box-shadow: 0 0 15px rgba(0,0,0,0.03);
  border-radius: 8px;
  overflow: hidden;
}

.table th {
  background: linear-gradient(45deg, #f8f9fa, #e9ecef);
  border-bottom: 2px solid #dee2e6;
}

/* info-boxの装飾強化 */
.info-box {
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.05);
}

/* ナビゲーションバーの装飾強化 */
.navbar {
  background: linear-gradient(90deg, rgba(255,255,255,0.95), rgba(248,249,250,0.95)) !important;
}

.navbar-brand {
  font-weight: bold;
  background: linear-gradient(45deg, #007bff, #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 10px 0;
}

/* お知らせセクションの装飾強化 */
.news-list {
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.news-item {
  position: relative;
  transition: all 0.3s ease;
}

.news-item::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
}

/* バッジの装飾強化 */
.badge {
  padding: 0.5em 1em;
  border-radius: 20px;
  font-weight: normal;
}

/* ボタンの装飾 */
.btn {
  border-radius: 20px;
  padding: 0.5rem 1.5rem;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* アラートの装飾 */
.alert {
  border: none;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* フッターの装飾 */
footer {
  background: linear-gradient(45deg, #f8f9fa, #e9ecef) !important;
  border-top: 1px solid rgba(0,0,0,0.05);
}

/* 画像ギャラリーの装飾強化 */
.image-gallery img {
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.image-gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

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

section {
  animation: fadeIn 0.8s ease-out forwards;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
  .container {
    padding: 15px;
    margin-top: 60px;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .section-title::after {
    width: 60px;
  }
}