/* トップページ専用CSS */

/* ヒーローセクション */
.hero-section .card-hero {
  border: none;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-section .card-hero:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.hero-section .card-hero .card-img-top {
  height: 280px;
  object-fit: cover;
}

.hero-section .card-hero-main .card-img-top {
  height: 320px;
}

.hero-section .card-hero .card-body {
  background: #f8f9fa;
}

.hero-section .card-hero .card-title {
  color: #333;
  margin-bottom: 0.5rem;
}

.hero-section .card-hero .card-text {
  color: #666;
}

/* 中サイズカード */
.cards-section .card-md {
  border: 1px solid #e0d8d0;
  border-radius: 8px;
  overflow: hidden;
  background: #faf9f7;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cards-section .card-md:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cards-section .card-md .card-img-top {
  height: 180px;
  object-fit: cover;
}

.cards-section .card-md .card-body {
  padding: 1rem;
}

.cards-section .card-md .card-title {
  color: #333;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.cards-section .card-md .card-text {
  color: #666;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

/* 詳しくボタン - 光るボタン風（subindex.cssから移植） */
.cards-section .card-md .btn-outline-primary {
  background: linear-gradient(180deg, #4CAF50 0%, #388E3C 100%);
  border: 2px solid #2E7D32;
  border-radius: 20px;
  color: #fff;
  font-weight: bold;
  font-size: 0.8rem;
  padding: 0.35rem 0.9rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  box-shadow:
    0 2px 0 #1B5E20,
    0 3px 6px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.1s ease;
}

.cards-section .card-md:hover .btn-outline-primary {
  background: linear-gradient(180deg, #66BB6A 0%, #43A047 100%);
  box-shadow:
    0 2px 0 #2E7D32,
    0 3px 8px rgba(76, 175, 80, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* ニュースセクション */
.news-section {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.news-section h2 {
  color: #333;
  border-top: none;
  border-bottom: 2px solid #e07145;
  padding-bottom: 0.5rem;
  margin-top: 0;
}

.news-section .card-news {
  border: 1px solid #e9ecef;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-section .card-news:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.news-section .card-news .card-img-top {
  height: 120px;
  object-fit: cover;
}

.news-section .card-news .card-body {
  background: #fff;
}

.news-section .card-news .card-text {
  color: #333;
  font-size: 0.8rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* レスポンシブ対応 */
@media (max-width: 767.98px) {
  .hero-section .card-hero .card-img-top,
  .hero-section .card-hero-main .card-img-top {
    height: 200px;
  }

  .cards-section .card-md .card-img-top {
    height: 150px;
  }

  .news-section .card-news .card-img-top {
    height: 100px;
  }
}

/* カードリンクの色 */
.card-hero,
.card-md,
.card-news {
  color: inherit;
}

.card-hero:hover,
.card-md:hover,
.card-news:hover {
  color: inherit;
  text-decoration: none;
}
