@charset "UTF-8";

/* ===== Base ===== */
body {
  font-family: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "Noto Sans JP", Meiryo, "メイリオ", sans-serif;
  font-size: 1.4rem;
  color: #333;
  background: #fff;
  min-height: 100%;
}

a {
  text-decoration: none;
}

/* ===== HERO SLIDER ===== */
.hero-slider {
  margin-top: 76px;
  position: relative;
  background: #f8f8f8;
}

.slider-container {
  position: relative;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
}

.slider-list {
  position: relative;
  width: 100%;
}

.slider-item {
  display: none;
  width: 100%;
}

.slider-item.active {
  display: block;
  animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.slider-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* Slider controls */
.slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 14px 0;
  background: #fff;
}

.controls-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border: 1.5px solid #d8d8d8;
  border-radius: 999px;
  background: #fff;
}

.controls-sep {
  display: block;
  width: 1px;
  height: 16px;
  background: #ddd;
  flex-shrink: 0;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #ccc;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
  flex-shrink: 0;
}

.dot.active {
  background: #555;
}

.dot:hover:not(.active) {
  background: #999;
}

.pause-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 3px;
  height: 18px;
  transition: opacity 0.2s;
}

.pause-btn::before,
.pause-btn::after {
  content: '';
  display: block;
  width: 3px;
  height: 14px;
  background: #999;
  border-radius: 1px;
}

.pause-btn:hover::before,
.pause-btn:hover::after {
  background: #555;
}

/* Paused state: show triangle play icon */
.pause-btn.paused::before {
  width: 0;
  height: 0;
  border: none;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 12px solid #999;
  background: none;
  border-radius: 0;
}

.pause-btn.paused::after {
  display: none;
}

/* ===== TOPICS SECTION ===== */
.topics-section {
  padding: 64px 24px 72px;
  background: #fff;
}
@media screen and (max-width: 768px) {
  .topics-section {
    padding: 50px 25px;
  }
}

.section-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 3.2rem;
  font-weight: bold;
  color: #222;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.section-subtitle {
  text-align: center;
  font-size: 1.4rem;
  color: #666;
  margin-bottom: 40px;
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
@media screen and (max-width: 768px) {
  .topics-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

.topic-card {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}

.topic-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.topic-card > a {
  display: block;
  color: inherit;
}

.card-image {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #f0f0f0;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.topic-card:hover .card-image img {
  transform: scale(1.06);
}

.card-body {
  padding: 14px 16px 18px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.card-date {
  font-size: 1.3rem;
  color: #888;
}

.card-badge {
  font-size: 1.1rem;
  font-weight: bold;
  padding: 2px 9px;
  border-radius: 3px;
}

.card-badge.pickup {
  background: #e53935;
  color: #fff;
}

.card-title {
  font-size: 1.4rem;
  color: #333;
  line-height: 1.6;
}

/* More button */
.topics-more {
  text-align: center;
}

.btn-more {
  display: inline-block;
  padding: 12px 44px;
  border: 2px solid #444;
  color: #444;
  font-size: 1.4rem;
  border-radius: 40px;
  transition: background 0.2s, color 0.2s;
  font-weight: bold;
}

.btn-more:hover {
  background: #444;
  color: #fff;
}

/* ===== Mobile ===== */
@media screen and (max-width: 768px) {
  /* ヒーロースライダー：ヘッダー高さ分だけ下げる */
  .hero-slider {
    margin-top: 80px;
  }
}
