/* news.html 専用スタイル（元<style>タグより移植） */
/* 必要に応じてここにスタイルを追加してください */

/* 統一セクションタイトルスタイル */
.section-title {
  margin-bottom: 3rem !important;
  margin-top: 3rem !important;
}

.section-title h2 {
  font-size: 32px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  margin-bottom: 20px !important;
  padding-bottom: 20px !important;
  position: relative !important;
  color: #3b434c !important;
}

.section-title h2::before {
  content: "" !important;
  position: absolute !important;
  display: block !important;
  width: 120px !important;
  height: 1px !important;
  background: #ddd !important;
  bottom: 1px !important;
  left: calc(50% - 60px) !important;
}

.section-title h2::after {
  content: "" !important;
  position: absolute !important;
  display: block !important;
  width: 40px !important;
  height: 3px !important;
  background: #ff8c00 !important;
  bottom: 0 !important;
  left: calc(50% - 20px) !important;
}

.section-title h3 {
  padding: 0 !important;
  margin: 0 !important;
  font-size: 18px !important;
  font-weight: 500 !important;
  color: #6c757d !important;
}

/* 最新の取り組みセクション用のダークカラー */
#news_title h2 {
  color: #3b434c !important;
}

#news_title h3 {
  color: #6c757d !important;
}

/* より具体的な指定で白いテキストを上書き */
section#news .section-title h2,
#news #news_title h2 {
  color: #3b434c !important;
}

section#news .section-title h3,
#news #news_title h3 {
  color: #6c757d !important;
}

.hero-section.hero-small {
  position: relative;
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.hero-section.hero-small .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}
.hero-section.hero-small .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  background: linear-gradient(
    135deg,
    rgba(27, 133, 251, 0.25),
    rgba(0, 32, 96, 0.15)
  );
}
.hero-section.hero-small .hero-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}
.hero-section.hero-small .hero-desc {
  font-size: 1.1rem;
  opacity: 0.95;
}
.news-section .section-subtitle {
  color: #003366;
  font-weight: 500;
}
.news-table {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 2rem;
}
.year-title {
  color: #003366;
  font-weight: 700;
  border-left: 4px solid #003366;
  padding-left: 0.75rem;
}
.news-item {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding: 0.5rem 0;
}
.news-item:last-child {
  border-bottom: none;
}
.news-item .date {
  width: 60px;
  font-weight: 600;
  color: #003366;
}
.news-item .category {
  margin-right: 1rem;
}
.news-item .content {
  flex: 1;
}
.scroll-indicator {
  text-align: center;
  color: #003366;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  display: none;
}
.news-container {
  max-height: 400px;
  overflow-y: auto;
  border-radius: 8px;
  border: 1px solid #eee;
  background: #fafbfc;
  padding: 1rem;
}
.news-wrapper {
  padding: 0.5rem 0;
}
.news-subheading {
  color: #003366;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.year-divider {
  border-top: 2px solid #003366;
  margin: 2rem 0 1rem 0;
  padding-top: 1rem;
}
@media (max-width: 768px) {
  .hero-section.hero-small {
    height: 140px;
  }
  .hero-section.hero-small .hero-title {
    font-size: 1.2rem;
  }
  .hero-section.hero-small .hero-desc {
    font-size: 0.95rem;
  }
  .news-table {
    padding: 1rem;
  }
  .news-container {
    max-height: 250px;
    padding: 0.5rem;
  }
}

/* ブログカードのスタイル */
.blog-card {
  width: 260px;
  height: 480px;
  margin: 0 auto 24px auto;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  overflow: hidden;
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.card-image-wrapper {
  position: relative;
  padding-top: 60%;
  overflow: hidden;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}
.card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.blog-card:hover .card-img {
  transform: scale(1.1);
}
.card-date {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #3b82f6;
  color: white;
  padding: 0.5rem;
  border-radius: 8px;
  text-align: center;
  min-width: 60px;
}
.card-date .day {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}
.card-date .month {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
}
.blog-card .card-body {
  padding: 1.5rem !important;
  background: #fff !important;
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  border-bottom-left-radius: 12px !important;
  border-bottom-right-radius: 12px !important;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #6b7280;
  flex: 0 0 auto;
}
.card-category {
  color: #3b82f6;
  font-weight: 600;
  border: 2px solid #3b82f6;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  display: inline-block;
}
.blog-card .card-title {
  background: none !important;
  color: #1f2937 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  margin: 0 0 1rem 0 !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-text {
  color: #6b7280;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: calc(1.6em * 3 + 0.5em); /* 3行分の高さ＋余白 */
}
.read-more {
  color: #3b82f6;
  font-weight: 600;
  text-decoration: none;
  background-color: #f3f4f6;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  display: inline-block;
  transition: all 0.3s ease;
}
.read-more:hover {
  background-color: #3b82f6;
  color: #fff;
}
@media (max-width: 768px) {
  .blog-card {
    width: 100%;
    height: auto;
    margin-bottom: 2rem;
  }
  .card-body {
    padding: 1rem;
  }
}

.blog-swiper {
  padding-bottom: 32px;
}

.swiper-button-next {
  right: -40px !important;
}
.swiper-button-prev {
  left: -40px !important;
}

.swiper-pagination {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -16px;
  margin: 0 auto;
  text-align: center;
  z-index: 10;
}

.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #3b82f6;
  opacity: 0.4;
  border-radius: 50%;
  display: inline-block;
  margin: 0 4px;
  transition: opacity 0.3s;
}
.swiper-pagination-bullet-active {
  opacity: 1;
  background: #1d4ed8;
}
