/* ========================================
   新着情報セクション専用CSS
   ======================================== */

/* セクション全体の設定 */
.news-sec {
  padding-top: 60px;
  padding-bottom: 60px;
  background-color: #f9f9f9;
}

/* タイトルエリアの調整 */
.news-sec .sec-title {
  margin-bottom: 3rem;
}

.news-sec .sec-title .title {
  color: #333;
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.news-sec .sec-title .sub-title {
  color: #40E0D0;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.news-sec .sec-title .text {
  color: #666;
  font-size: 1.1rem;
}

/* カード本体のスタイル */
.news-card {
  border: 0;
  border-radius: 12px;
  background-color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* アイキャッチ画像エリア */
.news-card_image {
  position: relative;
  overflow: hidden;
  height: 220px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.news-card_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-card_image img {
  transform: scale(1.1);
}

/* プレースホルダー画像用 */
.news-card_image.placeholder {
  background: linear-gradient(135deg, #e0e0e0 0%, #bdbdbd 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
}

.news-card_image.placeholder a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.news-card_image.placeholder img {
  opacity: 0.4;
  width: auto;
  height: auto;
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  filter: grayscale(50%);
  margin: 0 auto;
  display: block;
}

/* カード本文エリア */
.news-card .card-body {
  padding: 1.5rem;
  flex-grow: 1;
}

/* 日付表示 */
.news-date {
  font-size: 0.9rem;
  color: #999;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.news-date i {
  color: #40E0D0;
  font-size: 0.85rem;
}

/* タイトル */
.news-card .card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #333;
  line-height: 1.5;
  margin-bottom: 1rem;
  min-height: 3rem;
}

.news-card .card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-card .card-title a:hover {
  color: #40E0D0;
}

/* 抜粋テキスト */
.news-card .card-text {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ボタン */
.news-card .btn-one-rounded.small {
  font-size: 0.9rem;
  padding: 0.5rem 1.2rem;
  background: linear-gradient(135deg, #40E0D0 0%, #48D1CC 100%);
  color: #fff;
  border: none;
  border-radius: 25px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.news-card .btn-one-rounded.small:hover {
  background: linear-gradient(135deg, #48D1CC 0%, #40E0D0 100%);
  transform: translateX(5px);
}

/* もっと見るボタン */
.news-sec .btn-one-rounded {
  font-size: 1rem;
  padding: 0.75rem 2rem;
  background: linear-gradient(135deg, #40E0D0 0%, #48D1CC 100%);
  color: #fff;
  border: none;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  text-decoration: none;
  font-weight: 600;
}

.news-sec .btn-one-rounded:hover {
  background: linear-gradient(135deg, #48D1CC 0%, #40E0D0 100%);
  transform: scale(1.05);
}

/* レスポンシブ対応 */
@media (max-width: 992px) {
  .news-sec .sec-title .title {
    font-size: 2rem;
  }

  .news-card_image {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .news-sec {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .news-sec .sec-title .title {
    font-size: 1.75rem;
  }

  .news-card_image {
    height: 180px;
  }

  .news-card .card-title {
    font-size: 1.1rem;
  }

  .news-card .card-text {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .news-card .card-body {
    padding: 1.25rem;
  }

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

/* アニメーション */
.news-card {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* カード出現アニメーション（順番に） */
.news-card:nth-child(1) { animation-delay: 0.1s; }
.news-card:nth-child(2) { animation-delay: 0.2s; }
.news-card:nth-child(3) { animation-delay: 0.3s; }
.news-card:nth-child(4) { animation-delay: 0.4s; }
.news-card:nth-child(5) { animation-delay: 0.5s; }
.news-card:nth-child(6) { animation-delay: 0.6s; }

/* 背景パターン（オプション） */
.news-sec {
  position: relative;
}

.news-sec::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(64, 224, 208, 0.03) 35px, rgba(64, 224, 208, 0.03) 70px);
  pointer-events: none;
  z-index: 0;
}

.news-sec .container {
  position: relative;
  z-index: 1;
}

/* カードのホバー時の影を強調 */
.news-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 20px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.news-card:hover::after {
  opacity: 1;
}

/* 新着バッジ（必要に応じて） */
.news-card .new-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8787 100%);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 10;
}

/* ローディング時のスケルトン表示（オプション） */
.news-card.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}