/* TOP(pg110).css */

/* === カードのスタイル === */
.modern-card {
  background-color: white;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid #f1f5f9;
  padding: 12px; /* スマホで見やすいパディング */
}
@media (min-width: 768px) {
  .modern-card {
    padding: 16px;
  }
}
.modern-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: #e2e8f0;
}
/* 画像エリア */
.card-image-wrapper {
  width: 100%;
  position: relative;
  background-color: transparent;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 8px;
}
.card-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}
.card-image-wrapper.contain {
  background-color: #fff;
}
.card-image-wrapper.contain img {
  object-fit: contain;
  padding: 10px;
}
.modern-card:hover .card-image-wrapper img {
  transform: scale(1.03);
}
/* === カテゴリラベル === */
.category-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 6px;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  font-family: 'M PLUS Rounded 1c', sans-serif;
}
@media (min-width: 768px) {
  .category-badge {
    font-size: 0.7rem;
    margin-bottom: 8px;
  }
}
/* カテゴリ色定義 */
.bg-orange {
  background: linear-gradient(135deg, #ff9800, #f57c00);
}
.bg-gray {
  background: linear-gradient(135deg, #9ca3af, #6b7280);
}
.bg-green {
  background: linear-gradient(135deg, #4caf50, #2e7d32);
}
.bg-red {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
}
.bg-blue {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}
.bg-pink {
  background: linear-gradient(135deg, #ec4899, #be185d);
}
.bg-black {
  background: linear-gradient(135deg, #374151, #111827);
}
.bg-purple {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}
/* === スライダー（比率維持設定） === */
.hero-slider {
  position: relative;
  width: 100%;
  /* アスペクト比 825:300 を維持 */
  padding-top: 36.4%;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.slide.active {
  opacity: 1;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 枠いっぱいに表示 */
}
.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  font-weight: 700;
  text-align: center;
  font-size: 0.9rem;
  font-family: 'M PLUS Rounded 1c', sans-serif;
}
/* スマホでのキャプション調整 */
@media (max-width: 640px) {
  .hero-slider {
    padding-top: 55%;
    background-color: #1f2937;
  }
  .slide img {
    height: 75%;
    border-bottom: 1px solid #374151;
  }
  .slide-caption {
    top: 75%;
    bottom: 0;
    height: 25%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    font-size: 0.75rem;
    line-height: 1.3;
  }
}
/* ヘッダーロゴのスタイル */
.header-logo-text {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #1f2937;
}